-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
When I went to submit my app to the Play Console I was surprised by this error message:
Your app uses the FOREGROUND_SERVICE_MEDIA_PROJECTION permission. You can only use this permission if your app performs tasks noticeable to the user when they're not directly interacting with your app.
To resolve this, I was prompted to give some justification for why I was using this permission. (My app doesn't need/want this permission.)
After some spelunking I tracked it down to the shaky library's manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.linkedin.android.shaky" >
<uses-sdk android:minSdkVersion="21" />
<!-- Permission for foreground service -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<!-- Permission specifically for media projection foreground service type on Android 10+ -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
<application android:supportsRtl="true" >
<activity android:name="com.linkedin.android.shaky.FeedbackActivity" />
<!-- Foreground service for MediaProjection -->
<service
android:name="com.linkedin.android.shaky.ScreenCaptureService"
android:enabled="true"
android:exported="false"
android:foregroundServiceType="mediaProjection" />
</application>
</manifest>
I downgraded back to v3.0.11 to avoid the issue. Is this really necessary to have in the library??
Metadata
Metadata
Assignees
Labels
No labels