With Tasker, use a trick to automatically enable USB mass storage when USB cable plugged.
Require:
- Android 2.3+
- USB debbuging off
- In fact, the button “Turn on USB storage” must show up when USB cable plugged.
Download this file
Otherwise, you can create the profile yourself with the following steps:
1 Click New and select State
Select Hardware Action then USB plugged
2 Click + in the bottom left to add an action
Select category Task and Wait
Set 250 ms and press Done
3 Click + in the bottom left to add an action
Select category Input and DPad
Set Button Down and press done
4 Click + in the bottom left to add an action
Select category Input and DPad
Set Button Press and press done
5 Click + in the bottom left to add an action
Select category Task and Wait
Set 250 ms and press Done
6 Click + in the bottom left to add an action
Select category Input and DPad
Set Button Right and press done
7 Click + in the bottom left to add an action
Select category Input and DPad
Set Button Press only If %WIN ~ Turn off USB storage < replace it with your langage
Explanation:
Tasker simulates a tap on the button “Turn on USB storage” when it appears.