Skip to content

Commit

Permalink
Changed the organization to separate dangerous packages
Browse files Browse the repository at this point in the history
  • Loading branch information
JnBenites committed Jul 23, 2023
1 parent edff556 commit ce3daae
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 269 deletions.
93 changes: 27 additions & 66 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,87 +1,48 @@
## Remove-bloatware-for-android
# Remove-bloatware-for-android

A simple tool to uninstall multiple bloat apps with a single command. To run it requires Android Debug Bridge (ADB).

### Requirements
## Requirements

* Data cable
* <a href="https://developer.android.com/studio/releases/platform-tools" target="_blank">Android Debug Bridge (ADB)</a>

## Script options for linux and windows
#### 0 Clear screen
* Clear screen (only for linux)
#### 1 Checking for devices
* Check if the device is connected
#### 2. Save list for packages
* Save list of names of applications installed on the device. -> packages.txt :page_facing_up:
#### 3. Reboot System Now
* Reboot the device quickly using ADB. :repeat:
#### 4. Remove-bloatware
* Uninstall bloat apps from Xiaomi, samsung, google, microsoft and more
#### 5. Exit
* Exit

## Screenshot

<a><img src="https://i.postimg.cc/y6SqWYzC/capturadepantalla-linux.png" alt="capturadepantalla-linux"/></a>
* [Android Debug Bridge (ADB)](https://developer.android.com/studio/releases/platform-tools)

<a><img src="https://i.postimg.cc/FzSw6GxH/capturadepantalla-windows.png" alt="capturadepantalla-windows"/></a><br/><br/>
## Script options for Linux and Windows

#### 0. Exit
* Clear screen (only for Linux)

## Linux

Debian/Ubuntu

``sudo apt install android-tools-adb``

Centos/Fedora/openSUSE
#### 1. Checking for devices
* Check if the device is connected

``sudo dnf install android-tools``
#### 2. Save list for packages
* Save a list of names of applications installed on the device. -> packages.txt 📄

ArchLinux y derivados
#### 3. Remove Facebook bloatware
* Uninstall Facebook bloatware

``sudo pacman -Sy android-tools``
#### 4. Remove Google bloatware
* Uninstall Google bloatware

## File organitation in windows
```
README
LICENCIE
Remove-bloatware <-- Executable
adb
AdbWinApi.dll
AdbWinUsbApi.dll
dmtracedump
etc1tool
fastboot
hprof-conv
libwinpthread-1.dll
make_f2fs
make_f2fs_casefold
mke2fs.conf
mke2fs
NOTICE
source
sqlite3
```
## For linux
Unzip and move the platform-tools folder to /opt/
#### 5. Remove Microsoft bloatware
* Uninstall Microsoft bloatware

``
/opt/
``
#### 6. Removing Xiaomi Bloatware
* Uninstall Xiaomi bloatware

give permissions to .sh script
#### 7. Removing Bloatware extra
* Uninstall extra bloatware

``
sudo chmod +x remove-bloatware.sh
``
`- DANGER: Can corrupt your system completely -`

run script
#### 8. Removing miui securitycenter
* Uninstall miui securitycenter bloatware

``
./remove-bloatware.sh
``
#### 9. Removing Samsung Knox
* Uninstall Samsung Knox bloatware

## Contributions
Issues will be fixed asap. Pull Request Welcomed
https://github.com/JnBenites/Remove-bloatware-for-android/issues


201 changes: 103 additions & 98 deletions remove-bloatware.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,144 +2,116 @@
:start
cls
echo Select an option::
echo 1. Checking for devices 1
echo 2. Save list for packages 2
echo 3. Reboot System Now 3
echo 4. Remove-bloatware 4
echo 5. Exit 5
echo.
echo 0. Exit
echo 1. Checking for devices
echo 2. Save list for packages
echo.
echo 3. Remove Facebook bloatware
echo 4. Remove Google bloatware
echo 5. Remove Microsoft bloatware
echo 6. Removing Xiaomi Bloatware
echo 7. Removing Bloatware extra
echo - DANGER Can corrupt your system completely DANGER -
echo 8. Removing miui securitycenter
echo 9. Removing samsung Knox
echo.

set /p opcion=Enter the number of the option you want:

if "%opcion%"=="0" goto opcion0
if "%opcion%"=="1" goto opcion1
if "%opcion%"=="2" goto opcion2
if "%opcion%"=="3" goto opcion3
if "%opcion%"=="4" goto opcion4
if "%opcion%"=="5" goto opcion5
if "%opcion%"=="6" goto opcion6
if "%opcion%"=="7" goto opcion7
if "%opcion%"=="8" goto opcion8
if "%opcion%"=="9" goto opcion9
echo Opción no válida
goto start

:opcion0
echo Bye
Exit

:opcion1
echo Checking for devices... 1
echo Checking for devices...
adb devices
pause
goto start

:opcion2
echo Save list for packages 2
echo Save list for packages
adb shell pm list packages> ListPackages.txt
echo List saved in packages.txt
echo done
pause
goto start

:opcion3
adb reboot
goto start

:opcion4
echo Removing bloatware...
echo Removing Facebook Bloatware .....
adb shell pm uninstall -k --user 0 com.android.providers.partnerbookmarks
echo Remove Facebook bloatware
adb shell pm uninstall -k --user 0 com.facebook.katana
adb shell pm uninstall -k --user 0 com.facebook.appmanager
adb shell pm uninstall -k --user 0 com.facebook.services
adb shell pm uninstall -k --user 0 com.facebook.system
pause
goto start

echo Google apps .....
adb shell pm uninstall -k --user 0 com.google.android.setupwizard
adb shell pm uninstall -k --user 0 com.google.android.googlequicksearchbox
:opcion4
echo Remove google bloatware
adb shell pm uninstall -k --user 0 com.android.chrome
adb shell pm uninstall -k --user 0 com.android.hotwordenrollment.google
adb shell pm uninstall -k --user 0 com.android.stk
adb shell pm uninstall -k --user 0 com.google.android.apps.docs
adb shell pm uninstall -k --user 0 com.google.android.apps.googleassistant
adb shell pm uninstall -k --user 0 com.google.android.apps.podcasts
adb shell pm uninstall -k --user 0 com.google.android.apps.subscriptions.red
adb shell pm uninstall -k --user 0 com.google.android.apps.magazines
adb shell pm uninstall -k --user 0 com.google.android.apps.maps
adb shell pm uninstall -k --user 0 com.google.android.apps.photos
adb shell pm uninstall -k --user 0 com.google.android.apps.podcasts
adb shell pm uninstall -k --user 0 com.android.hotwordenrollment.xgoogle
adb shell pm uninstall -k --user 0 com.google.android.apps.youtube.music
adb shell pm uninstall -k --user 0 com.google.android.youtube
adb shell pm uninstall -k --user 0 com.google.android.apps.subscriptions.red
adb shell pm uninstall -k --user 0 com.google.android.apps.tachyon
adb shell pm uninstall -k --user 0 com.google.android.apps.walletnfcrel
adb shell pm uninstall -k --user 0 com.android.chrome
adb shell pm uninstall -k --user 0 com.google.android.apps.walletnfcrel
adb shell pm uninstall -k --user 0 com.google.android.apps.photos
adb shell pm uninstall -k --user 0 com.google.android.googlequicksearchbox
adb shell pm uninstall -k --user 0 com.google.android.gm
adb shell pm uninstall -k --user 0 org.mipay.android.manager
adb shell pm uninstall -k --user 0 com.google.android.apps.maps
adb shell pm uninstall -k --user 0 com.google.android.apps.docs
adb shell pm uninstall -k --user 0 com.google.android.setupwizard
adb shell pm uninstall -k --user 0 com.google.android.videos
adb shell pm uninstall -k --user 0 com.android.stk

echo Removing Microsoft Bloatware .....
adb shell pm uninstall -k --user 0 com.google.android.youtube
adb shell pm uninstall -k --user 0 org.mipay.android.manager
adb shell pm uninstall -k --user 0 com.google.android.apps.youtube.music
pause
goto start

:opcion5
echo Removing Microsoft Bloatware
adb shell pm uninstall -k --user 0 com.microsoft.office.excel
adb shell pm uninstall -k --user 0 com.microsoft.skydrive
adb shell pm uninstall -k --user 0 com.microsoft.office.word
adb shell pm uninstall -k --user 0 com.microsoft.office.powerpoint
adb shell pm uninstall -k --user 0 com.microsoft.office.onenote
adb shell pm uninstall -k --user 0 com.microsoft.office.powerpoint
adb shell pm uninstall -k --user 0 com.microsoft.office.word
adb shell pm uninstall -k --user 0 com.microsoft.skydrive
pause
goto start

echo Removing samsung Bloatware .....
adb shell pm uninstall -k --user 0 flipboard.boxer.app
adb shell pm uninstall -k --user 0 com.samsung.android.weather
adb shell pm uninstall -k --user 0 com.samsung.android.easysetup
adb shell pm uninstall -k --user 0 com.samsung.android.app.notes
adb shell pm uninstall -k --user 0 com.samsung.android.app.galaxyfinder
adb shell pm uninstall -k --user 0 com.samsung.knox.securefolder.setuppage
adb shell pm uninstall -k --user 0 com.samsung.knox.securefolder
adb shell pm uninstall -k --user 0 com.samsung.android.voc
adb shell pm uninstall -k --user 0 com.samsung.android.email.provider
adb shell pm uninstall -k --user 0 com.samsung.android.scloud
adb shell pm uninstall -k --user 0 com.sec.android.widgetapp.samsungapps
adb shell pm uninstall -k --user 0 com.sec.android.app.samsungapps
adb shell pm uninstall -k --user 0 com.sec.android.daemonapp
adb shell pm uninstall -k --user 0 com.sec.android.app.voicenote
adb shell pm uninstall -k --user 0 com.sec.android.service.health
adb shell pm uninstall -k --user 0 com.sec.android.app.sbrowser
adb shell pm uninstall -k --user 0 com.sec.android.app.fm
adb shell pm uninstall -k --user 0 com.sec.android.soagent
adb shell pm uninstall -k --user 0 com.sec.android.app.shealth
adb shell pm uninstall -k --user 0 com.sec.android.widgetapp.webmanual
adb shell pm uninstall -k --user 0 com.linkedin.android
adb shell pm uninstall -k --user 0 com.samsung.android.coreapps
adb shell pm uninstall -k --user 0 com.samsung.android.beaconmanager
adb shell pm uninstall -k --user 0 com.samsung.android.app.simplesharing
adb shell pm uninstall -k --user 0 com.opera.max.oem

echo Removing knox Bloatware ....
adb shell pm uninstall -k --user 0 com.sec.knox.switcher
adb shell pm uninstall -k --user 0 com.samsung.knox.appsupdateagent
adb shell pm uninstall -k --user 0 com.sec.knox.foldercontainer
adb shell pm uninstall -k --user 0 com.samsung.knox.securefolder.setuppage
adb shell pm uninstall -k --user 0 com.samsung.knox.securefolder
adb shell pm uninstall -k --user 0 com.sec.knox.kss
adb shell pm uninstall -k --user 0 com.sec.knox.knoxsetupwizardclient

echo Xiaomi apps ....
::#adb shell pm uninstall -k --user 0 com.caf.fmradio
::#adb shell pm uninstall -k --user 0 com.miui.fm
::#adb shell pm uninstall -k --user 0 com.miui.fmservice
::#adb shell pm uninstall -k --user 0 com.android.thememanager
::#adb shell pm uninstall -k --user 0 com.miui.player
::#adb shell pm uninstall -k --user 0 com.xiaomi.discover
:opcion6
echo Removing Xiaomi Bloatware
adb shell pm disable-user com.xiaomi.scanner
adb shell pm disable-user com.miui.notes
adb shell pm disable-user com.miui.weather2
adb shell pm disable-user com.mi.globalbrowser
adb shell pm uninstall com.mi.global.bbs
adb shell pm uninstall -k --user 0 com.xiaomi.glgm
adb shell pm uninstall -k --user 0 com.miui.miservice
adb shell pm uninstall -k --user 0 com.xiaomi.discover
adb shell pm uninstall -k --user 0 com.mi.globalminusscreen
adb shell pm uninstall -k --user 0 com.miui.android.fashiongallery
adb shell pm uninstall -k --user 0 android.autoinstalls.config.Xiaomi.qssi
::adb shell pm uninstall -k --user 0 com.miui.fm
::adb shell pm uninstall -k --user 0 com.miui.fmservice
pause
goto start

adb shell pm uninstall -k --user 0 com.xiaomi.account
adb shell pm uninstall -k --user 0 com.miui.android.fashiongallery
adb shell pm uninstall -k --user 0 com.miui.cleaner
adb shell pm uninstall -k --user 0 com.miui.miservice
adb shell pm uninstall -k --user 0 com.xiaomi.midrop
adb shell pm uninstall -k --user 0 com.zhiliaoapp.musically
adb shell pm uninstall -k --user 0 com.xiaomi.micloud.sdk
adb shell pm uninstall -k --user 0 com.miui.micloudsync
adb shell pm uninstall -k --user 0 com.miui.cloudbackup
adb shell pm uninstall -k --user 0 com.miui.cloudservice
adb shell pm uninstall -k --user 0 com.xiaomi.glgm
adb shell pm uninstall -k --user 0 com.xiaomi.payment4

::#adb shell pm uninstall -k --user 0 com.miui.securitycenter
::#adb shell pm uninstall -k --user 0 com.miui.guardprovider
::#adb shell pm uninstall -k --user 0 com.miui.securitycore
echo More apps ....
:opcion7
echo Removing Bloatware extra
adb shell pm uninstall -k --user 0 com.android.egg
adb shell pm uninstall -k --user 0 com.android.providers.partnerbookmarks
adb shell pm uninstall -k --user 0 com.android.bookmarkprovider
Expand All @@ -152,11 +124,44 @@ goto start
adb shell pm uninstall -k --user 0 cn.wps.moffice_eng
adb shell pm uninstall -k --user 0 com.android.stk
adb shell pm uninstall -k --user 0 com.csdroid.spkg
adb shell pm uninstall -k --user 0 com.zhiliaoapp.musically
adb shell pm uninstall -k --user 0 com.king.candycrushsaga
pause
goto start

:opcion8
echo Removing Securitycenter Bloatware
adb shell pm uninstall -k --user 0 com.miui.securitycenter
adb shell pm uninstall -k --user 0 com.miui.guardprovider
adb shell pm uninstall -k --user 0 com.miui.securitycore
adb shell pm uninstall -k --user 0 com.miui.cleaner
pause
goto start

:opcion9
echo Removing Xnox Bloatware
adb shell pm uninstall -k --user 0 com.samsung.knox.appsupdateagent
adb shell pm uninstall -k --user 0 com.sec.knox.foldercontainer
adb shell pm uninstall -k --user 0 com.sec.knox.knoxsetupwizardclient
adb shell pm uninstall -k --user 0 com.sec.knox.kss
adb shell pm uninstall -k --user 0 com.sec.knox.switcher
adb shell pm uninstall -k --user 0 com.samsung.knox.securefolder
adb shell pm uninstall -k --user 0 com.samsung.knox.securefolder.setuppage
pause
goto start

:opcion5
echo Bye
Exit


::EXTRA
::adb
::adb shell pm uninstall -k --user 0 com.miui.fm
::adb shell pm uninstall -k --user 0 com.miui.fmservice
::adb shell pm uninstall -k --user 0 com.android.thememanager
::adb shell pm uninstall -k --user 0 com.miui.player
::adb shell pm uninstall -k --user 0 com.xiaomi.micloud.sdk
::adb shell pm uninstall -k --user 0 com.miui.micloudsync
::adb shell pm uninstall -k --user 0 com.miui.cloudbackup
::adb shell pm uninstall -k --user 0 com.miui.cloudservice
::adb shell pm uninstall -k --user 0 com.xiaomi.payment4
::adb shell pm uninstall -k --user 0 com.xiaomi.account
::adb shell pm uninstall -k --user 0 com.xiaomi.midrop
Loading

0 comments on commit ce3daae

Please sign in to comment.