adb question - One (M8) Q&A, Help & Troubleshooting

im in adb in cmd prompt im at the stage where my htc one m8 as the grey htc logo ive renamed the stock file to firmware.zip as per instructions when i type fastboot flash zip firmware .zip i get this message target reported max download size of 1830711296 bytes what am i missing with this im on windows 8.1. any help would be great ive been looking and reading for hours

Related

[TUT][Win/Mac/Linux] Back to stock using RUU and fastboot

I had to restore back to stock and I do not use windows. I was looking for threads but all of them needed windows. So, I am making a tutorial on how to go back to stock on Win/Mac/Linux.
Note - I used my netbook which runs arch linux to complete these steps. I have not tried any other os but it should work.
Requirements ​On all systems -
Usb drivers (HTC sync provides them on windows. They are preinstalled on linux/mac)
Fastboot
RUU for your device
On linux/mac you need wine. Get wine from your distro on linux and for mac you need to build it manually. Afaik there a few programmes to provide prebuilt wine on mac.
If you don't have wine, get the rom.zip for your RUU from someone here or a windows machine.
Acknowledgements​ckpv5 for his tutorial (http://forum.xda-developers.com/showthread.php?t=1705484)
mirGantrophy for his tutorial on how to do it on linux (http://forum.xda-developers.com/showthread.php?t=1974272) Check his thread for pics and screenies.
eLukas for teaching me how to extract rom.zip (http://forum.xda-developers.com/showthread.php?t=1729898)
CafeKampuchia for his tutorial (http://forum.xda-developers.com/showthread.php?t=1706070)
Some other forum(forgot its name) for telling me about a command (fastboot oem rebootRUU)
Let's start​
Download the ruu for your device from ruu.androidfiles.org (gsm one v = primoU, cdma = primoC and dual sim = primoDS)
Extract the rom.zip
Linux - Use elukas' script
Mac - get the rom.zip from somewhere. Sorry.
Windows - Run the ruu. Search for temporary folder and copy the rom.zip to somewhere safe.
Extract the rom.zip. We need to flash recovery and kernel(boot_signed.img) from this folder.
Reboot phone to bootloader. Connect it to your system. Make sure fastboot detects the phone.
For recovery
Code:
sudo fastboot flash recovery recovery_signed.img
For kernel
Code:
sudo fastboot flash boot boot_signed.img
Code:
sudo fastboot erase cache
Now we flash the Ruu
Code:
sudo fastboot oem rebootRUU
You may get an error related to hboot. Flash the zip again.
I hope it works for you. If you're on windows, you don't need to type sudo before fastboot.
This worked well, did it in litterally 4 minutes :good:
Is there anything I should add to it?
Umm getting the Ruu was a bit confusing, but i figured it out. Primo....
Thanks, I'll add that the gsm version is primou ,cdma is primoc and primods is dual sim.
arnavk007 said:
Is there anything I should add to it?
Click to expand...
Click to collapse
where do i get mac zip?
vialsofliquid said:
where do i get mac zip?
Click to expand...
Click to collapse
The zip varies from device to device, so you need to download the RUU for your device and then extract the rom.zip from it.
Hi.. thank you for the guide..
actually I am still collecting information in case I need to flash back the stock rom,
but the thing that I want to ask is, do you know where I can get the stock kernel?
Is it also extracted from the windows ruu?
thanks in advance for your reply
-Rif- said:
Hi.. thank you for the guide..
actually I am still collecting information in case I need to flash back the stock rom,
but the thing that I want to ask is, do you know where I can get the stock kernel?
Is it also extracted from the windows ruu?
thanks in advance for your reply
Click to expand...
Click to collapse
Yeah, the RUU contains everything you need. Follow the guide and you'll be fine.
arnavk007 said:
Is there anything I should add to it?
Click to expand...
Click to collapse
I get this is old but, after
fastboot oem rebootRUU
You should
fastboot flash zip rom.zip
Thanks for posting this guide
Good work.
!#quote my post if you want to get my attention more quickly
HTC One S 1.5Ghz Soft Bricked to!
Hey! I have a similar problem to with my HTC One S. I tried the above mentioned but it always get stuck in ''Sending'' When I try to flash recovery or RUU.zip file
Edit: It's not stuck in sending anymore but I get this error:
sending 'zip' (632094 KB)...
OKAY [ 27.661s]
writing 'zip'...
FAILED (remote: not allowed)
finished. total time: 27.691s
I'm thinking that this RUU.zip isn't a zip file I can install via fastboot. And is a SD-card zip file. Which is a problem due to that I can't mount the SD card. And this is the only RUU matching my cellphone and there's no .exe files I found for it
HTC-One-User said:
Hey! I have a similar problem to with my HTC One S. I tried the above mentioned but it always get stuck in ''Sending'' When I try to flash recovery or RUU.zip file
Edit: It's not stuck in sending anymore but I get this error:
sending 'zip' (632094 KB)...
OKAY [ 27.661s]
writing 'zip'...
FAILED (remote: not allowed)
finished. total time: 27.691s
I'm thinking that this RUU.zip isn't a zip file I can install via fastboot. And is a SD-card zip file. Which is a problem due to that I can't mount the SD card. And this is the only RUU matching my cellphone and there's no .exe files I found for it
Click to expand...
Click to collapse
I gave up on RUU files all together and tried different ROMs til I found one that worked. Also managed to fix the SD card error with this guide: http://forum.xda-developers.com/showthread.php?t=2086156

flash error

Hello, I have several days trying to install bootloader and TWRP, but I can not.
I have a kindle fire 2, 10.4.6, standard USB cable.
If I can get into fastboot mode without problem, but when you type the command:
fastboot-i 0x1949 flash bootloader otter2-u-boot-prod-10.2.4.bin
I get this error:
target reported max download size of 486539264 bytes
Error: can not load otter2-u-boot-prod-10.2.4.bin No Error
I have windows 7 and all the drivers installed. I tried it on another computer, but same error.
I would appreciate some help, I have looking forward to putting on another rom
thanks

TWRP v3.0.3-0_UNOFFICIAL on Android 7.0 (Nougat) (4.14.401.7)

Hi,
I'm currently on Android 7.0 (Nougat) (4.14.401.7) Stock on my HTC One M9. I tried to install TWRP v3.0.3-0_UNOFFICIAL, but got the following error when trying to reboot to Bootloader mode:
>> adb reboot bootloader
adb server version (31) doesn't match this client (36); killing...
* daemon started successfully *
Then my phone actually entered Bootloader mode anyway, but when I tried to flash TWRP, got this error:
unknown partition 'recovery.img'
error: cannot determine image filename for 'recovery.img'
But I know that the "recovery.img" file was in the same folder. Any ideas on what I'm I doing wrong?
I'm also curious, why is TWRP v3.0.3-0_UNOFFICIAL's size 19,5 MB and the Stock Recovery's size for this Android version is 64,0 MB? Is this kind of size difference normal?
phen0m2016 said:
Hi,
I'm currently on Android 7.0 (Nougat) (4.14.401.7) Stock on my HTC One M9. I tried to install TWRP v3.0.3-0_UNOFFICIAL, but got the following error when trying to reboot to Bootloader mode:
>> adb reboot bootloader
adb server version (31) doesn't match this client (36); killing...
* daemon started successfully *
Then my phone actually entered Bootloader mode anyway, but when I tried to flash TWRP, got this error:
unknown partition 'recovery.img'
error: cannot determine image filename for 'recovery.img'
But I know that the "recovery.img" file was in the same folder. Any ideas on what I'm I doing wrong?
I'm also curious, why is TWRP v3.0.3-0_UNOFFICIAL's size 19,5 MB and the Stock Recovery's size for this Android version is 64,0 MB? Is this kind of size difference normal?
Click to expand...
Click to collapse
Did u input this command:
fastboot flash recovery recovery.img
I think u missed a "recovery" in there.

Install TWRP and then to root.

Hello please can anyone advise me and forgive any wrong terms..
I am trying to push twrp to my lg g4 H815 20g using adb and fastboot but everytime it comes back with
error: cannot load 'twrp.img': No such file or directory
PS C:\Users\Anthony\Desktop\ADB>
i have tried renaming twrp file to various things and changing the command fastboot flash twrp.img or fastboot flash recovery.img
but i keep getting errors of one discription or the other..
I have followed guild after guild but still not made the magic happen..
Bootloader is officially unlocked via LG and twrp for lg g4 downloaded from twrp site.
Been trying for two days to install a recovery so i can also root but having no luck.
please any help or advise would be appreciated..
you must put the "twrp.img" into to your "ADB" folder and then exec this:
Code:
fastboot flash recovery twrp.img
Hi thanks for your help
yes I have the img file in adb/fastboot folder and been doing this and still comes back in cmd as no such file etc..
Tried renaming twrp img file and changing fastboot flash line to match but still no joy..
Tried earlier g4 twrps same outcome it’s as if downloaded recovery’s are corrupt or something as they don’t appear to be being seen..
What is best name for the twrp image or do you leave it as it came downloaded and run the
fastboot flash recovery twrp.img Regardless of what twrp called when downloaded..
Thanks
Have you changed directory to the sdk folder? Or shift + right clicked in folder "open cmd here"?
The command is "fastboot flash *whatever recovery is called in adb folder*"
I ended up changing the name to "twrp3.1.1" or whatever cause it had a hell of a name when downloaded. Just name whatever you want as long as you call it same thing when flashing.
Make sure you also have a copy of it on your SD too because it wont stick and when you reboot to the recovery you then need to reflash the image from in there.
Hi I think it was successful i changed name of twrp on second attempt and it seemed to work..
only problem was when i tried to manually boot into recovery via volume down and power i did something wrong and accidentally reset the dam thing instead of booting into twrp......will have to do it all over again but hopefully i have it sorted..
PS C:\ADB> adb reboot-bootloader
* daemon not running. starting it now at tcp:5037 *
* daemon started successfully *
PS C:\ADB> fastboot flash recovery twrp.img
error: cannot load 'twrp.img': No such file or directory
PS C:\ADB> fastboot flash recovery twrp-3.1.1-1-g4.img
target reported max download size of 536870912 bytes
sending 'recovery' (33952 KB)...
OKAY [ 0.781s]
writing 'recovery'...
OKAY [ 0.422s]
finished. total time: 1.219s
PS C:\ADB> fastboot reboot
rebooting...
finished. total time: 0.031s
PS C:\ADB>
Hello! I reopen this tread.. I have an issue with flashing twrp, via adb I start into bootloader, but when i put the command to flash it.. <waiting for device>. Why?

[SOLVED] Error: load_file: could not allocate (when trying to flash img files in fastboot)

Code:
C:\Users\......\Desktop\MTK Usb Driver v1.0.8\MTK_Driver_ ext>fastboot flash system
"C:\Users\......\Latest ADB Fastboot Tool\system.img"
load_file: could not allocate -854277216 bytes
error: cannot load 'C:\Users\trg\Latest ADB Fastboot Tool\system.img'
See below...
Code:
C:\Users\......\Desktop\MTK Usb Driver v1.0.8\MTK_Driver_ ext>fastboot flash system
"C:\Users\......\Latest ADB Fastboot Tool\system.img"
load_file: could not allocate -854277216 bytes
error: cannot load 'C:\Users\trg\Latest ADB Fastboot Tool\system.img'
How to fix this error:
Method 1
I found people online saying that the reason for this error was that the Fastboot/ADB version was too old, and maybe that is true. According to them, there is a limit to the file size that older versions of Fastboot can flash. So you could try that if you like. If it doesn't work, try the method below.
Method 2
This method actually worked for me. Using this tool called mfastboot (I've attached the file below too) allows you to simply use mfastboot in your commands instead of fastboot and large files will flash successfully. Just place the correct file for your OS into your Fastboot/ADB folder, and flash away!

Categories

Resources