Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #list of adb commands
- ###get Services
- adb shell dumpsys | grep "DUMP OF SERVICE"
- ###network
- adb shell dumpsys wifi
- adb shell dumpsys wifi|grep startTime|tr "," "\n"
- adb shell dumpsys wifi|grep startTime|tr "," "\n"|grep 'SSID'|head -n1
- alias awifi='adb shell dumpsys wifi|grep startTime|tr "," "\n"|grep "SSID"|head -n1'
- adb shell ifconfig
- adb shell dumpsys wifi|grep "IPv4 address"
- alias aip='adb shell dumpsys wifi|grep "IPv4 address"'
- ###battery
- adb shell cat /sys/class/power_supply/battery/capacity
- adb shell dumpsys battery
- adb shell dumpsys battery|grep level
- ###Get Media Being Accessed
- #start music player (Vanilla)
- #start voice recorder
- #then camera video recorder
- adb shell dumpsys media.player
- adb shell dumpsys media.player|grep " Video" -A 10
- #note that audio file being accessed such as camera click sounds
- ###audio
- adb shell dumpsys audio
- adb shell dumpsys audio|grep -A 5 "STREAM_NOTIFICATION:"
- ###volume
- adb shell media
- adb shell media volume --show --stream 0
- adb shell media volume --show --stream 1
- adb shell media volume --show --stream 2
- adb shell media volume --show --stream 3
- adb shell media volume --show --stream 3 --set 11
- adb shell media volume --show --stream 0 --set 7
- adb shell media volume --adj lower
- adb shell media volume --adj raise
- ###media player
- adb shell media dispatch play-pause
- adb shell media dispatch next
- adb shell media dispatch previous
- adb shell media fast-forword
- adb shell media rewind
- ###finger print reader
- adb shell dumpsys fingerprint
- adb shell dumpsys fingerprint|jq .
- ###GPS
- #Get last known location
- adb shell dumpsys location
- adb shell dumpsys location|grep "passive:"|tail -n1|awk '{print $3}'
- #termux is a better option
Add Comment
Please, Sign In to add comment