[Xperia Z5 Compact Themes and Apps] DeathZeroFx:
In The Name of Allah​

Hi! I'm DeathZeroFx :D

This is my first post on Xperia Z5 Compact :D

SmartCleaner is a feature from Xperia X that can manage your RAM and your storage ;)

Thanks [MENTION=5231789]nreuge[/MENTION] for confirm this mod works too on Z5 ;)

This mod should work too on Z5 Premium ;)

Note: for Z5C Dual, Z5 Dual, Z5P Dual (Dual SIM users) I suggest you not flash this, because I port it from Single SIM files, if you can send me framework.jar and services.jar (deodexed) from dual SIM (Z5C or Z5 or Z5P), maybe I can port it ;)

CAUTION!

There are several things you should read before applying this mod:

1. Your device must be deodexed to work

2. Your device must be on 6.0.1 Marshmallow version

3. Your device must have unmodified framework.jar and services.jar (if you don't know, just remember what mod(s) did you apply before and write down on this thread, I'll try to help, if you only apply XPower ROM it should be fine)

Requirements

- Xperia Z5 Compact 6.0.1 Firmware .253

- Deodexed

- Recovery (TWRP or other)

- Some free space (internal or external) if you want to make a backup

- Xperia X Settings, if you don't have one, check the downlaods section ;)

Downloads

https://mega.nz/#!SJ9DCZ4R!tWmWqZLCQ-vIAxRYrCPCaFngiTfZg7_b0oVefaleAIo (MEGA)

https://drive.google.com/file/d/0B7zfhVFaf8vJekZUSlpDY0tzZDQ/view?pref=2&pli=1 (Thanks to [MENTION=5199563]jjwrongjj[/MENTION] for the Xperia X Settings port)

UPDATE: For Nougat firmware (Specially .161 fw) just install this mod: https://xdaforums.com/z5-compact/themes-apps/xperia-smart-cleaner-charger-nougat-7-1-t3636318

How to Install

1. Place the zip(s) on the phone (internal or external)

2. go to recovery (TWRP)

3. Flash the Xperia X Settings zip first

3a. Reboot

3b. Check the settings, is the settings changed to Xperia X? if yes, continue ;)

3c. Reboot to recovery again

4. and then flash the SmartCleaner zip

5. follow the instructions ;)

6. Finish, and reboot

7. the boot will take some time, just wait ;)

8. Go to Settings > Storage & Memory

9. Make sure you check the Smart Cleaner

710 You are done! :D

Screenshots?

I already used this port since 2 days ago and no random reboots!

# Used the fixed one since 1 day ago, no issue found even on the logcat ;)

FAQ

Q: Why I still have random reboots?

A: Do you met all the requirements above? if Yes, post to the thread when you get the issue happen

Q: Can I use this on custom ROM?

A: If that custom ROM is stock 6.0.1 Sony firmware, and without any services.jar and framework.jar modifications, it can, right now I only tested it on XPower 3.0 and it worked too ;)

Q: How do you install this mod on custom ROM ?

A: 1. Make sure you didn't apply any framework modification (framework.jar and services.jar, the framework-res.apk is okay)

2. If yes, do a clean install if you want to get this to work ;)

2b. If not, then Install like I instructed ;)

Q: Can I use this port on xx phone?

A: I think on the Z5 Family, it can (just assume, because of the same .224 firmware), I saw some users reported that they use Xperia Z5 mod and worked, maybe the opposite work too, but just do backup because it is not tested, tell me if worked ;)

Q: Can I have the guide how to port the SmartCleaner?

A: go to my other thread :victory:

Please take note that this porting guide is not the best method for porting, if you want a better port you can edit the smali code, the list of smali you have to edit is the same as my guide provided.

Hopefully this will fix all the issues,

Credits

- jjwrongjj (for his Xperia X Settings port)

- [MENTION=5361546]was12[/MENTION] (for the information, I don't think of this before)

- [MENTION=2902434]Pandemic[/MENTION] and [MENTION=7144653]Dobsgw[/MENTION] (RXS team) for a lot of help especially from the services.jar ;)

- [MENTION=5231789]nreuge[/MENTION] for confirm this mod works on Z5 too ;)

- [MENTION=8041676]grayleshy[/MENTION] for .33 update :D

If you use this port, don't forget to press thanks! especially if you use the Xperia X Settings you must thanks jjwrongjj and Pandemic and dobsgw too! :D

If you want to use this to your ROM, just PM or post on this thread ;) and if you also use the Xperia X Settings port for your ROM, ask jjwrongjj's permission also ;)