Skip to content

Instantly share code, notes, and snippets.

@jzallas
Last active August 26, 2021 14:20
Show Gist options
  • Save jzallas/c085f635337eb21a050dcf69532d3860 to your computer and use it in GitHub Desktop.
Save jzallas/c085f635337eb21a050dcf69532d3860 to your computer and use it in GitHub Desktop.
#!/bin/bash
# disables bloat packages on samsung devices
# tested with z fold 3
packages_to_uninstall=(
"com.microsoft.skydrive" \
"com.microsoft.office.excel" \
"com.microsoft.office.word" \
"com.microsoft.office.powerpoint" \
"com.microsoft.office.outlook" \
"com.microsoft.appmanager" \
"com.microsoft.office.officehubrow" \
"com.facebook.system" \
"com.facebook.appmanager" \
"com.facebook.services" \
"com.facebook.katana" \
"com.touchtype.swiftkey" \
"com.swiftkey.swiftkeyconfigurator" \
"com.google.android.videos" \
"com.linkedin.android"
)
packages_to_disable=(
"com.samsung.android.messaging" \
"com.sec.android.easyMover" \
"com.samsung.android.oneconnec" \
"com.samsung.android.oneconnect" \
"com.samsung.android.tvplus" \
"com.sec.android.app.shealth" \
"com.samsung.android.voc" \
"com.samsung.android.app.watchmanager" \
"com.samsung.sree" \
"com.samsung.android.app.spage" \
"com.samsung.android.app.tips" \
"com.samsung.android.contacts" \
"com.samsung.android.app.contacts" \
"com.samsung.android.calendar" \
"com.samsung.android.dialer" \
"com.samsung.android.spay" \
"com.vzw.apnlib"
)
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