Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iamutkarshtiwari/f67e8d2485d6d6ee269e5df3367799b0 to your computer and use it in GitHub Desktop.
Save iamutkarshtiwari/f67e8d2485d6d6ee269e5df3367799b0 to your computer and use it in GitHub Desktop.
Samsung Galaxy Debloater Script
#!/bin/bash
# List of package names to be removed
packages=(
# Samsung apps
# You can add more here. Checkout out this blogpost:
# https://technastic.com/remove-samsung-bloatware-safe-to-remove-apps/
"com.samsung.android.calendar"
"com.samsung.android.email.provider"
"com.samsung.android.app.notes"
"com.samsung.android.contacts"
"com.google.android.apps.tachyon",
"com.samsung.android.bixby.wakeup",
"com.samsung.android.app.spage",
"com.samsung.android.app.routines",
"com.samsung.android.bixby.service",
"com.samsung.android.visionintelligence",
"com.samsung.android.bixby.agent",
"com.samsung.android.bixby.agent.dummy",
"com.samsung.android.bixbyvision.framework",
"com.samsung.android.mateagent",
"com.samsung.android.app.watchmanagerstub",
"com.samsung.android.app.social",
"com.samsung.ecomm.global",
"com.samsung.android.oneconnect",
"com.samsung.hidden.china",
"com.samsung.android.spay",
"com.samsung.android.spay",
# Google apps
"com.google.android.videos"
# Add more package names here if needed
)
# Disable bloatware apps instead of removing them completely
# Uncomment the following line if you want to disable instead of removing
# disable_apps=true
# Loop through the package names and remove/disable them
for package in "${packages[@]}"
do
if [ "$disable_apps" = true ]; then
echo "Disabling $package"
adb shell pm disable-user --user 0 "$package"
else
echo "Uninstalling $package"
adb shell pm uninstall --user 0 "$package"
fi
done
@iamutkarshtiwari
Copy link
Author

How to use this:

  1. Install platform-tools (adb)
  2. Give execute permission to this script
chmod +x samsung_galaxy_debloater_script.sh
  1. Make sure USB Debugging is enabled on your Samsung device
  2. Connect your device to your Mac or Windows laptop
  3. Run this script:
./samsung_galaxy_debloater_script.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment