Properly pre-grant notification permission

This commit is contained in:
Michael Bestas 2022-09-13 19:18:25 +03:00 committed by Chirayu Desai
parent e78094e197
commit a0ec8a5ecc
3 changed files with 16 additions and 1 deletions

View file

@ -53,6 +53,7 @@ android_app {
required: [
"LocalContactsBackup",
"com.stevesoltys.backup_allowlist",
"com.stevesoltys.backup_default-permissions",
"com.stevesoltys.backup_privapp_allowlist"
],
optimize: {
@ -68,6 +69,14 @@ prebuilt_etc {
filename_from_src: true,
}
prebuilt_etc {
name: "com.stevesoltys.backup_default-permissions",
system_ext_specific: true,
sub_dir: "default-permissions",
src: "default-permissions_com.stevesoltys.seedvault.xml",
filename_from_src: true,
}
prebuilt_etc {
name: "com.stevesoltys.backup_privapp_allowlist",
system_ext_specific: true,

View file

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<exceptions>
<exception package="com.stevesoltys.seedvault">
<!-- Notifications -->
<permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/>
</exception>
</exceptions>

View file

@ -7,6 +7,5 @@
<permission name="android.permission.INTERACT_ACROSS_USERS_FULL"/>
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
<permission name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
<permission name="android.permission.POST_NOTIFICATIONS"/>
</privapp-permissions>
</permissions>