Remote inspect web page on Samsung Galaxy S2 - android

I am using a Samsung Galaxy S2 (GT-I9100) and I am trying to debug web pages with Chromes included support for remote inspect.
I have installed drivers from the following link: http://www.mobileusbdriver.com/samsung-mobile-drivers/samsung-galaxy-s-ii-usb-driver
I have followed the steps on https://developer.chrome.com/devtools/docs/remote-debugging. But I am experiencing problems from step 3 and forward, my phone does not prompt me to allow USB debugging. The phone has been used for web inspection before with the old Chrome extension that was available before, but has been reset to factory default since.
The problem i am facing is that on chrome://inspect/#devices my device isn't showing up in the list. Chrome can't find my device at all.
When i look at the Device manager there are no errors, so i assume that my drivers work as they should.
I have made sure that USB debugging in Developer tools is checked, and Chrome on windows is discovering USB devices (the checkbox is checked in chrome://inspect#devices).
Anyone got any ideas what i might have to do to fix this?
Thank you.
Progress edit:
I still haven't found a fix for this. I've tried to install the android SDK, add the eclipse material to my eclipse IDE, updating drivers, updating kies, rerun the driver installation that was included in the eclipse install, and looking through my developer settings in my phone like 900 times.
Anyone still haven't got a clue of why this is happening?

Ok, the solution is very weird.
I talked to a colleague and he had an old nexus driver (for Samsung SCH-I515 which is a nexus phone distributed by Samsung) locally on his machine.
We transferred it to my computer and uninstalled all the drivers i had, manually installed this driver and voila! It worked.
Why this driver worked, i have no idea. I cant complain though.
Thank you all for the help.

Related

Android Studio not showing connected physical device

I am using the latest version of Android Studio(2.1.2) at the time of writing this post . The problem that I am experiencing is that the ADB instance used by Android Studio doesn't seem to be able to find my Galaxy Core Prime device (SM-G361F, stock Android version - 5.1.1). It can connect to an emulator just fine.
What I had tried (most of these multiple times):
enabling/disabling developer options
enabling/disabling USB debugging
revoking USB debugging authorization
changing MTP to PTP and vice versa (my device doesn't allow deselecting both options, one must be chosen)
reinstalling the drivers
powering on and off both the phone and the PC
installing Samsung's Smart Switch software
using different USB ports
trying out different Android Studio versions (x86 and x64 with the latest respective JDKs)
This is what it looks like in Android Studio:
I had installed the official Samsung's USB drivers from here.
This is what the Device Manager is showing (Windows 7 64-bit SP1):
Afterwards, I've also tried installing the Universal USB drivers from here.
This is what firing up its installation of ADB looks like:
It has obviously successfully found the device.
My device also politely prompted me to allow the PC to connect to it using a generated RSA key which never happened with Android Studio.
The only thing I've not tried is installing Samsung's Kies software.
I really don't know what is the problem here.
Maybe I should just give up and instead use the emulator but it is a damn shame not to be able to debug on an actual physical device, if you ask me.
Thank you in advance.
Android in general does not support all phones for a debug connection. I have a samsung s6 and for me that works. I don't know about the Core Prime though. However, in most cases(in my experience):
The phone does not support the connection
You did not install all the required files in terms of the android SDK you might have not gotten the latest update that supports more phones
The OS is not supported - Mainly caused because Samsung and a lot of other brands insist on having their own updates. And some times they - on purpose or by accident - forget to support USB debugging for developers.
My tablet did not support the USB debugging connection untill it reached android 6.
The cable is a charge-only cable (yes, those exist for some reason). Try with a different cable
You don't have the necessary drivers. Make sure they're installed
It might be circumstantial that your phone model does not support the connection for some reason, but it is really hard to tell. The only way to get proper help is to contact Samsung customer support, but in my experience it is just a waste of time. They don't know their own products. If you try with another device it might work.
After some continued tinkering I managed to get Android Studio to recognize my device. All I did was adding the path to the ClockworkMod's ADB .exe to the PATH environment variable. That seems to have done the trick as Android Studio now allows me to run the application on my device even though it is still running its own instance of ADB (located in the platform-tools folder).
It might be completely unrelated but I'm not considering undoing the modification made to the environment variable.
Here is the proof:

Install Android driver for Windows 8

UPDATE:
It's fixed! It turns out there was a driver on the LG site that, once downloaded, fixed the issue.
I've tried using both folders, including the usb_driver directory, but none of these directories work. It always gives me the same issue. As seen below, the 'ADB Interface' driver is most likely my android driver.
I've looked at this response to a very similar question, but none of these answers seem like they will work. I have an LG G4 phone and windows 8 on a Dell laptop. I would like to try running my application on my phone instead of an emulator, except whenever I plug in my phone, with developer mode turned on, I cannot seem to find or use my device on Android Studio. I run the application and get to the dialog that asks me to choose the device on which to run the application, but my device still does not show up. I have updated several packages on the SDK manager and tried manually installing the driver that's supposed to be in /extras/google/usb_driver/, but nothing has worked. Has anyone here been able to get their application running on their device while using Windows 8?
Make sure that USB debugging mode inside developer option is turned ON. After that you should see a dialog in your mobile to allow that computer for Debugging purpose. You can check always allow if it is your own PC

How do I get Eclipse with Android SDK running on Windows 8 to debug my app on my phone?

I can't imagine I'm the first person to have had this problem, yet stackoverflow did not recommend relevant questions. Sorry if it has been posted before.
I'm currently developing an android app, and I (laboriously) was able to get it working on Windows 8. I can run and debug my apps using the emulator, but I can't run them on my phone. My phone's version is 2.3.5 (api 10), I've installed the google usb drivers using the SDK manager, and I have the USB debugging setting checked off on my phone. I have been able to run my apps before when I loaded them from Windows 7. Any help would be much appreciated.
Edit: Phone is a Sprint HTC model number PC36100
I have a Samsung phone and the Google USB Driver didn't work so I had to download and install Kies software (which has the driver for my Samsung phone) restarted windows and everything worked fine. I suggest you go to your phone manufacturer's site and download a proper driver. Good luck

Android device on windows 8

I'm having a serious problem, i am trying for 2 days to simply add a device to ADB Android Debug Bridge.(from android sdk) and i can't do that, i've tried many "solutions" but none worked.
I have a project application working fine, on my Eclipse. My Operational System is Windows 8 Pro 64 bits. When i simple connect a Mobile Phone (SAMSUNG Android GT-S5301B with Android 4.0.3) to my computer, eclipse cannot find it, adb devices cannot find it too, no one can find it.
I've tried to intall the drivers from android-sdk/extras/google/usb-drivers but it told me that was already installed.
I cant understand why my OS cant recognize the phone, i tried enabling the USB Debugging in phone configurations, tried disabling it too, tried with MTB mode and MTC mode too.
I dont know what to do, i did spent 2 days triying all the things that i found, i really need a help, a rescue.
What i do?
Download adb driver from samsung website or install samsung kies it will work.

Phone can't connect to Eclipse on debug mode

I have tried connecting the USB debugger on Samsung Galaxy S2 and Samsung Galaxy Nexus. It still manages to fail on both devices. At the moment I am using Windows XP and I am running out of ideas.
Here is what I tried:
Installed SAMSUNG_USB_DRIVER_FOR_MOBILE_PHONES_1.4.8.0.exe
Searched and tried to install the drivers on Google drives.
Has anyone have this similar problem and could share a solution?
EDIT* Both devices Samsung Galaxy S2 and Samsung Galaxy Nexus are able to connect to the PC but not to the debugger. Drivers installed with different variances even done installing Samsung Kias.
I am adding a bounty tomorrow for 50 reps. I really need to test what I am doing on an actual phone.
You need to download Samsung Kies I know that the software description doesn't mention that it is the correct drivers for developers, but it in fact is.
An old issue used to be:
Use the USB2.0 ports on the back of the PC not the 1.0 front facing port.
I feel you have not installed sdk properly. Reinstall the http://dl.google.com/android/installer_r18-windows.exe, the open the adb and update all the things for the particular sdk you want.
Then verify that you have given the exact location of sdk in eclipse>window>preferences>android
Then restart eclipse.
Even you cant open it then set environment variables. For that add following ;E:\android-sdk-window\platform-tools; in PATH. Then restart windows.
After that try adb devices, adb kill-server command in Command prompt.
You will be able to see your device.
Is there any "ADB interface" devices in your PC's Devices Manager?
If you are using DDMS,Maybe there is a console(cmd.exe) window behind DDMS,you can get some log there.
Did you enable the debug mode on your device? This is not listed in the steps you followed.
Go to Settings -> Applications -> Development -> and set USB debugging.
You can use PdaNet software to connect your device for debugging. I was have the same issue and resolve with using this software. Use the following link to download this software:
http://junefabrics.com/android/download.php
I also have samsung Galaxy SII and i face the Same Problem before some days. But now i am able to get debug the app in My SII.
Please follow the steps and make sure that you follow it completely then only you cna able to get debug in your phone.
First select the Option to Install App from Unknown Sources.
You will find that option in Setting -> Applicatios -> Unknown sources. Select it as yes.
then Select the Option like USB Debugging.
You will find that option in Setting -> Development -> USB debugging. Select it as yes.
Now, Install latest Samsung Kias In your PC. Reboot Your PC, Eclipse and may be Phone also
Now, Try with connecting the Device.
Hope you will get debugging your app in to your phone.
If not then let me know which trouble you get.
Enjoy. :)
My phone has this:
Settings -> SD card & phone storage -> Mass storage only (USB connection mode is mass storage only)
Make sure that this option is NOT checked. If it is u can enable USB debugging and unknown sources and it still wont work.
If you just need to connect to the device for install and debugging you can manually select the driver to use when you plug it in.
Don't let windows search for it, choose I will pick the driver from a list, then select android composite ADB interface. It may warn you that this driver doesn't match, but it works!
I also had many problems to get samsumg galaxy S2 work on my pc. If I remember correctly finally I ended up installing Samsung Kias and installed some drivers through there. Then restarted the computer and never launched kias from then on. My phone is still not visible form command line adb devices, but now I can develop in Eclipse and deploy on the device without any problems.
From time to time I lose connection to the device (E.g. if another device was plugged in). Then I need to restart Eclipse and my device becomes visible again.
Some friends of mine also shared that some other mobile device usb drivers were conflicting with the samsung drivers (it was ZTE if I am not wrong). They uninstalled the ZTE drivers and then got the Samsuung running ok too. Try consider uninstalling all other usb drivers before you try the Galaxy S2.
Have you installed exactly the right SDK version for the phone you're using?
Given that you can access the phone on the PC via KIES, I assume that you have all the correct USB drivers installed.
Ensure that debugging is enabled on your phone. This can be done from the Settings preferences.
Install the Android SDK. Add %ANDROID SDK_INSTALL_PATH%/platform-tools to your path.
If everything is working up to this point, plug in your phone and execute the following from the command line.
adb devices
and you should see your device listed.
Install the Android Developer Tools plugin in Eclipse.
Create/Import your project.
Right click your project and from the context menu, select Debug As --> Android Application
I have had exactly the same problem as you, I even gave up on developing for 2 months because of this. I have just started again and really needed to get this working.
I tried all of the above and pretty much every combination of the above and still failed.
I have just got it working by not doing anything different apart from when I uninstall the old USB driver (add remove progs), the next time I installed AGAIN, I used the SAMSUNG USB Driver for Mobile Phones V1.3.450.0 (an older version than ones suggested on other help forums, I just got it by accident somewhere and thought I'd try it). The next time I plugged the phone in, it did all the usual finding CDC etc. that it always did when it failed...but then.... it asked for the ADB Driver, WOW! I got excited. I just selected Install Automatically and away it went.
I still already had the PDANet thing running and that popped up saying a connection is available. I've not used it though because it wouldn't install on my phone anyway.
FYI, I have these settings on the phone:
USB debugging ON (obviously)
Allow Mock Locations OFF
Unknown Sources ON
I hope this helps.
Dan.
This may not help at all since you have probably tried it already but I had huge issues on two different windows 7 machines getting my s2 to connect for debugging.
I ended up getting one working by plugging in the s2 USB connection, un-installing the drivers for it in the device manager, unplugging the USB connection, un-installing Kies, downloading the most up to date version of Kies, installing that and plugging it back in.
The other one was even more painful, it was a while ago now but I did the same as the above but removed eclipse and the Android SDK as well, installed the latest version of Kies first, the eclipse, then the sdk and made sure all of that was done before I plugged the phone in.
I faced same issue which you faced..
I solved this by this way.
1) Right click on my computer and select Manage
2) Then select Device manager..
3) connect your phone (galaxy s2 in my case)
4) I found one device with named "unknown" in sub option I foung my phone name i9100
5) Then right click on that and select update driver software
6) you will see then this..
Tadaa....Done :)
Hope this will help you also..

Categories

Resources