Article View: comp.mobile.android
Article #63Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android
From: Arno Welzel
Date: Fri, 09 Oct 2026 07:12
Date: Fri, 09 Oct 2026 07:12
62 lines
3154 bytes
3154 bytes
In the following examples APPLICATION is the full identifier of an application package. To find out this identifier, go to the app list in Android, open the application information of the app and scroll down to the end of the list. There you should find the identifier. If you have a vendor specific UI (Xiaomi, Samsung etc.) it may look different. In this case, check Google Play online in a browser. The application identifier is part of the URL after the "id=" parameter like this: <https://play.google.com/store/apps/details?id=com.google.android.apps.messaging> For example Google Messages is com.google.android.apps.messaging and the ADB command to disable this for user 0 would be: adb shell pm disable-user --user 0 com.google.android.apps.messaging The identifier is the "reverse" domain notation intruced by Java, so instead of "google.com" at the end as the owner of the app it is "com.google" at the beginning. List of ADB commands to modify apps: Disable the app for user 0: adb shell pm disable-user --user 0 APPLICATION Note: the app will still be visible as installed app for this user and can be re-enabled. Using this command may work even when disabling the app within the Android UI is note possible. Re-enable an app that was disabled for user 0: adb shell pm enable --user 0 APPLICATION Force-stop an app: adb shell am force-stop APPLICATION Uninstall the app for user 0: adb shell pm uninstall --user 0 APPLICATION Note: if the app is preinstalled system app it may still be present in the file system and will only be made unavailable for user 0. It can be restored if neccessary. Restore a system/preinstalled app previously uninstalled for user 0: adb shell cmd package install-existing --user 0 APPLICATION -- Arno Welzel https://arnowelzel.de
Technical Details
Message-ID:
<11aa45j$i8tn$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11a96gn$b36$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Arno Welzel <usenet@arnowelzel.de> Newsgroups: comp.mobile.android Subject: Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Date: Fri, 9 Oct 2026 09:12:50 +0200 Organization: A noiseless patient Spider Lines: 62 Message-ID: <11aa45j$i8tn$1@dont-email.me> References: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Fri, 09 Oct 2026 07:12:52 +0000 (UTC) Injection-Info: dont-email.me; logging-data="598967"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18I+qho1sITIOJW+VlJIJuJhl5Q6w/5MHE="; posting-host="7e147c20851cd99915605feba9a41d7d" Cancel-Lock: sha1:a96OWbm0NelF5x2cQ+dEd8oGUvM= sha256:N5Pequ3ON35XdJphwjt1JfriJnijGMXqM9g9BYELC8w= sha1:z1t7Hbv5OMlb3p4MgZCzoIQl/mQ= sha256:F7Qs/dPDH1fQk2AmmuTjcDeVV2jqugCmoEjcgO+n3xU= In-Reply-To: <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com> Content-Language: en-US, de-DE