- Make a screen-shot and get it
- Stay the screen on always
- Time Sync
- Reboot/Halt
- Volumes
- Open the web-page
- Open the Settings UI
- Set the Time (Rooting required)
Keep updating the commands…
Make a screen-shot and get it
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png
Stay the screen on always
adb shell svc power stayon usb
Time Sync
# Time Sync (0 = Off / 1 = Network)
adb shell settings put global auto_time 1
Reboot/Halt
# REBOOT : Same as "shutdown -r now"
adb shell reboot
# HALT : Same as "shutdown -h"
adb shell reboot -p
Volumes
# Get the volume settings
adb shell dumpsys audio
# Change the volume by the key-event
# - Volume Up : 24
# - Volume Down : 25
adb shell input keyevent 24
# Change the volume by the service-call
# - audio 7 : interface IAudioService
# - i32 3 : Speaker (1: Phone 3: Speaker 4: alarm 6: Bluetooth)
# - i32 0 : UI print Off (1 : UI print On)
# - i32 1 : Volume Level (0 ~ 15)
adb shell service call audio 7 i32 3 i32 0 i32 1
Open the web-page
adb shell am start -a android.intent.action.VIEW -d http://m.youtube.com
Open the Settings UI
adb shell am start -a android.settings.SETTINGS
Set the Time (Rooting required)
# 2018-11-20 18:40:00
adb shell su -c "date -s 20181120.184000"