From 2bfbc303e205295f33d64f09e453faa432bc4136 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Wed, 4 Nov 2020 06:46:24 +0000 Subject: [PATCH 1/3] Add default permissions for some apps on Q Change-Id: I93ad0fecaf2f4487de35ebd620e3c855cb862250 (cherry picked from commit cbad97dacb6b5cd20f500d5b41db777596319a09) --- config/common.mk | 4 ++ config/permissions/eos-permissions.xml | 72 ++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 config/permissions/eos-permissions.xml diff --git a/config/common.mk b/config/common.mk index 32b0c622b..6010452ff 100644 --- a/config/common.mk +++ b/config/common.mk @@ -47,6 +47,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ vendor/lineage/config/permissions/lineage-sysconfig.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/lineage-sysconfig.xml +# Pre-granted eos-permissions +PRODUCT_COPY_FILES += \ + vendor/lineage/config/permissions/eos-permissions.xml:system/etc/default-permissions/eos-permissions.xml + # Copy all Lineage-specific init rc files $(foreach f,$(wildcard vendor/lineage/prebuilt/common/etc/init/*.rc),\ $(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_SYSTEM)/etc/init/$(notdir $f))) diff --git a/config/permissions/eos-permissions.xml b/config/permissions/eos-permissions.xml new file mode 100644 index 000000000..3c387e13b --- /dev/null +++ b/config/permissions/eos-permissions.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- GitLab From 60c035f6532124f261e584ad93b75b7b1aac1a28 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Fri, 6 Nov 2020 10:32:39 +0000 Subject: [PATCH 2/3] Add PwaPlayer --- config/common.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/common.mk b/config/common.mk index 6010452ff..7082020a4 100644 --- a/config/common.mk +++ b/config/common.mk @@ -136,7 +136,8 @@ PRODUCT_PACKAGES += \ Apps \ ESmsSync \ SystemUIWithLegacyRecents \ - + PwaPlayer + ifeq ($(INCLUDE_BACKUP_APP),true) PRODUCT_PACKAGES += SeedVault endif -- GitLab From b4d6b15c5de9cf3dc1b950a4caebf86a248cf17b Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Fri, 6 Nov 2020 21:28:36 +0530 Subject: [PATCH 3/3] Copy weather permission Change-Id: I12c8d38a06c1cf149c7ff5500d6f6c2d11d5410e --- config/lineage_sdk_common.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/lineage_sdk_common.mk b/config/lineage_sdk_common.mk index 022e69dcf..4e5d3a57c 100644 --- a/config/lineage_sdk_common.mk +++ b/config/lineage_sdk_common.mk @@ -6,7 +6,8 @@ PRODUCT_COPY_FILES += \ vendor/lineage/config/permissions/org.lineageos.performance.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.performance.xml \ vendor/lineage/config/permissions/org.lineageos.profiles.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.profiles.xml \ vendor/lineage/config/permissions/org.lineageos.settings.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.settings.xml \ - vendor/lineage/config/permissions/org.lineageos.trust.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.trust.xml + vendor/lineage/config/permissions/org.lineageos.trust.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.trust.xml \ + vendor/lineage/config/permissions/org.lineageos.weather.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.weather.xml # Lineage Platform Library PRODUCT_PACKAGES += \ -- GitLab