adb devices
adb shell
adb -s <device̠-number> shell
adb tcpip 5555
adb shell ip route | awk '{print $9}'
adb connect 192.168.1.51ː5555
adb start-server
adb kill-server
adb reboot
adb reboot recovery
adb reboot bootloader
adb push files /storage/on/device
adb push myfolder /storage/on/device #push folder only
adb push myfolder/ /storage/on/device
#push all files in folder
## use pull instead of push for pulling file/folder
adb shell getprop
adb shell setprop key value
adb shell service call <your_service_name> <number at
which the function appears in your_service_name.aidl> <type of the
argument like i32 or i64> <argument>
adb shell service list
adb shell service call iphonesubinfo 1
adb shell service call iphonesubinfo 1| cut -d "'" -f2| grep -Eo '[0-9]'| xargs| sed 's/\ //g'
service call iphonesubinfo 3 i32 1 | grep -oE '[0-9a-f]{8} ' |
while read hex; do echo -ne "\u${hex:4:4}\u${hex:0:4}"; done; echo
service call iphonesubinfo 3 i32 2 | grep -oE '[0-9a-f]{8} ' |
while read hex; do echo -ne "\u${hex:4:4}\u${hex:0:4}"; done; echo
adb shell content insert --uri content://settings/secure --bind name:s:accessibility_enabled --bind value:s:1
adb shell content insert --uri content://settings/secure --bind name:s:accessibility_script_injection, --bind value:s:1
adb shell content insert --uri content://settings/secure --bind name:s:lock_function_val --bind value:s:0
adb shell content insert --uri content://settings/secure --bind name:s:volume_controller_service_component --bind value:s:1
adb shell content insert --uri content://settings/secure --bind name:s:brightness_pms_marker_screen --bind value:s:255
am start -a android.media.action.IMAGE_CAPTURE"
input keyevent 27
adb shell am start -a android.media.action.IMAGE_CAPTURE
adb shell am start -a android.media.action.IMAGE_CAPTURE
adb shell input keyevent 66
adb shell am start -a android.media.action.VIDEO_CAPTURE
adb shell input keyevent 66
adb shell input keyevent 66
adb shell am start -a android.intent.action.SET_WALLPAPER
adb shell am start -a android.intent.action.VIEW -d https://www.gentoo.org
am start -a android.intent.action.VIEW -d file:///sdcard/sound.ogg -t audio/ogg
am start -a com.android.settings.APPLICATION_DEVELOPMENT_SETTINGS
am start -a com.android.settings/.Settings\$PowerUsageSummaryActivity
adb shell am start com.android.settings/com.android.settings.SubSettings
am start -a android.intent.action.VIEW -d fi
le:///sdcard/video.mkv -t video/mkv
adb shell am start -a android.intent.action.VIEW -d "geo:46.457398,-119.407305"
am start -a android.intent.action.VIEW content://contacts/people/
am start -W -c android.intent.category.HOME -a android.intent.action.MAIN
adb shell am start --ez show_night_mode true com.android.systemui/.tuner.TunerActivity
adb shell am start -a android.intent.action.VIEW -d facebook://facebook.com/inbox
adb shell am start -a android.intent.action.VIEW -d file:///sdcard/me.vcard -t text/x-vcard
adb shell am start -a android.intent.action.GET_CONTENT -t image/jpeg
adb shell am broadcast -a com.whereismywifeserver.intent.TEST --es sms_body "test from adb"
am start -a android.intent.action.INSERT -t vnd.android.cursor.dir/contact -e name 'larry the cow' -e phone 123456789
adb shell am start -a android.intent.action.INSERT -t
vnd.android.cursor.dir/contact -e name 'Larry' -e phone '+467277777' -e
email '[email protected]' -e postal '12345, FooStreet 10, Sweden'
adb shell input keyevent 4;sleep 0.2; adb shell input keyevent 4
adb shell pm list packages
adb shell pm list packages -e
adb shell pm list packages -d
adb shell pm list packages -3
adb shell pm list users
adb shell pm list permission-groups
adb shell pm list features
pm uninstall --user 0 package.name
pm uninstall --user 0 com.facebook.orca
adb shell am broadcast -a com.android.car.dialer.intent.action.adb --es "action" "connect"
am broadcast -a com.android.car.dialer.intent.action.adb \--es "action" "addCall" --es "id" "123456789"
adb shell am broadcast -a com.android.car.dialer.intent.action.adb --es "action" "rcvCall" --es "id" "123456789"
adb shell am broadcast -a com.android.car.dialer.intent.action.adb --es "action" "holdCall"
adb shell am broadcast -a com.android.car.dialer.intent.action.adb --es "action" "unholdCall"
adb shell am broadcast -a com.android.car.dialer.intent.action.adb --es "action" "unholdCall"
adb shell am broadcast -a com.android.car.dialer.intent.action.adb --es "action" "endCall" --es "id" "123456789"
adb shell dumpsys [-t timeout] [--help] [-l] [--skip services] [service] [arguments] [-c] [-h]
adb shell dumpsys battery
dumpsys -l
dumpsys | grep -a 'DUMP OF SERVICE'
dumpsys window windows | grep 'mCurrentFocus'
settings put system show_network_speed_enabled 1
service call phone 1 s16 "+4612345678"
monkey -p com.example.myapp -v 10000
settings put secure location_providers_allowed gps
settings put secure location_providers_allowed gps ' '
settings put secure install_non_market_apps 1
settings put secure fp_take_photo 0
settings put secure lock_screen_allow_private_notifications 1
settings put secure lock_screen_owner_info_enabled 0
input swipe 0 0 0 300
settings get secure bluetooth_address
adb backup -all -f <filepath>/backup.ab“
adb backup -apk -shared -all -f <filepath>/backup.ab“
adb restore <filepath>/backup.ab
( printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 backup.ab ) | tar xfvz -
gpasswd -a <username> android
emerge -av
android-udev-rules
https://packages.gentoo.org/packages/dev-util/android-udev-rules
https://github.com/M0Rf30/android-udev-rules
https://wiki.gentoo.org/wiki/Android/adb
https://wiki.archlinux.org/title/Android_Debug_Bridge
https://developer.android.com/studio/command-line/adb.html
Comments
Post a Comment