FORUMS

[SCRIPT] Universal Android Debloater

15 posts
Thanks Meter: 16
 
By w1nst0n_fr, Junior Member on 19th March 2020, 09:16 PM
Post Reply Email Thread
12th May 2020, 09:43 PM |#11  
w1nst0n_fr's Avatar
OP Junior Member
Thanks Meter: 16
 
More
Sorry for the wait!

I'm glad you find my project useful !

Quote:
Originally Posted by kurtn

Nice approach. Has someone tried to debloat Google play services? Up till now I install GApps free custom ROMs on my phones.

I don't understand your question. If you want to debloat Google Play Services why do install Gapps in the first place ?

Quote:
Originally Posted by kurtn

Install f-droid and hacker's keyboard before install [...]
Reboot is OK. Playstore still there, but can be deactivated. Samsung_bloat can't be debloated.
Sometimes I get the message Google play services has stopped. [...]
Edit: debloating webview was no good idea. I've got many crashes of antennapod app. Restoring helped.

Small tip : you can directly do
Code:
$ adb install F-droid.apk
There was a pretty nasty bug in v2.1 which prevented using the the "manufacturer lists". Use v2.2.1 (or, better, wait for the v1.3 which should be released within the week!)

If you have the message `Google Play Services has stopped` it means you didn't uninstall the package. Did you uninstall some Google packages in the advanced debloat section ?

Regarding the Google Webview you can uninstall it but a lot of apps will no longer work correctly or even open. Bromite WebView is a good and more private alternative if you really need a Webview (which is a kind of mini web browser for apps which need to display web content btw)


Quote:
Originally Posted by kurtn

Looks good. Only headlines are now says four times Samsung.
GMS debloat fails with some device policy error.

Quote:
Originally Posted by Maybeyou

Hi, thank you for this nice thread, exactly what I was looking for.
Possibly a solution for google play services:
I did deactivated the Google play services on Samsung a20 without computer by entering settings app, then "biometric and security" then "other security settings" then "device admin apps" and unselect "find my device", then head over apps in settings and "show system apps, then search for Google play services and now it can be disabled,
For samsung apps you can deactivate it by deactivating "galaxy store"
Perhaps the user must do that before running the code.
HOPE you can manage to translate that into your code language, and integrate it into your script, so we can all enjoy it.

@Maybeyou is right. You need to uncheck Find My Device from the Device admin apps before trying to uninstall the Google Play Services.

I already mentioned this in the Google.sh file and a script can't do it. It's something you need to do ! I assume a user will read the package description I wrote in the advanced debloat section before doing anything.

Quote:
Originally Posted by Maybeyou

Hi, I encountered a very small problem today when i tried to share a video to another phone through Wi-Fi Direct, I can't share with wifi Direct, the only available option is bluetooth (see attachment), do you how can I solve this ?

Mhm... I delete Wifi-direct by default but I'm gonna change this behavior for the next version.

Restore com.samsung.android.allshare.service.fileshare to get Wifi-direct back
The Following 2 Users Say Thank You to w1nst0n_fr For This Useful Post: [ View ] Gift w1nst0n_fr Ad-Free
13th May 2020, 06:55 AM |#12  
kurtn's Avatar
Senior Member
Flag Small town in Bavaria
Thanks Meter: 1,355
 
More
@w1nst0n_fr thank you. My first post was not about debloating custom rom from GApps. It was a general question: is the debloater an alternative approach to get a 99% Google free phone. My answer: yes, but you need some luck. You can't know how your phone perfoms afterwards. For custom rom there are tons of reports for each device.
13th May 2020, 12:10 PM |#13  
Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by w1nst0n_fr

Sorry for the wait!

I'm glad you find my project useful !

Mhm... I delete Wifi-direct by default but I'm gonna change this behavior for the next version.
Restore com.samsung.android.allshare.service.fileshare to get Wifi-direct back

Yes this is a great project for me, and I did restore com.samsung.android.allshare.service.fileshare and now wifi Direct is working again. Thanks mate, keep up this great work brother
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20200513-110342_Android System.jpg
Views:	74
Size:	212.7 KB
ID:	5017887  
The Following User Says Thank You to Maybeyou For This Useful Post: [ View ] Gift Maybeyou Ad-Free
13th May 2020, 01:12 PM |#14  
w1nst0n_fr's Avatar
OP Junior Member
Thanks Meter: 16
 
More
Quote:
Originally Posted by kurtn

@w1nst0n_fr thank you. My first post was not about debloating custom rom from GApps. It was a general question: is the debloater an alternative approach to get a 99% Google free phone. My answer: yes, but you need some luck. You can't know how your phone performs afterwards. For custom rom there are tons of reports for each device.

Oh ! I misread you first post actually. You were talking about Gapps free phone. I understand better now!

IMO the most reliable and safest way to get a 99% Google free phone is to install an AOSP custom ROM without Gapps. For the 1% left you need to tinker with DNS, WebView, GPS... (this guide is not bad)

I insist on AOSP custom because a stock-based custom ROM has the same issues as my script. The thing is it is not always possible to unlock the bootloader or to find an AOSP ROM for his/her device. This why I created this script.
What is really tedious and not always simple is to document all the packages. There are a LOT of system packages whose the exact function is hard to determine and the consequence of their uninstallation very obscure. When I have the apk I can at least try to reverse-engineer to make some assumptions but it isn't bulletproof.

Quote:
Originally Posted by Maybeyou

Yes this is a great project for me, and I did restore com.samsung.android.allshare.service.fileshare and now wifi Direct is working again. Thanks mate, keep up this great work brother

Thanks.
The Following User Says Thank You to w1nst0n_fr For This Useful Post: [ View ] Gift w1nst0n_fr Ad-Free
13th May 2020, 03:16 PM |#15  
kurtn's Avatar
Senior Member
Flag Small town in Bavaria
Thanks Meter: 1,355
 
More
Quote:
Originally Posted by w1nst0n_fr

Oh ! I misread you first post actually. You were talking about Gapps free phone. I understand better now!

IMO the most reliable and safest way to get a 99% Google free phone is to install an AOSP custom ROM without Gapps. For the 1% left you need to tinker with DNS, WebView, GPS... (this guide is not bad)

I insist on AOSP custom because a stock-based custom ROM has the same issues as my script. The thing is it is not always possible to unlock the bootloader or to find an AOSP ROM for his/her device. This why I created this script.
What is really tedious and not always simple is to document all the packages. There are a LOT of system packages whose the exact function is hard to determine and the consequence of their uninstallation very obscure. When I have the apk I can at least try to reverse-engineer to make some assumptions but it isn't bulletproof.



Thanks.

Nice promotion! "Hey this is second best" I see quite some advantages over aosp rom.
Better hardware support like camera or graphics acceleration.
Better security due to locked boot loader and latest patches in proprietary components.
Better stability - no hobbyists mess around.
15th May 2020, 03:50 AM |#16  
Junior Member
Thanks Meter: 0
 
More
hi developer
can u pls screenshot or youtube record the process please? im abit lost with the whole thing. i am aware how to use adb n remove manually bloatwares. unless u could provide the whole lists of bloatwares?
15th May 2020, 06:43 AM |#17  
kurtn's Avatar
Senior Member
Flag Small town in Bavaria
Thanks Meter: 1,355
 
More
Quote:
Originally Posted by rameshhelp

hi developer
can u pls screenshot or youtube record the process please? im abit lost with the whole thing. i am aware how to use adb n remove manually bloatwares. unless u could provide the whole lists of bloatwares?

Download zip from link in OP. There are human readable files inside
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20200515-073823_Fennec F-Droid.jpg
Views:	128
Size:	124.8 KB
ID:	5019095  
19th May 2020, 05:53 PM |#18  
netcrk's Avatar
Member
Thanks Meter: 3
 
More
I did "install WSL (Windows Subsystem for Linux) in order to be able to use bash scripts and Install ADB. If you want ADB support everywhere on your PC, you need to add the path of the ADB folder in the system variables"
When i use bash app: bash debloat_script.sh and get error "debloat_script.sh: line 112: adb: command not found"
Plz help me, tnx
19th May 2020, 07:42 PM |#19  
kurtn's Avatar
Senior Member
Flag Small town in Bavaria
Thanks Meter: 1,355
 
More
Quote:
Originally Posted by netcrk

I did "install WSL (Windows Subsystem for Linux) in order to be able to use bash scripts and Install ADB. If you want ADB support everywhere on your PC, you need to add the path of the ADB folder in the system variables"
When i use bash app: bash debloat_script.sh and get error "debloat_script.sh: line 112: adb: command not found"
Plz help me, tnx

At some point it's easier to run a real Linux system. Dual boot or live usb stick.
28th May 2020, 04:09 PM |#20  
Junior Member
Thanks Meter: 7
 
More
- hi guys, i would like to share this exported txt file from 'debloater' which i installed as a magisk module to debloat a samsung phone, in essence debloater works in the same way as the script in the main thread ( thanks @w1nst0n_fr ) other than it can be used locally in termux.
- it took me a while to get the phone to a stable state with multiple tries but i eventually managed to do it.
- I've managed to debloat most of samsung/google junk out including but not limited to google apps, i hope this will help
Attached Files
File Type: txt import-debloat.txt - [Click for QR Code] (3.0 KB, 34 views)
Yesterday, 10:55 AM |#21  
Junior Member
Thanks Meter: 0
 
More
Hi ! This script looks really interesting.. Does it work only on smartphones or also on tablets ?
Thanks!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes