Hi guys. I have bricked my phone, I've been usin cm12 and once I rebooted and it was bricked.
It just boots in bootloader with the next code:
failed to validate boot image
Fastboot Reason: Fall-through from normal boot mode
I've tried to follow this guide to restore firmware to unbrick it but I can´t and I'm sure that I'm using a compatible firmware (for XT1511).
I have the following problems:
Code:
mfastboot oem fb_mode_set
returns
Code:
FAILED (remote failure)
then
Code:
mfastboot flash partition gpt.bin
returns
Code:
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.032s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Failed to write primary GPT.
(bootloader) Failed to program partition table
FAILED (remote failure)
So everything else fail to flash.
There's another way to unbrick my phone, shoul I try a different firmware?
Thank you
That's strange. If you have the bootloader unlocked you should be able to flash. Try another firmware, make sure it is your phone's original one. I guess you should make a total wipe before you flash. Make a backup in TWRP, and wipe everything.
I was having the exact same issue. All of the commands were failing with "remote failure". At some point (like, an hour ago) I did "mfastboot erase modemst1" and it worked. After that all other commands started working and I was able to restore my phone. I'm not sure what exactly made it work, but I'd say try erasing/flashing various things... I've had been trying for a few hours over quite a few days.
FegFeg said:
Hi guys. I have bricked my phone, I've been usin cm12 and once I rebooted and it was bricked.
It just boots in bootloader with the next code:
failed to validate boot image
Fastboot Reason: Fall-through from normal boot mode
I've tried to follow this guide to restore firmware to unbrick it but I can´t and I'm sure that I'm using a compatible firmware (for XT1511).
I have the following problems:
Code:
mfastboot oem fb_mode_set
returns
Code:
FAILED (remote failure)
then
Code:
mfastboot flash partition gpt.bin
returns
Code:
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.032s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Failed to write primary GPT.
(bootloader) Failed to program partition table
FAILED (remote failure)
So everything else fail to flash.
There's another way to unbrick my phone, shoul I try a different firmware?
Thank you
Click to expand...
Click to collapse
Related
Hello everyone!!
Whenever i try to install stock firmware on my xt-1022, i get following error in cmd-
C:\Users\stock>mfastboot flash partition
gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.023s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Failed to write primary GPT.
(bootloader) Failed to program partition table
FAILED (remote failure)
finished. total time: 10.484s
I am also facing same problem any knows the solution?
shubhm said:
Hello everyone!!
Whenever i try to install stock firmware on my xt-1022, i get following error in cmd-
C:\Users\stock>mfastboot flash partition
gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.023s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Failed to write primary GPT.
(bootloader) Failed to program partition table
FAILED (remote failure)
finished. total time: 10.484s
Click to expand...
Click to collapse
Are you trying to revert to 4.4.2 or 4.4.4?
Yeah
Sent from my MI PAD using Tapatalk
shubhm said:
Yeah
Sent from my MI PAD using Tapatalk
Click to expand...
Click to collapse
What yeah?
BTW you dont need to flash gpt.bin and motoboot.img.
nilanko said:
What yeah?
BTW you dont need to flash gpt.bin and motoboot.img.
Click to expand...
Click to collapse
People these days do not follow the quote "Look before you Leap"
Don't you feel the same @nilanko?
Rohitagni said:
People these days do not follow the quote "Look before you Leap"
Don't you feel the same @nilanko?
Click to expand...
Click to collapse
LOL yeah, I pheel the same
I tried flashing stock firmware without flashing these files.
But i was unable to flash it.
Since my phone was stuck at bootlogo.
So in the end i decided to flash whole firmware again along with these files.
Sent from my MI PAD using Tapatalk
I have the same problume Do you find any solution. Emmc corrupt may be
I have the same issue my Moto E 1st Gen stuck in AP fast boot mode and give same error like Failed to program partition table while flushing ROM. While i google I got to know that my EMMC is corrupt and there is no solution of this.
Moto Auto Flasher / Root Script By Jamesjerss
________________________________________________________________________________
Connect in Bootloader Mode (fastboot Mode)
FLASHING PARTITIONS...
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.088s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Failed to write primary GPT.
(bootloader) Failed to program partition table
FAILED (remote failure)
finished. total time: 5.622s
FLASHING BOOT LOADER..
target max-sparse-size: 256MB
error: cannot load 'Firmware\motoboot.img': No error
FLASHING BOOTLOADER..
target max-sparse-size: 256MB
error: cannot load 'Firmware\bootloader.img': No error
FLASHING LOGO...
target max-sparse-size: 256MB
sending 'logo' (247 KB)...
OKAY [ 0.094s]
writing 'logo'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition logo
FAILED (remote failure)
finished. total time: 5.114s
FLASHING BOOT...
target max-sparse-size: 256MB
error: cannot load 'Firmware\boot.img': No error
FLASHING RECOVERY...
target max-sparse-size: 256MB
error: cannot load 'Firmware\recovery.img': No error
FLASHING SYSTEM IMAGE IN MULTIPLE SECTIONS...
target max-sparse-size: 256MB
error: cannot load 'Firmware\system.img': No error
target max-sparse-size: 256MB
error: cannot load 'Firmware\system.img_sparsechunk.0': No error
target max-sparse-size: 256MB
error: cannot load 'Firmware\system.img_sparsechunk.1': No error
thanks
hey manoj am facing out the sameissue i can get to bootloader nothing will flash what you have done to your device
It worked for me
shubhm said:
Hello everyone!!
Whenever i try to install stock firmware on my xt-1022, i get following error in cmd-
C:\Users\stock>mfastboot flash partition
gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.023s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Failed to write primary GPT.
(bootloader) Failed to program partition table
FAILED (remote failure)
finished. total time: 10.484s
Click to expand...
Click to collapse
Start with the below commands then try from the first commands you are currently using:
Try with
mfastboot erase system
mfastboot erase gpt
Then start from
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot.exe flash system system.img_sparsechunk.0
mfastboot.exe flash system system.img_sparsechunk.1
mfastboot.exe flash system system.img_sparsechunk.2
mfastboot.exe flash system system.img_sparsechunk.3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
Above commands has been worked for me.
vivektiwari said:
Start with the below commands then try from the first commands you are currently using:
Try with
mfastboot erase system
mfastboot erase gpt
Then start from
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot.exe flash system system.img_sparsechunk.0
mfastboot.exe flash system system.img_sparsechunk.1
mfastboot.exe flash system system.img_sparsechunk.2
mfastboot.exe flash system system.img_sparsechunk.3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
Above commands has been worked for me.
Click to expand...
Click to collapse
Same issue - Im getting PERMISSION DENIED error to all of those commands.
oem_locked once rebooted - I cannot enter in system for there´s none bootable to unlock it in developer menu.
ADB menu for booting img files doesnt work either.
Any tips?
Daniel Nascimento said:
Same issue - Im getting PERMISSION DENIED error to all of those commands.
oem_locked once rebooted - I cannot enter in system for there´s none bootable to unlock it in developer menu.
ADB menu for booting img files doesnt work either.
Any tips?
Click to expand...
Click to collapse
Can you go to twrp??
Sent from my AO5510 using Tapatalk
Daniel Nascimento said:
Same issue - Im getting PERMISSION DENIED error to all of those commands.
oem_locked once rebooted - I cannot enter in system for there´s none bootable to unlock it in developer menu.
ADB menu for booting img files doesnt work either.
Any tips?
Click to expand...
Click to collapse
Try to install the LAST official firmware. It does where you downgrade gpt.bin
HeaDekBatHblu said:
Try to install the LAST official firmware. It does where you downgrade gpt.bin
Click to expand...
Click to collapse
You can flash gpt.bin via adb command only(not fastboot)
dd if=/sdcard/gpt.bin of=/dev/block/mmcblk0 bs=512 count=34
Sent from my AO5510 using Tapatalk
Rajendran Rasa said:
You can flash gpt.bin via adb command only(not fastboot)
dd if=/sdcard/gpt.bin of=/dev/block/mmcblk0 bs=512 count=34
Click to expand...
Click to collapse
No. mfastboot flash partition gpt.bin
HeaDekBatHblu said:
No. mfastboot flash partition gpt.bin
Click to expand...
Click to collapse
If fastboot method failed then try ADB method
Rajendran Rasa said:
If fastboot method failed then try ADB method
Click to expand...
Click to collapse
Fastboot method failed only in case, if you flash gpt.bin from previous version frimvare. Eg frimvare 5.1.1 and you flash gpt from 4.4.4 or 5.1 previous build
Help me please . I have bricked my phone, I've been usin cm12 and once I rebooted and it was bricked. :crying:
It just boots in bootloader with the next code:
failed to validate boot image
Fastboot Reason: Fall-through from normal boot mode
I've tried to restore firmware to unbrick it but I can´t and I'm sure that I'm using a compatible firmware (for XT1511).
I have the following problems:
Code:
mfastboot oem fb_mode_set
returns
Code:
FAILED (remote failure)
then
Code:
mfastboot flash partition gpt.bin
returns
Code:
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.032s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Failed to write primary GPT.
(bootloader) Failed to program partition table
FAILED (remote failure)
So everything else fail to flash
I have tried with different firware but all is tthe same
Pls help me
Messed up upgrading LineageOS...
The long story:
LineageOS 16.0 came out
reboot into recovery
strangely TWRP didn't ask me for decryption password as usual
whatever, flash anyway
first reboot
LineageOS: decryption unsuccessful - the password you entered is correct, but unfortunately your data is corrupt.png
wtf
maybe I can just backup /data in twrp, format /data to disable encryption, then restore it back
followed https[colon]//jomo[dot]tv/android/remove-android-device-encryption
fastboot.exe: (bootloader) flash permission denied.png
Long story short, something strange happened with full-disk encryption, so I decided to format /data and now I want to flash a backup of /data made from `adb pull /dev/block/<data>`.
Flashing with `fastboot flash userdata data.img` always ends up with "(bootloader) flash permission denied".
Console output:
Code:
$ fastboot flash userdata data.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:userdata: not found
target reported max download size of 536870912 bytes
Invalid sparse file format at header magic
sending sparse 'userdata' 1/110 (524285 KB)...
OKAY [ 21.066s]
writing 'userdata' 1/110...
(bootloader) flash permission denied
FAILED (remote failure)
finished. total time: 21.088s
Flashing recovery finishes with no error. Formatting userdata to ext4 fails with permission denied. However, erasing userdata is successful.
Ideas...? Can qualcomm edl be used to achieve this?
Any help is appreciated
Turns out adb CAN push raw images to block device as simple as `adb push data.img /dev/block/<device name>`. Though not a direct answer to the original post, the problem was solved for me.
Pardon my intrusion
Hi everyone. I am trying to wipe my pixel 6, as I want to install a custom rom.
When trying to wipe, this happens.
fastboot -w
Erase successful, but not automatically formatting.
File system type raw not supported.
Erase successful, but not automatically formatting.
Can't determine partition type.
FAILED (remote: variable (partition-type:cache) not found)
erasing 'userdata'...
OKAY [ 0.191s]
erasing 'cache'...
FAILED (remote: partition not found)
finished. total time: 0.196s
When trying to flash a bootloader, It gives me this error:
sending 'bootloader' (11506 KB)...
OKAY [ 0.269s]
writing 'bootloader'...
(bootloader) Flashing pack version slider-1.2-8318357
(bootloader) flashing platform gs101
(bootloader) Validating partition ufs
(bootloader) Validating partition ufs
(bootloader) Validating partition partition:0
(bootloader) Validating partition partition:1
(bootloader) Validating partition partition:2
(bootloader) Validating partition partition:3
(bootloader) Validating partition bl1_a
(bootloader) Validating partition pbl_a
(bootloader) failed: invalid rollback counter
(bootloader) image(pbl_a): rejected, fails validation
(bootloader) failed to validate partition (pbl_a)
FAILED (remote: failed to flash partition (bootloader))
finished. total time: 0.347s
I believe these two errors are connected, but I am not sure why this is happening. I am aware google did something regarding preventing bootloader rollback with android 13, and I recall accidentally installing it OTA once and having to rollback to 12.
You flashed Android 13 at some point (the "invalid rollback counter" error). Once Android 13 is installed you cannot install older bootloaders. Period.
The other error? Raw format means no formatting at all. In essence you have a blank drive. You may want to try restoring using Google's flash tool prior to installing your chosen ROM.
I have flashed (fastboot method) twrp.img to my locked device and now I'm stuck at boot. At first I was getting boot loop and "corrupt" message (g.co/ABH). Luckily, I could still access fastboot mode. By looking around, I managed to remedy that a bit by:
Code:
$ wget https://dlcdnets.asus.com/pub/ASUS/ZenFone/AI2202/UL-ASUS_AI2202-ASUS-33.0804.2060.100-1.1.1-2302-user.zip
$ unzip *zip
$ payload_dumper payload.bin
$ for i in boot dtbo vendor_boot vbmeta vbmeta_system
do
fastboot flash $i output/$i.img
done
$ fastboot reboot fastboot
# these will fail due to resizing partitions on a locked device
$ for i in system system_ext product odm vendor
do
fastboot flash $i output/$i.img
done
Resizing partition ... (Can't in locked state)
Now I get bootloader, fastbootd, and stock recovery. Wiping/resetting in recovery mode almost succeeds:
Code:
misc_vab_msg.version: 0x2
misc_vab_msg.magic: ...
misc_vag_msg.merge_status: 0x0
misc_vag_msg.source_slot: 0x1
-- Wiping data...
E:Open failed: /metadata/ota: No such file or directory
-- Clean boot sound files...
Formatting /data...
Formatting /metadata...
-- Data wipe complete.
At this point, restarting the system results in the device turning itself off a few seconds after the ASUS logo.
My phone is on stock firmware 33.0804.2060.100 (android 13). Could someone kindly help me and tell me what to do next?
Here's all the info I can get now:
Code:
$ fastboot oem device-info
(bootloader) Verity mode: false
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: true
(bootloader) Device authorized: false
(bootloader) Device authorized2: false
(bootloader) WaterMask unlock: N
(bootloader) XBL:
(bootloader) ABL: 0.0.029.0-WW-user
(bootloader) SSN: ...
(bootloader) ISN: ...
(bootloader) IMEI: ...
(bootloader) IMEI2: ...
(bootloader) CID: ASUS
(bootloader) COUNTRY: EU
(bootloader) Project: DAVINCI
(bootloader) DT ID: 66
(bootloader) SB: Y
(bootloader) SBNR: Y
(bootloader) DDR Manufacturer ID: 1
(bootloader) DDR Device Type: 8
(bootloader) TotalDMCounter: 0
(bootloader) DMCounter: 0
(bootloader) SlotARetryCounter: 0
(bootloader) SlotAUnbootableCounter: 0
(bootloader) SlotBRetryCounter: 0
(bootloader) SlotBUnbootableCounter: 0
(bootloader) BOOT_COUNT: 0
(bootloader) LOCK_COUNT: 0
(bootloader) Check_APDP: 1
(bootloader) rawdump_en: false
(bootloader) force start logcat-asdf: false
(bootloader) Current Slot: a
(bootloader) Slot_a bootable: Bootable
(bootloader) AVB Verity: Enable
(bootloader) Verify vbmeta ret: 0
(bootloader) ABL_FTM: FALSE
(bootloader) UART-ON Status: false
I have a feeling that I'm not using the right image for this purpose. I don't know how to get my hands on a RAW image. I keep reading about some android beta page, but just can't find a link for Zenfone 9.
You dont need any raw fw, flash stock recovery and reboot:
fastboot flash recovery recovery.img
Download Data package from February 25th.
Size of the data package: 100 MB. Free transfer of up to 6 GB of photos, videos and documents. Send large files via email or a link to share. No registration, no ads, just simple file sharing!
filetransfer.io
Recovery from UL-ASUS_AI2202-ASUS-33.0804.2060.100
@NisseGurra thanks for your input. I checked the md5sum of your recovery image and the one I extracted from the payload.bin. They are indeed the same. I have flashed it alright:
Code:
$ fastboot flash recovery recovery.img
Sending 'recovery' (102400 KB) OKAY [ 3.396s]
Writing 'recovery' OKAY [ 0.162s]
Finished. Total time: 3.570s
Now, what should I do? reboot to bootloader -> recovery? then what?
Because still letting the device boot normally will lead to its shutdown in 20 seconds.
lordbit said:
@NisseGurra thanks for your input. I checked the md5sum of your recovery image and the one I extracted from the payload.bin. They are indeed the same. I have flashed it alright:
Code:
$ fastboot flash recovery recovery.img
Sending 'recovery' (102400 KB) OKAY [ 3.396s]
Writing 'recovery' OKAY [ 0.162s]
Finished. Total time: 3.570s
Now, what should I do? reboot to bootloader -> recovery? then what?
Because still letting the device boot normally will lead to its shutdown in 20 seconds.
Click to expand...
Click to collapse
Seems something got messed up.
You have some options: find an recovery that have adb sideload support: flash the stock fw from it,
adb sideload xxx.zip
Option 2
Repack the stock fw (use payload dumper to extract all img), create an folder with all extracted img and add adb.exe, fastboot.exe, AdbWinApi.dll, AdbWinUsbApi.dll and install.bat (attached, rename to .bat)
Connect phone, enter fastboot and click on the bat file, it should install full rom.
Thanks! I will try it.
I tried your second method. Most of the images got flashed alright, except these ones:
Code:
Sending 'odm' (1248 KB) OKAY [ 0.055s]
Writing 'odm' FAILED (remote: '(odm_a) No such partition')
fastboot: error: Command failed
Sending sparse 'product' 1/4 (524236 KB) OKAY [ 19.285s]
Writing 'product' FAILED (remote: 'Partition not found')
fastboot: error: Command failed
Sending sparse 'system' 1/7 (524232 KB) OKAY [ 19.632s]
Writing 'system' FAILED (remote: 'Partition not found')
fastboot: error: Command failed
Sending 'system_ext' (386600 KB) OKAY [ 14.180s]
Writing 'system_ext' FAILED (remote: '(system_ext_a) No such partition')
fastboot: error: Command failed
Sending sparse 'vendor' 1/3 (524176 KB) OKAY [ 18.675s]
Writing 'vendor' FAILED (remote: 'Partition not found')
fastboot: error: Command failed
Sending 'vendor_dlkm' (73448 KB) OKAY [ 2.577s]
Writing 'vendor_dlkm' FAILED (remote: '(vendor_dlkm_a) No such partition')
fastboot: error: Command failed
I think those should be flashed after a
Code:
fastboot reboot fastboot
But in that case, the "flash" command will try to resize the partitions and I get an error that says "Resizing in a locked state of the device is not possible". I am paraphrasing here.
Option 3, install https://forum.xda-developers.com/t/paranoid-android-topaz-alpha-1-asus-zenfone-9.4557631/
Use the suggested image way. It install new recovery, if i rember correct it has adb support
Reboot recovery and use option2
@NisseGurra sorry if my question seems dumb. But I have not unlocked my bootloader (when I had the chance). Do these recovery.img methods with adb work for me?
lordbit said:
@NisseGurra sorry if my question seems dumb. But I have not unlocked my bootloader (when I had the chance). Do these recovery.img methods with adb work for me?
Click to expand...
Click to collapse
If you bootloader is locked so you cant flash anything not signed by Asus, no twrp etc, So strange it got messed up
Yeah it's weird that you could flash anything at all, that isn't signed
anyway, it seems like you where able to flash the asus recovery?
can you boot it?
If so try booting it and tipe "adb reboot sideload" if everything goes well it should reboot and allow you to sideload unmodified (asus signed) .zips, do this
Also consider data wipe from recovery
Darkmasterhk said:
Yeah it's weird that you could flash anything at all, that isn't signed
anyway, it seems like you where able to flash the asus recovery?
can you boot it?
If so try booting it and tipe "adb reboot sideload" if everything goes well it should reboot and allow you to sideload unmodified (asus signed) .zips, do this
Also consider data wipe from recovery
Click to expand...
Click to collapse
1. I pressed power button + vol-up, ended up in "bootloader" menu.
2. Chose "Recovery mode"
3. At this point, on my laptop, I executed "adb reboot sideload" as you suggested.
However, I am prompted with an error that this device is unauthorized.
Code:
adb devices
List of devices attached
N...P unauthorized
How can I "authorize" this? When I had access to fully-booted system, I just needed to confirm some dialogue. Here there is no question.
Aww that's bad, I don't know how to allow a device from recovery, sorry.
Usually, if it worked under Android itself, it works in recovery as well.
Just to make sure, it worked under Android, right?
I assume u use a Linux system and I somehow had trouble under Linux, with adb and authorization
Yes, "adb" did work between my Linux system and phone before it gets stuck in this mode.
I managed to fix the problem by using a RAW image from romdevelopers. Extracted the content of the zip file and executed "flashall_AFT.cmd" on a Windows machine with the right drivers installed.
For the record, these posts [1][2] are pretty close to what I did.
Thank you both for your support.
EDIT:
I converted the "flashall_AFT.cmd' to "flashall_AFT.sh", so I could be able to achieve the same on a Linux system. USE IT AT YOUR OWN RISK.