Skip to content

Instantly share code, notes, and snippets.

@brandonprry
Last active August 12, 2022 13:23

Revisions

  1. brandonprry revised this gist Aug 7, 2022. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,6 @@ Still install sshd. File transfer over adb push/pull is too slow.
    #Disable Sound
    $ adb shell input keyevent 164


    $ adb shell svc power stayon true

    $ adb tcpip 4321 #Enable adb over wifi.
  2. brandonprry revised this gist Aug 7, 2022. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -2,15 +2,20 @@ Turn on debugging.

    Still install sshd. File transfer over adb push/pull is too slow.

    #Disable Sound
    $ adb shell input keyevent 164


    $ adb shell svc power stayon true

    $ adb tcpip 4321 #Enable adb over wifi.
    $ setprop persist.adb.tcp.port 4321


    #Start the camera app and bring to focus
    $ am start -a android.media.action.IMAGE_CAPTURE
    Starting: Intent { act=android.media.action.IMAGE_CAPTURE }

    #Capture image
    $ input keyevent 27

    $ dumpsys power | grep 'Display Power'
  3. brandonprry revised this gist Aug 7, 2022. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,8 @@ Still install sshd. File transfer over adb push/pull is too slow.
    $ adb shell svc power stayon true

    $ adb tcpip 4321 #Enable adb over wifi.
    $ setprop persist.adb.tcp.port 4321


    $ am start -a android.media.action.IMAGE_CAPTURE
    Starting: Intent { act=android.media.action.IMAGE_CAPTURE }
  4. brandonprry revised this gist Aug 5, 2022. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,8 @@ $ input keyevent 27

    $ dumpsys power | grep 'Display Power'

    $ input tap 950 550 # Dead center

    $ input keyevent KEYCODE_POWER

    $ adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'
  5. brandonprry revised this gist Aug 5, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -15,5 +15,6 @@ $ dumpsys power | grep 'Display Power'

    $ input keyevent KEYCODE_POWER

    am broadcast -a 'com.fihtdc.OTAUpdate.SET_SERVER_URL' -n 'com.fihtdc.OTAUpdate/.OTAReceiver' --es URL http://www.c2dms.com
    $ adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'

    am broadcast -a 'com.fihtdc.OTAUpdate.SET_SERVER_URL' -n 'com.fihtdc.OTAUpdate/.OTAReceiver' --es URL http://www.c2dms.com
  6. brandonprry revised this gist Jul 27, 2022. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -15,3 +15,5 @@ $ dumpsys power | grep 'Display Power'

    $ input keyevent KEYCODE_POWER

    am broadcast -a 'com.fihtdc.OTAUpdate.SET_SERVER_URL' -n 'com.fihtdc.OTAUpdate/.OTAReceiver' --es URL http://www.c2dms.com

  7. brandonprry revised this gist Jul 25, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Turn on debugging.

    Still install sshd.
    Still install sshd. File transfer over adb push/pull is too slow.

    $ adb shell svc power stayon true

  8. brandonprry revised this gist Jul 25, 2022. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -4,13 +4,14 @@ Still install sshd.

    $ adb shell svc power stayon true

    Enable adb over wifi.
    $ adb tcpip 4321 #Enable adb over wifi.

    $ am start -a android.media.action.IMAGE_CAPTURE
    Starting: Intent { act=android.media.action.IMAGE_CAPTURE }

    $ input keyevent 27

    $ dumpsys power | grep 'Display Power'
    $ dumpsys power | grep 'Display Power'

    $ input keyevent KEYCODE_POWER
    $ input keyevent KEYCODE_POWER

  9. brandonprry revised this gist Jul 25, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ $ am start -a android.media.action.IMAGE_CAPTURE
    Starting: Intent { act=android.media.action.IMAGE_CAPTURE }
    $ input keyevent 27

    2|shell@LFC:/sdcard $ dumpsys power | grep 'Display Power'
    $ dumpsys power | grep 'Display Power'

    $ input keyevent KEYCODE_POWER

  10. brandonprry revised this gist Jul 25, 2022. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,9 @@ Enable adb over wifi.

    $ am start -a android.media.action.IMAGE_CAPTURE
    Starting: Intent { act=android.media.action.IMAGE_CAPTURE }
    $ input keyevent 27
    $ input keyevent 27

    2|shell@LFC:/sdcard $ dumpsys power | grep 'Display Power'

    $ input keyevent KEYCODE_POWER

  11. brandonprry revised this gist Jul 25, 2022. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    Turn on debugging.

    Still install sshd.

    $ adb shell svc power stayon true

    Enable adb over wifi.
  12. brandonprry revised this gist Jul 24, 2022. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,8 @@ Turn on debugging.

    $ adb shell svc power stayon true

    Enable adb over wifi.
    Enable adb over wifi.

    $ am start -a android.media.action.IMAGE_CAPTURE
    Starting: Intent { act=android.media.action.IMAGE_CAPTURE }
    $ input keyevent 27
  13. brandonprry created this gist Jul 24, 2022.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Turn on debugging.

    $ adb shell svc power stayon true

    Enable adb over wifi.