diff options
author | Abhisek Devkota <ciwrl@cyanogenmod.com> | 2016-07-06 15:18:29 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-07-07 14:52:37 -0700 |
commit | f1c5ab81b75c4aa29247e2dc84a5ccd25cd986e8 (patch) | |
tree | a14557ed19de12c01b1ab715d9c999eaef6348b1 /config | |
parent | 2d2eb9a22dc8a837740b092e0302610bb60b38c4 (diff) | |
download | vendor_replicant-f1c5ab81b75c4aa29247e2dc84a5ccd25cd986e8.zip vendor_replicant-f1c5ab81b75c4aa29247e2dc84a5ccd25cd986e8.tar.gz vendor_replicant-f1c5ab81b75c4aa29247e2dc84a5ccd25cd986e8.tar.bz2 |
Adapt to 6.0.1_r52 backup whitelist
As of f/b 9b8c6d2df35455ce9e67907edded1e4a2ecb9e28
we need to whitelist who can be backup services.
Change-Id: I52a004924e6d2651c5ecdec51a8c5a80bdd54a38
Diffstat (limited to 'config')
-rw-r--r-- | config/common.mk | 4 | ||||
-rw-r--r-- | config/permissions/backup.xml | 25 |
2 files changed, 29 insertions, 0 deletions
diff --git a/config/common.mk b/config/common.mk index 0fdc4a4..7507535 100644 --- a/config/common.mk +++ b/config/common.mk @@ -84,6 +84,10 @@ PRODUCT_COPY_FILES += \ vendor/cm/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh \ vendor/cm/prebuilt/common/bin/blacklist:system/addon.d/blacklist +# Backup Services whitelist +PRODUCT_COPY_FILES += \ + vendor/cm/config/permissions/backup.xml:system/etc/sysconfig/backup.xml + # Signature compatibility validation PRODUCT_COPY_FILES += \ vendor/cm/prebuilt/common/bin/otasigcheck.sh:install/bin/otasigcheck.sh diff --git a/config/permissions/backup.xml b/config/permissions/backup.xml new file mode 100644 index 0000000..c335b29 --- /dev/null +++ b/config/permissions/backup.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2016 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<config> + <!-- Whitelist of what components are permitted as backup data transports. The + 'service' attribute here is a flattened ComponentName string. --> + <backup-transport-whitelisted-service + service="android/com.android.internal.backup.LocalTransportService" /> + <backup-transport-whitelisted-service + service="com.google.android.gms/.backup.BackupTransportService" /> + <backup-transport-whitelisted-service + service="com.google.android.gms/.backup.component.D2dTransportService" /> +</config>
\ No newline at end of file |