Disable Android system packages without root: Difference between revisions

From WickyWiki
mNo edit summary
mNo edit summary
Line 23: Line 23:
<source lang=bash>
<source lang=bash>
#adb command prompt
#adb command prompt
adb shell
dos> adb shell


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


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


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


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


#reinstall
#reinstall
cmd package install-existing <package name>
adb> cmd package install-existing <package name>
</source>
</source>


Overview of packages with some info. Be warned that you can make it difficult for yourself is you disable packages:
Overview of packages with some info. Be warned that you can make it difficult for yourself if you disable packages:
* https://technastic.com/remove-samsung-bloatware-safe-to-remove-apps/
* https://technastic.com/remove-samsung-bloatware-safe-to-remove-apps/



Revision as of 17:11, 10 March 2021

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 install.
  2. You might need to install USB drivers for access to your device. For example:
  3. Open your device Settings and turn on USB debugging from Developer options.
  4. Increase the device Screen Timeout duration.
  5. Now connect your Android device to the computer via USB.
  6. DOS Command prompt:
    • cd /d d:\platform-tools\
    • adb devices
  7. allow on device

Adb commands

#adb command prompt
dos> adb shell

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

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

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

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

#reinstall
adb> cmd package install-existing <package name>

Overview of packages with some info. Be warned that you can make it difficult for yourself if you disable packages:

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