Request for all fastboot commands needed to flash Anfroid P manually. - Google Pixel XL Questions & Answers

When trying to run flash-all bat file, am getting error regarding some missing sig files which are already there. Could anyone help with all the fastboot commands needed to flash all img files individually?

Just look in the bat file?
Sent from my Pixel XL using Tapatalk

The bat file only has the command to flash the whole zip file. I was looking for the one that does individual files in that one manually.

harihacker said:
When trying to run flash-all bat file, am getting error regarding some missing sig files which are already there. Could anyone help with all the fastboot commands needed to flash all img files individually?
Click to expand...
Click to collapse
Are you getting errors or file not present?

You can flash them with separate commands like fastboot flash system system.img, etc. Just make sure to flash everything correctly with correct commands. The flash all is just to make it easier on you and save time. Here's a link to a helpful site.
https://android.gadgethacks.com/how...actory-images-android-using-fastboot-0175277/

Related

How to extract system.img

Hi all,
I am trying to develop a rom but I came along this difficulty: I can't find the sysyem.img. I tried to download a .zip file, only the folder named "system" came in it. And I tried it with a .exe and looked in "%TEMP%" no luck either...
Can anyone explain how I should extract the system.img?
Thanks in advance.
I guess your referring to a nandroid backup really. When you download a rom, it comes in a zip file which you can flash and has only a boot.img file (I think, can't remember off top of my head) so it can boot. It doesn't have anything else. You only see a system.img file when you do a nandroid backup. Everything that is in the system.img file is still the same as the system folder in a zip file.. more or less.
If you do have a system folder, it is possible to convert it using the HTC Kitchen
http://forum.xda-developers.com/showthread.php?t=633246
That should help heaps with ROM development
Can you please explain to me how I can convert the system folder, I don't have a clue.
Convert it how? How do you want to convert the system folder? And why? Might help us out more you know.
On "Theunlockr" (My guide for making a rom) It says
"If you have a .zip file, you can unpack the system.img and boot.img"
I only have the boot.img and a system folder!
And it also says: "If you have a .exe, run it until the first screen and then go to run and type %TEMP% and a rom.zip should be here"
in both cases it is not the case.
So, can anyone help me out please?

Cannoth boot.img.

When I try to flash a boot.img in fastboot (on mac) it says the title
xi0nic said:
When I try to flash a boot.img in fastboot (on mac) it says the title
Click to expand...
Click to collapse
Make sure the file is actually called "boot.img" and nothing else with no new extensions etc...
eyosen said:
Make sure the file is actually called "boot.img" and nothing else with no new extensions etc...
Click to expand...
Click to collapse
Does it really say "Cannoth"?
Anyway, apart from has been mentioned before (spelling counts!)
You also want to make sure that the boot.img file is located in the SAME directory as fastboot.exe. It's the easiest way to flash the file.
Otherwise when you execute the flash command, you are going to need to specify the path to the boot.img file: flashboot flash boot c:\path\to\file\boot.img or something like that.
I don't use a Mac but the principle explained above still applies.

Speed bump in Rooting process...

Hey guys, I am in the process of rooting my evo 4g using this method http://htcevohacks.com/htc-evo-hacks/how-to-root-htc-evo-4g-on-hboot-2-18-with-s-off/ since I have 2.18 hboot version. I have unzipped all the files from RootEvo4GNew, and the file recovery-RA-supersonic-v2.3.img does not have the .img extension on it when I unzip it to the correct folder, and when I try to flash that in the cmd prompt it says
unknown partition 'recovery-RA-supersonic-v2.3.img'
error: cannot determine image filename for 'recovery-RA-supersonic-v2.3.img
I am assuming it can't find the file because it doesn't have the extendion .img on it once extracted. Any ideas? The icon next to the file looks like a zip file and can't be opened by 7zip
See it looks like a winzip file instead of a image file
Ok so I uninstalled winzip and now just have 7zip and it now shows the file as an .img file but I am still getting the same error message when in the command prompt. What am I doing wrong? Here's another image to show you what I mean
furrycnorm said:
Ok so I uninstalled winzip and now just have 7zip and it now shows the file as an .img file but I am still getting the same error message when in the command prompt. What am I doing wrong? Here's another image to show you what I mean
Click to expand...
Click to collapse
Download one of these,it has install instructions and a few different custom recoveries to choose from,creds to Smelkus of course..... http://forum.xda-developers.com/showthread.php?t=2171460
Diablo67 said:
Download one of these,it has install instructions and a few different custom recoveries to choose from,creds to Smelkus of course..... http://forum.xda-developers.com/showthread.php?t=2171460
Click to expand...
Click to collapse
I downloaded and followed instructions, isn't working for me. It looks like the phone doesn't see the file when in bootloader, not sure if I renamed it right.
furrycnorm said:
I downloaded and followed instructions, isn't working for me. It looks like the phone doesn't see the file when in bootloader, not sure if I renamed it right.
Click to expand...
Click to collapse
Follow this http://windows.microsoft.com/en-US/windows-vista/show-or-hide-file-name-extensions to make sure the file extensions show correctly, and make sure you didn't dupe the extension.
sent from a jb ROM..... cause I'm likely testing.
Wambo_Bomb said:
Follow this http://windows.microsoft.com/en-US/windows-vista/show-or-hide-file-name-extensions to make sure the file extensions show correctly, and make sure you didn't dupe the extension.
sent from a jb ROM..... cause I'm likely testing.
Click to expand...
Click to collapse
Thanks for the advice, I think this may work as I did have one extension duped. Problem is when I run the recovery it says it's an older version than what I already have installed and asks if I want to restart the device. I also still can't get the phone to flashboot recovery recovery-RA-supersonic-v2.3.img and it still says unrecognized partition in the command prompt. Is there a way to flash this from the sc card or anything else you can think of to try?
furrycnorm said:
Thanks for the advice, I think this may work as I did have one extension duped. Problem is when I run the recovery it says it's an older version than what I already have installed and asks if I want to restart the device. I also still can't get the phone to flashboot recovery recovery-RA-supersonic-v2.3.img and it still says unrecognized partition in the command prompt. Is there a way to flash this from the sc card or anything else you can think of to try?
Click to expand...
Click to collapse
Are you trying to fastboot flash the recovery .img file to your phone? If so you need to use the command "fastboot flash recovery *insert file name here*" (without quotation marks or asterisks). The recovery img file has to be in your ADB tools folder, alstherwise, put the recovery PC36IMG.zip file in the root folder of your SD card, make sure it's named PC36IMG.zip with no extra .zip extension, and reboot your bootloader. Follow the on-screen prompts to update your recovery.
Sent from my EVO using xda premium
FinZ28 said:
Are you trying to fastboot flash the recovery .img file to your phone? If so you need to use the command "fastboot flash recovery *insert file name here*" (without quotation marks or asterisks). The recovery img file has to be in your ADB tools folder, alstherwise, put the recovery PC36IMG.zip file in the root folder of your SD card, make sure it's named PC36IMG.zip with no extra .zip extension, and reboot your bootloader. Follow the on-screen prompts to update your recovery.
Sent from my EVO using xda premium
Click to expand...
Click to collapse
wow I am retarded, my problem the whole time was that I was typing this:
fastboot flash recovery-RA-supersonic-v2.3.img
when I should have typed this:
fastboot flash recovery recovery-RA-supersonic-v2.3.img
Thank you so much for the help, on to the next step and hopefully this works!
Ok, successfully rooted with s-off! I have read through all the guides, and am still a bit confused because most of them are from 2010 and 2011. I need to flash a rom that will work with metro-pcs. Can you guys help me with which steps I need to take? I tried to download metrodroid v4 but the download link isn't working. Will aall of the roms in this thread work with metro pcs or do I need a specific one? http://forum.xda-developers.com/showthread.php?t=2318070
Also, once I have a rom flashed, do I have to go in to a metro pcs store to get it activated (I do not currently have a metro pcs account or other metro phone) or can I get the esn activated online or by calling there 800 number?

SYSTEM.IMG

I need a stock "system.img" file. Any will do at this point. Also, what is the command line with ADB in fastboot? Any help would be appreciated....
Steamer2499 said:
I need a stock "system.img" file. Any will do at this point. Also, what is the command line with ADB in fastboot? Any help would be appreciated....
Click to expand...
Click to collapse
I think on telegram OpenKirin group you can find the files that you need. someone asked yestarday
Here are guides https://openkirin.net/support/ that show you step by step how to download stock firmware, how to extract partition images and how to flash them among other guides.

Bootlooping, trying to get back to stock, deuces not working, log attached.

Hello guys,
I have been trying to get this to work on my own for a while now. I am trying to use deuces script and it is not working for the life of me. I have formatted user data entirely and killed all encryption. I have tried to install the factory image numerous times and numerous ways but nothing seems to be working. I have tried to use deuces script, from fastboot and it isnt working (log attached).
Here is what is currently going on and the current setup. No ROM installed currently (I do not believe). Device is UNLOCKED. TWRP is installed, version 3.3, latest version.
I can get into fastboot and the computer can see fastboot with fastboot devices command.
I can get into recovery from the device, which is TWRP. I can sideload things from there and run any commands that twrp can natively run.
I can NOT get deuces script to run with either the latest android 9 factory image, or the latest android 10 image.
I am putting all of the factory image files, unzipped, in the platform tools folder, along with the deuces script files in the same folder... then running the script. It is kicking back an error, which is attached as an image.
Additionally the log is attached as well.
ANY insight on how to get my phone back to stock would be great. Really getting anything installed on it would be great at this point, currently I can only get to fastboot and recovery.
Thank you so much!
Try a different cable or USB port if you haven't already.
Also you can try putting everything into C:\platform-tools, instead of having everything a few directories deep.
All my files just get extracted into C:\platform-tools
ilal2ielli said:
Try a different cable or USB port if you haven't already.
Also you can try putting everything into C:\platform-tools, instead of having everything a few directories deep.
All my files just get extracted into C:\platform-tools
Click to expand...
Click to collapse
I always do the same thing with good results!
Sent from my Pixel 2 XL using XDA Labs
wdarea51 said:
Hello guys,
I have been trying to get this to work on my own for a while now. I am trying to use deuces script and it is not working for the life of me. I have formatted user data entirely and killed all encryption. I have tried to install the factory image numerous times and numerous ways but nothing seems to be working. I have tried to use deuces script, from fastboot and it isnt working (log attached).
Here is what is currently going on and the current setup. No ROM installed currently (I do not believe). Device is UNLOCKED. TWRP is installed, version 3.3, latest version.
I can get into fastboot and the computer can see fastboot with fastboot devices command.
I can get into recovery from the device, which is TWRP. I can sideload things from there and run any commands that twrp can natively run.
I can NOT get deuces script to run with either the latest android 9 factory image, or the latest android 10 image.
I am putting all of the factory image files, unzipped, in the platform tools folder, along with the deuces script files in the same folder... then running the script. It is kicking back an error, which is attached as an image.
Additionally the log is attached as well.
ANY insight on how to get my phone back to stock would be great. Really getting anything installed on it would be great at this point, currently I can only get to fastboot and recovery.
Thank you so much!
Click to expand...
Click to collapse
Do it without unzipping the factory image. The script unzips it itself and you're causing an error by doing it for it.
Title
Forget about recovery and unzipping files or scripts.
If you xan boot into the bootloader google gives you precise instructions to follow to just flash everything executing flashall.bat here: developers.google(dot)com/android/images.
If you followed the exact steps and it's not working show the full final terminal output to help you.
JuanG2 said:
Forget about recovery and unzipping files or scripts.
If you xan boot into the bootloader google gives you precise instructions to follow to just flash everything executing flashall.bat here: developers.google(dot)com/android/images.
If you followed the exact steps and it's not working show the full final terminal output to help you.
Click to expand...
Click to collapse
Just for reference, dueces script is use 99% of the time AFTER Google's flash-all.bat had failed to give the desired results. Not saying this is the case here but it is a likely reality.
Sent from my Pixel 2 XL using XDA Labs
CyberpodS2 said:
Just for reference, dueces script is use 99% of the time AFTER Google's flash-all.bat had failed to give the desired results. Not saying this is the case here but it is a likely reality.
Sent from my Pixel 2 XL using XDA Labs
Click to expand...
Click to collapse
I (myself *my opinion*) really wouldn't use that script becouse it's just an incredibly verbose way of forcing the flashing of the images and it's way more tedious to find errors using it.
If google's flash-all script is not working it should be analized why as it only is running 5 fastboot commands to flash all the images and if the phone can't run fastboot commands it's somewhat worring.
In his case the script can be failing for a million reasons like the script cant create the work directory to unzip the factory zip becouse it's only for admin use, or maybe has conflicts of directories, can also not be using an appropiate file for it as the naming scheme does not make sense. In any case the problem here is with the way the dueces script is decompressing the .zip as it can't find the image.zip when it's allocated to the variable here: $imgzipname = (Get-ChildItem _work/*/*.zip).fullname.
This script code is really not prepared to correct it self and is not great, HOWEVER it should work without much of a problem if no naming scheme of the images, partitions, directories changes or so I understand why people use it when they really screw something up.
---------- Post added at 09:30 AM ---------- Previous post was at 09:06 AM ----------
JuanG2 said:
I (myself *my opinion*) really wouldn't use that script becouse it's just an incredibly verbose way of forcing the flashing of the images and it's way more tedious to find errors using it.
If google's flash-all script is not working it should be analized why as it only is running 5 fastboot commands to flash all the images and if the phone can't run fastboot commands it's somewhat worring.
In his case the script can be failing for a million reasons like the script cant create the work directory to unzip the factory zip becouse it's only for admin use, or maybe has conflicts of directories, can also not be using an appropiate file for it as the naming scheme does not make sense. In any case the problem here is with the way the dueces script is decompressing the .zip as it can't find the image.zip when it's allocated to the variable here: $imgzipname = (Get-ChildItem _work/*/*.zip).fullname.
This script code is really not prepared to correct it self and is not great, HOWEVER it should work without much of a problem if no naming scheme of the images, partitions, directories changes or so I understand why people use it when they really screw something up.
Click to expand...
Click to collapse
Actually I just realized why the script is not working for you. You are running it against the incorrect file. You shouldn't be running it against the images.zip that's inside of the factory.zip but rather to the factory.zip itself don't unzip it, just paste the whole zip downloaded from developers.google.com and run the script against it.

Categories

Resources