[GUIDE][MAGISK][LANCELOT] Guide on how to update Magisk via Fastboot. (No TWRP) - Redmi 9 / Poco M2 Guides, News, & Discussion

Making this guide on how to update Magisk via Fastboot and not direct install since the system partition is read-only, so direct install fails. This guide is directed towards newbies.
WARNING: I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED TO THE PHONE, YOU ARE DOING ALL OF THE STEPS BELOW AT YOUR OWN RISK. I DONT CARE IF YOUR PHONE BECOMES SENTIENT AND BECOMES SKYNET, NUKES THE WHOLE WORLD, ETC...
Backup always recommended.
Step 1: Download the recovery rom from your device's page AND MIUI Version from here.
NOTICE: IT IS IMPORTANT THAT YOU SELECT THE CORRECT VERSION OF YOUR PHONE THIS GUIDE IS FOR REDMI 9 LANCELOT. To know what version your phone is, go to settings, About Phone, and you should see the version. (SEE IMAGE ATTACHED TO KNOW WHATS IMPORTANT).
2: Extract the downloaded zip.
3: Copy "boot.img" from the extracted zip.
4: Paste it onto your phone connected to PC. I recommend pasting it into the downloads folder, so it's easier to find.
5: Open the Magisk app.
6: Click on the "update" button. If you cant see it, that means you're on the latest version.
7: Select "Select and patch a file" You can try the direct install option, but there's a high chance it will fail.
8: Go to the folder where you pasted "boot.img". Select it. Then near the top right area of the app, select "Let's go".
9: On the pc, go to your phone's files, and find "Downloads".
10: You should see a file named "Magisk_patched.img". The name sometimes varies. (rename it to magisk-patched, so its more simple.).
11: Copy it onto your pc in the folder where you have "fastboot.exe". If you don't, download it from here.
12: Back to your phone, open the magisk app and on top-right of the screen there should be a "spinning arrow" logo. Tap it and select "reboot to bootloader".
13: Back to the pc, now open the folder with fastboot.exe and magisk-patched.img
14: Hover your mouse on an empty space in the explorer window, hold shift and right-click at the same time.
15: Find and option that says "Open powershell window here".
16: Click it, and in the window type cmd.
17: Then, type fastboot devices to see if your device is connected (if it doesnt show anything, make sure your phone is in fastboot mode and that it's connected to the pc)
18: Type this line carefully: fastboot flash boot magisk-patched.img
19: Then type fastboot reboot.
20: If you did everything correctly your phone should now have Magisk updated to the latest version!
Hope this helped. Feel free to ask questions,

usernamenotrequired said:
Making this guide on how to update Magisk via Fastboot and not direct install since the system partition is read-only, so direct install fails. This guide is directed towards newbies.
WARNING: I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED TO THE PHONE, YOU ARE DOING ALL OF THE STEPS BELOW AT YOUR OWN RISK. I DONT CARE IF YOUR PHONE BECOMES SENTIENT AND BECOMES SKYNET, NUKES THE WHOLE WORLD, ETC...
Backup always recommended.
Step 1: Download the recovery rom from your device's page AND MIUI Version from here.
NOTICE: IT IS IMPORTANT THAT YOU SELECT THE CORRECT VERSION OF YOUR PHONE THIS GUIDE IS FOR REDMI 9 LANCELOT. To know what version your phone is, go to settings, About Phone, and you should see the version. (SEE IMAGE ATTACHED TO KNOW WHATS IMPORTANT).
2: Extract the downloaded zip.
3: Copy "boot.img" from the extracted zip.
4: Paste it onto your phone connected to PC. I recommend pasting it into the downloads folder, so it's easier to find.
5: Open the Magisk app.
6: Click on the "update" button. If you cant see it, that means you're on the latest version.
7: Select "Select and patch a file" You can try the direct install option, but there's a high chance it will fail.
8: Go to the folder where you pasted "boot.img". Select it. Then near the top right area of the app, select "Let's go".
9: On the pc, go to your phone's files, and find "Downloads".
10: You should see a file named "Magisk_patched.img". The name sometimes varies. (rename it to magisk-patched, so its more simple.).
11: Copy it onto your pc in the folder where you have "fastboot.exe". If you don't, download it from here.
12: Back to your phone, open the magisk app and on top-right of the screen there should be a "spinning arrow" logo. Tap it and select "reboot to bootloader".
13: Back to the pc, now open the folder with fastboot.exe and magisk-patched.img
14: Hover your mouse on an empty space in the explorer window, hold shift and right-click at the same time.
15: Find and option that says "Open powershell window here".
16: Click it, and in the window type cmd.
17: Then, type fastboot devices to see if your device is connected (if it doesnt show anything, make sure your phone is in fastboot mode and that it's connected to the pc)
18: Type this line carefully: fastboot flash boot magisk-patched.img
19: Then type fastboot reboot.
20: If you did everything correctly your phone should now have Magisk updated to the latest version!
Hope this helped. Feel free to ask questions,
Click to expand...
Click to collapse
It is old method...but ok..tnx for guidance..but you need also flash vbmeta.img to boot device ... otherwise you get boot loop..

Shas45558 said:
It is old method...but ok..tnx for guidance..but you need also flash vbmeta.img to boot device ... otherwise you get boot loop..
Click to expand...
Click to collapse
Pretty sure that if you have magisk installed you already have vbmeta.

Related

[GUIDE] To Understanding the root process for MT3GS

Ok I have seen enough people having trouble whith the current root process so I going to try to explain it in the best way I know how.
First off if you have applied the new OTA update from tmobile either from tmobile or from xda dev forums the current root process WILL NOT WORK.
Now, that being said,
Step 1: Setting up the android sdk
Ok the Android sdk is a set of executable files thrown together to help developers piece together .apk's and various components for android devices thus the name "Software Developers kit". Now once you download the sdk I suggest that you install it on the root of your hard drive. In most users case it would be "C:/", and I also suggest your name its directory something simple like "SDK" like me because it cuts down on typing and the possiblity of typos.
Within the sdk directory there will be a directory called tools and this is where you will need to "cd" to in "cmd"
Cd = change directory
Cmd = Command Prompt
You may skip the next step if you have been able to view your devices serial number in "cmd".
Step 2: Viewing your devices serial number
I'm sure all of you like me as soon as we got our phone plugged it into our computer and messed around with it, well we just gave ourselves our first headache.
To fix this issue first we need to download and install "USBDeview" and uninstall all "Mytouch Slide" drivers from the computer .
Next we need to download "PDAnet" and install and choose "HTC" as the device.
Now we goto "Settings>Applications>Development and check "USB Debugging".
Now we can plug in our slide and our adb driver should install automatically without a hitch.
Now to verify open "cmd" type in "cd/" then "cd /sdk/tools" and "adb devices" and you should see your devices serial number.
Step 3: Understanding Root.zip package
The current root process is called "OTA spoofing" and its named this way for good reason. Within the root.zip there will be three files loop.bat, ota.zip, and update.zip.
Loop.bat = a batch script which loops the command "adb devices" until user command to stop "ctrl+c" verify with "Y".
OTA.zip = A .zip archive with tmobile ota signatures to allow the file to be read this file does not contain clockwormod recovery or superuser.apk or su.
Update.zip = the important file this file is what contains the recovery img and root permission "su" and "superuser.apk".
These files need to be placed in your "C:/SDK/tools" directory
Step 4: Getting your device to read in recovery
Now we power off the phone and power back on into "bootloader" press and hold Volume Down and power until your in bootloader.
Now it will check for an img on your sdcard it will not find one unless you put one there.
After its done press volume down before you select with power open up "cmd" and "cd" too your android sdk tools directory.
Type "loop" to start your loop batch script you should see "adbe devices" repeatedly being displayed on your screen.
Now select power.
If successful you will see "device offline" repeating
If not then repeat this step.
Otherwise unplug your usb cable from your device and then type "adb devices" and it should return with your serial number and devices in recovery.
Step 5: Pushing files and gaining root
Ok here we go...
Its important to know what the commands mean when doing this process.
"Adb push" :: adb push your.file /todirectory :: what this command is doing is sending the file you selected (in this case "your.file" to the directory you selected in this case the directory "todirectory") this is the proper syntax to push a file
However we need to send the ota.zip to the sdcard first but for the android recovery to read it it needs to be named "update". And we all know that two files with the same file extention and the same name cannot exist in the same directory. How do we solve this? By pushing ota.zip to the sdcard as "update.zip". This is done by the following command:
adb push ota.zip /sdcard/update.zip
This will send the ota.zip to the sdcard as "update.zip"
Now simply type in the following command BUT DO NOT PRESS RETURN ON YOUR KEYBOARD YET.
adb push update.zip /sdcard
Now scroll to "apply sdcard:update.zip" with volume down
Press power count
1...
2...
Press enter on your computers keyboard to send update.zip to the sdcard.
Boom you should see clockworkmod recovery.
Select install from sdcard find update.zip and select with the power and you now have root.
Sent from my T-Mobile myTouch 3G Slide using XDA App
Should talk about the engineering rom too
Seriously. It took me A LOT of reading and swarming through 20+ tabs of the same thing to figure out that when everyone mentions ENG and installing ClockWorkMod Recovery and then small glimps of everyone saying "ENG for its recovery" that I FINALLY figured out you NEED to flash the ENG build for soley its test key's recovery to HAVE clockwork working the way its supposed to.

Bricked Lenovo A1000-F

Hi to all! My tablet is bricked I can open the recovery menu, but, even if i can use "adb sideload" command from my pc, i don't have a rom to send to my tablet. How can i solve the problem? The tablet can boot but it remains in the "initial configuration page", because a system process always crashes".... Please help me
If you can get into recovery and other things your not bricked, junior member. I don't know the exact process but if someone with an a1000 knew or was willing and instructed they could dump the rom and if someone knew how could make it into a flashable zip, maybe, like I said don't know the exact process
mypd1991 said:
If you can get into recovery and other things your not bricked, junior member. I don't know the exact process but if someone with an a1000 knew or was willing and instructed they could dump the rom and if someone knew how could make it into a flashable zip, maybe, like I said don't know the exact process
Click to expand...
Click to collapse
can anyone give me stock firmware of lenovo a1000g?
nick84tl said:
Hi to all! My tablet is bricked I can open the recovery menu, but, even if i can use "adb sideload" command from my pc, i don't have a rom to send to my tablet. How can i solve the problem? The tablet can boot but it remains in the "initial configuration page", because a system process always crashes".... Please help me
Click to expand...
Click to collapse
there is a post post in lenovo forum PREAMBLE-FOR-LENOVO-A1000-ROM-RECOVERY-ETC
u can a nandroid backup there ,after installing twrp ,just restore back up backup
place the back up u need to create a folder "TWRP"
in twrp "BACKUPS"
in backups "LENOVO_A1000_MT8317"
PUT THE RESTORE FILES IN A FOLDER CREATE THE "RESTORE FOLDER" IN ABOVE LENOVO FOLDER
Hope This helps
Caution MAKE SURE TO BACKUP YOUR IMEI AND MAC ADRESS AND BLUETOOTH ADRESS
Note : Step 6 and 7 can be shortcutted by Pressing on the hard reset button while/while not connected to PC
: this will erase all data on your internal memory, so keep all the data you wanna back up in PC or External SD card and remove it (just to be safe)
ok, so
Step 1 google A1000F_A412_01_23_130822_ROW_USER, you should find it in 4shared(dot)eu
Or http://www.4-shared.eu/download/bt6fqlKPInMXDN3q7CPuW1/A1000F-A412-01-23-130822-ROW-USER.html
Step 2: once you finish downloading, extract it, then go to the FlashTool folder and look for FlashTool.exe
Step 3, once you open FlashTool.exe, Click the checkbox DA DL All with Checksum
Step 4 Now load scatter file MT6577_Android_scatter_emmc (located in A1000F_A412_01_23_130822_ROW_USER Folder, it will be the only file show other than the flash tool folder)
Step 5 now click Format> Format All partition except Bootloader > validation > ok
Step 6 Now connect your USB to MiniUSB (charger cord) to the computer but DO NOT PLUG IT YET TO THE PC
Step 7 now hold down on your Up volume button and wait 10 sec. then plug it into pc
Step 7.1 (not really) the loading bar on the bottom of SP flash tool should turn red and other difirent colors, once its finished, there should be a popup saying OK, Close it and youre done
Step 8: now Click on download, after you download, look at Step 6 to 7.1
Step 9 IF the device fails to boot, download this ( will put link to A1000F fix tool)
Step 10 press the hard reset button (besides SD card slot) or Follow Step 6 to 7.1
Step 11 Boot UP
To install TWRP 2.5 ( Found it in lenovo russian forums) (Tested the file) (worked for my IdeaTab A1000-F)
Step 12 Download From This (Direct Link) http://lenovo-forums.ru/Files/OS/Tablets/A1000/Custom/A1000T_TWRP_v2.5.0.0.zip
Step 13 Extract it
Step 14 IGNORE the included scatter file from the TWRP download (had problems with it) and follow Step 4
Step 15 On the loaded files from Scatter file, look for recovery ( 7th File), Click on it, there should be a file explorer pop up
Step 16 On the file explorer pop up, look for the A1000F_TWRP_v2.5.0.0 folder you just extracted AND then click on the recovery.img found inside
Step 17 Now Choose Firmmware -> Upgrade and do Step 10
TO ROOT WITHOUT PC (must do step 1-17)
Step 18 Boot to recovery (hold power button + up volume button AT THESAME TIME)
Step 19 You should be at TWRP recovery, Tap on Reboot>System and there should display a warning about the system not being rooted, and it should prompt you to slide to root, SLIDE IT, it should reboot automatically
Step 20 in your app drawer, look for SU installer and click on it,Your going to be prompted to innstall SU via playstore or via TWRP (i did it via TWRP bacause im lazy, and the system apps are updating, but your free to do otherwise) it should reboot, and vioala, your rooted
To Update Firmware
Step 21 Open SuperSU>settings>scroll down>enable pro (SuperSU should restart) then Open SuperSU again>settings>survival mode
Step 22 Download This (download 1) (will update to put link) and this https://play.google.com/store/apps/details?id=de.mkrtchyan.recoverytools
Step 23 Open the Rashr Flasher tool you just downloaded from playstore and find Download 1 then navigate Download 1 file location (Named Recovery Folder) > Stock and tap on the recovery img
Step 24 download and install the Update from Settings>about tablet>Firmware Update (make sure you have enabled survival mode in super Su, or else you will loose root privilages)
To go back to TWRP
Step 25 just use the Rashr Recovery tool and go to download 1 file location (named Recovery Folder) > TWRP and tap on the recovery img
HELP!
I tried the flash tool thing ,and the red line under did popes out, about ten seconds later it popes out a message, and says that "flash tool error","S_DA_DRAM_NOT_SUPPORT"(3004)
What can I do?
Please help me!
P.S.my ideatab a1000f was hard bricked ,it can not go to my twrp recovery mode that i had before it bricked.:crying::crying::crying:

Downgrade from Cyanogenmod

Hi,
I made a mistake installing Cyanogenmod on my phone, forgot to make a backup in TWRP.
This Cyanogenmod version requires me to delete my former EMUI fingerprints for the fingerprint function to work. I forgot to do that also...
So now I'm trying to reinstall my custom ROM. I found the UK PLK-L01 firmware on Huawei support page, downloaded that and put it on my (not external sd)sdcard/dload/UPDATE.APP.
Then I try the Volume UP+Volume Down+Power for it to install the rom, but only thing that happens is that the phone boots into TWRP, and in there, there is no option to install a .APP file.
Please help
frederikahrenst said:
Hi,
I made a mistake installing Cyanogenmod on my phone, forgot to make a backup in TWRP.
This Cyanogenmod version requires me to delete my former EMUI fingerprints for the fingerprint function to work. I forgot to do that also...
So now I'm trying to reinstall my custom ROM. I found the UK PLK-L01 firmware on Huawei support page, downloaded that and put it on my (not external sd)sdcard/dload/UPDATE.APP.
Then I try the Volume UP+Volume Down+Power for it to install the rom, but only thing that happens is that the phone boots into TWRP, and in there, there is no option to install a .APP file.
Please help
Click to expand...
Click to collapse
couldnt you just locate files and delete in root explorer or similar app?
You can open the update.app in Huawei update extractor and use adb to manually flash the system, custom, cache, boot and recovery partitions back to stock then once you boot into the stock emui os you can reflash twrp. I'm busy atm but I'll write you a proper guide soon. Or you could Google it but be careful becuase there are a lot of guide that don't work anymore
Edit: This won't require you to wipe your user data so you can keep your setting contacts apps etc.
---------- Post added at 09:07 PM ---------- Previous post was at 08:28 PM ----------
Here is my guide it's a bit long but should be easy. I recommend reading it all first before following it just so you know what each step is doing.
Ok step one. Go to This link and download the emui version for you phone.
step two. You need to download Huawei update extractor from This link and install it on your pc.
Step three. unzip the update you extracted to a new folder on your desktop (It can be called anything bu I recommend calling it "EMUI") and put the update.app file in this folder.
Step four. open Huawei update extractor and select profile "Unknown (worstenbrood)" if it is not selected already.
Step five. Under the section where it says update file click on the ".." button navigate to the folder you made on your desktop and double click the update.app file.
Step six. Right click on the file named "BOOT.img" and click extract selected then once the green loading bar has gotten to 100% click close on the extracting window since it does not automatically do it its self.
Step seven. Repeat step six for the files named "CACHE.img", "CUST.img", "RECOVERY.img", "SYSTEM.img" and "USERDATA.img" (Only extract USERDATA.img if you want to wipe all of you apps, setting, contacts and messages)
Step eight. Open the folder you create on your desktop and copy all of the files you extracted (Only the .img files since Huawei update extractor also create some other files which you don't need) and paste them into the folder which you have adb installed into (It should be "C:\Program Files (x86)\Android\android-sdk\platform-tools" if you used the sdk version but if you have a diffrent version of adb paste them into the folder which you have that installed to)
Step nine. Boot your phone into bootloader mode on you phone. There are a few ways to do this but use whatever way you used when you flashed twrp.
step ten. In widowns explorer (Your pc's file manager) Shift click in the folder you have adb installed into and click "Open cmd window here"
Step eleven. type the following commands into cmd "fastboot flash boot BOOT.img", "fastboot flash cust CUST.img", "fastboot flash recovery RECOVERY.img", "fastboot flash system SYSTEM.img" and if you decided to reset all of you data (Like apps, contacts, messages, setting, etc) "fastboot flash userdata USERDATA.img" Some of these may take a long time (Especially SYSTEM.img but it shouldn't take more than 10 minute if it doesn't finish within 20 minute press ctrl + c in the cmd windows and start again).
Step twelve. Type "fastboot reboot" into cmd and you will boot into stock emui. Now you can reflash TWRP if you want and re install root.
Feel free to message me if you need help.

[GUIDE] Root any Sony Android phone without TWRP

IMPORTANT
Rooting can break your phone. Do this at your own risk.
Intro
This guide explains how you can root any Sony Android phone without installing a custom recovery like TWRP. It's possible by downloading the latest firmware, patching the boot IMG file with Magisk and flashing the patched boot IMG.
Note 1:
If you have the XQ-AU52_EU_59.2.A.0.463-R14C firmware installed (Sony Xperia 10 II EU Android 12), you can skip downloading the firmware and converting the file from SIN to IMG. Flash the patched "boot.img" file in the attachment instead.
Note 2:
If you don't like the skin that's installed along Android 12 on the Sony Xperia 10 II, you can downgrade the firmware by using Sony Xperia Flash Tool - Emma.
Note 3:
All files I collected are available
How to
Install all Android updates on your phone
Back-up your phone with a tool or Google back-up
Unlock the bootloader (wipes all data on your phone)
Sony users:
https://developer.sony.com/develop/...d/unlock-bootloader/how-to-unlock-bootloader/
Download the latest firmware
Sony users can use XperiFirm which you will find in the attachment
Make sure the version you download matches the one on your phone!
Convert the “boot SIN” file you just downloaded to IMG:
Drag the “boot SIN” file to “unsin.exe” and an IMG file will be created
(you will find "unsin.exe" in the attachment)
Copy the IMG file to your phone
Copy Magisk APK to your phone
(you will find Magisk in the attachment)
Install Magisk on your phone using the APK you copied
Open Magisk on your phone
Install Magisk (button in the app) and patch the “boot IMG” file you just copied
Get the files for ADB (platform-tools)
(you will find the files in the attachment)
Copy the patched “boot IMG” file to the “adb” folder on your pc and rename it to “boot.img”
Enable USB debugging on the phone:
a) Settings » About » Tap “Build” until you a message appears you are a developer
b) Settings » Advanced » Developer » USB debugging
Open a CMD window in the “adb” folder
a) Press the “Windows botton”
b) Type "cmd"
c) Click "Command Prompt"
d) Type "cd /d <path to directory with adb.exe file – i.e. c:\myfolder\adb>"
Start the phone in “fastboot” mode:
a) Turn the phone off
b) Press the "volume-up" button and connect the USB cable at the same time
Install the USB drivers
(you will find the files in the attachment)
Run "fastboot flash boot boot.img" (watch the file name)
Disconnect the cable and turn the phone on
Download "Root Checker" from the Play Store and open it
Tap "Check Root"
A popup will appear to grand root access to the Root Checker app
If a message stating "ROOTED" appears your phone is succesfully rooted
That's it!

Question I want to root Poco X3 GT MIUI 14.0.1

I want to root my device. Will twrp 3.6.0 from mastersenpai05 work on MIUI 14.0.1?
it seems to me that this TWRP is A11 and MIUI 14 A13.
No need for TWRP to root.
Root:
1. Find or redownload the TGZ file for your current ROM or other rom.
2. Browse inside the zip file and find boot.img under the images folder
3. Copy this file to a temporary location in your PC first, and then transfer it to your phone
4. Install the desired version of Magisk app
5. Run the app and choose Install under Magisk
6. Choose Select and Patch a File, then select the boot.img that was transferred earlier
7. A process will run and create a new .img file in the same folder where the original one was
8. Transfer the new file to your PC in the same directory where fastboot.exe is located
9. Open a command prompt window in that same directory
10. Reboot your phone to fastboot mode and connect to PC, USB2.0 port. Check for connection by running command fastboot devices.
11. Run the command fastboot flash boot_ab magiskXXXX.img
***On some devices, disable-verity is required.
Once it's completed, run command fastboot reboot and the phone should boot and be rooted.

Categories

Resources