I was trying to enable USB debugging option on my Samsung Galaxy J1 Ace (SM-J110H) handset. As you already know that the screen is black/dead but except that the cellphone is working just fine. Somehow I managed to enable the USB debugging option by using an OTG cable and a USB keyboard(and off-course a lot of screenshots). But still unable to authorize USB debugging for my pc as I'm not able to click always allow from this computer.
So how do I allow/ authorize USB debugging from my pc? TIA
Ι would write it here as a comment, because answer is not based on facts, however on black screens I try to remember the basic buttons and can use some of my phones even blindfolded.
However when I was having a similar problem, I used a tool called ADB that made it possible to access some of my Lenovo A390's shell features via Windows CMD and managed to turn on USB-Debugging and even download some backup files from a password-holder app I used in that time.
https://www.androidphonesoft.com/resources/enable-usb-debugging-android-broken-screen.html
There was also a stack exchange topic that helped me run through the process.
https://android.stackexchange.com/questions/112040/how-to-enable-usb-debugging-in-android-if-forgotten-pattern-for-screen-unlock
Hope that helped.
Have two phones. The one with the dead screen and a working one. Download any app that can mirror an Android to another. Use the mouse to download it. Install it in the two phones. You can download apps like airdoid. Create account on the good phone, then login into the same account on both phones. U will be able to control the other phone with the working phone so that you accept the debugging prompt when it appears
Related
I recently bought an android tv box (dongle) model mk808b plus which some of you might be familiar with. What I want to do is use it for development, I want to program on it using adb, Android Studio.
The problem I am facing and its not the first of its kind, I get this with all the media boxes that I tried, they dont work as adb devices at all, I dont get any device in my device manager when I connect them on the usb (not even an unknown one). I tried reflashing the android, I put cyanogen mod on it, but to no avail, it still happens. Another thing is, if I put my device in Recovery Mode it does detect an unknown device in my control panel, but never after I boot up my android os.
Now before you say I didnt enable Developer Options Usb Debugging or I didnt put my device as MTP device, I did. I checked these and the cables im using are fine.
I dont have any problem with my Nexus 5 or S5 for the matter, just when I try these android boxes that come up with these tv like custom roms.
If you guys have any idea, I'll be happy to read, I did not find anything related to this on the internet.
PS: Why not use my Nexus 5 or S5? because the app im developing is for these boxes, so testing some of the features such as hdmi connectivity etc etc is very useful to me.
Thank you,
Andi
Unfortunately I couldn't do anything, maybe it's because of the custom ROM on it, but I did find an alternative, I'm using adb on tcp ip, it seems to work after I rooted my device, still no usb adb interface.
I have an android tablet "Galaxy Tab 10.1" and need to connect to my pc to debug but it even doesnt show up on Device Manager when I plug the cable. I saw many solutions and tried it, like:
Downloaded samsung usb driver from here:
http://www.samsung.com/us/support/owners/product/GT-P7510MAYXAB
Also in settings USB debugging is enabled.
But there is still no change! Is there any suggestion?? Thanks in advance!
Go to Settings->Select Storage->Click on the three dots->Usb Computer Connection->Experiment with either MTP or Camera. For my phone it works only with Camera mode.
Well, I changed the cable, reinstalled the drivers and worked :)
After you plugged in try to shutdown and then power on the tablet whilst connected. It solved my issue. Hope this helps!!
You could try turning USB debugging off. Also, is there maybe a setting to change the USB mode in settings? Most Android devices have one somewhere.
I've seen this quite a bit, and it seems that happens when the Samsung connector on the bottom of the device is not properly seated. Remove and firmly re-connect has solved the issue a few times for me.
Disconnecting & rebooting the device, run "adb kill-server", reconnect device, run "adb devices" - seems to solve a good few issues also.
Hi There i got a Simple Solution to share.
1st step: Dont connect your android tablet or phone on the computer in this time. :)
2nd step: if your android tablet or phone is on then TURN IT OFF!!
3rd step: NOW after you turn it OFF turn it ON again then connect to the computer Via USB cable..... SEE IF IT WORKS
download Kies and it will automatically download all required drivers - samsung file sync app
read more: http://www.samsung.com/latin_en/support/usefulsoftware/KIES/JSP
download: http://www.samsung.com/us/kies/
Okay Android made this much harder than it needs to be (as usual).
I fought this for two days and finally found a way to turn USB sharing on on the tablet. I loaded the drivers to the computer and it recognized the device but would not read it. The solution was to go to settings, storage and then ignore everything in the storage box. In the top left corner a USB symbol will appear very small next to the sd card logo (if one is mounted) Long Press and drag that down to open a message box. There will be an option to turn on USB sharing.
I am trying to enable USB Debugging on Android so that I don't need to use the emulator.
I did what all the posts all around the web say to do: I went to settings -> applications -> Developer -> USB debugging
It still does not turn on the notification sign that USB Debugging is enabled, and Eclipse does not recognize it, and uses the regular emulator.
Does anyone have any idea what is wrong?
You haven't specified what device you are using or what operating system you are using, so that could be helpful.
A few things to keep in mind:
1 Don't mount as USB storage.
2 You also need to make sure to install the drivers for your phone so that the Android Debug Bridge (ADB) can properly communicate. After these are installed, try the command "adb devices" and you should see an item in your list of devices.
Update based on your comment: You can download Kies from Samsung, which include the drivers (as well as other things): http://www.samsung.com/us/kies/
Or you can find unofficial driver-only packages, such as: http://forum.xda-developers.com/showthread.php?t=961956
I think you'll need the OEM USB dirvers.
Read this:
OEM USB Drivers
My experience with windows has been that you might need to un-install the USB drivers under device manager. Then disconnect the device (restart might be required). After plugging the device back in make sure you use the manufactures drivers if available
you have installed your device driver rite?then right click on your app name->run as->run configurations->target->select manual->apply.after that click on debug button then it will ask you to select the device.
If everything else is tested, try with another USB cable.
On Android 4.2 and higher, the Developer options screen is hidden by default. To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom.
Fruthermore on some devices you will be asked to accept an RSA key, which allows debugging through your computer. This ensures that other adb commands cannot be executed unless you're able to unlock your device.
Detailed information can be found here:
http://developer.android.com/tools/help/adb.html It is the overview about adb commands (which is used to send data to your device) and it starts with the steps how to bring your phone to debug-mode.
I wish to add to Danation's answer with the following.
If you have installed KIES, and you've tried following instructions a couple of times (for the android SDK package) without success, here's what worked for me:
As a precaution, disconnect the device, and press 'Revoke USB Debugging authorizations'.
Now, go to kies, and reinstall the device driver as seen on the image below.
Connect the device.
For me, it was a routine, it usually works when installing kies, but I was stuck on this today for a little while, and I hope i can help others with my solution as well..
I don't expect you to correct my code, since it should be working, at least works on emulator. Unfortunately gives different output on the devices. My question is:
How to debug in such cases, when the device is not working as the emulator, and what could cause that (device model, a custom ROM?)
I heard some rumors some time ago, about possibility using the device instead an emulator somehow connected to the SDK. Could you also confirm or deny that?
You'll find it's not uncommon to find little quirks between devices. Many developers will have several physical devices to test their software on.
You can find information on using a physical device for debugging (including using it inside Eclipse, just as you would the emulator) on the Android website: http://developer.android.com/guide/developing/device.html
Yes you can do that. Just put your device into debugging mode, and connect it to the computer with the micro-usb port on the device. You will also need to download the drivers from the manufactures website.
our company bought 50 Samsung Galaxy Tabs for corporate use.
Before these can be delivered to users we must install some company labeled programs in to them.
We thought the easiest way to do this would be through ADB but it needs the USB debugging to be enabled. Is there a better and faster way to do it than enable it on each device one by one? Is it possible to enable USB debugging from PC using some program or piece of code while connected with USB cable?
The ideal solution would be that we connect multiple devices via USB to one PC and run installation script that enables USB debugging, runs installations, disables USB debugging and finally shuts down the devices. How would you do this?
Br,
Tupe
Is there a better and faster way to do it than enable it on each device one by one?
Have several people enable it on each device one by one in parallel.
Is it possible to enable USB debugging from PC using some program or piece of code while connected with USB cable?
Fortunately, no, as that would be a security hole.
The ideal solution would be that we connect multiple devices via USB to one PC and run installation script that enables USB debugging, runs installations, disables USB debugging and finally shuts down the devices.
Under your plan, a piece of Windows malware could detect that an Android device is plugged in and install Android malware on that device. After all, if your "installation script" can do it, so can the malware.
How would you do this?
Host the APK on an internal Web server, generate a short URL to it, check the "allow non-Market installs" on the device, and fire up that URL in the browser on the device. This presumes that you plan on updating the app (e.g., bug fixes) and that you aren't planning on going through your whole USB cable process for each of those updates. In that case, you need to get the Web server configured for APK files and have the "allow non-Market installs" checkbox checked anyway, so you may as well do that as part of the initial device setup.
Is it possible to enable USB debugging from PC using some program or piece of code while connected with USB cable?
Hopefully not. If this were possible any piece of hardware that you plugged your device into could do some very nasty things to it without any chance for you to intervene.
I've done some large installs like that. I've not found one technique to be the end all be all.
I would suggest host your apk file online somewhere make a shortened (easy to type) url to it.
Then on the devices open up browser and type the url. That will download your apk, when you click the download complete in the notifications it will start the install.
Note: You will have to turn on "Allow install from unknown" in settings. The fastest way I think is just do the download and press the apk, this will throw up a dialog that has a button you can press to take you right to the correct settings page to turn this on. But bad news is that after you turn it on the install won't resume automatically. So you either have to find the apk with file explorer, or go back to browser and download a new copy of it. I would guess the latter might be quicker, albeit messier.