Merge "Use ILights.DESCRIPTOR to refer to AIDL HAL"

This commit is contained in:
Treehugger Robot
2020-11-06 20:27:15 +00:00
committed by Gerrit Code Review

View File

@@ -555,8 +555,8 @@ public class LightsService extends SystemService {
@Override
public synchronized ILights get() {
if (mInstance == null) {
IBinder binder = Binder.allowBlocking(ServiceManager.waitForDeclaredService(
"android.hardware.light.ILights/default"));
IBinder binder = Binder.allowBlocking(
ServiceManager.waitForDeclaredService(ILights.DESCRIPTOR + "/default"));
if (binder != null) {
mInstance = ILights.Stub.asInterface(binder);
try {