Remove All Ads from XDA

Auto-Debloat S4 Flashable Zip! [16 Jun 2013]

348 posts
Thanks Meter: 811
By sendust7, Senior Member on 16th June 2013, 08:15 AM
Post Reply Email Thread
Now you can auto-debloat your Galaxy S4 beauty using my new Auto-Debloat S4 flashable zip!


This is tested working on my rooted, unlocked (bootloader) SGH-I337 (AT&T) running Stock AT&T JB 4.2.2 I337UCUAMDL and TWRP Recovery

But it should work on just about any S4 ROM though the primary target is JB 4.2.2.

Now of course there are many ways to debloat your rooted S4. But you may find this one very useful.

By default, my flashable zip frees up 600MB of precious space in your 2.7GB /system partition by removing approximately 90 bloatware apks and their corresponding odex files! Run time is just over 30 seconds.

And the customizable database file (bloatware-apk-sorted.txt) is sorted by file size to help you focus on big bloats like Samsung’s Health app “SHealth2.apk” (88 MB).

Thus you can debloat even more by extracting the database “bloatware-apk-sorted.txt” from zip, changing filename suffixes from “.KEEP” to “.apk”, reinserting database and reflashing. Run time is shorter on the second and subsequent passes.

Want to "rebloat"? No problem: All bloatware is safely moved to a special directory: /sdcard/Download/Bloatware for quick recovery.

As usual, “I will let YOU DECIDE whether to wipe data!”

Here’s a clip of my original database “bloatware-apk-sorted.txt” showing some of the worst offenders --- at least in terms of file size:


-rw-r--r-- 1 root root 88540395 Apr 27 2013 SecSettings.KEEP

-rw-r--r-- 1 root root 87854416 Apr 27 2013 SHealth2.apk
-rw-r--r-- 1 root root 39695494 Apr 27 2013 Episodes.apk

-rw-r--r-- 1 root root 39428223 Apr 27 2013 SecGallery2013.KEEP

-rw-r--r-- 1 root root 36196565 Apr 27 2013 GroupPlay_20.apk
-rw-r--r-- 1 root root 33781912 Apr 27 2013 InteractiveTutorial.apk

-rw-r--r-- 1 root root 28792764 Apr 27 2013 SecContacts.KEEP

-rw-r--r-- 1 root root 27349911 Apr 27 2013 S-Voice_Android_phone_J.apk
-rw-r--r-- 1 root root 26746285 Apr 27 2013 Match3VS.apk
-rw-r--r-- 1 root root 25549401 Apr 27 2013 SMemo2.apk
-rw-r--r-- 1 root root 25440434 Apr 27 2013 Peel.apk
-rw-r--r-- 1 root root 23676201 Apr 27 2013 SamsungBooks.apk
-rw-r--r-- 1 root root 23168685 Apr 27 2013 AllSharePlay15.apk
-rw-r--r-- 1 root root 22967881 Apr 27 2013 ChatONV_J.apk

-rw-r--r-- 1 root root 22829640 Apr 27 2013 ClockPackage.KEEP
-rw-r--r-- 1 root root 22407406 Apr 27 2013 PolarisOffice5.KEEP

And here’s the script engine:



echo " "
echo "Auto-Debloat for Samsung S4!"
echo "Initial Release (16 Jun 2013)"
echo "sendust7 @ xda developers"


echo " "
echo "All bloatware files are suffixed by .apk in $bloatfile"
echo "System apps to be retained are suffixed by .KEEP in $bloatfile"
echo "All bloatware (apk and odex) will be moved to $bloatdir"

if [ -d $bloatdir ]; then
echo " "
echo " "
mkdir $bloatdir

while read line; do

apkname=$(echo $line | cut -d" " -f9)
apkprefix=$(echo $apkname | cut -d"." -f1)

if [ -f /system/app/$apkname ]; then

echo "Moving /system/app/$apkname to $bloatdir ..."
mv /system/app/$apkname $bloatdir

if [ -f /system/app/$apkodex ]; then

echo "Moving /system/app/$apkodex to $bloatdir ..."
mv /system/app/$apkodex $bloatdir



done < $bloatfile

Blessings Enjoy
The Following 11 Users Say Thank You to sendust7 For This Useful Post: [ View ] Gift sendust7 Ad-Free
16th June 2013, 12:46 PM |#2  
xBeerdroiDx's Avatar
Senior Member
Flag Fort Worth
Thanks Meter: 1,757
25th February 2015, 06:36 AM |#3  
Thanks Meter: 3
Can i use your application to debloat my Samsung Galaxy S4 Active SGH-i537. Running android 4.2.2. Its branded by AT&T and want to get rid of these crapy apps of AT&T. Kindly let me know.

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes