yashsingh1/xdaforums huggingface dataset:
[Huawei GX8] EarlyMon:
(moved my post on the battery percentage fix here where it belongs)

Here's the solution to the battery problem (from our honor 5x tree, we used it in the RIO-L03 without change). Bet it will work just fine for you.

https://github.com/Huawei-Kiwi/android_device_huawei_kiwi?files=1

https://github.com/Huawei-Kiwi/andr...mmit/9ee4fee58acbf212c23d29550d056cfc0d276351

https://github.com/Huawei-Kiwi/andr...blob/twrp/recovery/root/init.recovery.qcom.rc

Edit/PS - cat /proc/kmsg from adb shell during TWRP to see the actual vm_bms error - can almost guarantee you'll see either an execve or missing 32-bit library error - if you've built 64-bit the above is the fix, definitely.

2nd edit - Looked at your device tree - yep, our fix will work for you. :)

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

BTW - at https://www.androidfilehost.com/?fid=24421527759889994

You have some editor backups left over you don't want -

~ # ls -l init*
-rwxr-x--- 1 root root 716080 Jan 1 1970 init
-rwxr-x--- 1 root root 5239 Jan 1 1970 init.qcom.power.rc
-rwxr-x--- 1 root root 5239 Jan 1 1970 init.qcom.power.rc~
-rwxr-x--- 1 root root 2844 Jan 1 1970 init.rc
-rwxr-x--- 1 root root 648 Jan 1 1970 init.recovery.qcom.rc
-rwxr-x--- 1 root root 1110 Jan 1 1970 init.recovery.qcom.rc~
-rwxr-x--- 1 root root 1327 Jan 1 1970 init.recovery.usb.rc

Is this supposed to flash as an update? http://xdaforums.com/showpost.php?p=65817315&postcount=18

It's 14 MB and missing the dtb file, so fastboot boot TWRP-3.0.0-0_Update01.zip won't work. (edit - nevermind on that, I went too fast and missed the post explaining that - my bad)
[Huawei GX8] EarlyMon:
BTW - obviously you can keep the 64-bit vm_bms in /sbin and ln your linker64 to /system/bin and it should work while appearing more elegant.

I kept it the way I did so others could see the solution in one place and copy as desired. :)

Plus it seems like a lot of vm_bms sharing is going on without comments - we did that originally and got a 32-bit version without realizing it lol.

BTW - here's the readelf output from the vm_bms we used - pretty good trick to tackle execve problems - http://hastebin.com/ocehefumaq.avrasm

No idea why Huawei decided to build a relocatable vm_bms and not rely on a relocatable interpreter but that's exactly what they did. :D rofl
[Huawei GX8] surdu_petru:
Ok, but I already did all what you say ! The difference is that I kept stock Huawei RIO-L01 5.1.1 vm_bms and not from Honor 5x !

My vm_bms has already hacked / ( edited ) system/bin/linker64 to /sbin/linker64 and it does not work !

I think I need to keep your vm_bms from Honor 5X ! I'll try soon and I'll let you to know !

Anyway thank you very much for your help .

Best regards !

Edit :

YES, it working now ! just put stock linker64 into system/bin ! Thank you very much !
[Huawei GX8] surdu_petru:
New Update TWRP !

Hello !

Here is a new update TWRP 3.0.0-0 for all Huawei G8 & GX8 !

Change log :

- build on the last update source : omnirom bootable_recovery !

- fixed battery percentage - thank you very much to EarlyMon !

Downloads : TWRP-3.0.0-0_Update02.zip md5 : 5faae5721208a855ce0b19995dd17341

Installations : install via twrp , no wipe required !

If you currently use TWRP, you are invited to make this update !

Best regards !

Edit :

Source code already updated : GitHub !
[Huawei GX8] EarlyMon:
Congrats on resolving the fix! :)

[MENTION=2335078]surdu_petru[/MENTION] is the correct procedure to install the base twrp and then add each of the two updates? :confused:
[Huawei GX8] surdu_petru:
Nop, no need base twrp .... you can directly install any update you want : personally, I recommend the last update !

Unfortunately I solved a problem (with the battery) and I broke another thing ... in the last update ( 02 ) there is no busybox into sbin/ , so you cannot install Gapps !

I'll try tomorrow to see why , there is no busybox :crying:

Edit :

I make build for twrp from cm-13.0, I think there will be no issue with omni source code ! ... but I have not omni in my PC !

Already fixed : I'll re-upload TWRP Update02 !

Now all it seems to be fixed , the last update for TWRP can be used, and will flash any Gapps without issue !
[Huawei GX8] hyundai2010:
this my problem can somebody help me please?

no rom installed now

edittttttttt: now its working with the new twrp!"!!
[Huawei GX8] surdu_petru:
Update TWRP 3.0.1-0 !

Hello !

Here is a new update TWRP 3.0.1-0 for all Huawei G8 & GX8 !

Change log :

- build on the last update source : omnirom bootable_recovery !

- What’s new in 3.0.1-0 !

Downloads : TWRP-3.0.1-0.zip md5 : 26108a286258f6440b379d30e3f1e880

Installations : install via twrp , no wipe required !

If you currently use TWRP, you are invited to make this update !

Best regards !
[Huawei GX8] ilouieagcanas:
Noob Question

Hi! I'm very new to these kind of stuff so please forgive me with this question. How would I know if my bootloader is locked/unlocked? If it's locked, how would I unlock it? I'm planning on installing surdu_petru's Cyanogenmod and it's my first time on trying to install a custom firmware (and recovery) so I really have no experience. But I did some reading to understand the basic terminologies.

EDIT:

Don't mind this message. I got it. I'm glad to know that Huawei somehow supports you unlocking your bootloader but still reminds you the possible risks. Now, I should go and install this TWRP.
[Huawei GX8] ilouieagcanas:
Hi! I'm having problems unlocking my bootloader because Huawei isn't giving me my unlock code. But after some reading I understand that there are other ways to get your unlock code or other ways to unlock your bootloader. Can someone help/guide me? I want to unlock it ASAP. I think I have to wait 14 days for my Huawei ID to work (I'm having the Huawei ID 14 days issue) but I'm still not sure if it's going to work since their instruction is not that clear.
[Huawei GX8] fedesandor:
unlocking bootloader

Hi, I had the same problem. But I unlock it by dc-unlocker and worked perfectly. Here is the link: https://www.dc-unlocker.com/
[Huawei GX8] ilouieagcanas:
I'm also aware of this. Actually, I have it on my computer. Sadly I don't have credit card. Haha. But I'm finding a way. I just decided to still ask you guys in case that there are other ways I didn't know about. Thanks for your help.
[Huawei GX8] surdu_petru:
Yes, sure ... unlocking bootloader for G8 (GX8) is free and you not have to pay anything for unlocking !

I just already posted somewhere about here ( you just need to search ) how you can manage to unlock bootloader , and it's working very well !

Good luck !

Edit :

What about this ? ... I was able to unlock my bootloader for G8 (RIO-L01) dual SIM in two ways and only into one day !
[Huawei GX8] ilouieagcanas:
I tried both. The first method is actually what I've been trying since last night. But until now I'm always getting this error, "The Huawei ID used to apply for the unlock code has not been used on the device for more than 14 days.". I tried the second method hope they give it to me tomorrow morning. I'm really excited to get back on CyanogenMod. :D Thanks for your reply!
[Huawei GX8] ilouieagcanas:
I just noticed that email address is the same with the one I emailed this afternoon. This is their reply to me..

"Dear User,

Huawei Customer Service is pleasure to be at your service,sorry to bring you the trouble,if you want to unlock your phone, you should meet these conditions as follow:

1.Please register your Huawei ID in our official website http://huawei.com/en/ on your phone.

2.Log in your Huawei ID for continuously 14 days.

3.Each Huawei ID should not apply for the unlock code more than twice within half years.If you meet the information,please go to http://emui.huawei.com/en/ and click the 'download'button to login your Huawei ID other than any other third party ID to apply for the unlock code.Please contact us by mail or local service hotline as following if error message appears.".

I don't want to wait 14 days for my unlock code. I want to get back to CM ASAP. I think my only way is the dc-unlocker. :(
[Huawei GX8] surdu_petru:
Yep, I don't know what to say ... but look at my replay :

Sure , this was for Ascend G620S ... because I can not find their reply for G8 ... I think it was deleted !
[Huawei GX8] ilouieagcanas:
Tried with a different email but still gets the same result. Guess I really have to find a different way. But thanks for helping me. :)
[Huawei GX8] kimtyson:
There are forum rules about staying on topic. I really think you need to brush up on them.
[Huawei GX8] alessietto750:
Hi guys, i try to install the twrp from the app same named but, after the installation the phone doesn't reboot system but stay in recovery and i can only do with installation of stock recovery.

I have try the version 3.0.2 and 3.0.1 but is equal.

My phone have bootloader unlock and root access maybe it's a problem because i cant update my system (rio-l01b130) by forcing method.

Now i want to try to install the c342b160 australian version. (I'm italian and, i have dual sim no brand model)

I hope in your help. See you next.

Edit: i have succesfully installed the b160 version, but i lost roots access and not the bootloader, so i must reinstall it. I have found a new ota update, and i find it in version b180, this evening install it then root access.
[Huawei GX8] surdu_petru:
Ok, I understand your issues ...

But, I don't understand why you post here for help if you do not use this TWRP ( the last update 3.0.1-0) :confused:
[Huawei GX8] alessietto750:
I'm sorry for this OT, i want use the twrp recovery but it don't work correctly. After the installation, don't restarts the system, so, i must reinstall the stock version, to use it. I try to install differents versions, but there are same problems. :(
[Huawei GX8] krispin:
I had this problem too, but not on the newest twrp.
[Huawei GX8] surdu_petru:
Are you already using this version and after that your device can't boot into system ??? , if YES, please provide your device model, thanks !
[Huawei GX8] alessietto750:
Hi, i had try different versions of twrp but none works well in my phone and i don't know why!

Here is my model actual, RIO-L01C432B180

It's a no brand dual sim european phone.
[Huawei GX8] surdu_petru:
You should use only one TWRP , the last update provided by me 3.0.0.1-0 it should work on your device without issue ...

No one had issues with this last update ... so, I think you use a wrong TWRP, that's why you have issues !
[Huawei GX8] alessietto750:
I used your but the problem there is again, i retry today and then tell you the results.

I think the problem is the boot file, may be wrong?
[Huawei GX8] surdu_petru:
Update : TWRP 3.0.2-0 !

Hello !

Here is a new update TWRP 3.0.2-0 for all Huawei G8 & GX8 !

Change log :

* build on the last update source : omnirom bootable_recovery !

* What’s new in 3.0.2-0 !

Downloads :

* TWRP-3.0.2-0.zip md5 : 5f09c5c4a325653dc5f6de996efe8b24

* twrp.img md5 : 37ddc7eab875af568c15f0df899491dc

Installations :

* .zip archive : install via twrp , no wipe required !

* twrp image via fastboot ( into bootloader mode ) : "fastboot flash recovery twrp.img"

If you currently use TWRP, you are invited to make this update !

Best regards !
[Huawei GX8] dheeraj0927:
Full reapartition for new installation

Can anyone please help me to delete my old system cache boot and other partition from my device and create a fresh partition for installing a new rom on it because in my device i am not able to format cache by any way... I tried twrp and also fastboot mode but it say command not allowed... Can someone please help me delete all the partitons and create a new partition... I have huawei rio-l01... Thankyou
[Huawei GX8] rtfm_joey:
This verson works perfectly, altough I need to use adb reboot recovery to get into TWRP, holding volume and power takes me to EMUI recovery via OTA (not the three finger recovery or bootloader).
[Huawei GX8] surdu_petru:
It's working also with power & volume up , just try again !

1° power off your device , keep pressing volume up and at the same time press power button until the phone vibrates short , now just release power button ... as soon as device come into twrp, you can release volume up ( or maybe a bit sooner ) !

2° ( if your device is not power off ) just press and keep at the same time power button & volume up until device restart , but as soon as device vibrate you should release power button ... the device will enter in the shortest time in twrp mode !

I checked the both methods right now, it works perfectly ;)
[Huawei GX8] rtfm_joey:
Yep that worked; if you keep power longer pressed after the vibrate or release vol up too early, the phone will boot into EMUI recovery.
[Huawei GX8] tornido067:
sorry for topic off :D but does anyone know how to install xposed with latest official android 6 ?i mean am on stock huawei not CM .

can i install xposed ?
[Huawei GX8] nidhin162:
So is it now safe to root with twrp.
[Huawei GX8] zxzx3000:
hi i need i removed by axed-ant my mobile system and i do not have back up and i try hisuit it didn't work what can i do
[Huawei GX8] Mostafa.Manouchehri:
[MENTION=2335078]surdu_petru[/MENTION]

Can i install this recovery on my 'Rio-l01,dual sim,snapdragon version, and android Marshmallow build B340?:confused:

Excuse me, I have to install this item , I fear many:(:crying:

And the last word , sorry for my bad English:fingers-crossed:
[Huawei GX8] HelpMePleas3:
hey i am new to this kind of stuff too, may i please ask how you got to instal the TWRP. I am stuck on that part, please help! :(
[Huawei GX8] Qassimi:
I'm stuck with TWRP recovery every time I reboot to system. I'm using twrp 3.0.2.0 and Android 6. I need your help please..

edit: g8 dual sim

edit2: rooted as well
[Huawei GX8] surdu_petru:
Are you using this TWRP from this thread ???

Edit : as I know only official TWRP have boot loop issue, so you shouldn't use it ?
[Huawei GX8] Yair_Zeta:
Problem with TWRP (Correct img & unlock botloader)

Hi surdu_petru, thanks for this thread!

I don't speak good english sorry, but please read me.

I install the ROM Stock 6.0 B330 in my RIO-L03, I instal the correct twrp.img (I download from the oficial site in the correct forum: twrp.me-devices-huaweig8 (Link distorsioned because I am new user an can't post external links) version twrp-3.0.2-0-rio.img	2016-04-05 01:11:37 EDT) with the ADB Method, I have botloader unlock, I have root, all going well. But when you enter in the recovery and make a "reboot system" the devices bricked or same thing, because you cant start the device, ever you reboot/restart the device, you enter into recovery mode, and don't care that you wipe the cache, etc. (except system, internal storage, etc.) but you can't start, one, two, three, infinity times you always return in the recovery, and you need put the Stock ROM another time.

I have this problem, for 5 days, in three oportunitys happened the same, this in 6.0 Android with the correctly "img". This doesn't work on RIO-L03/B330 Android 6.0? or this doesn't work for other way?

Please I need help, I need a Custom recovery for my device :'( (Or there is another recovery to install)?
[Huawei GX8] surdu_petru:
Please, before posting here, do you even read the answer by me , just a post before your post ?

As I see you are in a wrong TWRP !

So Please guys , READ , READ and READ before you ask help ... why it's so hard to read :confused:
[Huawei GX8] Yair_Zeta:
Okay, I saw your answer, though not quite understand, the recovery of this thread it works, but the officer did not? Sorry for the repost, but i dont speak English very well and it's hard understand everything I read; read isn't harder, it is hard to understand another language with more specific Temine :/ please be patient :(
[Huawei GX8] surdu_petru:
Ok, I understand your issue, but my answer was very clear :

Hence the very simple, you should not use Official TWRP because have boot loop issue ( your device will reboot into recovery instead system ) , you got it ?

EDIT :

The big issue here : most users of which have problems with TWRP officially, comes and complain here to help ? I do not see why they ask for help here for a TWRP which was downloaded from elsewhere and not this one from this Thread !

If you post here, I assume that you have already installed TWRP from this thread , and not other TWRP even official .
[Huawei GX8] Yair_Zeta:
Oh okey

I got it, sorry this topic it's for this TWRP not for others. If I download and put this (of this topic), it will work completely or likely ? Thanks for all the help!
[Huawei GX8] Chilli71:
Edit: bootdevice is a link to dev/block/platform/7824900.sdhci (noticed when I failed to make dir bootdevices).

Initially I was irritated that I did not find a folder bootdevice.

I managed to copy cust.img to the cust partition according the code sample above. Changed it from C150 T-Mobile Austria to C432 free Austria :D.

Frankly, when I try to install an image via TWRP it fails at mount command and says Device or resource busy. But as long as I can do it manually...

Chilli

---------- Post added at 08:57 PM ---------- Previous post was at 08:44 PM ----------

Additionally to making the phone crash by using a wrong TWRP version you can have a boot loop even with correct TWRP:

I learned that my G8 has a boot loop issue: When starting OTA it sets a flag in bootloader to start recovery upon boot.

But the G8 needs stock recovery to make the update.

During/after the update process boot.img is overwritten and the flag is erased --> boot with system.

If you have no stock recovery or corrupted recovery, update is never done, boot.img never overwritten --> boot loop.

Flash stock boot.img and/or recovery.img to break the loop.

This is no TWRP issue, it's Huaweis flaw. The should have reset the recovery mode flag right in the boot loader.

Chilli
[Huawei GX8] Chilli71:
You will always need the TWRP fitting to your device.

As the thread name says this thread is for Huawei G8 and GX8. I would assume this works also for G7+ (only the one with the +)

For these devices you can download TWRP from here or from the TWRP site https://dl.twrp.me/rio/

If you have another device you have to select another TWRP https://twrp.me/Devices/

Have you given up in the meanwhile or did you have success?

Chilli
[Huawei GX8] surdu_petru:
I'm sorry, but for me it is a issue related of officially TWRP !

There is no issue regarding boot loop into TWRP if you use my build of TWRP . I don't care if it's Huawei's flaw, they should fix this issue ...

You say : "it's Huawei's flaw"

- ok , agree with you ... but, why my TWRP works without issues ?? can you tell me :confused:
[Huawei GX8] Chilli71:
That's a tricky one.

For now I can only confirm that your version does not have that issue. But the official version has.

Your version offers also more partitions to mount (and can mount all but cust on my phone). I would not be surpriesed if the "device busy" does not happen with your version. I had no time to explore more improvements, but it seems you have done a good job :)

I would need hours to analyse what's going on and I have currently minutes :-/. Although that riddle solving would be thrilling ;)
[Huawei GX8] krispin:
I was browsing xda forums and find this post about edl mode. Have anybody heard of it? Could it work on our device? Here is the thread link: http://xdaforums.com/android/software-hacking/guide-how-to-reboot-to-edl-fastboot-t3394292
[Huawei GX8] squiquera:
HI.

I have the the phone Huawei G8 Rio-l03

Rio-l03c469b33

WIth Emui 3.1 and android 5 i can flash and use your TWRP 3.0.2-0

Then update to Android 6 MM to trying to flash CM13. (on cm13 post it say is mandatory to flash cm13 stay in android mm stock)

Update to android 6.0.1 mm Oficial Emui 4

The phone work fine.

Try to flash again TWRP 3.0.2-0.

in bootloader (all unlock),

fastboot flash recovery twrp.img all ok

fastboot reboot

no errores

when phone start adb reboot recovery pummm oficial recovery

key method, the same pummm oficial recovery

i flash the 3 last twrp you post. none work (when on android 5 yes it work)

TWRP 3.0.2-0

3.0.1-0

3.0.0-0

if you have any light on this topic, i apreciate it

thanks you

and thanks for your work here
[Huawei GX8] surdu_petru:
Twrp cm-14.1 !

TWRP Update for Android N !

This release is compatible Android N and also Android MM .

Downloads : twrp-recovery-N.img - 30.17 MB

* twrp-recovery-N.img md5 : ea2cafc6cd0ed31ff292418237ffbc9a

Installations : fastboot flash recovery twrp-recovery-N.img

Screensots :
[Huawei GX8] AndroidNewb666:
Can I flash this using apps like flashify? I don't have a computer at the moment :(

Edit - flashed using Root Essentials and everything went smooth, thanks surdu!!!!! :angel:
[Huawei GX8] xeeth:
Touchscreen not working in TWRP

Ciao guys, I installed TWRP but my touchscreen is not working.. tried to downgrade TWRP to 2.8, then tried 3, 3.02 etc but still, nothing change.. I can't proceed even to unlock the phone when it boot in TWRP in recovery, the phone boot perfectly but as I get to the TWRP lock screen, there is no way my touch respond.. I am quite new in flashing huawei, I just did it as a favor for a friend but now I can't get it work.. anyone can help?

Tried to reinstall, reboot, uninstall, erase recovery and reinstall.. nothing, seems not working at all!

What I can do to extract any log that can help you in understanding better the situation?

Thanks to anyone can help me solve this
[Huawei GX8] dockaos:
Hola, alguien tiene el toro en mega o en algún otro servidor? Por mucho que intento descargarlo o me sale en formato .iso o corrupto, no hay manera.

Enviado desde mi HUAWEI RIO-L01 mediante Tapatalk
[Huawei GX8] grungle25:
How to download this file

Hi surdu_petru

I can't for the life of me work out how to download this file. From my Googling I am meant to press the blue download button but whatever i try i get popups trying to get me to download dodgy malware. Have tried both Chrome and Firefox. I am sure there is a simple answer but I can't find it?

Thanks
[Huawei GX8] diegoprzl:
The link is dead. Could anyone upload this recovery again?

Thanks
[Huawei GX8] kop524:
Hi can You post this to zippyshare or mega cause most of links on devhost are dead for me and I can't dl from this server???
[Huawei GX8] diegoprzl:
I don't have 10 messages so I can't put the link without modifying it a bit.

androidfilehost com ?w=files&flid=148275
[Huawei GX8] kop524:
THX works like a charm :)

Beer4U :D
[Huawei GX8] svchess:
The server where it is hosted is full of spam, and the download does not work
[Huawei GX8] vicebtx:
Waiting for OP
[Huawei GX8] mrkenv:
False download

Hi, I m tried to download this twrp n for huawei g8. i want flashed os lineage rom , but i cant do it because the link (about twrp n) its not work good, download only false file. Can i have the link to really file? thanks
[Huawei GX8] timecop81:
Virus detected !!!

the archive contain an EXE file that ESET detect as a Virus. !!! :eek::eek::eek:
[Huawei GX8] AndroidNewb666:
Good thing that Android does not run . exe files

:silly:

But im sure theres an explanation
[Huawei GX8] Alv4ro:
Hi guys, I wanted to download the latest version of twrp because I'm going to try a Nougat rom but after I flashed via the link provided by Surdu my phone was stuck in fastboot/rescue mode and it still is. I heard about malware and virus in the earlier messages so I'm freaking out a bit. The always boots on fastboot mode but I managed to boot on the huawei force update thing and that's all I can do.

When I plug it to my PC it seems to detect it but I can't see it in the file explorator. Any idea how to make it work properly ?

PS : My phone is Rio L01 if I remember correctly, Android MM (Rom from another thread on this foeum).
[Huawei GX8] anthony099:
hi surdu_petru can you give me flashable kernel for my huawei g8? because after i install your superSU with kernel and ramdisk i finally install Linage and i want to install my stock 6.0 can you help me to get back my stock? i try your stock but always fail my screen is crashing and i dont know how to fix it i try what i know and nothing change