Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/khlam/debloat-samsung-android

ADB commands to aggressively de-bloat Samsung Android Phones without root. Make Samsung One UI closer to stock Android.
https://github.com/khlam/debloat-samsung-android

adb android remove-samsung-bloatware samsung

Last synced: 14 days ago
JSON representation

ADB commands to aggressively de-bloat Samsung Android Phones without root. Make Samsung One UI closer to stock Android.

Awesome Lists containing this project

README

        

# Debloat Samsung Android Phones with Android Debug Bridge (ADB)

This repository contains a list of [Android Debug Bridge (ADB)](https://developer.android.com/studio/command-line/adb) commands to aggressively disable apps/bloatware from Samsung Android devices that don't normally display an option to remove them.

Running all commands listed in [commands.txt](./commands.txt) will disable almost all Samsung apps.
This includes the Galaxy App Store, Samsung Themes, Samsung Dex, Samsung Bixby, Facebook, and more.
The end result will be a minimalist Samsung phone.
These commands will not disrupt Samsung Knox or the Google Play Store.
Use at your own risk and read over all commands to make sure you don't take out something you need.
While these commands cannot harm your device, there may be situations where your phone gets into a crash-loop and the easiest fix is to boot the device into "Recovery Mode" and perform a factory reset.
Research the procedure to boot into recovery mode for your Samsung phone, it can differ between models.

Running these adb commands is equilivent to using [Package Disabler Pro+ (Play Store Link)](https://play.google.com/store/apps/details?id=com.elmklmsamsung.batteryaddon&hl=en_US), except you're running commands manually so you don't need to give an app device admin permission or pay anything.

## ⚠️ WARNING:⚠️
1. After running these commands, you will no longer be able to install Profile Isolation (Work Profile) apps such as [Island](https://play.google.com/store/apps/details?id=com.oasisfeng.island&hl=en_US) or [Shelter](https://play.google.com/store/apps/details?id=net.typeblog.shelter&hl=en_US). **Installing Profile Isolation apps after running these commands will put OneUI into a crash-loop.**
2. Do not disable `com.samsung.android.provider.filterprovider` or `com.samsung.android.app.smartcapture`. **Doing so will cause the stock Samsung camera app to crash**.
3. Anything to do with the Galaxy Store will not work.
4. Samsung Dex / Samsung Phone integration with Windows 10 will be disabled.
5. Note: The "Device Care" app by the company [Qihoo 360](https://en.wikipedia.org/wiki/Qihoo_360) may be [capable of sending data to China domains over HTTP](https://www.virustotal.com/gui/file/048ead2be8d18bbe2b05651380069b3740dd05703e9bd66630da986026518398/details).
If you want to disable this app, remove the `#` at the corresponding line located at the bottom of [commands.txt](./commands.txt).

> ⚠️ Research each package before running the command to disable it. Some apps have hidden dependencies.

## Instructions
The following instructions assumes you are familiar with using a command-line interface.
Further reading on ADB can be found here: https://developer.android.com/studio/command-line/adb#Enabling.

1. (Recommended for stability) Backup, update, and factory reset your phone.
2. On your phone, enable Android's "Developer Options"
3. In "Developer Options", turn on "USB Debugging"
4. On your computer, download [Android SDK Platform-Tools](https://developer.android.com/studio/releases/platform-tools) for your OS.
5. Extract [Android SDK Platform-Tools](https://developer.android.com/studio/releases/platform-tools) and start a command-prompt/shell session in the extracted folder's directory.
6. Connect your Samsung Android phone to your computer with USB debugging enabled. Verify that adb sees your device and the daemon is running with the following command
- `adb devices`
- You should see the device name listed as a "device".
- At this point your device should prompt you to accept USB debugging from your computer. Tap "Allow".

7. Enter your device's shell with the following command
- `adb shell`
8. Once in the device's shell, copy and paste all desired commands from [commands.txt](./commands.txt) to remove the package.

## Other
Once in your device's shell, you can use the following command to list installed packages by name.
- `pm list package | grep ''`

For example, to list all installed packages with Facebook in their name, you'd type,
- `pm list package | grep 'facebook'`

## Sources
- https://developer.android.com/studio/command-line/adb
- https://www.xda-developers.com/disable-system-app-bloatware-android/
- https://forum.xda-developers.com/showpost.php?p=73894621&postcount=23
- Package Disabler Pro