topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
48.27k stars 12.33k forks source link

Patched boot img flashing error on UNISOC CPU based android. #7183

Closed mdrakibur179 closed 1 year ago

mdrakibur179 commented 1 year ago

I am having issue in flashing patched boot img in my phone. Magisk successfully patched it. But when I try to flash it using terminal it says "Failed (remote: 'write img failed')"

IMG_20230723_010744_HDR

Device: Symphony Z33 Android version: 11 Magisk version name: 26.1 Magisk version code: 26104

mdrakibur179 commented 1 year ago

All the drivers are installed properly. I test it by Linux also. It also unable to flash the patched boot img.

canyie commented 1 year ago

I also face the same issue on an Unisoc device. I fixed it by using ReserachDownload instead of fastboot to flash the image:

  1. Download ReserachDownload tool and stock firmware
  2. Open ReserachDownload and select the firmware
  3. Click "Settings", un-tick all partitions except FDL1, FDL2 and boot.
  4. Double click the file path of BOOT, you will see a small button. Click it and select your patched boot image.
  5. Click "Start". Fully shutdown your device, long press volume down, connect your device to your PC. Do not release the volume down button until you see FDL2 is flashed. Do not disconnect your device until you see "PASSED".
  6. Flashing is done. Disconnect your device and start it. You should be able to enjoy Magisk now~

I think Unisoc devices have some restrictions that prevent us from flashing boot partition by fastboot, so there is nothing to do with Magisk.

mdrakibur179 commented 1 year ago

After doing this my phone is in bootloop. I need to fix this. Is there any other way to root this UNISOC T610 CPU android?

matrock47 commented 1 year ago

I have same issue when flashing patched boot img on unisoc device

Axodique commented 7 months ago

This will put you in a bootloop. Though fortunately you can use ResearchDownload to flash the original boot img again without losing any files on your phone. Sorry for upping dad issue but I'm just writing this as a warning for other people.

canyie commented 7 months ago

I found other ways to flash boot images on Unisoc device:

Axodique commented 7 months ago

Still the same bootloop, not matter what. I think in my phone's case the patched rom might be the problem. (Umidigi Power 7)

Fyramiz commented 6 months ago

Did you try fastbootd(if device is super partition), and did you try SPD?

Axodique commented 6 months ago

Pretty sure it's a ROM issue, considering all flashing methods lead to the same thing. The phone isn't really meant to be rooted considering I had to go to a pretty roundabout way of unlocking the bootloader (this one)

Fyramiz commented 6 months ago

Is your bootloader even unlocked then unlock it using the python script(unisoc-unlock)

Axodique commented 5 months ago

Yes... It's unlocked... I just explained how I unlocked it...

Fyramiz commented 5 months ago

Try using firmware update tool(i dont remember the exact name, but it's from the same developers as SPD research download tool), or fastbootD

Fyramiz commented 5 months ago

Pretty sure it's a ROM issue, considering all flashing methods lead to the same thing. The phone isn't really meant to be rooted considering I had to go to a pretty roundabout way of unlocking the bootloader (this one)

Does the phone boot to the second stage loader? AKA you see the other message that says that the phone bootloader is unlocked, if only the first, then it's not a rom issue, if the second there is a PROBABILITY of the rom causing it, also if you have a device backup, flash a Treble-Droid based GSI(my experience with normal GSI's are bad on my unisoc device)

leetree2001 commented 3 months ago

Yeah, I'm pretty sure the problem is you need a custom vbmeta-sign.img after unlocking the bootloader.. in the process of attempting to create one, try to get back to yah. Maybe, with any luck 🤞🤞

leetree2001 commented 3 months ago

Yes it goes to lock flag is unlocked, skipping verify, when using some GSI's.a/b. But can't flash boot.img ,magisk-patch, it always fails something about to many links. I was in the process of checking out hovateck, they were saying you have to use custom vbmeta-sign.img. it's just a pain extracting key's and so forth.