I feel like I'm overthinking this, and doing it so much more difficult than it should be. I have stock ROM, patched boot (with Magisk), and unlocked bootloader. When I try using the default update from my phone's "check update", it'll show "Installation Failed" error. This error still occurs with clean boot file as well.
So I had to do the following steps to actually get the update, and I feel like I'm over-complicating things:
1) Download SIDELOAD update from Essential and put it into the platform-tools directory (named OTAUpdate.zip for this post's purpose).
2) Download STOCK of the corresponding version here and pull out HYP, RPM, and BOOT files.
3) Remove PIN, enable USB debugging, and boot into bootloader:
adb reboot bootloader
4) Flash TWRP:
fastboot flash boot_a twrp-3.2.3-0-mata.img
fastboot flash boot_b twrp-3.2.3-0-mata.img
5) Flash old HYP and RPM from pre September 2018 patches (so TWRP touchscreen works):
fastboot flash hyp_a hyp_old
fastboot flash hyp_b hyp_old
fastboot flash rpm_a rpm_old
fastboot flash rpm_b rpm_old
6) Boot into TWRP:
fastboot reboot recovery
7) Go into: Advanced -> ADB Sideload -> Swipe to Start Sideload
8) Sideload the update on command prompt:
adb sideload OTAUpdate.zip
9) Boot into Bootloader:
adb reboot bootloader
10) Flash the new HYP, RPM, and Boot:
fastboot flash hyp_a hyp.mbn
fastboot flash hyp_b hyp.mbn
fastboot flash rpm_a rpm.mbn
fastboot flash rpm_b rpm.mbn
fastboot flash boot_a boot
fastboot flash boot_b boot
11) Copy over the boot file from Step 2 to the phone, and rename to boot.img.
12) Install/open Magisk Manager, then:
Install -> Install -> Patch Boot Image File -> Select the boot.img from Step 11
13) Copy the patched_boot.img file back to the platform-tools directory on PC.
14) Reboot into bootloader.
adb reboot bootloader
15) Flash the patched boot file:
fastboot flash boot_a patched_boot.img
fastboot flash boot_b patched_boot.img
16) Reboot.
fastboot reboot
17) Open Magisk Manager and check if all is okay. Then add PIN and disable USB debugging mode.
Click to expand...
Click to collapse
What am I doing wrong // what is a more simpler method?
Printerscape said:
What am I doing wrong // what is a more simpler method?
Click to expand...
Click to collapse
Assumption: You have TWRP recovery installed.
Download the OTA zip from Essential website to the internal phone storage
*Optional* Remove lockscreen security (PIN/Password/Pattern)
Ensure that you have TWRP zip and Magisk zip files on internal phone storage
Reboot to TWRP recovery
Install OTA zip, and then TWRP zip.
Reboot back to OS, to ensure that everything is loaded properly and device is up to date
Reboot back to recovery and then install Magisk
Reboot and all should be good.
You could probably amalgamate the last 3 steps and install Magisk right after TWRP but I like to ensure that the OTA worked.
You could also add in the step to perform a TWRP backup before flashing the OTA zip, if you wish.
goofball2k said:
Assumption: You have TWRP recovery installed.
Download the OTA zip from Essential website to the internal phone storage
*Optional* Remove lockscreen security (PIN/Password/Pattern)
Ensure that you have TWRP zip and Magisk zip files on internal phone storage
Reboot to TWRP recovery
Install OTA zip, and then TWRP zip.
Reboot back to OS, to ensure that everything is loaded properly and device is up to date
Reboot back to recovery and then install Magisk
Reboot and all should be good.
You could probably amalgamate the last 3 steps and install Magisk right after TWRP but I like to ensure that the OTA worked.
You could also add in the step to perform a TWRP backup before flashing the OTA zip, if you wish.
Click to expand...
Click to collapse
But when I flash TWRP by itself to boot (TWRP-3.2.3-0-mata.img), touch doesn't work, thus I have to flash the older hyp/rpm files.
If you have that problem, this img could be used to boot from, then you can flash the OTA and twrp zip file.
https://drive.google.com/open?id=1YxJJj96Web0ikHXdHf_zboZT_KSYl7Nj
If you have Magisk, it's even easier than others have said. Before taking the Ota, have Magisk Manager uninstall Magisk. It should restore the stock boot image. If you started with a patched boot image, this won't work though. Magisk backs up the stock boot image when you install Magisk either in TWRP or when you have it patch the boot image manually.
Then take the OTA. Before restarting, go back to Magisk Manager and install Magisk again, use the Direct method. If it says it was successful, reboot and you should be good.
Related
[HOW TO] Root, Flash TWRP & Install busybox in YUOS Official - Android 6.0.1 Build
First Flash YUOS from here
How to flash YUOS.
Flash images with Fastboot
Code:
Execute below commands in terminal
Connect device in fastboot mode
adb reboot bootloader
Check if device is detecting in fastboot mode
fastboot -i 0x1ebf devices
Unlock bootloader fastboot -i 0x1ebf oem unlock
Format User data
fastboot -i 0x1ebf format userdata
Flash kernel
fastboot -i 0x1ebf flash boot boot.img
Flash recovery
fastboot -i 0x1ebf flash recovery recovery.img
Flash system partition
fastboot -i 0x1ebf flash system system.img
Flash data partition
fastboot -i 0x1ebf flash userdata userdata.img
Reboot device
fastboot -i 0x1ebf reboot
WARNING: The stock boot image has dm-verity, which prevents you from booting if you swipe to enable system modifications!
Follow YU bootloader unlocking instructions here before you begin!
Download the latest TWRP .img for your device from twrp.me.
Use the same fastboot tool you downloaded in theYU unlock instructions to flash TWRP using the command:
fastboot flash recovery twrp-x.x.x-x.img
Click to expand...
Click to collapse
* Replace x.x.x-x with the actual version you are flashing!
Now you can either power off your phone and boot into recovery using the button combo [Volume Down] + [Power], or you can run this command in fastboot:
fastboot boot twrp-x.x.x-x.img
Click to expand...
Click to collapse
1. At this point, you will see the TWRP splash and reach a screen asking you if you want to allow system modifications.
By swiping right, you will trigger dm-verity, and if you don't follow step 4 you will be unable to boot!
If you are going to root your device or follow the rest of these steps, then it is safe to swipe right and enable modifications.
2. Only if you want internal storage or data to work in TWRP:
Go to [Wipe] -> [Format Data] (not advanced wipe) -> type "yes".WARNING: This will wipe your internal storage, disable encryption, and factory reset your phone!
Go to [Reboot] -> [Recovery].
3. Please consider backing up your stock boot partition in TWRP before proceeding to te next steps!
4. If you want to be rooted with SuperSU:
Download the latest SuperSU by Chainfire. OR Flash through TWRP this file.
Without exiting TWRP, transfer the SuperSU zip to your device over MTP* and flash it using [Install] in TWRP.-or-
If you only want a bootable system partition or writable data in TWRP:
Download dm-verity and force encryption disabler.
Without exiting TWRP, transfer no-verity-opt-encrypt.zip to your device over MTP* and flash it using [Install] in TWRP.
Go to [Reboot] -> [System].
Wait 2-5 minutes for your device to finish setting itself up.
To install busybox flash through TWRP this file >>>> this is recommended.
After rebooting to TWRP it will not ask for any password.
Took help from here & @h2o64 for guiding me.
This has been tried & tested by me on yureka.
Suggestions welcomed
YU FORUMS link
one million thank yous
thank you so much
I can confirm this is working on my moto e3 ( non-power )
keep doing what your doing you really helped
now I can get down to business with some cool root modifications!!!
Can we use Magisk instead of supersu.
Here is a Magisk Rooted boot image for 8.1 Development preview.
Instructions:
fastboot flash boot_a patched_boot.img
fastboot flash boot_b patched_boot.img
https://drive.google.com/file/d/10vclwNQUUbgGyUJLvXGD3pnTZtoX98vg/view?usp=sharing
How to create your own:
This method does not need root, and also does not require a custom recovery.
Download Magisk Manager from here
Press Install > Install > Patch Boot Image File, and select your stock boot image file
Magisk Manager will now patch your boot image, and store it in [Internal Storage]/MagiskManager/patched_boot.img
Flash the patched boot image to your device and reboot. VoilĂ !
Click to expand...
Click to collapse
Hi there.
I'm trying to update my phone to Oreo January patch, I'm currently with December patch that is such bugged. Well as I read I have to download the update and before installing it I have to uninstall Magisk restoring the boot image and then after the update installing the boot image of Magisk again, I tried to flash the ROM with MiFlash saving the user data to solve it, and I did it but all my data just gone I don't know why, well the thing is that I updated, I thought, and then I flashed the patched boot image of Magisk in fastboot mode, and there is where I missed the boot image and I lost the update maybe...
Is there an option to flash JUST the boot image and not all the ROM or put the stock boot image just into a Magisk folder to have it?
If you install magisk using magisk manager, it will backup your original boot image and when you uninstall magisk, it will restore your boot image.
If you want to manually flash your boot image, you can do that in fastboot mode.
Code:
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
You can get your stock boot image from the rom files that you used in MiFlash tool. (boot image is inside that rom folder/zip file)
In miflash, you need to make sure you select the"save user data" option in the lower right corner. The file it will use is the "flash all except storage" file. Then, don't flash magisk. Update, them worry about rooting.
RavinduSha said:
If you install magisk using magisk manager, it will backup your original boot image and when you uninstall magisk, it will restore your boot image.
If you want to manually flash your boot image, you can do that in fastboot mode.
Code:
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
You can get your stock boot image from the rom files that you used in MiFlash tool. (boot image is inside that rom folder/zip file)
Click to expand...
Click to collapse
Hey, thanks for your answer, I manually flashed my boot image to update my phone to January Update but it didn't work, when I try to install the update it says "Couldn't install the update, try again later"
Any idea to solve this?
I accidentally flashed a magisk_patched.img thinking that it is going to Install Magisk into my phone.
I entered the following command: fastboot flash boot magisk_patched.img (Not specifying the boot slots)
Once I rebooted, it says system UI is not responding.
I went back to fastboot mode, and entered the following commands knowing it had worked previously before:
fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img
I tried switching boot slots, but both shows the same error once I am rebooted "System UI not responding".
I have no TWRP installed and I just want to start FRESH. I have the OOS 10.3.1 Zip file ready. I just do not know how to install it.
It also seems like my phone does not want to boot into recovery mode. It is currently stuck in fastboot. Both slots have this error.
Pleasee help me out!
Use MSMDownloadTool to reflash stock image. Follow directions of that. Can be found easily here on forums.
Alternatively, since fastboot is working you can try and use a fastboot version of OOS rom and flash without relocking bootloader.
AdlietMeyer said:
I accidentally flashed a magisk_patched.img thinking that it is going to Install Magisk into my phone.
I entered the following command: fastboot flash boot magisk_patched.img (Not specifying the boot slots)
Once I rebooted, it says system UI is not responding.
I went back to fastboot mode, and entered the following commands knowing it had worked previously before:
fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img
I tried switching boot slots, but both shows the same error once I am rebooted "System UI not responding".
I have no TWRP installed and I just want to start FRESH. I have the OOS 10.3.1 Zip file ready. I just do not know how to install it.
It also seems like my phone does not want to boot into recovery mode. It is currently stuck in fastboot. Both slots have this error.
Pleasee help me out!
Click to expand...
Click to collapse
I still don't understand why people are so eagerly desperately searching to use patch img method.... We have a working TWRP you just have to fastboot boot temporarily twrp and flash Magisk zip installer....
Anyway, why did you mess with slots? 90% of time it leads to soft brick. You don't need to specify slot when fastbooting an img, it's flashed automatically on active one.
In your situation, try to fastboot flash the ROM, there is a thread in Guide News section providing OOS in fastboot format.
Or use MSMdownload to put your phone in factory fresh state, there is a thread in same section about that it's called 'collection of unbrick tools'
And my thread in same section explains how to root 10.3.1
Hi, is it possible to root the latest version of OxygenOs 11.0.9.9 and have modules working?
Why wouldnt it be?
Let me better explain. I'm on OxygenOs 11.0.9.9 IN11BA. I have just updated to this version and I expected to find bootloader locked. How is it possible? I wanted to follow a guide to reinstall root from 0
Sneakdovi said:
Let me better explain. I'm on OxygenOs 11.0.9.9 IN11BA. I have just updated to this version and I expected to find bootloader locked. How is it possible? I wanted to follow a guide to reinstall root from 0
Click to expand...
Click to collapse
Unlock bootloader.
Flash recovery (for example latest lineageOS)
Sideload latest magisk zip
Reboot systtem
unlock bootloader
extract boot
patch boot
flash boot
system reboot
done
unlock bootloader in system settings/developer mode
boot into fastboot
>oem unlock (wipes phone)
>fastboot flash "patched magisk.img file name" - phone should reboot
>fastboot flash boot_a "patched magisk.img file name"
>fastboot flash boot_b "patched magisk.img file name"
fastboot reboot
install magisk.apk, verify you can pass safety net after enabling magisk hide within magisk settings
sorted
good luck