Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a84ce0c5 authored by Chris Phoenix's avatar Chris Phoenix Committed by Yifan Hong
Browse files

gatekeeper HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934
Change-Id: Ie49c8cea290d328b2160f6012e7c143c49d535cc
parent bb5a8380
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -56,7 +56,7 @@ static const String16 DUMP_PERMISSION("android.permission.DUMP");
class GateKeeperProxy : public BnGateKeeperService {
class GateKeeperProxy : public BnGateKeeperService {
public:
public:
    GateKeeperProxy() {
    GateKeeperProxy() {
        hw_device = IGatekeeper::getService("gatekeeper");
        hw_device = IGatekeeper::getService();


        if (hw_device == nullptr) {
        if (hw_device == nullptr) {
            ALOGW("falling back to software GateKeeper");
            ALOGW("falling back to software GateKeeper");