Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f91afd6e authored by Andrei Onea's avatar Andrei Onea Committed by Zach Johnson
Browse files

Add allowlist for Bluetooth apk

Bundle the allowlist for the Bluetooth apk-in-apex.

Test: boots
Bug: 220807590
Change-Id: I855c0d8dce075c75166346b89a6023f0cd754c6a
parent 8a2b4933
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -156,6 +156,7 @@ android_app {
        "audio_set_scenarios_json",
        "bt_did.conf",
        "bt_stack.conf",
        "privapp_allowlist_com.android.bluetooth.services.xml",
    ],
    apex_available: [
        "com.android.bluetooth",
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ apex {
    name: "com.android.bluetooth",
    defaults: ["com.android.bluetooth-defaults"],
    manifest: "apex_manifest.json",
    prebuilts: ["privapp_allowlist_com.android.bluetooth.services.xml"],
}

apex_key {
+9 −0
Original line number Diff line number Diff line
package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

prebuilt_etc {
    name: "privapp_allowlist_com.android.bluetooth.services.xml",
    src: "com.android.bluetooth.services.xml",
    sub_dir: "permissions",
}
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
per-file *.xml,OWNERS = set noparent
per-file *.xml,OWNERS = file:platform/frameworks/base:/data/etc/OWNERS
+42 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 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.android.bluetooth.services">
        <permission name="android.permission.BLUETOOTH_PRIVILEGED" />
        <permission name="android.permission.CONTROL_INCALL_EXPERIENCE" />
        <permission name="android.permission.DUMP" />
        <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
        <permission name="android.permission.NFC_HANDOVER_STATUS" />
        <permission name="android.permission.WRITE_SECURE_SETTINGS" />
        <permission name="android.permission.WRITE_APN_SETTINGS" />
        <permission name="android.permission.CALL_PRIVILEGED" />
        <permission name="android.permission.CONNECTIVITY_INTERNAL" />
        <permission name="android.permission.TETHER_PRIVILEGED" />
        <permission name="android.permission.MODIFY_PHONE_STATE" />
        <permission name="android.permission.INTERACT_ACROSS_USERS" />
        <permission name="android.permission.INTERACT_ACROSS_USERS_FULL" />
        <permission name="android.permission.MANAGE_USERS" />
        <permission name="android.permission.MEDIA_CONTENT_CONTROL" />
        <permission name="android.permission.UPDATE_APP_OPS_STATS" />
        <permission name="android.permission.REAL_GET_TASKS" />
        <permission name="android.permission.MODIFY_AUDIO_ROUTING" />
        <permission name="android.permission.UPDATE_DEVICE_STATS" />
        <permission name="android.permission.PACKAGE_USAGE_STATS" />
        <permission name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND" />
    </privapp-permissions>
</permissions>