Now you can auto-debloat your Galaxy S4 beauty using my new Auto-Debloat S4 flashable zip!
Link: http://www.mediafire.com/download/awabu8cg5a19lj4/Debloat-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:
-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
Click to expand...
Click to collapse
And here’s the script engine: auto-debloat.sh
#!/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
Click to expand...
Click to collapse
Blessings Enjoy
Boom.
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.
Regards,
Related
Dear jellaxy developers,
I'm not allowed to ask this one in the development section, because I am a noob with less then 10 posts. Obviously I have to post 10 posts.....
CM10 2012-11-04: GIO:
Great Release, no Problems so far. For me faster and more memory efficient than cm9.
But BLN does not work. In earlier CM9 releases I managed to get some liblights.so to get it running. In a later post I found erikcas mentioning that the lights.so have to be deleted... Neither works. My /system/lib/hw looks like:
localhost hw # ls -l
total 1177
-rw-r--r-- 1 root root 58768 Aug 1 2008 audio.a2dp.default.so
-rw-r--r-- 1 root root 5524 Aug 1 2008 audio.primary.default.so
-rw-r--r-- 1 root root 50692 Aug 1 2008 audio.primary.gio.so
-rw-r--r-- 1 root root 75324 Aug 1 2008 audio_policy.default.so
-rw-r--r-- 1 root root 75320 Aug 1 2008 audio_policy.gio.so
-rw-r--r-- 1 root root 17800 Aug 1 2008 camera.gio.so
-rw-r--r-- 1 root root 9552 Aug 1 2008 copybit.msm7x27.so
-rw-r--r-- 1 root root 9608 Aug 1 2008 gps.goldfish.so
-rw-r--r-- 1 root root 60788 Aug 1 2008 gps.msm7x27.so
-rw-r--r-- 1 root root 9888 Aug 1 2008 gralloc.default.so
-rw-r--r-- 1 root root 18104 Aug 1 2008 gralloc.msm7x27.so
-rw-r--r-- 1 root root 42348 Aug 1 2008 hwcomposer.msm7x27.so
-rw-r--r-- 1 root root 9572 Aug 1 2008 keystore.default.so
-rw-r--r-- 1 root root 9748 Aug 1 2008 lights.msm7x27.so
-rw-r--r-- 1 root root 5464 Aug 1 2008 local_time.default.so
-rw-r--r-- 1 root root 5416 Aug 1 2008 power.default.so
-rw-r--r-- 1 root root 84112 Aug 1 2008 sensors.gio.so
-rw-r--r-- 1 root root 9568 Aug 1 2008 sensors.goldfish.so
I tried to delete the lights.msm7x27, but I think this ones for the brightness of the display....
Any hints?
Best Regards
K
Rename from .zip to .so and put it in /system/lib/hw (rw-r--r--)
konstantin12 said:
Rename from .zip to .so and put it in /system/lib/hw (rw-r--r--)
Click to expand...
Click to collapse
Thanks, I tried this. It looked like that:
localhost home # mount -o rw,remount /system/system
localhost home # cd /system/lib/hw/
localhost hw # mv /data/lights.gio\(1\).zip .
localhost hw # mv lights.gio\(1\).zip lights.gio.so
localhost hw # chmod 644 lights.gio.so
localhost hw # mount -o ro,remount /systemnt /system
localhost hw # ls -l
total 1193
-rw-r--r-- 1 root root 58768 Aug 1 2008 audio.a2dp.default.so
-rw-r--r-- 1 root root 5524 Aug 1 2008 audio.primary.default.so
-rw-r--r-- 1 root root 50692 Aug 1 2008 audio.primary.gio.so
-rw-r--r-- 1 root root 75324 Aug 1 2008 audio_policy.default.so
-rw-r--r-- 1 root root 75320 Aug 1 2008 audio_policy.gio.so
-rw-r--r-- 1 root root 17800 Aug 1 2008 camera.gio.so
-rw-r--r-- 1 root root 9552 Aug 1 2008 copybit.msm7x27.so
-rw-r--r-- 1 root root 9608 Aug 1 2008 gps.goldfish.so
-rw-r--r-- 1 root root 60788 Aug 1 2008 gps.msm7x27.so
-rw-r--r-- 1 root root 9888 Aug 1 2008 gralloc.default.so
-rw-r--r-- 1 root root 18104 Aug 1 2008 gralloc.msm7x27.so
-rw-r--r-- 1 root root 42348 Aug 1 2008 hwcomposer.msm7x27.so
-rw-r--r-- 1 root root 9572 Aug 1 2008 keystore.default.so
-rw-r--r-- 1 root root 6170 Nov 8 07:59 lights.gio.so
-rw-r--r-- 1 root root 9748 Aug 1 2008 lights.msm7x27.so
-rw-r--r-- 1 root root 5464 Aug 1 2008 local_time.default.so
-rw-r--r-- 1 root root 5416 Aug 1 2008 power.default.so
-rw-r--r-- 1 root root 84112 Aug 1 2008 sensors.gio.so
-rw-r--r-- 1 root root 9568 Aug 1 2008 sensors.goldfish.so
localhost hw # exit
BLN Control still shows an error.
Maybe I should try a fresh install, since I upgraded from a CM9. Hmmm.
D859 has 2sims, I can't use other g3 template, right
I already read a loi of information from cm wiki about hout to build a cm,
but I still have any clue yet,
I got D859 official rom scr code yesterday from opensource.lge.com,
I don't know how can I start for building cm,
I need some help, thank you!:laugh:
Here is the list of the files
LGD859_Lollipop_LGD859_V20a_Android_opensource/android/external: $ ls -al
drwxr-xr-x 17 578 brctl
drwxr-xr-x 21 714 dnsmasq
drwxr-xr-x 44 1496 e2fsprogs
drwxr-xr-x 7 238 ebtables
drwxr-xr-x 12 408 gcc-demangle
drwxr-xr-x 25 850 iproute2
drwxr-xr-x 21 714 iptables
drwxr-xr-x 31 1054 iputils
drwxr-xr-x 15 510 junit
drwxr-xr-x 41 1394 libexif
drwxr-xr-x 20 680 libnetfilter_conntrack
drwxr-xr-x 16 544 libnfnetlink
drwxr-xr-x 18 612 libnl
LGD859_Lollipop_LGD859_V20a_Android_opensource/android/vendor/lge: $ ls -la
drwxr-xr-x 3 102 apps
drwxr-xr-x 3 102 build
drwxr-xr-x 5 170 external
drwxr-xr-x 3 102 factory
drwxr-xr-x 4 136 frameworks
drwxr-xr-x 3 102 prebuilt
drwxr-xr-x 4 136 system
LGD859_Lollipop_LGD859_V20a_Android_opensource/kernel: $ ls -al
-rw-r--r-- 1 5935 AndroidKernel.mk
-rw-r--r-- 1 18693 COPYING
-rw-r--r-- 1 94984 CREDITS
drwxr-xr-x 237 8058 Documentation
-rw-r--r-- 1 2536 Kbuild
-rw-r--r-- 1 252 Kconfig
-rw-r--r-- 1 210475 MAINTAINERS
-rw-r--r-- 1 53855 Makefile
-rw-r--r-- 1 364155 Module.symvers
-rw-r--r-- 1 17459 README
-rw-r--r-- 1 3371 REPORTING-BUGS
drwxr-xr-x 31 1054 arch
drwxr-xr-x 38 1292 block
drwxr-xr-x 89 3026 crypto
drwxr-xr-x 112 3808 drivers
drwxr-xr-x 55 1870 firmware
drwxr-xr-x 149 5066 fs
drwxr-xr-x 26 884 include
drwxr-xr-x 14 476 init
drwxr-xr-x 17 578 ipc
drwxr-xr-x 133 4522 kernel
drwxr-xr-x 150 5100 lib
drwxr-xr-x 79 2686 mm
drwxr-xr-x 62 2108 net
drwxr-xr-x 14 476 samples
drwxr-xr-x 91 3094 scripts
drwxr-xr-x 18 612 security
drwxr-xr-x 28 952 sound
drwxr-xr-x 14 476 tools
-rw-r--r-- 1 37204 tuxera_update.sh
drwxr-xr-x 9 306 usr
drwxr-xr-x 3 102 virt
and its readme file said
1. Android build
- Download original android source code ( L 5.0 ) from source.android.com
- Untar opensource packages of LGD859_L_V20a_Android.tar.gz into downloaded android source directory
a) cat LGD859_L_V20a_Android.tar.gza* | tar zxvpf -
- And, merge the source into the android source code
- Run following scripts to build android
a) source build/envsetup.sh
b) lunch 1
c) make -j4
- When you compile the android source code, you have to add google original prebuilt source(toolchain) into the android directory.
- After build, you can find output at out/target/product/generic
2. Kernel Build
- Uncompress using following command at the android directory
tar xvzf LGD859_L_V20a_Kernel.tar.gz
- When you compile the kernel source code, you have to add google original prebuilt source(toolchain) into the android directory.
- Run following scripts to build kernel
a) cd kernel
1) D859
b) make ARCH=arm CROSS_COMPILE=../prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- g3-ctc_cn-perf_defconfig zImage -j4
* "-j4" : The number, 4, is the number of multiple jobs to be invoked simultaneously.
- After build, you can find the build image(zImage) at arch/arm/boot
3. how to build chromium34_lge (vendor\lge\external\chromium34_lge\src),
please refer to README.txt at the folder mentioned above.
After rooting of 2 of huawei y300-100 with rootgenius i found out that at least 3 apps were deleted by rootgenius. I'm very shure, that e.g. maps was there on both phones, because i proved the working GPS with maps. After using rootgenius, i installed sshdroid, and with df I was surprised about lot of free space in /system. And i saw these apk files with zero size!
Code:
/data/data/berserker.android.apps.sshdroid/home # ls -l /system/app |grep "Jul 14"
-rw-r--r-- 1 root root 0 Jul 14 13:06 GMS_Maps.apk
-rw-r--r-- 1 root root 2979560 Jul 14 13:06 Kinguser.apk
-rw-r--r-- 1 root root 0 Jul 14 13:06 Maps.apk
-rw-r--r-- 1 root root 0 Jul 14 13:06 YouTube.apk
pulling maps and youtube from a 4.0.3 Android (this was the closest i have here) and try to install the apk files fail with "App not installed"
I used version 3.1.7 from here: https://androidmtk.com/download-root-genius-application
So, did somebody else made this experience?
can somebody supply me the original apk files (i dont like maps version 8!) with ADB
adb pull /system/app/Maps.apk maps.apk
and so on from his Y300 ?
btw: can i delete the rootgenius (green dog) app again? The guardian to root seems to be Kinguser.
I was wondering where init.d might be located on 5X? Not able to find it in /system/etc/ like most devices.
Basically trying to include a new init.d script but not sure where to put it.
Thanks in advance!
catharsis724 said:
I was wondering where init.d might be located on 5X? Not able to find it in /system/etc/ like most devices.
Basically trying to include a new init.d script but not sure where to put it.
Thanks in advance!
Click to expand...
Click to collapse
Try placing in /su/su.d/ if you're rooted with superSU
Sent from my SHIELD Tablet K1 using Tapatalk
Exile1975 said:
Try placing in /su/su.d/ if you're rooted with superSU
Sent from my SHIELD Tablet K1 using Tapatalk
Click to expand...
Click to collapse
Might not have that because I have systemless phh Superuser.
Code:
bullhead:/ # ls
...
drwxr-xr-x 3 0 2016-11-28 00:38 res
drwx------ 2 0 2016-11-07 18:55 root
drwxr-xr-x 3 4.0K 2016-11-28 11:20 sbin
lrwxrwxrwx 1 21 2016-11-28 00:38 sdcard -> /storage/self/primary
-rw-r--r-- 1 758 2016-11-28 00:38 seapp_contexts
-rw-r--r-- 1 68 2016-11-28 00:38 selinux_version
-rw-r--r-- 1 203K 2016-11-28 00:38 sepolicy
-rw-r--r-- 1 11K 2016-11-28 00:38 service_contexts
drwxr-xr-x 4 80 2016-11-28 11:20 storage
dr-xr-xr-x 13 0 1971-01-18 11:50 sys
drwxr-xr-x 17 4.0K 2016-11-27 15:50 system
...
Hello,
I just want to compile Lineageos 16.0 for my old HTC10 (PME).
I followed the guide at wiki.lineageos.org/devices/pme/build
I have synced the repo without issues.
Now I have the problem to integrate the proprietary blobs into the source tree.
I have extracted the files from an available ROM.
The files are now stored under
/android/system_dump/system
Code:
[email protected]:~/android/system_dump/system$ ls -al
insgesamt 2720
drwxr-xr-x. 20 root root 4096 Jan 1 2009 .
drwxrwxr-x 6 lineageos lineageos 4096 Sep 14 22:15 ..
drwxr-xr-x. 2 root root 4096 Jan 1 2009 addon.d
drwxr-xr-x. 55 root root 4096 Jan 1 2009 app
drwxr-xr-x. 3 root 2000 8192 Jan 1 2009 bin
-rw-------. 1 root root 7409 Jan 1 2009 build.prop
-rw-r--r--. 1 root root 116235 Jan 1 2009 compatibility_matrix.xml
drwxr-xr-x. 3 root root 4096 Jan 1 2009 customize
drwxr-xr-x. 21 root root 4096 Jan 1 2009 etc
drwxr-xr-x. 2 root root 4096 Jan 1 2009 fake-libs
drwxr-xr-x. 2 root root 4096 Jan 1 2009 fake-libs64
drwxr-xr-x. 2 root root 12288 Jan 1 2009 fonts
drwxr-xr-x. 5 root root 4096 Jan 1 2009 framework
drwxr-xr-x. 6 root root 16384 Jan 1 2009 lib
drwxr-xr-x. 6 root root 16384 Jan 1 2009 lib64
drwx------. 2 root root 16384 Jan 1 2009 lost+found
drwxr-xr-x. 3 root root 4096 Jan 1 2009 media
drwxr-xr-x. 62 root root 4096 Jan 1 2009 priv-app
drwxr-xr-x. 2 root root 4096 Jan 1 2009 product
-rw-r--r--. 1 root root 2524803 Jan 1 2009 recovery-from-boot.p
drwxr-xr-x. 8 root root 4096 Jan 1 2009 usr
drwxr-xr-x. 15 root 2000 4096 Jan 1 2009 vendor
drwxr-xr-x. 2 root 2000 4096 Jan 1 2009 xbin
Code:
[email protected]:~/android/system_dump/system/vendor$ ls -al
insgesamt 124
drwxr-xr-x. 15 root 2000 4096 Jan 1 2009 .
drwxr-xr-x. 20 root root 4096 Jan 1 2009 ..
drwxr-xr-x. 3 root 2000 4096 Jan 1 2009 app
drwxr-xr-x. 3 root 2000 4096 Jan 1 2009 bin
drwxr-xr-x. 2 root 2000 4096 Jan 1 2009 bt_firmware
-rw-------. 1 root root 6135 Jan 1 2009 build.prop
-rw-------. 1 root root 145 Jan 1 2009 default.prop
drwxr-xr-x. 2 root 2000 4096 Jan 1 2009 dsp
drwxr-xr-x. 14 root 2000 4096 Jan 1 2009 etc
drwxr-xr-x. 2 root 2000 4096 Jan 1 2009 firmware
drwxr-xr-x. 2 root 2000 4096 Jan 1 2009 firmware_mnt
drwxr-xr-x. 2 root 2000 4096 Jan 1 2009 framework
drwxr-xr-x. 8 root 2000 20480 Jan 1 2009 lib
drwxr-xr-x. 7 root 2000 12288 Jan 1 2009 lib64
drwxr-xr-x. 5 root 2000 4096 Jan 1 2009 overlay
drwxr-xr-x. 3 root 2000 4096 Jan 1 2009 radio
drwxr-xr-x. 3 root 2000 4096 Jan 1 2009 rfs
-rw-r--r--. 1 root root 23343 Jan 1 2009 ueventd.rc
Which files do I need? To which location must I copy the files so breakfast recognizes them?
Extract script did not work. It's for the old CyanogenMod 14.1. I have tried to edit the path variable to my lineageos source but it is still not working.
./extract-files.sh ~/android/system_dump/
(The extract script wasn't in the source tree so I copied it from github.com/LineageOS/android_device_htc_pme
But it's from the "cm14-1" source tree. I also copied the "setup-makefiles.sh" file)
Launching "breakfast pme" fails.
Code:
[email protected]:~/android/lineage$ source build/envsetup.sh
including device/generic/car/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/uml/vendorsetup.sh
including vendor/lineage/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/android/lineage$ breakfast pme
including vendor/lineage/vendorsetup.sh
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_pme".
13:17:58 dumpvars failed with: exit status 1
Device pme not found. Attempting to retrieve device repository from LineageOS (Github github.com/LineageOS).
Found repository: android_device_htc_pme
Default revision: lineage-16.0
Checking branch info
Default revision lineage-16.0 not found in android_device_htc_pme. Bailing.
Branches found:
cm-13.0
cm-14.1
Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_pme".
13:18:00 dumpvars failed with: exit status 1
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_pme".
13:18:01 dumpvars failed with: exit status 1
** Don't have a product spec for: 'lineage_pme'
** Do you have the right repo manifest?
What must I do that the proprietary blobs/ firmware filles are working with the "breakfast pme" command?
I would appreciate any help so I could start compiling lineageos 16.0 for my HTC10.
Thank you in advance.
regards
starbuck28