Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save febs/e4cee4a46c7518f19f54895c509d0639 to your computer and use it in GitHub Desktop.
Save febs/e4cee4a46c7518f19f54895c509d0639 to your computer and use it in GitHub Desktop.
Script I used to clean preinstalled shit out of my brand new Samsung A40 (while there is still no LineageOS for it)
#!/bin/sh
# ref: https://piunikaweb.com/2019/03/25/samsung-galaxy-s10-remove-bundled-bloatwares-without-root/
# install the following app to see the packages names:
# use the following command to generate the unistall command, for easy copy and paste:
# adb shell 'pm list packages' | sed -e 's/^/adb uninstall --user 0 /' | grep FILTER_HERE | sort
#things to install if removing keyboard
# F-Droid
# APK Analyser
# google keyboard
#facebook
adb uninstall --user 0 com.facebook.katana
adb uninstall --user 0 com.facebook.system
adb uninstall --user 0 com.facebook.appmanager
adb uninstall --user 0 com.facebook.services
#General system stuff
adb uninstall --user 0 com.dsi.ant.sample.acquirechannels
adb uninstall --user 0 com.dsi.ant.service.socket
adb uninstall --user 0 com.dsi.ant.server
adb uninstall --user 0 com.dsi.ant.plugins.antplus
adb uninstall --user 0 com.android.egg
adb uninstall --user 0 com.sec.android.easyonehand
adb uninstall --user 0 com.sec.android.widgetapp.samsungapps
#adb uninstall --user 0 com.sec.android.app.launcher
adb uninstall --user 0 com.samsung.android.mateagent
adb uninstall --user 0 com.sec.android.easyMover.Agent
adb uninstall --user 0 com.samsung.android.app.watchmanagerstub
adb uninstall --user 0 com.sec.android.daemonapp
adb uninstall --user 0 com.samsung.android.app.social
#SAMSUNG PASS / PAY
adb uninstall --user 0 com.samsung.android.samsungpassautofill
adb uninstall --user 0 com.samsung.android.authfw
adb uninstall --user 0 com.samsung.android.samsungpass
adb uninstall --user 0 com.samsung.android.spay
adb uninstall --user 0 com.samsung.android.spayfw
#Samsung bixby
adb uninstall --user 0 com.samsung.android.bixby.wakeup
adb uninstall --user 0 com.samsung.android.app.spage
adb uninstall --user 0 com.samsung.android.app.routines
adb uninstall --user 0 com.samsung.android.bixby.service
adb uninstall --user 0 com.samsung.android.visionintelligence
adb uninstall --user 0 com.samsung.android.bixby.agent
adb uninstall --user 0 com.samsung.android.bixby.agent.dummy
adb uninstall --user 0 com.samsung.android.bixbyvision.framework
adb uninstall --user 0 com.samsung.android.drivelink.stub
#Samsung email
adb uninstall --user 0 com.samsung.android.email.provider
adb uninstall --user 0 com.wsomacp
#Samsung game launcher
adb uninstall --user 0 com.samsung.android.game.gamehome
adb uninstall --user 0 com.enhance.gameservice
adb uninstall --user 0 com.samsung.android.game.gametools
adb uninstall --user 0 com.samsung.android.game.gos
adb uninstall --user 0 com.samsung.android.gametuner.thin
#Samsung browser
adb uninstall --user 0 com.sec.android.app.sbrowser
adb uninstall --user 0 com.samsung.android.app.sbrowseredge
#Samsung gear VR
adb uninstall --user 0 com.samsung.android.hmt.vrsvc
adb uninstall --user 0 com.samsung.android.app.vrsetupwizardstub
adb uninstall --user 0 com.samsung.android.hmt.vrshell
adb uninstall --user 0 com.google.vr.vrcore
#Edge
adb uninstall --user 0 com.samsung.android.service.peoplestripe
adb uninstall --user 0 com.samsung.android.app.ledbackcover
adb uninstall --user 0 com.sec.android.cover.ledcover
adb uninstall --user 0 com.sec.android.desktopmode.uiservice
adb uninstall --user 0 com.samsung.desktopsystemui
adb uninstall --user 0 com.sec.android.app.desktoplauncher
#More preinstalled shit
adb uninstall --user 0 com.microsoft.office.officehubrow
adb uninstall --user 0 com.microsoft.skydrive
adb uninstall --user 0 com.samsung.android.themestore
adb uninstall --user 0 com.linkedin.android
#Google stuff
adb uninstall --user 0 com.google.android.apps.tachyon
adb uninstall --user 0 com.google.android.apps.photos
adb uninstall --user 0 com.sec.android.app.samsungapps
adb uninstall --user 0 com.google.android.googlequicksearchbox
adb uninstall --user 0 com.sec.android.app.billing
adb uninstall --user 0 com.samsung.android.scloud
adb uninstall --user 0 com.samsung.android.mobileservice
adb uninstall --user 0 com.samsung.android.app.mirrorlink
adb uninstall --user 0 com.osp.app.signin
adb uninstall --user 0 com.samsung.android.easysetup
adb uninstall --user 0 com.samsung.android.beaconmanager
#only after installing gboard
adb uninstall --user 0 com.sec.android.inputmethod
adb uninstall --user 0 com.samsung.android.app.settings.bixby
adb uninstall --user 0 com.sec.location.nsflp2
#knox
adb uninstall --user 0 com.knox.vpn.proxyhandler
adb uninstall --user 0 com.samsung.android.knox.analytics.uploader
adb uninstall --user 0 com.samsung.android.knox.containeragent
adb uninstall --user 0 com.samsung.android.knox.containercore
adb uninstall --user 0 com.samsung.knox.keychain
adb uninstall --user 0 com.samsung.knox.securefolder
adb uninstall --user 0 com.sec.enterprise.knox.attestation
adb uninstall --user 0 com.sec.enterprise.knox.cloudmdm.smdms
# altra roba
adb uninstall --user 0 com.ilmeteo.android.ilmeteo
adb uninstall --user 0 com.gameloft.android.GloftDMKF
adb uninstall --user 0 com.samsung.android.game.gos
adb uninstall --user 0 de.axelspringer.yana.zeropage
# mi son rotto il cazzo di mettere il comando davanti
package:com.samsung.android.stickercenter
package:com.sec.android.mimage.avatarstickers
package:com.samsung.android.livestickers
com.samsung.android.appseparation
com.aura.oobe.samsung.glcom.aura.oobe.samsung.gl
com.samsung.android.app.simplesharing
com.samsung.android.calendar
com.samsung.android.app.reminder
com.samsung.android.honeyboard
com.samsung.android.mdx
com.microsoft.appmanager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment