Merge "Enabling Apex in BT" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
82c71dd74d
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user