Permission Denial: Can't Access The Surfaceflinger
I get this error when running my app. I also included the permission for surfaceFlinger in manifest.xml 'uses-permission android:name='android.permission.ACCESS_SURFACE_FLINGER' b
Solution 1:
Your app needs to be signed with the platform certificate to access this permission. Only system apps generally have this. More info here:
https://groups.google.com/forum/#!topic/android-porting/aN6D_vL9xxE
Solution 2:
As a workaround, add this to your manifest file. UID media is able to use the surface flinger APIs, so sharing UID with it will allow your app to use it as well.
coreApp="true"
android:sharedUserId="android.uid.media"
Solution 3:
Don't forget to add its relative permission:
<uses-permissionandroid:name="android.permission.ACCESS_SURFACE_FLINGER" />
Post a Comment for "Permission Denial: Can't Access The Surfaceflinger"