Installing Magisk leads to 'Unsupported/Unknown image format' error - Sony Xperia X Questions & Answers

Hi,
I tried to install Magisk by first unlocking the bootloader, installing a custom recovery (TWRP) and later flashing Magisk. Unfortunately during the installation of TWRP I got hit with boot loop and used Sony's flash tool to get the stock ROM and get booted. But the ROM offered by flash tool is 6.01 (Marshmallow). Then I tried to install the latest Magisk 20.4 both by using TWRP and by using Magisk manager. But both resulted in the 'Unsupported/Unknown image format' error. These are the logs I see are:
- Device platform: arm64-v8a
- Copying image to cache
- Unpacking boot image
! Unsupported/Unknown image format
! Installation failed
Basically I want to:
1) Install Magisk
2) Upgrade from Marshmallow to the latest Android stock.
Any guidance is highly appreciated.
Thanks,
Karthik

Karthik.V.M said:
Hi,
I tried to install Magisk by first unlocking the bootloader, installing a custom recovery (TWRP) and later flashing Magisk. Unfortunately during the installation of TWRP I got hit with boot loop and used Sony's flash tool to get the stock ROM and get booted. But the ROM offered by flash tool is 6.01 (Marshmallow). Then I tried to install the latest Magisk 20.4 both by using TWRP and by using Magisk manager. But both resulted in the 'Unsupported/Unknown image format' error. These are the logs I see are:
- Device platform: arm64-v8a
- Copying image to cache
- Unpacking boot image
! Unsupported/Unknown image format
! Installation failed
Basically I want to:
1) Install Magisk
2) Upgrade from Marshmallow to the latest Android stock.
Any guidance is highly appreciated.
Thanks,
Karthik
Click to expand...
Click to collapse
Hi, first install the latest stock android rom and then flash magisk with twrp. Also you can try the stable versions, not canary.
Good luck, zaqm

zaqm said:
Hi, first install the latest stock android rom and then flash magisk with twrp. Also you can try the stable versions, not canary.
Good luck, zaqm
Click to expand...
Click to collapse
Hi Zaqm,
Thanks for your reply. I am a newbie in this whole process. Can you point me where can I get the latest stock android rom? Also should I use TWRP to install it? Your help is much appreciated. :good:
Regards,
Karthik

Karthik.V.M said:
Hi Zaqm,
Thanks for your reply. I am a newbie in this whole process. Can you point me where can I get the latest stock android rom? Also should I use TWRP to install it? Your help is much appreciated. :good:
Regards,
Karthik
Click to expand...
Click to collapse
Hi Zaqm,
I have managed to flash the latest stock android (8.0) using flashtool and xperifirm tool. When I tried to install magisk using TWRP on the latest stock android, I still get the same error message 'Unsupported/Unknown image format'. Any pointers are welcome.
Thanks,
Karthik

Karthik.V.M said:
Hi Zaqm,
I have managed to flash the latest stock android (8.0) using flashtool and xperifirm tool. When I tried to install magisk using TWRP on the latest stock android, I still get the same error message 'Unsupported/Unknown image format'. Any pointers are welcome.
Thanks,
Karthik
Click to expand...
Click to collapse
Hi, sorry for the late reply. Which magisk version did you try to flash? You can try v18 or 18.1 which I think are compatible with Android 8.
Good luck, zaqm

zaqm said:
Hi, sorry for the late reply. Which magisk version did you try to flash? You can try v18 or 18.1 which I think are compatible with Android 8.
Good luck, zaqm
Click to expand...
Click to collapse
HI Zaqm,
I tried the latest Magisk 20.4 and few other previous versions but I don't remember giving v18 or v18.1 a try. I will do that.
Also, I would like to share that I did not allow TWRP to modify the system partition. I opted to keep the system partition 'Read Only'. The reason I did this is that whenever I allow TWRP to modify the system partition, I get stuck at the SONY boot logo and my phone would not boot and I need to reflash the stock ROM again.
I also came to know that I need to flash a rooted kernel to avoid the bootloop or I should flash the drm fix if I want to keep the stock kernel. Can you comment on that?
Thanks,
Karthik

Karthik.V.M said:
HI Zaqm,
I tried the latest Magisk 20.4 and few other previous versions but I don't remember giving v18 or v18.1 a try. I will do that.
Also, I would like to share that I did not allow TWRP to modify the system partition. I opted to keep the system partition 'Read Only'. The reason I did this is that whenever I allow TWRP to modify the system partition, I get stuck at the SONY boot logo and my phone would not boot and I need to reflash the stock ROM again.
I also came to know that I need to flash a rooted kernel to avoid the bootloop or I should flash the drm fix if I want to keep the stock kernel. Can you comment on that?
Thanks,
Karthik
Click to expand...
Click to collapse
Hi, I'm sorry but I don't own myself a Xperia X and can't tell such specific things related to it. Let someone else answer these questions.
Good luck, zaqm

zaqm said:
Hi, I'm sorry but I don't own myself a Xperia X and can't tell such specific things related to it. Let someone else answer these questions.
Good luck, zaqm
Click to expand...
Click to collapse
Hi Zaqm,
Sorry for my delayed reply. I appreciate your pointers. I will update this thread with my findings. Will keep you posted.
Thanks,
Karthik

Karthik.V.M said:
Hi Zaqm,
Sorry for my delayed reply. I appreciate your pointers. I will update this thread with my findings. Will keep you posted.
Thanks,
Karthik
Click to expand...
Click to collapse
Hi, did you solve the error? i face the exactly same problem but mine is xperia sp.

same problem without solve

Related

I can't flash any rom on my lg g2 d800

Hey guys
I have lg g2 d800
Root ✔ (using kingroot
Custome recovery ✔ (twrp latest version 3.0 or something)
But i try cm 12, 13 lineage 14.1
With cm only lg logo pops up and nothing happens
But with lineage
After lg logo
Black screen with small text right uo side
"(800) fast boot mod start
(800) udc_start"
Please help me out
What's the problem?;?
Please reply ASAP.
Xernod said:
Hey guys
I have lg g2 d800
Root (using kingroot
Custome recovery (twrp latest version 3.0 or something)
But i try cm 12, 13 lineage 14.1
With cm only lg logo pops up and nothing happens
But with lineage
After lg logo
Black screen with small text right uo side
"(800) fast boot mod start
(800) udc_start"
Please help me out
What's the problem?;?
Please reply ASAP.
Click to expand...
Click to collapse
can you tell me the steps you followed when flashing the rom?
These steps
psxda97 said:
can you tell me the steps you followed when flashing the rom?
Click to expand...
Click to collapse
1st backup my device
2nd whip all stuff (except storage)
3rd flash rom & gapps
Then reboot
Then that errors came n i can't boot my device
Please help ASAP.
Xernod said:
1st backup my device
2nd whip all stuff (except storage)
3rd flash rom & gapps
Then reboot
Then that errors came n i can't boot my device
Please help ASAP.
Click to expand...
Click to collapse
The best way is to flack stock image.
You can use this guide to go back to stock.
Then use this to root.
Then flash twrp using flashify.
Then flash the rom
Cheers!
psxda97 said:
The best way is to flack stock image.
You can use this guide to go back to stock.
Then use this to root.
Then flash twrp using flashify.
Then flash the rom
Cheers!
Click to expand...
Click to collapse
Dude u don't get it
My phone is onn
I fix it
Im on stock rom
Rooted
Got twrp
But still cant flash it
*Cant find md5 skipping md5*
This error come while flashing rom
Is it normal?
I just wanted to update my device to 5.1 lollipop so i can play walking dead s3
Xernod said:
Dude u don't get it
My phone is onn
I fix it
Im on stock rom
Rooted
Got twrp
But still cant flash it
*Cant find md5 skipping md5*
This error come while flashing rom
Is it normal?
I just wanted to update my device to 5.1 lollipop so i can play walking dead s3
Click to expand...
Click to collapse
The error probably because of any firmware issue. That's why I'm telling you to re-flash stock.
FYI kingroot is not a proper root method. There is a huge possibility that kingroot itself cause software failure.
psxda97 said:
the error probably because of any firmware issue. That's why i'm telling you to re-flash stock.
Fyi kingroot is not a proper root method. There is a huge possibility that kingroot itself cause software failure.
Click to expand...
Click to collapse
thanks buddy!!!
psxda97 said:
The error probably because of any firmware issue. That's why I'm telling you to re-flash stock.
FYI kingroot is not a proper root method. There is a huge possibility that kingroot itself cause software failure.
Click to expand...
Click to collapse
Hey
I followed ur all step but i still can't flash any rom same error!!
And now twrp recovery is not working!!

I somehow uninstalled my OS and no ROMs will Flash..

I somehow uninstalled my OS tonight when I was trying to flash AOSP's Oreo ROM. The flashing was unsuccessful (Error: 7) but I've noticed that no ROMs will flash at all.
I'm getting the same error for all ROMs despite them being suitable for my device:
Updater Process ended with ERROR: 7 Error Installing Zip File "ROM xx.x.x..."
Click to expand...
Click to collapse
Things I've done:
I've tried wiping the cache before I flash ROMS
I am on the most updated version of TWRP available for my device (3.0.2)
I've tried changing the updater-script as someone pointed out in another thread but it did not help
At this point, I just want a stable OS that will run on the phone.... Can someone help me? I just want to understand the error and what's causing it and install a ROM that would work...
Look for Mega Unbrick Guide to install a OS.
Sent from my Pixel 2 XL using Tapatalk
That's odd, because Error 7 is usually related to Updater-Script. Have you modified your model name in Updater-Script or just removed the line from it?
jklh said:
[*]I am on the most updated version of TWRP available for my device (3.0.2)
.
Click to expand...
Click to collapse
TWRP version is 3.1.1-1 now so you're not on the last.
Beside that, the question is what was on your device before :
- Did you already installed OOS 3.1.4 at one point?
- Didi you use the BLUpdater method to update the bootloader (logic ) ?
If no to the 2 questions above, that is the problem. So , you'll have to use the mega unbrick guide !
Kéno40 said:
TWRP version is 3.1.1-1 now so you're not on the last.
Beside that, the question is what was on your device before :
- Did you already installed OOS 3.1.4 at one point?
- Didi you use the BLUpdater method to update the bootloader (logic ) ?
If no to the 2 questions above, that is the problem. So , you'll have to use the mega unbrick guide !
Click to expand...
Click to collapse
I actually haven't done both. I tried flashing the OOS 3.1.4 full ROM but it did not work. I will update my TWRP to 3.1.1-1 and I'll try it again. I do have an update though, I am able to flash an old version of Android M OOS using "OnePlusOxygen_14_OTA_003_all_201510241934". If I am able to install this, maybe this isn't a bricked device? Any advice would be super useful, thanks in advance.
jklh said:
I actually haven't done both. I tried flashing the OOS 3.1.4 full ROM but it did not work. I will update my TWRP to 3.1.1-1 and I'll try it again. I do have an update though, I am able to flash an old version of Android M OOS using "OnePlusOxygen_14_OTA_003_all_201510241934". If I am able to install this, maybe this isn't a bricked device? Any advice would be super useful, thanks in advance.
Click to expand...
Click to collapse
If you haven't done any of the 2 things listed, then you tried to flash a "new Bootloader rom", you have no choice :
=> MEGA UNBRICK GUIDE

Bootloop Redmi Note 4X Need Help Please

Hello Everyone.
My model is Redmi Note 4X SD 3GB
I need Your Help Guys.
What i did before softbrick-bootloop:
1.Unloack bootloder - sucsess
2. Install ADB Drivers - sucsess
3. Install RedWolf Recovery - Sucsess
4. Install Magisk from RedWolf Recovery - sucsess
5. Reeboot the phone just Fine. update Magisk app and inside magisk manager i click on install Magisk
After that i Have bootloop
I can get in RedWolf Recovery mode and fastbootmode. Also i make Backup before i start to unlock the phone
What is the easyiest method i can try to fix my issue ?
Thanks in advance for your Help Guys
You have left out the most important detail - which ROM do you have on your phone?
DarthJabba9 said:
You have left out the most important detail - which ROM do you have on your phone?
Click to expand...
Click to collapse
Hi my ROM is latest Global Beta ROM - MIUI 9 7.12.21
Thanks for Help
lazer88 said:
Hi my ROM is latest Global Beta ROM - MIUI 9 7.12.21
Thanks for Help
Click to expand...
Click to collapse
You might need to install "lazyflasher" after installing custom recovery. Search this forum for "lazyflasher-no-verity-opt-encrypt.zip")
DarthJabba9 said:
You might need to install "lazyflasher" after installing custom recovery. Search this forum for "lazyflasher-no-verity-opt-encrypt.zip")
Click to expand...
Click to collapse
OK Thanks for answer. I fix the issue by reinstall Magisk. I use Red Wolf recovery. Only down side is ,that after each update need to root again.
I got Updates every single week (Global Beta ):good:
lazer88 said:
Only down side is ,that after each update need to root again.
Click to expand...
Click to collapse
Indeed, you will need to root again after any ROM update, regardless of recovery or Magisk/Supersu (unless the ROM is pre-rooted).

safetynet fail in stock miui rom

Safety net is failing in stock miui rom 10.3.8.0
The phone is not rooted,no custom recovery installed, just a plain old stock miui rom
Any help, please??
thisisarjun said:
Safety net is failing in stock miui rom 10.3.8.0
The phone is not rooted,no custom recovery installed, just a plain old stock miui rom
Any help, please??
Click to expand...
Click to collapse
I have exactly the same problem. I have not flashed anything, i only unlocked bootloader
DaveCZ said:
I have exactly the same problem. I have not flashed anything, i only unlocked bootloader
Click to expand...
Click to collapse
U will have to flash magisk in order to pass safety net. That's the only way...
thisisarjun said:
U will have to flash magisk in order to pass safety net. That's the only way...
Click to expand...
Click to collapse
How's that the only way? What's the cause? Anyway can you kindly provide me with a guide on how to install magisk on MIUI 11 A9?
Thanks.
Can you please try with the latest/different version of Safety Net checker app?
I have come across many posts like these where a small bug in the app can cause it to show as "FAIL".
DaveCZ said:
How's that the only way? What's the cause? Anyway can you kindly provide me with a guide on how to install magisk on MIUI 11 A9?
Thanks.
Click to expand...
Click to collapse
Install twrp and then install magisk canary apk and then install the canary magisk version from the app...
thisisarjun said:
Install twrp and then install magisk canary apk and then install the canary magisk version from the app...
Click to expand...
Click to collapse
Does it necessary have to be Magisk Canary? Also which TWRP do you recommend? The official one from TWRP.me or some other.
PS: The installation of TWRP is through cmd with command „fastboot flash recovery *file_name*” right?
Thanks for your help and time

IS there any custom ROM for the Samsung Galaxy j4 SM-j400M?

Hello! I've been trying to install a custom ROM on my SM-J400M for a while now and none worked, recently i tried installing Magisk on it and now it is in a bootloop . Is there any custom ROM compatible with my device? Or it is impossible to install a custom ROM on it? At the moment it seems like it is not even rootable...
Also the version of TWRP that i installed on my device says that it is an SM-J400F instead of a SM-J400M which is the actuall name of the model. Is that a problem? If so please tell me how to unistall it, i wasnt able to find any way to uninstal TWRP on a soft-bricked phone.
Thanks in Advance!
TheChadGamer said:
Hello! I've been trying to install a custom ROM on my SM-J400M for a while now and none worked, recently i tried installing Magisk on it and now it is in a bootloop . Is there any custom ROM compatible with my device? Or it is impossible to install a custom ROM on it? At the moment it seems like it is not even rootable...
Also the version of TWRP that i installed on my device says that it is an SM-J400F instead of a SM-J400M which is the actuall name of the model. Is that a problem? If so please tell me how to unistall it, i wasnt able to find any way to uninstal TWRP on a soft-bricked phone.
Thanks in Advance!
Click to expand...
Click to collapse
I've managed to un-brick my phone! Still found no way to install a custom ROM on it tho...
TheChadGamer said:
Hello! I've been trying to install a custom ROM on my SM-J400M for a while now and none worked, recently i tried installing Magisk on it and now it is in a bootloop . Is there any custom ROM compatible with my device? Or it is impossible to install a custom ROM on it? At the moment it seems like it is not even rootable...
Also the version of TWRP that i installed on my device says that it is an SM-J400F instead of a SM-J400M which is the actuall name of the model. Is that a problem? If so please tell me how to unistall it, i wasnt able to find any way to uninstal TWRP on a soft-bricked phone.
Thanks in Advance!
Click to expand...
Click to collapse
Is There Any Custom ROM for Samsung Galaxy J4?
YES!
Although, this is not specific Custom ROM for this device. This ROM is GSI (Generic System Image), and J4 is greatly support it! (Because it has Android Oreo out-of-box)
How to install it?
Easy, install TWRP from TwrpBuilder's Github, flash GSI Image as usual, flash magisk (if bootloop, flash this might help), and done!
Please note that this is GSI, bugs are widely open. But, as far as I use J4, the only bug I feel are Camera and MTP (fixed by using custom kernel)
Edit: For your TWRP, which version you install?
RedLine_27 said:
Is There Any Custom ROM for Samsung Galaxy J4?
YES!
Although, this is not specific Custom ROM for this device. This ROM is GSI (Generic System Image), and J4 is greatly support it! (Because it has Android Oreo out-of-box)
How to install it?
Easy, install TWRP from TwrpBuilder's Github, flash GSI Image as usual, flash magisk (if bootloop, flash this might help), and done!
Please note that this is GSI, bugs are widely open. But, as far as I use J4, the only bug I feel are Camera and MTP (fixed by using custom kernel)
Edit: For your TWRP, which version you install?
Click to expand...
Click to collapse
Thanks for the reply!
I recently discovered that my Samsung J4 is carrier locked so i don't think it is possible to flash a custom ROM in it...
I really tried many things since this post but in the end it would always get stuck in a boot loop and i would have to flash the official firmware in it to restore it.
What TWRP version did i use?
I honestly don't remember but it probably was a unofficial TWRP 3.2.3 or something similar, not sure if it was unofficial or not but it seemed to work...
Also, how would i go around getting a custom kernel to use on the device that would fix those problems?
Again, thanks for replying!
-TheChadGamer
TheChadGamer said:
Thanks for the reply!
I recently discovered that my Samsung J4 is carrier locked so i don't think it is possible to flash a custom ROM in it...
I really tried many things since this post but in the end it would always get stuck in a boot loop and i would have to flash the official firmware in it to restore it.
What TWRP version did i use?
I honestly don't remember but it probably was a unofficial TWRP 3.2.3 or something similar, not sure if it was unofficial or not but it seemed to work...
Also, how would i go around getting a custom kernel to use on the device that would fix those problems?
Again, thanks for replying!
-TheChadGamer
Click to expand...
Click to collapse
I use TWRP 3.2, and flashed MY builded custom kernel (Only for GSI!) https://forum.xda-developers.com/galaxy-j/development/kernel-redline-kernel-samsung-galaxy-j4-t4188199/
You need to update to Android 10 Stock then flash the A64 A/B GSI. And remember to flash dm verity disabler then flash Magisk. Magisk is important too.
For more info about this, feel free to join our telegram group : https://t.me/SamsungGalaxyJ4
In there we have detail instruction to flash GSI for J4. And other issue discussion
I can't write the steps here, because the steps is little complicated. Cheers!
Thank you for your help!
Soon i will be giving it another attempt then !
Sorry for taking so long, even the site had a upgrade!
I actually am using Linux now but i am dualbooting with Windows to be able to use Odin. I have just now entered the Telegram group,
NamaSayaHendra said:
In there we have detail instruction to flash GSI for J4.
Click to expand...
Click to collapse
Where can i find those instructions in the group? I have never used Telegram before so i don't know where to look for them

Categories

Resources