How can I set MTP as default USB connection (with root) - Essential Phone Questions & Answers

I am so annoyed by changing the USB connection every time. Is there a way to set MTP as default?
I tried some Xposed modules as well as apps from but none of them worked.
Is there any way to change MTP to default? Is there some sort of a config somewhere?

Enable developer options. It's in there

Scaevola said:
I am so annoyed by changing the USB connection every time. Is there a way to set MTP as default?
I tried some Xposed modules as well as apps from but none of them worked.
Is there any way to change MTP to default? Is there some sort of a config somewhere?
Click to expand...
Click to collapse
There is a build.prop line you can add for persistent mtp connection via USB... Just not sure what it is off the top of my head
Sent from my PH-1 using XDA Labs

ziddey said:
Enable developer options. It's in there
Click to expand...
Click to collapse
THIS!

tech_head said:
THIS!
Click to expand...
Click to collapse
I think everyone knows its in there. The problem is that you have to keep going in there and changing it back to MTP because it keeps resetting or defaulting back to charging.

Jank4AU said:
I think everyone knows its in there. The problem is that you have to keep going in there and changing it back to MTP because it keeps resetting or defaulting back to charging.
Click to expand...
Click to collapse
You are correct.
It isn't sticky. It only lasts until you connect and then you need to set it up again.

Well I was already aware about the related option in Developer Options, but I just assumed that it's not being sticky is a known fact, so I didn't need to mention it.
I tried editing build.prop but it didn't work. It seems that you need to recompile Android itself to enable MTP as default.
I found another solution based on Tasker. It is a crude one but works nevertheless.
http://forum.joaoapps.com/index.php...ransfer-mtp-connection-with-the-computer.198/

Scaevola said:
Well I was already aware about the related option in Developer Options, but I just assumed that it's not being sticky is a known fact, so I didn't need to mention it.
I tried editing build.prop but it didn't work. It seems that you need to recompile Android itself to enable MTP as default.
I found another solution based on Tasker. It is a crude one but works nevertheless.
http://forum.joaoapps.com/index.php...ransfer-mtp-connection-with-the-computer.198/
Click to expand...
Click to collapse
Yeah, I wasn't aware it was not sticky.
But tasker does work. I changed the behavior of the adaptive brightness based on my own preferences via tasker.
I have adaptive brightness levels I like.
I think I'll just fix this via tanker also.

I can't even get mine to stay in MTP or PTP. Everytime I attach a cable it goes strait to charging. Each time I select MTP or PTP it just jumps back to charging. ugh

ziddey said:
Enable developer options. It's in there
Click to expand...
Click to collapse
That doesn't work. This is a years old bug. It's a so called safety feature by google that you have to choose charge or data transfer EVERY time you plug your stinking phone in. He's asking for a way around this. Dev options does NOTHING to this. It's overridden. This is old news.
---------- Post added at 12:16 PM ---------- Previous post was at 12:15 PM ----------
tech_head said:
THIS!
Click to expand...
Click to collapse
Doesn't work! Try it!

Cool yer jets.
It does work on 9.0. I set it in dev options when I upgraded a few weeks back and it's still true now (just tested a moment ago by plugging it into my pixelbook).

Related

[HOW TO] Enable USB option in settings

If you have WP 8.1 dev preview you can try:
Launch Bing or Cortana
Type in ‘USB’
Swipe left to ‘phone’
Tap Settings > USB
Click to expand...
Click to collapse
Now we see USB settings, but I don't know whether or not the feature works. Anyway - we see so that is already in the system.
Source: http://www.wpcentral.com/bing-search-reveals-hidden-usb-settings-windows-phone-81
Weird thing...
I was browsing registry a week ago and found these settings there. I posted to the 8.1 tweaking topic about them, with a sidenote that what happened, this didnt come tothe final build. After posting I was swiping in the settings and saw the USB -settings menu there. Then I just thought I have missed the whole usb-settings in the preview and edited my post about that.
Now that I saw the news abotu this in WPC yesteday, I went to the settings and the USB -settings is not present anymore. I dont know I probably then enabled/disabled it myself then from the settings.
Posted the reg tweak to the tweaking topic how to make the usb settings menu appear in the settings.
anaheiim said:
Thx, but why post in development section?
Is good in general section.
Click to expand...
Click to collapse
Ok, if you can move the topic.
I tried typing other commands, like:
- cortana
- quiet hours
- network profile
Try these
Budniu said:
Ok, if you can move the topic.
I tried typing other commands, like:
- cortana
- quiet hours
- network profile
Try these
Click to expand...
Click to collapse
What network profile do for you ?
it only have a update button and it's only returns error ! for you , too?
ngame said:
Did you think about that maybe cortana allow us to access to other hidden parts?
USB settings is only one of them
Click to expand...
Click to collapse
Yes, but I thought it had most place in general section.
Budniu said:
Ok, if you can move the topic.
I tried typing other commands, like:
- cortana
- quiet hours
- network profile
Try these
Click to expand...
Click to collapse
Yes I tried Cortana and Quiet Hours.
Network Profile gives me an error.
ngame said:
What network profile do for you ?
it only have a update button and it's only returns error ! for you , too?
Click to expand...
Click to collapse
I don't even get that. I keep clicking on it in the 928, but nothing happens. What is it?
thals1992 said:
I don't even get that. I keep clicking on it in the 928, but nothing happens. What is it?
Click to expand...
Click to collapse
Shots
Same error in network profile.
I can get to the option on my Windows Phone 8x, but it says "Not connected" even though the phone is connected to my computer via USB.
Same for me
For network profile I have same error. I don't know what is that, but I tried
Budniu said:
For network profile I have same error. I don't know what is that, but I tried
Click to expand...
Click to collapse
Me too for network profile, but I enabled USB in settings, as @Loco explained here. - of course with interop unlock, using samwp8tools and regedit-
http://forum.xda-developers.com/showthread.php?t=2718311&page=4
This is the command: LOCALMACHINE (check DWORD)
Path: SOFTWARE\Microsoft\Shell\USB
Key: DisableUSBControlPanel
Value: 0
I've enabled both options, but they don't seem to work on my 820 (yet). Probably why the setting was hidden in the first place... :/
this is the reason...
I activated the settings but it doesn't allert me when I connect a slow charger
with web reg you can see there are more keys to USB :
possibly just a complete coincidence but not long after enabling this I started getting issues with the phone charging, in that it wouldn't charge or connect via USB, a reset fixed it and not been an issue since. probably nothing but if more folk find this happening it might be worth while keeping track of it to potentially warn others.
after all, its not as if these settings are super secrete or against the wishes of the networks so the settings are not live for a reason....perhaps that's it.
food for thought

Remove Wifi Nag from Rooted Device

I know you can remove the wifi nag with default.xml file, but don't know how on the HTC 10. Anyone know how to do this?
androiddude81 said:
I know you can remove the wifi nag with default.xml file, but don't know how on the HTC 10. Anyone know how to do this?
Click to expand...
Click to collapse
Same edits as previous vzw HTC devices, if you need the edits, let me know.
andybones said:
Same edits as previous vzw HTC devices, if you need the edits, let me know.
Click to expand...
Click to collapse
Thanks Andy, I'll just try the edits from the M8
androiddude81 said:
Thanks Andy, I'll just try the edits from the M8
Click to expand...
Click to collapse
heh,
happy to see that my 2 year old post is still relevant!
andybones said:
heh,
happy to see that my 2 year old post is still relevant!
Click to expand...
Click to collapse
haha. Only need to change "wlan_wifi_status" to 1 now. So still relevant :laugh:
androiddude81 said:
haha. Only need to change "wlan_wifi_status" to 1 now. So still relevant :laugh:
Click to expand...
Click to collapse
haha yea,
This MOD used to be such a PITA.
androiddude81 said:
haha. Only need to change "wlan_wifi_status" to 1 now. So still relevant :laugh:
Click to expand...
Click to collapse
When you made this edit did the Advanced Calling options go away in settings?
It's doing that on custom ROM oddly.
But you can still turn off Video Calling in call/settings, but can't get turn AC off completely unless you backtrack the MOD. Was a PITA tracking down what was taking AC away from settings menu and turns out to be this one single edit lol
andybones said:
When you made this edit did the Advanced Calling options go away in settings?
It's doing that on custom ROM oddly.
But you can still turn off Video Calling in call/settings, but can't get turn AC off completely unless you backtrack the MOD. Was a PITA tracking down what was taking AC away from settings menu and turns out to be this one single edit lol
Click to expand...
Click to collapse
AC = auto call? I can still turn it off and on without it crashing, but haven't tested if it actually disables if I uncheck it.
Flying home tonight. So I'll check then.
androiddude81 said:
AC = auto call? I can still turn it off and on without it crashing, but haven't tested if it actually disables if I uncheck it.
Flying home tonight. So I'll check then.
Click to expand...
Click to collapse
AC = Advanced Calling, sorry.
I think misunderstood my question.
So with customs ROMs I have ran into an issue where I lost the Advanced Calling and Tethering options in Settings menu (see attached screenshot). I finally after way too many hours, tracked the problem down to this one MOD (I had to find if it was from an app I was editing, then down to edits in the system, finally found it was in the customize folder and then in ACC/default.xml and even in there took forever as I had many changes). As soon as I make the edit and reboot they are gone, make edit back to stock and they show.
Everything still works fine - in regards to Advanced Calling, HD Calling and Wi-Fi Calling but those settings menu options just aren't there to turn on and off. I can get to an option to turn off Video Calling (see 2nd attached screenshot) which then leaves it into HD Calling state.
What I do as a workaround is keep a default.xml.bak with this MOD removed if I ever need to get into the options for w.e reason and they are only a reboot away.
Not the biggest problem, but very strange indeed. I made the same edit on M8, but M9 as well and never ran into this issue.
I was wondering if you had this issue as well after doing this MOD.
andybones said:
AC = Advanced Calling, sorry.
I think misunderstood my question.
So with customs ROMs I have ran into an issue where I lost the Advanced Calling and Tethering options in Settings menu (see attached screenshot). I finally after way too many hours, tracked the problem down to this one MOD (I had to find if it was from an app I was editing, then down to edits in the system, finally found it was in the customize folder and then in ACC/default.xml and even in there took forever as I had many changes). As soon as I make the edit and reboot they are gone, make edit back to stock and they show.
Everything still works fine - in regards to Advanced Calling, HD Calling and Wi-Fi Calling but those settings menu options just aren't there to turn on and off. I can get to an option to turn off Video Calling (see 2nd attached screenshot) which then leaves it into HD Calling state.
What I do as a workaround is keep a default.xml.bak with this MOD removed if I ever need to get into the options for w.e reason and they are only a reboot away.
Not the biggest problem, but very strange indeed. I made the same edit on M8, but M9 as well and never ran into this issue.
I was wondering if you had this issue as well after doing this MOD.
Click to expand...
Click to collapse
Yea, I still have the Call option in the settings. See attached.
Edit: my default.xml (nothing identifing in hear right?)
http://www.megafileupload.com/bxzD/default.xml
androiddude81 said:
Yea, I still have the Call option in the settings. See attached.
Edit: my default.xml (nothing identifing in hear right?)
http://www.megafileupload.com/bxzD/default.xml
Click to expand...
Click to collapse
My friend.
"Advanced Calling"
Not "Call"
See attachment
andybones said:
My friend.
"Advanced Calling"
Not "Call"
See attachment
Click to expand...
Click to collapse
Ahhh. No I don't have that anymore. I think I never noticed it before the change so I was really confused on what you were talking about.
androiddude81 said:
Ahhh. No I don't have that anymore. I think I never noticed it before the change so I was really confused on what you were talking about.
Click to expand...
Click to collapse
No problem my friend, I appreciate your feedback.
I couldn't figure out why it was missing and tracked it down to this one edit. Very weird. You should try setting it back to 2 value and reboot and see if Advanced Calling comes back.
andybones said:
No problem my friend, I appreciate your feedback.
I couldn't figure out why it was missing and tracked it down to this one edit. Very weird. You should try setting it back to 2 value and reboot and see if Advanced Calling comes back.
Click to expand...
Click to collapse
Hey, I did this today and the advanced calling menu option came back in settings, BUT nothing happens when I click on it. Just FYI.
andybones said:
My friend.
"Advanced Calling"
Not "Call"
See attachment
Click to expand...
Click to collapse
Thanks for the directions on this @andybones - Verizon's constant wifi notification nag drives me nuts.
Just applied this to @santod040's Nougat stock rom (https://forum.xda-developers.com/ve...m-1-85-605-9-aroma-root-root-debloat-t3529732) and it appears to continue to behave as you expect: lost the Advanced Calling and Wifi Tethering options out of the Settings menu. I can still get at the tethering via the sub-menu 'Mobile network sharing' as well as the quick settings pane so good to go. Too bad this even has to be a thing. #&$*#&$ Verizon
repentsinner said:
Thanks for the directions on this @andybones - Verizon's constant wifi notification nag drives me nuts.
Just applied this to @santod040's Nougat stock rom (https://forum.xda-developers.com/ve...m-1-85-605-9-aroma-root-root-debloat-t3529732) and it appears to continue to behave as you expect: lost the Advanced Calling and Wifi Tethering options out of the Settings menu. I can still get at the tethering via the sub-menu 'Mobile network sharing' as well as the quick settings pane so good to go. Too bad this even has to be a thing. #&$*#&$ Verizon
Click to expand...
Click to collapse
Very welcome. I know of another method to remove the WiFi Nag and still keep the Menus correctly in Settings. It's actually a method that we used on the M8 if I recall correctly. The current method posted here was what we used on the M9, and strangely had no affect to Settings Menu, even though the M9 also has Advanced Calling. I remember testing this method out a little bit ago on the 10, and all was fine. However to be sure, I am posting a .zip with the edited .apk and a .zip with stock, to go back to stock, and also if anyone wants to see what was done. Simple edits of removing 10 .png images.
andybones said:
Very welcome. I know of another method to remove the WiFi Nag and still keep the Menus correctly in Settings. It's actually a method that we used on the M8 if I recall correctly. The current method posted here was what we used on the M9, and strangely had no affect to Settings Menu, even though the M9 also has Advanced Calling. I remember testing this method out a little bit ago on the 10, and all was fine. However to be sure, I am posting a .zip with the edited .apk and a .zip with stock, to go back to stock, and also if anyone wants to see what was done. Simple edits of removing 10 .png images.
Click to expand...
Click to collapse
Coming through, as usual @andybones
andybones said:
Very welcome. I know of another method to remove the WiFi Nag and still keep the Menus correctly in Settings. It's actually a method that we used on the M8 if I recall correctly. The current method posted here was what we used on the M9, and strangely had no affect to Settings Menu, even though the M9 also has Advanced Calling. I remember testing this method out a little bit ago on the 10, and all was fine. However to be sure, I am posting a .zip with the edited .apk and a .zip with stock, to go back to stock, and also if anyone wants to see what was done. Simple edits of removing 10 .png images.
Click to expand...
Click to collapse
Thanks, will give this a shot next time I'm digging around in the guts of this thing. Much appreciated.

How to set desktop mode in Chrome/MTP USB permanently

Those 2 things have been bugging me from the start. I have only ever used my PC to transfer files on to my phone so I would like it to go into MTP mode by default not into charging mode, I know there is some apk on the market that claims to do it but it is an Xposed module and I'm not running Xposed, any other way? Also I've always used the chrome-command-line trick to get my Chrome to always open desktop version of websites (mobile version are more than often way too buggy and poor looking, seriously wtf) but it no longer seems to work, apps from market also fail to change my user agent (or at least those few I tried). Any way to accomplish those 2 things? I'm running Nougat PureNexus. Flashable zips, Tasker scripts, apks? Anything? Thanks!
I only root just to use Xposed.
Sent from my Nexus 6P using Tapatalk
gjkrisa said:
I only root just to use Xposed.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
And I only root to get Adaway. I used Xposed on my previous phone and found it to be extremely unreliable, maybe it's time to give Nexus 6P's version a shot?
Yea I would I really like the hold power to turn on flash and being able to see how much data I'm using in the notification. Wish Android would just have this built in and having the USB selection memorized.
Sent from my Nexus 6P using Tapatalk
gjkrisa said:
Yea I would I really like the hold power to turn on flash and being able to see how much data I'm using in the notification. Wish Android would just have this built in and having the USB selection memorized.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Those things are already in PureNexus by default, the hold power for flashlight was the thing that tipped the balance and made me switch from stock.
Besides am I going blind or is there no Xposed for Nougat yet and this whole discussion was pointless??
theleet said:
Those 2 things have been bugging me from the start. I have only ever used my PC to transfer files on to my phone so I would like it to go into MTP mode by default not into charging mode, I know there is some apk on the market that claims to do it but it is an Xposed module and I'm not running Xposed, any other way? Also I've always used the chrome-command-line trick to get my Chrome to always open desktop version of websites (mobile version are more than often way too buggy and poor looking, seriously wtf) but it no longer seems to work, apps from market also fail to change my user agent (or at least those few I tried). Any way to accomplish those 2 things? I'm running Nougat PureNexus. Flashable zips, Tasker scripts, apks? Anything? Thanks!
Click to expand...
Click to collapse
If u r on a Custom ROM...then there is an option to set the USB connection mode..in Developers Option.
StariX37 said:
If u r on a Custom ROM...then there is an option to set the USB connection mode..in Developers Option.
Click to expand...
Click to collapse
You deserve a prize or something. Thanks
intruda119 said:
You deserve a prize or something. Thanks
Click to expand...
Click to collapse
Haha...just use the Thanks button..
StariX37 said:
If u r on a Custom ROM...then there is an option to set the USB connection mode..in Developers Option.
Click to expand...
Click to collapse
I know but it only works one time, notice if you set it and plug your phone in it's in file transfer, unplug it and plug it again and it's in charging mode again... Useless setting, that's why I was asking for a permanent solution.
EDIT1: Guys but what about the more important chrome user agent? It seems like a simpler problem yet I can't find any information what happened on nougat that made it impossible to edit, where is the user agent string now??
EDIT2: OK nvm about the Chrome thing I figured it out myself looks like they changed the directory chrome-command-line file should be in to /data/local/tmp and now it works.
theleet said:
I know but it only works one time, notice if you set it and plug your phone in it's in file transfer, unplug it and plug it again and it's in charging mode again... Useless setting, that's why I was asking for a permanent solution.
EDIT1: Guys but what about the more important chrome user agent? It seems like a simpler problem yet I can't find any information what happened on nougat that made it impossible to edit, where is the user agent string now??
EDIT2: OK nvm about the Chrome thing I figured it out myself looks like they changed the directory chrome-command-line file should be in to /data/local/tmp and now it works.
Click to expand...
Click to collapse
It doesnt happen with me..as i hv used that setting...it works each and every time i have used. I don't have to set the setting to Transfer mode everytime.
StariX37 said:
It doesnt happen with me..as i hv used that setting...it works each and every time i have used. I don't have to set the setting to Transfer mode everytime.
Click to expand...
Click to collapse
Just tried it again with no luck. The site where I found this solution said it only lasts until the first time a device is plugged in and it works exactly as described for me...
theleet said:
Those things are already in PureNexus by default, the hold power for flashlight was the thing that tipped the balance and made me switch from stock.
Besides am I going blind or is there no Xposed for Nougat yet and this whole discussion was pointless??
Click to expand...
Click to collapse
How you turn on that feature? No Xposed yet for 7+
Sent from my Nexus 6P using Tapatalk
---------- Post added at 09:55 PM ---------- Previous post was at 09:28 PM ----------
Nevermind just found the ROM
Sent from my Nexus 6P using Tapatalk
theleet said:
EDIT2: OK nvm about the Chrome thing I figured it out myself looks like they changed the directory chrome-command-line file should be in to /data/local/tmp and now it works.
Click to expand...
Click to collapse
Tried this and it didn't work. Anything else that had to be done besides basically copying the file into /tmp? This is the most frustrating part of Nougat for me.

How to change default USB connection mode

I move a ton of stuff from PC to my phone all the time and every time I connect my phone to PC( Win 10) it defaults to Charging...How can I set it such that it defaults to File Transfers?
Aeonia said:
I move a ton of stuff from PC to my phone all the time and every time I connect my phone to PC( Win 10) it defaults to Charging...How can I set it such that it defaults to File Transfers?
Click to expand...
Click to collapse
I think this is a setting dependant on the rom. On mine it is found in the developer settings
stevecaboose said:
I think this is a setting dependant on the rom. On mine it is found in the developer settings
Click to expand...
Click to collapse
Thanks. Can't believe I missed that
Aeonia said:
Thanks. Can't believe I missed that
Click to expand...
Click to collapse
There's so many settings and menus I get lost in them all the time.

Volume Limit Removal Mod No Longer Works on Pie on Note 9?

Hi all
I've just upgraded to Pie this week on my Note 9, and wish I hadn't. Apart from various annoying bugs, the biggest issue I have right now is that the mod to remove the volume limiter using Tasker no longer seems to work.
It didn't work straight after the upgrade, so I reapplied the steps using this guide (https://www.xda-developers.com/how-to-automatically-disable-the-high-volume-warning-without-root/)
But doesn't work.
Does anybody have any suggestions please? It's driving me nuts. Thanks
Downerhouse said:
Hi all
I've just upgraded to Pie this week on my Note 9, and wish I hadn't. Apart from various annoying bugs, the biggest issue I have right now is that the mod to remove the volume limiter using Tasker no longer seems to work.
It didn't work straight after the upgrade, so I reapplied the steps using this guide (https://www.xda-developers.com/how-to-automatically-disable-the-high-volume-warning-without-root/)
But doesn't work.
Does anybody have any suggestions please? It's driving me nuts. Thanks
Click to expand...
Click to collapse
So curious, where is it failing? Do you get any toast pop up notification?
I'm really happy you asked this, as I followed the link and set this up on oreo, but I want to be able to get it working on pie as well once I have the update.
The things I would check:
The ADB commands, connect and send them again, yes if not working, send even again, again.
Did you get the settings for AutoTools all set, there was one that I missed until I tried to run it, then it gave a warning.
The author posts a picture of the final set-up, did you double check that all that matches?
Is it possible we would need to re-install AutoTools and re-set all it's privileges?
So I've discovered the following.
The Tasker script is working. When examining the variable at boot, the safe_audio_limit is set at 3. Tasker then manages to change to a value of 2. But when you try to increase volume on a Bluetooth headset it still asks for permission
After that, it seems to work, until the next reboot
So my conclusion is that there is a new variable that needs setting at.boot time in conjunction with the safe_audio_limit value.
More investigation required.
Super easy fix is grabbing Samfix on XDA Labs.
HurricaneXDA said:
Super easy fix is grabbing Samfix on XDA Labs.
Click to expand...
Click to collapse
Are you sure? That thread says otherwise.
Plus I don't like apps that don't check for available root, but ask for adb root privileges. That's just sloppy
Sent from my phone
Downerhouse said:
So I've discovered the following.
The Tasker script is working. When examining the variable at boot, the safe_audio_limit is set at 3. Tasker then manages to change to a value of 2. But when you try to increase volume on a Bluetooth headset it still asks for permission
After that, it seems to work, until the next reboot
So my conclusion is that there is a new variable that needs setting at.boot time in conjunction with the safe_audio_limit value.
More investigation required.
Click to expand...
Click to collapse
Global.settings there is this value
unsafe_volume_music_active_ms
Nochlab1 said:
Global.settings there is this value
unsafe_volume_music_active_ms
Click to expand...
Click to collapse
I was wondering if we could add "unsafe_volume_music_active_ms" using autotools?
just like the previous "audio_safe_volume_state" but don't know what value to try? Were you able to see what the value was set at when you found this?
---------- Post added at 06:36 PM ---------- Previous post was at 06:22 PM ----------
rusty.gh said:
I was wondering if we could add "unsafe_volume_music_active_ms" using autotools?
just like the previous "audio_safe_volume_state" but don't know what value to try? Were you able to see what the value was set at when you found this?
Click to expand...
Click to collapse
Thought it was working, on reboot it failed.

Categories

Resources