After rooting android 10 with Magisk it removes installed TWRP - Moto G7 Questions & Answers

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.

Related

I messed up my phone by updating TWRP, but I am not quite sure how.

Alright so I went to dirty flash a new ROM update but TWRP errored out so I was unable to. I went to update TWRP (I was 2 versions out of date) and it flashed without a problem. However now I can no longer boot into recovery or quickboot but my ROM loads just fine. What the hell is going on?
I actually did NOT correctly flash TWRP. I am still on the older version and still cannot boot into it
flash twrp from fastboot.
1) reboot into bootloader
2) open a terminal inside the folder where you downloaded the recovery .img file
3) type into terminal: fastboot flash recovery recoveryfilename.img
4) reboot into recovery holding power and vol -
I cannot boot into fastboot or the bootloader.
Fixed by flashing older version of TWRP with the app inside of android.

fastboot help

I was flashing TWRP
I couldn't boot into system after flashing..
This is what I did:
1. fastboot boot recovery.img
2. Swipe to allow modifications in twrp
3. Flash TWRP installer zip
4. Reboot into partition B
5. Reboot bootloader
6. fastboot boot recovery.img
7. Swipe to allow modifications in twrp
8. Flash TWRP installer zip
9. Then I rebooted into recovery to check if recovery boots and it did.
But afterwards couldn't boot back into system. It was again booting into recovery.
I booted into recovery using fastboot boot, that's why it might won't boot into system. Is there a command to boot into system after above procedure?
Files used: https://m.youtube.com/watch?v=tRcYUMBgvaI
? How to Root Mi A1! Unlock Bootloader, TWRP Recovery ... - YouTube
By Dhananjay Bhosale
Kindly also suggest source of files you used, if you know another working method.
I have the same problem. Meanwhile, flash the stock fastboot images.
Why do you want to have TWRP installed? I am following these steps each month (fastboot ROM was always out sooner than my OTA) without any issues.
1. flash stock ROM via fastboot
2. fastboot boot twrp-3.1.1.img and don't allow system modifications or you won't be able to apply OTA
3. install magisk 15.1
4. reboot to system
If first boot takes more than 2-3 minutes, hold power off button until phones restarts, second start will take the usual time.
I also don't allow any modifications from TWRP, and just boot to TWRP when I need to. I do not install TWRP.
Sounds like you'll have to do a miflash of the rom, then try not installing TWRP and not allowing any modifications in TWRP to system. Just use TWRP to flash Magisk.

Magisk Won't appear

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

Accidentally flashed twrp into boot partitions... help!

So I let the latest OOS open beta 8 auto install via OTA. After the reboot, I lost twrp and magisk, so I went back to fastboot and wanted to boot into twrp, but I used the wrong command
Code:
sudo fastboot flash boot twrp-fajita-3.3.0-2.img
The word "flash" should not have been there! So this command overwrote boot_a. So I switched to slot B, and wanted to boot into twrp, but STUPIDLY used the same wrong command again!!
Now I can't seem to boot into system at all, and am stuck at recovery. I've tried a bunch of things, including flashing both boot_a and boot_b with a boot.img extracted from the open beta 7 via SuperR's Kitchen, but I'm still left in this state where if I fastboot boot twrp-fajita-3.3.0-2.img in order to flash the open beta 7 zip, it reboots only to oneplus recovery.
If I fastboot boot twrp-fajita-3.3.0-2.img in order to flash the open beta 7 zip, followed by the twrp zip, and with or without magisk, a reboot brings me back to TWRP, but where it does not ask for my encryption password and hence all my filenames show up as encrypted. Only if I fastboot boot twrp, then it gives me the option to type in my password and successfully decrypts the files.
Any idea how I can fix this?
SOLUTION: I think it was because I was trying to flash back open beta 7 after installing open beta 8 OTA. So after I found the download zip for open beta 8, I extracted the boot.img, flashed the boot.img to boot, flashed open beta 8 zip, and I could reboot and get into system. Phew!
Try flashing the latest Stock ROM via TWRP.
Yeah, like he said. Download the OB8 and flash it via TWRP.

About to give up on flashing recovery to OOS 11.1.1.1

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..

Categories

Resources