execute adb shell input swipe command from apk

后端 未结 2 830
故里飘歌
故里飘歌 2020-12-22 03:05

I am trying to execute swipe command from my Apk using

process = Runtime.getRuntime().exec(\"adb shell input swipe 250 300 -800 300\");

2条回答
  •  悲哀的现实
    2020-12-22 04:01

    You need to put INJECT_EVENTS permission in your manifest:

    
    
    uses-permission android:name="android.permission.INJECT_EVENTS"
    
    

提交回复
热议问题