[ZIP][FLASHABLE][8.0&7.0]Project Deep Clean - Keep only what you actually use

ImbaWind

Senior Member
Jul 12, 2011
1,774
3,895
143
?
Long story short, this is a zip to debloat your S8 and probably other Samsung devices. Please modify it to suit your firmware. *As long as your rom is from Samsung, regardless of nougat or oreo, most of the package names should be the same thus this zip should still remove quite a lot of them by default, you will need some minor edits to match your rom perfectly though.

The attached zip is what I'm currently using, there's something that I had commented out because I use that feature and never tried disabling it. Please feel free to experiment with it and modify the script as per your need. However, do pay close attention to some of the lines as activating them will cause your phone fail to boot.

If you had any error or knowledge about what certain file does, please provide feedback so that we can improve this script. The ultimate goal is to know what we can stripe off from TouchWiz ROM until close AOSP state without breaking features that we use, that includes .apk files, files of any format and even related lines in build.prop.

Also, for anyone who wishes to use this script in any way, please feel free to do so. No need to inform or give credit.

Since I do not backup my file before testing, I'm using Github to do this for me. The most updated version will be on Github.
For more information please visit Github.


Credit
  • SoLdieR9312 for his OREO BETA6 Debloat zip as template.
  • foobar66 for his debloat shell script as a reference.
  • Google as well as several posts in XDA Developers forum
 

Attachments

Last edited:

ImbaWind

Senior Member
Jul 12, 2011
1,774
3,895
143
?
After this zip your phone will be left with:


  • Stock Samsung Audio (Adapt sound, SoudAlive, etc)
  • Stock Samsung AOD
  • Stock Samsung Calculator
  • Stock Samsung Calendar
  • Stock Samsung Camera & all plugin
  • Stock Samsung Clock
  • Stock Samsung Contacts
  • Stock Samsung Device maintenance w/ McAfee removed
  • Stock Samsung Gallery & related editor
  • Stock Samsung Game Launcher & services
  • Stock Samsung Live wallpaper picker
  • Stock Samsung Messages
  • Stock Samsung Music
  • Stock Samsung Phone
  • Stock Samsung Smart capture (Screenshot w/ crop, drawing features)
  • Stock Samsung Launcher
  • Stock Samsung Video Player
  • Samsung Desktop Smart Switch support .apk file
  • Google play etc among some preloads
  • And some files that IDK what they do/what will happen after removal

Over hundred of apk files will be removed.
Theme center and Samsung account will also be removed, if you want to use theme, please comment them out before flashing.
They can be removed after you applied your theme and will stick after reboot. This is what I did too.
 
Last edited:

kleen3r

Senior Member
Nov 8, 2009
269
79
0
I'm on AQGL and used Flashfire but the script doesn't seem to work. I updated the script to reflect the boot device as /dev/block/platform/soc/1da4000.ufshc/by-name/system but that didn't work either. Any other hints or suggestions?

TIA.
 
  • Like
Reactions: djcrystals

Saibot.XI

Senior Member
Nov 6, 2014
59
19
0
Abu Dhabi
I'm on AQGL and used Flashfire but the script doesn't seem to work. I updated the script to reflect the boot device as /dev/block/platform/soc/1da4000.ufshc/by-name/system but that didn't work either. Any other hints or suggestions?

TIA.
used the updated script from github and works perfectly!
 
Last edited:

ImbaWind

Senior Member
Jul 12, 2011
1,774
3,895
143
?
is this working on 955N or 950N variant?
I do expect people here to experiment with it, as I said in Github this is not (completely) noob-friendly.

You can cross check the script with your ROM, majority of the Samsung preloaded app will be the same, the difference usually is carrier apps. Maybe I shouldn't mention that I'm using AQL5.

XDA developer yeah, not XDA noobs.
 

ImbaWind

Senior Member
Jul 12, 2011
1,774
3,895
143
?
I'm on AQGL and used Flashfire but the script doesn't seem to work. I updated the script to reflect the boot device as /dev/block/platform/soc/1da4000.ufshc/by-name/system but that didn't work either. Any other hints or suggestions?

TIA.
I've no idea what is flashfire, sorry about that.
 

ImbaWind

Senior Member
Jul 12, 2011
1,774
3,895
143
?
It's an app that flashes zip files similar to TWRP. I have the snapdragon 955u variant so cant use twrp since the bootloader is locked. I do have root though.
I see, good to know. Im using an exynos version so cant really figure that out.
You can even delete folder/file one by one by using terminal/root explorer according to my updater-script, that shouldn't make much of a difference.
 

ImbaWind

Senior Member
Jul 12, 2011
1,774
3,895
143
?
I personally use the Package Disabler because I'm not that worried about space but the script helped me extremely on what to disable. Very helpful. (also on aql5 btw)
System space is quite useless, but it makes people like me feel better when useless stuff is actually gotten rid of.
Plus it is able to remove files, that's beyond the ability of package disabler.
 
  • Like
Reactions: dr460nf1r3

torhect

Senior Member
Nov 4, 2014
584
47
28
Hey after flashing this tool i have problem : screen write is ereased and when i want to use root file to open system/app my device suddenly reboot:( what could be the problem?
 

ImbaWind

Senior Member
Jul 12, 2011
1,774
3,895
143
?
Work on 7.0 aql5? Renovate 7.5
Im using stock aql5, how do you define 'work' tho?
EDIT: This zip basically removes stuff, so if your ROM contains the stuff that match the updater-script, it gets removed. Nothing magic happening here.

Hey after flashing this tool i have problem : screen write is ereased and when i want to use root file to open system/app my device suddenly reboot:( what could be the problem?
This script doesn't remove the function that allows you to draw on your screenshot cause I'm using that too, one of the actually handy feature added by Samsung...

The reboot part, I'm not sure. Somehow when I try to add back apks directly to system via explorer, my /data partition gets corrupted with
Code:
persist.security.tlc.otp structure needs cleaning
in TWRP, only format data fixes this, and this happened to me twice so I'd recommend you to flash them in instead using the rescue zip template I provided in Github.
 
Last edited:

zxspectrun

Senior Member
Jun 26, 2012
428
86
58
The script is really good, I just read it line by line but since I see some issues reported for some people I prefer to try it out later


Edit: i was thinking on replace all Samsung needed apps with Google ones like phone and dialer, anyone knows a port from those?
 
Last edited: