
Android: get all installed packages using ADB - Stack Overflow
Dec 5, 2018 · adb shell cmd package list packages This will return a list of the package names of the apps installed on the device.
How to start an application using Android ADB tools
Nov 8, 2021 · Step 1: First get all the package names of the apps installed in your device, by using: adb shell pm list packages Step 2: You will get all the package names. Copy the one you want to start using ADB. Step 3: Add your desired package name in the below command. adb shell monkey -p 'your package name' -v 500 For example,
How to detect running app using ADB command [duplicate]
adb shell ps returns a list of all running processes on the android device, grep apps searches for any row with contains "apps", as you can see above they are all com.google.android.APPS. or GAPPS, awk extracts the 9th column which in this case is the package name.
adb - How do I get an apk file from an Android device? - Stack …
Oct 27, 2010 · adb shell dumpsys activity activities | grep mFocusedActivity if grep isn't recognized, you're using a Windows terminal use findstr. Best command to get the current app you're looking at: adb shell dumpsys activity activities | findstr mFocusedWindow. Get the path to the package name. adb shell pm path <packagename.apk>
How to uninstall an android app from command line on the device
I can uninstall an app on the device from my computer using adb uninstall <package_name>, but I'd like to do the same with a script on the actual device. I've also tried running an android.intent.action.DELETE intent using am but it prompts the user for confirmation.
pm uninstall -k --user 0 Failure [DELETE_FAILED_USER_RESTRICTED]
Apr 26, 2022 · If the regular adb disable/uninstall commands do not work then-For Android 13 try: adb shell service call package 131 s16 com.abc.xyz i32 0 i32 0 For Android 12 try: adb shell service call package 134 s16 com.abc.xyz i32 0 i32 0
adb - How to install multiple android applications ( from apk files ...
@aloha_erich you are right, adb install-multiple is not for installing multiple apps in one command, instead it's for installing one app with multiple parts, for example many apps installed from google store now have split APKS, like base.apk, split_config.en.apk, …
ADB: How to tap/close from recent apps to completely through …
Open recent apps-adb shell input keyevent KEYCODE_APP_SWITCHER. Tap the cross X or close all. Depends on your system UI you need to navigate to it and press enter. For me below worked, you can find what works for your device using up,down,tab KEYEVENTs. adb shell input keyevent KEYCODE_DPAD_DOWN. adb shell input keyevent KEYCODE_ENTER
Get Application Name/ Label via ADB Shell or Terminal
May 26, 2017 · Now you can do some grep|sed magic to extract the path : /data/app/com.google.android.apps.inbox-1/base.apk. After that aapt tool comes in handy : $ adb shell aapt dump badging /data/app/com.google.android.apps.inbox-1/base.apk ... application-label:'Inbox' application-label-hi:'Inbox' application-label-ru:'Inbox' ...
adb - Clear android application user data - Stack Overflow
Jun 7, 2012 · Go to adb shell by running adb shell on terminal; Check available packages by running pm list packages; If package name is available which you want to reset, then run pm clear packageName by replacing packageName with the package name which you want to reset, and same is showing on pm list packages result.