[Xperia Z3 Compact Android Development] FcukBloat:
[UNMAINTAINED]

This is for both locked/unlocked. Being 100% stock it is not going to unlock your BL, mess up your DRM/keys etc!

As even in the LP time some people asked me about debloating KK (and I'm using it right now and actually seems i like it more than LP too) hereby I present you my new all-in-one solution for Z3C, this time based on KK 4.4.4, consisting in one heavily debloated full rom including some extras for both D5803 and D5833, based on 23.0.1.A.5.77 FW.

Requirements:

- Working recovery installed

Instructions:

1. full backup

2. full wipe (system, data, cache and dalvik) ***

3. flash either AIO for D5803 or AIO for D5833 (md5sums) [V2!!]

4. reboot/enjoy

*** NOTES ABOUT FULL WIPE vs DIRTY FLASH

You can also avoid wiping /data to keep all your data untouched but if YOU DO NOT WIPE DATA:

1. all apps I updated directly in /system may conflict someway with copies you may have stored in /data and you could get FC, especially Play Store/Services (btw in case any conflicts will appear it is pretty easy to fix them if you know how to clean things up yourself, for example clearing data of the conflicting apps installed in /data, and then uninstalling them via settings > downloaded apps)

2. my debloating solution won't be be 100% effective: the personal apps I included that are going to be installed in /data (xposed installer APK, Gravity Box, Xperia Xposed and Blurred UI xposed modules, Z3+ Live Wallpaper and latest Sony Album and Music) WON'T be installed but just placed in /system/etc/product/applications with no effects (so in this case you can either keep them there, won't hurt, or delete them if you don't want them, while if you want them installed you can just click on them to start the installation)

3. all the apps installed by sony FW in /data (kobo books, navigator, social life, psp app, avg etc etc) won't be automatically removed (you will have to go to settings > download apps to uninstall them manually)

4. you may get some FC due to missing overlays at boot: in this case, just enter in TWRP, mount system, go to advanced > file manager and move back the whole "overlay" folder from /system/__Backup/various/vendor_overlay to /system/vendor and reboot ;)

I repeat the above will happen only if you DO NOT WIPE DATA, with clean flash instead everything will be as supposed: for sure no conflicts at all, all apps installed, xposed, modules, full debloat etc everything up and running and working OOB!

;)

What you'll obtain doing the above:

- KK 4.4.4 23.0.1.A.5.77 FW (customized Belgium for D5803, Brazil for D5833)

- pre-rooted with SuperSU 2.46 and Dual Recovery 2.8.21

- 100% stock Odexed

- Heavily debloated with my own original list

- Play Store, Play Services, Play Games already updated to latest version as of 07/Sep in /system replacing the old ones provided in the FW

- AOSP browser replacing Chrome + sync adapter for syncing your Chrome desktop bookmarks

- Google Keyboard replacing Sony's

- Nova Launcher (stock sony launcher also available)

- ES File Manager replacing stock one

- TextraSMS replacing stock one

- Z4 bootanimation

- Latest xposed APK for 4.4.4

- Gravity Box module for KK

- Blurred System UI and Xperia Xposed modules

- external sdcard writing fix

- Google Calendar replacing Sony's

- Lock screen mod to hide "Swipe to unlock" message

- QuickPic app

- Simpler contacts/dialer

- Latest Sony Album app

- Latest Sony Music app

Changelog

V2 (11/Sep)

Changelog here

SCREENSHOTS!!

Coming...

Hope you like it! If so, just please press THANKS! :o

Removed stuff:

With my solution you are going to get rid of more than 170 packages (unfortunately not also all the libs like it happen in LP because of how are placed apps in system in KK) plus all applications automatically installed by Sony, overlays etc...

As said at the beginning, stuff is not going to be really deleted, but moved in /system/__Backup folder. This way you can restore things very easily.

At the following link you will find the full list of all stuff I moved away:

https://docs.google.com/spreadsheets/d/1Gof3mcFSWxP4cONuoLXPQkGE6Xnfn9tsg899rLN3ALY/edit#gid=0

PS. the file is with read-only access for everyone, if you have any changes to suggest, please reply in the thread or send me a PM with the changes you propose ;)

Sorry, the link was not public, now you should be able to correctly see the list! ;)

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 both "Chrome.apk" and "Chrome.odex" files to /system/app
- with a root file manager like ES, go to /system/__Backup/system_priv-app and MOVE both "Velvet.apk" and "Velvet.odex" files 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!

PPS. still, if you mess up something copying stuff to /system, and you get a bootloop, remember you can just enter in TWRP, mount system, and then with advanced > file manager you can delete what you have just copied to /system, this way your phone will boot up properly again ;)

CREDITS

Many many heartily THANKS to:

[MENTION=4904057][NUT][/MENTION] for his lovely Dual Recovery

[MENTION=3975929]zxz0O0[/MENTION] for many things (root, helping with recovery, PRF creator etc) and [MENTION=4688377]russel5[/MENTION] for fixing some problems in PRF creator

[MENTION=4419114]rovo89[/MENTION] for his wonderful xposed

[MENTION=5008415]C3C076[/MENTION] for excellent GravityBox

[MENTION=3989065]serajr[/MENTION] for many things but especially for his kindness, contributions and in particular for the amazing Xperia Xposed and Blurred UI modules

[MENTION=4102242]Gustavo RD78[/MENTION] for the swipe to unlock message removal mod in lockscreen

[MENTION=4708091]istux[/MENTION] for suggesting to try again KK

[MENTION=5719725]demonio98[/MENTION] for beautiful z3+ Bootanimation

[MENTION=6351145]ondrejvaroscak[/MENTION] and [MENTION=3172970]Puffin617[/MENTION] for some very good advices about backing up stuff and installing personal apps respectively

[MENTION=1239635]mj084[/MENTION] for some packages descriptions and collaboration and suggestions, mirrors etc [emoji14]