Disable Android system packages without root

From WickyWiki
Revision as of 22:08, 6 January 2021 by Wilbert (talk | contribs) (Created page with "Category:Android Category:202101 This method allows you to have more control over what packages are active. Packages are not really removed but instead 'uninstalled' f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This method allows you to have more control over what packages are active. Packages are not really removed but instead 'uninstalled' for user '0'.

More info:

Steps:

  1. Download the latest Android SDK Platform-tools and extract the zip. You don't need to uninstall.
  2. Open your device Settings and turn on USB debugging from Developer options.
  3. Increase the device Screen Timeout duration.
  4. Now connect your Android device to the computer via USB.
  5. DOS Command prompt:
    • cd /d d:\platform-tools\
    • adb devices
  6. allow on device

Adb commands

#adb command prompt
adb shell

#list 3rd party packages
adb shell "pm list packages -3" > output.txt

#list system packages
adb shell "pm list packages -s" > output.txt

#uninstall an app with its data
pm uninstall --user 0 <package name>

#uninstall an app but keep its data
pm uninstall -k --user 0 <package name>

#reinstall
cmd package install-existing <package name>

Overview of packages you may or may not remove:

I have disabled these (Galaxy S8):

# Bixby
pm uninstall --user 0 com.samsung.android.bixby.wakeup
# Bixby homepage launcher
pm uninstall --user 0 com.samsung.android.app.spage
# Bixby features
pm uninstall --user 0 com.samsung.android.bixby.service 
# Bixby Vision
pm uninstall --user 0 com.samsung.android.visionintelligence 
# Bixby Voice
pm uninstall --user 0 com.samsung.android.bixby.agent 
# Bixby debug app
pm uninstall --user 0 com.samsung.android.bixby.agent.dummy