Merge "SystemServer: Support deviceSpecificAudioService for ARC"
This commit is contained in:
commit
2112895bb4
@ -819,6 +819,9 @@ public final class SystemServer {
|
||||
boolean isWatch = context.getPackageManager().hasSystemFeature(
|
||||
PackageManager.FEATURE_WATCH);
|
||||
|
||||
boolean isArc = context.getPackageManager().hasSystemFeature(
|
||||
"org.chromium.arc");
|
||||
|
||||
boolean enableVrService = context.getPackageManager().hasSystemFeature(
|
||||
PackageManager.FEATURE_VR_MODE_HIGH_PERFORMANCE);
|
||||
|
||||
@ -1341,7 +1344,17 @@ public final class SystemServer {
|
||||
}
|
||||
|
||||
traceBeginAndSlog("StartAudioService");
|
||||
mSystemServiceManager.startService(AudioService.Lifecycle.class);
|
||||
if (!isArc) {
|
||||
mSystemServiceManager.startService(AudioService.Lifecycle.class);
|
||||
} else {
|
||||
String className = context.getResources()
|
||||
.getString(R.string.config_deviceSpecificAudioService);
|
||||
try {
|
||||
mSystemServiceManager.startService(className + "$Lifecycle");
|
||||
} catch (Throwable e) {
|
||||
reportWtf("starting " + className, e);
|
||||
}
|
||||
}
|
||||
traceEnd();
|
||||
|
||||
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BROADCAST_RADIO)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user