How to Enable USB Debugging through ADB? - General Questions and Answers

Right then. First things first, I apologize if I don't use the proper lingo associated with everything; I'm as super nooby as can be.
So, here's my problem: My rooted, Samsung Galaxy S3 has had it's screen shattered and its digitizer broken. The screen is completely black and the touchscreen does not respond. It didn't have a password (it was just swipe to open), which I suppose makes things easier, though. The phone itself still turns on, and I receive notifications and all that, but I am completely unable to do anything about. I understand that I am able to view and operate an Android phone through my computer, so I was hoping that'd work. Well, as the title of this topic hinted at, I didn't USB debugging enabled on my phone, which pretty much every program I found requires. So, I searched around, and learned that ADB can activate USB debugging through a usb cable and some tech magic. Unfortunately, I am not a tech magician and the articles I found were hieroglyphics. I spent some time reading, researching, reading researching, but it still doesn't make sense to me. I have ADB installed, but I don't know how to use it at all. I can launch "adb.exe" in administer mode but nothing occurs. I'm wondering if anyone would be able (or want to) explain to me, preferably step-by-step on how to enable USB debugging be it through ADB or some other, miraculous technique.
For anyone interested, these were the articles I looked at:
http://forum.xda-developers.com/showthread.php?t=1725858&page=2
http://android.stackexchange.com/qu...ndroid-if-forgotten-pattern-for-screen-unlock
http://android.stackexchange.com/questions/120394/can-i-enable-usb-debugging-using-adb
http://android.stackexchange.com/qu...bug-mode-was-disabled-how-can-i-re-enable-adb
http://stackoverflow.com/questions/13326806/enable-usb-debugging-through-clockworkmod-with-adb
http://developer.android.com/tools/help/adb.html
http://forum.xda-developers.com/showthread.php?t=2786395

Hey dude, what you are talking that can enable USB Debugging from ADB is possible only on custom ROMs. But on stock ROM this is not possible.

Related

Issues accessing usb diagnostic mode in Lollipop/cm12/pa

Ok, after searching quite a bit, there doesn't seem to be any way of configuring usb diagnostic mode (sys.usb.config diag,adb) in CM12/PA 5.0.2. I've tried several times, and the closest I get is adb working and the diag port either constantly turns on and off, or doesn't read at all. I'm thinking it might be due to the fact that I can't seem to fully shut off mtp in storage. It only turns off (meaning the screen to switch doesn't open) after I issue the diag,adb command. I'm not sure, but I'm leaning towards this being some sort of new setting for Lollipop, which, if so, I guess I can try writing a script that might allow diag access. But, if anyone has any insight into this, please let me know. Thanks for reading.
-Mike
Shameless bump is shameless. For shame...
Hello, did you find something out?
I'm looking for a solution too. I think we are screwed until there is an OS update that fixes it
*delete*
hi guys...
any news from diag mode for CM12..?

[Completed] Screen inaccessible(no display) usb debug disabled cmd help

Nexus 5 running 5.1 stock
I had recently and sadly had an accident with my phone where the screen is completely useless. Shattered is a harsh word, but it's sitting in that condition. It does however still turn on. There are parts of the screen that display, but for some odd reason, its completely mirrored and upside down.
I have Android tools and drivers installed. And knowing something like this might happen, I had USB debugging enabled. BUT, for even stranger reasons, I'm guessing it's disabled because through cmd on platform-tools, it says it's unauthorized. Though the little window of display my phone pushes, I'm guessing I'm getting a dialog asking for USB debugging to be enabled. I'm not too sure how I got to this window, but it randomly appears on restarts of the device, and half the time, it just restarts normally like any restart.
I was wondering if there was a way I can push a command line using cmd on my PC to accept or continue from the dialog box that I literally can't see.
I looked far and wide on Google and this beloved website, but am having a hard time finding a solution.
The device is bootload unlocked, running stock on Lollipop.
I do not know if rooting and installing TWP will affect my data, as it is the only thing I really don't want to lose. I wish to keep stock as I am completely fine with it and I have tried custom Roms, but I still wish to continue using stock.
I'm not too familiar with some words used in explanations on this site, so please respond as if I'm 7 years old :silly:
My initial goal was to (while having usb debug enabled) fastboot (i think i'm using the right term) Mobizen, then mirror the screen on my pc, and control the device to upload everything to my cloud storage.
momostarz said:
Nexus 5 running 5.1 stock
I had recently and sadly had an accident with my phone where the screen is completely useless. Shattered is a harsh word, but it's sitting in that condition. It does however still turn on. There are parts of the screen that display, but for some odd reason, its completely mirrored and upside down.
I have Android tools and drivers installed. And knowing something like this might happen, I had USB debugging enabled. BUT, for even stranger reasons, I'm guessing it's disabled because through cmd on platform-tools, it says it's unauthorized. Though the little window of display my phone pushes, I'm guessing I'm getting a dialog asking for USB debugging to be enabled. I'm not too sure how I got to this window, but it randomly appears on restarts of the device, and half the time, it just restarts normally like any restart.
I was wondering if there was a way I can push a command line using cmd on my PC to accept or continue from the dialog box that I literally can't see.
I looked far and wide on Google and this beloved website, but am having a hard time finding a solution.
The device is bootload unlocked, running stock on Lollipop.
I do not know if rooting and installing TWP will affect my data, as it is the only thing I really don't want to lose. I wish to keep stock as I am completely fine with it and I have tried custom Roms, but I still wish to continue using stock.
I'm not too familiar with some words used in explanations on this site, so please respond as if I'm 7 years old :silly:
My initial goal was to (while having usb debug enabled) fastboot (i think i'm using the right term) Mobizen, then mirror the screen on my pc, and control the device to upload everything to my cloud storage.
Click to expand...
Click to collapse
Hi, thanks for using XDA assist!
Please direct your question here for further assistance:
http://forum.xda-developers.com/google-nexus-5/help/help-thread-nexus-5-question-t2496506
Good luck!

[Completed] Impossible is not a solution

Ok, I've been at this for two days now. I'm trying to get an S4 to display on a computer screen so it can still be used until the owner can afford a repair.
The screen isn't cracked, but the LCD and Digitizer are completely broken. The phone still functions when connected via USB.
- side note, my phone is currently in the same condition but before it went down I had it rooted and put into debugging mode. I was able to accomplish this feat without an issue, from my phone.
Okay, so the phone I'm currently trying to get this to work on:
1. Isn't rooted
2. Screen is black and no touch response
3. Not in developer mode, not set for debugging
4. Computer can recognize phone via USB
5. Able to still install apps from the goggle play store via the website
Goal: get it to be able to mirror/display on a computer
I've seen posts on the internet stating everything from impossible to no it's possible but we won't give you the details.
These things are basically handheld computers, even without it being "rooted" i should be able to access it in some way from a computer to put it in debugging mode even if i have to program it in myself. Which is why "impossible" is something I cannot swallow.
Any tips, advice or a point in the right direction here would be appreciated. Thank you.
-currently im trying out this Mobile Go program even with the phone not in debugging.
-I feel like there has to be a way to force the phone into debug mode even if you cannot physically use the touch screen or see anything.
OuttaLuck said:
Ok, I've been at this for two days now. I'm trying to get an S4 to display on a computer screen so it can still be used until the owner can afford a repair.
The screen isn't cracked, but the LCD and Digitizer are completely broken. The phone still functions when connected via USB.
- side note, my phone is currently in the same condition but before it went down I had it rooted and put into debugging mode. I was able to accomplish this feat without an issue, from my phone.
Okay, so the phone I'm currently trying to get this to work on:
1. Isn't rooted
2. Screen is black and no touch response
3. Not in developer mode, not set for debugging
4. Computer can recognize phone via USB
5. Able to still install apps from the goggle play store via the website
Goal: get it to be able to mirror/display on a computer
I've seen posts on the internet stating everything from impossible to no it's possible but we won't give you the details.
These things are basically handheld computers, even without it being "rooted" i should be able to access it in some way from a computer to put it in debugging mode even if i have to program it in myself. Which is why "impossible" is something I cannot swallow.
Any tips, advice or a point in the right direction here would be appreciated. Thank you.
-currently im trying out this Mobile Go program even with the phone not in debugging.
-I feel like there has to be a way to force the phone into debug mode even if you cannot physically use the touch screen or see anything.
Click to expand...
Click to collapse
Greetings,
Thank you for using XDA Assist. You can ask the experts in the GS4 Q&A forum found here:
Galaxy S 4 Q&A, Help & Troubleshooting
Good luck!

Can usb debugging be enabled via adb/fastboot?

A friend has a stock S7 with a broken screen and USB debugging disabled.
I have read posts here about this situation and it looks like the prognosis is bleak, but it has been more than a year since the last one I found, and things do change with time as more is learned, especially on popular phones like the Galaxy line, so it seemed like a good idea to ask again. His wife has baby pictures on it that are worth a good bit to them. Why they weren't backed up to the cloud is anyone's guess - I get that some folks dislike sharing private lives with Google, but there are plenty of Boxcryptor type apps one can use - but the point is moot. They have their privacy and no baby pictures. It is what it is.
A quick Google search finds lots of proprietary software that claims that it doesn't need USB debugging to be enabled or that it can enable it, but the sparse details provided about this superhuman ability makes this seem unlikely.
Someone mentioned a way to sideload a custom kernel in order to somehow enable USB debugging via ADB. Is this possible? Can USB debugging be enabled from stock recovery on the S7, or any other route?
There are all sorts of Octopus / Miracle Box type gadgets and software packages that claim to make various phones dance and sing, but I can't find one that will recover files from the S7. It might be worth buying such a package, if it existed.
Some posts, articles and videos suggest using an OTG to connect a mouse or keyboard and navigate the broken screen, either from memory or by taking screenshots and retrieving them from phone storage. We have not tried this yet, and any tips specific to the S7 would be really appreciated.
Someone posted an application here, that is apparently intended to help with this situation, but mirroring a phone screen requires USB debugging to be enabled.
https://forum.xda-developers.com/showthread.php?t=2786395
Thanks to anyone who might be able to help, and I apologize for adding a redundant question. I am just hoping that there is something new in the Galaxy world that might have made this situation salvageable.
SmilingPerson said:
A friend has a stock S7 with a broken screen and USB debugging disabled.
I have read posts here about this situation and it looks like the prognosis is bleak, but it has been more than a year since the last one I found, and things do change with time as more is learned, especially on popular phones like the Galaxy line, so it seemed like a good idea to ask again. His wife has baby pictures on it that are worth a good bit to them. Why they weren't backed up to the cloud is anyone's guess - I get that some folks dislike sharing private lives with Google, but there are plenty of Boxcryptor type apps one can use - but the point is moot. They have their privacy and no baby pictures. It is what it is.
A quick Google search finds lots of proprietary software that claims that it doesn't need USB debugging to be enabled or that it can enable it, but the sparse details provided about this superhuman ability makes this seem unlikely.
Someone mentioned a way to sideload a custom kernel in order to somehow enable USB debugging via ADB. Is this possible? Can USB debugging be enabled from stock recovery on the S7, or any other route?
There are all sorts of Octopus / Miracle Box type gadgets and software packages that claim to make various phones dance and sing, but I can't find one that will recover files from the S7. It might be worth buying such a package, if it existed.
Some posts, articles and videos suggest using an OTG to connect a mouse or keyboard and navigate the broken screen, either from memory or by taking screenshots and retrieving them from phone storage. We have not tried this yet, and any tips specific to the S7 would be really appreciated.
Someone posted an application here, that is apparently intended to help with this situation, but mirroring a phone screen requires USB debugging to be enabled.
https://forum.xda-developers.com/showthread.php?t=2786395
Thanks to anyone who might be able to help, and I apologize for adding a redundant question. I am just hoping that there is something new in the Galaxy world that might have made this situation salvageable.
Click to expand...
Click to collapse
Try the solution in the link you've posted, i'm sure you no longer need debugging enabled.
Also the real issue is you need to unlock the phone, so if the screen is just black?? You can usualy guess where the patterns or numbers appear etc, easy if you have another s7 next to it.
Also other options here
cooltt said:
Try the solution in the link you've posted, i'm sure you no longer need debugging enabled.
Also the real issue is you need to unlock the phone, so if the screen is just black?? You can usualy guess where the patterns or numbers appear etc, easy if you have another s7 next to it.
"]here [/URL]
Click to expand...
Click to collapse
Thank you! This is very helpful.
I think debugging must be enabled for that solution, but I hadn't read far enough or close enough to find Msmtx's solution for enabling it from ADB.
https://forum.xda-developers.com/showpost.php?p=66731042&postcount=260
My blind spot now rectified, I am going to give this a try. I know nothing about stock recoveries - is the one in the S7 going to allow me to do this, or will I have to install or boot TWRP or Safestrap?
Thanks again mate, it will be great to get those pics back. I just hope they have learned from this the great value of backups...
Sent from my unknown using Tapatalk
Hi @SmilingPerson - Did you get this resolved? I'm facing the same issues, and on top of all the OTG ideas, the phone I need to access has a swipe lock, so I'm pretty sure connecting a mouse without seeing anything is useless. Would appreciate any tips.
I wish I could tell you something, but nothing worked, sadly, and I used the old phone for parts.
Good luck though, hope you fare better than I.

How do I enable adb debugging and otg with a black screen and no otg cable?

Hello, I just broke the screen of my OnePlus8t Verizon network unlocked phone. The computer I previously linked 8t with also has a broken screen. ... Rains it ..... My Phoe has some important information in docs and screenshots I need to get. I just turned off ADB debugging thinking "Oh I don't need that just yet" the very morning I broke the LCD. Good news, I can still answer it. I already have adb.exe except in ADB shell it shows as unauthorized. I need those files like yesterday. I have an otg/ADB flash drive, but I still can not connect to retrieve files. I can see my phone when I directly connect to comp without the flash drive, however, I can not access it. I have tried to put the phone into recovery, but I have no way to enter the pin as I have tried to guess where it is. How can I receive the data I need from my phone?
Thank You.
P.S. I have little knowledge and only learn what I need to know for whatever project, in other words, I can not code and I barely speak dos.
Is the touch screen still working then?
If it's showing "unauthorized" you can try to plug it into your desktop and then hit the "authorize" button on the popup that you can't see.
Here is where ok is on a different phone. It's somewhere near there on yours.
Renate said:
Is the touch screen still working then?
If it's showing "unauthorized" you can try to plug it into your desktop and then hit the "authorize" button on the popup that you can't see.
Here is where ok is on a different phone. It's somewhere near there on yours.
Click to expand...
Click to collapse
I have tried that. The finger print unlock screen only works ⅔ of the time. I have no way of knowing if it's unlocked. I keep my touch sounds silent. I keep trying to find where it might be. I have tried to slide as if answering a call. Is there a way to force the USB settings for media transfer? Maybe through Google? If any platform knows it's my phone is Google. I can go to the play store and push apps onto it. Unfortunately the two adb drivers I have installed on my Android didnt work.
Oh, actually, you've got it easier! The OnePlus 8t supports HDMI over USB Type C.
https://forum.xda-developers.com/t/does-one-plus-8t-have-video-out-through-usb-c.4465629/
Buy an adapter and hook up an HDMI monitor/TV.
Or just use a new monitor on the computer that is already authorized.
Is there any other way. Right now it is not with in the budget to afford any extras even with the price tag of $20. I am hoping there is a way within an adb shell to force turn on the adb debugging. I have developer options enabled. I would just rewrite the documents, except some of those items I need include the text messaging history. If I can't force the adb, can I remotely back up the phone? Is there a trustworthy app for that? I do have quick settings installed and if my memory is correct, I believe I have sideline installed even.

Categories

Resources