enabling USB debugging remotely / bootstrap - Hardware Hacking General

The screen broke off my phone (MyTouch Slide 3G / CyanogenMod 7.0.3).
I'd like to still use the phone as a bluetooth keyboard or something, but I cannot connect it to the SDK to read the screen as USB debugging isn't enabled on the phone.
Is there any way whatsoever to enable USB debugging remotely or activate it by keystrokes?
Perhaps an entirely different method exists for accomplishing the same task (installing / configuring software without seeing the screen)?

You should be able to use the directional navigation (middle) button or the keyboard to navigate the menu and enable debugging. Just try to find out from a Youtube video or screenshots how to get there

Is there any possibilities of usb host in android

Related

Display is Dead. Touch Screen works. Need help enabling USB debugging or Mirroring.

My display just went blank all of the sudden. No image. The backlight works, the touchscreen works, everything works, except the display. I've done some research and I'm pretty sure this is a hardware problem.
I plugged into my PC and pulled the images off, but I really need a backup of the text messages on the phone.
I tried a "remote control" app http://forum.xda-developers.com/showthread.php?t=2786395, but it won't work because ADB can't find my device.
My phone is not rooted. I'm certain the ADB utility and phone drivers are installed, but USB debugging won't enable when I connect my phone to my PC. I'm certain USB debugging is enables, but it won't activate. I believe it's because it's connected as "media device" and it should be connected as an "internet device". Problem is, I can't see what I'm doing to enable it.
Can someone walk me through the steps to pulldown the menu, select "connected as" and choose the correct option? (Screenshots of each step or X,Y coordinates in inches or millimeters).
Alternatively, I can mirror the display if I can enable screen sharing, but that might be more tricky.
Verizon 5.0.2
display dead
Sharpbarb said:
My display just went blank all of the sudden. No image. The backlight works, the touchscreen works, everything works, except the display. I've done some research and I'm pretty sure this is a hardware problem.
I plugged into my PC and pulled the images off, but I really need a backup of the text messages on the phone.
I tried a "remote control" app http://forum.xda-developers.com/showthread.php?t=2786395, but it won't work because ADB can't find my device.
My phone is not rooted. I'm certain the ADB utility and phone drivers are installed, but USB debugging won't enable when I connect my phone to my PC. I'm certain USB debugging is enables, but it won't activate. I believe it's because it's connected as "media device" and it should be connected as an "internet device". Problem is, I can't see what I'm doing to enable it.
Can someone walk me through the steps to pulldown the menu, select "connected as" and choose the correct option? (Screenshots of each step or X,Y coordinates in inches or millimeters).
Alternatively, I can mirror the display if I can enable screen sharing, but that might be more tricky.
Verizon 5.0.2
Click to expand...
Click to collapse
same happened with my lg g2 d800,problm was fixed. i replaced dock port flex cable and it worked for.
good luck
Can someone please take screen captures of the steps to move from connected as MTP to internet?

Android Auto

I'm having an issue getting Android Auto to launch in my Subaru Crosstrek 2018 model. It works when I use my Nexus 6p but not with the Essential phone. I've tried different cables and reinstalling Android Auto but no luck. Anybody else having issues with Android Auto in their car with the Essential phone?
I had major problems getting Android Auto to work with my Essential phone.
At first, I kept getting the red screen of death (something about "do this when the car is stopped and the brake is on"...of course the car was stopped and the brake was on...). The next day (after a phone update), I tried again and could get past that screen. But then it wouldn't connect.
Turns out you have to scroll down the notifications and change the connect mode from USB charge to MTP manually. Once you do that, it quickly connects. Why the phone can't automatically do that for you...I don't know. But I've done this repeatedly now and each time it connects once you change to MTP mode.
(I also have USB debugging on--don't know if that's important as well).
quadcrap1 said:
I had major problems getting Android Auto to work with my Essential phone.
At first, I kept getting the red screen of death (something about "do this when the car is stopped and the brake is on"...of course the car was stopped and the brake was on...). The next day (after a phone update), I tried again and could get past that screen. But then it wouldn't connect.
Turns out you have to scroll down the notifications and change the connect mode from USB charge to MTP manually. Once you do that, it quickly connects. Why the phone can't automatically do that for you...I don't know. But I've done this repeatedly now and each time it connects once you change to MTP mode.
(I also have USB debugging on--don't know if that's important as well).
Click to expand...
Click to collapse
Android Auto doesn't kick-in on my '20 Subaru Outback (works on my wife's '19 Nissan Rogue).
Can you specify how to get to this setting. I'm unable to find it...
Thanks
levpri said:
Can you specify how to get to this setting. I'm unable to find it...
Click to expand...
Click to collapse
For the current connection, expand the "usb charging" notification, and it will give you a prompt to the available options - just select what you need. To change the default USB connection behaviour, go to Settings - System - Developer options - Default USB configuration, and select an appropriate connection mode.
kt-Froggy said:
For the current connection, expand the "usb charging" notification, and it will give you a prompt to the available options - just select what you need. To change the default USB connection behaviour, go to Settings - System - Developer options - Default USB configuration, and select an appropriate connection mode.
Click to expand...
Click to collapse
Funny there is no USB charging notification on the top, but in Default USB configuration should it be on File Transfer? Thanks!
I've never had a problem with android auto on mine, though I think I probably did change the default connection mode to file transfer a long time ago (before I had a vehicle with android auto).
You can also try a USB hub. These resolved the problem:
AmazonBasics 4 Port USB to USB 3.0 Hub with 5V/2.5A power adapter
ASIN B00DQFGH80
TP-Link | 4 - Port USB 3.0 Hub | Slim & Foldable Cord Design | Compact Travel Size with Charging Ports | Universal Compatibility - USB Flash Drive, Notebook, MacBook, PC, Chromebook and More (UH400)
ASIN B012B6YQY6
Sorry, I can't post direct links

Nook Glowlight Plus USB OTG Keyboard

I managed to get into developer mode on my new NGP, there's no more "build number" as I've seen in several blog posts with the latest update you click on the Nook icon on the About page it takes you to Developer mode. I've been able to install a few apps, but here's what I'd like to do.
I'd like to plug in a USB keyboard and use it to SSH into another machine through my WiFi hotspot to do some HTML/JS/CSS text editing while I'm outdoors (at the pool, the park, etc) as my other laptops/tablets aren't visible at all outdoors with glare. This would be a nice portable solution if I could get it to work, even editing locally on the device through some editor and sending via SFTP would be just fine.
However, I can get my USB OTG cable and USB keyboard to work on my Samsung J3 phone just fine, but not on my NGP it does nothing when plugged in, keyboard caps lock doesn't activate. Is there a way to get it to work, and does it require rooting the NGP? I haven't rooted the device yet.
JohnnyFriendly said:
However, I can get my USB OTG cable and USB keyboard to work on my Samsung J3 phone just fine, but not on my NGP it does nothing when plugged in, keyboard caps lock doesn't activate. Is there a way to get it to work, and does it require rooting the NGP? I haven't rooted the device yet.
Click to expand...
Click to collapse
As a workaround I put a VNC client on it so I can access my other devices and do the typing from there, that way I can use my RPI3 as the system with a keyboard on battery power and do some Python (Django)/NodeJS/ReactJS from the NGP using it as a monitor outdoors, but if I issue the following commands via adb to rotate into landscape mode I lose input on the NGP and have to reboot:
adb shell settings put system accelerometer_rotation 0
adb shell settings put system user_rotation 1
Any ideas?
I believe I looked at this once.
At least one of the problems is that the ID pin on the micro USB connector is not connected through to the processor.
B&N has never shown any interest in putting Bluetooth in a Nook.
We'll have to see if the latest "Nook Glowlight 3" will have either OTG or BT.

Enable USB Debugging on S7 Edge (SM-G935F)??

Hi,
My brothers phone screen is basically unusable.
When I connect the phone to the PC it recognises it in Windows but the phone contains no folders. At first I assumed it was because his screen was locked so I connected a OTG and keyboard and using commands managed to get his phone "unlocked" to the home screen.
However this didnt fix the issue.
Reading around it seems I may need USB Debugging enabled (if he hasn't already) but due to not being able to use the screen how would I do that?
Do I need a MICRO USB to HDMI & USB adapter to use a mouse and TV output?
Or is there a way I can fix this through windows using ADB?
At this point we are willing to try anything as all we are looking for is some family photos off of it then binning the phone and I don't want to put £100-200 into the screen replacement just to attempt this data recovery.
All help is greatly appreciated,
Cheers
ADB is the door to any Android device. As long as ADB has not been activated on the device - and the related RSA keys got created - you have no chance to pull out data from device, IMO.
Ok,
Well see the fact when I connect it to windows it shows the phone but not the folders inside, and I can only assume there will be a popup on the screen mentioning to ALLOW/DECLINE transfer etc..
If I use the OTG adapter I can plug my keyboard in and use the sequence SPACE, SPACE, BKSPACE, BKSPACE, then my PIN and ENTER and it unlocks to the home screen.
But because I would need the phone connected by both PC and KEYBOARD at the same time is it possible to get a splitter on the OTG adapter and this would hopefully let me press RIGHT and ENTER to accept the message?
If not then can the phone be connected via HDMI to see if any message is infact popping up??
Rowan88 said:
Hi,
My brothers phone screen is basically unusable.
When I connect the phone to the PC it recognises it in Windows but the phone contains no folders. At first I assumed it was because his screen was locked so I connected a OTG and keyboard and using commands managed to get his phone "unlocked" to the home screen.
However this didnt fix the issue.
Reading around it seems I may need USB Debugging enabled (if he hasn't already) but due to not being able to use the screen how would I do that?
Do I need a MICRO USB to HDMI & USB adapter to use a mouse and TV output?
Or is there a way I can fix this through windows using ADB?
At this point we are willing to try anything as all we are looking for is some family photos off of it then binning the phone and I don't want to put £100-200 into the screen replacement just to attempt this data recovery.
All help is greatly appreciated,
Cheers
Click to expand...
Click to collapse
OK, new to this. To get usb debugging on, click system. About phone, Software information, build number. Click that several times. (AT least 10). You will see a message that you are in developer mode. Go back to home screen. Click settings icon. Scroll to bottom you should now see { } Developers optiions. Click that. Find the section for ADB, enable ADB. Once ADB is up and running you should be able to pull the files. The screen for an android is the desktop, mouse, and keyboard. (PC analogy). You need something to see your icons, something to click, and a keyboard. If OTG acts as a mouse, and you can see the basic display, and have an external keyboard. I think you can do this. I am not sure what OTG is .
wdtr2002 said:
OK, new to this. To get usb debugging on, click system. About phone, Software information, build number. Click that several times. (AT least 10). You will see a message that you are in developer mode. Go back to home screen. Click settings icon. Scroll to bottom you should now see { } Developers optiions. Click that. Find the section for ADB, enable ADB. Once ADB is up and running you should be able to pull the files. The screen for an android is the desktop, mouse, and keyboard. (PC analogy). You need something to see your icons, something to click, and a keyboard. If OTG acts as a mouse, and you can see the basic display, and have an external keyboard. I think you can do this. I am not sure what OTG is .
Click to expand...
Click to collapse
1. I cant follow that process as the screen is completely destroyed (no display/no touch), thats why I have been blindly using a keyboard to try and find the setting
2. OTG is ON THE GO , its a small adapter that lets you connect USB devices to your phone.
Sorry about that. I think you are stuck. without some visual clues I think you can not put the phone in developer mode. Did you try just a plugin (via usb) into windows and seeing if there is a pictures folder?
It find the phone in Windows, but wont display the folders.
The OTG splitter I purchased to be able to connect it to the PC and KEYBOARD at same time didnt work as it doesnt supply power (should have checked reviews).
Any other solutions? Or is this a new screen for £200 just to get data?
I purchased another OTG splitter that has a OTG/CHARGE switch so this should let me connect it to the PC and KEYBOARD.
Can anyone give me shortcut keys or step by step on how many times I need to press certain buttons to get down to the USB DEBUGGING section please?

Recovering data with no screen?

Hello.
I've got my mother's Samsung A20. And i need to recover data, but the screen doesn't work.
When power button is pressed, display flashes the lock screen (wallpaper, current time and so on). And then it turns black (backlight stays on for 30 seconds, and then turns off). Pressing the button doesn't guarantee flashing the display, sometimes it goes black immediately. Touch screen gives no input as far as i know (can't hear anything when trying to type pin). Problem still occurs during and after reboots.
I managed to connect a mouse and keyboard with USB OTG, and i was able to unlock. But the phone has no MHL support, so i can't get any image through USB. I'd try pressing the power button repeatedly to get some image and inch my way through the interface, but the lockscreen interferes.
The USB port is set to Charging Only mode, so i can't copy files to my computer. USB Debugging is disabled, bootloader is locked.
Does anybody have a clue, how to get image? Some way to get data? Maybe some keyboard shortcuts, so i can disable lockscreen and make my way easier? And maybe disable 20 alarms in the morning?
damiandbcz said:
I'd try pressing the power button repeatedly to get some image and inch my way through the interface, but the lockscreen interferes.
Click to expand...
Click to collapse
I like to be helpful so I'll try to give you some suggestions but I hope others pitch in who know far more than I do.
I never use the USB cable anymore to operate my phone from my PC (but my screen isn't broken so your situation will be much harder).
I connect to my phone from Windows over Wi-Fi without USB all the time, and I can unlock my screen from the PC, and I can mount my entire Android device as a drive letter on Windows over Wi-Fi, etc., so "maybe" (just maybe though), you can consider using either a WebDav server on Android to access your files and/or adb to bring up and manipulate activities on Android....
damiandbcz said:
The USB port is set to Charging Only mode, so i can't copy files to my computer. USB Debugging is disabled, bootloader is locked.
Click to expand...
Click to collapse
However, I don't know if adb will work for you if you can't turn on USB debugging in the first place... but as of Android 12, adb now works completely over Wi-Fi (see screenshots below) without needing the USB cable to establish the initial connection like it used to be prior to Android 12.
damiandbcz said:
Does anybody have a clue, how to get image? Some way to get data? Maybe some keyboard shortcuts, so i can disable lockscreen and make my way easier? And maybe disable 20 alarms in the morning?
Click to expand...
Click to collapse
If the screen problem is "just" hardware and not software, and if you can turn on Wireless Debugging, you might be able to display your phone over scrcpy or vysor (both of which use adb over Wi-Fi) as shown in the screenshots below on my phone - which never needs the USB cable connection.
Hope this helps, but you seem to need folks who know more than I do as adb/vysor/scrcpy all work for me because I can set up USB Debugging & Wireless Debugging as shown below.
Note that you might have an FTP server or a WebDav Server on your Android phone, and if you do, you might be able to at least transfer important files since they each can mount your entire Android phone as a drive letter on Windows over Wi-Fi (without needing the USB cable).
GalaxyA325G said:
I like to be helpful so I'll try to give you some suggestions but I hope others pitch in who know far more than I do.
I never use the USB cable anymore to operate my phone from my PC (but my screen isn't broken so your situation will be much harder).
I connect to my phone from Windows over Wi-Fi without USB all the time, and I can unlock my screen from the PC, and I can mount my entire Android device as a drive letter on Windows over Wi-Fi, etc., so "maybe" (just maybe though), you can consider using either a WebDav server on Android to access your files and/or adb to bring up and manipulate activities on Android....
However, I don't know if adb will work for you if you can't turn on USB debugging in the first place... but as of Android 12, adb now works completely over Wi-Fi (see screenshots below) without needing the USB cable to establish the initial connection like it used to be prior to Android 12.
If the screen problem is "just" hardware and not software, and if you can turn on Wireless Debugging, you might be able to display your phone over scrcpy or vysor (both of which use adb over Wi-Fi) as shown in the screenshots below on my phone - which never needs the USB cable connection.
Hope this helps, but you seem to need folks who know more than I do as adb/vysor/scrcpy all work for me because I can set up USB Debugging & Wireless Debugging as shown below.
Note that you might have an FTP server or a WebDav Server on your Android phone, and if you do, you might be able to at least transfer important files since they each can mount your entire Android phone as a drive letter on Windows over Wi-Fi (without needing the USB cable).
Click to expand...
Click to collapse
A20 can have only Android 9, 10 or 11, but thanks for ideas anyway.
I didn't even know adb can work over WiFi, I'll look into it. Hopefully this version can do it too.
Now trying blindly to turn on the screen reader…
damiandbcz said:
A20 can have only Android 9, 10 or 11, but thanks for ideas anyway.
I didn't even know adb can work over WiFi, I'll look into it. Hopefully this version can do it too.
Click to expand...
Click to collapse
Ooops. My bad. I apologize. You'll need the USB cable in Android 11 for a moment to establish the connection first. Then you can switch over to Wi-Fi after that (or you can stay on USB).
damiandbcz said:
Now trying blindly to turn on the screen reader…
Click to expand...
Click to collapse
I feel for you. I really do. It hurts me when people can't access their phone remotely to get their data back. I am searching all over the XDA site for a solution for you, where I just moments ago opened this thread to help (I'm still searching for you though).
What is the best XDA solution to control Android on the PC & recover data over Wi-Fi when the user suddenly has an unresponsive broken screen?

Categories

Resources