[Android Apps and Games] bitstra:
*** 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!