From 75f26cb8fb72bc5c609488bf6e51ce771226a1f2 Mon Sep 17 00:00:00 2001 From: Etienne Ruffieux Date: Wed, 22 Dec 2021 15:52:55 +0000 Subject: [PATCH] Migrating Bluetooth resources to Bluetooth module In order for the Bluetooth module to build as an apex all non-public resources must be located in the same package. Power usage configs are made system properties to enable android.internal.os to read them and still have per device overlays. All configs used only by the Bluetooth app are moved to the Bluetooth module. Vendor overlays will be updated once the migration is done. Tag: #feature Bug: 211570675 Test: build, manual Test: make RunSettingsRoboTests Test: Added and logged system properties in vendors Change-Id: I2b0134b97b687d6c7e96f7700be0c196168f0601 --- core/api/current.txt | 1 + core/res/res/values/config.xml | 68 ++++++++++----------------------- core/res/res/values/symbols.xml | 12 ------ 3 files changed, 21 insertions(+), 60 deletions(-) diff --git a/core/api/current.txt b/core/api/current.txt index dfdbd75cbafee..40bf6cacc5ce3 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -8642,6 +8642,7 @@ package android.bluetooth { method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.Set getBondedDevices(); method @Deprecated public static android.bluetooth.BluetoothAdapter getDefaultAdapter(); method public int getLeMaximumAdvertisingDataLength(); + method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getMaxConnectedAudioDevices(); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public String getName(); method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getProfileConnectionState(int); method public boolean getProfileProxy(android.content.Context, android.bluetooth.BluetoothProfile.ServiceListener, int); diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 2f334989b53af..ba647d7daa288 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -134,9 +134,6 @@ be sent during a change to the audio output device. --> true - - false - false @@ -404,10 +401,6 @@ - - 5 - @@ -1820,53 +1813,38 @@ 2000000 - + true - - true - - + false - - false - - - false - - - 0 - - - 0 - - + 0 - + 0 - + 0 - + 0 - - 5 - - - false - - - false - 600 @@ -2007,10 +1985,6 @@ com.android.stk - - true - 8.8.8.8 @@ -4141,8 +4115,6 @@ android.ext.services/android.ext.services.notification.Assistant - true - true diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 4db6499569b3a..590fcf46f373e 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -278,8 +278,6 @@ - - @@ -343,7 +341,6 @@ - @@ -417,9 +414,6 @@ - - - @@ -429,9 +423,6 @@ - - - @@ -450,7 +441,6 @@ - @@ -3782,8 +3772,6 @@ - -