[Sony Cross-Device General] FcukBloat:
***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 :o

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).

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

RESULT

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

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 :o :good:

DISCLAIMER

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

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)

- 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 [MENTION=6351145]ondrejvaroscak[/MENTION] and [MENTION=3172970]Puffin617[/MENTION] for some very good advices, [MENTION=1239635]mj084[/MENTION] for some packages descriptions :good: