Android USB defaults to "power only" - android

Here's a quick tip if you need to connect an Android phone (or tablet) to a PC using USB to transfer files but find that Windows "sees" the Android device but can't see the storage on the device.
The Android device may have simply decided it will just draw power from the USB connection and not allow file transfer. There is no obvious fix for this in Android setup but here's one way to diagnose the problem and then fix it.
First plug your USB cable from phone (or tablet) to PC. On your Android, tap on Settings (the sprocket icon) and find the "Wireless & networks" heading at the top, select More (with three dots to the left), then select "Tethering and portable hotspot" followed by "USB tethering". Select it and you should see the three-branch USB symbol in the status line at the top of your screen. Swipe down from the top and you should see "Tethering or hotspot active" with "Touch to set up" below it.
Just below that you may see "USB for charging" with "Touch for more options" below it. If you see this you have diagnosed the problem. Your phone is telling your PC "all I need is power" and, by implication, "don't look at my storage".
To fix the problem, tap that USB message and you should see three or four radio buttons - "Charging" (with button selected) and "File transfers" below plus one or two more options below that. Select File transfers and your PC should now see the storage on your phone - internal and (if you have it) any SD card you have installed. Transfer your files using whichever style your prefer (click and drag, copy and paste, etc)
This works for Windows 10 and Android 6.0.1 on a Wileyfox Swift (cyanogen version of Android) and Android 6.0 on a Motorola Moto G (3rd generation)
There may be a more "kosher" way round this problem but I can't find one and the Wileyfox helpline was responsive but unable to help in the end
Does anyone have a more "kosher" fix for this problem/ Especilly one that will "stick" so I don't have to do this every time I want to trnsfer stuff to/from PC to Android

In my opinion you can have two problem: the first is that your phone doesn't have a SD-CARD as external memory storage. The second is that your OS doesn't have specifical driver for these devices. Can you run ADB shell on your computer?

if you go into developers options go down to networking then select usb configuration and chose PTP picture transfer protocol or whichever you want this will hopefully sort the missing folder/empty issue

Related

connecting android emulator as a physical android device

I am using android studio and I am emulating a device and I need is for the emulated device to e shown on my computer as if it was connected physically ... there is an on my pc I need to see my emulator as USB android so when it works I can use it on my actual device.
I'm not sure if I got your question right...
but if you want to connect your physical phone to run your application you need to make these steps.
First thing first you have to activate android developer mode on your phone, to do that
go to your phone settings click on 'about phone', tap on "software information" and then scroll down to 'build number' and tap it 7 times.
after you'll see a popup message saying that you activated developer mode.
(here is a link in case you didn't understand https://www.samsung.com/uk/support/mobile-devices/how-do-i-turn-on-the-developer-options-menu-on-my-samsung-galaxy-device/)
after that go back to main settings go scroll down to the bottom and there you will see "developer options"
tap on it and it will transfer you to the options then go to the wireless debugging
and turn it on and click it.
after you clicked you will be transferred to this page
you can choose either one of them.
now in android studio
Click the Pair device using wifi (you should be on the same network to use it)
and choose what you would like to use
and that's it...
Unfourtonaly USB debugging doesn't work for me.

Android Studio - No USB devices detected

I tried to play Android Studio 2.0 with my mobile without success, what I did are:
In my mobile, Apps/gear icon/Settings/SYSTEM/{} Developer options/ Android debugging/, enable the Android Debug Bridge(adb) interface (set tick).
After plug in my mobile to my PC with a USB cable, I found A0001 in my Computer folder. Within A0001, I can see the files in my mobile.
In my PC, run Android Studio/bin/studio.exe, "Select Deployment Target" window shows with message "No USB devices or running emulators detected"
I have tried two different USB drivers but got no lucky.
Perhaps I should tell Android Studio where is my USB driver? But, how?
Can you help?
I had the same problem too and I managed to resolve it this way.
First, enable debugger mode in your android device.
Go to Device Manager from Start Menu and try to find ADB Interface with an error symbol on it. This generally happens because windows sometimes fail to load all the mobile device drives.
Next, Go to http://adbdriver.com/downloads/ and download the driver installer, unzip and run it.
Now go to Android Studio and you should find that everything is working fine.
Chill....
same here... but I hope you can avoid this problem the same way I Did.
There is an "universal ADB Driver for all Android Devices".
Yep... sounds like magic.
Just follow this link.
https://devs-lab.com/usb-adb-drivers-for-all-android-devices.html
Fun fact there is no "Step 5" in that article so I'll give you.
you have to enable "USB Depuration" from "Developer Options" connect your cellphone to computer as a "MTP storage" , after windows detected your cellphone as a "Portable Device" Execute ADBDriverInstaller.exe (that downloaded from devs-lab)
check the device list and your cellphone will say "Driver incorrectly", select your cellphone and press install.
Step 6: Once the process is completed, you’ll see something like the image that appears there (in the link).
I hope that somebody else work this
Go to Run > Edit Configurations...
Under Deployment Target Options select Show Device Chooser
Dialog from the drop-down-list
See picture for reference
After struggling with this problem for a while, I found that there are certain cables that can only charge your phone, and even though they seem to be working, they do not allow your phone to be used as a "Media Device" and therefore Android Studio does not detect it.
Go to
Tools | Android | Enable ADB Integration
Make sure it's enabled. When I upgraded to 2.X it was for some reason disabled for me and it took me hours to find it.
I just cannot beleive why it is so difficult! let me try again and please check my steps again:
I installed Android Studio 2.0, then run Computer/OS(C:)/....../Android Studio/bin/studio.exe.
The Android Studio window appeared in my working area Computer/OS2(J:)/Users/MyAccount/Desktop/.
I connected my mobile with my computer, Cpmputer/A0001/ appeared, from it, I can see the files in my mobile.
I clicked the run icon in the Android Studio window, a "Select Deployment Target" window apeared with message "No USB devices or running emulators detected".
(I got two USB ports and tried both but got the same result.)
Finally found the solution : )
1. Install device’s required driver. (for me it was motorola device
manager)
2. Download Google Usb Driver from SDK Manager
3. Open your phone's setting->developer options and turn on USB debugging.
4. connect your device to computer
5. Go to Device Manager from Start Menu and try to find if there is ADB Interface with an error symbol on it.
5.1. If yes, then right click on the ADB interface->Update driver
software->Browse my computer for driver software-> Let me pick from
a list of device drivers on my computer->Select Motorola ADB interface
5.2. Now one confirmation will pop up in your mobile, accept it
5.3. Now you should see no error mark beside the ADB interface in your
device manager
There are 3 steps to set up your phone for debugging:
1) Change your phone to developer's mode by going to Settings, About Phone, Software Info, Android Version - tap at least 7 times on the Build Number text. You will get a message saying you are now a Developer.
2) Enable USB Debugging in Settings - Developer Options. Make sure you are not connected to your USB port to see the USB Debugging option enabled, otherwise it will be disabled.
After you plug in your USB, swipe at the top of your screen, you will see USB Debugging on.
3) Make sure USB connection is set to Photo Transfer (or MTP - Transfer photos and videos). After you plug in your USB, swipe at the top of your screen, and you will see Tap to change USB options on the menu. Tap it, and select Photo Transfer option.
Perhaps your mobile manufacturer does not provide the proper driver.
Go to Device MAnager and look for: Android Composite ADB Interface. If it's there, the driver is properly installed. If not... You and I are on the same "wagon"...
I tell you: Acer? Never again.
USB debugging somehow got turned off under developer options on my Samsung. Turned it back on and it worked, but only by clicking on "debug app" instead of on "run app".
With me, when connecting the mobile to the pc, three options appeared on my mobile.
Charge this phone
Transfer Files
Transfer Images
I thought I should select "Transfer Files", but it dd not work
But it only when works I choose "Charge this phone"
Few ways to resolve this problem.
Case 1: Install PdaNet+ in your system. (worked for me).
Case 2: Enable the USB debugging option in your mobile. Setting > developer > Check "USB Debugging".
Case 3: Change from MTP to PTP.(sometimes vise versa works).
Question is Your development sdk no mobile version android sdk Platform.
For example, my android phone system is 6.0, i need download sdk Platform 6.0.
First, try to revoke the usb sessions in the developer options, then try downloading an oem usb driver
If then doesn’t help you can try opening the device manager on windows, right click on your phone, select uninstall. This worked for me if I had the same issue.
I couldn't find my android phone or any USB device I connect to my windows laptop on the hidden icons. Well, my mouse and phone could charge but I can't seem to see my phone in the File Explorer option.
I prefer running Apps using my phone rather than emulator in Android Studio and yet I couldn't see my phone when I connect using the USB.
This helped me solve all my problems after several hours of searching for solution.
Download Universal ADB Drivers - One size fits all Windows Drivers for Android Debug Bridge
Please use this link: https://adb.clockworkmod.com/
I hope this works for you like magic!
I can see all the devices I connect using the USB cable and my mouse receiver.

How to set Android M default USB config to MTP rather than "charging only"?

Whenever my device (Nexus 5, Android M Preview 3) connects via USB, the USB config always defaults to "charging only".
This is quite problematic because the USB port on my device is faulty and sometimes disconnects and reconnects when bumped and so I have to manually change the mode to MTP (media transfer protocol) from the notification drawer each time.
Debugging mode is enabled
Develop settings -> USB Configuration is set to MTP.
I just tried this on my Nexus 5 (Android 6.0.1) and it worked:
Make sure your phone is NOT connected to any device over USB cable
Go to Settings - Developer options - Select USB Configuration
Set your desired default connection type
The trick was to have a phone disconnected from USB. I guess the idea behind such a behavior was that if you set an USB connection type while your phone is not connected to any device, it will be treated as a default behavior.
By Default, Android 6.0 does not provide an automated method to select MTP when the device is connected as USB. After much wait and research through XDA, blogs, stackoverflow etc, the best solution I found to this was a small application, named MTP enabler PRO Marshmallow(4.5 MB) - built by one of the users to overcome this problem.
This requires a rooted device.
Below is a link to download the APK file.
http://forum.xda-developers.com/android/apps-games/app-mtp-enbaler-t3263467
Below is a link to the app in PlayStore(paid app)
https://play.google.com/store/apps/details?id=mtp_enabler.esolutions4you.de.mtpenabler&hl=en
Hope it helped.
This is a major problem for a layman to use. To access the files on your PC you need to follow the steps mentioned below:
Swipe down on the screen, tap on "USB for file transfer".
Select the option "Transfer Files(MTP)".
Primarily this should solve the problem.
But, if this DOES NOT solve the problem, then follow the following steps.
Make sure the SD card is inserted properly.
Go to "Settings-->Apps".
Tap on the three dots on the TOP RIGHT corner of the screen and tap on "Show system apps".
In that list of apps, find the apps "External Storage" and "Media Storage".
Now clear the data and cache for those apps.
Reboot your device.
Now go to "Settings-->Developer options" and enable "USB debugging".
Then tap on "Select USB configuration" and select the option "MTP(Media Transfer Protocol)".
Now connect your device to your PC and you should be ready to go.
You have to follow these steps only once, however, you need to select the type of connection every time by swiping down on screen and selecting the option "MTP".
Hope this helps...!

Enable the SD Card while USB Debugging?

I am developing a phone app and I'm testing it with my Droid RAZR with OS version 4.1.2
I need the phone to be able to use its SD card, and prevent the computer from using the USB connection as a "mass storage" connection, which causes it to take over the SD card (it can only be mounted to either my phone or the computer, not both).
You used to be able to connect to the computer in "Charge Only" mode, which would keep the SD card active with the phone, but that no longer seems to be an option. There is only Mass Storage (computer uses SD card), Media Device (same story), and Camera (same there too).
Is there another option? Perhaps some way to disable the mass storage from the PC's side but still retain the USB Debugging?
Take a look at this thread here. As stated there:
Next, enable USB debugging by checking the “USB Debugging” item.
Finally – and this is the most oddball – you need to go back a screen,
to Settings, and click on the Storage item. Up in the upper right of
the screen are three tiny squares which represent the Jelly Bean way
of doing a context menu. Click that, and a small “USB Computer
Connection” item will appear. Click that. You’re taken to a new
screen with two “Connect As” options.
Check “Camera”. Yes, because USB debugging requires the use of a
camera (no, not really). It’s just a requirement. Something about
the communication protocol or file transfer encoding or something. I
don’t make this stuff up.

USB Debugging setting keeps "unchecking"

I'm doing Android development with Eclipse 3.6.2, OS X 10.6.7 and a Samsung Galaxy Tab.
Everything is working great, except every 15 or 20 minutes, the Settings | Applications | Development | USB debugging checkbox "unchecks" itself. Which means I need to unplug the USB cable and go back into the setting, re-select the checkbox, plug the cable back in and I'm good to go.
What I would like to know is if there is some way to make that checkbox "sticky" (I asssume it probably is supposed to be - but I haven't been able to figure out under what circumstances cause the "uncheck" to occur). I've tried a number of variations of USB / sdcard / Development settings and haven't found the "sticky bit" yet.
I'm new to Android, so I'm hoping there is some "you forgot to also do X" here...
EDIT:
Maybe it has to do with a USB Mass Storage message that pops up after 10 min or so? I just noticed a message "USB Connected: You have connected your phone to your computer via USB. Select Mount if you want to copy files between your computer and your phones SD card".
I have a Galaxy Tab and have not experienced this behavior. Nor have I encountered this on any other Android device, and I have used quite a few for development purposes.
From what I can tell, this state cannot be toggled via SDK applications, but only via the firmware. My guess is that there is something flaky in your setup that is triggering something in the Tab's firmware to do this.
Sorry that I don't have a silver bullet for you.
UPDATE
Maybe it has to do with a USB Mass Storage message that pops up after 10 min or so? I just noticed a message "USB Connected: You have connected your phone to your computer via USB. Select Mount if you want to copy files between your computer and your phones SD card".
That further suggests there is something strange going on between your development machine and the Tab. That should appear when you first plug in the cable, then remain there until you unplug the cable. I would not expect it to be toggling the USB debugging checkbox, but I am really starting to think you have one screwed-up Tab.
Had the same problem on Huawei P20. Upon activating developer options, what I did was :
On the smartphone, open System Settings -> Developer options -> Enable USB debugging
Connect the smartphone to the computer
When the prompt shows on the smartphone select "File Transfer"
Uncheck and check USB debbuging (smartphone is still connected to computer)
The prompt for USB debugging finally appears
Hope it helps.
verizon has something running in the background making this happen and having the same problem on my samsung fascinate after upgrading to fro yo. I think they're trying to block usb tethering
My Galaxy Tab 7" does this all the time. I would be in the middle of something and it would just drop. Over & over.
The solution that I found that works great for me is to just use adbWireless. This allows you to run ADB over wifi instead of USB. adbWireless can be found on the Android Market. It does require you to ROOT your phone, but since you are developing for it, you will want to do that anyway.
THis seems to have gone away in 2.3 for DroidX. But it was quite frustrating when I was using DroidX w/ 2.2 on OS X to debug.

Categories

Resources