sm7250-common: Grant android.permission.WRITE_DEVICE_CONFIG to gms

Grant android.permission.WRITE_DEVICE_CONFIG to com.google.android.gms
package.

TEST: run gts -m GtsDeviceConfigTestCases -t
com.google.android.deviceconfig.gts.DeviceConfigApiPermissionTests#testWriteDeviceConfigPermission

Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Reviewed-on: http://androidsource.ap.freescale.net/project/13666
Reviewed-by: guoyin.chen <guoyin.chen@nxp.com>
Reviewed-by: Tian Yang <yang.tian@nxp.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
This commit is contained in:
Haoran.Wang 2020-09-24 22:20:16 +08:00 committed by mikairyuu
parent 46bde50f28
commit b05559daf5
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2019-2022 The Android Open Source 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
-->
<permissions>
<privapp-permissions package="com.google.android.gms">
<permission name="android.permission.WRITE_DEVICE_CONFIG" />
</privapp-permissions>
</permissions>

View File

@ -221,6 +221,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.gatekeeper@1.0.vendor android.hardware.gatekeeper@1.0.vendor
# GMS Permissions
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/permissions/privapp-permissions-gms.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp.permissions-gms.xml
# GPS # GPS
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.gnss@1.1.vendor \ android.hardware.gnss@1.1.vendor \