yashsingh1/xdaforums huggingface dataset:
[Android General] b00b:
Thanks for correction...appreciated :)
[Android General] Tabithalos:
Tried putting only the deodexed framwork folder into /system/, same problem, black screen.

How do I disable the Stock Huawei Home? See no app nor option for it. If I try to disable it via say Nova Launcher (aka making it the default home) it opens a white screen and closes within a second.
[Android General] b00b:
is item 5 under section - "Deodexing the ROM" really needed if the 3 folders we are after are no longer on the phone but on an external sdcard ie

5. Now connect your device to PC. Make sure USB Debugging Mode is enabled and necessary Huawei Drivers are installed.
[Android General] hackslash:
Use Titanium Backup or any other app that has the feature to Freeze System apps.
[Android General] hackslash:
Roger that! Will fix the OP. These are small remnants from previous guide which I forgot to remove. Thanks for correction.
[Android General] Tabithalos:
Did just as you said, disabled the Huawei Home..thingy and Keyguard. Downloaded Nova launcher and made it the primary launcher and did the process as stated in the OP.

And guess what,

Black screen!

I guess it simply refuses to work.
[Android General] hackslash:
Well then unfortunately, it won't work. I have no reason why it is so. If possible, please upload a logcat so that I can investigate upon the issue. Also, please post your Firmware Version, Device name and Kernel Version so that I can update the OP.
[Android General] b00b:
keep failing and saying 'error' when

- Extracting and deodexing boot.oat...

this is what's in the log file (log_decompile.txt)

﻿--------------------------------------------------

Batch ApkTool : 3.4.3

SMALI : smali-2.1.2.jar

API level : 21

APKTOOL : apktool_2.1.0.jar

build in EXPERT mode : NO

Sign output APKs : YES

--------------------------------------------------

[*] Architecture arm64

[*] Extracting and deodexing boot.oat...

Error occurred during initialization of VM

Could not reserve enough space for 1048576KB object heap

[*] ---> Error extracting boot.oat (arm64)

DONE with 1 ERRORS.
[Android General] hamzio7:
I had the same problem with boot.oat

what I did was pulling the files using adb and then copying them using ES File explorer and mixing the folders without replacing the files that I pulled out using adb...it worked fine for me using this method...
[Android General] b00b:
Thanks very much - that works...appreciated :)
[Android General] b00b:
installed ok on my Huawei p8lite and no bootloop and so far nothing fails but will keep on testing.

However, RESOURCE HOOKS had to be disabled in order for the Framework to be active .

Now it 'green' but not sure if modules are working.

Also those who have it working ok on Honor phone does xprivacy work ok?
[Android General] hackslash:
Didn't I mentioned in OP to get app, framework and priv-app folders using file manager from your device and not from ADB or from Batch APK tool.

Also disable EMUI Theme Engine in build.prop and local.prop as instructed in OP to make Xposed work without disabling resource hooks.
[Android General] b00b:
Firstly my device is -

Huawei p8lite

(ALE-L21), ARM-64 SoC: Kirin 620, on Android 5.0.1

I

didnt use

ADB to do anything at all.

i copied the folders -

app,

framework,

priv-app

using 'Root Explorer' (installed

on the device

) to external sdcard.

I then copied those folder (app, framework, priv-app) to the folder where 'BatchAPKTool' was on my laptop and then used BatchAPKTool.exe and followed the instruction on the OP to deodex the ROM.

After that finished with no errors, i then renamed the folders as directed on the OP and then copied then to a new folder called system, and then copied this system folder to my sdcard.

Then used TWRP to delete the app. framework and priv-app folders in my phone's system folder, (

after making a backup

of the original system folder) and then copied the same files in the system folder on the sdcard to the system folder on

the phone

.

I then installed -

- XposedInstaller_3.0_alpha4.apk

after that i rebooted to recovery and flashed -

- xposed-v80-sdk21-arm64.zip

then on reboot, i then search for local.prop, but

there is no "local.prop"

in /system/emui/base/prop/

or anywhere else

on my p8lite.

ie

- there is no - /system/emui

- there is no - /system/emui/base/prop/

There is however -

-

build.prop

(in /system)

-

default.prop

(in /)

-

phone.prop

(in /system/)

so

one at a time

i copied the following text lines:

ro.config.hwtheme=0

ro.config.hw_theme=0

first to build.prop and tested, framework does not activate until i disable resource hook.

then to

default.prop and tested,

same thing

, framework does not activate until i disable resource hook.

then to

phone.prop and tested,

same thing

, framework does not activate until i disable resource hook.

so where did i go wrong :confused:
[Android General] Tabithalos:
Firmware version:

EMUI4.0_PLK-TL01H_6.3.16

Device Name:

PLK-TL01H

Kernel:

3.10.86-g0f1804e

android@localhost#2

Sat Mar 5 11:38:50 CST 2016

How should I go about on getting the logcat?
[Android General] hackslash:
[MENTION=3096300]b00b[/MENTION]

Check whether ro.config.hwtheme=1 is already present in build.prop and local.prop. If it is so, change their values to 0.
[Android General] hackslash:
[MENTION=7306635]Tabithalos[/MENTION]

Enable USB Debugging in Developer Settings.

When the device is functioning properly, connect your device to computer and using ADB issue the command adb devices in Command Prompt. (You must have ADB installed for the command to work. Google it if you don't have it installed)

You will now recieve a notification to allow access to the computer you used to debug your device. Check Always and click OK to grant your computer access to issue debugging commands to your device.

Now apply the whole deodexing procedure. During the boot (when everything is deodexed), connect your device to computer and issue the following command using ADB in command prompt: adb logcat. At first this command might give the output No devices attached. Keep entering this command until your command prompt starts filling with bunch of lines. Wait for your device to boot to black screen and then after 2-3 minutes unplug your device.

Copy all those lines in command prompt to a text file. This text file is the logcat.
[Android General] Tabithalos:
Thanks, did just as you said and here's the logcat.
[Android General] b00b:
Thanks for the pointer but as i said in my last long post, there is no local.prop on my p8lite but will check in build.prop.
[Android General] b00b:
Found ro.config.hwtheme=2 in buid.prop

so changed it to ro.config.hwtheme=0 and now xpose activates without having to disable Resource Hooks :D

Testing modules now :)

Xprivacy does not seem to work properly though, anyone using it on a Huawei phone?
[Android General] b00b:
Good point...although i am on lollipop (5.0.1) but thanks for that though as maybe some modules are not updated for lollipop too :)
[Android General] hackslash:
Congrats!! :laugh:

XPrivacy doesn't works. It's giving me an Internal Error.
[Android General] b00b:
the 'Congratulations' shld be all yours though, as you came up with this method and very good directions as to how to achieve it althe 'Congratulations' shld be all yours though, as you came up with this method and very good directions as to how to achieve it all

...Thank you very much for sharing and your patience in helping others :highfive...Thank you very much for sharing and your patience in helping others :highfive:

re Xprivacy, thats what i keep getting too "Internal check' failing whenever i open it, pity its doesnt seem to work properly as this is one of my most important apps but will try other versions of the app to see if i can get one of them workingre Xprivacy, thats what i keep getting too "Internal check' failing whenever i open it, pity its doesnt seem to work properly as this is one of my most important apps but will try other versions of the app to see if i can get one of them working.

Other than Xprivacy, one of my other favourite apps works just fine - 'ProtectedApps', you may like it.

Anyway will keep testing other modules Anyway will keep testing other modules :)
[Android General] jeshuranpaul:
It works like a charm

[MENTION=6435663]mfbcool[/MENTION] Thank you so much for this! Wish I could press thanks more than once :laugh:
[Android General] Tabithalos:
[MENTION=6435663]mfbcool[/MENTION] did you look at the logcat? Any news?
[Android General] dkonect:
Hello, first the p8 lite have a build prop and a local prop. (just look in the good place)

In the op nothing is explained about on which os (linux, Windows) we can use the tool's, I mean if you didn't know the sdk, oat, java,variable path it's can be hard to understand.

I use a other's tools modify (not by me) and I reinstall the deodex system by flashing it in a zip in twrp. Maybe it's why it's more quick to boot.

I test your tool's and report. It's seems to be a good tools (already know it on Bulgaria threads I think).
[Android General] tomlemange:
I can get it working on my mate 2, but it just seems to break too many stock apps. The worst of all being the clock app, my phone is useless without an alarm. Other clock apps I've tried aren't playing nice with emui either.

I appreciate all your work though! Lack of xposed is what was keeping me from moving to lollipop.
[Android General] Fedroid:
Major bugs on my P8 Lite running lollipop 5.1.1 (B010)

Oh!!!! congrats, I'm very happy for you.

I have used another tool to deoex my rom because the link at OP doesn't works. I don't know if it is the reason for having two bugs: No bluetooth and no NFC

Have you checked this points?

Could someone provide a goog link to batchtools?

Thanks in advance
[Android General] b00b:
i tested bluetooth and working just fine on my p8lite with xposed,

tested NFC as well using the Bank card reader app and works fine

here you go - an exact copy of the BatchApkTool343s.7z in the OP:

https://mega.nz/#!5kFGABRI!XAVeo2xMWwLIuUMoYu7ad3kNtrQs3siPpITQ7iKXkvI
[Android General] yolst:
works perfect!

Mate S - 5.1.1
[Android General] Rashad83:
Tyvm for the guide :good:, i confirm it working on Huawei p8 Lollipop 5.0.1 EMUI 3.1.

I suggest this thread be moved to Android General since your guide seems to work for so many Huawei devices. It will be easier for others to find it, hadn't someone from this thread pointed it out to me i wouldn't have found it easily.
[Android General] hackslash:
I made it initially for the Honor 6 (tested on this device only) but did knew that it would work for all Huawei phones out there.

I'll look into contacting a mod to move this thread to General section.

Until then, enjoy Xposed!
[Android General] proudazzzm:
Hi , I can't find above steps when i press 01 its straight goes to Extracting and deodexing boot.oat... any idea?

thanks.
[Android General] hackslash:
It won;t show a prompt for ARM devices. Only for ARM 64.
[Android General] proudazzzm:
thanks , Some of files shows >>> File not odexed is that OK ?
[Android General] hackslash:
Yep! That's OK. Not all system apps are odexed and hence they don't need to be deodexed :)
[Android General] linus2014:
Someone managed to get it working on p8lite with android LL 5.0.1 .... you can explain how? --my device go in bootloop ever, thanks.
[Android General] sl97:
hard brick on honor 6

Please HELP! Following the guide i' ve done a serious mistake: in the "Getting the Required System Files" paragraph i've moved instead of copy the folder app, framework and priv-app(i take all of them from /sys folder) to the sd card. my phone switch off immediatly. i've not noticed what i've done at the beginning and i've deodexed the ROM with BatchAPKTool the same.

I have a TWRP recovery, in /sys folder i can't put again the three folder i moved, i don't known what i can do!
[Android General] hackslash:
You should be able to move the deodexed folders from your SD card to /system/ . Is your System mounted in read/write mode?
[Android General] sl97:
yes System is read/write. now i'm moving the deodexed folders from SD card to /system.

---------- Post added at 10:51 AM ---------- Previous post was at 10:45 AM ----------

i've moved the folders from SD card to /system folder, now?!
[Android General] hackslash:
Reboot :)
[Android General] sl97:
ok, but TWRP tells "No OS Istalled! Are you sure you wish to reboot?"

may be i've done something wrong before?!:(
[Android General] hackslash:
Well, go on and reboot. If device isn't functioning, restore the backup I asked you to create at the beginning of this tutorial.
[Android General] sl97:
the device isn't fuctioning and i'm an idiot because i've not create a backup...:(
[Android General] hamzio7:
You can dirty flash the system partition using adb first extract it using the huawei update extractor and the flash it using fastboot

Fastboot flash system system.img
[Android General] sl97:
i've flashed system.img extracted from Huawei Update Extractor. everything went well, from TWRP i tried to boot. i'm stuck in bootloop.
[Android General] hamzio7:
Is it the same ROM or you extracted another one???

Flash boot.img and system.img and cust.img...that should do it...
[Android General] sl97:
i've flashed system.img, boot.img and cust.img, everything went well. going back to recovery TWRP tells "TWRP has detected an unmodified system parrition..... etc." it asks me if "Keep Read Only" or "Swipe to Allow Modifictions"
[Android General] hamzio7:
Just reboot to system... And that should be ok...
[Android General] sl97:
Done. the device doesn't work. it give me the screen of booting in which is written "HONOR powered by android"
[Android General] hackslash:
Well then, flash the whole Update.APP through Stock Recovery. Your internal memory will be wiped and all data erased, but that's the best you could do. (or why don't you take a backup of /data/ through TWRP, flash Stock ROM completely and then restore the /data/ backup)
[Android General] sl97:
how can i flash the whole UPDATE.APP through Stock Recovery(i have installed TWRP)? Which UPDATE.APP do i have to choose(android m or lollopop or what else..)?
[Android General] hamzio7:
It takes a while...about 15-20 mins
[Android General] E--Man:
[MENTION=7386557]sl97[/MENTION], no need to call yourself an idiot, u have us fellow XDA members who can do that for you! :P

Did you try to wipe cache and dalvik after flashing system? Should work
[Android General] Flamenawer:
I'm trying deodex honor 7 emui3.1 LP5.02 rom. (fw. 180) but stucked in honor logo. I tried two times,and same result. I think that I followed right the tutorial,but I saw after 2 min. from merge and 1St reboot from recovery,the phone rebooted again itself,I was not xpected for me.Is normal de 2nd reboot? Anybody deodexed Lp honor 7 rom?
[Android General] sl97:
it doesn't work!! is there a way to rebuilt the entire OS?! i don't care about any data in internal memory...
[Android General] RangerP7:
Extract the recovery.img from the update.app

Flash it.

Copy the update.app on your SD card in dload folder.

Press all three buttons (vol+, vol-, power)

Now wait.
[Android General] sl97:
i've done. the display shows a circle bar, it's at 5% and doesn't change. i wait as you said
[Android General] RangerP7:
It usually doesn't take more than 10 min to install the complete OS.

You can also try to refresh cwm or twrp and clear all (system, cust, boot, cache, data, internal memory)

And now try do the steps again:

Flash original recovery.img

Put update.app to sd card in dload folder

Shut down

3 buttons to power up
[Android General] sl97:
the device has kept the same screen: it didn't install the OS.

now i try what you said

---------- Post added at 06:51 PM ---------- Previous post was at 06:15 PM ----------

actually it seems not to really flashing recovery: adb says "flash complete", but keeping pressed vol+ and power buttons the device displays again only the screen "HONOR(with the <h> red) powered by android"
[Android General] RangerP7:
What do you mean? You flashed the stock recover successfully because otherwise you can't enter the three buttons method and start an update.

Or do you mean your custom recovery (twrp/cwm)?
[Android General] sl97:
sorry i've made a mistake. i wiped everything in twrp, i flashed the stock recovery, push update.app in dload in sd and, by pushing three buttons, update but it stops at 5%
[Android General] RangerP7:
Are you using the recovery from the update.app you try to flash? Is the update.app an official version from Huawei / honor? Try to flash a official (no beta) version.
[Android General] sl97:
yes, absolutly! may be i've got a bugged version... i've noticed that if i flash the recovery coming from android m update(which i had before this brick and ) the device is able to go to recovery; if i flash the recovery coming from the lollipop update the device isn't able to go to recovery...

p.s. i'm using the firmware in the links of this "how to..." http://pantomath.xyz/how-to-unbrick-honor-6-from-android-m/
[Android General] RangerP7:
Could you open a new thread? This one was originally for xposed

You can send me a link
[Android General] federico.schembri200:
I can't deodex my ROM, otherwise I use Bluetooth a lot. There isn't a way to install xposed on odex firm? I have emui 4.0 & G Play Mini.

Enviado desde mi G Play Mini con Tapatalk.
[Android General] iHakimi:
about the extreme boot time for the 1st boot after merging the file..

hi,

that mention 20-30 minutes of boot time waiting, will it be stuck at the boot screen that show 'flashing' honor logo or will it be showing apps optimization screen?

mine is stuck at the 'flashing' honor logo, is it normal?

please advise
[Android General] aldesal:
You followed this exact steps? I tried it once on my Mate 7 and didn't work. I'm not sure the deodexing is succesfull :|
[Android General] yasdinho:
Yes
[Android General] WaleedAkmal:
Salam, First of all, I must say you are very helpful.

I was able to install xposed using your method.

but there are some issues, my messages are not opening.. The app force closes.. Some other apps are also doing the same..

Please, guide me on how to recover this issue...

2ndly, I want to know whether you had any luck in making/searching a custom ROM for kirin SoC ?

Thanks a lot, once again... :)

PS: I have honor 4C emui 3.1 android 5.1.1
[Android General] hackslash:
The apps which show errors will continue to show errors and there is no way to fix them. However, I didn't experienced any of the aforementioned issues on my Honor 4C.

Secondly, about custom ROM, I was developing AOSP for 4C but the RIL (Radio Interface Layer that manages your GSM/CDMA connection) was completely incompatible. I'll be now switching to CM 13.0 but well in July (next months are seriously hectic).
[Android General] zhaozihanzzh:
Thanks bro,but in China,there is a team called"HRT"(HUAWEI ROM team),and HRT's roms have already added Xposed framework in EMUI3.0/3.1/4.0:)

Android小楼阁-QQ群 439637151

来自搭载Android 2.3 GingerBread的华为Y220-T10
[Android General] charlesrobin:
Not working on Honor 4x Indian version lollipop version... Tried as following your steps but it took more than 1 hour and then stuck on bootloop . any ideas?
[Android General] Rashad83:
I just tried it on Marshmallow rom for P8 and i get stuck in huawei logo without any notification mentioning updating apps. But it worked on Lollipop!. Any idea on how to make it work?. I am sure the deodex process is not working for Marshmallow because once i restore the system backup the phone boots normally.
[Android General] RangerP7:
You could try this

https://github.com/rovo89/Xposed/issues/72
[Android General] Blackball:
Xposed is working on the P8 with Marshmallow.

I think there was only something wrong with your deodexed files.

Gesendet von meinem HUAWEI GRA-L09 mit Tapatalk
[Android General] hackslash:
Thanks for updating!

Now just waiting for a Marshmallow release.....
[Android General] Rashad83:
Yes definitely something wrong with the files, but what?. Because I followed the same process for Lollipop but using the instructions stated for marshmallow.
[Android General] Blackball:
Next days i will upload my Marshmallow Custom Rom KW16. Its deodexed and ready for xposed.
[Android General] Rashad83:
May I know how u deodexed it? . Ty.
[Android General] Blackball:
Like this guide.

How long did you wait while the device booting?

It takes a long time.

Gesendet von meinem HUAWEI GRA-L09 mit Tapatalk
[Android General] Rashad83:
Yes I waited around 10 mins stuck on the logo, and there is no optimization of apps notification like in lollipop. Any way I am going to try it again hopefully it works.
[Android General] Blackball:
If its deodexed there is no optimizations of apps
[Android General] Rashad83:
No after putting the deodexed files in place and at the first boot you get a notification card on screen trying to update apps. Which disappears in the following boot. That's what i got on Lollipop but no any indication on Marshmallow.
[Android General] vigitall:
Man, I'm waiting a P8 Custom ROM with Xposed ready since I upgraded to Marshmallow (few months ago) so I can't wait to flash yours! Thank you very much for your work, you are a guru of Huawei custom development...
[Android General] Rashad83:
So i tried deodexing using BatchApkTool344s the latestest one this time, and the screen got stuck on Huawei boot animation without any sign anything is happening(no app update notification card like in Lollipop) for like 20 mins. Then voilà the phone booted normally. So i guess the first time i wasn't patient enough :mad:. Now i am testing Xposed will report back with my finidings.

edit:

So far it seems to work fine on Marshmallow, make sure to flash xposed-v80-sdk23-arm64.zip instead of the latest one v81 which doesn't seem to work for me.
[Android General] hackslash:
For anyone who is subscribed to this thread,

Please see the OP NOW. Xposed has been updated for Huawei phones and doesn't require deodexing
[Android General] hamzio7:
didn't work for me ... I mean the official one... h60-l04 Indian b550
[Android General] hackslash:
Are you on a odexed ROM?

Did you wiped Dalvik Cache after installing zip? (you would end up in a boot loop if you didn't wiped)

Did you disabled Huawei Theme Engine?

What's the error exactly? (Boot loop or Framework isn't active)

Where is the logcat?
[Android General] charlesrobin:
Didn't work for me too. I'm using honor 4x Indian version lollipop 5.1..

*Not using odexed rom

*yes I wiped

*yes I disabled it on build prop

*Error is bootloop

*I'm attaching logs
[Android General] hackslash:
[MENTION=6105116]charlesrobin[/MENTION]

Quoting from your logcat:

java.lang.ClassCastException: class android.content.res.XResources doesn't extend class android.content.res.HwResources

Huawei Theme Engine didn't got disabled. Hence the Framework can't replace the hooks.

Check if build.prop already contains these lines "ro.config.hwtheme=1" or "ro.config.hwtheme=2". If so, remove them, enter the line "ro.config.hwtheme=0" and reinstall Xposed framework.

If the above solution didn't worked for you, search for local.prop in your root partition (unfortunately I don't know it's exact location; it varies in every firmware) and redo the steps outlined above.

If it still doesn't work out for you, post a logcat (the one you posted was Xposed log, logcat is different).
[Android General] charlesrobin:
I will try it and let you know. btw I still get bootloop if I don't disable huawei theme engine? that's just make some modules don't work right?

where can I find logcat file?
[Android General] hackslash:
Disabling Huawei Theme Engine will cause Xposed to not function. I have however, no idea why your device went in a boot loop.

See here how to take a logcat http://bfy.tw/4wdY :D