Android Question Shell Commands TAP or Keyevent

cajarville

New Member
Licensed User
Longtime User
B4X:
Dim p As Phone
Dim sb,se As StringBuilder
sb.Initialize
se.Initialize
p.Shell("input tap 250 250",Null,sb,se)

or

p.Shell("input keyevent 66",Null,sb,se)

I've tried it on different non-root phones, and the app crashed.


but if I run from windows


adb.exe shell input tap 250 250

or

adb.exe shell keyevent 66

it works.

what is the difference ?



help me please.
 

DonManfred

Expert
Licensed User
Longtime User
adb has more "rights"
 
Upvote 0
Top