FMRadio: (almost) drop system UID
* Add FMRadio app to media group to allow maintainers to start
changing their trees
* Add various fixes for running with less permissions (previously, we
got said permissions from other apps in the system UID)
* Do all preparations so the sharedUid can be dropped without breakage
* ACCESS_BROADCAST_RADIO adds us to media group which allows us to
access /dev/fm without system uid
* ACCESS_FM_RADIO is no-op
Change-Id: Ib8847a6104cab9d8dac6e22c82104fd780276052
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index b161ee7..3b61144 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -27,11 +27,14 @@
android:targetSdkVersion="30"
android:usesCleartextTraffic="false" />
+ <uses-permission android:name="android.permission.ACCESS_BROADCAST_RADIO" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
- <uses-permission android:name="android.permission.ACCESS_FM_RADIO" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
<uses-permission android:name="android.permission.BLUETOOTH" />
+ <uses-permission android:name="android.permission.CAPTURE_AUDIO_OUTPUT" />
+ <uses-permission android:name="android.permission.CAPTURE_TUNER_AUDIO_INPUT" />
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />