[P8lite General] kaitek666:
Hey guys!

Please notice this is my first xda post. I tried 2 days to make xPosed work on my P8 Lite and that would be just rude not to show you the exact way. So, there we go.

Tested and proven working on EMUI 3.1 Android 5.0.1. I've got some trouble with modules like Gravity Box, but I'm on my way of solving them.

I take no responsibility if you screw up. Do this tutorial step by step and be careful.

Xposed manual zip installer

(this will come in handy in step 7 and further)

EMUI 3.1 Android 5.0.*: http://dl-xda.xposed.info/framework/sdk21/arm64/xposed-v78-sdk21-arm64.zip (tested by me, working)

EMUI 3.1 Android 5.1.1: http://dl-xda.xposed.info/framework/sdk22/arm64/xposed-v78-sdk22-arm64.zip (tested by community, seems to work )

EMUI 4.0 Android 6.0: http://dl-xda.xposed.info/framework/sdk23/arm64/xposed-v78-sdk23-arm64.zip (might be a bit problematic, because result seems to be random, although I think you should be fine)

Installing Xposed Framework

Make sure you are a patient person. Some operations may require waiting, trying or even unbricking your device!

Unlock bootloader and root your phone. You can use (this tutorial).

Download and install XposedInstaller_3.0-alpha4.apk but don't install the framework.

This step is really messy. Firmwares differ a lot, but you should find appropriate file/line/folder in your device. Just remember about step 1)

Using any root browser (I'm using Root Browser) open your /system/build.prop file (on some firmwares the location can be /system/emui/base/prop/ or cust/hw/eu/local.prop thanks [MENTION=7495722]Jak08[/MENTION])

Add those lines to the build.prop file. If they exist already, change their values (or simply delete them and add new ones):

ro.config.themecolor=0
ro.config.hwtheme=0
ro.config.hw_theme=0

NOTE: In some cases modifying ro.config.themecolor may cause bootloop. I recommend you try first time without this line!!!!

Save the file granting superuser permissions

Install TWRP (as described here)

Download and place in your root internal storage directory previously downloaded zip file.

Reboot your phone into recovery mode (you can use adb reboot recovery command, or you can simply start your phone holding power and volume up button but BE CAREFUL: PLUG OUT YOUR USB CABLE!!! if you decided to start it up without adb. If you won't, you'll go into bootloader mode) And also, step 1.

Install zip package

Wipe cache and dalvik cache

Reboot your phone to system

First time it can take up to 15 minutes to boot so don't panic (hey, step 1!). If nothing happens after 30 minutes, here's how you unbrick it. Notice that you only have to re-flash the system partition.

Proof it's working and what modules I'm using is in attachments. GravityBox has several problems, other than that, everything's good.

FAQ/Troubleshooter:

Q: Why do I get an error while...

A: Yeah, make sure you've got your bootloader unlocked and phone rooted correctly. You can check root with any 'root checker' app from store

Q: I'm booting into EMUI recovery instead of TWRP. Will it do the work?

A: No. You have to have TWRP installed, otherwise you won't be able to flash zip correctly and wipe cache.

Q: Can I flash zip in bootloader?

A: No! I had that idea once and it gave me hours of recovery. Don't even try.

Q: My modules modifying looks won't work. Why?

A: Make sure you modified build.prop as told

Who do you credit this solution to?

A: mfbcool and some guy at polish Android forum gave suggestion about lines in build.prop and rovo89 created Xposed. Other than that, I figured out everything by myself. I just gave you links to the parts I did by myself and did't want to describe here.

It isn't working. I bricked my phone. What to do?

A: Unbrick it, silly.

It is working. How can I thank you?

A: I think there's an option to say thanks here. Give me and rovo89 thumb up and we're fine.