1

I discovered that the command below does not execute in android 4.1.2 and 4.2.2 but it executes from android 4.4+.

input touchscreen swipe x1 y1 x2 y2 [duration]

I am using my old android 4.1.2 and 4.2.2 in kiosk mode and I need my script to long-press on some areas but I can't get the above command to do the trick for me but it does work perfectly in my other android 4.4.2 and 4.4.4? My question is, what files should I copy from my android 4.4.2 to my android 4.2.2 to get the above command to work in android 4.2.2 ?? Or is there any other means of doing it? NOTE: I don't need sendevent method please, I only need input touchscreen swipe method. Thanks

5
  • try /system/bin/input binary from kk is running on jb (from /data/local/tmp)
    – alecxs
    May 1, 2020 at 10:51
  • Sorry please, I did not understand what you said I should do with the input binary from KK. Can you elaborate better please? May 2, 2020 at 10:34
  • adb push input /data/local/tmp; adb shell; cd /data/local/tmp; chmod a+x ./input; ./input
    – alecxs
    May 2, 2020 at 11:10
  • After pushing the KK input binary to /data/local/tmp how can I execute it from terminal because I learnt that it is the shell that searches /system/bin or /system/xbin for binaries when your script calls a binary May 3, 2020 at 3:46
  • call binary with full (or relative) path
    – alecxs
    May 3, 2020 at 7:03

1 Answer 1

-1

Does the --longpress modifier works?

input keyevent --longpress ##
1
  • No it doesn't work in android 4.2.2. If I run input command it doesn't list --longpress as an available modifier, but does so in android 4.4.2+ Jun 10, 2020 at 12:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .