[APP][ROOT][R 3.3][MARSHMALLOW] MTP enabler - Android Apps and Games

*** Only For #Rooted Devices ***
Ver. 3.0+ got a ton of new features - see changes/new in posting #2...
This is my successful attempt to automate the well known (inconvenient) MTP enabling process under Android Marshmallow...
Enjoy the new USB-functionality, Google had forgotten or was to lazy to make it
So I'm working on 'MTP enabler for Marshmallow' - And you can use it for free!
I found a solution to automate MTP-enabling by simulate a tap onto the system dialog window (onto the MTP/PTP option).
For this I've made a small app, that listens for broadcast intent by usb connect.
Now you can place a widget of 'MTP enabler' onto the Home Screen and tap it after you connect the USB-cable to PC. So can initiate a refresh on the PC-File-Transfer-Window without disconnect, reconnect USB-cable.
The MTP mode will be enable automatically by this actions...
And you can place a shortcut to 'MTP enabler's Action onto the Home Screen for quick Access now.
(Widget or shortcut - your decision)
The widget changes it backgroundcolor to orange, if usb-cable is connected.
A new automated action for switching USB-mode to your preset option, when usb-cable is plugged in, was realized since RC 1 update.
You can setup the app's receiving Broadcast Intent when USB connecting optional!.
When it receives the intent it launches the system Panel for USB connection type dialog and sends a (touch) input onto the coordinates of the MTP-option...
Now you can use new (security)options:
- Option for deactivate MTP/PTP, when device will be locked(screen off) adhoc or after preset delay
- Option for reactivate MTP/PTP after unlocking device
- Option for blocking MTP/PTP, when USB is connected to untrusted PC
(this (3rd)option needs SElinux permissive on some CM13/SuperSU combos!)
MTP enabler doesn't touch any system-file (no init component is touched or needed)! - But it needs a rooted device!
And Google's security intent by User-Action for USB-connection remains preserved!
You can download Release 3.3 here on AFH.
If you want to support further development of MTP enabler and consider to make a donation:
Here is a link to Play Store donation Version of MTP enabler Pro
If you want to test it, install it and run it only one time after installation. The app is announcing it's Broadcastreceiver and is waiting for usb-connect...
It holds now a service in background - But it will not cause any battery drain!.
In the App-window (MTP enabler setup ) you can checkmark one option 'ask me for action', if you want to be able to select the connection type manually.
If you leave the checkbox unchecked the app will (try) to do the automatically taping MTP-option.
Note: If have enabled MTP enabler, it will start automatically after every reboot!
NEW(!):
You can activate notifications(with or without sound, with or without Android Wear notification) optinal.
See builtin interactive tutorial(showcase)
- Lock MTP enabler app with password OR pattern
- Activate MTP enabler only on trusted WiFi SSID(s)
(USB-ADB, -MTP, -PTP will be blocked when not connected to trusted SSID)
- Activate MTP enabler only on trusted Location(s)
(USB-ADB, -MTP, -PTP will be blocked when not in range to trusted location)
- Ability to enable Ongoing Notification
(to prevent stoping MTP enabler by System after long active periods)
- Ability to hide statusbar icon of Ongoing Notification
- Dark OR Light Theme
- Fixed USB-connect while device locked
- absolutely stable USB-connect action on all MM-devices/-ROMs
- reconnect(refresh) after unlock && via Widget/Shortcut doesn't call the USB-Options-System-Dialog (with tap-emulation) anymore!
This dialog is needed now only when usb-cable is connected!
- stable filtering of AC-/-Wireless charging connection
- better timings for Toast-Notifications.
MTP enabler should work now stable on all Devices / all Marshmallow ROMs!
#Root is required!
If MTPenabler doesn't work on your device and your PC doesn't connect to your device anymore after uninstalling MTPenabler,
goto -> Settings ->Developer Options and switch Android-(USB)-Debugging off/on - and adb/shell/MTP/PTP should work again!
Your feedback is welcome!

MTP enabler Release 3.3 is up
I've updated MTP enabler to Ver. 3.3
Changes/New:
- New option for adjusting Touch Coordinates on USB -Options-Window
If you use custom system fonts or Theme elements, that change the Ratio of Touchable Elements in USB-Options-Window,
you can adjust the correct touch positions now!
You have to adjust coordinates (in vertical axis only) for Charge/MTP,PTP in portrait and landscape screen modes.
- the adjustment procedure is as much automated as possible(!) -
So MTP enabler should work correct with custom Themes/elements...
Note: If you select the new Adjust-Option, MTP enabler will ask for granting new permissions (Write System Settings & Overlay over other apps).
- New option for switching to alternative method for USB-connect listener
(Check this in settings, if USB-options Panel doesn't appear after USB-connect!)
- Fixed compatibility for latest CM 13 nightlies!
- Fixed Ongoing Notification-Hide Icon
- Removed Ongoing Notification from Lockscreen
- New Mapview with Location Circle-Areas (70 m range in map)
- Fixed: Settings Screen (ANR)
- Lock MTP enabler app with password OR pattern
- Activate MTP enabler only on trusted WiFi SSID(s)
(USB-ADB, -MTP, -PTP will be blocked when not connected to trusted SSID)
- Activate MTP enabler only on trusted Location(s)
(USB-ADB, -MTP, -PTP will be blocked when not in range to trusted location)
- Ability to enable Ongoing Notification
(to prevent stoping MTP enabler by System after long active periods)
- Ability to hide statusbar icon of Ongoing Notification
- Dark OR Light Theme
- Fixed USB-connect while device locked
- absolutely stable USB-connect action on all MM-devices/-ROMs
- reconnect(refresh) after unlock && via Widget/Shortcut doesn't call the USB-Options-System-Dialog (with tap-emulation) anymore!
This dialog is needed now only when usb-cable is connected!
- stable filtering of AC-/-Wireless charging connection
- better timings for Toast-Notifications.
------------------------------------------------------------------------------------
- added a donation link (to Pro-Version/Playstore) in Settings screen
(Donation if you want to support my work on MTP enabler)
Pro Version needs some hours, to be visible in Play Store...
The Pro-Version brings extra features:
- Change Color Scheme
- Use multiple Trusted SSIDs
- Use multiple Trusted Locations
BTW: I prefer Trusted Locations over Trusted SSIDs
Hint for adding Trusted Location:
If you Long Click on the Map Fragment, you can add the Position of new location independent from Current GPS position!
DL-link for MTPenabler_XDA_Release_3.3.apk
older versions:
I've updated MTP enabler to Ver. 3.2.1
(after some days of being lazy )
Changes/New:
- New option for switching to alternative method for USB-connect listener
(Check this in settings, if USB-options Panel doesn't appear after USB-connect!)
- Fixed compatibility for latest CM 13 nightlies!
- Fixed Ongoing Notification-Hide Icon
- Removed Ongoing Notification from Lockscreen
- New Mapview with Location Circle-Areas (70 m range in map)
- Fixed: Settings Screen (ANR)
- Lock MTP enabler app with password OR pattern
- Activate MTP enabler only on trusted WiFi SSID(s)
(USB-ADB, -MTP, -PTP will be blocked when not connected to trusted SSID)
- Activate MTP enabler only on trusted Location(s)
(USB-ADB, -MTP, -PTP will be blocked when not in range to trusted location)
- Ability to enable Ongoing Notification
(to prevent stoping MTP enabler by System after long active periods)
- Ability to hide statusbar icon of Ongoing Notification
- Dark OR Light Theme
- Fixed USB-connect while device locked
- absolutely stable USB-connect action on all MM-devices/-ROMs
- reconnect(refresh) after unlock && via Widget/Shortcut doesn't call the USB-Options-System-Dialog (with tap-emulation) anymore!
This dialog is needed now only when usb-cable is connected!
- stable filtering of AC-/-Wireless charging connection
- better timings for Toast-Notifications.
------------------------------------------------------------------------------------
- added a donation link (to Pro-Version/Playstore) in Settings screen
(Donation if you want to support my work on MTP enabler)
Pro Version needs some hours, to be visible in Play Store...
The Pro-Version brings extra features:
- Change Color Scheme
- Use multiple Trusted SSIDs
- Use multiple Trusted Locations
BTW: I prefer Trusted Locations over Trusted SSIDs
Hint for adding Trusted Location:
If you Long Click on the Map Fragment, you can add the Position of new location independent from Current GPS position!
DL-link for MTPenabler_XDA_Release_3.2.1.apk
I've updated MTP enabler to Ver. 3.2
Changes/New:
- Fixed compatibility for latest CM 13 nightlies!
- Fixed Ongoing Notification-Hide Icon
- Removed Ongoing Notification from Lockscreen
- New Mapview with Location Circle-Areas (70 m range in map)
- Fixed: Settings Screen (ANR)
- Lock MTP enabler app with password OR pattern
- Activate MTP enabler only on trusted WiFi SSID(s)
(USB-ADB, -MTP, -PTP will be blocked when not connected to trusted SSID)
- Activate MTP enabler only on trusted Location(s)
(USB-ADB, -MTP, -PTP will be blocked when not in range to trusted location)
- Ability to enable Ongoing Notification
(to prevent stoping MTP enabler by System after long active periods)
- Ability to hide statusbar icon of Ongoing Notification
- Dark OR Light Theme
- Fixed USB-connect while device locked
- absolutely stable USB-connect action on all MM-devices/-ROMs
- reconnect(refresh) after unlock && via Widget/Shortcut doesn't call the USB-Options-System-Dialog (with tap-emulation) anymore!
This dialog is needed now only when usb-cable is connected!
- stable filtering of AC-/-Wireless charging connection
- better timings for Toast-Notifications.
------------------------------------------------------------------------------------
- added a donation link (to Pro-Version/Playstore) in Settings screen
(Donation if you want to support my work on MTP enabler)
Pro Version needs some hours, to be visible in Play Store...
The Pro-Version brings extra features:
- Change Color Scheme
- Use multiple Trusted SSIDs
- Use multiple Trusted Locations
BTW: I prefer Trusted Locations over Trusted SSIDs
Hint for adding Trusted Location:
If you Long Click on the Map Fragment, you can add the Position of new location independent from Current GPS position!
DL-link for MTPenabler_XDA_Release_3.2.apk
I've updated MTP enabler to Ver. 3.1
Changes/New:
- Fixed Ongoing Notification-Hide Icon
- Removed Ongoing Notification from Lockscreen
- New Mapview with Location Circle-Areas (70 m range in map)
- Fixed: Settings Screen (ANR)
- Lock MTP enabler app with password OR pattern
- Activate MTP enabler only on trusted WiFi SSID(s)
(USB-ADB, -MTP, -PTP will be blocked when not connected to trusted SSID)
- Activate MTP enabler only on trusted Location(s)
(USB-ADB, -MTP, -PTP will be blocked when not in range to trusted location)
- Ability to enable Ongoing Notification
(to prevent stoping MTP enabler by System after long active periods)
- Ability to hide statusbar icon of Ongoing Notification
- Dark OR Light Theme
- Fixed USB-connect while device locked
- absolutely stable USB-connect action on all MM-devices/-ROMs
- reconnect(refresh) after unlock && via Widget/Shortcut doesn't call the USB-Options-System-Dialog (with tap-emulation) anymore!
This dialog is needed now only when usb-cable is connected!
- stable filtering of AC-/-Wireless charging connection
- better timings for Toast-Notifications.
------------------------------------------------------------------------------------
- added a donation link (to Pro-Version/Playstore) in Settings screen
(Donation if you want to support my work on MTP enabler)
Pro Version needs some hours, to be visible in Play Store...
The Pro-Version brings extra features:
- Change Color Scheme
- Use multiple Trusted SSIDs
- Use multiple Trusted Locations
BTW: I prefer Trusted Locations over Trusted SSIDs
Hint for adding Trusted Location:
If you Long Click on the Map Fragment, you can add the Position of new location independent from Current GPS position!
DL-link for MTPenabler_Release_3.1.apk
I've updated MTP enabler to Ver. 3.0
Changes/New:
- Fixed: Settings Screen (ANR)
- Lock MTP enabler app with password OR pattern
- Activate MTP enabler only on trusted WiFi SSID(s)
(USB-ADB, -MTP, -PTP will be blocked when not connected to trusted SSID)
- Activate MTP enabler only on trusted Location(s)
(USB-ADB, -MTP, -PTP will be blocked when not in range to trusted location)
- Ability to enable Ongoing Notification
(to prevent stoping MTP enabler by System after long active periods)
- Ability to hide statusbar icon of Ongoing Notification
- Dark OR Light Theme
- Fixed USB-connect while device locked
- absolutely stable USB-connect action on all MM-devices/-ROMs
- reconnect(refresh) after unlock && via Widget/Shortcut doesn't call the USB-Options-System-Dialog (with tap-emulation) anymore!
This dialog is needed now only when usb-cable is connected!
- stable filtering of AC-/-Wireless charging connection
- better timings for Toast-Notifications.
------------------------------------------------------------------------------------
- added a donation link (to Pro-Version/Playstore) in Settings screen
(Donation if you want to support my work on MTP enabler)
Pro Version needs some hours, to be visible in Play Store...
The Pro-Version brings extra features:
- Change Color Scheme
- Use multiple Trusted SSIDs
- Use multiple Trusted Locations
BTW: I prefer Trusted Locations over Trusted SSIDs
Hint for adding Trsusted Location:
If you Long Click on the Map Fragment, you can add the Position of new location independent from Current GPS position!
DL-link for MTPenabler_Release_3.0.apk
I've updated MTP enabler to Ver. 2.6
Changes/New:
- Fixed: Settings Screen (ANR)
- Fixed USB-connect while device locked
- absolutely stable USB-connect action on all MM-devices/-ROMs
- reconnect(refresh) after unlock && via Widget/Shortcut doesn't call the USB-Options-System-Dialog (with tap-emulation) anymore!
This dialog is needed now only when usb-cable is connected!
- stable filtering of AC-/-Wireless charging connection
- better timings for Toast-Notifications.
------------------------------------------------------------------------------------
- added a donation link (to Pro-Version/Playstore) in Settings screen
(Donation if you want to support my work on MTP enabler)
The Pro-Version brings an extra feature: 'Change Color Scheme'
DL-link for MTPenabler_Release_2.6.apk
I've updated MTP enabler to Ver. 2.5.1
Changes/New:
- Fixed: Settings Screen crashed after deepsleep or removing it from Recent-Apps-Screen
- absolutely stable USB-connect action on all MM-devices/-ROMs
- reconnect(refresh) after unlock && via Widget/Shortcut doesn't call the USB-Options-System-Dialog (with tap-emulation) anymore!
This dialog is needed now only when usb-cable is connected!
- stable filtering of AC-/-Wireless charging connection
- better timings for Toast-Notifications.
------------------------------------------------------------------------------------
- added a donation link (to Pro-Version/Playstore) in Settings screen
(if you want to support my work on MTP enabler)
The Pro-Version brings an extra feature: 'Change Color Scheme'
DL-link for MTPenabler_Release_2.5.1.apk
I've updated MTP enabler to Ver. 2.5
Changes/New:
- absolutely stable USB-connect action on all MM-devices/-ROMs
- reconnect(refresh) after unlock && via Widget/Shortcut doesn't call the USB-Options-System-Dialog (with tap-emulation) anymore!
This dialog is needed now only when usb-cable is connected!
- stable filtering of AC-/-Wireless charging connection
- better timings for Toast-Notifications.
------------------------------------------------------------------------------------
- added a donation link (to Pro-Version/Playstore) in Settings screen
(if you want to support my work on MTP enabler)
The Pro-Version brings an extra feature: 'Change Color Scheme'
DL-link for MTPenabler_Release_2.5.apk
I've updated MTP enabler to Ver. 2.2.1
Changed / New:
FIXED: Possible small bug in update (2.2): from Ver. 2.2 !
- Option for deactivate MTP/PTP, when device will be locked(screen off) adhoc or after preset delay
- Option for reactivate MTP/PTP after unlocking device
- Option for blocking MTP/PTP, when USB is connected to untrusted PC
(this (3rd)option needs SElinux permissive on some CM13/SuperSU combos!)
- Material Toast Notifications
- added a donation link (to Pro-Version/Playstore) in Settings screen
(if you want to support my work on MTP enabler)
- some minor fixes
DL-link for MTPenabler_Release_2.2.1.apk
I've updated MTP enabler to Ver. 2.2
Changed / New:
- Option for deactivate MTP/PTP, when device will be locked(screen off) adhoc or after preset delay
- Option for reactivate MTP/PTP after unlocking device
- Option for blocking MTP/PTP, when USB is connected to untrusted PC
(this (3rd)option needs SElinux permissive on some CM13/SuperSU combos!)
- added a donation link (to Pro-Version/Playstore) in Settings screen
(if you want to support my work on MTP enabler)
- some minor fixes
DL-link for MTPenabler_Release_2.2.apk
I've updated MTP enabler to Ver. 2.1
Changed / New:
- Material user interface
(cardviews/structure)
- App icon in Settings screen
- UI colors changed/unified
- improved stability, major fixes
- (optional) (5 sec) notifications when USB connect,disconnect
incl. Lockscreen notification, if 'Act also while locked' is activated
(smart determining pattern/pin protected lock, unprotected lock)
- (optional) notification sounds
- (optional) Android™ Wear notifications
- interactive tutorial (showcase)
- added German language for UI-strings
- added a donation link (to Pro-Version/Playstore) in Settings screen
(if you want to support my work on MTP enabler)
- some minor fixes
DL-link for MTPenabler_Release_2.1.apk
I've updated MTP enabler to Ver. 2.0
Changed / New:
- improved stability, major fixes
- (optional) (5 sec) notifications when USB connect,disconnect
incl. Lockscreen notification, if 'Act also while locked' is activated
(smart determining pattern/pin protected lock, unprotected lock)
- (optional) notification sounds
- (optional) Android™ Wear notifications
- interactive tutorial (showcase)
- added German language for UI-strings
- some minor fixes
DL-link for MTPenabler_Release_2.0.apk
MTP enabler to Ver. 1.2 update is up
Changed / New:
- fixed annoying Error Msg about missing Symlink for "rev -> busybox" (some guys got that and mentioned here)
- new App Icon (kind of materialized)
- new option (in Settings Screen) for enabling MTPenabler's action while device is locked
(smart determining pattern/pin protected lock, unprotected lock)
- some minor fixes
DL-link for MTPenabler_Release_1.2.apk
MTP enabler to Ver. 1.1 update is up
URL]
Changed / New:
- MTP enabler should run stable now on ALL DEVICES / ALL Marshmallow ROMs!
(tested on Nexus 7 (2013)/MoRoM 3.2 , Nexus 4/CM13, Moto G LTE/CM13 - all rooted with Chainfire's SuperSu 2.65)
- BusyBox no more necessary!
DL-link for MTPenabler_Release_1.1.apk
I've released MTP enabler Ver. 1.0!
Changes:
- stable!
- robust USB connect on Mac OSX!
- adb/shell persists stable now!
- MTPenabler blocked, when on AC-poweradapter / Wireless charger
- No opening Android-Filetransfer-Window on PC/Mac, when you set 'Charging' as default action in MTPenabler Setup
- adb stays enabled, when you set 'Charging' as default action in MTPenabler Setup
- your selected default USB-option is active on the fly, after leaving MTP enabler setup screen - without disconnect/reconnect USB-cable
MTPenabler doesn't work on Nexus 4 with CM 13 atm!
If MTPenabler doesn't work on your device and your PC doesn't connect to your device anymore after uninstalling MTPenabler,
goto -> Settings ->Developer Options and switch Android-(USB)-Debugging off/on - and adb/shell/MTP/PTP should work again!
(but I'm working on this too...)
RC 2 is up!
Changes
- stable (99,99%)
- robust USB connect on Mac OSX!
- MTPenabler blocked, when on AC-poweradapter / Wireless charger
- No opening Android-Filetransfer-Window on PC/Mac, when you set 'Charging' as default action in MTPenabler Setup
- adb stays enabled, when you set 'Charging' as default action in MTPenabler Setup
(was lost in RC1)
- your selected default USB-option is active on the fly, after leaving MTP enabler setup screen - without disconnect/reconnect USB-cable
(until RC2 you had to disconnect/connect usb cable to make your decision active)
Enjoy the new USB-functionality, Google had forgotten or was to lazy to make it
RC 1 is up!
Changes
-more stable
-no more unwanted (ghost) actions on USB options panel!
-USB listener mode is stable now
-many bugs fixed
-new options for setting your default USB action
(charging; MTP; PTP)
Beta 2 is up!
Changes
-MTP enabler can be toggled (enabled/disabled) via switch in MTP enabler Setup Screen Titlebar
-We will be able to enable MTP via widget before connecting usb cable! :good:
-We will be able to enable MTP via Homescreen-shortcut before connecting usb cable! :good:
-Widget changes background color, when usb-cable is connected
-USB-connect listener improved!
-'Screen Rotation 'bug with widget fixed!

For Mac users
This method is no more necessary since RC 2 of MTP enabler!
Avoid Android File Transfer starting automatically in Mac OS X after Android device plugin to USB port!
“Android File Transfer” application starts automatically in Mac OS X when you plug your Android device to the USB port. Even if you only want to charge it.
This are the steps you have to take to avoid this (annoying) behaviour:
Open the “Activity Monitor” and kill the “Android File Transfer Agent” process.
Open “System Preferences” > “Accounts”. Go to the “Login Items” tab of your user. Remove the “Android File Transfer Agent”.
Find your “Android File Transfer.app” file (usually in /Applications):
Right click (or ctrl+click) on it and select “Show package contents”.
Go to Contents/Resources.
Rename “Android File Transfer Agent.app” to e.g. “Android File Transfer Agent_DISABLED.app“.
Go to /Users/username/Library/Application Support/Google/Android File Transfer (you can open Library folder with the “Go” menu in Finder while pressing “option” key or from the terminal running “open ~/Library”) and rename “Android File Transfer Agent.app” to e.g. “Android File Transfer Agent_DISABLED.app“.
Now “Android File Transfer” won’t auto-start when you plug your phone on the USB port, but if you open it manually everything will work just fine.
grabbed from an article by Eneko Chan on 2013/11/15
This method is no more necessary since RC 2 of MTP enabler!

Simple and functionnal ! :good:
The option "ask me" is a good idea, no need to go into the nav bar.
Just need a nice icon for the app
Thx !!!

Updated from BETA 1 to BETA 2
See OP...

simple question - simple answer
a user asked me in another thread:
Starphish said:
No offense, but I don't quite understand. All I do is swipe the notification bar and select USB options, then MTP. How does your app simplify that?
Click to expand...
Click to collapse
my answer is:
I'ts more simple for me, because I don't have to
- 1. Swipe down notification area
- 2. looking for right notification(if I've more than one) and clicking the right
- 3. and click the Option for mtp
- my app does it in 1 step (via widget)
- or null step - via listening for usb connect & doing the job automatically.
and further more, it's driving me crazy, when I get the message on my macbook 'Can't connect to device', when I connect usb cable - and can't do the stupid 3 and a half steps in 1 second... LOL

bitstra said:
and further more, it's driving me crazy, when I get the message on my macbook 'Can't connect to device', when I connect usb cable - and can't do the stupid 3 and a half steps in 1 second... LOL
Click to expand...
Click to collapse
That 'splains it ... a macbook! ^_^

Beta 2 is coming up...
App will be updated to -> BETA 2 tomorrow...
Will bring some improvements!
meanwhile Mac users can have a look to POST #2 for an interesting HowTo about Android File Transfer(Mac).

Set to charging by default??
This is the closest thing I've found anywhere on the web to what I want.
For some reason my Nexus 5 (android 6) defaults to MTP. This is the feature all you guys want, but I don't.
Does anyone know how I can get the developer options to persistently default to "Charge Only".
I use a Mac at work and a PC at home, and I always top up my phone. I rarely MTP.
Also it seems the Dev Options USB Connect option works independently of the Quick PullDown option for Charge / MTP on my device. If you change one or the other, the other doesn't change to reflect the new setting.
I tried your MTP Enabler app...as I thought it might help with my issue and cause it to default to Charge Only...no dice though, the app didn't work at all, on either Widget or USB Listen. Could this be because my phone is stock?
Thanks.

tedrogers61 said:
This is the closest thing I've found anywhere on the web to what I want.
For some reason my Nexus 5 (android 6) defaults to MTP. This is the feature all you guys want, but I don't.
Does anyone know how I can get the developer options to persistently default to "Charge Only".
I use a Mac at work and a PC at home, and I always top up my phone. I rarely MTP.
Also it seems the Dev Options USB Connect option works independently of the Quick PullDown option for Charge / MTP on my device. If you change one or the other, the other doesn't change to reflect the new setting.
I tried your MTP Enabler app...as I thought it might help with my issue and cause it to default to Charge Only...no dice though, the app didn't work at all, on either Widget or USB Listen. Could this be because my phone is stock?
Thanks.
Click to expand...
Click to collapse
The app needs root - Is your device rooted?
If yes - try to switch SELinux to permissive, and let me know, if it works then...
OK - I will think about an Option for setting to Charge by default though - Thanx for your reply!

Beta 2 is up
Beta 2 is up! - See OP
Changes
-MTP enabler can be toggled (enabled/disabled) via switch in MTP enabler Setup Screen Titlebar
-We will be able to enable MTP via widget before connecting usb cable! :good:
-We will be able to enable MTP via Homescreen-shortcut before connecting usb cable! :good:
-Widget changes background color, when usb-cable is connected
-USB-connect listener improved!
-'Screen Rotation 'bug with widget fixed!

bitstra said:
The app needs root - Is your device rooted?
If yes - try to switch SELinux to permissive, and let me know, if it works then...
OK - I will think about an Option for setting to Charge by default though - Thanx for your reply!
Click to expand...
Click to collapse
Thought it was a root issue. Thanks for clarifying this.
Also, thanks for considering implementing the idea of default to Charge Only too.
Sent from my Nexus 5 using XDA Premium 4 mobile app

oops - had a typo in Post#1 title.
It's correct now...

Is this app suitable with Android 4.4.2?

...just try it...I don't see why not and it won't break your phone if it doesn't work.
Sent from my Nexus 5 using XDA Premium 4 mobile app

Not for Andr 4.4

salex111 said:
Is this app suitable with Android 4.4.2?
Click to expand...
Click to collapse
salex111 said:
Not for Andr 4.4
Click to expand...
Click to collapse
This app is compiled for API 23 (android 6.0+) only, as it stated in thread title ... [MARSHMALLOW] ...

Glad someone is working on a remedy for this problem. It's so annoying!
Thanks

Release Candidate 1 is coming up
I will update the app from Beta 2 -> Release Candidate 1 tomorrow...
Just wanted to let you know this

MTP enabler updated to RC1
Hi @all,
I've updated MTP enabler to Release Candidate 1!
Changes:
-more stable
-no more unwanted (ghost) actions on USB options panel!
-USB listener mode is stable now
-many bugs fixed
-new options for setting your default USB action
(charging; MTP; PTP)
You can download the updated apk here: MTPenabler_RC1_0.9.1.apk
New features/options - see attached screenshot of MTPenabler setup...

Related

[Q] phone stops sending/receiving calls after some time

Hi,
I have xda orbit II with 3LIT3_VIII_Full_WWE rom and 1.65.30.09 radio.
I was running with this setup for a year or so,
Lately i have a problem making/receiving calls. If i receive a - i can see that the phone is ringing but when i answer the call it is not connected.
If i try to make a call i see that the phone is dialing but it will not connect.
When this happens i need to soft reset the phone and then it is ok for some time.
I thought to upgrade to one of the 6.5 roms but they all say i need to downgrade my radio version - do i do it the same way as new rom?
Can anyone suggest what to do to solve this problem?
davidez2 said:
Hi,
I have xda orbit II with 3LIT3_VIII_Full_WWE rom and 1.65.30.09 radio.
I was running with this setup for a year or so,
Lately i have a problem making/receiving calls. If i receive a - i can see that the phone is ringing but when i answer the call it is not connected.
If i try to make a call i see that the phone is dialing but it will not connect.
When this happens i need to soft reset the phone and then it is ok for some time.
I thought to upgrade to one of the 6.5 roms but they all say i need to downgrade my radio version - do i do it the same way as new rom?
Can anyone suggest what to do to solve this problem?
Click to expand...
Click to collapse
you should try to use Advanced Configuration Tool v3.30 first
before you downgrade radio
here Main features Advanced Configuration Tool
v3.30:
* Extensible tweak list
* Multi-devices support
* Multi-languages support
* Customize key mapping
* Customize file associations
* Custumize ClearType settings
* Customize connection settings
* Customize HTC Comm Manager
* Customize HTC TouchFLO 3D
* Import/export settings using provisioning XML
* User Interface
- Animate windows
- Window animations frames
- Window animations delay
- Animate menus
- Vertical scrollbar width
- Vertical scroll arrow height
- Horizontal scrollbar height
- Horizontal scroll arrow width
- Horizontal icon spacing
- Vertical icon spacing
- Icon title font size
- Menu bar font size
- Popup menu font size
- Use long delay for gestures
* Today
- Single line Date plug-in
- Show clock/battery on title bar
- Show Power icon
- Show Wireless Manager icon
* Performances
- File system cache
- File system cache size
- File system filter cache
- PNP unload delay
- PNP wait I/O delay
- Glyph cache
* Power Management
- SD Memory power management
- MMC Memory power management
- NAND Memory power management
- SIM Memory power management
- AsyncMAC power management
- IrSIR power management
- PPTP power management
- L2TP power management
- USB charging
- Show moving charge bar
- AC resuming from suspend timeout
- Battery resuming from suspend timeout
* Screen
- Show Orientation settings
- Landscape mode
- Landscape fixed
- Aut- device lock
- Aut- device lock timeout
- Dim backlight in unlock screen
- Backlight lock level
* Input
- Keyboard layout
- Slide wake up
- Keyboard backlight timeout
- Suggested words
* Network
- Device friendly name
- Max TCP Connect Retransmissions
- Max TCP Data Retransmissions
- TCP window size
- DHCP
- Validate server certificate
- WPA authentication
- Wi-Fi scan interval
- Wi-Fi delay after boot
- Turn off Wi-Fi if n- activity
- Wi-Fi aut- off timeout
* Phone
- Phone skin
- Enable vide- calls
- Answer using any key
- Face down mute ring
- Phone sleep during call
- Fast sleep during call
- End call delay
- Call progress idle timeout
- Call ID match
- Shows all call history in dialer
- Max entries in call history
- Call history clean period
- Show SIM contacts
- Purge SIM contacts when n- SIM
- DTMF support
- Show Battery icon
- Show Band page
- Show PIN2 page
- Show NITZ page
- Show TTY page
- Show ALS page
- Use EONS
- CPHS override
- 3G prefix in operator name
- 3G prefix text
* Bluetooth
- Bluetooth device name
- OBEX
- Use Joint Stereo
- Bitpool
- Maximum supported bitpool
- Minimum supported bitpool
- Sample rate
- Audi- gateway service
- Audi- gateway power save
* GPS
- Assisted GPS
- Log file
- Old log file
- Max. log file size
* Data Connections
- GPRS aut- attach
- GPRS disconnect
- EDGE icon
- HSDPA icon
- Legacy GPRS notification
- HSUPA support
- Private interface for Internet Sharing
* Internet Explorer
- User Agent custom base
- 4-way navigation
- ClearType
- Delay image load
- Block static ActiveX
- Play background sounds
- Show script errors
- URL Prefix
- URL suffix
- Links t- keep
- Search page
- Maximum connections per server
- Proxy Aut- Detection
* Messaging
- Threaded SMS
- SMS sent notification
- SMS delivery notification
- Wake up on new SMS
- SMS Unicode support
- SMS recipients limit
- Max deleted SMS
- Sync Sent Items
- SMS callback number
- SMS priority
- Show roam warning
* Calendar
- Show lunar calendar
- Show events text in Week view
- Holiday category
- Today Item
* Camera
- Save location
- Burst mode
- Theme Phot- mode
- Sport mode
- Vide- Share mode
- GPS Phot- mode
- Max size in Burst mode
- Max size in Sport mode
- Encode photos in portrait mode
- Capture Key Delay
- Key Delay
- Capture Key Delay Time
* Locations
- Program Files folder
- My Documents folder
- Application Data folder
- Desktop folder
- Programs folder
- StartUp folder
- Recent folder
- Favorites folder
- Fonts folder
- Default storage location for image files
- Default storage location for audi- files
- Default storage location for vide- files
- Default storage location for downloads
- Internet Explorer cache location
- Internet Explorer cookies location
- Internet Explorer history location
* Task Manager
- Refresh interval
- CPU usage refresh interval
* Voice Command
- Respect key lock
- Default TTS rate
* Windows Live
- Live Search URL
* Splash screen
- MS splash screen on startup
- MS splash screen on shutdown
- Carrier splash screen on startup
- Carrier splash screen on shutdown
- MS timeout on startup
- MS timeout on shutdown
- Carrier timeout on startup
- Carrier timeout on shutdown
* HTC Animation
- Animation
- Volume
- GIF file
- WAV file
- Startup GIF file
- Startup WAV file
- Shutdown GIF file
- Shutdown WAV file
- GIF animation speed
- Play shutdown animation
* HTC TouchFLO
- Scrolling
- Cube
- Sound
- Pressure threshold
- Finger Pressure
- High scrolling speed
- Low scrolling speed
* HTC TouchFLO 3D
- Show logo
* HTC Home
- Lock position
- Always open E-mail folder
- Weather location
- Weather location code
* HTC Audi- Manager
- Music player volume
* HTC Music plug-in
- Default music player
* HTC Audi- Booster
- Bass Level
- Treble Level
- 3D Sound Level
* HTC Camera Album
- OK button
- Show Camera icon
* HTC AT Debug Log
- HTC Debug Log
- Log mode
- RAM size
- File index
- File size
* G-sensor
- G-sensor polling interval
* Light sensor
- Light sensor polling
- Light sensor polling interval
- Light sensor threshold
- Light sensor threshold t- turn screen off
* Miscellaneous
- Security warning
- Delete CAB file after install
- Automatic daylight savings switch-over
- Show daylight saving time notifications

[APP][2.2+][Tasker plugin] Secure Settings - Updated 1/29/14

Secure Settings is a Locale/Tasker/Llama compatible plugin for Android 2.2+
Please see the changelog for updates
Secure Settings Pro Trial licenses are available! Click the menu button inside of the Upgrade screen to request a trial.
As of v1.2.6, you can create Launcher shortcuts to any available Action option!
Conditions:
Max Failed Login Attempts - Perform an action based on a specified number of failed login attempts
Google Now Shortcut [4.1+,Pro]
Outgoing Call
Secret Code- Enter a special number in the Dialer and trigger an action.
Actions:
Toggle Airplane Mode
Set Airplane Mode Radios
BT Connection [4.0+]
BT Tethering [4.0+,Pro]
Execute Shortcut
Font Size [4.0+]
Toggle the Keyguard
Launch Activity
Locale Picker
Toggle Mobile Data [2.3+]
Run any GNU linux command (with/without root)
Tasker users can store command output info in user defined Tasker variables
Toggle SIP Receive Calls [2.3+]
Change SIP Call Option [2.3+]
Stay Awake While Charging
Show Touches [4.0+]
Wake the device
WiFi Hotspot [4.0+]
WiFi Sleep Policy
Dev Admin Actions:
Toggle the Camera [4.0+]
Lock the device
Lock Screen Widgets [4.2+]
Set or reset the device's password/pin
Root Actions:
Background Process Limit [4.0+, Pro]
Background Data [Pro]
Force GPU Rendering [4.0+]
Hardware Overlays [4.1+, Pro]
Package Notification [4.1+]
Package State (Previously Package Manager)
Phone Options (Answer,End,Silence Calls) [Pro]
Power Button Lock [4.1+, Pro]
Reboot Options (Uses native system methods) [Pro]
Enable/disable USB Tethering [4.0+,Pro]
VPN [4.0+, Experimental!]
Enable/disable Wireless ADB
Helper Actions:
Enable/disable Accessibility Services
Enable/disable USB Debugging
Set Active Day Dream [4.2+]
Toggle Day Dream State [4.2+]
Enable/disable GPS [2.3+]
Enable/disable Data Roaming
Update Lock Screen Owner Info [3.0+]
Set Lock Screen Timeout [4.0+, Pro]
Enable/disable Pattern lock screen
Enable/disable NFC [NFC Adapter required]
Change device input methods (switch soft keyboards without the prompt)
Enable/disable "Location Services" option for location awareness
Unknown Sources
WiFi Optimization [4.2+]
WiFi Scanning [4.3+]
Custom ROM Actions:
Enable or Disable ADB Over Network [CM9 only]
Expand Desktop [CM10/Paranoid Android]
Enable or Disable Fast Charge [Custom Kernel with Fast Charge Required]
Enable/Disable Kill App Back Button (CM and other custom ROMS)
Toggle LTE on CM9
Toggle Samsung Modes (Blocking, Driving and Power Saver Modes)
I hope you enjoy
Download Here
Explanation of Permissions:
Device Administrator Access - Required if you wish to lock the device or set/reset the password
Storage Access - Required for the Run Command function to write to the SD Card
Full Network Access - Required to download and check for updates for the Helper application
System Tools - Required for the Keyguard and Wake Lock functionality
Root Access - Required if you wish to install the Helper or run privileged commands from the Run Command function
Change Configuration - Required to change Locale
Change Network State - Required to toggle Mobile Data
Change Wifi State - Required to toggle Wifi Adapter for Wireless ADB
Wifi Access - Required to determine if Wifi is enabled for the Wireless ADB function
Bluetooth/BT Admin - Required to Connect to BT Devices
Boot Complete - Required to install Helper on boot if missing
Process Outgoing Calls - Required to use outgoing calls as conditions
Buy me a beer
New feature in Version 1.1.8
With version 1.1.8, Secure Settings can be converted to a system app to get the same functionality as having the Helper installed.
If you wish to move the app to the system, you MUST first disable Device Administrator!
I cannot stress this enough. If you don't do this, the app will break and will be a pain to remove.
Once that's disabled, you can use Titanium Backup to convert the app to a system app.
Thank you very much for this plugin. I have it installed which I downloaded from your site. Is there any difference between that and this one, which is available in the Market? Also, does this one also require to be installed as a system app in order for some functionality to work (e.g. Keyguard Off)? Thanks.
This is a completely different version than what is hosted on the google code site.
This app doesn't require you to install it to the system. I wrote a second app that I called the "Helper" which gets installed there. If you don't install the Helper, you will have the following available to you:
Keyguard
Lock Device
Set Password/Pin
Run Command
Wake Device
And Wireless ADB if you are rooted.
Hope this helps
Ok, thanks. I will try this out right now.
hey Corey Z -
I'm running into issues where Secure Settings plugin doesn't fire if I run a lot of shell scripts. I have a task where I fire a script, wait for its exit code, then fire another script; I do this maybe 4-5 times. This happens just fine, but when I tried to test a different task that also uses a shell script, it doesn't fire and my task just hangs on the "Wait until %CMD_EXIT is set". This is verifiable by turning on "show output" and "show notification" - notification doesn't happen sometimes, indicating that the plugin isn't firing..?
Thanks for the help!
Is it possible ro reset a sim lock pin..???
Sent from my X10 TripNMiUI-Iris using Tapatalk
@strictlyrude27
So, let me see if I understand...
It works fine when you run one command, one after another but you have issues when running multiple commands simultaneously?
Is that it?
Sent from my Thunderbolt
@Z3US911
That's an interesting thought. I'll have to look into that.
Thanks for the suggestion!
Sent from my Thunderbolt
intangibleDroid said:
@strictlyrude27
So, let me see if I understand...
It works fine when you run one command, one after another but you have issues when running multiple commands simultaneously?
Is that it?
Sent from my Thunderbolt
Click to expand...
Click to collapse
Upon further investigation it looks like scripts aren't firing if I manually select the notification to end the script. I set up my profiles to make sure exactly 1 script fires at a time to avoid collisions; when they all fire and exit properly rather than being aborted, I can re-run as much as I'd like.
Thank you very much, just what I needed!
Sent from my Nexus S 4G using XDA Premium App
@strictlyrude27
Are you referring to the cancel script option you get after you click the script running notification?
If so, that function is actually a little buggy at the moment. It may not actually cancel the script.
Is that what may be causing the problem?
Sent from my Thunderbolt
intangibleDroid said:
@strictlyrude27
Are you referring to the cancel script option you get after you click the script running notification?
If so, that function is actually a little buggy at the moment. It may not actually cancel the script.
Is that what may be causing the problem?
Sent from my Thunderbolt
Click to expand...
Click to collapse
That could be it! I haven't had to cancel a script since originally posting that, so hopefully I never run into it again..
This is great!
Now I am able to disable the pattern lock while connected to my Wifi.
On the Turn On/Off GPS....does that mean I can re-use an old task where GPS gets turned off when I exit Google Maps/Navigation like it used to in <2.2?
I've been using this plugin with ZERO issues to disable the pin lock when I enter known WiFi and to enable it otherwise.
@SilentSummer
You should be able to enable/disable GPS like you were able to prior to GB
intangibleDroid said:
@SilentSummer
You should be able to enable/disable GPS like you were able to prior to GB
Click to expand...
Click to collapse
Will give it a try, thanks
Edit: Works great
this may be a dumb question, but is the helper supposed to be on the market somewhere? or is it the manual download only? I only ask because the manual download is worded like you should only use it if you have problems...
Hi,
I use a program called "CELLBROKER," and whenever I get it I need to put my password and enter ... I created a profile in TASKER to put the password ( Input - Type - "my password"), but I do not know how to use a command in linux to run automatically enter.
Can someone help me?
Thanks a lot!
gohamstergo said:
this may be a dumb question, but is the helper supposed to be on the market somewhere? or is it the manual download only? I only ask because the manual download is worded like you should only use it if you have problems...
Click to expand...
Click to collapse
The Helper is not available on the market. I currently have it hosted at my google code site.
If you want to install it, use the install option in the settings of my app. The manual download is offered if that fails for any reason.
Hope this helps.
Sent from my Thunderbolt

Android Configuration Automation From Windows

What i have been trying to do is create somewhat of a script that i can run on my windows machine with my android device connected and have it install an apk and set device settings such as:
- WiFi: SSID and Password
- Display Settings: - When device is rotated and change to the second option (can't remember which one it was)
- Sound & Notification Settings: Blocking gmail and not displaying notifications on the lock screen
- Security Settings: From swipe lock to none
So far the best way i have found of automation this is using a chrome app called Vysor that connects to my Android device and lets me control it from my computer, then using AutoIT i use the X,Y positions on the screen to make the click and then use the "Send()" function to send keys such as passwords and so forth.
Surely there is a better way to do this does anyone have any idea?

Change your keypad/softkey lights as notification lights (Nokia 6 global version)

Is your device haven't a notification led but it's has keypad/softkey backlight ?
this application turn your softkey backlight as your notification led, tested on nokia 6, lenovo P1, and many others.
Download:
- Led Trigger Control (ROOT) on playstore
Requirements :
- Rooted device
- Allow notification access in special app access settings
- Allow root access
Features:
- Almost all application that has notification supported
- Support android API 18 (JB) and later (API 28)
- Auto append all detected application in list and control it
How To:
- Open the app and follow the wizard
- or open all screenshot images
Permission Agreements :
- Root, keypad/softkey backlight settings included in secure setting. unlike the display backlight in non secure setting, that why not allowing me to change the led configuration from a non rooted devices
- Wakelock, this app using modules from JobIntentServices, it's managed by system
- Notification access, for detecting coming notification then triggering notification led on/off, and i don't read or collect any content from it.
Sources :
- Icon, from default android studio icon templates
- SU, how to su by chainfire
Any chance of such an app for non root devices??
Khalidskhoso said:
Any chance of such an app for non root devices??
Click to expand...
Click to collapse
no, if i use light display it will drain your battery, as i said soft key light isn't accessed without root
hi

[5.0+]Sloth - Profile Scheduler - Manage your phone

Hello,
It's high time to publish my first beta release publicly of my app.
This app is currently designed for devices running Android Marshmallow and newer, backwards compatibility to Lollipop is going to be added in the next update. There is no Intro yet - work in progress.
REMEMBER YOU'RE USING THIS APP ON YOUR OWN RISK!
FUNCTIONS, ABOUT APP
The point is this app is to allow user to control when the hardware functions such as WiFi, Bluetooth etc are going to be turned off/on. In the current release there are 7 avaible functions:
5 for all devices, 2 for rooted devices.
In actions that contain "on/off" you have to specific exact action by clicking on the spinner to choose whether action is going to make a function on or off. If you don't do that, the default one will be choosen.
- Turn WiFi on/off: this sets up an alarm to turn WiFi on or off
- Turn off/on Bluetooth
- Turn off/on account sync
- Change screen brightness: 3 options avaible: dark screen, bright screen and custom value with preview avaible. You can modify dark and bright values in the settings (swipe from the edge right in the main layout of the app).
- Set loud/silent/ do not disturb mode: sets a specified volume mode
Root actions:
- Turn off device
- Reboot device
You will be asked for root permission, unless you give the permission action will not be either saved and performed.
PERMISSIONS:
In the first launch you will be asked to disable battery optimisation for this app, if you don't disable it may not work properly.
In the brightness section, you will be asked for allowing app to modify system settings - it's required to change brightness by the app.
Another permission you will be asked is to allow app to modify notifications - it's required if you would like to change phone volume mode (exactly do not disturb).
To delete planned actions:
There are currently 4 methods to delete planned actions, but the only one is to cancel the action:
- In upcoming events section, click on trash and then select items to delete and then hit trash one more time to delete
- Swipe left on item to delete
- Hit on the trash button, then click delete all
Those methods DO NOT cancel pending action
To cancel pending action:
- Click on an item you want to cancel, the editor will pop up
- Hit on the trash button, then the action will be canceled and item deleted.
Changelog:
Version 1.1:
- Optimised navigation drawer
- Fixed bluetooth service that did not update alarm
- New intro added
- Added backwards compatibility back to Lollipop
- After device is rebooted alarms are no longer cancelled - they are rescheduled if still valid
- Navigation drawer is now open for the first boot
- Now you can ask for permissions one more time from navigation drawer
- Fixed app icon not showing on some devices
Version 1.2
- Repeat every day function added
- Minor bugs fixed
- Updated Toasts messages
Version 1.3
-fixed delete all alarms button
-fixed daily alarms not being fired daily
-added repeating alarms to fire in week days
-if no day buttons are selected, even if repeat switch is checked,
alarm will fire once
Version 1.4
- fixed one time alarms not being triggered
- updated toast messages
- fixed date not being shown properly
Version 2.0
-fixed account sync turning on specified days instead of everyday
-fixed acc sync alarms not being fired after device reboot
-new UI - now there is no new activity opened, you can manage your alarm through one view
-turn on/off alarm - now you can manage if you alarm is valid or not
-now on item swiped cancels and deletes current alarm
DOWNLOAD:
Google Play: https://play.google.com/store/apps/details?id=dominik.kedziak.sloth_profilescheduler
Credits:
Icons made by Freepik from www.flaticon.com
Write down in the comments what functions would you love to see in the upcoming update.
Bests
If I put a future date in a profile, will it be repeated daily until that date? If not, how can I create a profile and repeat it daily? Thank you
jordirpz said:
If I put a future date in a profile, will it be repeated daily until that date? If not, how can I create a profile and repeat it daily? Thank you
Click to expand...
Click to collapse
I had a some issues in implementing repeat feature (likey in specific day) so current alarms are fired one time only.
So, currently there is no way to repeat alarms automaticly, only by creating a new one.
Anyway, I've added this to my todo list. I hope you will be able to use this feature by the next update
Hi, thanks for your work and the new features. Can you add that days of the week you want a created profile to be activated / deactivated ?. Thank you very much.
@jordipz working on that! Should be updated soon!
Thank you very much for the update.
I can see in my service app that airplane mode on/off exist.
Can you active this option?
Yes I was about to do, but I focused on making repeating alarms at first.
Now I'm taking up for modifying UI and adding non-root required services (e.g turning airplane mode, mobile data etc needs root access).

Categories

Resources