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

Commit 494fefb8 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 10368302 from 73b983a7 to udc-qpr1-release

Change-Id: I00b5dacf4dc1a569d51161f9c71badb1d03937d4
parents 0c4852d8 73b983a7
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -74,9 +74,13 @@ class GateKeeperProxy : public BnGateKeeperService {
  public:
    GateKeeperProxy() {
        clear_state_if_needed_done = false;
        hw_device = IGatekeeper::getService();
        ::ndk::SpAIBinder ks2Binder(AServiceManager_getService(gatekeeperServiceName));
        if (AServiceManager_isDeclared(gatekeeperServiceName)) {
            ::ndk::SpAIBinder ks2Binder(AServiceManager_waitForService(gatekeeperServiceName));
            aidl_hw_device = AidlIGatekeeper::fromBinder(ks2Binder);
        }
        if (!aidl_hw_device) {
            hw_device = IGatekeeper::getService();
        }
        is_running_gsi = android::base::GetBoolProperty(android::gsi::kGsiBootedProp, false);

        if (!aidl_hw_device && !hw_device) {