Created
January 12, 2026 02:09
-
-
Save heywoodlh/58849a1eaf2596971a812357d145ffd9 to your computer and use it in GitHub Desktop.
My Palm Phone debloater
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Fetch package list with `adb shell pm list packages` | |
| apps=("com.android.chrome" "com.verizon.messaging.vzmsgs" "com.google.android.apps.photos" "com.android.email.partnerprovider.overlay" "com.android.partnerbrowsercustomizations.overlay" "com.android.providers.partnerbookmarks.overlay" "com.google.android.partnersetup" "com.android.partnerbrowsercustomizations" "com.android.providers.partnerbookmarks" "com.android.email.partnerprovider" "com.google.android.music" "com.google.android.calendar" "com.google.android.apps.tachyon" "com.android.egg" "com.vzw.apnlib" "com.vzw.hss.myverizon" "com.tcl.vzwintents" "com.tct.vzwwifioffload" "com.vzw.ecid" "com.vzw.easvalidation" "com.customermobile.preload.vzw" "com.google.android.googlequicksearchbox" "com.google.android.marvin.talkback" "com.google.android.feedback" "com.google.android.apps.docs" "com.google.android.videos" "com.verizon.cloudsetupwizard" "com.vcast.mediamanager") | |
| echo "Removing bloat" | |
| app_uninstall() { | |
| app="$1" | |
| set -x | |
| adb shell pm uninstall -k --user 0 "${app}" | |
| set +x | |
| } | |
| packages="$(adb shell pm list packages)" | |
| for app in "${apps[@]}" | |
| do | |
| echo "${packages}" | grep -iq "${app}" && app_uninstall "${app}" | |
| done | |
| # Usage: app_install "name" "url" "com.app-fqdn.testing" | |
| app_install() { | |
| name="$1" | |
| url="$2" | |
| fqdn="$3" | |
| if adb shell pm list packages | grep -q "${fqdn}" | |
| then | |
| echo "${name} installation detected." | |
| else | |
| echo "Installing ${name}." | |
| curl -L --silent "${url}" -o "/tmp/${name}.apk" | |
| set -x | |
| adb install "/tmp/${name}.apk" | |
| set +x | |
| fi | |
| } | |
| # App stores | |
| app_install "Obtainium" "https://github.com/ImranR98/Obtainium/releases/latest/download/app-release.apk" "dev.imranr.obtainium" | |
| app_install "F-Droid" "https://f-droid.org/F-Droid.apk" "org.fdroid.fdroid" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment