Last active
August 12, 2022 13:23
-
-
Save brandonprry/1c7402b5fa9603fb124a956b3c7d9ebb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
$ input tap 950 550 # Dead center | |
$ input keyevent KEYCODE_POWER | |
$ 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 |
Author
brandonprry
commented
Aug 12, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment