How do I keep my screen unlocked during USB debugging?

前端 未结 19 1303
清酒与你
清酒与你 2020-12-13 07:55

Android OS2.2 used to have an option under Settings/Applications/Development to disable screen lock during USB debugging. After upgrading my Samsung Galaxy S to OS2.3.3 this

相关标签:
19条回答
  • 2020-12-13 08:59

    Replace 12345 by your unlock code. Then this shell script unlocks your phone:

    adb shell input keyevent KEYCODE_WAKEUP # activate 
    adb shell input touchscreen swipe 530 1420 530 1120 # swipe up
    adb shell input text 12345 # input password
    adb shell input keyevent 66 # press enter
    

    You should never disable security features on your phone (as pointed out above). Make sure nobody can read that script file either.

    0 讨论(0)
提交回复
热议问题