[Q] Confine USB port for charging only - Epic 4G Q&A, Help & Troubleshooting

I'd like to be able to charge my phone via USB on either the laptop or desktop computers at work, but everytime I plug it in and only say to charge, the comp still tries to download drivers...which also means Boeing could be accessing my phones SD card data. I could have sworn there was an option after entering the MSL that allowed me to make it charging only. Any advice?

Make sure "USB Debugging" is disabled on your phone. It's not the best to leave this enabled when plugging a phone into an untrustworhty computer.
Otherwise, when plugging the phone in it should prompt you to "Select a USB mode", and just press "Charging". The computer might see it as a Mass Storage device, but it can't actually mount/read the SD card unless you select "Mass Storage" at the above prompt.

I have USB Debugging enabled, and I do click Charging Only but I still worry as to what the sneaky IT guys at Boeing still might be able to do since the computer is still seeing it as a device and trying to mount it vs just charging and ignoring the fact that its a phone, SD card reader, etc.

With "USB Debugging" disabled, the phone presents itself just as a mass storage controller. But the SD card can't be mounted on the computer unless you explicitly allow it to on the phone, which has to unmount it from Android first before it can allow the host computer to see (and potentially alter) the SD card's contents.
With "USB Debugging" enabled, the phone presents itself as a composite device: the adb interface, a mass storage controller, and a UART (which isn't connected phone side). The behavior of the mass storage controller is as above, but the adb interface is trouble.
The issue is that the host computer can execute arbitrary commands as the shell user over the adb interface, including reading system logs (which may potentially contain sensitive information) and silently reading/altering SD card contents. Furthermore, if you're running a custom kernel, it's quite possible that the host computer can get a root adb shell without prompting, at which point it can do all sorts of nefarious things with your phone.
Again, "USB Debugging" disabled and "Charging" mode should be alright. There's no conventional way to access your phone content that way. But it does come down to how confidential your phone content is, and how much risk you're willing to tolerate. USB is a rather complicated protocol and I suppose it's conceivable that a USB host could exploit a client and run arbitrary code. Usually it's the other way around (a nasty client exploits the host).
If you really want, you could hack up a USB cable so that the computer side data pins are unconnected, and the phone side data pins are shorted. By doing so, the phone will charge (and only charge) from the computer. However, depending on how spec compliant the host port is, the phone might be limited to 100 mA, which is 1/5 the current the phone would normally draw.
Honestly, it's probably just best to bring your AC charger with you, or pick up a cheap spare for use at work.

I have standard wall chargers which pump around 600mAh into the phone (per Current Widget w/ settings at * and 2.18) while USB charging is only around 300mAh. Technically I'm not even supposed to have my phone on me, nor a I supposed to be charging the phone via extension cord or via USB on the laptop, but since I'm buried in here so much while using a laptop, USB will suffice to at least keep the phone charged vs the 26% I'm at now w/ almost 2hrs left in my shift while using a 3500mAh battery.

Related

[Q] cant connect to computer

my Evo wont connect to CPU any more ive tried reading all the other threads but still not working
I just want to flesh out some of the details here.
Is the phone charging when you plug it into the computer?
Is there any activity from your PC or the phone when you select "Disk Drive" from the USB menu? (Like maybe a USB error/not connected sound in Windows).
Are you able to access or see it through ADB using the SDK?
Does it work on any other computers?
Have you done anything recently? Did it just happen today?
usb connection not working
I'm having the same problem--my original usb cable was damaged, and I just bought a new (generic) one. Does the EVO require a special type of cable rather than just a standard micro usb?
Here's the details:
USB Debugging is enabled.
Phone is set to ask for connection type (default is disk drive).
Phone charges when plugged into the PC but the computer doesn't recognize it.
In the notification bar, there is the usb debugging icon, but not the other one that usually says charge only/disk drive, etc.
ADB doesn't see the phone.
So far I haven't been able to get to another computer to see if it does the same thing. I tried disabling usb debugging, no effect.
update
Ok, yesterday I got my phone replaced because the screen was damaged. I also got a new usb cable; this one specifically for the EVO. Same thing. I plug it into the computer, and it charges, but the PC doesn't recognize it, and the phone just seems to think it's plugged into an AC adapter. The phone is set to ask what to do whenever I connect it to a PC. Since this is a brand new phone and cable, I would think this would have to be a computer issue, but the PC doesn't seem to recognize that anything has even been connected.
Update: solved--it was the usb port. For some reason the usb ports on my pc case stopped working; plugged into one of the back panel ports and it works fine.
Any microsd cable will work, I'm using my palm pre's now, my htc cable went out a month ago.
I
Chevk device manager whole you are plugging your phone in. just in case there is some bad driver issue, it should show there.
Swyped from a galaxy far far away......
ariston72 said:
Ok, yesterday I got my phone replaced because the screen was damaged. I also got a new usb cable; this one specifically for the EVO. Same thing. I plug it into the computer, and it charges, but the PC doesn't recognize it, and the phone just seems to think it's plugged into an AC adapter. The phone is set to ask what to do whenever I connect it to a PC. Since this is a brand new phone and cable, I would think this would have to be a computer issue, but the PC doesn't seem to recognize that anything has even been connected.
Click to expand...
Click to collapse
connect ur evo to ur comp with usb.. then reboot and do fastboot should fix the problem.
bryanno7 said:
connect ur evo to ur comp with usb.. then reboot and do fastboot should fix the problem.
Click to expand...
Click to collapse
how do you fastboot?
ariston72 said:
Here's the details:
USB Debugging is enabled.
Phone is set to ask for connection type (default is disk drive).
Phone charges when plugged into the PC but the computer doesn't recognize it.
In the notification bar, there is the usb debugging icon, but not the other one that usually says charge only/disk drive, etc.
ADB doesn't see the phone.
Click to expand...
Click to collapse
I have this exact same problem. Can anyone help me out here? The only dif is I installed a kernal http://forum.xda-developers.com/showthread.php?t=719763
Universal Builds:4.3.1:
--CFS builds--
netarchy-toastmod-cfs-havs-nosbc-universal
and after that the usb connection was lost from my cpu. It will only charge now. Any help here would be much appreciated! Thanks

[Q] Usb master mode

hello everybody here on xda,
i have my self a very shinny hox (t3) unlocked through htcdev.com but no s-off but my question is can any one tell me what usb master mode is? i may sound stupid but when you hold down both volumes and the power a weird message comes up looking for a .zip then usb master mode but reboots back to the bootloader?
cheers :good:
+1
Anyone?
USB is asymetrical - meaning that in a usb link there is a master and a slave. For example, when you plugin a usb drive to your PC, the PC is the master and the usb disk is a slave.
It's done this way to lower cost of end devices, usb devices can be "dumb" when their slaves - means less components to build them - means cheap cheap cheap!
This is why Firewire was better, but failed to adopt as much as USB.
At any rate, when you connect your OneX to the PC, it acts in slave mode, presenting a couple of devices - USB Storage, Network Adapter, ADB and what have you not. What you see in hboot is when it is in master mode - meaning you can connect stuff like USB drives and keyboards TO the One X (using a Y Cable). In hboot specifically this is used to find recovery zip/.nbh files. Since the OneX has no removable storage, if you would screw up your system and recovery for some reason, you wouldn't be able to restore your phone easily (well, yes, there are methods, but it's basically HTC trying to have functionality they used to have by using a dongle).
I believe some android roms could (and do) provide Master mode for OneX. This would allow you to hook up USB keyboards, mice, gamepads and usb disks.
Hope this explains everything

[Q] Trouble connecting USB to PC

I almost always have trouble synching to my PC. I connect the USB, the PC makes the bong-bong sound. My phone reads USB connected. I hit Turn On USB, then OK to Turn On USB Storage. I get "USB storage in use" but cannot see it on my PC and can't move files. Again, this is almost every time, which is odd. Every so often it does work.
I'm using Windows 7. I have tried multiple SD cards and cables and USB ports. If I connect the SD cards to my PC with a card reader, it works every time. As per T-Mobile, I have tried with debugging both on and off, no difference. The USB cables do charge the phone.
Does anyone have solutions I can try?

[Q] Mass storage device, instead of MTP/PTP?

I have a stock SGH-I747M with Bell Canada. When I plug in my phone into my PC, it shows up as a "phone". When I plugged in my old Atrix into my PC, it showed up as a drive, aka USB Mass Storage Device, and I could do so much more with it. The biggest problem is that I can't use Treesize on the phone. Treesize doesn't know what the hell to do with an MTP or PTP device. I can see why they chose MTP instead of MSD, because you don't have to wait for it to mount/unmount, and both devices can use the storage at the same time. But that just means I'm never going to see the max USB transfer speed.
Is there any way to force it to connect in MSD mode? Or would that require rooting? I still have a 1 year warranty, so I'd rather not root if I don't have to. Yes I know I can unroot if I have to send it back, but what if my phone breaks and becomes so unusable that I cannot unroot?
Saw this http://www.xda-developers.com/android/usb-mass-storage-app-for-recent-samsung-devices/. Not sure if it will work or not.
Sent from my SAMSUNG-SGH-I747

S20 Plus connection stability with USB 3.0 specifically

Ok this is driving me nuts so I gotta ask...I have a S20 Plus 5G (Verizon) and have a brand new custom-built computer with a ridiculous amount of USB 3.0, 3.1 ports. I have to tether my phone to my PC for internet so I use the USB-C to USB-C cable that came with the phone to connect to the single USB-C port on the computer. I also use said connection for Samsung DEX (not simultaneously, would if I could lol).
With this specific setup, I don't have any issues at all, but I know for a fact that it's not a 3.0 connection because of the cable (the "Device can perform faster when connected to USB 3.0" message confirms as much). The cable is obviously the limiting factor holding it back from 3.0 so I tried replacing it in the setup with various (both USB-C to USB-C and USB-C to USB-A) 3.0 cables and sure enough, I get the correct "connected through USB 3.0" message under my device's name in the devices menu.
However, no matter which 3.0 cable I try or which 3.0+ port I plug it into, I always run into the issue of the device randomly disconnecting/reconnecting every so often. I get the whole disconnected/reconnected sound deal and the "select what happens with this device" Autoplay message. I've tried turning off Autoplay, turning off the USB notification message option, going into device manager/registry and ensuring that every single thing related to the USB ports has the power conservation option turned of, etc.
One major thing is that when I created a USB 3.0 "certified" connection with my mom's slightly older custom-build computer, it seemingly had no problems holding the connection, so it appears as though it's something on my computer specifically that's causing it. I just frankly have no idea what that thing could be at this point. Any ideas?
lolDayus said:
Ok this is driving me nuts so I gotta ask...I have a S20 Plus 5G (Verizon) and have a brand new custom-built computer with a ridiculous amount of USB 3.0, 3.1 ports. I have to tether my phone to my PC for internet so I use the USB-C to USB-C cable that came with the phone to connect to the single USB-C port on the computer. I also use said connection for Samsung DEX (not simultaneously, would if I could lol).
With this specific setup, I don't have any issues at all, but I know for a fact that it's not a 3.0 connection because of the cable (the "Device can perform faster when connected to USB 3.0" message confirms as much). The cable is obviously the limiting factor holding it back from 3.0 so I tried replacing it in the setup with various (both USB-C to USB-C and USB-C to USB-A) 3.0 cables and sure enough, I get the correct "connected through USB 3.0" message under my device's name in the devices menu.
However, no matter which 3.0 cable I try or which 3.0+ port I plug it into, I always run into the issue of the device randomly disconnecting/reconnecting every so often. I get the whole disconnected/reconnected sound deal and the "select what happens with this device" Autoplay message. I've tried turning off Autoplay, turning off the USB notification message option, going into device manager/registry and ensuring that every single thing related to the USB ports has the power conservation option turned of, etc.
One major thing is that when I created a USB 3.0 "certified" connection with my mom's slightly older custom-build computer, it seemingly had no problems holding the connection, so it appears as though it's something on my computer specifically that's causing it. I just frankly have no idea what that thing could be at this point. Any ideas?
Click to expand...
Click to collapse
I have not understood your intention.
Why do you have to connect the phone via USB cable to your computer?
If you have internet via mobile data on your phone and want to share it with the computer, you can tether via mobile hotspot of your phone. Just connect the computer via wifi to your phone's hotspot.
And your device should be able to use Dex wirelessly. I read about it in one of the latest Android 11 OneUI 3.1 changelog.

Categories

Resources