Root/Custom ROM/Magisk v.14 - Help to validate understanding - Xiaomi Redmi Note 4 Questions & Answers

[Noob] Need help to confirm/correct basic understanding of root/custom ROM process involving the latest apks/roms etc.
Device (RN4SD) bootloader unlocked, running MIUI 8.5.8 Stable ROM
Root access only, stock ROM:
1. Only Magisk v.14, No TWRP
- Place stock recovery.img (extracted from mido ROM folder) into phone internal storage
- Install Magisk Manager v.5.4.0 apk on Phone
- Q. Whether to install Magisk v14 zip from Magisk Manager or from MiFlash on PC?
- Q. If from MiFlash on PC, whether to unzip Magisk v.14 into a folder?
- Q. How to patch with stock recovery?
- Q. Whether to select dm-verity option in Manager?
- Q. Will lazyflasher still be needed? If yes, when and how to be flashed?
- Q. Will reboot to system boot into stock ROM, now with root access?
2. Root Access and Custom ROM (e.g. xiaomi.eu)
- Flash install TWRP 3.1.1.0.img (from MiFlash through PC)
- Flash install lazyflasher zip (from TWRP on phone)
- Flash install Magisk v.14 zip (from TWRP) on phone
- Q. Now Reboot? Will this boot into existing MIUI ROM?
Or
- Q. Flash/install custom rom (e.g. xiaomi.eu) (from TWRP on phone) and then reboot to system?
- Q. When do we need to select wipe cache option in TWRP?
Thanks much

powerofone said:
[Noob] Need help to confirm/correct basic understanding of root/custom ROM process involving the latest apks/roms etc.
Device (RN4SD) bootloader unlocked, running MIUI 8.5.8 Stable ROM
Root access only, stock ROM:
1. Only Magisk v.14, No TWRP
- Place stock recovery.img (extracted from mido ROM folder) into phone internal storage
- Install Magisk Manager v.5.4.0 apk on Phone
- Q. Whether to install Magisk v14 zip from Magisk Manager or from MiFlash on PC?
- Q. If from MiFlash on PC, whether to unzip Magisk v.14 into a folder?
- Q. How to patch with stock recovery?
- Q. Whether to select dm-verity option in Manager?
- Q. Will lazyflasher still be needed? If yes, when and how to be flashed?
- Q. Will reboot to system boot into stock ROM, now with root access?
2. Root Access and Custom ROM (e.g. xiaomi.eu)
- Flash install TWRP 3.1.1.0.img (from MiFlash through PC)
- Flash install lazyflasher zip (from TWRP on phone)
- Flash install Magisk v.14 zip (from TWRP) on phone
- Q. Now Reboot? Will this boot into existing MIUI ROM?
Or
- Q. Flash/install custom rom (e.g. xiaomi.eu) (from TWRP on phone) and then reboot to system?
- Q. When do we need to select wipe cache option in TWRP?
Thanks much
Click to expand...
Click to collapse
Well, I guess, I've no idea about MIUI, but fact that currently I'm running on Xiaomi.eu ROM. I just flashed latest magisk via TWRP, that's it. There's no need to extract it and install apk, as I already said, just flashing magisk zip via TWRP is enough on eu, not sure about other miui Roms.
Custom ROMs and magisk? Ezz easy bruh, all you've to do is to get the latest Magisk zip from magisk thread and flash it via TWRP. There's no need to extract it and install it separately on custom Roms. That's it.
Edit : nah, I didn't flash lazyflasher.zip on either eu or custom Roms. Just flash magisk and boot into system.

if you using official miui rom and using official twrp, you must flash lazyflasher, otherwise you cannot boot into system.
Sent from my Redmi Note 4 using Tapatalk

Related

Systemless Root & SafetyNet working [GUIDE][Magisk][StockROM-6.0.1][SkyMelon][TWRP]

Systemless Root & SafetyNet working [GUIDE][Magisk][StockROM-6.0.1][SkyMelon][TWRP]
Hi XDA friends,
After quite investigation I finally have found the way to have our devices Systemless Rooted.
The main advantage? SafetyNet working on our rooted device. That means Google does not notice our device is rooted ...yes, you can play Nintendo games or use Android Pay as well!
View attachment 4371569 View attachment 4371476
Here is the step by step guide:
You Must Have: Unlocked bootloader, ADB Fastboot drivers and Flashtool installed.
- Flash Stock Android 6.0.1 ROM with Flashtool (Wipes checked). I recommend 26.3.A.1.33 for the E2303 model. You can find Stock ROMs in this post.
- Flash TWRP from ADB: "fastboot flash recovery recovery.img" (I tried with v3.0.2.0 and also the new v3.2.1-0 recently published here!)
- Flash custom kernel (SkyMelon 8.1 or 9 without-root) from TWRP. Download v8.1 from this post or v9 directly here: View attachment 9-20171210-no-root.zip. Wipe Dalvik/Cache after install it.
- Flash the latest version of Magisk with TWRP. Wipe Dalvik/Cache after install it. GitHub repo: https://github.com/topjohnwu/Magisk/releases
- Install the latest version of Magisk Manager.apk. GitHub repo: https://github.com/topjohnwu/MagiskManager/releases
- [Optional] In order to avoid flashing errors with TWRP it is recommended to update directly through Magisk Manager. If you want to install previous versions of Magisk (between v14.6 and v15.2), could be neccesary to check the box "Preserve AVB 2.0/dm-verity" before "Direct Install" it.
Note: Magisk v16.4 and Magisk Manager v5.7.0 was the last version working tested by me. From this version I will discontinue testing new Magisk releases on this device. Feel free to post your experience with the new ones
- This method is compatible with E2303, E2306 (reported by @zputnyq) and E2333 (reported by @Yester_Ko) models.
- Compatibility with Apps2SD reported by @tim_pear
Please if this works for you, thanks are very welcome to my first post! Also ideas or improvements to the post are welcome.
Credits:
- Special thanks to @osmank3 who built SkyMelon v9 without-root and help me with Magisk updates.
thanks for sharing your experience , I have A question what about DRM fix , did restore you TA backup ?
Hi! Thanks for your guide. Can you share your safety net check screen on magisk? I try that kernel and some other kernels with different magisk versions, but I don't understand safety net checking status.
Hi othmane.os,
I cannot provide information about restoring the TA. My warranty expired some time ago and I don´t have a TA backup.
Thanks for comment.
othmane.os said:
thanks for sharing your experience , I have A question what about DRM fix , did restore you TA backup ?
Click to expand...
Click to collapse
Hi osmank3,
I have modified the post with the screenshot request and also with some links to the material used in the guide.
If you have any problem, I will be glad to help you. Thanks for comment.
osmank3 said:
Hi! Thanks for your guide. Can you share your safety net check screen on magisk? I try that kernel and some other kernels with different magisk versions, but I don't understand safety net checking status.
Click to expand...
Click to collapse
I want to use your guide but I'm busy to do current configuration of my phone. I delete some files on my system partition for gaining storage (I copied some new versions of upgraded apps to system partition) This take my time but I haven't got enough.
I use skymelon 9 kernel, with supersu. I guess because of supersu changed system partition and safetynet fails. I dislike supersu app but skymelon 9 comes with it. So I built skymelon 9 myself without supersu, but I didn't flash stock rom before installing skymelon 9 without-root and magisk. Now on my phone Magisk15 and skymelon9(compiled by me) installed. Magisk's hide function hiding itself from google apps and choosen apps but safetynet check fails.
Can you or anybody try this guide with skymelon 9 without-root which built by me?
View attachment 9-20171210-no-root.zip
Thanks
Hi osmank3,
I have tested the kernel that you built and it is working perfect. Thank you! This version has been added to the post and of course is menctioned your contribution.
I'm afraid you'll have to install a stock ROM...
BTW: I cannot get working Magisk v15. If I install it direclty from Magisk Manager the installation fails. If I install it through TWRP (and do wipes), the process is correct but when I check it, Magisk Manager not shows it as installed. So for the moment, it is only working for v14.5.
osmank3 said:
I want to use your guide but I'm busy to do current configuration of my phone. I delete some files on my system partition for gaining storage (I copied some new versions of upgraded apps to system partition) This take my time but I haven't got enough.
I use skymelon 9 kernel, with supersu. I guess because of supersu changed system partition and safetynet fails. I dislike supersu app but skymelon 9 comes with it. So I built skymelon 9 myself without supersu, but I didn't flash stock rom before installing skymelon 9 without-root and magisk. Now on my phone Magisk15 and skymelon9(compiled by me) installed. Magisk's hide function hiding itself from google apps and choosen apps but safetynet check fails.
Can you or anybody try this guide with skymelon 9 without-root which built by me?
View attachment 4371416
Thanks
Click to expand...
Click to collapse
GameBoy1989 said:
BTW: I cannot get working Magisk v15. If I install it direclty from Magisk Manager the installation fails. If I install it through TWRP (and do wipes), the process is correct but when I check it, Magisk Manager not shows it as installed. So for the moment, it is only working for v14.5.
Click to expand...
Click to collapse
I'm using magisk manager to patch boot.img with v15. I flash patched_boot.img with TWRP. It is working.
When I update it from v14.5 /data/magisk link crashing. I delete /data/magisk and upgrade on magisk manager as recommended type and reboot system, it is starting to work.
Ups! I forget to say. Check AVB 2.0/dm-verity
It works
Thank you very much. Post updated!
osmank3 said:
I'm using magisk manager to patch boot.img with v15. I flash patched_boot.img with TWRP. It is working.
When I update it from v14.5 /data/magisk link crashing. I delete /data/magisk and upgrade on magisk manager as recommended type and reboot system, it is starting to work.
Ups! I forget to say. Check AVB 2.0/dm-verity
Click to expand...
Click to collapse
Hey, i downloaded Magisk v14.5 and tried to flash it with twrp but i got error "invalid zip file format" What should i do now or what did i do wrong?
Yay i got this work but little bit different way.
1. Flashed stock rom with flashtool. I downloaded my stock rom from XperiFirm.
2. Flashed TWRP with this guide.
3. Flashed Skymelon 8.1 with TWRP and wiped Dalvik/Cache after install.
4. Flashed Magisk v14.0 with TWRP from this post and wiped Dalvik/Cache after install.
When that was done i rebooted and Magisk and Magick manager was installed. They aren't latest versions so i updated them.
1. Downloaded latest Magisk manager from here and installed it.
2. From Magisk manager i checked "Preserve AVB 2.0/dm-verity" and installed it with choosing the recommended option "Direct Install"
Everything seems to working fine and i did this to my E2303 with 26.3.A.1.33
Great! Thanks for sharing :good:
Which is the difference between methods? I see that it also works for you by flashing Magisk v14.0.
Artsii said:
Yay i got this work but little bit different way.
1. Flashed stock rom with flashtool. I downloaded my stock rom from XperiFirm.
2. Flashed TWRP with this guide.
3. Flashed Skymelon 8.1 with TWRP and wiped Dalvik/Cache after install.
4. Flashed Magisk v14.0 with TWRP from this post and wiped Dalvik/Cache after install.
When that was done i rebooted and Magisk and Magick manager was installed. They aren't latest versions so i updated them.
1. Downloaded latest Magisk manager from here and installed it.
2. From Magisk manager i checked "Preserve AVB 2.0/dm-verity" and installed it with choosing the recommended option "Direct Install"
Everything seems to working fine and i did this to my E2303 with 26.3.A.1.33
Click to expand...
Click to collapse
GameBoy1989 said:
- Flash Magisk v14.5 from TWRP. Wipe Dalvik/Cache after install it. GitHub repo: https://github.com/topjohnwu/Magisk/releases
Click to expand...
Click to collapse
This was only thing i made differently. I didn't find right magisk there what would work when flashing because i had problem with "invalid zip file format" so i downloaded that magisk zip file from another place.
This worked fine for me but I directly tried flashing/installing latest version (15.1) from TWRP and later after booting via adb the .apk of the Manager.
Didn't show the Magisk as installed.
With making a backup in TWRP of the boot (just renaming it to .img it has a different extension in the name) and then modifying it (as Manager tells you when you want to install) I could make it work (flashing the modified boot image with fastboot).
(Other steps like flashing the stock ROM and the recovery worked as usual. Also no problems with installing the kernel in TWRP.)
If you try to flash directly the last Magisk version (v15.1 in this case) I don´t know why yet but it doesn´t work. For that reason it is neccesary to first flash Magisk v14.5 (last version working with TWRP).
The way that you do it is also a very good one! Thanks for sharing @lordmd.
lordmd said:
This worked fine for me but I directly tried flashing/installing latest version (15.1) from TWRP and later after booting via adb the .apk of the Manager.
Didn't show the Magisk as installed.
With making a backup in TWRP of the boot (just renaming it to .img it has a different extension in the name) and then modifying it (as Manager tells you when you want to install) I could make it work (flashing the modified boot image with fastboot).
(Other steps like flashing the stock ROM and the recovery worked as usual. Also no problems with installing the kernel in TWRP.)
Click to expand...
Click to collapse
After magisk 14.6+ there is a problem about dm-verity. Magisk can't patch it, so we must preserve the original dm-verity. When you are applying magisk 14.6+ from twrp, you can't preserve and magisk can't patch it. The true way is using magisk manager and patch with preserve dm-verity.
Magisk 15.2 version notes says that problem solved but I try it, it is not solved yet.
My first applying procedure is:
First, patch skymelon 9 boot.img file with new magisk version also with preserve dm-verity on Magisk Manager,
Flash recovery and open with twrp
Apply skymelon 9 wipe dalvik and cache
Apply new magisk
Flash patched img
Let´s see if the next v15.3 beta finally works. Thanks @osmank3
BTW: Did you finally install the stock ROM or could you unroot your CFW for installing Magisk?
osmank3 said:
After magisk 14.6+ there is a problem about dm-verity. Magisk can't patch it, so we must preserve the original dm-verity. When you are applying magisk 14.6+ from twrp, you can't preserve and magisk can't patch it. The true way is using magisk manager and patch with preserve dm-verity.
Magisk 15.2 version notes says that problem solved but I try it, it is not solved yet.
My first applying procedure is:
First, patch skymelon 9 boot.img file with new magisk version also with preserve dm-verity on Magisk Manager,
Flash recovery and open with twrp
Apply skymelon 9 wipe dalvik and cache
Apply new magisk
Flash patched img
Click to expand...
Click to collapse
GameBoy1989 said:
Let´s see if the next v15.3 beta finally works. Thanks @osmank3
BTW: Did you finally install the stock ROM or could you unroot your CFW for installing Magisk?
Click to expand...
Click to collapse
I must flash system partition from stock Rom, after that safetynet passed.
Ty
Is pexorom better than stock. Is this going to work on pexorom.
Please reply
I´ve tried with Pexo Rom v3 and systemless root works with Magisk but it does not passed Safety Net check.
Sayan Qadri said:
Is pexorom better than stock. Is this going to work on pexorom.
Please reply
Click to expand...
Click to collapse

is it safe to flash MIUI global 10 fastboot rom with twrp?

hello,
so I was just wondering is it safe to flash MIUI 10 global rom with twrp? I know that it will probably replace the twrp with stock recovery, but it is easily fixed. I had to restore old backup and right now I'm on MIUI beta rom but with beta roms being shut down starting from 1st july, I just want to convert to the latest MIUI global rom which is avilable here on thier offical site and it is called Version: V10.3.4.0.PEJMIXM (MIUI10)
so again my question:
1. is it safe to flash this rom with TWRP?
2. will i need fastboot zip file if I choose to flash with TWRP?
3. or can I just download the normal zip and flash it through local update feature? please take note that twrp is installed on my phone
so that's all.. thanks for your time:good:
alifarhad said:
hello,
so I was just wondering is it safe to flash MIUI 10 global rom with twrp? I know that it will probably replace the twrp with stock recovery, but it is easily fixed. I had to restore old backup and right now I'm on MIUI beta rom but with beta roms being shut down starting from 1st july, I just want to convert to the latest MIUI global rom which is avilable here on thier offical site and it is called Version: V10.3.4.0.PEJMIXM (MIUI10)
so again my question:
1. is it safe to flash this rom with TWRP?
2. will i need fastboot zip file if I choose to flash with TWRP?
3. or can I just download the normal zip and flash it through local update feature? please take note that twrp is installed on my phone
so that's all.. thanks for your time:good:
Click to expand...
Click to collapse
No,I recommend downloading the full (recovery) rom and flashing it in twrp, and then flashing the 'Disable Force Encryption' zip and later magisk if needed.., wipe dalvik cache & reboot
This way you don't lose twrp or anything else on your phone
Schumanzuar said:
No,I recommend downloading the full (recovery) rom and flashing it in twrp, and then flashing the 'Disable Force Encryption' zip and later magisk if needed.., wipe davlik cache & reboot
This way you don't lose twrp or anything else on your phone
Click to expand...
Click to collapse
Hi ethanks for your reply. What do you mean by full rom? Does twrp allow flashing miui global roms just like any other custom roms?
alifarhad said:
Hi ethanks for your reply. What do you mean by full rom? Does twrp allow flashing miui global roms just like any other custom roms?
Click to expand...
Click to collapse
Of course it does..
I'm talking about the full rom also called as recovery rom (Example :-
https://en.miui.com/getrom-355.html?m=yes&mobile=2
Visit this link to see the latest miui stable & beta ROMs for Poco f1, both of them are full ROMs aka recovery ROMs of the latest miui for Poco f1
1) I assume you have already unlocked bootloader etc..
First you have to have the essential files i.e the rom zip file you want to install, disable Force Encryption zip file, Magisk zip file (All files links will be available in the main Poco f1 thread)
2) Next you boot into twrp (Power + volume up button)
Next select install, navigate to the downloaded rom zip file and swipe to flash (DONT reboot after flash, click back)
3) Now again select install & now flash the disable Force Encryption zip file (This is very important & should be done during every rom flashing)
4) Next go back & flash Magisk for root
5) Wipe dalvik cache and reboot
Schumanzuar said:
Of course it does..
I'm talking about the full rom also called as recovery rom (Example :-
https://en.miui.com/getrom-355.html?m=yes&mobile=2
Visit this link to see the latest miui stable & beta ROMs for Poco f1, both of them are full ROMs aka recovery ROMs of the latest miui for Poco f1
1) I assume you have already unlocked bootloader etc..
First you have to have the essential files i.e the rom zip file you want to install, disable Force Encryption zip file, Magisk zip file (All files links will be available in the main Poco f1 thread)
2) Next you boot into twrp (Power + volume up button)
Next select install, navigate to the downloaded rom zip file and swipe to flash (DONT reboot after flash, click back)
3) Now again select install & now flash the disable Force Encryption zip file (This is very important & should be done during every rom flashing)
4) Next go back & flash Magisk for root
5) Wipe dalvik cache and reboot
Click to expand...
Click to collapse
Thanks it's much clearer now.
alifarhad said:
Thanks it's much clearer now.
Click to expand...
Click to collapse
Did you flash stable rom ?
And did you erase the data or internal storage?
I am on beta as well and have unlocked bootloader and twrp & magisk installed with Force encryption Disabled.
I want to switch to 10.3.5.0 Stable ROM.
But I don't know whether to erase Data partition or not.
gohil.mitul said:
Did you flash stable rom ?
And did you erase the data or internal storage?
I am on beta as well and have unlocked bootloader and twrp & magisk installed with Force encryption Disabled.
I want to switch to 10.3.5.0 Stable ROM.
But I don't know whether to erase Data partition or not.
Click to expand...
Click to collapse
1) Use migrate app from play store to take a backup of current phone app data, the backup is stored in a flashable zip format
2) Next boot to twrp, choose wipe and select davlik, cache, system, data later follow my steps in my previous comment to flash new rom
3) Set up phone etc, Make sure Magisk is installed properly
4) Next boot into twrp & flash the migrate zip file located in migrate folder, reboot after flashing, you will get a notification about migrate backup once rebooted, open it and restore everything or select choose to restore for selective restore of data

Help how to do the Root on the Xiaomi Mi 8 device with the MIUI Global Stable!!

Hi everyone, I am recently registered on this site. from some days I have the desire to do the Root on the miui global stable, it is consequently on my beloved Xiaomi Mi 8, the problem is: when the device is turned off I turn on the device pressing it under volume key + ignition key at the same time to enter in recovery mode, the latter makes me enter in "Official" mode, in the sense that it does not let me enter twrp mode where there are install, settngs, advacend options, backup ... but in the official one with only 3 buttons: wipe , connect to mi account ... So I thought of flashing the twrp via fastboot, I finally entered it, but the problem is that when I go to Install, to install the root, I can't do that, because characters (alphanumeric) appear long and randomly, so I can't identify which folder I put the Magisk on, it appears in both folders and subfolders. somewhere I read to install a zip file called LazyFlasher, to avoid possible blocking at startup, in fact I try before installing this zip file, with various combinations (first rom, then magisk, both rom and magisk, first magisk then rom , first rom that gate at the end the cache then magisk) but all fail, so I am forced to flash through fastboot with the tool I flash, because at every start it always took me back to twrp without the possibility of moving, it seems that the touch does not respond at the user's commands. So I know that this LazyFlasher file causes me to "bypass" this problem, give me confirmation ??. Thank you. PS: so far I haven't managed to install the Magisk root yet, can you give me a hand, maybe the twrp has some problems? or is my device not compatible with this version of twrp ??, I tell you that in the past with the miui global beta it didn't give me this problem. Thank you all
Have you even unlocked your bootloader? If not look for the official Xiaomi tool, it's the only way how you are able to flash twrp and root your phone.
altae said:
Have you even unlocked your bootloader? If not look for the official Xiaomi tool, it's the only way how you are able to flash twrp and root your phone.
Click to expand...
Click to collapse
Thanks for the reply, I solved everything, unlocked BL, installed twrp (no stock) and installed root. but I have a problem, when I installed the root, every time I want to restart the device for a series of reasons (slowness, delete cache, rest ...) it starts in twrp not in the system, so I have to delete everything it's starting again. I heard that the LazyFlasher file makes it possible to remedy this problem, essentially it allows you to bypass the security of android to avoid bootloap, and I hope it also corrects this problem (which when I reboot the device, I want to install a zip file, I it always starts in twrp), but during the flash of this zip (LazyFlasher) I get an error: the Updater process ended with error: 1 Error installing zip '/sdcard/lazyflasher-no-verify-opt-encrypt.zip. Thanks a lot. PS: but this file, lazyflasher should be mounted on an SD card to work ?? I don't have it on my device
Paoloqu24 said:
Thanks for the reply, I solved everything, unlocked BL, installed twrp (no stock) and installed root. but I have a problem, when I installed the root, every time I want to restart the device for a series of reasons (slowness, delete cache, rest ...) it starts in twrp not in the system, so I have to delete everything it's starting again. I heard that the LazyFlasher file makes it possible to remedy this problem, essentially it allows you to bypass the security of android to avoid bootloap, and I hope it also corrects this problem (which when I reboot the device, I want to install a zip file, I it always starts in twrp), but during the flash of this zip (LazyFlasher) I get an error: the Updater process ended with error: 1 Error installing zip '/sdcard/lazyflasher-no-verify-opt-encrypt.zip. Thanks a lot. PS: but this file, lazyflasher should be mounted on an SD card to work ?? I don't have it on my device
Click to expand...
Click to collapse
Flash a DM-Verity No-Encryption ZIP to remove encryption and disable the Verity check. OR if you want to keep encryption and root -flash a 3rd party Kernel like MiPa or Sphinx after Magisk.
Agimax said:
Flash a DM-Verity No-Encryption ZIP to remove encryption and disable the Verity check. OR if you want to keep encryption and root -flash a 3rd party Kernel like MiPa or Sphinx after Magisk.
Click to expand...
Click to collapse
thank you. in the past I flamed DM-Verity No-Encryption ZIP to remove encryption and disable Verity checking. in fact after immediately this zip I put magisk. at the access of the dispay I saw a magisk icon, so it means root installed successfully. but the problem is: when I reboot the device to clear the cache ... or install a module on the magisk, it always starts in twrp, so I have to start all over again. there is a way to keep cryptography and root, without any booting going into twrp but into the system. thank you
Paoloqu24 said:
thank you. in the past I flamed DM-Verity No-Encryption ZIP to remove encryption and disable Verity checking. in fact after immediately this zip I put magisk. at the access of the dispay I saw a magisk icon, so it means root installed successfully. but the problem is: when I reboot the device to clear the cache ... or install a module on the magisk, it always starts in twrp, so I have to start all over again. there is a way to keep cryptography and root, without any booting going into twrp but into the system. thank you
Click to expand...
Click to collapse
You shouldn't have these problems:
Flash ROM and Keep Encryption:
Flash TWRP
Boot into TWRP and flash MIUI ROM
Flash TWRP again (select flash image, then select recovery partition, then select recovery file)
Flash DM-Verity ZIP here-->: DM-Verity (Make sure 'DM-Verity' file is the ONLY thing the file is named. The filename triggers what is installed during flash)
Flash MAGISK
Flash 3rd Party Kernel (I prefer MiPa or Sphinx found in other threads)
Reboot and enjoy!
Flash ROM and REMOVE Encryption: (Keeps Stock Kernel)
Flash TWRP
Boot into TWRP and flash MIUI ROM
Flash TWRP again (select flash image, then select recovery partition, then select recovery file)
Flash DM-Verity ZIP here-->: DM-Verity (Make sure 'verity' AND 'forceencryp' is in the file name. The filename triggers what is installed during flash)
Reboot and enjoy!
If you have problems with any of them, you might need to format internal storage first (where you have to answer 'yes' in TWRP)
/.
As far as I understand, you are having problems while booting into TWRP. You should boot into TWRP right after flashing it, and boot into OS once again and reboot to recovery. It should work. If you see the stock recovery, keep flashing TWRP. If you want to temporarily flash it, use "fastboot boot TWRP.img" command.
The War Profiteer said:
As far as I understand, you can't boot into TWRP. You should boot into TWRP right after flashing it, and boot into OS once again and reboot to recovery. It should work. If you see the stock recovery, keep flashing TWRP. If you want to temporarily flash it, use "fastboot boot TWRP.img" command.
Click to expand...
Click to collapse
No problems booting into TWRP.
You can use "fastboot.exe flash recovery twrp.img"
Then reboot phone and hold volume-up+power. When booting until TWRP appears. If you miss it and it tries to boot it will overwrite it. But I've never had issues otherwise.
Agimax said:
You shouldn't have these problems:
Flash ROM and Keep Encryption:
Flash TWRP
Boot into TWRP and flash MIUI ROM
Flash TWRP again (select flash image, then select recovery partition, then select recovery file)
Flash DM-Verity ZIP here-->: DM-Verity (Make sure 'DM-Verity' file is the ONLY thing the file is named. The filename triggers what is installed during flash)
Flash MAGISK
Flash 3rd Party Kernel (I prefer MiPa or Sphinx found in other threads)
Reboot and enjoy!
Flash ROM and REMOVE Encryption: (Keeps Stock Kernel)
Flash TWRP
Boot into TWRP and flash MIUI ROM
Flash TWRP again (select flash image, then select recovery partition, then select recovery file)
Flash DM-Verity ZIP here-->: DM-Verity (Make sure 'verity' AND 'forceencryp' is in the file name. The filename triggers what is installed during flash)
Reboot and enjoy!
If you have problems with any of them, you might need to format internal storage first (where you have to answer 'yes' in TWRP)
/.
Click to expand...
Click to collapse
Thanks for the reply. I will choose the first option, I replace the stock kernel with sphinx kerne, so I get more functionality, battery life, performance, fluidity ... also the developer has mentioned us, if any desired functionality is missing in this kernel, it is possible ask the developer to add us. so I choose the first option, I have some questions before replacing the stock kernel: 1) is it possible to restore the kernel stock, in case of problem, if yes, where can I get the kernel for Mi 8? 2) if in the future there will be a new update of sphinx kerne, how do I understand if a new update has been released? will you notify me ?? 3) are you sure that after these steps, upon restarting the phone, I will find the root installed ?, if I would like to restart the device, it will not boot in twrp but in the system, because I replaced the stock kernel, the same thing is also valid for the magisk modules, zip files ... 4) the last fundamental thing, will I receive updates via OTA ?? if not, is there a way to install future updates (I would like to try the latest magisk version, 19.3) ?. 5) it is safe if I install update via ota, it does not start in twrp, but system. 6) the steps to do are, flash twrp custom via fastboot, I choose to delete the memory, restart twrp, copy the files (MIUI global stable, sphinx kernel, dm-verify), flash rom, flash dm-verify, flash magisk, flash kernel, device reboot, all right. Thanks a lot for the questions
Agimax said:
You shouldn't have these problems:
Flash ROM and Keep Encryption:
Flash TWRP
Boot into TWRP and flash MIUI ROM
Flash TWRP again (select flash image, then select recovery partition, then select recovery file)
Flash DM-Verity ZIP here-->: DM-Verity (Make sure 'DM-Verity' file is the ONLY thing the file is named. The filename triggers what is installed during flash)
Flash MAGISK
Flash 3rd Party Kernel (I prefer MiPa or Sphinx found in other threads)
Reboot and enjoy!
Flash ROM and REMOVE Encryption: (Keeps Stock Kernel)
Flash TWRP
Boot into TWRP and flash MIUI ROM
Flash TWRP again (select flash image, then select recovery partition, then select recovery file)
Flash DM-Verity ZIP here-->: DM-Verity (Make sure 'verity' AND 'forceencryp' is in the file name. The filename triggers what is installed during flash)
Reboot and enjoy!
If you have problems with any of them, you might need to format internal storage first (where you have to answer 'yes' in TWRP)
/.
Click to expand...
Click to collapse
I get an error during the installation of sphinx: the Updater process ended with error: 1 Error installing zip '/sdcard/sphinx.zip
Agimax said:
You shouldn't have these problems:
Flash ROM and Keep Encryption:
Flash TWRP
Boot into TWRP and flash MIUI ROM
Flash TWRP again (select flash image, then select recovery partition, then select recovery file)
Flash DM-Verity ZIP here-->: DM-Verity (Make sure 'DM-Verity' file is the ONLY thing the file is named. The filename triggers what is installed during flash)
Flash MAGISK
Flash 3rd Party Kernel (I prefer MiPa or Sphinx found in other threads)
Reboot and enjoy!
Flash ROM and REMOVE Encryption: (Keeps Stock Kernel)
Flash TWRP
Boot into TWRP and flash MIUI ROM
Flash TWRP again (select flash image, then select recovery partition, then select recovery file)
Flash DM-Verity ZIP here-->: DM-Verity (Make sure 'verity' AND 'forceencryp' is in the file name. The filename triggers what is installed during flash)
Reboot and enjoy!
If you have problems with any of them, you might need to format internal storage first (where you have to answer 'yes' in TWRP)
/.
Click to expand...
Click to collapse
both methods don't work, the first one gives me error when I install kernel, the second one on startup gives me a lot of error
I managed to install the root, doing the following steps: flash twrp via fastboot, copy the files to the internal memory, install rom files, install magisk files, install dm-verify, then reboot, and it works perfectly. but I have some problems: when I reboot the device, it starts in twrp not in the system, and therefore I am forced to do it again. help me !! kernel replacement gives me error, both
Paoloqu24 said:
I managed to install the root, doing the following steps: flash twrp via fastboot, copy the files to the internal memory, install rom files, install magisk files, install dm-verify, then reboot, and it works perfectly. but I have some problems: when I reboot the device, it starts in twrp not in the system, and therefore I am forced to do it again. help me !! kernel replacement gives me error, both
Click to expand...
Click to collapse
You should not have errors flashing a kernel. Maybe you should flash all partition images from fastboot. Or maybe wrong recovery? What version are you using?
Agimax said:
You should not have errors flashing a kernel. Maybe you should flash all partition images from fastboot. Or maybe wrong recovery? What version are you using?
Click to expand...
Click to collapse
the kernel is: Sphinx-v2.9
Paoloqu24 said:
the kernel is: Sphinx-v2.9
Click to expand...
Click to collapse
I mean what version of recovery. You should use this one (v3.3.1) or newer: https://www.androidfilehost.com/?fid=3556969557455275724
It's from this thread: https://forum.xda-developers.com/mi-8/development/recovery-unofficial-twrp-recovery-t3893823
Agimax said:
I mean what version of recovery. You should use this one (v3.3.1) or newer: https://www.androidfilehost.com/?fid=3556969557455275724
It's from this thread: https://forum.xda-developers.com/mi-8/development/recovery-unofficial-twrp-recovery-t3893823
Click to expand...
Click to collapse
TWRP 3.3.1.1 https://eu.dl.twrp.me/dipper/
I followed in this guide "https://clk.ink/7q4SUR" but instead of installing Disable_Dm-Verity_FEC_v1.1.zip I downloaded Disable_Dm-Verity_ForceEncrypt_09.02.2018.zip, is it the same ?, also I saw that, when I go inside the magisk, and I click on uninstall> restore image, a warning appears "there is no original boot image", I also executed this command in powershell "fastboot getvar current-slot" but I get a "GetVar Variable Not found" error. I don't know how to solve. thank you

Installing custom rom for first time -need help

Hi,this is my first time installing a custom rom and recovery and rooting and all.
I am on MIUI 10 8.11.22 beta on RN3 2gb.
And have unlocked bootloader using official method.
Currently following
https://forum.xda-developers.com/redmi-note-3/how-to/unlock-bootloader-twrp-root-7-2-3-t3359492
Planning to
flash official twrp-3.3.1-0-kenzo
Install Havoc 9.0 OS https://forum.xda-developers.com/redmi-note-3/development/rom-havoc-os-t3845305
Install Magisk
but twrp site is showing
This device uses dm-verity!
This means that swiping to allow system modifications will prevent you from being able to boot if you are using the stock kernel. In order to bypass dm-verity's boot prevention, you will have to install a kernel that has dm-verity disabled in the fstab.
Click to expand...
Click to collapse
I think it is about boot.img but I do not have patched boot.img of my miui version and also (from above guide) to patch boot.img i need fastboot rom but linkhttps://en.miui.com/a-234.html only takes me to Chinese miui website.
Can any one share link to boot.img of fastboot rom for MIUI 10 8.11.22 beta?
And in Havoc OS post
https://forum.xda-developers.com/redmi-note-3/development/rom-havoc-os-t3845305
do I need custom kernel for 9.0?
In Magisk Post
Prerequisite
If you plan to install custom kernels, flash the zip AFTER installing Magisk
Make sure to remove any ‘boot image mods’ such as other root solutions. The easiest way is to restore the boot image from factory images, or reflash a non-prerooted custom ROM
Click to expand...
Click to collapse
does that mean i do not need to flash boot.img or do i need to flash it afterwards?
Qustions
1) Do I need boot.img file of my version or any will do?
2)Do I need custom kernel for havoc os 9.0?
3) how to proceed after flashing twrp(need help)?
here what i think i have to do after flasing twrp(correct me If i am wrong)
(do not flash boot .img as installing magisk) -> flash havoc os -> flash magisk->flash custom kernel(which one?)-> (flash boot.img) ->reboot
ARY-Pyran said:
Hi,this is my first time installing a custom rom and recovery and rooting and all.
I am on MIUI 10 8.11.22 beta on RN3 2gb.
And have unlocked bootloader using official method.
Currently following
https://forum.xda-developers.com/redmi-note-3/how-to/unlock-bootloader-twrp-root-7-2-3-t3359492
Planning to
flash official twrp-3.3.1-0-kenzo
Install Havoc 9.0 OS https://forum.xda-developers.com/redmi-note-3/development/rom-havoc-os-t3845305
Install Magisk
but twrp site is showing
I think it is about boot.img but I do not have patched boot.img of my miui version and also (from above guide) to patch boot.img i need fastboot rom but linkhttps://en.miui.com/a-234.html only takes me to Chinese miui website.
Can any one share link to boot.img of fastboot rom for MIUI 10 8.11.22 beta?
And in Havoc OS post
https://forum.xda-developers.com/redmi-note-3/development/rom-havoc-os-t3845305
do I need custom kernel for 9.0?
In Magisk Post
does that mean i do not need to flash boot.img or do i need to flash it afterwards?
Qustions
1) Do I need boot.img file of my version or any will do?
2)Do I need custom kernel for havoc os 9.0?
3) how to proceed after flashing twrp(need help)?
here what i think i have to do after flasing twrp(correct me If i am wrong)
(do not flash boot .img as installing magisk) -> flash havoc os -> flash magisk->flash custom kernel(which one?)-> (flash boot.img) ->reboot
Click to expand...
Click to collapse
If u official unlocked using miunlock tool then u dont need any patched boot.img.
Flash latest twrp 3.3.1 kenzo
Download ur favourite rom and nano gapps zip to external sd card.
First go to wipe and do format data.
You must do it or rom wont boot.
So click Format data
Type Yes to format
This will decrypt and erase internal sd.
Then Swipe to "factory reset"
Then Go to install
Flash rom zip
Flash nano gapps.zip
Then Reboot and enjoy
Black_Stark said:
...
Click to expand...
Click to collapse
I know this is off topic but do you know something about "Red Light Blinking" and "init Storage:Fail" ?
Thanks for the tip. Currently on havoc os . Installation went smoothly

Root without custom recovery?

Hello,
i'm trying to root a Sharp B10 (SH-A01) with Magisk.
It would be nice if i could do this without unlocking because i want to keep the stock rom anyway.
First problem is that i can't find a custom recovery (TWRP, CWM) for this device from where i could install Magisk.
Then i found out that Magisk gives the possibility to root a device through the Magisk Manager App by patching the boot.img.
But the second problem is that i can't find the boot.img either. I spotted the boot partition on the device and tried to pull with adb but i would need an already rooted device to give the needed permissions.
Is there anything else I could do to get this thing rooted besides compiling my own TWRP for the device?
thanks a lot,
paul
Hello, i search the same.
paulquappe said:
Hello,
i'm trying to root a Sharp B10 (SH-A01) with Magisk.
It would be nice if i could do this without unlocking because i want to keep the stock rom anyway.
First problem is that i can't find a custom recovery (TWRP, CWM) for this device from where i could install Magisk.
Then i found out that Magisk gives the possibility to root a device through the Magisk Manager App by patching the boot.img.
But the second problem is that i can't find the boot.img either. I spotted the boot partition on the device and tried to pull with adb but i would need an already rooted device to give the needed permissions.
Is there anything else I could do to get this thing rooted besides compiling my own TWRP for the device?
thanks a lot,
paul
Click to expand...
Click to collapse
Neither Magisk nor TWRP is needed to root Android: Chainfire's SuperSu does the job. You flash its ZIP via stock recovery "adb sideload"
jwoegerbauer said:
Neither Magisk nor TWRP is needed to root Android: Chainfire's SuperSu does the job. You flash its ZIP via stock recovery "adb sideload"
Click to expand...
Click to collapse
Hi,
thanks for your answer.
I already managed to root this device. I got the boot.img with Wwr_MTK & SP flash tool (windows tools...), patched it with the magisk app and than flashed the patched boot.img
1. Unlock your bootloader enter in download mode Vol+ + Vol- + USB conected to pc (Keep in mind that by doing this you will lose your files, it is advisable to make a backup of your photos, music, etc.)
2. Once you start your cell phone install magisk manager, Choosing the boot.img file of your rom into the app (Tip: Only!!! If your model is SM-A015M Android 11 I leave you my own modified boot.img to flash:
File on MEGA
mega.nz
Otherwise, you can download the firmware (3.79 gb) and extract the boot.img from the firmware of your model SM-A015 M / F ... Android 10, Android 11... etc. And No need for pc
https://samfrew.com/model/SM-A015M/
3. The image will begin to flash
4. When it restarts you will have Root on the cell phone!
------------------------------------------------------------------------------------------------------------------------------------------------
Extra: If you need the custom recovery I give you the link with my TWRP which is installed through the Odin program on a PC (this step does not delete your files)
File on MEGA
mega.nz
Keep in mind that to install TWRP you must deactivate the DM-VERITY & FORCEENCRYPT DISABLER I leave it in a link:
Zackptg5 - Android
zackptg5.com
This is a module that can be installed via magisk, which is necessary to decrypt the system ... so once TWRP is installed, it is advisable to uninstall it via Magisk to avoid R / W errors

Categories

Resources