Hello,
I have a MAF application which uses the devices camera. This works fine when testing on Samsung galaxy S3 and S5, however the S6 throws the below exception:
java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=3432, uid=10060 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
I had a look in the AndroidManifest.xml file that MAF is providing and it obviously doesn't have this permission.
I'm wondering when and how MAF creates this file, and how I can affect its creation to add in missing permissions.
I am also having trouble with GPS data and I believe this is related to this problem.
Here is the relevant part of the xml file that MAF is generating:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.INTERNET"/>
and here is the log related to the locational data:
LocationProvider: Caught security exception registering for location updates from system. This should only happen in DumpRenderTree.
I am using OEPE in Eclipse and testing on a GenyMotion Samsung Galaxy S6 emulated device with API 23.
The relevant plugins appear under the "Plug-in Enablement" section of the MAF Application Editor, so they seem to be properly enabled for my features.
Any help would be greatly appreciated.