• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[APP][ROOT][R 3.3][MARSHMALLOW] MTP enabler

Search This thread

bitstra

Senior Member
Sep 22, 2010
1,593
2,549
Berlin
*** 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!
 

Attachments

  • Screenshot_XDA_2.png
    Screenshot_XDA_2.png
    130.7 KB · Views: 10,716
  • Screenshot_20160202-134636.jpg
    Screenshot_20160202-134636.jpg
    80 KB · Views: 8,875
  • Screenshot_20160202-134616.jpg
    Screenshot_20160202-134616.jpg
    146.5 KB · Views: 10,673
  • Screenshot_XDA_1.png
    Screenshot_XDA_1.png
    122 KB · Views: 10,849
  • Screenshot_20160202-134652.png
    Screenshot_20160202-134652.png
    228.4 KB · Views: 8,467
  • Screenshot_20160202-134703.png
    Screenshot_20160202-134703.png
    153.4 KB · Views: 8,076
  • Screenshot_20160202-134715.png
    Screenshot_20160202-134715.png
    136 KB · Views: 7,588
  • WearScShot_en_plugged_moto360.png
    WearScShot_en_plugged_moto360.png
    128.2 KB · Views: 7,482
  • WearScShot_en_unplugged_moto360.png
    WearScShot_en_unplugged_moto360.png
    128.5 KB · Views: 7,398
  • Screenshot_20160207-144742.png
    Screenshot_20160207-144742.png
    124.3 KB · Views: 6,712
  • Screenshot_20160301-182153.png
    Screenshot_20160301-182153.png
    129.2 KB · Views: 5,763
  • Screenshot_20160301-182251.png
    Screenshot_20160301-182251.png
    46 KB · Views: 5,251
  • Screenshot_20160301-182300.png
    Screenshot_20160301-182300.png
    129.6 KB · Views: 4,941
  • Screenshot_20160301-181804.png
    Screenshot_20160301-181804.png
    27.7 KB · Views: 4,530
  • Screenshot_20160301-181847.png
    Screenshot_20160301-181847.png
    116.5 KB · Views: 4,436
  • Screenshot_20160303-224330.png
    Screenshot_20160303-224330.png
    194.3 KB · Views: 4,234
Last edited:

bitstra

Senior Member
Sep 22, 2010
1,593
2,549
Berlin
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!


 
Last edited:

bitstra

Senior Member
Sep 22, 2010
1,593
2,549
Berlin
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!
 
Last edited:

bitstra

Senior Member
Sep 22, 2010
1,593
2,549
Berlin
simple question - simple answer

a user asked me in another thread:
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?

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

Senior Member
Sep 22, 2010
1,593
2,549
Berlin
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).
 

tedrogers61

Senior Member
Aug 18, 2012
520
83
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.
 
Last edited:
  • Like
Reactions: pehoko

bitstra

Senior Member
Sep 22, 2010
1,593
2,549
Berlin
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.

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!
 
Last edited:
  • Like
Reactions: tedrogers61

bitstra

Senior Member
Sep 22, 2010
1,593
2,549
Berlin
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!
 
Last edited:
  • Like
Reactions: williamfold

tedrogers61

Senior Member
Aug 18, 2012
520
83
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!

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
 

tedrogers61

Senior Member
Aug 18, 2012
520
83
...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
 

bitstra

Senior Member
Sep 22, 2010
1,593
2,549
Berlin
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...
 

Attachments

  • Screenshot_20151218-125422.png
    Screenshot_20151218-125422.png
    113.4 KB · Views: 617
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 86
    *** 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!
    16
    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!


    10
    My Easter Giveaway

    Happy Easter Holidays for @all!

    For 48 hours from now you can download MTP enabler Pro Ver. 3.2.1 for free here.

    Thank you for testing/using MTP enabler...
    and
    Special Thanks for donating via Play Store!

    kind regards

    bitstra
    9
    MTP enabler Release 3.2.1 is up

    I've updated MTP enabler to Ver. 3.2.1

    (after some days of being lazy :) )

    Many thanks to @AndyYan for collaborating and testing!:good:

    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
    8
    Upcoming Update Ver. 2.5

    Today evening Update Ver. 2.5 will be online...

    It will bring the following improvements:


    - 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.