yashsingh1/xdaforums huggingface dataset:
[Android General] crz6662:
Evidently you do. Tried running without admin and it wouldn't run. Installed fine after giving administration privilege.

Some companies may not appreciate installing stuff on their hardware. I know mine wouldn't.
[Android General] mostafa asal:
I'm so f**ked up, i lost twrp, and even when try to flash it from win 8.1 with administrative privileges it gave me this error.

I flashed it the first time from win 10 , the only pc that I know has win 10 is the company's pc .

Now I'm stuck in an unofficial custom rom with lots of bugs.
[Android General] fawazahmed0:
Why are you using minimal adb and fastboot?, it is old and does not support latest phones.

Use my tool to do the installation for latest adb and fastboot drivers and then after installation just open command prompt (click on start menu -> type cmd -> press enter) and type your fastboot commands there.

Just check the youtube link below, if you are not sure how to open a command prompt

https://youtu.be/IZc9_S6JQpE?t=43
[Android General] mostafa asal:
Alright, will try that and give you feedback.
[Android General] mzeeshan2:
Thank you Fawaz. Installed perfectly.

To check the version use this command in a command prompt: fastboot --version

C:\Users\Administrator>fastboot --version

fastboot version 29.0.5-5949299

Installed as C:\Program Files\platform-tools\fastboot.exe
[Android General] fawazahmed0:
You are welcome, [MENTION=5784318]mzeeshan2[/MENTION]
[Android General] mostafa asal:
Thanx for your amazing tool, my issue was the usb port , it has to be usb 2.0, but your tool saved me a lot of time.
[Android General] ineedroot69:
i still think minimal adb and fastboot is still quite viable till this day the only downside i see is it doesn't accept

adb root

as command other than that i don't see any problem
[Android General] fawazahmed0:
When you have new phone with new partition style, fastboot commands will not work on minimal adb and fastboot.

You will need new fastboot version to make it work with new partition style

For example,

fastboot -w command will not work in minimal adb and fastboot for phones with new partition style

see this for example (person gets errors when executing fastboot -w, for new phone):

https://xdaforums.com/showpost.php?p=80118678&postcount=37
[Android General] jmckeejr:
does it work for mtk device (chinese android 7in head unit)? I just got done installing mtk drivers finally dont want to lose them as havent gotten to test yet.
[Android General] Poor Grammar:
:laugh:....Hell to the Yeah...Finally for the first time in my life I used adb/fastboot to run commands... (No toolkits). Unlocked bootloader last night today I'm planning to install custom recovery and root... I'm proud of myself for this.. All feedback appreciated... Thank you for this awesome tool...Trying to download twrp it says copy file into same folder as your adb/fastboot binaries. Rename the image to twrp.IMG... This might be stupid question but where does your tool put adb/fastboot folder:confused: a little
[Android General] fawazahmed0:
You don't have to copy the twrp.img to the installation folder, just pasted twrp.img in your desktop and then in your command prompt, use cd command to go to desktop.

For example this is how I would do:

1. Paste the twrp.img at desktop.

2. Open command prompt (start menu -> type cmd -> press Enter)

3. Type the following in command prompt

cd desktop (To move command prompt to desktop)

4. Now all the files at desktop are accessible by command prompt, now just flash the twrp image.

You can use cd command to move the directory and cd .. command to move to previous directory

And instead of pasting the twrp.img at desktop, you can paste it at any location you want and use cd command to move to that directory

Refer:

https://www.youtube.com/watch?v=sjaCgavMO18

https://ss64.com/nt/cd.html

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cd
[Android General] fawazahmed0:
Works for All Android devices:)
[Android General] Poor Grammar:
Well is this at least correct?
[Android General] fawazahmed0:
Well, that is not the right way to do it, but if you still want to do this way, first type this in command prompt:

cd "C:\Program Files\platform-tools" (copy and paste the whole line including the double quotes in command prompt)

And now you can flash the twrp.img:)

Explanation:

The above command changes your directory to "C:\Program Files\platform-tools" in command prompt and that's why twrp.img is accessible
[Android General] fawazahmed0:
Try to do the above quoted post again, I have corrected the spelling mistakes, If you get stuck, just let me know and I will help you out:)
[Android General] fawazahmed0:
I have added a Note for Beginners in the guide, please refer that:

https://xdaforums.com/android/general/tool-adb-fastboot-installer-tool-windows-t3999445
[Android General] Bailzer:
After taking into consideration what you said about the PC issue, i decided to wipe my PC and start over from a fresh windows 10.

It worked first time using your tool on a fresh PC, i now believe there were conflicting drivers from previous android phones still installed in the background that were not properly uninstalling via device manager. I hope that anyone encountering similar problems sees this and tries this.

Thanks to you i now have the bootloader unlocked which is a step closer to rooting this phone.

Unfortunately i have already hit the next problem already with this phone, stuck in bootloop after flashing stock boot.img with magisk.

But this is not a problem for you, just simply stating that this phone is a pain in the buttocks to root xD
[Android General] fawazahmed0:
Glad it's working fine now, sometimes it happens that even after uninstalling drivers from device manager, the drivers are not completely uninstalled.

In those cases what you have to do is, reconnect the phone and uninstall the drivers again, until you see a notification message in windows saying USB device not recognized at shown here

After that you can run the tool to install the right drivers for your device.

For the bootloop thing, you can raise issue at magisk repo

Thanks
[Android General] Roopamol_S:
Adp push is not working.. it shows pushed but nothing is in storage..

Also in device manger device name is shown under portable devices..

Adb devices detects the device..

Im a newbie..

Thanks in advance
[Android General] fawazahmed0:
could you share the adb command you are trying to enter
[Android General] Roopamol_S:
Adb push "C:\users\hp\latest adb fastboot tool\filename" /sdcard/data

Also i cant boot into recovery without erasing userdata.. anymethod for booting into recovery without erasing userdata.. if i boot into recovery without erasing user data twrp stuck at logo..

Latest twrp is not installed i dont know if that was the issue..
[Android General] fawazahmed0:
Are you trying to execute adb push command in twrp recovery?

could you try:

adb push "C:\users\hp\latest adb fastboot tool\filename" /tmp

and check whether file got copied to tmp directory

To boot into recovery without erasing userdata, you will have to flash the below after you have completely formated you data partition:

https://xdaforums.com/t/universal-dm-verity-forceencrypt-disk-quota-disabler-11-2-2020.3817389/
[Android General] Roopamol_S:
I have accidently flashed twrp into boot slot a

Any solution?to flash a custom rom
[Android General] Roopamol_S:
I have accidently flashed twrp into boot slot a

Any solution to delete it?

I need to flash a custom rom
[Android General] fawazahmed0:
sorry can't help, I don't own android 10 phone, so not sure about it's partitons etc
[Android General] Roopamol_S:
Its ok :)
[Android General] Waywyrd:
Thanks for this. A lot better than having to install the full software suite just to do a few simple taske on your phone.
[Android General] fawazahmed0:
Welcome (y)
[Android General] folusmile:
lastest adb bat, wont install on my window 10 huawei ..stayin on pls wait installation in process. and no promt pop out on my mi 10 xiaomi. i deleted minimal adb i was using before thought there might be a conflict , still not working
[Android General] fawazahmed0:
Make sure you click on yes button when a dialog box appears in [step 2] and also you should have internet connection while running the tool Example: https://raw.githubusercontent.com/fawazahmed0/justatest/master/uac.png
[Android General] folusmile:
i have internet and i clicked yes..jst staying at please wait installation in process
[Android General] fawazahmed0:
Try disabling your anti virus, it might be blocking the installation
[Android General] folusmile:
Still the same.. Nothing happens
[Android General] folusmile:
Do u hv zip for offline may be that could help
[Android General] fawazahmed0:
You can download offline version from here

Steps:

1. Extract the downloaded file

2. connect your phone in debugging mode to pc

3 . Double click Latest-ADB-Installer.bat to start the installation
[Android General] folusmile:
thanks so much bro... i really appreciate. it force my computer to intall NET Framework. thanks thanks thanks
[Android General] fawazahmed0:
Welcome mate :)
[Android General] MutoSan:
can you please remove these religious phrases. Not needed not useful and its insulting. What you believe is yours and should be kept there. This is a technical/developer forum not one for religions.

For the installer, nicely done but it did NOT install the usb drivers needed for fastboot for my fairphone3. Right now I cant do a restart of my laptop. So I will write later if it worked then.
[Android General] MutoSan:
So made another installation on another laptop and still no connection in Fastboot mode. Also not after restarting the laptops.
[Android General] fawazahmed0:
Connect your phone in fastboot mode to pc & then run the tool.

Hopefully it should install your phone specific drivers
[Android General] fawazahmed0:
Could you try the offline version for this tool

You can download offline version from here

Steps:

1. Extract the downloaded file

2. connect your phone in debugging mode to pc

3 . Double click Latest-ADB-Installer.bat to start the installation
[Android General] xdabushrang3r:
Thank you! It worked! I edited my post above at the same time you posted. It all works now but I had to install it in ADB mode (as you stated in the instructions).

Thanks again!! :D:D
[Android General] xdabushrang3r:
Ok, sorry, I'm back again.

I'm trying to issue this command > fastboot flash preloader ................ but I get this error.

Sending 'preloader' <318KB>

FAILED <Write to device failed <Unknown error>>

fastboot: error: Comand failed

Any idea why this might be happening?
[Android General] fawazahmed0:
Recently Github changed it's TLS to v1.3, and it's seems that is the reason for installations getting failed, as some operating systems like windows 7 doesn't have TLS v1.3 support, I am trying to fix it now, hopefully when it's fixed I will let you know.

Thanks
[Android General] fawazahmed0:
The issue should be fixed now by God's grace.

You have to download the latest version

Here is the link to the latest version of this tool
[Android General] xdabushrang3r:
Thank you sir!

I downloaded the .zip file from github but when I open the folder, the file types of many of the files are unrecognized by windows (Win7).
[Android General] fawazahmed0:
You don't have to download that zip.

Here is the download Link:

Click Here
[Android General] xdabushrang3r:
Thank you Ahmed! It all works now! (y)(y)(y)(y):D

The reason I tried to use the .zip file was because it installed completely, when the .bat file only errored out immediately.

But now you have updated the tool, and the new .bat file installed correctly, and now Fastboot commands are executing correctly. Thanks so much for your help.
[Android General] fawazahmed0:
:)(y)
[Android General] xdabushrang3r:
Aaaand, I'm back again.

I'm stuck in a bootloop at the moment and trying to fix it through fastboot, but commands are hanging and I can't get anything done.

The fastboot devices command works and the phone is recognised, but that's all.

Does that sound like fastboot problems or phone driver problems?
[Android General] fawazahmed0:
No, doesn't seems to be a fastboot or driver problem, as `fastboot devices` command is working fine.

It is also important that the phone should support what ever command you are trying to enter. For example, one of my phone doesn't support `fastboot reboot recovery` while my other phone supports it.
[Android General] xdabushrang3r:
Thanks dude.

I decided to install a new virtual machine and start again, but now the device won't install properly.

I can

only access fastboot mode

and when I plug the phone in and install this fastboot/ADB, it only gets recognised as Android ADB interface, and not Android composite device.

But still, if I try some fastboot commands, my device is recognised, and some commands work and some don't.
[Android General] fawazahmed0:
The issue seems to be in your phone, you may need to unlock the bootloader before trying to flash anything.

Lock and unlock the bootloader | Android Open Source Project

source.android.com
[Android General] xdabushrang3r:
It is unlocked.
[Android General] fawazahmed0:
If it was unlocked, then get_unlock_ability should have output 1
[Android General] xdabushrang3r:
@fawazahmed0

So, in the end, the problem was Fastboot/ADB.

My phone is a Redmi NOTE 8 Pro which uses an MTK processor so I switched to an MTK version of fastboot/ADB (which I didn't know existed) and it worked immediately.

With your Fastboot/ADB, the get_unlock_ability command was outputting 0 even though the phone was unlocked. When I used the MTK Fastboot/ADB, the getvar all command was definitely showing that the phone was unlocked, so there seem to be some major differences between the two versions.
[Android General] fawazahmed0:
Glad everything is working fine for you now.

Thanks for sharing it with me, Could you share me the link to the MTK ADB/Fastboot version, so that I could see if there is something missing in my tool
[Android General] xdabushrang3r:
Sure.

It's here >

MTK_USB_All_v1.0.8.zip

drive.google.com

Taken from the bottom of the first post here >

https://xdaforums.com/t/guide-begonia-unlock-bootloader-flash-twrp-and-root-proper.3995919/
[Android General] fawazahmed0:
Thanks
[Android General] xdabushrang3r:
@fawazahmed0

If you're interested, I just wrote up another post about fastboot flash ..... commands not working for me at all, even using the MTK version above. The only way they work is if I use it together with an mfastboot script for Motorola phones (I have a Redmi NOTE 8 Pro). It's really strange and I don't understand it but it works.

I might try your version again together with the mfastboot script and see if that works.
[Android General] Lim_Dul:
Hi @fawazahmed0

I'm on quite an old phone - Xiaomi Mi Mix 2 with Xiaomi EU 12.1 installed.

Your installer installs the ADB drivers just fine but fastboot doesn't recognize the device. I tried re-running the script with the phone in fastboot mode but no luck so far. :(

Any advice?

Update: Aaaand fixed it myself. Somehow the Android Bootloader Interface drivers were not being installed. I checked the Device Manager and my phone was marked as an unknown device. I installed the Google drivers manually and now everything is fine.
[Android General] mslezak:
Thanks a lot for this tool. Had no idea how old Minimal ADB and Fastboot was until I learned I had to use your script to flash a ROM on my OnePlus 8T. Without it, installing would be a pain. Thumbs up!
[Android General] Daniel29493:
I also need help.

Drivers are successfully installed with your tool.

I connect my Samsung Galaxy S9 to my notebook (via USB-cable).

Via "adb devices" I can see my device and via "adb reboot bootloader" my phone goes to its bootloader.

But then I can´t see my device via "fastboot devices" anymore. And also other things like "fastboot flash recovery ...." don´t work. It seems like fastboot-mode is not recognized.

The following screenshot shows the device (in fastboot-mode) in the device manager.

Is anybody able to help me?
[Android General] Eddiemc:
You're probably missing fastboot drivers. Or they weren't installed properly. (If they your shouldn't have problems now..)

Here's a few suggestions:

Put your phone in fastboot and run this tool again.

Or Google a bit for manual install, like here:

https://xdaforums.com/t/guide-recover-from-soft-brick-fix-your-dead-malfunctioning-phone.3876849/

Or try

Basically If your phone is in fastboot mode, go into windows update and somewhere under advanced options you can open a pulldown and install missing drivers and programs. Most likely you'll find it there.
[Android General] danijymens:
Hello guys, I've tried to use @fawazahmed0 tool in Windows 10 to root my phone (ASUS Zenfone Max Pro M1) but I can't since when I run "fastboot flash recovery twrp.img" the command returns "waiting for any device" and it gets stuck there. It seems like a driver problem but I don't understand why the drivers don't get installed or aren't recognized since the tool returns no errors...

Please, next find the steps I follow:

1- Connect the phone to the laptop with USB Debugging enabled and File Transfer selected.

2- Run "Latest-ADB-Installer.bat".

3- The phone goes automatically into "CSC FASTBOOT MODE".

4- Run "Latest ADB Launcher" located in My Desktop.

5- Copy the "twrp.img" file to "C:\Users\admin\Latest ADB Fastboot Tool".

6- Run "fastboot flash recovery twrp.img" from the "cmd" console opened in step 4.

I've highlighted in the screenshots "Tool_1.jpg" and "Tool_2.jpg" a line where it says in Spanish that "The system cannot find the specific driver". I think that might be the cause of the problem.

Also, if I go to "Device Manager" in my Windows 10 I see that the Android driver appears with a yellow-warning sign which could mean that the driver isn't correctly installed or recognized. I've already tried to uninstall the Android driver and run the tool again but the issue persists.

Find attached all the screenshots showing what I mention above.

I would really appreciate any help in order to solve this problem.

Many thanks.

Kind regards,

Daniel
[Android General] fawazahmed0:
Yeah, fastboot drivers are not installed.

Follow these steps:

1. Boot your phone to 'CSC FASTBOOT MODE'

2. Connect the phone to PC/Laptop.

3. Run "Latest-ADB-Installer.bat" to install Fastboot drvivers

Thanks
[Android General] danijymens:
Thanks @fawazahmed0 for your prompt response.

I've tried your suggestion but I got the same result. However, this time I don't see the line "The system cannot find the specific driver" in the tool log.

What do you think it could be happening? Could you tell me what else I can try please? Perhaps, trying in another computer?

Please, find attached the new screenshots.

Best regards
[Android General] fawazahmed0:
Hi,

I am not sure why it's not working for you, you seems to follow all the steps properly.

Can you try installing the drivers manually

Here the steps:

1. Boot your phone to fastboot mode

2. connect your phone to PC/laptop

3. Download and unzip this

4. Go to this link and follow from step no 7
[Android General] myblessayu:
Hi

I have a note 10 (mojito) and unable to run fastboot commands or get it detected on Win10.

The script ran successfully but still not detected. I tried the script with device in USB Debugging mode as well as fastboot mode.

Any help?
[Android General] fawazahmed0:
Could you try manually installing the drivers

Here is the link to the steps
[Android General] myblessayu:
Tried these steps.

I selected the android_winusb.inf file on Step 12 but it only showed me

"Android Bootloader Interface" , no "Android ADB Interface". I went ahead with installing that and it worked, but for only once.

But after rebooting device or plugging in the phone again, fastboot doesn't detect the device again. Is there any permanent solution?
[Android General] fawazahmed0:
That should have worked permanently, it might be an issue with your windows OS. You should try a different PC/Laptop
[Android General] TheJutts:
Doesn't work for my phone...

I put the command "fastboot devices" and "no devices found"...

Moto E6s.

--Edit--

The drivers are installed, when i connect the phone on PC says "android device", but on fastboot doesn't have any device...

Ps.: sorry for my bad english.
[Android General] fawazahmed0:
Try this:

1. connect your phone in fastboot mode to pc/laptop.

2. Run the Latest-ADB-Installer.bat , to install fastboot drivers
[Android General] TheJutts:
Hi again, i make this again today, but i have the same error.

On connect to Windows, he say "Android Device" on drivers, but, the fastboot say "no devices".

Img 1 have my "device" on windows.

Img 2 have the fastboot, saiyng nothing...

I have the Morotola Moto E6s (2020)
[Android General] TheJutts:
anyone?
[Android General] fawazahmed0:
Could you uninstall the drivers of device from device manager.

Here are the steps you should follow:

1. Open device manager

2. connect your phone to pc in fastboot mode

3. You will see connected device in device manager, expand it and right click -> click uninstall and check delete the driver software for this device and click ok

4. Now reconnect the phone to pc in fastboot mode

5. Run my tool, hopefully it will detect and install the right drivers for your phone

Thanks
[Android General] TheJutts:
Well, i make this too, and i have this result :

The tool adb doesn't recognizes my phone...

Image bellow.
[Android General] daonayt:
Hi

Using this tool to flash GSI image to Doogee Y7 (do not buy this phone it is terrible).

I get FAILED (remote: data too large). If I add -S 256M flag, it starts but then i get FAILED (remote: Flashing Lock Flag is locked. Please unlock it first!).

I unlocked the bootloader already. How do I unlock this flag?

I am following this guide: https://www.getdroidtips.com/how-to...eble/#Flash-the-GSI-USing-ADB-Fastboot-Method
[Android General] ian_eo:
Thanks this make things easy.
[Android General] fawazahmed0:
Thanks 👍🏻 for feedback
[Android General] Markimoos:
Hey there, I downloaded the .bat file, enabled USB debugging, chose USB for file transfer on my phone and connected it to my laptop. but when I double click on the file, it only shows the window that opens for a second and then closes. I've attached a video showing what I mean. (I had to pause the recorded video to be able to actually read what it says) The command window is in German but it roughly translates to "the command 'powershell' either is misspelled or couldn't be found"

View attachment 5367509

Edit: I had to run the file as administrator!
[Android General] fawazahmed0:
You might need to install powershell
[Android General] Markimoos:
The problem already resolved itself when I ran the file as administrator. thanks for the tip tho!
[Android General] ReikoChaos:
Hello! I've tried use the tool, because i'm having problem with USB connection. I already configure depuration USB, but when I plug the USB cable, it comes a infinity loop of openning and closing Depuration option. I've tried in diferents computers and used more than one C cable, but none solution. Does anybody have idea of what's happening? I believe that the entrance of cable C on the cellphone is in normal conditions because it star to charge normally the cellphone batery.
[Android General] grantiago:
Thank you. This was silently failing on my windows 10. I had to Disable driver signing enforcement in the advanced startup on windows. Complete instructions here:

https://xdaforums.com/t/guide-fix-device-not-showing-up-in-fastboot-mode-windows-10.4194491/

I followed until step 4 and then ran this installer as admin. I got a couple warning screens from windows that I hadn't got before. All well now. Thank you!