Need help with rooting/recovery... - Huawei P10 Questions & Answers

Finally managed to unlock my bootloader, and flash twrp.
Im on 8.0.0 both emui and android.
But when i boot into twrp to flash magisk, i can't find the download folder, and all folders have so odd names like random numbers and letters.
Please help

bump

This is a topic you've found if you've searched.
The /data partition is encrypted so you can't access it via TWRP.
You need to use adb sideload or sd card for flashing Magisk via TWRP.
And some hints:
- Flash the correct Magisk, don't use any version which isn't proven to work on P10
- Don't flash Xposed - it will brick your phone!
- Don't flash Viper, Dolby or other DSP - they will brick your phone!
- Look for working tweaks on XDA or Google before you flash them - everything can cause a brick!
And a brick on Huawei means: You probably have to pay for DC Phoenix tool for unbricking your phone.

Related

Cant install Magisk v17.1-17.3

I just managed to (after spending 2 days figuring this out) get TWRP recovery in my old Xperia Z2 that had android version 6.0.1 Marshmallow. Currently running TWRP 3.0.2-0 (idk if it matters), bootloader is also unlocked. Was installed with SuperUs, and cleaned from it completely. But it never gave me the option to restore back to boot img.
I've been browsing the forum, trying so many solutions but nothing has worked yet. Any help would be appreciated ASAP. And I cant currently access the logs, BUT I have manually written down what the log is and I have no idea what to make of it.
I looked at BootBridge but the explanation is confusing me. So I flash Magisk through another service or whatever to make it able to get flashed? I dont have any other img's or anything to replace the boot partition with, so I got no clue what to do.
* Magisk v17.1 Installer
********************
- Mounting /system, /vendor
- Found boot/ramdisk image: /dev/block/mmcblk0p14
- Device platform: arm
- Constructing environment
- Unpacking boot image
- Sony ELF32 Format detected
- Please use BootBridge from @AdrianDC to flash Magisk
- Unmounting partitions
Updater process ended with ERROR: 1
Error installing zip file '/sdcard/MAGISK/Magisk-v17.1(1700).zip'
Updating partition details...
...done
Edit: I dont have a img backup of the old rom, unfortunately
Alright, a break made me realize how it works. But the bad news is that my phone is now in the boot loop haha. If anyone have additional information on how this all works, that would be appreciated
Another update, now I could uninstall and reinstall magisk in TWRP without failure, but I still get stuck in boot loop so it doesnt work obviously
Another Edit: If I do manage to factory reset the phone back to its original software, is it possible to do a better setup this time and create a good backup? Since SuperUs didnt allow me to backpedal to an earlier state
Alright managed to restore and once again flash my phone so that I can use TWRP, but im still locked by BootBridge looping my phone in bootup, when trying to install magisk v17.1
flash stock ROM
abkdmn said:
flash stock ROM
Click to expand...
Click to collapse
Managed to get it to work! Made a custom ROM from a stock version after it being patched to disable RIC. Now the only problems I have, is to get Magisk working correctly so that I can get away and pass SafetyNet
Have unlocked your bootloader?, If yes then ave you tried boot bridge by adrianDC to flash magisk successfully ?
Leave some additional information like : your ROM version, twrp version, phone model.
If you want to restart to new in order to use a custom ROM or Stock ROM with magisk and bypassing safety net leave details about those ROMs and files which you are going to use.

Moto G 2014 (x1068) unlock bootloader, install TWRP and root procedure... CONFUSED

Hi there,
I read many old threads but I'm as confused as I can be. Some say there's no need to unlock the bootloader because you can just flash TWRP from ADB and root... other say you have to unlock the bootloader first. Anyway, I only find mixed and confused information.
Could someone please recap what should I do? I already downloaded the RR Oreo ROM, ready to be flashed...
Thanks a lot!
davidrf said:
Hi there,
I read many old threads but I'm as confused as I can be. Some say there's no need to unlock the bootloader because you can just flash TWRP from ADB and root... other say you have to unlock the bootloader first. Anyway, I only find mixed and confused information.
Could someone please recap what should I do? I already downloaded the RR Oreo ROM, ready to be flashed...
Thanks a lot!
Click to expand...
Click to collapse
So here is a quik guide (skip steps if allready done)
- make sure stock ROM is latest (update)
1. Need to unlock bootloader (to be able to install TWRP)
- do it on moto official site. Just follow the steps there. Read carfeully
- install android sdk at best OR if want save space Google "simple adb installer xda"
2. Install TWRP (to be able flash ROMs or get ROOT)
- download latest version from TWRP site for our model (.img file - need only flash once)
- flash it via fastboot (google for the exact process for our moto on xda)
- boot into TWRP from bootloader menu (recovery in bootloader menu)
4. Installing a ROM:
Connect to PC while in TWRP (here you can backup your stock rom TO SD card, recommend)
- put ROM zip + GApps (GoogleApps - use Opengapps website: ARM32/8.1 for oreo/micro
& Magisk zip for ROOT (dl from xda) on your phone or SD card storage.
If switching ROMs, a clean flash IS needed: (all in TWRP)
Wipe - factory reset
Install ROM zip
Install gapps.zip
Install magisk zip
- boot & profit.
Good luck, ifs something unclear, ask!
peace.

Can you help me with rebrand please?

I'm a bit in panic. I've follow all steps from The rebrand guide in the oreo section that is linked to a guide for Mate9.
But i cannot understand this steps:
G. Do "Downgrade Nougat" steps to the rebrand firmware, it fails and reboot but fine.
H. When going to system press "Vol-Up" to enter eRecovery, do "Low-level format data partition".
I do everything on my P10 but I don't have the "low lever format
Click to expand...
Click to collapse
I'm stucked, I have done all steps but in my case The Phone didnt fail, it boot as usual with cust correctly changed to c432 but i dont have italian language.
Now i dont know what to do cause i cant low Level format (i dont see this option).
Can I update with an official firmware from firmware finder? how?
Why i cant install twrp in recovery but only on ram_disk?
thank you for your help
RealPsygnosis said:
I'm a bit in panic. I've follow all steps from The rebrand guide in the oreo section that is linked to a guide for Mate9.
But i cannot understand this steps:
I'm stucked, I have done all steps but in my case The Phone didnt fail, it boot as usual with cust correctly changed to c432 but i dont have italian language.
Now i dont know what to do cause i cant low Level format (i dont see this option).
Can I update with an official firmware from firmware finder? how?
Why i cant install twrp in recovery but only on ram_disk?
thank you for your help
Click to expand...
Click to collapse
A low level format is called factory reset in emui recovery.
After completing the debranding you should receive OTA updates. If not you can use the Huawei Firmware finder app, or if your bootloader is unlocked you can manually update with TWRP (https://forum.xda-developers.com/p10/how-to/guide-manual-updgrade-to-update-oreo-t3758286).
In Oreo, the recovery partition is called 'ramdisk', so that is where you have to flash TWRP.
M1chiel said:
A low level format is called factory reset in emui recovery.
After completing the debranding you should receive OTA updates. If not you can use the Huawei Firmware finder app, or if your bootloader is unlocked you can manually update with TWRP (https://forum.xda-developers.com/p10/how-to/guide-manual-updgrade-to-update-oreo-t3758286).
In Oreo, the recovery partition is called 'ramdisk', so that is where you have to flash TWRP.
Click to expand...
Click to collapse
Ok So I do a factory reset and repeat the operation....
what trwp should I install?
EDIT:
I've installed the TWRP in this thread and followed that guide ( @Jannomag ).
Now I have the 8.0.0.384 (C432) that works, with no brand and italian. but I've noticed through file manager that in the internal memory there is all the old file. how can I do and Hard Reset? (Before flashing the update I've done a simple factory reset through TWRP, do I need to format system, cache, and data partition?)
thank you
RealPsygnosis said:
Ok So I do a factory reset and repeat the operation....
what trwp should I install?
EDIT:
I've installed the TWRP in this thread and followed that guide ( @Jannomag ).
Now I have the 8.0.0.384 (C432) that works, with no brand and italian. but I've noticed through file manager that in the internal memory there is all the old file. how can I do and Hard Reset? (Before flashing the update I've done a simple factory reset through TWRP, do I need to format system, cache, and data partition?)
thank you
Click to expand...
Click to collapse
As far as I know TWRP cannot complete a factory reset on kirin devices. So you must first flash EMUI recovery and factory reset from there.
@M1chiel is correct, you need to do a factory reset with Huawei eRecovery. Connect your phone to a PC via USB and boot as you want to boot into TWRP. Or flash stock recovery.
thanks @Jannomag and @M1chiel
now with the bl unlocket I found out that I cannot install some apps like netflix, I've read that relock bootloader with fastbook oem relock code is a bad idea.
Is there something I could do?
lock bl with some trick? (hwota maybe? but i've read that I have to install it through twrp so I don't think the bl will be locked)
root with magisk and use some module? (but I hope this don't give me problems with payments apps)
RealPsygnosis said:
thanks @Jannomag and @M1chiel
now with the bl unlocket I found out that I cannot install some apps like netflix, I've read that relock bootloader with fastbook oem relock code is a bad idea.
Is there something I could do?
lock bl with some trick? (hwota maybe? but i've read that I have to install it through twrp so I don't think the bl will be locked)
root with magisk and use some module? (but I hope this don't give me problems with payments apps)
Click to expand...
Click to collapse
If you are on stock firmware (without root, custom kernel, twrp etc) you can relock your bootloader in fastboot. If not your phone will not boot.
However now you finally unlocked I would not recommend that. For Netflix there may be two options that work: install it from APKmirror instead of the Playstore or install Magisk as you indicated yourself. I'd suggest the latter, since it allows root and the opportunity to install relevant modules (I use debloater and youtube vanced). In addition you can hide root from e.g. Netflix, pay apps and games.
Edit: Magisk also ensures you pass Google's safetynet, which is tripped by unlocking the bootloader.
Even if you don't need to root your phone, do it with Magisk. It's systemless and and you can hide the root for most apps (some banking apps still won't work). I use it, too and have no problems with Netflix, Mario Run and my banking app including app for secure login and transactions.
you two @Jannomag @M1chiel are the best thank you,
What magisk image should I install? and what module to hide bl unlocked and root?
RealPsygnosis said:
you two @[email protected] are the best thank you,
What magisk image should I install? and what module to hide bl unlocked and root?
Click to expand...
Click to collapse
Magisk 18 works fine. You can flash it with TWRP or patch the boot image (called ramdisk in oreo) and flash it in fastboot. No modules are needed to pass safetynet. These threads are useful: https://forum.xda-developers.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382/page3035 and https://forum.xda-developers.com/ho...oot-honor-view-10-mate-10-pro-t3749280/page50 (but use the normal channel, not the custom channel).
Make backup of the boot image via TWRP before you install Magisk. The uninstaller works great but I bricked my P10 a year ago without doing something wrong.
Also wait at the first boot, it takes a few minutes (like 5-7 sometimes). Don't cancel it.
M1chiel said:
Magisk 18 works fine. You can flash it with TWRP or patch the boot image (called ramdisk in oreo) and flash it in fastboot. No modules are needed to pass safetynet. These threads are useful: https://forum.xda-developers.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382/page3035 and https://forum.xda-developers.com/ho...oot-honor-view-10-mate-10-pro-t3749280/page50 (but use the normal channel, not the custom channel).
Click to expand...
Click to collapse
Is it normal that for some reason after a few days that I've flashed twrp, it is replaced without my will with e-recovery?!
'cause I found out that I cannot boot to twrp and I had to flash it again through fastboot.
BTW I've installed Magisk and SafetyNet is ok, but I think that BL unlock isn't hidden because I have the same problems with incompatible device for some apps
No it is not normal that twrp disappears. You haven't run an update?
Installing apps from the Playstore may work again if you clear data in settings > apps and notifications > apps > playstore and restart the Playstore.

Rooting Moto G6 with PPS29-118-15-11. What versions of noverity, twrp, magisk to use?

Hello forum, I have been trying to root my motorola G6..
After much struggle, getting stuck in a boot loop and other issues I finally have restored stock roms and now have build PPS29-118-15-11 installed. So at least the phone works again My bootloader is unlocked.
But I still want to root it.
I think I understand the procedure well enough, but I am unsure of the correct/best versions I need for the ROMS/boot, Magisk, and TWRP.
ROMS/boot:
I found a youtube with instructions for updating Android v9
But I haven't tried it as this recommends a boot img:
OPS27.104-15-10_no-verity_boot.img
OPS27.104-15-10_no-verity_boot.img | by dejello for Moto G6
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
I am reluctant to use the above as it looks to be a downgrade from my current version 29-118-15-11.
Also, I thought that the filename prefix "O" indicated oreo instead of "P" for pie? So would this be a version 8 file?
TWRP:
Similarly, I am not sure if I am using the right, or best TWRP version. I currently have twrp-v3.2.3-ali.img
I flash this (with fastboot) and it works but shortly after I encounter the "no command" error (when booting to recovery) and I have to redo it. I am NOT overwriting it with a stock recovery.img.
I have also run into the "encryption password" problem, where I am unable to provide one to decrypt the data partition. So I can't backup the data with twrp (something I really would like to do).
Magisk
I have Magisk-23-0.zip
But I saw a post from brunogroa that recommends installing Magisk 19 and updating it to 23 later. Is this something that is required or can I just install v23?
So, I am looking for the correct versions for ROM, Magisk and TWRP to use, given that I have installed PPS29-118-15-11
Any assistance will be greatly appreciated.
Well I finally have it I think. I noticed a comment in
[GUIDE][ROOT][Moto G6][ALI] TWRP, Root, and Magisk installation guide. by djello
"(you may not need a modified boot image for Magisk)"
When using PIE instead of OREO.
Being an optimist, I gave it a try and it worked... I installed Magisk and was able to verify root access using the Root Checker Basic App. Kept stock boot img.
This is probably not too amazing for the old hands but us newbies need a break every now and them
So in the end, all I had to do was:
(0) Unlock bootloader
(1) Install stock PPS29-118-15-11
Done earlier with another version of twrp.
Install TWRP 3.5.2
(2) fastboot flash recovery twrp-3.5.2_9-0-ali.img
(3) Use twrp to install Magisk
adb push Magisk-v23-0.zip /tmp
Boot phone into recovery and use twrp to install Magisk
(4) Boot the phone into System and verify Magisk is there and use Root Checker App to confirm I am now rooted.
Issues:
I noticed that a security update for
PPS29-118-15-11-5 failed to apply.
The phone boots into recovery mode and asks for the decrypt password. I don't know the password to decrypt data and how to proceed from here.
I suspect that if I flash the stock recovery img the security update might work. If anyone knows please comment ; I will research this also and maybe just try it.
pdpantages said:
Well I finally have it I think. I noticed a comment in
[GUIDE][ROOT][Moto G6][ALI] TWRP, Root, and Magisk installation guide. by djello
"(you may not need a modified boot image for Magisk)"
When using PIE instead of OREO.
Being an optimist, I gave it a try and it worked... I installed Magisk and was able to verify root access using the Root Checker Basic App. Kept stock boot img.
This is probably not too amazing for the old hands but us newbies need a break every now and them
So in the end, all I had to do was:
(0) Unlock bootloader
(1) Install stock PPS29-118-15-11
Done earlier with another version of twrp.
Install TWRP 3.5.2
(2) fastboot flash recovery twrp-3.5.2_9-0-ali.img
(3) Use twrp to install Magisk
adb push Magisk-v23-0.zip /tmp
Boot phone into recovery and use twrp to install Magisk
(4) Boot the phone into System and verify Magisk is there and use Root Checker App to confirm I am now rooted.
Issues:
I noticed that a security update for
PPS29-118-15-11-5 failed to apply.
The phone boots into recovery mode and asks for the decrypt password. I don't know the password to decrypt data and how to proceed from here.
I suspect that if I flash the stock recovery img the security update might work. If anyone knows please comment ; I will research this also and maybe just try it.
Click to expand...
Click to collapse
I am stuck in a similar position.
SOLVED IT!!! Followed all of the steps that you posted except I installed Magisk with the patch method because I couldn't get the zip file to push onto the device. Kept getting a read only error, maybe because it wasn't rooted?
Anyway, I am rooted now!!!

Magisk with stock Android 10 / 11, MicroG with Android 10 stock

After some time I got a second Axon 10 and I spend some time figuring out what was possible with this phone in terms of root, custom ROM etc.
My results are as follows.
What is working:
Android 9 + Magisk and TWRP
Android 9 + TWRP + Custom ROMs (LineageOS 16 and patched GSI)
Android 10 + Magisk and TWRP
Android 10 + Magisk and MicroG flashed via Magisk (= stock ROM without Google Services)
Android 11 + Magisk
What is not working:
Android 11 + Magisk + TWRP (TWRP logo flashes randomly but TWRP does not load).
Android 11 + Magisk + MicroG (the nanolx patching script does not work with Android 11 as of yet)
Encryption in Custom ROMs
Method to flash files via EDL
Unzip / unrar my files into the backup\full folder of the EDL tool and choose restore + full in the tool.
Unlock Bootloader:
Before you try any of the files, you MUST unlock your bootloader!
BACKUP of your data as it will be lost!
Download the EDL tool from this Thread
If your phone is not on android 9, you must go back to Android 9 first. e.g. by using my Android 9 1.9 backup.
After you restored it, restart while holding the volume + key and do a factory reset / format data.
Boot into EDL again and unlock the bootloader.
Now you are on android 9 with unlocked bootloader.
From here you can follow the other guides in the form and install TWRP or lineageos. Or flash one of my files below.
Flashing EDL files:
Unzip / unrar my files into the backup\full folder of the EDL tool and choose restore + full in the tool.
I put all my files into this MEGA account: MEGA
Android 10 version 2.9 Magisk + TWRP
Android 11 version 3.5 stock
Android 11 version 3.5 Magisk
Android 10 version 2.10 stock
Android 10 version 2.10 Magisk (TWRP can be flashed with Magisk)
Install MicroG:
Only works on Android 9 and 10.
Before you install MicroG you must patch the stock ROM to allow for signature spoofing.
The patcher script I used is on https://downloads.nanolx.org/NanoDroid/Stable/ When I write these lines the up-to-date-version is NanoDroid-patcher-23.1.2.20210117.zip
Reboot.
Install MicroG from the Magisk repository.
After a restart there will be error messages that google apps keep crashing. With each warning, disable the apps one by one.
When you reboot again, no errors should appear and MicroG should report that it is fully working.
You can add the Bromite Framework and give F-droid system rights. Both are available from the Magisk repo.
Updates will likely install the Google apps again and uninstall Magisk...
Revive phone:
Not really related, but I bricked my phone several times.
If your phones does not boot anymore or hangs in a bootloop, try accessing the EDL mode.
The easy way:
Boot while holding volume -
The hard way:
Old Volume +, volume - and power until you end up in EDL. The screen will be black, so it helps if you have the Phone connected to Windows and can hear the system sound when the USB sees a connection.
In anyway you can then use the EDL tool to restore / flash an EDL image.
On custom ROM support:
Well there is LineageOS 16 by Unjustified Dev. https://forum.xda-developers.com/t/rom-unofficial-zte-axon-10-pro-9-lineageos-16-0.3992127/ It works well. But has a patch level that is outdated by now.
On top of it you can install the GSI ROMs created by Rafyvitto. The latest one is Resurrection Remix https://forum.xda-developers.com/t/...nofficial-resurrection-remix-q-8-6-7.4172527/
with a security patch level of mid 2021. Which is recent enough to use. The stock roms are not much better.
With both Custom ROMs, encryption is not working which poses a privacy/security risk when your phone is stolen. Do not forget that your phone does not only contain your photos and data but also your passwords to your accounts.
Added Android 10 2.10 files.
Its nice to see anything new for this phone. I wish I can use these roms but I have the American version.
Hi and thanks for your work and your files.
I'm stuck on "Loading the programmer: prog_ufs_firehose_sdm855.elf >>>", if I try to recover your edl files with EDL Tool, v 3.25.
I have to choose option 2: "Restore Full EDL from backup", right?
Is there a way to check if the bootlaoder is really unlocked?
Thanks in advance
OK, I was able to solve the problem with the "programmer" and try the backups. The next step was almost clear. The device is stuck in bootloop. I've already tried all the backups I could find on Mega. After the EDL Tool has done its work and the device has restarted, the mobile phone goes into the boot loop. And now? So the starting position was: Android 9 with an open bootloader. Maybe someone has an idea?
After I couldn't get the device out of the bootloop, I flashed the A2020G_PRO_V1.6_FULL_EDL via MiFlash and then did an OTA update to 1.8.
Then I tried unlocking the bootloader again, which unfortunately didn't work. The flash is carried out without errors, but the device then apparently does not start in the desired Fastboot mode.
Thanks for your guide. However am I missing something with the Android 11+Magisk installation? I restored all the correct files and everything flashed correctly, however upon reboot there is no Magisk installed anywhere. Did a factory reset after the flash and still not there. Tried installing Magisk via his github and tried patching the boot.img again and it says success but after rebooting it says Magisk is not installed.
brian117 said:
Thanks for your guide. However am I missing something with the Android 11+Magisk installation? I restored all the correct files and everything flashed correctly, however upon reboot there is no Magisk installed anywhere. Did a factory reset after the flash and still not there. Tried installing Magisk via his github and tried patching the boot.img again and it says success but after rebooting it says Magisk is not installed.
Click to expand...
Click to collapse
Maybe you need to switch the slot in TWRP. It sounds as if you install it to the other slot (like A) an then boot B. Or vice versa.

Categories

Resources