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

Commit bad7588c authored by Steven Moreland's avatar Steven Moreland
Browse files

servicemanager: log isolated app violation

Bug: 286851628
Test: servicemanager_test
Change-Id: I3e95ce54418f36918b35909b986be3a23a55ac57
parent 59a0fbfa
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -291,6 +291,8 @@ sp<IBinder> ServiceManager::tryGetService(const std::string& name, bool startIfN
        service = &(it->second);

        if (!service->allowIsolated && is_multiuser_uid_isolated(ctx.uid)) {
            LOG(WARNING) << "Isolated app with UID " << ctx.uid << " requested '" << name
                         << "', but the service is not allowed for isolated apps.";
            return nullptr;
        }
        out = service->binder;