yashsingh1/xdaforums huggingface dataset:
[Android General] jaccydan:
HI Fawaz, I am trying to install Magisk via adb fastboot (never used adb before, just TWRP) - so that I can root my phone.

Will your tool do the job via cmd?

re. see 'Method 2':

Root Android Phone with ADB, Magisk & TWRP

Here are 2 different methods to root your Android phone or tablet using ADB and Fastboot commands, Magisk and install TWRP Recovery.

technastic.com

re. see 'Patching images':

Installation

The Magic Mask for Android

topjohnwu.github.io

Thanks.
[Android General] fawazahmed0:
Yes
[Android General] jaccydan:
Thanks
[Android General] RustedRoot:
What a great piece of software. Thanks. Used on my wonky UMIDIGI A11 Pro Max
[Android General] lenigma1too:
@fawazahmed0 Awww!😁

I am humbled by your statement in OP about me being a supporter!

I JUST noticed that my friend!

Stay safe, and never stop pursuing what makes you happy!;

Cheers!
[Android General] abokadotoss:
hey it doesn't still work, all the steps i followed properly and i installed it many times but it doesn't work as plan, can anyone help me? thanks
[Android General] PPEyt:
It's perfectly working!!
[Android General] ameeno:
is there any uninstaller?

mipcsuite does not like these drivers
[Android General] evilhawk00:
For those who own Oneplus devices facing fastboot driver problems:

This tool doesn't work for Oneplus devices. Tried this tool but didn't work for my phone. It seems like the driver from Google doesn't work for Oneplus devices, it is necessary to use the driver "Oneplus_android_winusb.inf" from "OnePlus USB driver 1.0.0".

Device: Oneplus 8T

Environment: Windows 11

I followed this guide and solved the problem: https://www.droidwin.com/fix-android-device-not-showing-in-fastboot-mode/
[Android General] lukeaz:
Thank you! This saved my xperia xz1c
[Android General] Viqsi:
Nonetheless, finding out about it (via looking at this tool and seeing what it made use of) turned out to be helpful for me with getting the Fastboot driver installed for my Xperia 1 III (Sony provides a revised INF that includes the correct device id but not re-signed drivers, and I really didn't want to have to go through disabling signature enforcement on a Secure Booted Windows 11 machine...!), so thanks for that too. :)
[Android General] sofene:
I'm not sure what you stated here is absolutely correct. I joined the forum before the advent of Android and most of the devices here were Windows based
[Android General] TtayTaylor:
I have this problem however my device isn't labeled as ANYTHING in the device manger when in fastboot mode, been growing grey hairs for days and I still cant figure it out.
[Android General] TtayTaylor:
When I do this I get the message "the folder you specified doesnt contain a compatible sotware driver for your device. If the folder contains a driver, make sure it is designed to work with WIndows for x64 - based systems"
[Android General] öneböy:
Hello, I did everything as written. My phone is always not detected. It just says MTP USB Device. What am I doing wrong?
[Android General] dthknt:
Don't know if you've solved it, but you need to get Windows drivers for your phone, then it should work
[Android General] Poor Grammar:
[Delete]

So once in fastboot I type fastboot flash twrp.img
[Android General] fawazahmed0:
You will have to follow same steps as provided in your twrp guide, each phone have different steps for flashing twrp. So can't help you in that.

But usually the command to flash twrp is:

fastboot flash recovery twrp.img
[Android General] LivinOne:
Thank you for this. Works great...

In case anyone in the future has issues with Windows not loading the driver automatically for Fastboot Mode...

Connect Fastboot mode tablet

Open Device Manager, right-click the unknown item under Android

Point the installer to root of the C Drive!

It will find and install the driver as ADB driver, and Fastboot will work.

Hope this helps someone in the future.
[Android General] fawazahmed0:
Thanks for your feedback:)

Just wanted to say one thing [MENTION=904856]LivinOne[/MENTION] , if somehow fastboot drivers are not installed, you can connect the phone in fastboot mode and then run my installer tool, it will automatically detect and install fastboot drivers and take care of everything, you don't have to do anything special.

Hope this will help anyone having problem related to fastboot in future:)
[Android General] JDBarlow:
OMG!! I was beginning to bang my head against the wall UNTIL I FOUND THIS TOOL!!

I had to setup a new PC on windows 10 and it wouldn't let me manually install my winusb.inf drivers for my Razer Phone 2 fastboot.

BUT this did everything man :highfive: it works great it even rebooted my phone to bootloader mode and installed flawlessly!!

Thanks for this i'll never have a problem in the future!!
[Android General] fawazahmed0:
Thanks [MENTION=2889221]JDBarlow[/MENTION] for your feedback, I am very happy that my tool helped you:)

Your feedback made me smile, it would be great if you could share the link to this tool, if someone asks anything related to adb,fastboot installation etc.

And yeah one more thing, Whatever Good we do and it helps people, its reward is from God and whatever Evil we do to the people, the consequences of it is against our own soul.:)
[Android General] JDBarlow:
Amen bro!! Oh it's going to be shared believe me :D:D

Blessings man :angel::victory:
[Android General] mistasz:
Windows 7 x64

I have still the same error: Error: java.lang.SecurityException: Permission Denial: attempt to change compone

ntstate from pid=4582, uid=2000, package...............................

Is there any way to uninstall it?
[Android General] fawazahmed0:
You have to be root (magisk or supersu installed) to do it.

https://android.stackexchange.com/questions/56620/enable-and-disable-system-apps-via-adb
[Android General] mistasz:
OK thank you.

I have next question, how to uninstall this ADB tool?
[Android General] fawazahmed0:
Just delete the C:\Program Files\platform-tools folder and done :)
[Android General] Darr247:
If you don't mind, there are MANY exceptions to the directions given here so far...

In windows 10, if you have OneDrive enabled, your desktop will be there. So, to get there you'd run

C:\[whatever]> CD \

then

C:\> CD %userprofile%\onedrive\desktop

to reach your desktop folder. Or,

C:\> CD %public%\desktop

to reach the 'public' desktop, which is shared by all users on computer.

If you want to manually install the latest android device bridge (ADB) without using any programs like the 'minimal adb/fastboot', or the batch file provided at the beginning of this thread...

download the command line tools from the bottom of https://developer.android.com/studio

(click the link and accept the terms & conditions, then download from)

https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip

Unzip with paths to C:\Android\SDK\

(e.g. in C:\ make a new folder 'Android' then in that folder make a new folder named 'SDK', then open the sdk-tools-windows-4333796.zip file in File Explorer, drag the 'tools' folder and drop it in Android\SDK\ )

Go to https://www.java.com/en/download/manual.jsp

and get the Offline installation file

(get both the 32 and 64 bit versions if you want to be able to run both 32 and 64 bit java apps.)

Install the latest JRE and run

C:\ >SET JAVA_HOME C:\program files\java\[jre version]

e.g. I ran

C:\ >SET JAVA_HOME C:\Program Files\Java\jre1.8.0_241

Then run

C:\ >CD \Android\SDK\tools\bin

and

C:\Android\SDK\tools\bin>sdkmanager --install platform-tools

you can ignore the error message about repositories.cfg could not be loaded (installing the whole Android SDK would get rid of that error).

but read & accept the license

Then run

C:\Android\SDK\tools\bin>sdkmanager --install extras;google;usb_driver

Again, you can ignore the repositories.cfg error message.

Now you have the latest adb.exe and USB drivers.

Press the Windows key and the letter R at the same time, and in the 'run' window that opens type in sysdm.cpl and hit Enter. On the Advanced tab click the Environmental Variables... button. In the bottom 'pane' click on the Path entry and click the bottom Edit... button. Click New and in the new field that opens at the bottom of the Path window enter C:\Android\SDK\platform-tools and click OK. The platform-tools folder is where the sdkmanager batch has installed ADB.

Finally, below the System Variables window, this time click New - for Variable Name enter JAVA_HOME and for the Variable Value put C:\Program Files\Java\jre1.8.0_241 (alter to match the location of the version you're using... e.g. if you're using only the current 32-bit version, the path would be C:\Program Files (x86)\Java\jre1.8.0_241 but within a couple months it will be C:\Program Files (x86)\Java\jre1.8.0_242, et cetera).

By making those entries, you won't need to CD to the correct subdirectory to run ADB, and the JAVA_HOME variable will be permanent (i.e. surviving reboots, and until you change it) so you won't need to run SET JAVA_HOME C:\program files\java\[jre version] every time you want to run the sdkmanager batch file to update the Android SDK's command line tools.

Hope that helps.
[Android General] wadywadywady:
Thx for your tool, it solved my problem.
[Android General] primazz:
Thank you Sir,

Working fine. Windows 10 Pro :good:
[Android General] AstroJoseph:
Thank you, I was looking for a guide from long time.
[Android General] fawazahmed0:
Thanks, the tool I made is for beginners, so that they don't have to do all these things

Also I wrote the 'cd desktop' thing for beginners, but you can always paste the files at any folder you want and then cd to that directory and run adb/fastboot commands.

I will update my tool with a message that you can cd to any directory you want , probably when I get some free time.
[Android General] fawazahmed0:
Glad my tool helped you :)
[Android General] Poor Grammar:
Can't load twrp.IMG using adb/fastboot.. I unlocked bootloader no problem, fastboot reboot works.. Only command not working is twrp.IMG can't load error..
[Android General] Poor Grammar:
I think this is the Problem..Sorry for duplicates
[Android General] fawazahmed0:
Post Screenshot of error you are getting
[Android General] Poor Grammar:
Here goes
[Android General] fawazahmed0:
Paste the twrp.img at desktop and type 'cd desktop' (without quotes) in command prompt and then continue with your other fastboot commands commands
[Android General] Poor Grammar:
Still no luck
[Android General] fawazahmed0:
Have you copied the twrp.img at desktop?
[Android General] Poor Grammar:
Yes.. Twrp.IMG file downloading as a cd disc image
[Android General] Poor Grammar:
Yes.. But twrp.IMG file downloading as a cd disc image
[Android General] fawazahmed0:
right click on the twrp.img on desktop, click on properties and send me the screenshot of General and Details Tab
[Android General] fawazahmed0:
Did you renamed the file extension manually? I think the file name is twrp.img.img and not twrp.img

Here is the command you should try:

fastboot flash recovery twrp.img.img
[Android General] IndoD:
Will this work with every Android version? I have Marsmellow 6.01
[Android General] Poor Grammar:
:laugh::cool:.....Thankkkkkkk youuuuuu.... That was it...wooohoooo....It feels really great to accomplish this finally... I finally did it unlock bootloader,install twrp recovery without a toolkit...Lol... I'm proud of myself and thank you again for being patient sir....I will never forgot this... Root coming up:good:
[Android General] fawazahmed0:
Yes it should work with every Android version
[Android General] IndoD:
Thanks
[Android General] Poor Grammar:
To update boorloader and radio.IMG do I do the same thing..? Copy to desktop then CD desktop
[Android General] TheCoryGuy:
Throwing God stuff in there makes this seem like this tool is on a holy mission to wreck my computer. lol
[Android General] fawazahmed0:
:laugh:
[Android General] Ash2489:
What is adb is used for windows phone?
[Android General] fawazahmed0:
It's for Android

ADB - Android Debug Bridge
[Android General] fawazahmed0:
Welcome:)
[Android General] Aldione:
i'll try it later and see if working for me, because on my laptop working fine but my desktop doesnt work.
[Android General] fawazahmed0:
If there is any problem with my tool, just let me know, I am always there to help:)
[Android General] escknx:
This is amazing. Win10 didn't want to eat Google's USB driver for fastboot for Google Glass EE2.

This thing fixed the issue.
[Android General] fawazahmed0:
Thanks for your feedback [MENTION=1358082]escknx[/MENTION] :)
[Android General] escknx:
Yes it was a disaster, I'm not the only one who had issues with Glass EE2 on Win10. I tried many different PCs, USB controllers and lost count of USB cables - none have helped.

I was one step from installing Win7 and then contacting warranty/support department.

This utility fixed headache in a few clicks.

This needs to be shared far across the ocean to save people's nerves so they can make their little devices great again.
[Android General] fawazahmed0:
You made my day mate :)
[Android General] er.varun75:
Sharing

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] siblues:
I can't get this to work either on a Huawei watch with Win 10 either.Everything loads just fine but the watch is still not recognized in device manager it comes up as an unrecognized device and the error message device descriptor message failed.Any help would be greatly appreciated.I need to root this watch to install Xdrip+ for a young diabetic.
[Android General] fawazahmed0:
kindly share error screenshot
[Android General] fawazahmed0:
Run the tool again when the device shows unrecognized device status in device manager, hopefully that should fix the issue
[Android General] ToonBeamZ:
Whenever i type fastboot devices , it does'nt show anything

Or any fastboot commmands is showing waiting for device

Can anybody help me??
[Android General] jcsww:
Do you have USB Debugging enabled in Developer Options? Have you installed the ADB drivers?
[Android General] fawazahmed0:
Boot your phone to fastboot mode and then connect your phone to pc and then run the tool, hopefully that should fix the issue for you

or

As [MENTION=3116388]jcsww[/MENTION] suggested, just enable usb debugging mode in your phone and then connect your phone to pc and run the tool, that will install both adb and fastboot drivers and that should hopefully fix the issue for you
[Android General] ToonBeamZ:
I was already using minimal abd and fastboot tools everything was working like charm but i acnt install twrp in realme 3 so i read his guide and installed his adb tools and uninstalled minimal tools.

---------- Post added at 01:23 PM ---------- Previous post was at 01:21 PM ----------

I tried it but the installation shows red text when installing drivers and theres platform tools in program files and the adb works only fastboot doesnt work
[Android General] fawazahmed0:
You have realme 3, even I use the same phone and this tool works for me.

You have to unlock the bootloader of this phone first before you can even boot to fastboot mode.

What red text does it show during installation? please share the screenshot.

If it's driver warning, just select install anyway.
[Android General] Darr247:
Pull down the Notifications on your device, look for USB options... when you tap that notification, choose Charge Only, NOT MTP, PTP, Media, Audio nor RNDIS.

If there is no notification for it, look in Dev Options, where you are also likely to find USB Debug, as someone else noted (that should be checked, too).

Fastboot won't talk to the device through an MTP connection.
[Android General] ToonBeamZ:
This what it shows
[Android General] fawazahmed0:
Thanks for sharing the screenshot, I am looking into it, hopefully God willing i will fix this issue and help you out
[Android General] fawazahmed0:
Ok, here is the quick fix specifically for you.

1. Download the attached 'ADB Fastboot & USB Driver Installer Offline.zip' and extract it.

2. Connect your phone with USB debugging enabled to pc (or if you just want fastboot drivers to be installed ,boot your phone in fastboot mode and connect it to pc)

3. Go inside extracted folder and double click Latest-ADB-Installer.bat to start the installation.
[Android General] lcparente:
I am trying to give permission on SystemUI Turner application. I did all the steps on [Tool] Latest ADB Fastboot and USB Driver installer tool for Windows and yet I have this problem below:

"(...)

C:\>

C:\>adb shell pm grant com.zacharee1.systemuituner android.permission.WRITE_SECURE_SETTINGS

* daemon not running; starting now at tcp:5037

* daemon started successfully

error: no devices/emulators found

C:\>

(...)"

Everything seems fine during the installation process; but, my device is not recognized properly. Does anyone here have an idea?! =\
[Android General] Darr247:
If your device is not found when you run

> adb devices

then either the driver is not installed properly, or you're trying to talk through an MTP connection.

Do you see anywhere (like, in the device's pull down notifications menu) you can tell it the USB connection is 'Charge Only' ?
[Android General] fawazahmed0:
During Installation, did your phone boot to fastboot mode?

Also can you share the screenshots of installation
[Android General] lcparente:
Nope. It did not restart to fastboot screen.

I plugged my smart into the USB and both setting 'File Transfer' or 'MPT' or nothing, the installation of the driver and ADB seems to run fine. Then, I turned off my phone; re-started it in fastboot mode; I did the installation of ADB again; re-started the phone, and yet the same "error: no devices/emulators found" happened.

I did not share the print-screen because there was no error during the installation process =\
[Android General] fawazahmed0:
Ok, Here is what you have to do, so that I could help you:

1. Click on Start Menu -> Type 'Device Manager' -> and Press Enter

2. Take the Screenshot and Share

3. Connect your phone to pc with USB Debugging mode enabled (Very Important Step, USB Debugging mode has to be enabled )

4. Take the Screenshot and Share
[Android General] lcparente:
[MENTION=6615855]Darr247[/MENTION], with this ROM, it seems that when I plug the USB in, even the charging seems not to work =(

[MENTION=6376476]fawazahmed0[/MENTION] and [MENTION=6615855]Darr247[/MENTION], I am using my old laptop with Window 8 and... It seems to be a problem with drivers for this Mi A3.

I installed Mi PC Suite and when I plug-it here, the PC Suite instantly pop-up a message saying "Looks like you are missing some driver..."

I will do the following later night: I will try to do the same thing via my brother's desktop with W10 and see what happens. So that, I will avoid mo troubles or doubt for you guys here.
[Android General] lcparente:
That is it, guys: I failed again =\

This time I went through Windows 10 desktop and did the same steps from [Tool] Latest ADB Fastboot and USB Driver installer tool for Windows forum.

So, I executed the Latest-ADB-Installer.bat with my smart plugged-in, of course. The *.BAT did all the work and this time my device booted in fastboot (such thing did no happen on my Windows 8), the software continued to install the things, and pretty much was done properly.

Then, I opened CMD as Admin and set the 'permissions lines' to enable SystemUI Turner; BUT, I got the following error line that was this one bellow:

(...)

C:\>

C:\>adb shell pm grant com.zacharee1.systemuituner android.permission.WRITE_SECURE_SETTINGS

* daemon not running; starting now at tcp:5037

* daemon started successfully

Security exception: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.

java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.

at android.app.ContextImpl.enforce(Unknown Source:97)

at android.app.ContextImpl.enforceCallingOrSelfPermission(Unknown Source:13)

at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(Unknown Source:47)

at com.android.server.pm.permission.PermissionManagerService.access$900(Unknown Source:0)

at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(Unknown Source:8)

at com.android.server.pm.PackageManagerService.grantRuntimePermission(Unknown Source:12)

at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(Unknown Source:63)

at com.android.server.pm.PackageManagerShellCommand.onCommand(Unknown Source:846)

at android.os.ShellCommand.exec(Unknown Source:41)

at com.android.server.pm.PackageManagerService.onShellCommand(Unknown Source:12)

at android.os.Binder.shellCommand(Unknown Source:0)

at android.os.Binder.onTransact(Unknown Source:144)

at android.content.pm.IPackageManager$Stub.onTransact(Unknown Source:21)

at com.android.server.pm.PackageManagerService.onTransact(Unknown Source:0)

at android.os.Binder.execTransact(Unknown Source:65)

C:\>

C:\>

(...)

Apart from my W8 on my laptop do not recognize my smart properly, I am starting to think that the Miui11 ROM on my Mi A3 did not fit well =\

Do you guys have another idea in mind?
[Android General] fawazahmed0:
I tested this tool on windows 7 and windows 10, I have not yet tested it on windows 8, hopefully I will test this tool in windows 8 and fix the problems and you will be able to use your phone in windows 8 also.

Coming to your second question,

adb shell pm grant com.zacharee1.systemuituner android.permission.WRITE_SECURE_SETTINGS

Above code is used to grant permissions, if you don't have root, I am not sure why you are getting the error, I would advise you to root your phone and the SystemUI tuner will automatically get all permissions and you don't have to do all these things.
[Android General] Darr247:
For that error, look for more USB debug settings in Developer Options... there might be up to 3 depending on the device. So keep scrolling down past the one you already checked.
[Android General] fawazahmed0:
[MENTION=8881356]lcparente[/MENTION] I just installed windows 8.1 (With latest updates installed)and tested this tool in it, and everything is working fine

Here is the things you should do:

1. Connect your phone in USB debugging mode and run the tool.

If the above doesn't help, then:

1. Go to Start-> WIndows Update -> Install all the latest updates and restart the pc.

2. Connect your phone in USB debugging mode and run the tool.

Hopefully this should fix the drivers issues in windows 8 for you.