I have a Qt android application which requires CAMERA and WRITE_EXTERNAL_STORAGE permissions. So I have the following:
public class AppActivity extends QtActivity
{
private static final String[] PERMISSIONS = {
android.Manifest.permission.WRITE_EXTERNAL_STORAGE,
android.Manifest.permission.CAMERA
};
private void CheckPermissions()
{
...
requestPermissions(PERMISSIONS, PERMISSION_ALL);
...
}
...
}
No problem with that, when my application is installed and then launched, it asks for those two permissions.
However, when installation succeeds, there is a screen which lists some permissions, see screenshot below.
How to remove the two permissions Microphone and Location from this screen (they also appear in the Settings parameters screen of the application), as they are not required in my application?
I tried putting in AndroidManifest.xml the following:
<uses-permission tools:node="remove" android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission tools:node="remove" android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission tools:node="remove" android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission tools:node="remove" android:name="android.permission.RECORD_AUDIO" />
but it doesn't change anything.