FORUMS
Remove All Ads from XDA
Honor View 10

[LP][5.X][XPERIA] Debloating script for xperia phones running LP

5,645 posts
Thanks Meter: 2,820
 
By FcukBloat, Senior Member on 8th April 2015, 03:36 PM
Post Reply Email Thread
***LOOKING FOR A ALL-IN-ONE SOLUTION? THAT'S AVAILABLE FOR Z3C USERS ONLY, IF INTERESTED GO HERE***


I guys, I share with you my debloating script for those interested in a higly DEBLOATED LP installation, very slimmed down, battery friendly, faster, with less RAM comsuption etc

Heavily debloated actually means almost 1 gb of system stuff moved to a backup folder (that you can even delete or move to sdcards to get 1gb extra free space in /system) so applying my script you agree to debloat A LOT as I did but take care that you will have a much lighter system and still you will be able to restore very easily anything you want anytime moving stuff back from the backup folder to /system (detailed instructions for that below in this thread).

Quote:


NOTES

1. as all the stuff object of my debloating script is going to be placed in /system when flashing the pre-rooted FW, it is strongly suggested to apply my script immediately after flashing the pre-rooted LP FW and before rebooting, this way all that stuff will be moved away, and it is like it was never installed (at first boot no optimizations for those apps, means faster first boot etc)


2. as said above, all the bloat is not really deleted but moved to a Backup folder in system (/system/__Backup) so you can restore anything you want very easily. that's the reason you can see /system partition still almost full in spite of my high debloat, but stuff moved to the backup folder is "silent", so for sure it is not affecting the system at all and it is like it is not installed: I use this approach for people who needs to restore something, this way restoring is very very easy and fast. By the way, deleting the whole Backup folder (or moving it to your sdcard) you will then see something like 1.1 gb extra free space in /system!!


3. using different FW as base you may have some more bloat/apks, not present in my FW, that will remain installed. In this case, if you think there is some bloat left that could be removed, please send me a list of all your system apps remained after debloating, so i can check them (you can easily do that via terminal with 'ls /system/app > /sdcard/sysapps.txt' and 'ls /system/priv-app > /sdcard/privapps.txt' and send me the resultant text files)



Procedure for all xperia phones running LP: (like all Z series)


Requirements:
- working recovery
- be on LP already, 5.0.2 or 5.1.1, doesn't matter


Installation:
1. full nandroid backup to eventually go back to previous any time
2. wipe data, cache and dalvik ***
3. flash my debloating script
4. that's all! reboot/enjoy

Quote:


*** NOTES
You can skip wiping data, so you'll keep all your personal data! But please mind that not wiping data during the installation procedure the debloat will not be 100% effective: in fact, if you don't wipe data, all the sony apps installed in /data/app won't be removed by the script! (to remove them, you'll have to uninstall them manually from settings > apps > downloaded)





RESULT

As said at the top, you'll get a very slimmed down LP FW, battery friendly, very fast, with less RAM comsuption etc

Of course, everything is working great here, I mean all the features I need/use!

In particular, with latest version of my script you are going to delete more than 160 packages in total with all relevant libs/stuff plus all applications automatically installed by Sony


DISCLAIMER
Quote:

If you apply my script again please take care I did a pretty massive debloat as I don't use a lot of stuff (social apps, small apps, many of the sony "addons"/special settings etc!!) and this is a working config for me, but for others some functionalities will be probably missing, so mind what you do before apply them! (but again you can restore anything anytime, if interested just continue the reading)



################################################## ################################################## #######




REMOVED STUFF

As said at the beginning, with my script, stuff is not going to be deleted anymore, but moved in /system/__Backup folder. This way you can restore things without the need to download them from my GDrive.



HOW TO RESTORE SOMETHING

PS. of course I also removed from my FW all the stuff that can be easily downloaded from the Play Store (Gmail, etc)
In the hidden field below you will find the restoring instructions you need to follow to restore any package you may want back:


According to what you want to restore, you have to follow two different procedures:

- all the APKs that are inside /system/__Backup/various/etc_custom_apps and /system/__Backup/various/etc_prod_apps are regular APKs that are going to be installed in /data, so you can just run them and then select "install" like a normal APK, easy. You will then see them in Settings > applications > downloaded

- instead, all the things in /system/__Backup/system_app and /system/__Backup/system_priv-app folders can't be normally installed, but must be restored in the correct /system folders with correct permissions. To do this, see the step-by-step instructions below (in the following example, I am going to restore Chrome app in /system/app and Velvet (Google Search) in /system/priv-app, but of course you can restore how many things as you want at the same time)

Code:
- with a root file manager like ES, go to /system/__Backup/system_app and MOVE the whole "Chrome" folder to /system/app
- with a root file manager like ES, go to /system/__Backup/system_priv-app and MOVE the whole "Velvet" folder to /system/priv-app
- reboot
- done
PS. don't copy but MOVE things back, or permissions will get messed up and you are likely to end up in a bootloop!





Many THANKS @ondrejvaroscak and @Puffin617 for some very good advices, @mj084 for some packages descriptions
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	15806
Size:	56.8 KB
ID:	3312430   Click image for larger version

Name:	2.jpg
Views:	16342
Size:	84.4 KB
ID:	3312431   Click image for larger version

Name:	3.png
Views:	15792
Size:	126.5 KB
ID:	3312432   Click image for larger version

Name:	4.png
Views:	16304
Size:	121.6 KB
ID:	3312433   Click image for larger version

Name:	6.png
Views:	15650
Size:	194.6 KB
ID:	3312435   Click image for larger version

Name:	Screenshot_2015-06-11-11-04-42.png
Views:	13662
Size:	216.7 KB
ID:	3357913   Click image for larger version

Name:	Screenshot_2015-06-11-11-11-19.png
Views:	12794
Size:	182.7 KB
ID:	3357926  
The Following 145 Users Say Thank You to FcukBloat For This Useful Post: [ View ] Gift FcukBloat Ad-Free
 
 
8th April 2015, 04:13 PM |#2  
Norup58's Avatar
Senior Member
Thanks Meter: 56
 
More
Would one arrive at the same stable setup as you if the debloating-part in your guide was omitted?
(I prefer to use Debloater by @gatesjunior to block the apps)
8th April 2015, 04:26 PM |#3  
OP Senior Member
Thanks Meter: 2,820
 
More
Quote:
Originally Posted by Norup58

Would one arrive at the same stable setup as you if the debloating-part in your guide was omitted?
(I prefer to use Debloater by @gatesjunior to block the apps)

don't think so. in fact, several people who flashed and installed xposed directly on stock FW, had bootloops. others have problems with play store in deodexed, so I think, at least here and IMHO, best combo is odexed but debloated.
of course you can remove less stuff, that will be also much safer. if and when I post a text list of what I removed, I can maybe highlight dangerous apps that people should be careful with, or add notes for some apps that maybe is not so easy to understand what they are for


EDIT: I always prefer manual things, so I always manually move apps to a temporary location and then delete them
The Following 3 Users Say Thank You to FcukBloat For This Useful Post: [ View ] Gift FcukBloat Ad-Free
8th April 2015, 04:56 PM |#4  
espaciosalter20's Avatar
Senior Member
Flag Bogotá, Colombia, Colombia
Thanks Meter: 827
 
Donate to Me
More
oh man, thanks for this, but i have a lot of problems to visualize what have you did. dropbox isn't working for me on my work's network. Can you make a list of apps? pastebin, tinypaste, hastebin, chop... there are options!
8th April 2015, 05:07 PM |#5  
OP Senior Member
Thanks Meter: 2,820
 
More
Quote:
Originally Posted by espaciosalter20

oh man, thanks for this, but i have a lot of problems to visualize what have you did. dropbox isn't working for me on my work's network. Can you make a list of apps? pastebin, tinypaste, hastebin, chop... there are options!

will make a list soon!

EDIT: done! see OP!!
The Following User Says Thank You to FcukBloat For This Useful Post: [ View ] Gift FcukBloat Ad-Free
8th April 2015, 05:29 PM |#6  
espaciosalter20's Avatar
Senior Member
Flag Bogotá, Colombia, Colombia
Thanks Meter: 827
 
Donate to Me
More
Quote:
Originally Posted by moly82

will make a list soon!

EDIT: done! see OP!!

Thank you! it's a shame that i already have achieved my 8-post limit for today.
8th April 2015, 05:29 PM |#7  
hispanico957's Avatar
Senior Member
Thanks Meter: 332
 
More
Which app is refer screenshot: https://www.dropbox.com/s/6smtqx57f3...10-03.png?dl=0

Thank
Hispa
8th April 2015, 05:36 PM |#8  
OP Senior Member
Thanks Meter: 2,820
 
More
Quote:
Originally Posted by espaciosalter20

Thank you! it's a shame that i already have achieved my 8-post limit for today.

don't worry mate!
ps. added notes/colours to some pretty dangerous apps to remove.. all others should be pretty self explanatory/safe to delete if you don't use them

Quote:
Originally Posted by hispanico957

Which app is refer screenshot: https://www.dropbox.com/s/6smtqx57f3...10-03.png?dl=0

gravity box > lockscreen mods > customizable lockscreen shortcuts!
The Following User Says Thank You to FcukBloat For This Useful Post: [ View ] Gift FcukBloat Ad-Free
8th April 2015, 05:44 PM |#9  
OP Senior Member
Thanks Meter: 2,820
 
More
enabled navbar edits and lost recent buttons... but in homescreen (and only there) I still have it
(the secret is... a modded wallpaper lol )

of course in other apps it is gone ;(
8th April 2015, 06:10 PM |#10  
hispanico957's Avatar
Senior Member
Thanks Meter: 332
 
More
Quote:
Originally Posted by moly82

enabled navbar edits and lost recent buttons... but in homescreen (and only there) I still have it
(the secret is... a modded wallpaper lol )

of course in other apps it is gone ;(

Yes also for me no recent in apps... but also at home !?

Hispa
8th April 2015, 07:47 PM |#11  
ogunja's Avatar
Senior Member
Flag São Paulo
Thanks Meter: 673
 
Donate to Me
More
Thumbs up
Perfect Bro @moly82 will work on it to launch a FW Debloated stable.
The Following User Says Thank You to ogunja For This Useful Post: [ View ] Gift ogunja Ad-Free
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes