Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.mobile.android > #156345

Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android

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 2026-10-09 09:12 +0200
Organization A noiseless patient Spider
Message-ID <11aa45j$i8tn$1@dont-email.me> (permalink)
References <11a96gn$b36$1@nnrp.usenet.blueworldhosting.com>

Show all headers | View raw


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

Back to comp.mobile.android | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-08 15:46 -0700
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Arno Welzel <usenet@arnowelzel.de> - 2026-10-09 09:12 +0200
    Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Frank Slootweg <this@ddress.is.invalid> - 2026-10-09 10:20 +0000
      Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Nuno Silva <nunojsilva@invalid.invalid> - 2026-10-09 12:37 +0100
    Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Jeff Layman <Jeff@invalid.invalid> - 2026-10-09 14:59 +0100
      Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Jeff Layman <Jeff@invalid.invalid> - 2026-10-10 08:10 +0100
        Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-10 03:25 -0700
          Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-11 09:37 -0700
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Arno Welzel <usenet@arnowelzel.de> - 2026-10-09 09:15 +0200
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Siard <saylor259@mailbox.org> - 2026-10-09 10:30 +0200
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Don <g@crcomp.net> - 2026-10-09 11:22 +0000
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-17 21:46 -0400
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-21 13:53 -0400
    Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-23 17:44 -0400
      Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-23 17:49 -0400
        Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android croy <croy@spam.invalid.net> - 2026-10-23 16:58 -0700
          Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-23 22:19 -0400
            Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-24 00:57 -0400
              Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-24 01:12 -0400
                Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-24 03:18 -0400
    Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-24 10:03 -0400
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-24 14:16 -0400
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-26 09:25 -0400
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-30 13:38 -0400
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-31 11:54 -0400
    Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-10-31 13:41 -0400
      Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android ram@zedat.fu-berlin.de (Stefan Ram) - 2026-10-31 18:06 +0000
        Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android "Carlos E. R." <robin_listas@es.invalid> - 2026-11-01 13:23 +0100
          Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-01 10:07 -0400
            Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-02 13:56 -0400
              Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-03 01:49 -0400
            Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android "Carlos E. R." <robin_listas@es.invalid> - 2026-11-03 18:01 +0100
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-03 13:29 -0400
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-03 21:39 -0400
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-07 14:39 -0400
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-18 10:16 -0400
  Re: FAQ: PSA: Tutorial: Walk-Thru etc. Random examples of using adb with Android Maria Sophia <mariasophia@comprehension.com> - 2026-11-18 18:35 -0400

csiph-web