diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2020-05-06 20:09:05 +0300 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-05-06 20:27:05 +0300 |
commit | 1b01d6127e2d6f72b88e450f482e370ac6d5d71f (patch) | |
tree | c5a645f32ddbd1e8f347e21af6b7c52be694508d | |
parent | 4813cedc7ecb153af2c739c6af1796f5cb20a64a (diff) |
AudioFX: Add privapp permissions xml
Change-Id: Ia8748a3c49f4f8bf3e165c03564a9d989837b389
-rw-r--r-- | Android.mk | 10 | ||||
-rw-r--r-- | privapp_whitelist_org.lineageos.audiofx.xml | 23 |
2 files changed, 33 insertions, 0 deletions
@@ -26,8 +26,18 @@ LOCAL_PRIVILEGED_MODULE := true LOCAL_CERTIFICATE := platform +LOCAL_REQUIRED_MODULES := privapp_whitelist_org.lineageos.audiofx.xml + include $(BUILD_PACKAGE) +include $(CLEAR_VARS) +LOCAL_MODULE := privapp_whitelist_org.lineageos.audiofx.xml +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions +LOCAL_SRC_FILES := $(LOCAL_MODULE) +include $(BUILD_PREBUILT) + # Use the following include to make our test apk. ifeq (,$(ONE_SHOT_MAKEFILE)) include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/privapp_whitelist_org.lineageos.audiofx.xml b/privapp_whitelist_org.lineageos.audiofx.xml new file mode 100644 index 0000000..4486284 --- /dev/null +++ b/privapp_whitelist_org.lineageos.audiofx.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2017-2020 The LineageOS 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="org.lineageos.audiofx"> + <permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/> + <permission name="android.permission.MEDIA_CONTENT_CONTROL"/> + <permission name="android.permission.MODIFY_AUDIO_ROUTING"/> + </privapp-permissions> +</permissions> |