Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,770,562 Members 37,944 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
sendust7
Old
(Last edited by sendust7; 16th June 2013 at 07:16 AM.) Reason: Formatting.
#1  
Senior Member - OP
Thanks Meter 772
Posts: 342
Join Date: Oct 2011
Location: California

 
DONATE TO ME
Default Auto-Debloat S4 Flashable Zip! [16 Jun 2013]

Now you can auto-debloat your Galaxy S4 beauty using my new Auto-Debloat S4 flashable zip!

Link: http://www.mediafire.com/download/aw...bloat-SGS4.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 2.5.0.2.

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:

Quote:
-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: auto-debloat.sh

Quote:
#!/sbin/sh

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

bloatdir="/sdcard/Download/Bloatware"
bloatfile="/tmp/bloatware-apk-sorted.txt"

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 " "
else
echo " "
mkdir $bloatdir
fi

while read line; do

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

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

fi

fi

done < $bloatfile
Blessings Enjoy

Motorola Atrix 4g Dual Boot emmc / sdcard ~ SG Note 10.1 JB ~ SGS 4 JB422

Like my work? Click THANKS!
Think you like my work? Read my other threads --- you may change your mind
Not sure you like my work? Stay tuned
Don't like my work? Well... I tried
The Following 10 Users Say Thank You to sendust7 For This Useful Post: [ Click to Expand ]
 
xBeerdroiDx
Old
#2  
xBeerdroiDx's Avatar
Senior Member
Thanks Meter 1403
Posts: 2,317
Join Date: Nov 2012
Location: Fort Worth
Boom.

The All-In-One Guides for the Nexus 5, Galaxy S4 - I337 and Galaxy S3 - I747
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes