Hello, I'm on Android P Beta 2 and I tried to root my phone, I have flashed the correct boot image and magisk but it won't appear on my phone, does anyone have any suggestions?
Download the magisk apk then transfer the boot image to your device... Inside magisk patch the boot image, then transfer the patched boot image back to your computer... Next fastboot TWRC and flash the patched boot image, and magisk should be installed after boot, as well as have root access
That didn't work
Related
Here is a fastboot bootable image to boot you into Magisk core-only mode in case you bootloop due to flashing a bad module and TWRP is not enough.
Once in fastboot:
fastboot boot image-newpixel.img
You will boot with root but modules disabled. If something additional is needed, once booted to core-only, unzip the attached zip onto your pc where you can run ADB/fastboot and run the bat file. It will push .disable_magisk to your cache folder so that your modules will be disabled even after a reboot (zip says crosshatch but will work on any phone)
Boot image uploaded 11-24-19
https://www.androidfilehost.com/?fid=4349826312261644462
I'm on OxygenOS v 10.3.0 right now,
The problem is that, i can't have TWRP & Root and the same time,
Means if i patch boot image with Magisk and flash it with fastboot i lost TWRP (with stock) and if i some how manage to flash TWRP again, device go in to twrp boot loop, to fix that i have to flash boot image again with fastboot and now i lost Root
Tried all available TWRP and Magisk versions
Pls any Fix to my problem.
(Ignore my English, not a native English speaker)
i follow this thread and now i have twrp+magisk in oos 10.3.0
https://forum.xda-developers.com/oneplus-6t/how-to/ultimateguide-t4004367
i think you missed out to flash twrp installer after flash magisk.
So bothering with patching boot img...... It was good when no twrp was available, when fleshing patched boot it's logical that twrp disappear as twrp is precisely in boot partition.....
Fastboot boot twrp with your computer, then flash twrp zip installer. Then flash Magisk zip with twrp. You're done.
Hi gyes, I have redmi k20, when I flash magisk patched recovery image then device stuck at fastboot, so I flash original recovery image for device , then it start in normal mode, so device can't rooted, so pls any one guide me to root device with magisk.
Thanks...
wakram001 said:
Hi gyes, I have redmi k20, when I flash magisk patched recovery image then device stuck at fastboot, so I flash original recovery image for device , then it start in normal mode, so device can't rooted, so pls any one guide me to root device with magisk.
Thanks...
Click to expand...
Click to collapse
You have to patch boot.img and flash the patched img to Boot
Btw, there were two guides in the Guides section about the same (stating exactly the same: extract boot ing, patch and flash).
Guides (in the Redmi K20/Mi 9T section) are old and maybe from the times of A9 MIUI 10 - but the same method still works for A11 / MIUI 12.x
Hence, you can have in parallel both Magisk (in Boot partition) and TWRP (in Recovery partition)
boot.img must be extracted from exactly the same firmware package (recovery/zip or fastboot/tgz) that you have installed to your phone.
Or you can patch boot.emmc.win TWRP backup file of your Boot partition (instead of exteacted boot.img file)
You can flash from Fastboot of from TWRP
If using TWRP, use the latest official twrp-3.5.2_9-0-davinci
My device has no ramdisk.
I have already tried with boot image but magisk patched boot image not flash, it show error.
Thanks for reply...
zgfg said:
You have to patch boot.img and flash the patched img to Boot
Btw, there were two guides in the Guides section about the same (stating exactly the same: extract boot ing, patch and flash).
Guides (in the Redmi K20/Mi 9T section) are old and maybe from the times of A9 MIUI 10 - but the same method still works for A11 / MIUI 12.x
Hence, you can have in parallel both Magisk (in Boot partition) and TWRP (in Recovery partition)
boot.img must be extracted from exactly the same firmware package (recovery/zip or fastboot/tgz) that you have installed to your phone.
Or you can patch boot.emmc.win TWRP backup file of your Boot partition (instead of exteacted boot.img file)
You can flash from Fastboot of from TWRP
If using TWRP, use the latest official twrp-3.5.2_9-0-davinci
Click to expand...
Click to collapse
My device has no ramdisk, A 10 miui 12.
I have already tried with boot image but magisk patched boot image not flash, it show error.
Thanks for reply...
wakram001 said:
My device has no ramdisk, A 10 miui 12.
I have already tried with boot image but magisk patched boot image not flash, it show error.
Thanks for reply...
Click to expand...
Click to collapse
Don't pay attention to what Magisk says (No Ramdisk).
Brw, there is some (albeit small prints) note about 'No Ramdisk' devices in the Magisk guide on the official Magisk Github - saying that on some (not sure does it mention Xoaomi) boot.img must be patched
I use this method since A9/MIUI 10 till now on A11/MIUI 12.6 and never had problems - see also my screenshot (Magisk installed, saying No Ramdisk but I installed Magisk by patching boot img)
Also, if it won't work, just flash the original boot.img
wakram001 said:
My device has no ramdisk, A 10 miui 12.
I have already tried with boot image but magisk patched boot image not flash, it show error.
Thanks for reply...
Click to expand...
Click to collapse
What error?
Command for Fastboot flashing must be:
fastboot flash boot <patched-boot-img>
Try again and post the error screenshot
When patching, you must not tick Recovery option (since you are not patching Recovery)
You can read also discussion about patching boot img
(where the same has been asked and answered many times) for Xiaomi phones in the General Magisk Support thread on XDA
Edit:
You can also only temporarily (one time) boot to the patched boot img by:
fastboot boot <patched boot img>
(Observe that flash command is omitted)
Then if ok, flash it permanently
Btw, always make sure that Fastboot is properly connected:
fastboot devices
Btw, another similar thread - Mi 9T Pro (doesn't matter), MIUI 12, disbelief about patching boot.img (and possible bootloop with the solution, in case of previously installed Magisk modules):
Does patched boot.img Magisk work on MIUI V12.5.1.0? (Edit: Yes it does!)
Just curious if anyone has any insight as to whether I can use the Magisk app to patch the newest boot.img (12.5.1.0 global / Android 11 / mi9t pro) and whether it will go smoothly if I install it via fastboot flash boot patchedmagiskhere.img? I...
forum.xda-developers.com
Magisk patched boot image is working properly. Now I have rooted device.
Thanks.
I flashed stock android 10 river (from lolinet).
I wish to root it and have twrp recovery.
But rooting with magisk removes the installed twrp recovery!
What I did:
—Downloaded both the img and the zip from https://dl.twrp.me/river/
—Copied the zip to the phone's external sdcard.
—I put the phone into bootloader mode (volume down and power button)
—Connected the phone to windows PC.
—Open a command window (in GooglePlatformTools folder) and ran the following command:
fastboot boot twrp.img (This temporarily booted TWRP on the phone).
—in TWRP. I installed the twrp zip
It successfully installed TWRP on boot partition of both slots.
So now I have twrp installed and working.
I now needed to root the phone
So I installed Magisk 23 on the phone
I extracted the boot.img from the android 10 river rom that I initially flashed to the phone and patched it with Magisk.
I moved the patched boot.img file to the pc and flashed it to the phone.
My problem:
flashing the patched boot.img rooted the phone, but when I go to recovery I get the phone recovery not twrp.
What am I doing wrong? I've repeated the process and get the same result.
How do I get a rooted phone and TWRP recovery.
Thanks for any help.
maybeme2 said:
I flashed stock android 10 river (from lolinet).
I wish to root it and have twrp recovery.
But rooting with magisk removes the installed twrp recovery!
What I did:
—Downloaded both the img and the zip from https://dl.twrp.me/river/
—Copied the zip to the phone's external sdcard.
—I put the phone into bootloader mode (volume down and power button)
—Connected the phone to windows PC.
—Open a command window (in GooglePlatformTools folder) and ran the following command:
fastboot boot twrp.img (This temporarily booted TWRP on the phone).
—in TWRP. I installed the twrp zip
It successfully installed TWRP on boot partition of both slots.
So now I have twrp installed and working.
I now needed to root the phone
So I installed Magisk 23 on the phone
I extracted the boot.img from the android 10 river rom that I initially flashed to the phone and patched it with Magisk.
I moved the patched boot.img file to the pc and flashed it to the phone.
My problem:
flashing the patched boot.img rooted the phone, but when I go to recovery I get the phone recovery not twrp.
What am I doing wrong? I've repeated the process and get the same result.
How do I get a rooted phone and TWRP recovery.
Thanks for any help.
Click to expand...
Click to collapse
One possibilty I thought of: I never flashed magisk zip through twrp. Maybe that is my problem.
I installed magisk manager and did everything through it. Where do I find the magisk zip.to install through twrp?
rename the apk to zip and flash via twrp
Cronoss said:
rename the apk to zip and flash via twrp
Click to expand...
Click to collapse
That is what I finally discovered was the right thing to do.
All is well now.
I tried "fastboot boot" almost all of KizuYuna's .imgs, tried fastboot boot the lineagerecovery.img. All I get is the fastboot logo and the phone just restarts into OOS... TWRP is same.
About to MSM downgrade to OOS 10 to get recovery working like I did before. Thought it would be better to flash a rom from OOS 11 to get better firmware compatibility but just wont work.
Simply go back to OS 10.3.5 using the MSM Download Tool. Upgrade via OTA to 11..1.1.1, fastboot flash boot magisk_patched-23000_11.1.1.1 from XDA 235Sanders15 post. (you are now rooted with Magisk. Via Magisk install TWRP-Installer-3.5.2_9-0 you are now unrooted but have TWRP installed. Using TWRP flash Magisk v23.0.You are now rooted on OS 11.1.1.1 with TWRP installed. Do not change the Kernel it will cause a Bootloop.
bpambrose said:
Simply go back to OS 10.3.5 using the MSM Download Tool. Upgrade via OTA to 11..1.1.1, fastboot flash boot magisk_patched-23000_11.1.1.1 from XDA 235Sanders15 post. (you are now rooted with Magisk. Via Magisk install TWRP-Installer-3.5.2_9-0 you are now unrooted but have TWRP installed. Using TWRP flash Magisk v23.0.You are now rooted on OS 11.1.1.1 with TWRP installed. Do not change the Kernel it will cause a Bootloop.
Click to expand...
Click to collapse
So you are saying MSM to 10 and then flash official 11.1.1.1 or fastboot flash boot magisk_patched-23000_11.1.1.1 (this is a full 11.1.11.1 OS flash? No need to use twrp from 10?)
Thanks
So I just went thru an Android 10 to 11.1.1.1 upgrade, and it was a bit frustrating. So I'll throw out what I learned along the way.
Note, I have a T-Mobile Variant, so sometimes you need different files/steps for T-Mo.
I flashed the full OTA via Settings > Update > Local Upgrade, which ended up boot-looping.
Via Fastboot, I did fastboot flash boot magisk_patched-23000_11.1.1.1.img; followed by fastboot reboot;
This was still boot-looping, so I shutdown the phone, and booted into recovery, which was now PBRP.
via PBRP, I flashed the full OTA again from my SDCard; then installed PBRP zip;
Reboot to System and got a Successful Boot. Yey.
Reboot to Recovery; Backup Boot.
Reboot to System
Install Magisk App; within Magisk > Install > select my Boot Backup to Patch (per Magisk instructions); I used a file manager to copy to my PC from my phone
Reboot to Fastboot; fastboot flash boot magisk_patched-23000_rJoA.img (the file Magisk created)
Reboot to System; Success!
I guess my morale of the story is, get a clean boot working, go from there. Patch your own boot, don't rely on someone else's.
Fenopy said:
So I just went thru an Android 10 to 11.1.1.1 upgrade, and it was a bit frustrating. So I'll throw out what I learned along the way.
Note, I have a T-Mobile Variant, so sometimes you need different files/steps for T-Mo.
I flashed the full OTA via Settings > Update > Local Upgrade, which ended up boot-looping.
Via Fastboot, I did fastboot flash boot magisk_patched-23000_11.1.1.1.img; followed by fastboot reboot;
This was still boot-looping, so I shutdown the phone, and booted into recovery, which was now PBRP.
via PBRP, I flashed the full OTA again from my SDCard; then installed PBRP zip;
Reboot to System and got a Successful Boot. Yey.
Reboot to Recovery; Backup Boot.
Reboot to System
Install Magisk App; within Magisk > Install > select my Boot Backup to Patch (per Magisk instructions); I used a file manager to copy to my PC from my phone
Reboot to Fastboot; fastboot flash boot magisk_patched-23000_rJoA.img (the file Magisk created)
Reboot to System; Success!
I guess my morale of the story is, get a clean boot working, go from there. Patch your own boot, don't rely on someone else's.
Click to expand...
Click to collapse
So you had to go through all the trouble because you had a bootloop issue when OTA updating to 11? I already got to 11 but am trying to fastboot boot a recovery because I want to flash a custom ROM... When I fastboot boot TWRP.img or LOS Recovery .img it just shows fastboot logo and restarts the phone with no recovery shown..