Skip to content

Instantly share code, notes, and snippets.

@jzallas
Last active August 26, 2021 14:12
Show Gist options
  • Save jzallas/089ecca30a0c48a71f6f62e3bca9000f to your computer and use it in GitHub Desktop.
Save jzallas/089ecca30a0c48a71f6f62e3bca9000f to your computer and use it in GitHub Desktop.
#!/bin/bash
# disables bloat packages on samsung devices
# tested with z fold 2
packages_to_uninstall=(
"com.microsoft.skydrive" \
"com.microsoft.office.excel" \
"com.microsoft.office.word" \
"com.microsoft.office.powerpoint" \
"com.microsoft.appmanager" \
"com.facebook.system" \
"com.facebook.appmanager" \
"com.facebook.services" \
"com.facebook.katana" \
"com.touchtype.swiftkey" \
"com.swiftkey.swiftkeyconfigurator"
)
packages_to_disable=(
"com.sec.android.widgetapp.easymodecontactswidget" \
"com.samsung.android.samsungpassautofill" \
"com.samsung.android.drivelink.stub" \
"com.samsung.android.app.simplesharing" \
"com.sec.android.easyMover.Agent" \
"com.sec.android.easyMover" \
"com.samsung.android.app.notes" \
"com.sec.android.widgetapp.samsungapps" \
"com.samsung.android.kidsinstaller" \
"com.sec.android.app.billing" \
"com.samsung.android.mateagent" \
"com.samsung.android.samsungpass" \
"com.sec.android.service.health" \
"com.samsung.android.da.daagent" \
"com.samsung.android.scloud" \
"com.samsung.android.hmt.vrsvc" \
"com.samsung.android.app.tips" \
"com.sec.android.app.samsungapps" \
"com.sec.android.gallery3d" \
"com.samsung.android.oneconnect" \
"com.samsung.android.voc" \
"com.sec.android.app.shealth" \
"com.samsung.android.spay" \
"com.samsung.android.dialer" \
"com.samsung.android.messaging" \
"com.samsung.android.app.contacts" \
"com.sec.spp.push" \
"com.samsung.android.mobileservice" \
"com.samsung.android.app.watchmanager" \
"com.samsung.android.app.watchmanagerstub" \
"com.samsung.android.calendar"
)
for package in "${packages_to_uninstall[@]}"
do
echo "Uninstalling $package..."
adb shell pm uninstall -k --user 0 $package
done
for package in "${packages_to_disable[@]}"
do
echo "Disabling $package..."
adb shell pm disable-user --user 0 $package
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment