Enabling Apex in BT
Bug: 217736913 Test: Compile, bringup and test user journeys Change-Id: I3e796e3618ad9a077fa5e8ac387e314e896d1051
This commit is contained in:
parent
b031e08104
commit
293ed88b2f
@ -132,7 +132,6 @@ filegroup {
|
||||
":installd_aidl",
|
||||
":libaudioclient_aidl",
|
||||
":libbinder_aidl",
|
||||
":libbluetooth-binder-aidl",
|
||||
":libcamera_client_aidl",
|
||||
":libcamera_client_framework_aidl",
|
||||
":libupdate_engine_aidl",
|
||||
@ -273,7 +272,6 @@ java_defaults {
|
||||
defaults: ["framework-aidl-export-defaults"],
|
||||
srcs: [
|
||||
":framework-non-updatable-sources",
|
||||
":framework-bluetooth-sources", // TODO(b/214988855) : Remove once framework-bluetooth jar is ready
|
||||
"core/java/**/*.logtags",
|
||||
":apex-info-list",
|
||||
],
|
||||
@ -287,6 +285,7 @@ java_defaults {
|
||||
"frameworks/native/libs/permission/aidl",
|
||||
// TODO: remove when moved to the below package
|
||||
"frameworks/base/packages/ConnectivityT/framework-t/aidl-export",
|
||||
"packages/modules/Bluetooth/system/binder",
|
||||
"packages/modules/Connectivity/framework/aidl-export",
|
||||
"packages/modules/Media/apex/aidl/stable",
|
||||
"hardware/interfaces/graphics/common/aidl",
|
||||
@ -545,8 +544,9 @@ stubs_defaults {
|
||||
"frameworks/native/libs/permission/aidl",
|
||||
// TODO: remove when moved to the below package
|
||||
"frameworks/base/packages/ConnectivityT/framework-t/aidl-export",
|
||||
"packages/modules/Media/apex/aidl/stable",
|
||||
"packages/modules/Bluetooth/system/binder",
|
||||
"packages/modules/Connectivity/framework/aidl-export",
|
||||
"packages/modules/Media/apex/aidl/stable",
|
||||
"hardware/interfaces/graphics/common/aidl",
|
||||
],
|
||||
},
|
||||
@ -584,6 +584,7 @@ stubs_defaults {
|
||||
name: "module-classpath-stubs-defaults",
|
||||
aidl: {
|
||||
include_dirs: [
|
||||
"packages/modules/Bluetooth/system/binder",
|
||||
"packages/modules/Connectivity/framework/aidl-export",
|
||||
"packages/modules/Media/apex/aidl/stable",
|
||||
],
|
||||
|
@ -203,8 +203,6 @@ func createMergedSystemStubs(ctx android.LoadHookContext, modules []string) {
|
||||
func createMergedFrameworkImpl(ctx android.LoadHookContext, modules []string) {
|
||||
// This module is for the "framework-all" module, which should not include the core libraries.
|
||||
modules = removeAll(modules, core_libraries_modules)
|
||||
// TODO(b/214988855): remove the line below when framework-bluetooth has an impl jar.
|
||||
modules = remove(modules, "framework-bluetooth")
|
||||
props := libraryProps{}
|
||||
props.Name = proptools.StringPtr("all-framework-module-impl")
|
||||
props.Static_libs = transformArray(modules, "", ".impl")
|
||||
|
@ -59,6 +59,10 @@ platform_bootclasspath {
|
||||
apex: "com.android.auxiliary",
|
||||
module: "com.android.auxiliary-bootclasspath-fragment",
|
||||
},
|
||||
{
|
||||
apex: "com.android.bluetooth",
|
||||
module: "com.android.bluetooth-bootclasspath-fragment",
|
||||
},
|
||||
{
|
||||
apex: "com.android.conscrypt",
|
||||
module: "com.android.conscrypt-bootclasspath-fragment",
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,6 @@
|
||||
Landroid/app/IInstrumentationWatcher$Stub;->asInterface(Landroid/os/IBinder;)Landroid/app/IInstrumentationWatcher;
|
||||
Landroid/app/ISearchManager$Stub;-><init>()V
|
||||
Landroid/app/IUiModeManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/app/IUiModeManager;
|
||||
Landroid/bluetooth/IBluetooth$Stub;-><init>()V
|
||||
Landroid/bluetooth/IBluetoothA2dp$Stub;-><init>()V
|
||||
Landroid/content/IIntentReceiver$Stub;->asInterface(Landroid/os/IBinder;)Landroid/content/IIntentReceiver;
|
||||
Landroid/content/IIntentSender$Stub;->asInterface(Landroid/os/IBinder;)Landroid/content/IIntentSender;
|
||||
Landroid/os/storage/IObbActionListener$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/storage/IObbActionListener;
|
||||
|
@ -3,9 +3,6 @@ Landroid/app/IActivityManager$Stub$Proxy;->updatePersistentConfiguration(Landroi
|
||||
Landroid/app/IActivityManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/app/IActivityManager;
|
||||
Landroid/app/IInstrumentationWatcher$Stub;-><init>()V
|
||||
Landroid/app/INotificationManager$Stub;->TRANSACTION_enqueueNotificationWithTag:I
|
||||
Landroid/bluetooth/IBluetooth$Stub$Proxy;->getConnectionState(Landroid/bluetooth/BluetoothDevice;)I
|
||||
Landroid/bluetooth/IBluetooth$Stub;->TRANSACTION_enable:I
|
||||
Landroid/bluetooth/IBluetoothManager$Stub;->TRANSACTION_enable:I
|
||||
Landroid/companion/ICompanionDeviceDiscoveryService$Stub;-><init>()V
|
||||
Landroid/content/om/IOverlayManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/content/om/IOverlayManager;
|
||||
Landroid/content/pm/IPackageManager$Stub;->TRANSACTION_getApplicationInfo:I
|
||||
|
@ -62,19 +62,6 @@ Landroid/app/job/IJobService$Stub;-><init>()V
|
||||
Landroid/app/job/IJobService$Stub;->asInterface(Landroid/os/IBinder;)Landroid/app/job/IJobService;
|
||||
Landroid/app/trust/ITrustManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Landroid/app/usage/IUsageStatsManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/app/usage/IUsageStatsManager;
|
||||
Landroid/bluetooth/IBluetooth$Stub$Proxy;->getAddress()Ljava/lang/String;
|
||||
Landroid/bluetooth/IBluetooth$Stub;->asInterface(Landroid/os/IBinder;)Landroid/bluetooth/IBluetooth;
|
||||
Landroid/bluetooth/IBluetoothA2dp$Stub;->asInterface(Landroid/os/IBinder;)Landroid/bluetooth/IBluetoothA2dp;
|
||||
Landroid/bluetooth/IBluetoothCallback$Stub;-><init>()V
|
||||
Landroid/bluetooth/IBluetoothGattCallback$Stub;-><init>()V
|
||||
Landroid/bluetooth/IBluetoothGattCallback$Stub;->asInterface(Landroid/os/IBinder;)Landroid/bluetooth/IBluetoothGattCallback;
|
||||
Landroid/bluetooth/IBluetoothHeadset$Stub;->asInterface(Landroid/os/IBinder;)Landroid/bluetooth/IBluetoothHeadset;
|
||||
Landroid/bluetooth/IBluetoothHidDeviceCallback$Stub;-><init>()V
|
||||
Landroid/bluetooth/IBluetoothManager$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Landroid/bluetooth/IBluetoothManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/bluetooth/IBluetoothManager;
|
||||
Landroid/bluetooth/IBluetoothManagerCallback$Stub;-><init>()V
|
||||
Landroid/bluetooth/IBluetoothPbap$Stub;->asInterface(Landroid/os/IBinder;)Landroid/bluetooth/IBluetoothPbap;
|
||||
Landroid/bluetooth/IBluetoothStateChangeCallback$Stub;-><init>()V
|
||||
Landroid/content/IClipboard$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
Landroid/content/IClipboard$Stub;->asInterface(Landroid/os/IBinder;)Landroid/content/IClipboard;
|
||||
Landroid/content/IContentService$Stub$Proxy;-><init>(Landroid/os/IBinder;)V
|
||||
|
@ -88,7 +88,6 @@ filegroup {
|
||||
":services.appwidget-sources",
|
||||
":services.autofill-sources",
|
||||
":services.backup-sources",
|
||||
":services.bluetooth-sources", // TODO(b/214988855) : Remove once apex/service-bluetooth jar is ready
|
||||
":backuplib-sources",
|
||||
":services.cloudsearch-sources",
|
||||
":services.companion-sources",
|
||||
|
@ -103,7 +103,6 @@ java_library_static {
|
||||
":android.hardware.biometrics.face-V2-java-source",
|
||||
":statslog-art-java-gen",
|
||||
":statslog-contexthub-java-gen",
|
||||
":services.bluetooth-sources", // TODO(b/214988855) : Remove once apex is ready
|
||||
":services.core-sources",
|
||||
":services.core.protologsrc",
|
||||
":dumpstate_aidl",
|
||||
|
@ -415,10 +415,12 @@ public final class SystemServer implements Dumpable {
|
||||
private static final String UWB_APEX_SERVICE_JAR_PATH =
|
||||
"/apex/com.android.uwb/javalib/service-uwb.jar";
|
||||
private static final String UWB_SERVICE_CLASS = "com.android.server.uwb.UwbService";
|
||||
private static final String SAFETY_CENTER_SERVICE_CLASS =
|
||||
"com.android.safetycenter.SafetyCenterService";
|
||||
private static final String BLUETOOTH_APEX_SERVICE_JAR_PATH =
|
||||
"/apex/com.android.bluetooth/javalib/service-bluetooth.jar";
|
||||
private static final String BLUETOOTH_SERVICE_CLASS =
|
||||
"com.android.server.bluetooth.BluetoothService";
|
||||
private static final String SAFETY_CENTER_SERVICE_CLASS =
|
||||
"com.android.safetycenter.SafetyCenterService";
|
||||
|
||||
private static final String SUPPLEMENTALPROCESS_SERVICE_CLASS =
|
||||
"com.android.server.supplementalprocess.SupplementalProcessManagerService$Lifecycle";
|
||||
@ -1626,7 +1628,8 @@ public final class SystemServer implements Dumpable {
|
||||
Slog.i(TAG, "No Bluetooth Service (Bluetooth Hardware Not Present)");
|
||||
} else {
|
||||
t.traceBegin("StartBluetoothService");
|
||||
mSystemServiceManager.startService(BLUETOOTH_SERVICE_CLASS);
|
||||
mSystemServiceManager.startServiceFromJar(BLUETOOTH_SERVICE_CLASS,
|
||||
BLUETOOTH_APEX_SERVICE_JAR_PATH);
|
||||
t.traceEnd();
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,6 @@ android_test {
|
||||
"test-apps/JobTestApp/src/**/*.java",
|
||||
|
||||
"test-apps/SuspendTestApp/src/**/*.java",
|
||||
":service-bluetooth-tests-sources", // TODO(b/214988855) : Remove once framework-bluetooth jar is ready
|
||||
],
|
||||
static_libs: [
|
||||
"frameworks-base-testutils",
|
||||
|
Loading…
x
Reference in New Issue
Block a user