How to get Root+CustomKernel Android 11? - Google Pixel 4 XL Questions & Answers

hey guys i bought Pixel 4xl few days ago and today i decided to unlockbootloader and start flashing ...
i know a lot about fastboot and things like that , i came from a heavily moded pixel 2.
i can't get my head around how to root it and have a custom kernel at the same time.
i unlocked my phone then got a magiskpatchedboot.img .. i tried many combinations , i tried flashing the kernel first then rebooting to bootloader then flashing magisk patched , it didn't work , no luck for the other way around '' flashing magisk patched boot then booting to twrp then flashing Kirisakura kernel.
and btw let say that i flashed magiskpatchedboot and that's it the phone will boot normally but after trying to '' fastboot boot twrp.img'' i got stuck at the twrp splash screen/logo .
so to solve this i flash the original boot and dtbo and then boot to stock recovery and then i wipe data and reboot to bootloader and start again..
i just need the steps required... thanks a lot

Deadmau73 said:
hey guys i bought Pixel 4xl few days ago and today i decided to unlockbootloader and start flashing ...
i know a lot about fastboot and things like that , i came from a heavily moded pixel 2.
i can't get my head around how to root it and have a custom kernel at the same time.
i unlocked my phone then got a magiskpatchedboot.img .. i tried many combinations , i tried flashing the kernel first then rebooting to bootloader then flashing magisk patched , it didn't work , no luck for the other way around '' flashing magisk patched boot then booting to twrp then flashing Kirisakura kernel.
and btw let say that i flashed magiskpatchedboot and that's it the phone will boot normally but after trying to '' fastboot boot twrp.img'' i got stuck at the twrp splash screen/logo .
so to solve this i flash the original boot and dtbo and then boot to stock recovery and then i wipe data and reboot to bootloader and start again..
i just need the steps required... thanks a lot
Click to expand...
Click to collapse
1.Patch boot image in Magisk
2. Flash patched boot image via fastboot (fastboot flash boot xxxx.img)
3. Install kernel zip via EXKM or FKM (most if not all custom kernels for this device will recognize that you are rooted and will keep root. You also need to be rooted to use EXKM or FKM to flash kernels.)
4. Forget about TWRP, lol. Not supported for Android 11.

Lughnasadh said:
1.Patch boot image in Magisk
2. Flash patched boot image via fastboot (fastboot flash boot xxxx.img)
3. Install kernel zip via EXKM or FKM (most if not all custom kernels for this device will recognize that you are rooted and will keep root so this is why I'm putting it in this order).
4. Forget about TWRP, lol. Not supported for Android 11.
Click to expand...
Click to collapse
Thanks it worked .

Related

MIUI 10 flashing twrp, root and rom guide required

Hello,
I'm lookig for a guide how to twrp, root and install custom rom, on my Mi5 miui 10 global stable.
I'm not newbe I did a lot of flashing on my previus phones Nexus and others. But this time I feel lost. I sit on miui 10 global stable. When I try to to flash twrp I get reroll to mi recovery every single time. All guides I found in the Internet are dedicated to older android versions. Xiaomitool don't help too.
Can someone point me to the right direction? It is time to change rom on my Mi5 finally to give him boost b4 I buy something new.
Best regards
Amonlb
amonlb said:
Hello,
I'm lookig for a guide how to twrp, root and install custom rom, on my Mi5 miui 10 global stable.
I'm not newbe I did a lot of flashing on my previus phones Nexus and others. But this time I feel lost. I sit on miui 10 global stable. When I try to to flash twrp I get reroll to mi recovery every single time. All guides I found in the Internet are dedicated to older android versions. Xiaomitool don't help too.
Can someone point me to the right direction? It is time to change rom on my Mi5 finally to give him boost b4 I buy something new.
Best regards
Amonlb
Click to expand...
Click to collapse
Your bootloader is unlocked, right?
Then you need reboot to fastboot mode and flash latest official twrp via fastboot.
Like
Code:
fastboot flash recovery <path to twrp.img>
Have you tried it that way?
Phil_Smith said:
Your bootloader is unlocked, right?
Then you need reboot to fastboot mode and flash latest official twrp via fastboot.
Like
Have you tried it that way?
Click to expand...
Click to collapse
Bootloader is unlocked.
I did it that way but after twrp is installed I reboot and there is no twrp available. Only mi recovery.
To make it easier...
I would like to:
Flash twrp
Flash magisk and root
Flash firmware (why i need this?) Havoc os asks to flash it but I don't know why.
Flash havock os and gapps
Flash some mods for camera and sound
I don't understeand why twrp can't be flashed and I have no idea what is modified firmware for? Do I need this?
Thanks for your time
Try the the xiaomi eu rom guide .
I think you may need its custom bootloader , not the actual rom.
Than flash the firmware required for your custom rom and reboot directly to recovery again from twrp than rom and gapps , I hope that helps
Hi, i had the same problem, try this:
1. Flash twrp as usual(fastboot flash recovery twrp.img and then fastboot reboot)
2. When rebooting, you have to enter at recovery (vol up + power) . Don't allow phone to boot! In TWRP official page, on installation instructions , they say after installation you must enter in recovery to allow TWRP patch recovery rom, because some Roms after boot reinstall original recovery.
3. Now you should have TWRP installed.
If you do
fastboot flash recovery twrp.img
and then do
fastboot boot twrp.img
It's simpler and it will boot to recovery and patch the ROM to be permanently installed.
amonlb said:
Bootloader is unlocked.
I did it that way but after twrp is installed I reboot and there is no twrp available. Only mi recovery.
To make it easier...
I would like to:
Flash twrp
Flash magisk and root
Flash firmware (why i need this?) Havoc os asks to flash it but I don't know why.
Flash havock os and gapps
Flash some mods for camera and sound
I don't understeand why twrp can't be flashed and I have no idea what is modified firmware for? Do I need this?
Thanks for your time
Click to expand...
Click to collapse
First,fastboot flash recovery twrp.img
and then no reboot your phone, just to hold the key combo (vol up + power), and then you can enter the twrp mode once because the recovery will be changed when your phone has rebooted.
But you can use the only once twrp mode to install the zip .
If you just want to use MIUI 10, you will flashboot twrp everytime when you need twrp to do something.
PS: Forgive me pool English.
rmrbpt said:
If you do
fastboot flash recovery twrp.img
and then do
fastboot boot twrp.img
It's simpler and it will boot to recovery and patch the ROM to be permanently installed.
Click to expand...
Click to collapse
Thanks, this worked!

TWRP gets replaced by stock recovery

So I've used TWRP r16 and it throws an "Image not signed or corrupt" error as suggested by other users I ignored it, but everytime I reboot to system and try to get to recovery "no command" show's up meaning TWRP was replaced by stock recovery all help will be appreciated.
Thanks
Akash731 said:
So I've used TWRP r16 and it throws an "Image not signed or corrupt" error as suggested by other users I ignored it, but everytime I reboot to system and try to get to recovery "no command" show's up meaning TWRP was replaced by stock recovery all help will be appreciated.
Thanks
Click to expand...
Click to collapse
You need to flash Magisk after flashing TWRP
1. Flash Latest TWRP
2. Reboot to TWRP
3. Flash Magisk
If you boot in to system after flashing TWRP, TWRP will be removed
pradeeppk said:
You need to flash Magisk after flashing TWRP
1. Flash Latest TWRP
2. Reboot to TWRP
3. Flash Magisk
If you boot in to system after flashing TWRP, TWRP will be removed
Click to expand...
Click to collapse
Hey thanks that worked.
But everytime I boot to system and boot to twrp the data gets encrypted and I can't access the files do you happen to know any solution for this?
Akash731 said:
Hey thanks that worked.
But everytime I boot to system and boot to twrp the data gets encrypted and I can't access the files do you happen to know any solution for this?
Click to expand...
Click to collapse
If you are on stock Rom, according to my knoweldge it is not possible to remove encryption, if you format your date in twrp for removing encryption then reboot to system you can see that the phone is again encrypted.
But in custom roms this doesnt happen.
pradeeppk said:
You need to flash Magisk after flashing TWRP
1. Flash Latest TWRP
2. Reboot to TWRP
3. Flash Magisk
If you boot in to system after flashing TWRP, TWRP will be removed
Click to expand...
Click to collapse
pradeeppk said:
If you are on stock Rom, according to my knoweldge it is not possible to remove encryption, if you format your date in twrp for removing encryption then reboot to system you can see that the phone is again encrypted.
But in custom roms this doesnt happen.
Click to expand...
Click to collapse
I don't want to try custom rom's as this is my main device guess I'm stuck with the encryption then thanks for your help. :good:
Edit:-
Tried TWRP r20 it decrypts fine thanks
pradeeppk said:
You need to flash Magisk after flashing TWRP
1. Flash Latest TWRP
2. Reboot to TWRP
3. Flash Magisk
If you boot in to system after flashing TWRP, TWRP will be removed
Click to expand...
Click to collapse
You don't have to flash Magisk after flashing TWRP. The two are unrelated.
After flashing TWRP you have to boot into recovery, not system. Once TWRP was started, you can reboot into system. No need for Magisk (unless you want Magisk anyway).
gewe said:
You don't have to flash Magisk after flashing TWRP. The two are unrelated.
After flashing TWRP you have to boot into recovery, not system. Once TWRP was started, you can reboot into system. No need for Magisk (unless you want Magisk anyway).
Click to expand...
Click to collapse
It will not work in stock ROM, if you flash a custom rom there is no need to flash Magisk.
You should flash Magisk or custom kernel after flashing TWRP otherwise it will be erased.
Google about TWRP erasing after reboot you should get too many posts regarding this
This is one of them
https://forum.xda-developers.com/oneplus-3t/help/twrp-deleted-booting-t3769867
pradeeppk said:
It will not work in stock ROM, if you flash a custom rom there is no need to flash Magisk.
You should flash Magisk or custom kernel after flashing TWRP otherwise it will be erased.
Google about TWRP erasing after reboot you should get too many posts regarding this
This is one of them
https://forum.xda-developers.com/oneplus-3t/help/twrp-deleted-booting-t3769867
Click to expand...
Click to collapse
I am using stock ROM, and yes, also Magisk (installed later). IIRC Magisk is not needed for TWRP to work. When I receive the next OTA notification, I will test this.
The thread you are referring to is for a OnePlus 3T. For our device this is the thread: https://forum.xda-developers.com/moto-g5s-plus/development/recovery-twrp-3-1-1-r7-t3694910.
Since there is no official TWRP for the Moto G5S Plus, I took the following text from the TWRP page for the Moto G5S.
Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
Click to expand...
Click to collapse
Instead of that you can also use fastboot reboot-bootloader, and then from the bootloader start recovery.
pradeeppk said:
It will not work in stock ROM, if you flash a custom rom there is no need to flash Magisk.
You should flash Magisk or custom kernel after flashing TWRP otherwise it will be erased.
Google about TWRP erasing after reboot you should get too many posts regarding this
This is one of them
https://forum.xda-developers.com/oneplus-3t/help/twrp-deleted-booting-t3769867
Click to expand...
Click to collapse
Two days ago I received a notification for an OTA update, containing the August 2019 security patches.
After going back to stock ROM, installing all the updates up to the latest, I installed TWRP. After booting into recovery, and then into system, and recovery again, TWRP was gone. Strange, I don't remember this happening before. Maybe I always installed Magisk before booting into system.
Bottom line: you were right, I was wrong. Thanks for pointing it out.
gewe said:
Two days ago I received a notification for an OTA update, containing the August 2019 security patches.
After going back to stock ROM, installing all the updates up to the latest, I installed TWRP. After booting into recovery, and then into system, and recovery again, TWRP was gone. Strange, I don't remember this happening before. Maybe I always installed Magisk before booting into system.
Bottom line: you were right, I was wrong. Thanks for pointing it out.
Click to expand...
Click to collapse
As like you said this is the first time in my life i need to flash magisk to stick twrp.
I usualy doesn't use root or custom roms, install twrp, remove unnecessary apps from stock system, replace host files with adaway hosts, replace or edit gps config files. and continue using stock.
This is the main routine from Android 1.5
(Samsung spica (i think it was the first Android phone from Samsung)).
It may be due to security reason stock kernel or system delete twrp.
When installing magisk it patch stock boot image, that may be the reason of twrp remains after flashing magisk.

how to root redmi 8?

is there any way to root this phone?
I've been searching for a way but i think there is no way yet
moeizio said:
is there any way to root this phone?
I've been searching for a way but i think there is no way yet
Click to expand...
Click to collapse
you can download and install the TWRP Recovery on Xiaomi Redmi 8. This is an official TWRP.
twrp.me/xiaomi/xiaomiredmi8.html
elyazghi said:
you can download and install the TWRP Recovery on Xiaomi Redmi 8. This is an official TWRP.
twrp.me/xiaomi/xiaomiredmi8.html
Click to expand...
Click to collapse
thanks i'm currently waiting for the bootloader unlock count down
can you give me some instructions to flash TWRP on the phone cause i'm kinda new to this stuff
Use latest magsik manger apk extract your boot.img from your stock firmware then patch boot.img using magsik manger then flash the patched boot.img and first of all unlock your bootloader I recommend you use mi unlock sent request for unlocking your bootloader
Unable to install official TWRP in Redmi 8, Miui 11.0.7. It installed. and then vanished when rebooted. and then boot looped. Had to flash original recovery and boot img to reboot.
Had made sure that I didn't boot to system after flashing TWRP. and boot to recovery instead. It flashed okay. Could use the root after installing Magisk. But on reboot, all was gone. Boot looped.
hi bro how did you unlock bootloader on redmi 8 its on 11.0.6.0
Hey people, I have the same problem installing TWRP. When I reboot after installing twrp.img, the recovery mode show me the recovery from the original ROM stock. I made this process hundred of times and gets the same result, original Redmi recovery erase TWRP recovery.
If someone know any solution I would really appreciate it.
xjunglist said:
Hey people, I have the same problem installing TWRP. When I reboot after installing twrp.img, the recovery mode show me the recovery from the original ROM stock. I made this process hundred of times and gets the same result, original Redmi recovery erase TWRP recovery.
If someone know any solution I would really appreciate it.
Click to expand...
Click to collapse
It's listed all over here just do some searching . Different models have different methods.

Boot loop problem after updating magisk module.

Hello everyone,
Today I had a notification telling me that there is a new version of both magisk manager and module. Therefore I first updated the manager successfully and proceeded to update the module through in-app flash. After the flash completed, app prompted me to reboot. However, the reboot process never finished and the phone got stuck while booting. Since then I only tried factory reset which only booted the phone to let me enter my sim card password but after that, it rebooted itself to boot loop again. Some info about the phone:
TWRP installed and still working,
Latest xiaomi.eu from that won't boot anymore,
Only viper4droid and youtube vanced modules were installed.
AdAway for obvious reasons.
and that's it. Now I am planning on flashing crdroid ROM to make the phone work again but the installation process requires me to do:
Flash MIUI11 eea with miflash : min V11.0.8.0.QFAEUXM note : if already on v11.08.0 there's no need to redo
Flash vbmeta.img with "fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification" note : if already done there's no need to redo
Flash TWRP in fastboot and boot into TWRP
Click to expand...
Click to collapse
is there a step that I should skip? It's been 6 months since I handled the initial process to be able to flash xiaomi.eu from therefore I don't remember how I exactly did that as I have only been OTA updating the from since then. I don't remember or know how to flash V11.0.8.0.QFAEUXM nor vbmeta.img nor TWRP. I don't even know if I "should" flash those. I am open to any different suggestions or help to let me achieve my goal of flashing crdroid to get out of this mess.
Thanks in advance!

Stock boot.img is not booting on boot_b

Hi there,
I've been rooting phones since Android 2, but lately it has been quite a challenge.
What I did so far:
Unpack new Xiaomi MI A2 (jasmine) device
Enabled Developer, USB debugging, OEM unlock in Android settings
Code:
fastboot oem unlock
Code:
fastboot flash boot_b TWRP-3.2.3-jasmine-20180804.img
TWRP ran fine. However, started with boot_a again.
OTA updated (about 6 times) to the newest version (Android 10, QKQ1.190910.002 V11.0.12.0.QDIMIXM)
Code:
fastboot flash boot_b twrp-3.4.0-0-jasmine_sprout.img
TWRP started only to the splash screen (showing "teamwin" and "Recovery Project 3.4.0-0"). Why is TWRP not starting properly?
Downloaded the stock fastboot image V11.0.12.0.QDIMIXM from https ://xiaomifirmwareupdater.com/archive/miui/jasmine/ and flash the stock boot.img via
Code:
fastboot flash boot_b jasmine_global_images_V11.0.12.0.QDIMIXM_10.0/images/boot.img
(my goal is to later patch it with Magisk and then install the patched version). However, the stock boot.img just hangs forever on the androidone screen. Why is the stock boot.img not starting properly?
I haven't used the Mi Unlock app and I didn't do an "fastboot flashing unlock_critical" yet. Is this necessary? What do I have to do to make the boot images work?
floydsen said:
Hi there,
I've been rooting phones since Android 2, but lately it has been quite a challenge.
What I did so far:
Unpack new Xiaomi MI A2 (jasmine) device
Enabled Developer, USB debugging, OEM unlock in Android settings
TWRP ran fine. However, started with boot_a again.
OTA updated (about 6 times) to the newest version (Android 10, QKQ1.190910.002 V11.0.12.0.QDIMIXM)
TWRP started only to the splash screen (showing "teamwin" and "Recovery Project 3.4.0-0"). Why is TWRP not starting properly?
Downloaded the stock fastboot image V11.0.12.0.QDIMIXM from https ://xiaomifirmwareupdater.com/archive/miui/jasmine/ and flash the stock boot.img via (my goal is to later patch it with Magisk and then install the patched version). However, the stock boot.img just hangs forever on the androidone screen. Why is the stock boot.img not starting properly?
I haven't used the Mi Unlock app and I didn't do an "fastboot flashing unlock_critical" yet. Is this necessary? What do I have to do to make the boot images work?
Click to expand...
Click to collapse
why do you feel you must use boot images ...the tried and working method for "jasmine" is to boot custom recovery and then flash magisk zip ( root only ) ..or...flash custom recovery installer zip which will flash recovery to both a/b slots.. then flash magisk
to properly boot you need to overcome stuff like secure boot and force encryption
if you aren't planning on custom roms just boot twrp to flash magisk
or
flash installer zip for recovery and wipe everything including formatting data to remove encryption and boot directly to recovery to install custom rom
twrp custom recovery had problems with decryption on stock rom ...secure boot won't allow booting modified images ..
lastly remember on jasmine there is no recovery partition..so everything is in the boot image ..magisk and recovery ..so everytime you flash stock , stock boot overwrites these changes and should flash everything again
tbh that's why i converted to wayne to get old partition layout as the A/B story pissed me off
KevMetal said:
why do you feel you must use boot images ...the tried and working method for "jasmine" is to boot custom recovery and then flash magisk zip ( root only ) ..or...flash custom recovery installer zip which will flash recovery to both a/b slots.. then flash magisk
to properly boot you need to overcome stuff like secure boot and force encryption
if you aren't planning on custom roms just boot twrp to flash magisk
or
flash installer zip for recovery and wipe everything including formatting data to remove encryption and boot directly to recovery to install custom rom
twrp custom recovery had problems with decryption on stock rom ...secure boot won't allow booting modified images ..
lastly remember on jasmine there is no recovery partition..so everything is in the boot image ..magisk and recovery ..so everytime you flash stock , stock boot overwrites these changes and should flash everything again
tbh that's why i converted to wayne to get old partition layout as the A/B story pissed me off
Click to expand...
Click to collapse
Ok. So I'm back to Stock image jasmine_global_images_V11.0.12.0.QDIMIXM_10.0 by executing "flash_all.sh". You are saying I should "simply boot". You mean:
Code:
fastboot boot TWRP-3.4.0-0-jasmine_sprout-for_V11.0.12.0.img
right? That doesn't work, it won't boot. How do I overcome secure boot and force encryption?
floydsen said:
Ok. So I'm back to Stock image jasmine_global_images_V11.0.12.0.QDIMIXM_10.0 by executing "flash_all.sh". You are saying I should "simply boot". You mean:
right? That doesn't work, it won't boot. How do I overcome secure boot and force encryption?
Click to expand...
Click to collapse
yes im saying that but post a pic of the error ...why or how doesn't it boot ..
if it is the official twrp just dump it and look for the unofficial Russian one or one modified by Nebrassy or use Orange fox and or Pitch black ..official is broken last time i checked
also the name of that looks like one hell of a job ..shorten it to
recovery.img or twrp.img
fastboot boot recovery.img
but first run
fastboot getvar all
& also run fastboot flashing unlock_critical
but most importantly get another recovery
& i don't want to insult your intelligence but after flashing stock did you check to make sure bootloader was still unlocked and that dev settings was activated and that adb was toggled to on and that you authorised adb again
basicall after stock boot device and do the above ..plug in usb ..toggle adb ..authorise ..run adb devices ..if you see your device ..adb reboot bootloader ..fastboot devices ..see your device ..fastboot getvar all ..see bootloader is unlocked ..fastboot flashing unlock_critical if not done yet ...make sure to do ALL the above again after data gets wiped.....put twrp in adb folder ( MUST BE UNOFFICIAL RUSSIAN OR MODUFIED BY NEBRASSY ..rename to revovery.img ...fastboot boot recovery.img .. use file manager to put magisk.zip on internal then flash ..then reboot to rooted phone with stock recovery ...
Sent from my wayne using XDA Labs
KevMetal said:
why do you feel you must use boot images ...the tried and working method for "jasmine" is to boot custom recovery and then flash magisk zip ( root only ) ..or...flash custom recovery installer zip which will flash recovery to both a/b slots.. then flash magisk
to properly boot you need to overcome stuff like secure boot and force encryption
if you aren't planning on custom roms just boot twrp to flash magisk
or
flash installer zip for recovery and wipe everything including formatting data to remove encryption and boot directly to recovery to install custom rom
twrp custom recovery had problems with decryption on stock rom ...secure boot won't allow booting modified images ..
lastly remember on jasmine there is no recovery partition..so everything is in the boot image ..magisk and recovery ..so everytime you flash stock , stock boot overwrites these changes and should flash everything again
tbh that's why i converted to wayne to get old partition layout as the A/B story pissed me off
Click to expand...
Click to collapse
KevMetal said:
yes im saying that but post a pic of the error ...why or how doesn't it boot ..
if it is the official twrp just dump it and look for the unofficial Russian one or one modified by Nebrassy or use Orange fox and or Pitch black ..official is broken last time i checked
Sent from my wayne using XDA Labs
Click to expand...
Click to collapse
Of course it is the official one. OMFG twrp-3.4.0-0-jasmine_sprout.img is broken (freezes on the TWRP splash screen), but version 3.3.1 seems to work. That's a relief, so I will try to flash magisk now. Although, I think I will need to do the decryption thing for jasmine first, but I guess I'll follow https://www.the***********.com/install-twrp-recovery-root-xiaomi-mi-a2-a2-lite/ mostly
floydsen said:
Of course it is the official one. OMFG twrp-3.4.0-0-jasmine_sprout.img is broken (freezes on the TWRP splash screen), but version 3.3.1 seems to work. That's a relief, so I will try to flash magisk now. Although, I think I will need to do the decryption thing for jasmine first, but I guess I'll follow https://www.the***********.com/install-twrp-recovery-root-xiaomi-mi-a2-a2-lite/ mostly
Click to expand...
Click to collapse
jajaja well now you know ...be careful ...some "official" roms are also more buggy than unofficial ones for Jasmine/Wayne..
LOS is an example ..so be forewarned .. if you like android 1 i guess stock rooted is a smart option to keep updates and keep device certified for google stuffs . .
alternativeky go FULL custom rom because stock and custom recovery is just a pain and not worth the hassle on an A/B treble device flashable by fastboot ..just boot the recovery when if ever needed
fyi ..you can flash magisk and it will boot ...if you don't try changing the recovery ..so you can have stock rooted with magisk without rcustom recovery...* recommended by me if you only wamt stock with root
Sent from my wayne using XDA Labs
All good now, thanks for your help! I just flashed Magisk (and also TWRP) and everything works nicely! I will need to get some experience, but I'll keep in mind that I maybe want to get rid of the TWRP recovery. Finally security testing is fun again. Thx!

Categories

Resources