Trivial widget to toggle USB between Charge-only and MTP ? - Android Q&A, Help & Troubleshooting

On the CM13 snapshot which I'm presently running on a OnePlus One, every time I connect a USB cable between the device and a PC, even though in Settings -> Developer options -> Select USB Cofiguration it is selected as "MTP", and the device does appear in Windows File Explorer, in fact Windows cannot see anything on the device. Each time, I have to go to Settings -> scroll to end, Developer options -> scroll to middle somewhere, Select USB Configuration, switch to Charge Only then switch again to MTP. Then everything works fine.
So I'd like to find a trivial Widget which just toggles between Charge only and MTP, to make this a less menu, search, search operation every time.
I do see a small number of Root-only (yes, I'm rooted; No, I don't want to have to install a root-capable app if not absolutely necessary) apps which, among too many other things, maybe can do this. Since all I really want is a direct access Widget to a particular setting, I hope there's a much simpler way?
thanks, and apologies if I've missed this; I searched for USB, MTP, toggle, widget and only came up with the much bigger possible solutions.

Related

[Q] remove pop-up when USB plugged in

My best efforts at searching for a previous thread on this subject have failed me, so either I've come up with a new question or my search-fu is weak.
Whenever I plug my Vibrant into my PC to charge it (ie, every night) it pops up a screen over whatever I'm doing asking what I want to do. Overwhelmingly, what I want to do is nothing, but that's not an option. I so rarely want to do the Media Player or Samsung Kies options that it's no problem having to go to settings to enable them. I can always mount my phone as a flash drive from the notification bar. In other words, all the pop up screen does is annoy me. Is there a way to disable it, and basically set "do nothing" as the default action to take when I plug my phone into my PC?
Oh, I'm running TW's Bionix-V 1.3.1, but I couldn't find a way to do what I want to do in stock Froyo when I was using that.
Setting>applications>Development and tick USB debugging.
Alex9090 said:
Setting>applications>Development and tick USB debugging.
Click to expand...
Click to collapse
Wow, I feel stupid. For some reason I thought that USB debugging disabled my ability to actually mount my phone as a flash drive. Well, 2 flash drives. It's not quite ideal (I'm not entirely happy with leaving USB debugging on all the time), but it's certainly less annoying than the stupid pop up screen, and I'm pretty sure my discomfort is not particularly rational.
Thanks!
If you don't want to turn on the usb debugging, then there's a usb setting under wireless and network where you can choose one of the settings you want.
Alex9090 said:
If you don't want to turn on the usb debugging, then there's a usb setting under wireless and network where you can choose one of the settings you want.
Click to expand...
Click to collapse
Regrettably, the choice I want - "do nothing" - is not an option from that menu. Personal idiosyncrasy, I guess. I also turn off autoplay for my optical drives on my computer. USB debugging seems to do the trick the way I want, though.

How do I get my 32GB card to show up as a drive on Mac/PC?

I have plugged the Note into my Mac and cannot get the sd card to show up as a drive so I can use Doubletwist to transfer iTunes music on my Mac. I have tried unmounting the card and no luck.
It says MTP mode on the device when connected.
Thanks
Prior to plugging it in, go to Settings -> Wireless and network -> USB utilities -> Connect storage to PC
If anybody knows of an easier way to do this, such as with a widget or something, I'd love to know, by the way.
thanks
Thanks. That did it.
You're welcome, and to answer my own question:
Nicarsu said:
If anybody knows of an easier way to do this, such as with a widget or something, I'd love to know, by the way.
Click to expand...
Click to collapse
Get "Any Cut" from the Market. It creates a new entry in the Shortcuts list in the "Add to home" menu. Select Any Cut, and then Activity, and then USB Utilities (at the very bottom of a long list of virtually everything). That'll make an home screen shortcut directly to the USB Utilities settings screen. I use USB storage all the time, so it should save the tip of my finger hundreds of screen impacts. (My poor finger!)
Enjoy!
access memory card
You can also download Kies by Samsung. it has the proper drivers supporting the Galaxy Note.
the device then shows up in the Computer window, and it shows both the built in memory, and any add-in card.
You can get it here;
http://www.samsung.com/us/kies/
Nicarsu said:
Prior to plugging it in, go to Settings -> Wireless and network -> USB utilities -> Connect storage to PC
If anybody knows of an easier way to do this, such as with a widget or something, I'd love to know, by the way.
Click to expand...
Click to collapse
Don't have my Note YET. but currently on Infuse and so with the Note you don't just plug in to PC then on the drop down noti bar hit connect?? Wow, if not then wonder why they burried it>>?
Rocket42 said:
Don't have my Note YET. but currently on Infuse and so with the Note you don't just plug in to PC then on the drop down noti bar hit connect?? Wow, if not then wonder why they burried it>>?
Click to expand...
Click to collapse
It would be nice if it worked that way, but unfortunately all you get in the notifications panel is "USB connected / MTP connected" which, when clicked, does nothing.

USB connecting as "for charging" only...how to change this?

Hello all
I have had a Swift X for a week. So far so good...for the most part.
My usage habits are such that I frequently take photo's for my job and download them to my PC.
When I plug in with USB my PC recognises this and opens with a window "This PC > Swift 2 X" ... but I cannot access the internal drive...
...I then always have to go to the phone....tap "USB for charging; Touch for more options"...and then select "File Transfers"
...then at my PC a pop up appears with "Internal Memory" accessible.
Is there a way to shortcut this and make it a permanent setting?...I've tried but can't find the relevant option anywhere in the settings.
Thanks!
You can try unlocking the developer options in your device, then inside that menu, find the Networking / Select USB Configuration parameter and set it to MTP (Media Transfer Protocol), although I think the value is ignored and overwritten by something else.
linuxct said:
You can try unlocking the developer options in your device, then inside that menu, find the Networking / Select USB Configuration parameter and set it to MTP (Media Transfer Protocol), although I think the value is ignored and overwritten by something else.
Click to expand...
Click to collapse
Hi...thanks for taking the time...yeah I've done that already...and in Developer Options it states "Select USB Configuration; MTP"....but it doesn't make a difference to my (& I assume every Swift owners) problem.
Yeah it resets itself every time. ?
My first post. This might be relevant. I have found that with my Swift 2+ I connect to the laptop with a usb cable but the laptop doesn't properly recognise the mobile filing system. It just shows an icon labelled with the phone's name but clicking on that gives an empty window.
Note that this happens on both Windows 10 and Ubuntu so I would assume that it is a problem with the mobile rather than the laptop's operating system.
Hint from another topic: A work around can be to have a cloud app on your phone, Dropbox frinstance. Copy the photo to that give time for it to upload and then use the downloaded file in the Dropbox application on your PC. I have tected this in the opposite direction, transferring music from PC to the phone. The disadvantage is that it is slow.
Nick
Hey, as far as I can tell, this is standard Android behaviour since a few releases. You simply have to select MTP every time.
Probably for security reasons.

USB Settings

I have my USB Config set to MTP and USB Debugging ON under Developer Options. However, whenever I connect a USB device, it always resets itself to Charge only and I have to switch it back to File or Photo transfer in order to connect to PC, AA, etc.
Any ideas on how to make the USB setting 'stick' with what I set in DO?
Is there an ADB command? Other setting I should be looking for? Any help is appreciated.
bilottag said:
I have my USB Config set to MTP and USB Debugging ON under Developer Options. However, whenever I connect a USB device, it always resets itself to Charge only and I have to switch it back to File or Photo transfer in order to connect to PC, AA, etc.
Any ideas on how to make the USB setting 'stick' with what I set in DO?
Is there an ADB command? Other setting I should be looking for? Any help is appreciated.
Click to expand...
Click to collapse
Strange, I *know* that mine 'used to' stay at whatever setting it was left at before. I just tried it now, and it still stays on whatever it was last set to, BUT... It automatically toggles the 'allow debugging over USB' to OFF every time I plug my phone into my computer. Now I know it didn't do this before, I wonder if it has something to do with 'always trust this connection' being set? Also, it really seems like this stuff is behaving just a wee bit different since I unlocked my bootloader. Hmm, could it be they have set a flag where USB debugging always turns off when the device is connected to something, IF the bootloader is unlocked?
bilottag said:
I have my USB Config set to MTP and USB Debugging ON under Developer Options. However, whenever I connect a USB device, it always resets itself to Charge only and I have to switch it back to File or Photo transfer in order to connect to PC, AA, etc.
Any ideas on how to make the USB setting 'stick' with what I set in DO?
Is there an ADB command? Other setting I should be looking for? Any help is appreciated.
Click to expand...
Click to collapse
I can confirm that this happens on mine too, really annoying, but I think this is not something a lot of people are facing, as there are literally NO other references to this that I can find. The reason why I think this is a very specific issue is that I recently got a Mate 20 X, which is essentially the same phone, and noticed that when I plug in the USB to a PC, I get a dialog pop up at the bottom of the screen asking if I want to transfer photos, files or to charge only. I NEVER saw this on the Mate 20 Pro, but that might be because I messed something up. I did do a lot of fiddling over ADB when the phone was new (mostly disabling apps) and giving permissions to apps like lightning launcher and System UI tuner and I'm wondering if this what has caused the issue.
Obviously even before I did this, I necessarily must have connected to the thing via USB, but strangely, I don't remember seeing this dialog... Having to go into developer mode to change this setting can't be how it's set up normally, as then basically no-one will be able to get connected via MTP (I suspect everyone on XDA knows about this setting, but suspect none of the average Joes even knows the option exists).
So the question is, what did we do wrong and how do we get this diaglog back because I have found that Developer mode is not accessible for other Users set up on the phone so I can't access the phone at all via USB now when the other user is using it...
I'm hoping we can work together to find out what we did wrong!
PS: I find like kaibosh99 that the USB debugging also toggles back to off. I am not rooted or bootloader unlocked
After a lot of faffing and looking into it some more, I don't get the pop-up dialog but have discovered that it is in the notification menu where it shows
USB icon . Charging via USB
Expanding that notification and tapping on it, gives the option to choose file transfer and a load of other stuff. It's a pity that a pop-up dialog doesn't open like on the Mate 20 X, you can see what I mean here
https://uk.community.huawei.com/mat...tried-usb-debugging-and-all-that-already-6786
Much easier than having to go into the notification menu!

Urgent: need backup of A80 with broken/black screen for upcoming court case.

Thread Closed Per OP Request
I'm helping a friend who needs backup of her broken phone for an upcoming court case.
I need to extract all photos (camera, snapchat etc) and text messages (sms/mms).
The phone seems to be working other than the screen and touch controls.
Replacing/repairing the screen isn't an option as we both have minimal funds, and my friend has a new phone already)
i have "access" to the phone, but neither USB Debughing nor MTP is enabled so i cannot access any files.
I'm able to unlock it with a keyboard connected (i hear the little unlock click after entering the pin, and the "turn off screen" click when i press the power button.) But i have to navigate blindly, and any guide i find seems arbitrary how to get to settings, it says to press win+n (same as pulling down the quick settings menu from home) and press tab an arbitrary number of times to get to the settings gear in the corner. i tried doing this on my own working note 10 plus with the external keyboard, but i see it scrolls through every notification, so unless you know the number of notifications, hitting the gear is just pure luck.
I have also tried hooking up a usb-c to hdmi dongle (which works and starts dex on my n10+) but it says no signal on the A80, so external monitor seems out of the question.
Is there a consistent way to enter settings, or any way to enable the following settings:
* enable voice assistant (accessibility settings so i can hear where i am and navigate using voice/sound)
* enable USB MTP (or similar so i atleast can access files from a computer)
* enable USB debugging (to use ADB to screenmirror and/or etc)
* alternatively clear notifications so entering settings should become consistant with number of keypresses
I have tried some apps like dr fone but it doesnt support backup from this model, and any other settings wants to wipe the phone.
I have tried holding both volume buttons to enable google voice assist, but also unsure if this ever worked
The phone is not on wifi and i am not 100% sure if wifi is enabled at the moment, nor if it has the current wifi password my friend uses, but i can try do do things from there if internet access will help.
I dont think google now nor bixby (if this phone has that) is enabled as i dont get any reply or voice ding while pressing the win key (home button normally on working android)
I think i can enter recovery and download modes, i got COM5 on odin, but I'm unsure if i ever get into recovery menu.. but even then, is there any custom recovery firmware that will enable usb mtp access at all for this device?
Also, I'm not able to have a computer connected at the same time as a keyboard as I'm using a wired keyboard with OTG adapter.
Tl;dr:
Have:
* A80 with broken unresponsive screen.
* Have access blindly through otg keyboard
Need:
* Need to enable mtp and/or usb debug (alt. Voice assist)
* Need consistent way to access settings
Both MUST be done using only wired otg keyboard.
Tried:
* Hdmi out (no signal)
* computer recovery software (no dice)
* having computer and keyboard connected simultaneously (keyboard works, pc doesnt recognize, could be dongle)
Hope someone can help me (us) fast.
Could anyone with an A80 and external keyboard please try this to enter settings from keyboard only:
0) [ESC] & ([WIN]+[Enter] to make sure to be on home
1) [WIN]+[Q] "quicklaunch buttons" pulldown menu appears
2) [TAB] (no change)
3) [Down arrow] (magnifying glass gets highlighted)
4) [Right arrow] X2 (gear is highlighted)
5) [Enter] should now be in settings
If this works, could you please count how many times you press down and enter to enter accessability settings and enable talkback, which should make navigating to usb settings etc much easier
Mods: please delete thi post.. its a A8 2018 mot A80, sorry about that

Categories

Resources