All the commands listed here assumes it’s in a adb shell, to execute the command without a shell, add adb shell to the front of each commands
Go to adb shell via adb shell and use this to list all the package names
pm list packages | grep -Ei "app1|app2"pm uninstall -k --user 0 <package-name>List of problematic apps
com.google.android.youtube.tv
com.google.android.youtube.tvmusic
com.netflix.ninja
com.amazon.amazonvideo.livingroomDisable Default Launcher
pm disable-user --user 0 com.google.android.tvlauncherDisable Google Play Protect (untested), this is needed to install SmartTube and other Chinese apps
settings put global package_verifier_user_consent -1Launch an app
- first query the app and find out its package name
monkey -p com.app.package 1- this command will open the app on Android device by package name
Force kill an app
am force-stop com.app.packageInput Text
input text "abc\ dcf\ "- spaces needs to be escaped via
\
Input Tap
input tap x yIt also work with keyevent
input keyevent 30- up: 19
- down: 20
- left: 21
- right: 22
- enter: 23
- home: 3
- back: 4
Record screen
screenrecord "/sdcard/rec.mp4"Open Image using MiXplorer
am start -a android.intent.action.VIEW -d file:///sdcard/Pictures/icon.png -timage/* com.mixplorer.silver/com.mixplorer.activities.ImageViewerActivityEnable/Disable Pointer Location
settings put system pointer_location 0Tested boilerplate code for automating HDR auto
input keyevent 3 && sleep 1 && am start -n com.android.tv.settings/.device.displaysound.DisplaySoundActivity && sleep 1 && input tap 1330 598 && sleep 1 && input tap 1300 570 && input keyevent 3UI Automator
uiautomator dump- this dumps a XML file to
/sdcard/window_dump.xml
Network Settings
First in adb shell
pm grant com.termux android.permission.DUMPThen in Termux
/system/bin/dumpsys connectivity | grep NetworkAgentInfo