Impossible to create shortcut to eject USB (OTG) - Android Q&A, Help & Troubleshooting

Hi, I'm trying to create a shortcut to remove an USB instead of having to go to "Settings - Storage - Eject" but it seems impossible.
No matter how many umount commands I tried, the USB never really unmounts, I still can read it. The only way so far is the setting I said above. When I capture the log, I see some intent about EJECT_MEDIA, but I have no clue on how manually trigger that so I can place a shortcut somewhere.
Does anyone know how can I achieve this?
Thanks!

Related

[Q] After flash to TNTlite 4.4, no longer can connect PC to gTab

With apologies to Roebeet, who provided a response to an earlier inquiry about this - - but I couldn't interpret what to do - I am posting here to see if anyone who has flashed to TNTlite 4.4 has had a problem with connecting their PC to the gTab and being able to then see the sdcard drive and contents. When I connect now, the tab shows a "USB Connected" and then a USB Debugging Connected" message, but nothing can be seen on the PC, except, a removable disk (F and when that is hilighted the message "please insert a disk into drive F" shows up.
Any advice, reference to a thread that addresses this, or other guidance would be greatly appreciated.
Thanks!
Pinckneyite,
This is a new one to me and I read the forums pretty thoroughly.
Since the drivers that communicate to the PC are built in, the only
suggestion I can think of is to re-flash the ROM and see if it comes
up.
If not, then I would re-flash back to stock
http://forum.xda-developers.com/showthread.php?t=861950
and see if it works there. Along the way, you may need
to load CWM (ClockWorkMod) in case you need to clear/wipe, etc.
Do some loading and testing the let us know what you find out.
Rev
It doesn't automatically mount on your PC. You have to pull down the notifications menu and select "USB Connected." That will give you a dialog that will allow you to "Activate" USB file transfer.
K J Rad said:
It doesn't automatically mount on your PC. You have to pull down the notifications menu and select "USB Connected." That will give you a dialog that will allow you to "Activate" USB file transfer.
Click to expand...
Click to collapse
Ahhh. That worked. Guess I hadn't even looked there. Thanks!
You have no idea how long I spent trying to figure that out when I had that problem... ;-)
K J Rad said:
You have no idea how long I spent trying to figure that out when I had that problem... ;-)
Click to expand...
Click to collapse
Well maybe, then, you know what the "USB debugging" option on that notifications menu means? I see it there as an option to turn it off or on. Leaving it on seems to do nothing to handling file transfers, etc. What is it for? Thanks.
USB Debugging is a development tool. It's not necessary for average daily functions but a few apps out there require it. It won't hurt to just leave it on.
TNT (Lite) is different thatn AOSP based mods, that's correct - you just have to click on the "!" icon.
roebeet said:
TNT (Lite) is different thatn AOSP based mods, that's correct - you just have to click on the "!" icon.
Click to expand...
Click to collapse
Ahh. That was a !, not a 1. That was my problem the first try.

HOLY CRAP annoying motorola phone portal

Whenever I plug my phone in, set it to USB mass storage, it always sets back to Motorola phone portal with a little roll back icon in the menu bar.
I need the USB mass storage to grab some files off my atrix. How do I fix this?
I was having a similar problem until I uninstalled Motorola Media Link.
close everything related to your phone. I had the same problem once and it turned out I had a cmd window open with adb commands that had been previously run on it. I'd close EVERYTHING related to your phone, restart the phone then start again.
Like someone previously mentioned about Media Link, if you right click the icon in the system tray, there is a menu in the pop-up that gives you the option of selecting what the device does by default when you connect it. By default, the option is set to Phone Portal, but you have the option of setting it to that, Mass Storage or None.
I'm not 100% certain that the second option is Mass Storage, but I know that it can be changed so that your phone won't default to Phone Portal. It should just be a matter of exiting Media Link rather than uninstalling it that or merely changing your settings in it.
I think he means the glitch where no matter what you choose on the phone itself, it will always default back to the phone portal option before it mounts the SD card as a usable USB device in Windows Explorer.
I suppose that's possible, but without being more specific, the problem could be resolved by changing the MediaLink settings. Obviously, if the problem is the one you are referring to, my suggestion would be irrelevant. =p
Anyone get PAW server working in place of Moto Phone Portal? Gawd it sucks!
1. You have to use IE or FF, which is cool because I already use FF, but when I click on File Manager it warns, "File Manager access supported on Internet Explorer only." WTF over they can't make up their minds?
2. I finally get File Manger working through IE of course and then it takes me to some DavWWWRoot web folder???
3. So I copy a couple music files - then go to the phone using Astro - find the files in my /mnt/sdcard/ folder - copy the files (won't let me cut or move) - find my "Music" folder deeper on the SD card - copy the files there - go back to the /mnt/sdcard/ folder and delete the now duplicate files.
Holy smokes is this thing awful or am I just making it awful?
Please someone help me get the much better PAW working!

[Q] Issue with [ROM][JB][UNOFFICIAL] CM10 BETA1 based port for Legend

Since i cant post in the development section,so i decided to post my issue in here.
I have this problem which i cant access my SD card content through the music and gallery stock apps.I tried using third party apps and it still gave the same result.The apps show no content at all.Anyone have went through the same problem?Any idea how to solve this issue? :fingers-crossed:
maybe you should try it with another microSD-Card, I also had some problems with the installation, so I had to install it many times until it really worked fine...
Issue with [ROM][JB][UNOFFICIAL] CM10 BETA1, to enable USB Media device,phone storage
Neither I (noob) can post new thread with new issue discovered... So I post this here.
This is my first post on XDA forum. I have been using the ROM now for 1 week. Gracias Zeubea!!! Neither any problems with battery drain, it lasts for 2-3 days.
Here is my issue:
THe idea was to review and put some new ringtones in /system/media/audio/ folder on phone's storage.
I shut down the phone, took out the SD card and boot it.
Then I connected it via USB to WinXP PC. Windows explorer does see Removable Disk letter, but it doesn't show its contents (folders, files...).
While there is SD card on, notification in status bar appears and you can choose to turn-on USB memory storage. When there is no card in, there is no notification and you cannot choose to view folders in phone's memory, while I could do that when I had official Froyo from HTC.
I googled a bit and found some kind solution on another type of phone (i have link, but i cannot post it, since I am noob!)
via Settings/Wireless&Networks/Storage and then choose Menu button and under additional options you can find "Connect as Media Device (MTP), which is turned off by default , and when you try to turn it on, menu hangs and it forces to close. There is 3rd option in that menu which doesn't appear on that page is, Turn on USB Mas Storage which is on.
I did further some search on XDA forum and even tried code in Terminal Emulator under su rights
persist.sys.usb.config=mass_storage,adb
and nothing happened
Is this some bug that one can expect maybe will be adressed in the future?
povejmi said:
Neither I (noob) can post new thread with new issue discovered... So I post this here.
This is my first post on XDA forum. I have been using the ROM now for 1 week. Gracias Zeubea!!! Neither any problems with battery drain, it lasts for 2-3 days.
Here is my issue:
THe idea was to review and put some new ringtones in /system/media/audio/ folder on phone's storage.
I shut down the phone, took out the SD card and boot it.
Then I connected it via USB to WinXP PC. Windows explorer does see Removable Disk letter, but it doesn't show its contents (folders, files...).
While there is SD card on, notification in status bar appears and you can choose to turn-on USB memory storage. When there is no card in, there is no notification and you cannot choose to view folders in phone's memory, while I could do that when I had official Froyo from HTC.
I googled a bit and found some kind solution on another type of phone (i have link, but i cannot post it, since I am noob!)
via Settings/Wireless&Networks/Storage and then choose Menu button and under additional options you can find "Connect as Media Device (MTP), which is turned off by default , and when you try to turn it on, menu hangs and it forces to close. There is 3rd option in that menu which doesn't appear on that page is, Turn on USB Mas Storage which is on.
I did further some search on XDA forum and even tried code in Terminal Emulator under su rights
persist.sys.usb.config=mass_storage,adb
and nothing happened
Is this some bug that one can expect maybe will be adressed in the future?
Click to expand...
Click to collapse
Your funny, if you take out sdcard then try to access sdcard via USB its not going to work :banghead: because sdcard is gone, there is nothing wrong with zeubeas rom in regards to USB storage.
Oh and btw, you can't access system folder using USB mass storage mode, you can use adb on your computer to access the phones storage bits n pieces like system, data and sdcard.
For the sake of safety for your phone I think that you need to get a better understanding of how android system works before messing with your system folders!
Sent from my Legend using xda app-developers app
ranger4740 said:
Your funny, if you take out sdcard then try to access sdcard via USB its not going to work :banghead: because sdcard is gone, there is nothing wrong with zeubeas rom in regards to USB storage.
Oh and btw, you can't access system folder using USB mass storage mode, you can use adb on your computer to access the phones storage bits n pieces like system, data and sdcard.
For the sake of safety for your phone I think that you need to get a better understanding of how android system works before messing with your system folders!
Sent from my Legend using xda app-developers app
Click to expand...
Click to collapse
dear ranger; first of all, thank you for very prompt answer. Iam glad this is very live community, where you can post any question and you get answer. With all respect, in stock ROM, both HTC and some other LG model my wife owns, when you connect via USB the phone without SD card, there is notification and dialog what sort of connection to choose (you know: charge/USB storage/...). Even CM 7.2.0 final for HTC legend has it. You can access contents of phone storage (without SD card). Haven't you tried yourself before?
Maybe you are other type of person, but my goal is not to be every day clung infront of PC passing adb commands to comunicate the phone with PC. I thought there is some simplier way to do the same. I will be glad if you can inform me where I can read more about adb commands regarding accessing and passing files across system folders.
And I don't even intend to mess with sys folders, I know for this we have zeubea type people. Simply I wanted to add few ogg files, that's it. And I know I can put same named folders /media/audio/ringtones/ on SD card and it should funcion with some minimal lag but I was curious if it is very simply to that other way. I will not even intend to mess system folders.
Have a good day. =)
I'm not sure what you want - the Legend has limited onboard flash, so you really should use your SDcard as much as you possibly can. Use Link2SD to store non-system apps on an extra partition on your card, so apps won't die when SD card's primary partition is mounted via USB.
To transfer music, connect Legend to your computer using USB, enable USB storage on phone, and copy music files to SDcard's 'music' folder. Works for me using mp3, haven't tried ogg.
---------- Post added at 11:37 AM ---------- Previous post was at 10:48 AM ----------
I'm also considered a noob, so I can't post in the rom dev thread yet, so here we go
I've been running this ROM for about a week, and I've had some issues that I haven't seen reported elsewhere:
Contacts: When searching for a contact, it appears that some filtering is applied, and oftentimes the contact I'm looking for is not found, although it's there when I scroll through contacts. Depending on language settings (english vs danish) the search also seems to be case sensitive, so e.g. entering 'fra', 'Frank' doesn't show up.
Also, contacts are not consistently transferred to my Parrot Bluetooth car kit. Could be bluetooth glitches
WLAN: Using Wifi Analyzer and similar apps, channels are not identified properly, but instead marked as all 0, 1 or ?. I suppose it hangs on a slightly unsuitable WLAN driver, because I haven't seen it in other JellyBean or CM10 ROMs (HTC HD2)
More issues
I just found a few threads mentioning the WLAN channel issue on select HTC handsets since CM6: http://forum.xda-developers.com/showthread.php?t=1022379 and http://forum.xda-developers.com/showthread.php?t=891563. Unfortunately, there's no clear solution in those threads.

[Q] Phone Memory partially pin locked?

Hey there,
Recently my Galaxy S3 fell to the floor and the display broke. Now I'm desperatly trying to recover all of my data from the internal phone memory. The memory has 16gb in total, but when i copied it to my hard disk drive i could only copy 2gb. It seems that the camera folder (DCIM) is the only folder taht has been completely restored. Is it possible that all other folders are pin locked? Or is it more likely that the storage is broken? Anyway, what i really need to recover is the phone calendar, since not all entries had been synced with google calendar. I can't find ANY calendar file on the internal storage, and i've searched most common places (data/data/android.provider.calendar etc.). My research showed taht the only way to access the phone with recovery apps is when the debug mode has been activated. Since the display is broken there's no way for me to activate it.
In short, my questions:
- Why can I see only some of the internal storage? (2/16GB) -> broken or locked?
- do you have any idea how i can restore the phone calendar since there doesn't seem to be any calendar file?
- is there a way to activate the Debug mode with a broken screen?
I consider buying a new display just to be able to access the files. But since i don't want to waste any money i need to be 100% sure that this works. But the fact that i've only been able to copy 2GB from the internal storage and that i dont seem to find the calendar files makes me doubt that this will help at all.
additional info: I'm accessing the phone via USB cable without a sim card.
Thanks for any help.
Edit:
I also tried connecting the phone to Kies (i never used Kies before) by activating the "download mode" on the phone by pressing some buttons at the same time when turning the phone on. Kies seems to recognize something but it just keeps on saying "connecting to phone..." for hours. I take this as another indication that the phone might be broken beyond the display.
Edit2:
I found this:
inaccessible folders: folders you won't see due to lacking permissions, e.g. those in /data. To protect your apps' data, those folders belong to the corresponding application, and are only accessible by the app (in the context of file-permissions; please see the tag's wiki for closer information on those). To make those visible, you need root access on your device, and a file explorer supporting that (e.g. ES File Explorer)
Click to expand...
Click to collapse
Is there any way i can get root access to the phone with a broken display?

Question OTG and data not working on my 10t

i have the factory unlocked 10t no mods. The OTG will detect a flash drive and ID it but refuses to read or write to it, even when given the permission to do so.
It shows up in settings/storage but the only thing i can do with it is to eject it. No file manager will access it to read or write. If i try to create a file or folder it gives a generic error. I t-shot with OP and sent them Logs and got nothing back from them. The ONLY setting for OTG is OTG Connection which switches it off after 10 minutes. Doesn't seem to effect it at all. There are 2 settings in Developer Mode Default USB Config and Select USB Config. no combo of settings has gotten me a working OTG.
Has anyone gotten this to work or have any suggestions plz?
Thanks in advance!
toptech33 said:
i have the factory unlocked 10t no mods. The OTG will detect a flash drive and ID it but refuses to read or write to it, even when given the permission to do so.
It shows up in settings/storage but the only thing i can do with it is to eject it. No file manager will access it to read or write. If i try to create a file or folder it gives a generic error. I t-shot with OP and sent them Logs and got nothing back from them. The ONLY setting for OTG is OTG Connection which switches it off after 10 minutes. Doesn't seem to effect it at all. There are 2 settings in Developer Mode Default USB Config and Select USB Config. no combo of settings has gotten me a working OTG.
Has anyone gotten this to work or have any suggestions plz?
Thanks in advance!
Click to expand...
Click to collapse
Good time. The solution to the problem was found. Install the program from the link
Edit Moderation - Link to 4pda is crap - Use strictly banned
Give permissions when connecting USB, enable the following in the settings
jokersss84 said:
Good time. The solution to the problem was found. Install the program from the link
Edit Moderation - Link to 4pda is crap - Use strictly banned
Give permissions when connecting USB, enable the following in the settings
Click to expand...
Click to collapse
Thanks. But I have already tried MiXplorer. It didn't read either. I'm beginning to believe that the USB -c socket on my 10T is damaged in some way. I'm looking for the best and cheapest way to get it replaced. Thanks again.

Categories

Resources