I was rooted using Magisk, but did the 11.0.1 update. The update caused the phone to reboot, and I lost root. I don't have the option to install to inactive slot in Magisk.
I figure I need to repatch the boot image, right? Where can I find the stock image?
LDL707 said:
I was rooted using Magisk, but did the 11.0.1 update. The update caused the phone to reboot, and I lost root. I don't have the option to install to inactive slot in Magisk.
I figure I need to repatch the boot image, right? Where can I find the stock image?
Click to expand...
Click to collapse
If you can use twrp or a custom recovery with adb support you can rename magisk.apk to magisk.zip and either install in twrp or through adb in recovery adb sideliad magisk.zip it will auto install to right slot and patch the boot img for you
Related
It is posible to get Magisk 15.3 working on b183 (EU version)?
I did:
1. flash b120 with HWOTA
2. flash b183 with Firmware Finder
3. install TWRP-3.1.1.1_120_130_170 (this one should preserve navigation buttons and camera flash working)
4. format data
5. install magisk 15.3
6. got bootloop
I also tried to format data after flashing Magisk, nothing changed... Recovery boot and system in TWRP didn't help, I had to flash b120 and than b183 again.
EDIT:
Problem solved:
1. flash b120 (https://yadi.sk/d/Y2yuM--73Lb9Kk) with HWOTA (https://forum.xda-developers.com/showpost.php?p=74999398&postcount=129)
2. flash b183 with FF
3. unlock bootloader
4. extract BOOT.img from b183 UPDATE.APP (Huawei Update Extractor: https://forum.xda-developers.com/showthread.php?t=2433454)
5. install Magisk Manager app
6. in Magisk Manager patch BOOT.img with Magisk zip (click Install -> Patch Boot Image File), copy patched_boot.img to PC
7. reboot into fastboot and flash patched_boot.img (command: "fastboot flash boot patched_boot.img")
8. DONE! Nav buttons working, camera flash working, Magisk working...
PS.: Sorry for my bad English.
Have you tried to use Magisk.zip with sideload method ??
k1ks said:
Have you tried to use Magisk.zip with sideload method ??
Click to expand...
Click to collapse
No. Is the difference between flash in TWRP and with sideload?
copantok said:
No. Is the difference between flash in TWRP and with sideload?
Click to expand...
Click to collapse
TRwp available isnt fully functionnel and dont manage encrypted data . Its the problem.
Do not flash it within a twrp ==> Bootloop...
Sideload method is an alternative , work with SuperSu Sr3/4/5 2.82.
Installing supersu sr5 from usb-otg or sdcard once in twrp is working.
Concerning magisk, i did not tried but :
Could you try just after installing magisk on twrp, to boot straight to bootloader to flash stock recovery, then boot straight to stock recovery and perform a wipe & format. Then you could finally boot to system.
oslo83 said:
Installing supersu sr5 from usb-otg or sdcard once in twrp is working.
Concerning magisk, i did not tried but :
Could you try just after installing magisk on twrp, to boot straight to bootloader to flash stock recovery, then boot straight to stock recovery and perform a wipe & format. Then you could finally boot to system.
Click to expand...
Click to collapse
This worked!!! (but I lost nav buttons and camera flash, probably due to TWRP while flashing Magisk)
Tomorrow I will try again reinstall b120 with HWOTA (to get nav buttons and flash working) then b183 with FF and install Magisk with Magisk Manager (extract BOOT.img from UPDATE.app, patch it with Magisk Manager and flash patched boot with fastboot, without TWRP).
Thank you!!!
Keep us informed.
---------- Post added at 02:24 ---------- Previous post was at 02:21 ----------
By the way, with this twrp the capacitives buttons are not broken on B183:
https://mega.nz/#!WVhkwQjY!ND1Qo3kmoXP0qI_IlRHVXdxHZ3fES-ze_mPsSc_Bpg4
SOLVED!
After flashing b120 (HWOTA) and b183 (FF), unlock, patched BOOT.img with Magisk Manager and flashed patched_boot.img with fastboot. Magisk working, nav buttons working, camera flash working!
On B183 with magisk 15.3 root is working fine but i don't manage to get magisk hide to work nor safetynet...
This may be known to many but there are many users who were struggling with this.
Hello Folks,
Was getting few requests on XDA, Telegram and Facebook for this. As title says, there were few users reporting OTA failures while they were rooted with Magisk. Yes, that's obvious, it will fail as you have modified the boot.img (ramdisk) and stock recovery (Recovery_ramdisk.img) while rooting and installing TWRP.
Please follow below steps to update via OTA if you were rooted or using magisk.
Uninstall busybox binaries and Xposed framework (if you are using by any chance)
Uninstall Magisk (inside the app or by flashing the magisk uninstaller via TWRP)
Download update.app of your current firmware and extract stock recovery and boot file via Huawei extractor
Flash stock recovery of your actual variant as fastboot flash recovery_ramdisk recovery.img
Flash stock boot as fastboot flash ramdisk ramdisk.img
Boot to system.
Perform OTA update and reboot.
Root your phone again if you want.
Enjoy.
You could just :
1.patch the new ramdisk's update via magiskmanager then,
2.update via HuRUpdater without removing your root before,
3.then reboot straight to fastboot, and flash your new patched ramdisk
4.reboot to your rooted updated firmware with magisk module still working and root mods still applyied.
PS: I don't know about xposed frameworks
shashank1320 said:
This may be known to many but there are many users who were struggling with this.
Hello Folks,
Was getting few requests on XDA, Telegram and Facebook for this. As title says, there were few users reporting OTA failures while they were rooted with Magisk. Yes, that's obvious, it will fail as you have modified the boot.img (ramdisk) and stock recovery (Recovery_ramdisk.img) while rooting and installing TWRP.
Please follow below steps to update via OTA if you were rooted or using magisk.
Uninstall busybox binaries and Xposed framework (if you are using by any chance)
Uninstall Magisk (inside the app or by flashing the magisk uninstaller via TWRP)
Download update.app of your current firmware and extract stock recovery and boot file via Huawei extractor
Flash stock recovery of your actual variant as fastboot flash recovery_ramdisk recovery.img
Flash stock boot as fastboot flash ramdisk ramdisk.img
Boot to system.
Perform OTA update and reboot.
Root your phone again if you want.
Enjoy.
Click to expand...
Click to collapse
Do we need to keep "Enable OEM Unlock" checked or unchecked in developer settings?
mohsyn said:
Do we need to keep "Enable OEM Unlock" checked or unchecked in developer settings?
Click to expand...
Click to collapse
Doesn't matter unless you are rooting
shashank1320 said:
Doesn't matter unless you are rooting
Click to expand...
Click to collapse
Thanks
I am unable to download OTA update through system
I have the zips downloaded using firmware finder but both the dload and copying the zips to /data/update/HWoUC folder fails
dload method keeps throwing erecovery on screen and does nothing
my recovery + ramdisk + kernal are all stock
magisk completely removed
bootloader unlocked
frp unlock
am i missing something or is there some other manual update method
mohsyn said:
Thanks
I am unable to download OTA update through system
I have the zips downloaded using firmware finder but both the dload and copying the zips to /data/update/HWoUC folder fails
dload method keeps throwing erecovery on screen and does nothing
my recovery + ramdisk + kernal are all stock
magisk completely removed
bootloader unlocked
frp unlock
am i missing something or is there some other manual update method
Click to expand...
Click to collapse
It should be hwouc folder directly under root of internal memory and not data/update/hwouc
I want to root my poco f1 ....
But i have some questions regarding it
1. Will my data be format while rooting and installing twrp
2. How i will get ota update
3. Will installing ota update also format my data?
1. Your whole internal data needs to be wiped... To flash the force decryption enabler at first...
Even while installing twrp via fastboot.. Your data will be formated
2. You will get updates... But not via ota.... Yes you will get to download the updateds in some roms... But you need to dirty flash them.
3. While dirty flashing.... Formatting data is not required.
roxor101 said:
1. Your whole internal data needs to be wiped... To flash the force decryption enabler at first...
Even while installing twrp via fastboot.. Your data will be formated
2. You will get updates... But not via ota.... Yes you will get to download the updateds in some roms... But you need to dirty flash them.
3. While dirty flashing.... Formatting data is not required.
Click to expand...
Click to collapse
Does the twrp with working decryption also need to format my data?
You can root your device in two ways.
First, with twrp (OTA won't work afterwards)
Second, without twrp (OTA will work)
First method, unlock the bootloader (device will be wiped)>Grab the twrp with working decryption>Boot your device into fastboot and type fastboot flash recovery twrp.img (or whatever the recovery image name is)>Now type fastboot boot twrp.img (or whatever the recovery image name is)>Once booted into twrp, swipe to allow modification>Now download Magisk installer and copy into the device>Flash it?Reboot to system>Profit.
N.B. After flashing twrp, make sure to first boot into twrp before booting into system or else device will restore stock recovery. If you need to update in future, just grab the twrp flashable update package and flash it. That's it. No need for OTA.
Second method, this will also require an unlocked bootloader. Once the bootloader is unlocked, get the stock boot image of your current software (e.g. if you are on miui 10 with October security patch, make sure to grab the stock boot image for miui 10 october). Now install Magisk manager apk in your device. Now open magisk manager and go to install. You will find an option for patching stock boot image. Click on it and select the stock boot image. Magisk will patch the boot image and will place it in your internal memory. Now boot into fastboot mode and type fastboot boot patched_boot.img (or whatever the name is). Once device is booted into system, go to Magisk and click on Install>Direct install (recommended).Magisk will get flashed by itself and reboot. Once rebooted, go to Magisk manager and check. If you do everything correctly, you are rooted.
N.B. When you get an OTA update, open Magisk and go to Unsinatll and click on "Complete uninstall". It will uninstall magisk and revert your stock boot image back. Note that, if you play witgh system partition like modifying build.prop or change host file or bootanimantion or any such thing, you won't be able to get any further OTA update. In that case, you need to flash the complete fastboot rom through MiFlash tool.
For more information, please go to Magisk thread or search online.
How Can I Flash the December security update in my magisk rooted device? If I tray the "normal" way it gives me an error.
Hi. I had the same problem. Tried with restoring stock rom without wipe, but no go. Still error.
I ended up backing up my stuff and flashed stock with wipe, and then everything went well.
After your procedure what boot.img you use to reinstall magisk?
Usually when the bootloader is unlock is impossible to install any official update.
In that case I have the same problem, and I think the solution is to lock the bootloader, try to apply the update and to see if root still works. ( I am sure not).
In other case is, unlock the bootloader again, to wait the official ROM with December patch, extract boot.img, rebuild it with magisk and install it with fastboot and wait the final result.
Is crazy but while there is not another solution is a good way to have root on this Moto One.
skia16 said:
After your procedure what boot.img you use to reinstall magisk?
Click to expand...
Click to collapse
I booted up twrp and made a backup of boot.img, then patched it and flashed with fastboot.
tys0n said:
I booted up twrp and made a backup of boot.img, then patched it and flashed with fastboot.
Click to expand...
Click to collapse
I follow this way but magisk manager tells me that magisk Is not installed
skia16 said:
I follow this way but magisk manager tells me that magisk Is not installed
Click to expand...
Click to collapse
skia16 said:
I follow this way but magisk manager tells me that magisk Is not installed
Click to expand...
Click to collapse
Make a backup of boot in twrp.
Go to backup folder and make a copy of it somewhere. Rename the copy from "boot.emmc.win" to "boot.img".
Open Magisk manager, select install, choose "patch boot image file" and select the boot.img-file to patch.
It will unpack, patch and repack the boot.img for magisk functionality.
Move the patched_boot.img to pc and flash it with fastboot. "fastboot flash boot patched_boot.img".
Reboot, open Magisk manager. It should now ask to continue with environmental setup.
Or if you have the firmware package, you could just extract boot.img from it, put it on phone and patch it instead of using boot from twrp back up.
Hey guys. I'm trying to root my device using TWRP and magisk, and so far nothing seems to be right. The custom recovery keeps reverting back to stock recovery. And even if i flash it again it doesn't detect my internal storage.
I also flashed that decrypt(pie).zip file.
I unlocked my bootloader using the official tool if it matters. Any help is appreciated. Thanks.
Here are some advice for you:
1.You shold reboot into twrp in first reboot,
CUSTOM RECOVERY WILL BE WIPE during stock flimware is booting(the "Zenfone" with four dots screen).
2.Flash Magisk20.3 or newer version.
3.Official twrp cannot read encrypted data pratition, AsusDecryption(Pie).zip maybe only can disable stock forceencrypt.
4.The method I use:
Boot into fastboot->Flash TWRP (via computer)->Boot into TWRP->Keep System Read only->Flash Magisk zip file->Reboot into system->Install Magisk Manger->Let Magisk recover itself and reboot->Done
(Wish you can understand my terrible English)
wang1024 said:
Here are some advice for you:
1.You shold reboot into twrp in first reboot,
CUSTOM RECOVERY WILL BE WIPE during stock flimware is booting(the "Zenfone" with four dots screen).
2.Flash Magisk20.3 or newer version.
3.Official twrp cannot read encrypted data pratition, AsusDecryption(Pie).zip maybe only can disable stock forceencrypt.
4.The method I use:
Boot into fastboot->Flash TWRP (via computer)->Boot into TWRP->Keep System Read only->Flash Magisk zip file->Reboot into system->Install Magisk Manger->Let Magisk recover itself and reboot->Done
(Wish you can understand my terrible English)
Click to expand...
Click to collapse
Thank you. Flashing the Disable encryption zip file fixed the issue. So far TWRP is still there.