fix(manifest): set exported=true for activities and receivers

Set `android:exported="true"` for MainActivity, PanicResponderActivity, PlainTextBackupBroadcastReceiver, and EncryptedBackupBroadcastReceiver to address changes in Android 12 requirements.

Ensures components can be launched by the system or other applications, making the app compatible with Android 12's stricter component exporting rules.
This commit is contained in:
Kumi 2024-09-17 08:59:42 +02:00
parent 32d3da15d5
commit e8d2d95091
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -21,6 +21,7 @@
android:name=".Activities.MainActivity" android:name=".Activities.MainActivity"
android:label="@string/app_name" android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar" android:theme="@style/AppTheme.NoActionBar"
android:exported="true"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|keyboard"> android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|keyboard">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@ -68,6 +69,7 @@
android:name=".Activities.PanicResponderActivity" android:name=".Activities.PanicResponderActivity"
android:launchMode="singleInstance" android:launchMode="singleInstance"
android:noHistory="true" android:noHistory="true"
android:exported="true"
android:theme="@android:style/Theme.NoDisplay"> android:theme="@android:style/Theme.NoDisplay">
<intent-filter> <intent-filter>
<action android:name="info.guardianproject.panic.action.TRIGGER" /> <action android:name="info.guardianproject.panic.action.TRIGGER" />
@ -75,13 +77,13 @@
</intent-filter> </intent-filter>
</activity> </activity>
<receiver android:name=".Receivers.PlainTextBackupBroadcastReceiver"> <receiver android:name=".Receivers.PlainTextBackupBroadcastReceiver" android:exported="true">
<intent-filter> <intent-filter>
<action android:name="org.shadowice.flocke.andotp.broadcast.PLAIN_TEXT_BACKUP" /> <action android:name="org.shadowice.flocke.andotp.broadcast.PLAIN_TEXT_BACKUP" />
</intent-filter> </intent-filter>
</receiver> </receiver>
<receiver android:name=".Receivers.EncryptedBackupBroadcastReceiver"> <receiver android:name=".Receivers.EncryptedBackupBroadcastReceiver" android:exported="true">
<intent-filter> <intent-filter>
<action android:name="org.shadowice.flocke.andotp.broadcast.ENCRYPTED_BACKUP" /> <action android:name="org.shadowice.flocke.andotp.broadcast.ENCRYPTED_BACKUP" />
</intent-filter> </intent-filter>