Disable Android system packages without root: Difference between revisions

From WickyWiki
mNo edit summary
mNo edit summary
Line 25: Line 25:
dos> adb shell
dos> adb shell


#list 3rd party packages
#list  
dos> adb shell "pm list packages -3" > output.txt
#  -s : system packages  
 
-3 : 3rd party packages
#list system packages
# remove 'package:' from the result
dos> adb shell "pm list packages -s" > output.txt
dos> adb shell "pm list packages -s" > output.txt


Line 37: Line 37:
adb> pm uninstall -k --user 0 <package name>
adb> pm uninstall -k --user 0 <package name>


#reinstall
#reinstall an app
adb> cmd package install-existing <package name>
adb> cmd package install-existing <package name>
</source>
</source>
Line 44: Line 44:
* https://technastic.com/remove-samsung-bloatware-safe-to-remove-apps/
* https://technastic.com/remove-samsung-bloatware-safe-to-remove-apps/


I have disabled these (Galaxy S8):
= On Galaxy S8: disabled these =


<source lang=bash>
<source lang=bash>
Line 59: Line 59:
# Bixby debug app
# Bixby debug app
pm uninstall --user 0 com.samsung.android.bixby.agent.dummy
pm uninstall --user 0 com.samsung.android.bixby.agent.dummy
</source>
= On Galaxy S20 FE: disabled these =
<source lang=bash>
# Private Share
pm uninstall --user 0 com.samsung.android.privateshare
# Phone companion
pm uninstall --user 0 com.android.companiondevicemanager
</source>
</source>

Revision as of 18:13, 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 
#  -s : system packages 
#  -3 : 3rd party packages
#  remove 'package:' from the result
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 an app
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:

On Galaxy S8: disabled these

# 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

On Galaxy S20 FE: disabled these

# Private Share
pm uninstall --user 0 com.samsung.android.privateshare

# Phone companion
pm uninstall --user 0 com.android.companiondevicemanager