Related
guys please give me noob friendly instructions for installing magisk latest ver on my lenovo p2 15.1 latest build .
Same
First make sure you have USB debugging enabled on your phone, then install ADB on your PC. Connect the phone to the PC and in the installation folder (ADB > platform-tools) shift right click and choose Open command window here. Type adb devices and authorize your PC on the phone. Download the ROM and extract boot.img from it, transfer it to your phone. On the phone install Magisk Manager and patch the boot.img (Install > Patch boot image). Transfer patched_boot.img back onto the PC (to the ADB > platform-tools folder), then boot your phone into fastboot (VOL down and POWER buttons). Repeat the Open command window here step and type fastboot flash boot patched_boot.img. Reboot your phone (fastboot reboot). You are now rooted on custom ROM.
After installing magisk , do I need to install any module to prevent boot loop like f2fs loop module etc .
Check if you can install modules. If you're facing problems, then you will need to change a few things. The "cannot mount magisk_merge.img" issue for example can be solved by patching and flashing boot image from here https://forum.xda-developers.com/lenovo-p2/development/kernel-f2fs-upstreamed-kernel-twrp-t3845976. I tried tinkering with modules for it and ended up bricking my phone. I would also recommend using TWRP from this thread, it got rid of my second problem (which I now forgot).
Just remember that you will need to flash the patched custom kernel after any ROM update.
Hey guys. Just upgraded to the android 10 October image via the adb flash-all command. Magisk rooted via adb and everything is going great. Want to install Sultan's ported kernel for Android 10. Used adb to flash twrp image and flashed the kernel zip via twrp but it keeps saying it can't mount /system and /vendor upon finishing. Upon rebooting I get stuck at the google G load screen. Have to redo flash-all and instal magisk via adb all over to get back to normal. Anyone have this problem or could offer some help? Would be great.
Bverns88 said:
Hey guys. Just upgraded to the android 10 October image via the adb flash-all command. Magisk rooted via adb and everything is going great. Want to install Sultan's ported kernel for Android 10. Used adb to flash twrp image and flashed the kernel zip via twrp but it keeps saying it can't mount /system and /vendor upon finishing. Upon rebooting I get stuck at the google G load screen. Have to redo flash-all and instal magisk via adb all over to get back to normal. Anyone have this problem or could offer some help? Would be great.
Click to expand...
Click to collapse
As long as the kernel finishes the install it's fine. The mounting errors don't matter if it finishes. The mounting errors are just a bug with Android 10. Everything I flash has those errors after it, but I am good. I am on Oct. with Magisk 20 and Sultan kernel.
Ericarthurc said:
As long as the kernel finishes the install it's fine. The mounting errors don't matter if it finishes. The mounting errors are just a bug with Android 10. Everything I flash has those errors after it, but I am good. I am on Oct. with Magisk 20 and Sultan kernel.
Click to expand...
Click to collapse
So the way I'm seeing it is flash the twrp image file, flash the kernel, reboot. Then adb fastboot to bootloader and reflash patched magisk boot.img?
Bverns88 said:
So the way I'm seeing it is flash the twrp image file, flash the kernel, reboot. Then adb fastboot to bootloader and reflash patched magisk boot.img?
Click to expand...
Click to collapse
Do this:
Setup:
1. Download latest platform tools for your OS
2. Download latest factory image for Pixel 2 XL
3. Download twrp.img and twrp.zip
4. Download the kernel.zip you want
5. Download magisk.zip version 20
(Keep in mind those aren't the actual filenames, I am just shortening them; plus you will want to rename them for easier flashing)
Install:
1. Boot phone to bootloader.
2. Extract factory image into the platform tools folder
3. Run flash-all script
4. After done reboot back to bootloader (dont do the phone setup)
5. Now remove the factory image from platform tools (or just extract a clean platform tools folder)
6. Place twrp.img, twrp.zip, kernel.zip and magisk.zip into the platform tools folder (rename the files to make it easier to type them out when flashing with computer adb)
7. Run: fastboot boot twrp.img (or whatever you named it)
8. When in twrp, go to settings and turn off "screen timeout" there is a bug
9. Go to advanced then "adb sideload"
10. In your computer terminal type: adb sideload twrp.zip
11. Then run: adb sideload kernel.zip
12. Then run: adb sideload magisk.zip
13. Reboot to system
Should be good! Using sideload allows you to pass files from your computer to your phone, it makes it easy. If adb sideload is "hanging" or "freezing" (you should see a kinda progress bar with it's working) then reboot twrp.img and try a different USB port. There is a glitch when it hangs, where when you remove the USB cable the phone goes black; just hold power + volume down for about 10 seconds and it will boot back to bootloader.
Ericarthurc said:
Do this:
Setup:
1. Download latest platform tools for your OS
2. Download latest factory image for Pixel 2 XL
3. Download twrp.img and twrp.zip
4. Download the kernel.zip you want
5. Download magisk.zip version 20
(Keep in mind those aren't the actual filenames, I am just shortening them; plus you will want to rename them for easier flashing)
Install:
1. Boot phone to bootloader.
2. Extract factory image into the platform tools folder
3. Run flash-all script
4. After done reboot back to bootloader (dont do the phone setup)
5. Now remove the factory image from platform tools (or just extract a clean platform tools folder)
6. Place twrp.img, twrp.zip, kernel.zip and magisk.zip into the platform tools folder (rename the files to make it easier to type them out when flashing with computer adb)
7. Run: fastboot boot twrp.img (or whatever you named it)
8. When in twrp, go to settings and turn off "screen timeout" there is a bug
9. Go to advanced then "adb sideload"
10. In your computer terminal type: adb sideload twrp.zip
11. Then run: adb sideload kernel.zip
12. Then run: adb sideload magisk.zip
13. Reboot to system
Should be good! Using sideload allows you to pass files from your computer to your phone, it makes it easy. If adb sideload is "hanging" or "freezing" (you should see a kinda progress bar with it's working) then reboot twrp.img and try a different USB port. There is a glitch when it hangs, where when you remove the USB cable the phone goes black; just hold power + volume down for about 10 seconds and it will boot back to bootloader.
Click to expand...
Click to collapse
Thanks so much. I went and used AZ bikers method and it worked fine. Easy and hassle free. https://forum.xda-developers.com/pixel-2-xl/how-to/quick-2xl-upgrade-reference-8x-oreo-to-t3826330
For future use or other versions like OOS EUROPE,INDIA, etc. , you can patch your own boot.img with my tool here
But for now just follow the instructions
Boot.img patched with MAGISK 20.4 on OOS 10.0.12 HD65AA (GLOBAL)
Only for OOS 10.0.12 Global!!!!
Enjoy!
Instructions:
reboot to fastboot
Code:
adb reboot bootloader
Code:
fastboot boot magisk_patched_10_0_12.img
let it boot and check if u have root
if u got root then reboot to fastboot again
Code:
adb reboot bootloader
Code:
fastboot flash boot magisk_patched_10_0_12.img
When finished type
Code:
fastboot reboot
patched boot.img download: https://drive.google.com/file/d/1JeNPnEtKKkXYBVlo4pW0VUEnP1BQ7nt_/view?usp=sharing
stock boot.img download: https://drive.google.com/file/d/1rrUcVyTBUl-sED35lxuK82UQ0hHM_PRg/view?usp=sharing
I would be glad if somebody share Magisk patched boot to 10.0.12HD65BA for EU version
Tapatalk via OnePlus 7T
Thank You
I would be glad if somebody share Magisk patched boot to 10.0.12HD65BA for EU version. I can not patch it myself, because 10.0.12HD65BA is not online on oneplus website.
ba47 said:
I would be glad if somebody share Magisk patched boot to 10.0.12HD65BA for EU version. I can not patch it myself, because 10.0.12HD65BA is not online on oneplus website.
Click to expand...
Click to collapse
If u r already on 10.0.12 EU u dont need the rom
If u r on previous OOS then use the oxygen updater app from Play store to update
ba47 said:
I would be glad if somebody share Magisk patched boot to 10.0.12HD65BA for EU version. I can not patch it myself, because 10.0.12HD65BA is not online on oneplus website.
Click to expand...
Click to collapse
One guy already upload this file here :
https://drive.google.com/file/d/1-_3fL5HkWS9cplro7iNiIzqlL_AGTz2B/view?usp=drivesdk
Tapatalk via OnePlus 7T
Hm, I have HD65AA India and after boot (not flash) via fastboot attached here patched boot.img I don't have internet (gsm and wifi).
Do you have India's version of that patch ?
KyoshiDev said:
Instructions:
reboot to fastboot
Code:
adb reboot bootloader
Code:
fastboot boot magisk_patched_10_0_12.img
let it boot and check if u have root
if u got root then reboot to fastboot again
Code:
adb reboot bootloader
Code:
fastboot flash boot magisk_patched_10_0_12.img
Click to expand...
Click to collapse
4. and 5. Step isn't needed.
When you boot your image and check if you have root you just klick: Install --> Install --> direct install. It will automatically patch your actual boot.img and you will permanently have a rooted phone.
I didn't find patched boot.img to 10.0.12/10.3.4 India (!) version, so I created my own (faq linked above).
It works on my device like a charm. I have already gsm internet and WiFi and of course rooted device.
If someone wants to try on 10.3.4/10.0.12 AA (Global and only India version) , I put my patched boot.img here:
https://drive.google.com/file/d/1p6tgyc_WcLl2CW4ysq4xGgFXnmO95Kl0/view?usp=sharing
Did not work for me on reboot after root check says not rooted?
---------- Post added at 06:54 PM ---------- Previous post was at 06:44 PM ----------
Nope did not work for me say I do not have root on root check?
=dgim= said:
I didn't find patched boot.img to 10.0.12/10.3.4 India (!) version, so I created my own (faq linked above).
It works on my device like a charm. I have already gsm internet and WiFi and of course rooted device.
If someone wants to try on 10.3.4/10.0.12 AA (Global and only India version) , I put my patched boot.img here:
https://drive.google.com/file/d/1p6tgyc_WcLl2CW4ysq4xGgFXnmO95Kl0/view?usp=sharing
Click to expand...
Click to collapse
I have updated to 10.3.4.HD65AA yesterday. Have been rooted since much earlier version with Magisk Canary. Now I want to change to stable but not sure of the process.
How do I uninstall Canary version? There does not seem to be any uninstall option in Magisk Manager Canary version. Can I just uninstall as I would any other app?
Is the file you uploaded correct for my version? Would it install Magisk Stable version?
After going into fastboot do I have to connect to PC and give commands there or in the phone itself. Have done it earlier but I forgot. If from PC, which software to use for ADB?
Edit : Will this wipe data?
You can use via TWRP, I suppose (not tested) this Magisk's unistall zip file: https://github.com/topjohnwu/magisk_files/tree/canary
If you flashed a new rom (10.3.4) I believe that you have already stock boot.img, so device is unrooted.
If yes, you can - first, only booted my patched_boot.img to see that everything is OK (gsm, wifi, magisk manager works etc),
and, then, try flash it via fastboot.
I patched my stock boot.img (10.3.4 India version) via latest Magisk Canary.
Here is FAQ:
https://forum.xda-developers.com/oneplus-7t/how-to/guide-how-to-root-oneplus-7t-twrp-t3979307
=dgim= said:
You can use via TWRP, I suppose (not tested) this Magisk's unistall zip file: https://github.com/topjohnwu/magisk_files/tree/canary
If you flashed a new rom (10.3.4) I believe that you have already stock boot.img, so device is unrooted.
If yes, you can - first, only booted my patched_boot.img to see that everything is OK (gsm, wifi, magisk manager works etc),
and, then, try flash it via fastboot.
I patched my stock boot.img (10.3.4 India version) via latest Magisk Canary.
Here is FAQ:
https://forum.xda-developers.com/oneplus-7t/how-to/guide-how-to-root-oneplus-7t-twrp-t3979307
Click to expand...
Click to collapse
I think TWRP is not working for OnePlus7T so not sure about that.
I have updated from rooted 10.3.2 to 10.3.4 via OTP and I already have Magisk Canary. So I am rooted. I want to remove this and get to Magisk Stable version.
jesrani said:
I think TWRP is not working for OnePlus7T so not sure about that.
I have updated from rooted 10.3.2 to 10.3.4 via OTP and I already have Magisk Canary. So I am rooted. I want to remove this and get to Magisk Stable version.
Click to expand...
Click to collapse
Booting and flashing TWRP on recovery partition, I suppose, is working.
I didn't flash Magisk install or unistall via TWRP on OP7T.
Are you sure that, after flashing new rom, your device is rooted ?
Even you have installed Magisk Canary, but - SatetyNet etc, is passed in your device after flashed stock 10.3.4 ?
If not, you can just unistall apk (Magisk Manager), clear cache, flash patched boot.img and install stable Magisk (I didn't test stable on 10.3.4).
I'm lost somehow.
I'm rooted, Global (USA) phone. Last version is 10.0.11.
First, to which directory do I download the patched .img file. To my phone, to my computer? So far I have put in both Magisk directory and my root directory.
I reboot the bootloader. Fine. I fastboot the patched image. Fine. Check for root. Fine
I reboot the bootloader. Fine. Comes up with a menu. The top of the menu says Start.
Then I type fastboot flash boot magisk_patched_10_0_12.img. And nothing happens. I have tried the power button and nothing either. I tried going into Magisk and install as another forum member suggested, but now my phone comes up, still hasn't upgraded to 12. Also now when I click any app the phone it just reboots itself. So I'm really messed up.
My question is what was suppose to happen when i clicked fastboot flash boot magisk_patched_10_0_12.img with the bootloader menu on my screen and where was the .img file suppose to be located. Am I doing this right from my PC (Win10 - PowerShell).
I'm lost because I have been upgrading previously and have had no trouble. Where did I go wrong. Much thanks.
KyoshiDev said:
For future use or other versions like OOS EUROPE,INDIA, etc. , you can patch your own boot.img with my tool here
But for now just follow the instructions
Boot.img patched with MAGISK 20.4 on OOS 10.0.12 HD65AA (GLOBAL)
Only for OOS 10.0.12 Global!!!!
Enjoy!
Instructions:
reboot to fastboot
Code:
adb reboot bootloader
Code:
fastboot boot magisk_patched_10_0_12.img
let it boot and check if u have root
if u got root then reboot to fastboot again
Code:
adb reboot bootloader
Code:
fastboot flash boot magisk_patched_10_0_12.img
patched boot.img download: https://drive.google.com/file/d/1JeNPnEtKKkXYBVlo4pW0VUEnP1BQ7nt_/view?usp=sharing
stock boot.img download: https://drive.google.com/file/d/1rrUcVyTBUl-sED35lxuK82UQ0hHM_PRg/view?usp=sharing
Click to expand...
Click to collapse
davekaye said:
I'm rooted, Global (USA) phone. Last version is 10.0.11.
First, to which directory do I download the patched .img file. To my phone, to my computer? So far I have put in both Magisk directory and my root directory. .
Click to expand...
Click to collapse
to your computer, or rather, to the directory where your adb and fastboot files are, or if you have adb installed system widely, you should put your img in the folder where you are running your cmd window or you can navigate with cmd to the file with "cd"
davekaye said:
Then I type fastboot flash boot magisk_patched_10_0_12.img. And nothing happens. I have tried the power button and nothing either. I tried going into Magisk and install as another forum member suggested, but now my phone comes up, still hasn't upgraded to 12. Also now when I click any app the phone it just reboots itself. So I'm really messed up.
Click to expand...
Click to collapse
What do you mean with "still hasn't upgraded to 12"? You mean OOS 10.0.12? Then you need to update from 10.0.11 to 10.0.12 before rooting your boot partition with a boot.img from an OOS 10.0.12
davekaye said:
My question is what was suppose to happen when i clicked fastboot flash boot magisk_patched_10_0_12.img with the bootloader menu on my screen and where was the .img file suppose to be located. Am I doing this right from my PC (Win10 - PowerShell).
I'm lost because I have been upgrading previously and have had no trouble. Where did I go wrong. Much thanks.
Click to expand...
Click to collapse
nothing should happen to your bootloader screen, but you should see in your cmd window, that the flashing finished, then you can type "fastboot reboot" to reboot your phone.
KyoshiDev said:
to your computer, or rather, to the directory where your adb and fastboot files are, or if you have adb installed system widely, you should put your img in the folder where you are running your cmd window or you can navigate with cmd to the file with "cd"
What do you mean with "still hasn't upgraded to 12"? You mean OOS 10.0.12? Then you need to update from 10.0.11 to 10.0.12 before rooting your boot partition with a boot.img from an OOS 10.0.12
nothing should happen to your bootloader screen, but you should see in your cmd window, that the flashing finished, then you can type "fastboot reboot" to reboot your phone.
Click to expand...
Click to collapse
Thanks. My fault. Since I don't have a working TWRP I haven't been playing around with any ROMs and I guess I'm rusty. So I tried to put your upgrades on the wrong version of Oxygen (11 not 12) and ran into a bootloop. I could not boot into EDL mode (another issue I have to follow up) and it took me some time to finally boot back to 11 and then do the OTA upgrade to 12. All is working now, so thanks again.
Hello, is SafetyNet supposed to fail or I've messed something up?
1nikolas said:
Hello, is SafetyNet supposed to fail or I've messed something up?
Click to expand...
Click to collapse
Safetynet should pass
So i put this on my US version. HD1905. I should have been more careful. Anyway, everything works well except netflix., which is now a system app and will not run or uninstall.
PS: Do you have US version patched boot file ?
For those who can't root via TWRP or somehow lost root while updating (like I did), I have a patched boot image to aid others in this endeavor. This is a boot.img from a T-Mobile 7T which I had converted to the Global ROM, extracted and patched by Magisk after applying the latest update (10.0.13.HD65AA). Fully tested and working!
Instructions:
Unzip and place it in a convenient folder (ie, C:/adb/ or whatever's easy to remember.
Open a cmd prompt and navigate to your fastboot/adb folder.
Then run the command
Code:
fastboot boot boot.img
Your phone will be "temp-rooted" once it boots. If you haven't already, install Magisk Manager, then flash Magisk itself (ALWAYS do direct install!).
Don't install any modules yet. Just reboot when prompted after the Magisk flashing process is done.
Profit!
Download from Google Drive
[I dunno where else to upload this that XDA would consider "safe," so GDrive it is, I suppose.]
Spoiler: Process for manually patching the boot.img without TWRP:
Requirements: Stock device with unlocked bootloader only (no other mods), most recent OTA update applied and system rebooted. Fastboot and ADB Windows executables.
1) Enable advanced reboot and usb debugging in developer options.
2) Reboot to bootloader.
Code:
adb reboot bootloader
3) Boot to twrp
Code:
fastboot boot twrp.img
(or whatever you named it).
4) Once booted, enter:
Code:
adb shell
dd if=/dev/block/bootdevice/by-name/boot of=/tmp/boot.img
exit
5.5) Copy file to the PC:
Code:
adb pull /tmp/boot.img stock_boot.img
6) Reboot phone back to Android.
6.5) Copy boot.img back to phone:
Code:
adb push stock_boot.img /sdcard/boot.img
7) Make sure you have a data connection.
8) Install Magisk Manager.
9) Select option to install Magisk (not the Magisk App). Choose "Select and Patch a File."
10) Point to the boot.img.
11) It will do its thing then come back with a done message. File /sdcard/download/magisk_patched.img will be created.
12) Copy this file to your PC, either using MTP or ADB.
Code:
adb pull /sdcard/download/magisk_patched.img
13) Reboot the phone into bootloader mode again.
Code:
adb reboot bootloader
14) Boot the patched boot from step 12:
Code:
fastboot boot magisk_patched.img
15) Launch Magisk Manager again. You should see the current version available and the installed version below that now. If all is good, choose to install/update Magisk, then "Direct install" and reboot when finished.
I guess you posted it in wrong section as mentioned the file is for Oneplus 7t ?
>Akshay< said:
I guess you posted it in wrong section as mentioned the file is for Oneplus 7t ?
Click to expand...
Click to collapse
OH! You're right. I goofed. I'll ask a mod to move it.
This will delete all the data from the phone + bootloader needs to be unlocked?
Brontok said:
This will delete all the data from the phone + bootloader needs to be unlocked?
Click to expand...
Click to collapse
Flashing this doesn't erase your data, unlocking the bootloader does, though (and is necessary to flash this).
GuyInDogSuit said:
Flashing this doesn't erase your data, unlocking the bootloader does, though (and is necessary to flash this).
Click to expand...
Click to collapse
never mind!
someone already did!
https://forum.xda-developers.com/showpost.php?p=83780229&postcount=12
thanks anyway!
Will this work for 10.0.13 tmobile ? Thanks
gershee said:
Will this work for 10.0.13 tmobile ? Thanks
Click to expand...
Click to collapse
You might be better off pulling the boot.img yourself and patching it. I can't guarantee that this will even work on the T-Mobile version. But if you want to test it, just boot the img and root from Magisk once it loads. If it bootloops, well, then we know.
EDIT: Updated OP with instructions on how to patch the boot.img.
GuyInDogSuit said:
You might be better off pulling the boot.img yourself and patching it. I can't guarantee that this will even work on the T-Mobile version. But if you want to test it, just boot the img and root from Magisk once it loads. If it bootloops, well, then we know.
EDIT: Updated OP with instructions on how to patch the boot.img.
Click to expand...
Click to collapse
Thanks!
Worked like a charm.
My problem is that I have installed a custom rom that is no longer in support in XDA .
So when I tried to to boot using fastboot boot twrp.img command my device won't boot in twrp therefore I am not able to install twrp hence magisk is still not working.
Is there any other way to root my mi 11x witouht using custom recovery.
Yes. It's the twrp fastboot method.
1. First of all you need the boot.img from your ROM. For a fastboot ROM it's in the Images folder. For an OTA you have to use a payload.bin extractor.
2. Then install the magisk manager app and use patch boot.img
3. Then install the patched boot.img through fastboot
Full instructions:
Installation
The Magic Mask for Android
topjohnwu.github.io
Robert314 said:
Yes. It's the twrp fastboot method.
1. First of all you need the boot.img from your ROM. For a fastboot ROM it's in the Images folder. For an OTA you have to use a payload.bin extractor.
2. Then install the magisk manager app and use patch boot.img
3. Then install the patched boot.img through fastboot
Full instructions:
Installation
The Magic Mask for Android
topjohnwu.github.io
Click to expand...
Click to collapse
Thanks sir. But someone says me that when he tried this method his phone stuck on miui logo and not working.. he has same mi 11x.
Tanishkmusic said:
Thanks sir. But someone says me that when he tried this method his phone stuck on miui logo and not working.. he has same mi 11x.
Click to expand...
Click to collapse
Maybe they used the wrong boot.img for their ROM. Are you using MIUI? If so it may be more difficult as you've got to get the correct version from firmware finder. Even then magisk might not like your MIUI install. I've heard people running custom ROMs able to install magisk on Mi11X. E.g HavocOS, ArrowOS etc
This is the only way to install magisk properly at the moment
Edit: if you prefer MIUI there is another alternative by flashing on of the improved MIUI ROMs (they just take MIUI and add slightly extra features and improve performance). I can't link the telegram group on XDA but you can PM me
Tanishkmusic said:
My problem is that I have installed a custom rom that is no longer in support in XDA .
So when I tried to to boot using fastboot boot twrp.img command my device won't boot in twrp therefore I am not able to install twrp hence magisk is still not working.
Is there any other way to root my mi 11x witouht using custom recovery.
Click to expand...
Click to collapse
To install twrp do this:
(pre requisites)
-driver for f3 installed;
-adb and fastboot or platform tool (preferable) on the pc;
-usb debugging enabled on the phone.
Therefore:
1) download the .img file of the twrp you want to install, I used this:
Downloads for : Xiaomi Redmi K40 / Poco f3 | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
2) rename the file to twrp.img (for convenience);
3) move the trwp.img file to the adb and fastboot folder (if you use adb) or to the platform tool folder (if you use platform);
4) always in the same folder open a cmd window (go to the address bar, type cmd and press enter);
5) after activating usb debug on the phone, turn it off, start it in fastboot (long press of Power + volume -) and connect it to the pc;
6) check if fastboot recognizes the phone with this command:
Code:
fastboot devices
If your phone code appears you can start it in twrp.
7) to start it in twrp type this command:
Code:
fastboot boot twrp.img
8) now the phone should automatically boot into twrp, so go to Advanced> Flash Current TWRP
done, you should now have twrp installed. for the root there is this guide:
Magisk App 24.3 (Magisk Manager) Latest Version For Android 2023
Magisk is a multi-tasking rooting solution that root device in a systemless format without changing the internal files.
magiskapp.com