[Q] Can't flash with fastboot[Solved] - Xperia Z1 Compact Q&A, Help & Troubleshooting

Hi everyone,
i rooted my z1c, backuped TA, unlocked bootloader and recovered TA. The firmware is .157 since it arrived me.
But everytime i try to flash a kernel or recovery in fastboot i gives mit this error message.
(flashing kernel for example)
Code:
./fastboot flash boot ../../LS-KK-MileStone-3.2-amami/boot.img
sending 'boot' (11352 KB)...
OKAY [ 0.358s]
writing 'boot'...
FAILED (remote: Command not allowed)
finished. total time: 0.361s
I am on archlinux with newest android sdk.
Is there something wrong with recoverying the TA partion after unlock? Or needs fastboot more parameters?
I banged my head for this since hours... Got someone a idea.

You've probably relocked whist restoring the TA.

XperienceD said:
You've probably relocked whist restoring the TA.
Click to expand...
Click to collapse
That explaaaaaaaaaains everything. Thanks ^^. Now verything is working.

Related

[Q] stuck on htc quietly brilliant screen

Hello everyone, I made a mistake (I am a big noob) and I don't know how to fix it.
I wanted to have fresh phone (real factory reset) to back-up and start over, so in recovery mode (interim one from paul) I wiped data, cache partition and I also formated cache,data, sdcard and system.
Now, I am stuck on htc quietly brilliant screen, I have access to hboot, recovery etc. I have been looking for a solution for 2 days without succes, I am sad.
Can someone help please ? thanks guys.
You wiped the system so there is no android on there!
Eirher download a new Rom and flash or relock bootloader and use ruu
Sent from my HTC One X using xda premium
Thanks sir, I'll try.
sotirios said:
Thanks sir, what can I do ? Which part I did wrong ? thanks again
Click to expand...
Click to collapse
The part you did wrong: It's true that you wipe (dalvik) cache and data before flashing a custom rom. That will perform a factory reset. Wiping system means deleting android itself, as stated before. That's what you did wrong.
Now, we can't know why you wanted to start all over again, but assuming you already flashed a custom recovery, you wanted to install a custom rom. Just go ahaed and do so, your problem will be fixed.
thanks, but I can't because this custom recovery doesn't allow me to mount usb and i have no rom on my sd card
sotirios said:
thanks, but I can't because this custom recovery doesn't allow me to mount usb and i have no rom on my sd card
Click to expand...
Click to collapse
That's not actually a problem. I assume you aleady have the android SDK set up, if you don't, please use the search function or google. try the following command while in the platform-tools folder:
adb push path/to/custom/rom /sdcard
or for linux/mac:
sudo ./adb push path/to/custom/rom /sdcard
This will copy the file to the root of your sdcard, so you can flash it. Good luck!
P.S. there's a thanks button, too
dobbi10k said:
That's not actually a problem. I assume you aleady have the android SDK set up, if you don't, please use the search function or google. try the following command while in the platform-tools folder:
adb push pfad/zu/einer/custom/rom /sdcard
or for linux/mac:
sudo ./adb push pfad/zu/einer/custom/rom /sdcard
This will copy the file to the root of your sdcard, so you can flash it. Good luck!
P.S. there's a thanks button, too
Click to expand...
Click to collapse
That wont work as ADB does not work on any of the custom recoveries at the moment. Im stuck in the same situtation at the mo and as phone is branded cant get the RUU to reflash so just playing the waiting game until either ADB/USB mount available in recovery or S-Off available.
See my thread in development thread
http://forum.xda-developers.com/showthread.php?t=1599748
Sent from my HTC One X using XDA
Hi lee james, thanks, I followed your thread but I don't know how to install ruu after relocking my bootloader, can you help me please ? thx again.
"Eirher download a new Rom and flash"
I can't flash, my ssd is wiped too and i can't mount usb with this custom recovery
"That's not actually a problem. I assume you aleady have the android SDK set up, if you don't, please use the search function or google. try the following command while in the platform-tools folder:
adb push pfad/zu/einer/custom/rom /sdcard"
It doesn't work, it doesn't find my device, even with the adb devices command
sotirios said:
Hi lee james, thanks, I followed your thread but I don't know how to install ruu after relocking my bootloader, can you help me please ? thx again.
Click to expand...
Click to collapse
Go to development thread then shipped ruu ans download specific to ur phone. Follow and Job done
Sent from my HTC One X using XDA
Same problem here! I unfortunatly erase everything from my one x and i can't restore anything!! How can i solve it?? My device is unlocked but stay in s-on mode! Why? From fastboot i can't flash anything! Help!!
Hello folks, problem solved by following leejames instructions :
flash stock recovery
relock bootloader
use ruu
I'm so happy. Thanks.
Mee too!! Thanks a lot!! I'm very very very very very very very very very very very very very very happy!!
1 flash stock recovery
2 relock bootloader
3 use ruu
It works fine!!
I do exactly the same thing , but half way through the RUU process it gives me an error saying i need the correct RUU. anyone can help ?
All you have to do is grab an RUU, run it. now on your pc search for %temp%in there locate ROM.zip. Extract the boot.img and system.img. and push them thru fastboot
Code:
fastboot flash boot boot_signed.img
Code:
fastboot flash system system.img
Code:
adb reboot
i did that , but i get this error:
C:\ADB>fastboot flash boot boot_signed.img
sending 'boot' (4278 KB)...
OKAY [ 0.741s]
writing 'boot'...
FAILED (remote: not allowed)
finished. total time: 0.942s
C:\ADB>fastboot flash system system.img
sending 'system' (979509 KB)...
FAILED (remote: (00000008))
finished. total time: 0.001s
I used the latest RUU uploaded 3 days ago in the filefactory folder.
mahdibassam said:
i did that , but i get this error:
C:\ADB>fastboot flash boot boot_signed.img
sending 'boot' (4278 KB)...
OKAY [ 0.741s]
writing 'boot'...
FAILED (remote: not allowed)
finished. total time: 0.942s
C:\ADB>fastboot flash system system.img
sending 'system' (979509 KB)...
FAILED (remote: (00000008))
finished. total time: 0.001s
I used the latest RUU uploaded 3 days ago in the filefactory folder.
Click to expand...
Click to collapse
Is your bootloader unlocked?
When I do it with an unlocked bootloader the error changes to this:
C:\ADB>fastboot flash boot boot_signed.img
sending 'boot' (4278 KB)...
OKAY [ 0.741s]
writing 'boot'...
FAILED (remote: not allowed)
finished. total time: 0.942s
C:\ADB>fastboot flash system system.img
sending 'system' (979509 KB)...
FAILED (remote: (00000008))
finished. total time: 0.001s
Nobody can help me?!! ((

Can not downgrade pls help

HTC Driod Incredible 2 with 2.3.4
Can not downgrade the system to 0097 instead of the 0098
failed message
FAILED (remote: 43 unknown fail
(before root)
failed message
FAILED (remote: 99 unknown fail
(after root)
HBOOT still 0098
s-on still
orginal message
C:\vwhk-12102011-c>fastboot oem rebootRUU
< waiting for device >
... OKAY [ 0.156s]
finished. total time: 0.172s
C:\vwhk-12102011-c>fastboot erase cache
< waiting for device >
erasing 'cache'... OKAY [ 0.234s]
finished. total time: 0.234s
C:\vwhk-12102011-c>fastboot flash zip RUU_Vivo_W_Gingerbread_S_VERIZON_WWE_2.18.
605.3_Radio_1.09.01.0622_NV_VZW1.92_release_199487_signed.zip
sending 'zip' (292817 KB)... OKAY [ 50.188s]
writing 'zip'... INFOadopting the signature contained in this i
mage...
INFOzip header checking...
INFOzip info parsing...
FAILED (remote: 99 unknown fail)
finished. total time: 55.969s
C:\vwhk-12102011-c>fastboot reboot
rebooting...
finished. total time: 0.156s
C:\vwhk-12102011-c>
pls help
If you already have Fastboot enabled on your computer then you need to make sure Fastboot is enabled via Bootloader.
You can test this by rebooting into Bootloader, enabling Fastboot, and then typing into your console
fastboot devices
If your device shows up you are good to go.
Then reboot into system and start attn script. It works a charm!
Oh, also, make sure the proper boot image is located within your ADB environment (unless you have a global setup)
Good luck.
Did you follow this:
http://forum.xda-developers.com/showthread.php?t=1298990
I just used it myself. The only problem I had was not putting usb in debug mode.
Once I did that it work flawlessly.
I was doing this this weekend and ran into problems because I had unlocked the bootloader using HTCdev. I was also using a long USB cable and ran into what I think was signal degradation causing some commands in that script to fail.
Once I relocked the bootloader and switched to the stock cable that came with the phone the downgrade script worked perfectly.
phufford said:
I was doing this this weekend and ran into problems because I had unlocked the bootloader using HTCdev. I was also using a long USB cable and ran into what I think was signal degradation causing some commands in that script to fail.
Once I relocked the bootloader and switched to the stock cable that came with the phone the downgrade script worked perfectly.
Click to expand...
Click to collapse
U screwed yourself with HTC unlock I believe.. relock it then try again
Sent from my Incredible 2 using Tapatalk 2
faehsemc said:
U screwed yourself with HTC unlock I believe.. relock it then try again
Sent from my Incredible 2 using Tapatalk 2
Click to expand...
Click to collapse
U would be correct there sir. Relock the bootloader and then run the downgrade tool.
Sent from my Incredible 2 using XDA
+1 on the relocking tip, relock and then everything will work, revolution tool relocks it if you were wondering
I ran into the same issue and relocked the bootloader with "fastboot oem lock" command and then i was able to downgrade properly. Leasson learned. Thanks everybody for their replies.
if all fails, just copy RUU...zip file to sdcard, rename to PG32IMG.zip and do upgrade. It will work without problems
2 yrs to late haha
Sent from my One using xda app-developers app
chillybean said:
2 yrs to late haha
Sent from my One using xda app-developers app
Click to expand...
Click to collapse
There are a lot of noobs lol
Sent from my VS840 4G using Tapatalk

fastboot cannot flash

I am unable to flash either a recovery or boot. I get reply with devices , phone is unlocked.
Any idea how to overcome error?
C:\HTC>fastboot flash boot boot.img
sending 'boot' (5106 KB)... OKAY [ 0.618s]
writing 'boot'... INFOFormat partition LNX done
FAILED (remote: err = 0x30000)
finished. total time: 7.429s
C:\HTC>fastboot erase cache
erasing 'cache'... FAILED (remote: err = 0x19000008)
finished. total time: 0.080s
Thanks Fish
Hmm , tried on a different pc same error.
eventually wouldnt boot to recovery.
then bootloader said locked.
factory reset, now unlocked.
tried again still no flash.
left overnight, plugged into usb, flash erase worked and now flashed boot.img
fails on set up wizard stopped working.
will fully charge the try to install sebtinel rom from recovery.
Thread #3
Sent from my HTC One X using XDA Premium 4 mobile app

[Q] How to completely restore/un-root/s-on

So, I've no idea how to do this (noob here). I'm on the VZW HTC One. It's rooted, S-OFF, locked (relocked) boot loader, HTC Dev build. What I'd really, really like to do is completely (and I mean completely), relock/reset the phone. I would use recovery, but I can't boot into recovery. After a bit, it restarts and goes into the regular boot. I've tried to flash the default/stock recovery image, but every time I try I get this:
Code:
sending 'recovery' (16383 KB)...
OKAY [ 2.167s]
writing 'recovery'...
FAILED (remote: not allowed)
finished. total time: 2.201s
I've got USB Debugging on, so I've got no idea what I'm doing wrong here. I've spent a lot of time looking, but I couldn't find anything that actually fit what I needed.
ingem said:
So, I've no idea how to do this (noob here). I'm on the VZW HTC One. It's rooted, S-OFF, locked (relocked) boot loader, HTC Dev build. What I'd really, really like to do is completely (and I mean completely), relock/reset the phone. I would use recovery, but I can't boot into recovery. After a bit, it restarts and goes into the regular boot. I've tried to flash the default/stock recovery image, but every time I try I get this:
Code:
sending 'recovery' (16383 KB)...
OKAY [ 2.167s]
writing 'recovery'...
FAILED (remote: not allowed)
finished. total time: 2.201s
I've got USB Debugging on, so I've got no idea what I'm doing wrong here. I've spent a lot of time looking, but I couldn't find anything that actually fit what I needed.
Click to expand...
Click to collapse
First you need to unlock the bootloader to be able to flash items.
Check it out here: http://forum.xda-developers.com/showthread.php?t=2470340
Then follow the instructions listed here: http://forum.xda-developers.com/showthread.php?t=2475216

Can't flash TWRP - remote failure (SOLVED)

Hi guys!
I hope you can help me, since I've looked everywhere but can only find people with similar but not the exact same problem.
I tried flashing TWRP in order to migrate to a custom ROM. I am currently running official 7.1.1.
When I try to flash twrp (tried several versions) the command window shows me this:
c:\adb>fastboot flash recovery twrp.img
target max-sparse-size: 256MB
sending 'recovery' (14522 KB)...
OKAY [ 0.049s]
writing 'recovery'...
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.068s
I tried using Moto fastboot as well but with the same result. I'd really appreciate your help. Please note, that I am not a pro like most you guys so I might have follow-up questions
Are you sure you flashed the right image? And that your bootloader is unlocked?
And what happens if you use
Code:
fastboot boot twrp.img
?
Artim_96 said:
Are you sure you flashed the right image? And that your bootloader is unlocked?
And what happens if you use
Code:
fastboot boot twrp.img
?
Click to expand...
Click to collapse
Yes, I am sure that I am using the right image. I tried several, always checked that they were for addison.
I also unlocked the bootloader in developer options - although now that you mention it: in the fastboot screen it still says oem_locked. So maybe that is the problem?
c:\adb>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 0.047s]
booting...
(bootloader) permission denied!
FAILED (remote failure)
finished. total time: 0.054s
Okay, I managed to unlock the bootloader with the unlock key I got from Motorola.
Now when I try to flash it says:
c:\adb>fastboot flash recovery twrp.img
target max-sparse-size: 256MB
sending 'recovery' (14522 KB)...
OKAY [ 0.049s]
writing 'recovery'...
(bootloader) Image not signed or corrupt
OKAY [ 0.280s]
finished. total time: 0.330s
Come ooooon
ischariot_pasadelski said:
Are you sure you flashed the right image? And that your bootloader is unlocked?
And what happens if you use
Yes, I am sure that I am using the right image. I tried several, always checked that they were for addison.
I also unlocked the bootloader in developer options - although now that you mention it: in the fastboot screen it still says oem_locked. So maybe that is the problem?
c:\adb>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 0.047s]
booting...
(bootloader) permission denied!
FAILED (remote failure)
finished. total time: 0.054s
Click to expand...
Click to collapse
Oh Jesus... Bootloader unlock is not just the option in Dev settings. Google it, you'll find a website from Motorola that guides you through the process and provides you with everything necessary
Yes, I did that by now as I said in the post before. Sorry, but I'm a beginner
Now it says that the image is not signed or corrupt. IDK what to do anymore.
Booting in TWRP works but when flashing Lineage from SD card I get the error:
recv error on unevent
and
failed to mount data.
I wiped everything using TWRP and I also tried to use another version of TWRP, so a corrupted file can't be the problem.
I figured it out.
I had to restore the file system by only checking the "System" box when wiping with TPWR - just in case anybody else has the same problems.
So a factory data reset solve the problem? Having your first issue with moto e5 cricket and you can't unlock three bootloader
Artim_96 said:
Oh Jesus... Bootloader unlock is not just the option in Dev settings. Google it, you'll find a website from Motorola that guides you through the process and provides you with everything necessary
Click to expand...
Click to collapse
well, i had it unlocked via the settingsbutton and after read this here , via the website where you can get the 20 bits code, but it is the same result with a code that is the same as the adb devices code, just as before! Only thing that is changed is a warning when you starts the phone up.
ischariot_pasadelski said:
Yes, I did that by now as I said in the post before. Sorry, but I'm a beginner
Now it says that the image is not signed or corrupt. IDK what to do anymore.
Booting in TWRP works but when flashing Lineage from SD card I get the error:
recv error on unevent
and
failed to mount data.
I wiped everything using TWRP and I also tried to use another version of TWRP, so a corrupted file can't be the problem.
Click to expand...
Click to collapse
Can you tell me how you got the phone twrped, pls?

Categories

Resources