Cannot connect to android device from arch - android

I am trying to push software to my phone from android studio but something very strange is happening. My Samsung S7 is detected under usb devices but not under android devices and there are 6 "ghost" android devices that are not in the usb devices list but show up in adb, all the "ghost" devices are listed as api level 1 and are unaccessable and i cannot connect to my phone, also my phone has usb debugging enabled, is in mtp mode and i have all the adb stuff and mtpfs and jmtpfs installed on my computer
Edit: Also when I connect my phone to my laptop my phone says The connected device is unable to access data on this device. Reconnect the USB device and try again
Edit 2: I added some udev rules and now the ghost devices have dissapeared but my device is still not accessable
Edit 3: I can access the files on my phone through MTP but adb still does not recognize it

Try changing the connection type in your phone for example from Media Device (MTP) to Camera (PTP). I had the same issue with my Galaxy S8 and changing the connection type fixed it.

Related

Android Studio - Can't connect to device (Samsung Galaxy S7)

I've got an issue while trying to run an app on android studio. The list of connected device will always remain empty. Thus I can't deploy my app on the phone. The OS is Windows 10.
I already take these steps:
installed driver from Samsung. The device is shown in device manager and I've got access from windows to it
Swapping USB Ports a dozen times
Developer Setting on
Switched Media Port both Camera (Ptp) and Media Device (MTP)
Does anyone has further tips?
Look if USB debugging is enable in the developer options of your smartphone.

WiFi debugging without USB

I am developing on a Sony Xperia Z3 Compact at the moment, which now has a broken USB slot. I read about how to connect my phone to Android Studio via WiFi, but all the solutions I found were requiring the phone to be connected via USB in the first step. My device is not rooted!
Is there any way to get the connection to Android Studio going without connecting via USB first?

Can't Connect Android Device to PC on Windows 8

I've tried everything, when I run 'adb devices' on my new HP Envy Windows 8 laptop I get a blank 'list of devices attached'. I've reinstalled the USB driver for the phone (Samsung Galaxy s3), I've set it to developer settings. The only clue as to what is wrong is when I performed troubleshooting on the hardware and devices control panel it said I have USB 3.0 ports and a USB 2.0 device. Though I read that the ports would be backwards compatible. Any ideas?
2014-April: I agree this is an issue with Windows 8 / 8.1 and this approach was only successful by happenstance.
On my Win8.1 system, even with Samsung's official driver installed (see link below), my SGH-I727 Galaxy SII Skyrocket would not connect over USB - neither with MTP nor PTP enabled on the device under Settings > Storage > [press menu] > USB Computer Connection.
I ended up doing the following, while the phone was untethered, and after installing the Samsung driver:
Open an elevated CMD prompt, if logged in as a non-admin
Type: set devmgr_show_nonpresent_devices=yes [press enter]
Launch DEVMGMT.MSC
Clicked VIEW > enabled SHOW HIDDEN DEVICES
Expand Universal Serial Bus controllers
Right-click uninstall all entities that appeared in gray [gray = not present]
Expand System Devices and repeat removal of non-present devices.
[NO REBOOT WAS REQUIRED at this point]
Plugged the phone into a standard USB port - still unresolved
Plugged the phone into a USB 3.0 port - device was recognized and installed itself
There is now an entry under Universal Serial Bus controllers named "SAMSUNG Mobile USB Composite Device". The driver tab for that entity is dated 02-Jan-2014 with version 2.11.7.0 from "SAMSUNG Electronics Co., Ltd." Note this version is different than the one downloaded directly from Samsung (see link below) which is 1.5.14.0.
There are now also two new entries under Portable Devices: "MTP USB Device" which is presently gray despite the device being currently connected, and "SAMSUNG-SGH-I727".
Windows Explorer now shows a device named "SAMSUNG-SGH-I727" and, when opened, shows both "Internal Storage" as well as "SD Card" directories.
ALSO NOTE that the phone has to REMAIN UNLOCKED, in order for Windows Explorer to provide access to the aforementioned directories. Most smartphones will block access to these directories, when the phone's interface is locked due to your security preferences. In other words, ensure you swipe or enter your passcode and remain seeing your phone's main screen, while trying to view its directories via tether.
Samsung Driver [version 1.5.14.0]:
www.samsung.com/us/support/owners/product/SGH-I727MSAATT
Are you mounting the device as a camera?
In other words, head over to Settings > Storage > "Usb computer connection" (via the ActionBar) > Camera (PTP).
Make sure the Samsung drivers are installed. Power off your phone. Power on the phone in Download mode. (Volume Down + Home + Power) Press Volume Up to continue. Once it's in Download mode, plug it into your computer. Windows should now discover it and load the driver. Once this is complete, unplug the phone from the computer, and pull the battery out of the phone to get out of Download mode. Replace the battery, and power on the phone like normal. It should connect to the computer properly.
this from this thread
http://forums.androidcentral.com/verizon-galaxy-s-iii/286104-s3-wont-connect-via-usb-my-computer.html
the problems will be related to the driver i face problems like this with my android device connecting to my pc
I had a similar problem (samsung note 3, hp win 8.1). When plugged in, the phone would constantly connect and disconnect. I tried 3 things - delete the whole driver from device manager (did nothing), swap from USB 2.0 port to usb 3.0 port (may have been part of getting it working) and changing one drive settings.
One drive has a setting to sync data across all devices. It appears that windows trying to grab sensitive data from the phone was causing it to reset the connection. When I turned that off I got a stable basic connection.
I may be the only one, but I am creeped out that MS takes every opportunity to behave as spyware.
Good luck, I hope that helps

Mac doesn't recognize Android 2.1 phone

I'm trying to set up my old Android phone for testing my apps. The phone is still on 2.1 (Samsung Captivate) and is inactive. I can't get my Macbook Pro on OS X (10.8.2) to recognize the phone. I have the box checked for USB debugging in settings, but when I plug the USB cable in, nothing happens. If I go to the adb directory and type ./adb devices, I show no devices attached.
Any ideas?
First of all Install device drivers for your phone if you have not installed it.
if you already did it and still not recognizing then try rebooting the device and Mac both.may b it will work.

can't get ADB to recognize my galaxy

I've followed this post trying to run my application on my galaxy. My app is debuggable, USB debugging is checked on phone and I've manually installed USB drivers - my device manager shows me that I have Android ADB Interface installed.
Despite it all - when I am running adb devices it would only list the emulator.
Any ideas? thanks!
P.s. I am running windows 7 and the mobile is Samsung Galaxi 1900I
I use Droid X, in Win 7.
sometimes it is not work too (adb can't detect my device)
but the solutions is simple, just switch usb connection into Windows Media Sync (ie. from PC Mode) , it is work for me.
also make sure to set your device in Debug mode (USB Debugging)
Yotamoo, When you first plug in, Windows offers you some choices on how to deal with the new device; Open in File Explorer, etc...one of them is Windows Media Player. Choose that. I had similar problems and this solution worked for me and my galaxy S3...
hakim, why does this work?
Make sure you installed the USB Drivers.
Locate your phone in Device Manager and see if it working correctly.
These are the correct drivers.
Turn Debugging mode on on your phone.
You will be prompted to accept USB debugging on your device if it detects some application would like to use it.
After you agree it will pop up as a debug-able device.
I had the same problems.
Try to update your smartphone in the device manager (computer->properties).
http://developer.android.com/tools/extras/oem-usb.html#Win7

Categories

Resources