Loading android/app/Android.bp +23 −0 Original line number Diff line number Diff line Loading @@ -143,6 +143,7 @@ android_app { jni_uses_platform_apis: true, libs: [ "app-compat-annotations", "framework-bluetooth-pre-jarjar", "framework-statsd.stubs.module_lib", "framework-tethering.stubs.module_lib", Loading @@ -161,6 +162,7 @@ android_app { "androidx.lifecycle_lifecycle-livedata", "androidx.room_room-runtime", "androidx.annotation_annotation", "bluetooth.change-ids", "bluetooth.mapsapi", "bluetooth-protos-lite", "com.android.vcard", Loading Loading @@ -197,6 +199,7 @@ android_app { "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "android.hardware.bluetooth.audio-V3-ndk", "bluetoothapk-platform-compat-config", ], apex_available: [ "com.android.btservices", Loading @@ -211,6 +214,26 @@ android_app { sdk_version: "module_current", } java_library { name: "bluetooth.change-ids", srcs: [ "src/com/android/bluetooth/ChangeIds.java" ], libs: [ "app-compat-annotations", ], apex_available: [ "com.android.btservices", ], min_sdk_version: "Tiramisu", sdk_version: "module_current", } platform_compat_config { name: "bluetoothapk-platform-compat-config", src: ":bluetooth.change-ids", } java_library { name: "bluetooth-proto-enums-java-gen", installable: false, Loading android/app/AndroidManifest.xml +2 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH"/> <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE" /> <uses-permission android:name="android.permission.MANAGE_APP_OPS_MODES"/> <uses-permission android:name="android.permission.MANAGE_COMPANION_DEVICES"/> <uses-permission android:name="android.permission.MANAGE_USERS"/> Loading @@ -51,6 +52,7 @@ <uses-permission android:name="android.permission.NFC_HANDOVER_STATUS"/> <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/> <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG" /> <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> <uses-permission android:name="android.permission.QUERY_AUDIO_STATE"/> <uses-permission android:name="android.permission.READ_CALL_LOG"/> Loading android/app/src/com/android/bluetooth/ChangeIds.java 0 → 100644 +32 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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. */ package com.android.bluetooth; import android.compat.annotation.ChangeId; import android.compat.annotation.EnabledSince; /** * All the {@link ChangeId} used for Bluetooth App. */ public class ChangeIds { /** * { Redacted } */ @ChangeId @EnabledSince(targetSdkVersion = android.os.Build.VERSION_CODES.UPSIDE_DOWN_CAKE) public static final long ENFORCE_CONNECT = 211757425L; } apex/permissions/com.android.bluetooth.xml +2 −0 Original line number Diff line number Diff line Loading @@ -23,12 +23,14 @@ <permission name="android.permission.CONTROL_INCALL_EXPERIENCE" /> <permission name="android.permission.INTERACT_ACROSS_USERS" /> <permission name="android.permission.INTERACT_ACROSS_USERS_FULL" /> <permission name="android.permission.LOG_COMPAT_CHANGE" /> <permission name="android.permission.MANAGE_USERS" /> <permission name="android.permission.MEDIA_CONTENT_CONTROL" /> <permission name="android.permission.MODIFY_AUDIO_ROUTING" /> <permission name="android.permission.MODIFY_PHONE_STATE" /> <permission name="android.permission.NFC_HANDOVER_STATUS" /> <permission name="android.permission.PACKAGE_USAGE_STATS" /> <permission name="android.permission.READ_COMPAT_CHANGE_CONFIG" /> <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE" /> <permission name="android.permission.REAL_GET_TASKS" /> <permission name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND" /> Loading Loading
android/app/Android.bp +23 −0 Original line number Diff line number Diff line Loading @@ -143,6 +143,7 @@ android_app { jni_uses_platform_apis: true, libs: [ "app-compat-annotations", "framework-bluetooth-pre-jarjar", "framework-statsd.stubs.module_lib", "framework-tethering.stubs.module_lib", Loading @@ -161,6 +162,7 @@ android_app { "androidx.lifecycle_lifecycle-livedata", "androidx.room_room-runtime", "androidx.annotation_annotation", "bluetooth.change-ids", "bluetooth.mapsapi", "bluetooth-protos-lite", "com.android.vcard", Loading Loading @@ -197,6 +199,7 @@ android_app { "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "android.hardware.bluetooth.audio-V3-ndk", "bluetoothapk-platform-compat-config", ], apex_available: [ "com.android.btservices", Loading @@ -211,6 +214,26 @@ android_app { sdk_version: "module_current", } java_library { name: "bluetooth.change-ids", srcs: [ "src/com/android/bluetooth/ChangeIds.java" ], libs: [ "app-compat-annotations", ], apex_available: [ "com.android.btservices", ], min_sdk_version: "Tiramisu", sdk_version: "module_current", } platform_compat_config { name: "bluetoothapk-platform-compat-config", src: ":bluetooth.change-ids", } java_library { name: "bluetooth-proto-enums-java-gen", installable: false, Loading
android/app/AndroidManifest.xml +2 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH"/> <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE" /> <uses-permission android:name="android.permission.MANAGE_APP_OPS_MODES"/> <uses-permission android:name="android.permission.MANAGE_COMPANION_DEVICES"/> <uses-permission android:name="android.permission.MANAGE_USERS"/> Loading @@ -51,6 +52,7 @@ <uses-permission android:name="android.permission.NFC_HANDOVER_STATUS"/> <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/> <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG" /> <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> <uses-permission android:name="android.permission.QUERY_AUDIO_STATE"/> <uses-permission android:name="android.permission.READ_CALL_LOG"/> Loading
android/app/src/com/android/bluetooth/ChangeIds.java 0 → 100644 +32 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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. */ package com.android.bluetooth; import android.compat.annotation.ChangeId; import android.compat.annotation.EnabledSince; /** * All the {@link ChangeId} used for Bluetooth App. */ public class ChangeIds { /** * { Redacted } */ @ChangeId @EnabledSince(targetSdkVersion = android.os.Build.VERSION_CODES.UPSIDE_DOWN_CAKE) public static final long ENFORCE_CONNECT = 211757425L; }
apex/permissions/com.android.bluetooth.xml +2 −0 Original line number Diff line number Diff line Loading @@ -23,12 +23,14 @@ <permission name="android.permission.CONTROL_INCALL_EXPERIENCE" /> <permission name="android.permission.INTERACT_ACROSS_USERS" /> <permission name="android.permission.INTERACT_ACROSS_USERS_FULL" /> <permission name="android.permission.LOG_COMPAT_CHANGE" /> <permission name="android.permission.MANAGE_USERS" /> <permission name="android.permission.MEDIA_CONTENT_CONTROL" /> <permission name="android.permission.MODIFY_AUDIO_ROUTING" /> <permission name="android.permission.MODIFY_PHONE_STATE" /> <permission name="android.permission.NFC_HANDOVER_STATUS" /> <permission name="android.permission.PACKAGE_USAGE_STATS" /> <permission name="android.permission.READ_COMPAT_CHANGE_CONFIG" /> <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE" /> <permission name="android.permission.REAL_GET_TASKS" /> <permission name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND" /> Loading