yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] whitehat15:
unknown command while flashing through fastboot

i keep getting unknown command while trying to flash recovery images or firmware, please help me
[General Questions and Answers] shashank1320:
What commands are you trying and which phone/android version as command has changed since oreo
[General Questions and Answers] jd1639:
[MENTION=7805402]mirfatif[/MENTION] Do you know what the fastboot update command is doing under the hood? It's obviously flashing the images to the correct partitions but how does it know what image goes where? fastboot flash boot boot.img makes sense to me but running a fastboot command on a bunch of image files in a zip file doesn't. Thanks.
[General Questions and Answers] mirfatif:
Can you give me example of such zip file? Fastboot protocol is provided by application bootloader (aboot) which knows very well the exact boundaries of partitions on device. When flashing images, we are telling fastboot what image it is or where it is to be written.
[General Questions and Answers] mirfatif:
And it also contains rawprogram_unsparse.xml or something similar with all partitions listed?

I haven't used a device so far with A/B partitioning scheme, so I'm not sure what nomenclature they use for partitions but I think abl_* is the application bootloader.

Yes. There is no recovery partition with A/B scheme.
[General Questions and Answers] jd1639:
There's nothing in the zip but image files. There's one text file but it just checks for latest bootloader. There's an image, xbl_config.img. I'm not sure what that does.
[General Questions and Answers] mirfatif:
Actaully rawprogram_unsparse.xml or similar files are used by Factory Flashers such as in Download Mode or ODIN etc. If the device is booted up to the stage of application bootloader (aboot), enough detail of partitions on eMMC is already loaded, including partition names (or labels) that are assigned at the time of creating GUID partition table (GPT). When we execute fastboot update xyz.zip, it flashes all images one by one very similar to fastboot flash boot boot.img, fastboot flash system system.img and so on. Here boot and system are partition names (part_name) while boot.img and system.img are image files (img_name) that should be found in OTA update zip file. Which image file is to be written to which partition is hard-coded in fastboot command's source code:

static struct {
const char* nickname;
const char* img_name;
const char* sig_name;
const char* part_name;
bool is_optional;
bool is_secondary;
} images[] = {
{ "boot", "boot.img", "boot.sig", "boot", false, false },
{ "system", "system.img", "system.sig", "system", false, false },
...
...
}
[General Questions and Answers] jd1639:
This is great, especially the source code. It tells me a lot. I learned something new for the day!
[General Questions and Answers] rafiraza:
how to use unlock oem command when no Volume button is available on car GPS T98 10 inches UNIT.?
[General Questions and Answers] N-Gage4ever:
Thank you so much
[General Questions and Answers] lordaker:
Afternoon,

I try to reinstall my Infininx Smart 2 X5515 by using the firmware from the url below:

https://forum.hovatek.com/thread-23850.html

Infinix X5515 Smart 2 (X5515-H398DEG-GO-180903V166) [Factory / Signed]

But nothing work and the phone is unusable. I install the recovery.img file by using ADB/Fastboot(macOS)

But when I reboot to recovery mode, the logo of Infinix appear and reboot again, appear for a while and reboot

again. :(:(:(:(:(:confused::confused::confused::confused::confused:

the-webinarts:tools thewebinarts$ ./fastboot update
.DS_Store emulator recovery-verified.img
NOTICE.txt emulator-check recovery.img
X5515-H398DEG-GO-180903V166.zip fastboot source.properties
adb lib/ support/
android mksdcard system.img
bin/ monitor twrp/
boot-verified.img package.xml twrp.img
boot.img proguard/ vendor.img
the-webinarts:tools thewebinarts$ ./fastboot update X5515-H398DEG-GO-180903V166.zip
--------------------------------------------
Bootloader Version...:
Baseband Version.....:
Serial Number........:
--------------------------------------------
archive does not contain 'android-info.txt'
fastboot: error: could not read android-info.txt

When I type the following cmd below to know the version of fastboot I use and the product:

the-webinarts:tools thewebinarts$ ./fastboot getvar version
version: 0.5
Finished. Total time: 0.003s
the-webinarts:tools thewebinarts$

the-webinarts:tools thewebinarts$ ./fastboot getvar product
product: KEYTAK6580_WEG_L
Finished. Total time: 0.003s
the-webinarts:tools thewebinarts$ ;

Do you have a good process who works well for my model?

S/N: H6N2 (This is the Serial number of my phone)
[General Questions and Answers] abense:
Is there a way to use adb to backup the entire /data partition without root? I swear I have done it before but I can't seem to get it to work anymore. Perhaps I need to switch to an older version of adb?
[General Questions and Answers] mirfatif:
No you can't. (Why? See first paragraph of this answer: https://android.stackexchange.com/a/219926/218526). Your "adbd" must have been running with root privileges previously which now is not: https://android.stackexchange.com/a/213429/218526
[General Questions and Answers] Swagnik:
Few months ago I was actually I was trying to fix a Moto device!!!

At that time I found a adb or Fastboot command (most probably fastboot) which displays every single details about the device starting from root access, cpu, gpu, clock speeds and every single details!!!

But unfortunately I lost the command nd now I need it!!!

So if anybody knows it plz ...........!!

Thanks.................:good:
[General Questions and Answers] fhpiash:
I got stucked on Fastboot mode. I can't do anything even Vol up+ Vol Down+ Power also is not working. Plz help me.
[General Questions and Answers] Suvorik1969me:
Screen on the phone is untouchable.

Remind me please which command i've use via fastboot mode to shut off my phone ?
[General Questions and Answers] piotr1953:
Bricked lg g5 in qdl mode
[General Questions and Answers] heyChristo:
[MENTION=7805402]mirfatif[/MENTION], Great comprehensive post! I actually ended up here by googling.
[General Questions and Answers] Uredie:
Hey, i have one problem. When im trying to backup whole internal storage to PC, im using

adb pull "/sdcard" "C:/11"

This works perfectly, but when i try to copy those files to my internal phone storage with command

adb push "C:/11/sdcard/" "/sdcard/"

It makes just SDCARD(with copied files) folder in internal storage instead of copy files from this folder to Internal storage.

How to copy from PC folder named SDCARD to internat storage? Do i need to copy every catalog with another command specified

adb push "C:/11/sdcard/DCIM" "/sdcard/"

?

Maybe im misunderstanding something, but it dont make difference if i wrote

adb push "C:/11/sdcard/" "/sdcard/"

or

adb push "C:/11/sdcard/" "/sdcard"

It still make sdcard folder in my storage.
[General Questions and Answers] mirfatif:
@Uredie at least on Linux you can do: adb push /path/to/sdcard/.* /sdcard/
[General Questions and Answers] Uredie:
adb push /path/to/sdcard/.* /sdcard/

/path/to/sdcard/.* <- ".*" means everything from folder, right?
[General Questions and Answers] mirfatif:
Yes, including hidden files. You can search about globbing and wildcards. Start from here: https://en.wikipedia.org/wiki/Glob_(programming)#Windows_and_DOS
[General Questions and Answers] DiamondJohn:
Just a question as I dont need to do any of this, but what happens with files without an extension? ie no dot in the filename.
[General Questions and Answers] mirfatif:
Globs has nothing to do with file extensions. On mostly shells * matches only non-hidden files. dotglob (.*) ensures that hidden files (starting with a .) are also matched.
[General Questions and Answers] DiamondJohn:
Aa I said, its no biggie for me, but, by "globs", there are plenty of files other than "globs" that do not have file extensions. My understanding (and I did a quick check) of a "glob", is that specifically HAS a file extension. eg. *.txt And yes, I inderstand that hidden files are basically all file extension (if they dont have one already). But I am taking about files specifically without any dot.

I am NIOT talking about hidden files, I am taking abourt ones without any dot whatsoever. First to mind are boot scripts (which you may have backed up on your SDCard), also album art is stored as a JPG without any extension, and on your SDCard (so you would hope to back that up). Android has many uses of files without dots in the name. So I dont see how .* could match a file name important_secret_data i.e. no dot

Clearl;y I do not care too much personally, otherwise I would do the test, but :meh: Someone who does care should simply check if I am wrong before depending on it.
[General Questions and Answers] HemanthJabalpuri:
run these in terminal, you can get a better idea.

echo >./.hasdot
echo >./noext
ls .*

@mirfatif

It seems like this dotglob is copying the parent directory contents too, since .. is also a hidden entry. With this it pushes the same entries two times.

@Uredie

you can try this adb push C:/11/sdcard/. /sdcard/.
[General Questions and Answers] Uredie:
@HemanthJabalpuri and all others thanks for answers :) You are making great community ;)

Screenshot

Captured with Lightshot

prnt.sc

Looks like it works, it put file from FolderA directly to /sdcard on phone without making folder :)

So if im not wrong, the best idea to copy all files from phone and then copy everything directly to phone is:

adb pull /sdcard C:/BackupFolder

then

adb push C:/BackupFolder/. /sdcard/

I have couple more questions.

1)The same files are overwrited or skipped while copying?

2)Did somebody have problem that when you copied files by this way and then backed up, photos have f. up made date? Like old photos have new date and it show as new in Google Photos.

3)I forgot what else I was supposed to write, I edit later if I remember

Edit 3) Remember already. I Was curious about 1 thing but it's already cleared.

When you have for example DCIM on phone, then backed up from PC folders with DCIM inside it will merge folders, just like copy files from DCIM pc to DCIM phone.

I was curious because if i was copying files on phone it was making something like DCIM(1).
[General Questions and Answers] HemanthJabalpuri:
@Uredie

You can get answers to your questions by some simple tests yourself.

Thanks
[General Questions and Answers] mirfatif:
@Uredie @DiamondJohn @HemanthJabalpuri thanks for your contribution.

In fact the behavior of globbing and wildcards differs widely even among *NIX shells. Windows is a different world altogether. The debate seems to be off-topic here. And I'm no way more than an ordinary shell user. That's why I linked the basic explanation on Wikipedia. There are great resources on internet like this and this which satisfactorily resolve this matter already.

Hope it helps.
[General Questions and Answers] UnderTheLKW:
When typing "fastboot oem device-info" nothing is displayed, only bootloader: Without true or false , what can i do ?
[General Questions and Answers] :
On computer install the "Android USB Driver" provided by your device's manufacturer, if not already done yet.

Also worthwhile to know: Fastboot is differently implemented by manufacturers, means not all Fastboot commands works on every device..
[General Questions and Answers] UnderTheLKW:
Driver are installed and adb finds my device but If i tipe „fastboot getvar all“ to look at the bootloader status says bootloader: and then nothing
[General Questions and Answers] :
You have to establish a Fastboot connection

fastboot devices
[General Questions and Answers] UnderTheLKW:
C:\adb>adb devices

List of devices attached

xxxxxx device

its connected but then i dont see the bootloader status
[General Questions and Answers] :
Again:

adb devices
adb reboot fastboot
fastboot devices
fastboot getvar all
fastboot reboot
[General Questions and Answers] UnderTheLKW:
thats what shows up , i dont see if the bootloader is aktive or not

C:\adb>adb devices

List of devices attached

xxxxxxxxxxx device

C:\adb>

C:\adb>adb reboot fastboot

C:\adb>

C:\adb>fastboot devices

C:\adb>

C:\adb>fastboot devices

xxxxxx fastboot

C:\adb>

C:\adb>fastboot getvar all

all:

Finished. Total time: 0.001s

C:\adb>

C:\adb>fastboot reboot

Rebooting OKAY [ 0.000s]

Finished. Total time: 0.007s
[General Questions and Answers] UnderTheLKW:
after typing adb reboot bootloader shows me this:

C:\adb>fastboot oem unlock

< waiting for any device >

im waiting but nothing happens , what am I doing wrong?
[General Questions and Answers] :
My guess is OEM Unlock isn't got enabled in Android's settings.
[General Questions and Answers] UnderTheLKW:
unfortunately it's up to something else
[General Questions and Answers] UnderTheLKW:
my device is not found when i have it in the fastboot menu, so i am missing the drivers but cdc drivers are not accepted by the pc and vcon does not accept my pc, what would you do?
[General Questions and Answers] UnderTheLKW:
fastboot flashing unlock

FAILED (remote: 'Not implemet.')

fastboot: error: Command failed

what can i do if this shows up?
[General Questions and Answers] :
Try

fastboot oem unlock

If this also fails, then bootloader isn't unlockable.
[General Questions and Answers] UnderTheLKW:
I see under recovery, boot to bootloader but then it goes into safeboot, so you say there is no way to do it ?
[General Questions and Answers] :
Save boot ( correctly: Booting into Safe mode ) has nothing to do with device's bootloader per se.

Booting into Save mode is used to find problem apps.​

More info here:

What is Safe Mode on Android Phones and How to fix Safe Mode Android Issues - ITechBrand

Safe mode temporarily blocks third-party apps from running, making it the best way to diagnose issues on your Android phone or device.

itechbrand.com

.
[General Questions and Answers] UnderTheLKW:
meant that under Save boot, boot to bootloader is listed, but then by going thought it its start in fastboot, im trying to do it on linux now
[General Questions and Answers] UnderTheLKW:
trying it on linux but now adb no longer wants to recognize my device
[General Questions and Answers] coolek33:
Hi. I'm attempting to downgrade from android 10 to 9 mine sony tv x900h via fastboot. I don't know if it's a good idea. Got images from payload.bin as on the photo. Maybe someone could point me the correct order to manual flash/commands. It has 2 slots and "b" is active one. I want "a" to be flashed with android 9.
[General Questions and Answers] NextB:
hello everyone i will be thankful if anyone helped me to backup my stock recovery.img in realme gt master edition rmx3363 i have root.
[General Questions and Answers] bnsmb:
Hi

is it possible to recover a phone by flashing images created via dd back on the phone using the "fastboot flash" command?

e.g

- boot the phone from a recovery image with adb support

- create a backup of the important partitions

boot

dtbo

vbmeta

vbmeta_system

vendor_boot

super

via dd:

adb shell dd if=/dev/block/by_name/<partition> | dd of=./<partition.img>

And then later use fastboot to restore the partitions from the images, e.g

fastboot flash super ./super.img

I tried it now a lot of times in different configurations (e.g. with the original Android 11 and Android 12, with ASOPExtended 9.x ; with and without reseting the phone before restoring the partition images, etc) but it did only work some times; most of the times the phone did not boot anymore after restoring the partitions. And I do not know why it works sometimes and sometimes not.

Unfortunatley I did not yet found any infos regarding this approach so: Should that work?

If not: Is there another method to restore the phone using partition images?

and for the records

I'm testing with an ASUS Zenfone 8; the recovery image to create the partition images is the recovery from Lineage 18.x.; the recovery to create the image from the boot partition is TWRP booted via the command "fastboot boot <file>"

regards

Bernd
[General Questions and Answers] edufpaz:
Hi @mirfatif

Thanks for the guide.

Very important for those who are new and with little knowledge.

I saved it to my bookmark.
[General Questions and Answers] repoman728:
ok

and how flash recovery into partition A only - thats whats it availabe in my phone , pls I need simple commands for fastboot
[General Questions and Answers] ccaye:
can you pull files or push files from fastboot?

what kind of command you need to use

currenlty the bootloader is locked

but somehow at fastboot it shows bootloader unlocked

once it restarted, the bootloader is locked again
[General Questions and Answers] lexpizarro:
hi there bro. Im having a problem with the deep testing apk on my realme 5i android 10. it always says the there is no internet connection when i open the in depth testing so i couldnt unlock my bootloader. any chance that you can help me out with this? hoping to find any help. thanks in advance.
[General Questions and Answers] 5ace500:
Hi everyone.

I have a S21 5G and I'm FRP locked.

I was wondering how do I enable ADB (USB Debugging) ?

I installed ADB drivers onto my laptop but I still can't access or enable the ADB on my phone.
[Xiaomi Redmi 4 Prime Guides, News, & Discussion] engloa:
Please visit the linked thread prior to posting:

Device Forum Rules (Please Read before Posting)

In this thread, we will provide a short Q&A for your stay on this forum. Please read thoroughly and act accordingly. While most that is needed to know is pointed out in the Forum Rules, history shows that some points of these rules are not...

xdaforums.com
[Sprint Samsung Galaxy S7 Questions & Answers] kareem007g:
i have problem at the end of installation . odin show me this problem 'Complete(Write) operation failed' and in my phone show unsupport dev_type

this problem happend to me when i installed Nougat rom the build that ending with QAA for the first time .and i tried the new build that ending with QC1

and i ended up with same problem .i dont know why this happend to me i install rom befor Nougat .its marshmallow the build that ending with PF2 and i dont have any problm with installation

i hope someone would help me .
[Sprint Samsung Galaxy S7 Questions & Answers] kareem007g:
Where are you guys. I need to fix this problem . Please guys .
[Sprint Samsung Galaxy S7 Questions & Answers] VandyCWG:
Did you try and launch Odin by right clicking and Run as Administrator?
[Sprint Samsung Galaxy S7 Questions & Answers] kareem007g:
Yes tried it and it's the same thing
[Sprint Samsung Galaxy S7 Questions & Answers] VandyCWG:
are you flashing the home_csc or just the CSC?

Also, are you using the most up to date Odin?
[Sprint Samsung Galaxy S7 Questions & Answers] kareem007g:
I flashed csc. Not home csc.
[Sprint Samsung Galaxy S7 Questions & Answers] kareem007g:
Noone can solve this problem
[Sprint Samsung Galaxy S7 Questions & Answers] YMNDLZ:
You probably need the PIT file for your device.
[Sprint Samsung Galaxy S7 Questions & Answers] kareem007g:
What does pit file do .Where I can find pit file , and does it safe .
[Sprint Samsung Galaxy S7 Questions & Answers] YMNDLZ:
What model S7 do you have? The pit file is used to map the firmware. If you have a sprint S7 let me know, I'll link you the put file.
[Sprint Samsung Galaxy S7 Questions & Answers] kareem007g:
Yes I have s7 Sprint (sm-g930p)
[Zuk Z1 Q&A, Help & Troubleshooting] kotex:
A friend of mine gave me this phone after unexpected self shutdown. The phone was in a boot loop. At this point where I am right now I think I tried everything I can. I have read various guides and tutorials how to bring this phone back to life and nothing works for me. I suppose that there is some damage on mainboard but till I losse this phone I want to be sure. So the situation looks like this. Since the bootloader in locked and there is no working OS I am not able to unlock the bootloader. (If I am wrong here tell me please because I can't find a solution "how to unlock bootloader without having working OS"). The only metode to flash this phone in this state is to use QFIL. Flashing through fastboot fails everytime - booloader locked -> no *.img flashing. So I have 4 various versions of stock ROM for this phone and after flashing via QFIL the phone doesn't boot. It end with 3 possible ways. 1'st way - clasic bootloop. 2'nd way - frozen on loading screen. 3'rd way - black screen with blue LED, USB diagnostics state, 9006 port opened, no chance to flash because of closed QD port 9008. After this I have to erase every single one of the partitions made through flashing. Then I am able again to flash with QFIL.

I have no idea where is the problem here or what am I doing wrong. I tested the internal memory with a partitioning program in search of bad sectors -> 100% OK. Filled the whole memory with zero's and then formated it. It didn't help. Are every of my stock ROMs broken or is this phone realy damaged? Dear XDA community help me please! I have no clue what can I still try.
[Zuk Z1 Q&A, Help & Troubleshooting] ankurpandeyvns:
Tried ZUI QPST image or CM one?
[Zuk Z1 Q&A, Help & Troubleshooting] kotex:
CM through QFIL already tried. Doesn't boot. I've got .zip ROM images but without TWRP no chance to use it. I have got also an image in .qsb file but no idea how to push it into the phone. Will it work through fastboot to put the file into the phone and than flash through diagnostic mode ?
[Zuk Z1 Q&A, Help & Troubleshooting] Borja Viera:
I just recommend you downloading this https://drive.google.com/open?id=0B7zm16vLHfdBVi1lWlMwelBBdXc . It's ZUI 2.0.49 for qfil, hope it works for you.
[Zuk Z1 Q&A, Help & Troubleshooting] ankurpandeyvns:
Download the CM QFIL image from my video. It should work.
[Zuk Z1 Q&A, Help & Troubleshooting] kotex:
Already tried your copy. To be honest tried it many times in every way I could. The phone is now sitting for over 3h frozen on loading screen. It is never going to boot or tell me that this is normal... Ereased the whole internal memory by delting every existing partition and then flashed it via QFIL. Also tried to format the whole memory in ext4. Same result. Like I said the phone is laying right now for over 3h on the same CYANOGEN screen with some graphical artifacts.

OMG This room booted normaly. Thank you some much my friend! You made my day. It is a step forward. However all connections aren't working. I can't find "OEM unlocking" under Developer Options. I want to unlock the Bootloader as soon as possible so I will be able to put TWRP recovery and then flash it with any available CustomROM
[Zuk Z1 Q&A, Help & Troubleshooting] ankurpandeyvns:
What's the result after flashing ZUI 2.5.330 image?
[Zuk Z1 Q&A, Help & Troubleshooting] kotex:
Many hours frozen on black screen with blue led. 9008 QD port blocked. 9006 USB Diagnostics port opened. No chance to flash until all partitions are erased and the port is reset. Otherwise I need to try getting to the 9008 port by puting the USB cable while holding the "Vol Up" button and then flash it agin with QFIL.
[Zuk Z1 Q&A, Help & Troubleshooting] ankurpandeyvns:
Got successful in flashing?