Android - Disable Volume Warning
You’ll first need to install Tasker and AutoTools so we can automate this trick.
Granting Secure Settings Permission to AutoTools
There are certain permissions that applications cannot be granted even if they request it in the Manifest, such as WRITE_SECURE_SETTINGS. This is because granting any application a permission as powerful as this would give that app a ton of control over your device.
So install the ADB binary onto your computer followed by the driver for your device. Then, enable USB Debugging in Developer Options (go to Settings –> About Phone and tap on Build number 7 times if you haven’t already) and connect your phone to your computer. Finally, send the following command once you’ve opened up a terminal and type:
adb shell pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS
Or if you are in a shell in your device, access the super user account and type the same command without the adb shell command:
pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS
Disabling Safe Audio Warning on Boot
Open up Tasker so we can create a new profile. At the bottom right hand corner tap on the + icon to create a new profile. Add an new Event context and go to Tasker –> Monitor Start.
For the first action, go to Task –> Wait and have it wait for 30 seconds. This accounts for the “30 second after boot” rule used in Android to set the safe volume state.
Next, create a new Action and go to Plugin –> AutoTools –> Secure Settings. Press the pencil to open the configuration screen for AutoTools. Go to Custom Setting.
Below are the configurations for this new task.
Input Type: int