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

Commit f22e7387 authored by Charlie Wang's avatar Charlie Wang Committed by Android (Google) Code Review
Browse files

Merge "Allow media services to be used in isolation."

parents 6ad6c9d4 429ef826
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -344,7 +344,8 @@ void ResourceManagerService::instantiate() {
    std::shared_ptr<ResourceManagerService> service =
            ::ndk::SharedRefBase::make<ResourceManagerService>();
    binder_status_t status =
            AServiceManager_addService(service->asBinder().get(), getServiceName());
                        AServiceManager_addServiceWithAllowIsolated(
                        service->asBinder().get(), getServiceName(), /*allowIsolated=*/ true);
    if (status != STATUS_OK) {
        return;
    }
+4 −2
Original line number Diff line number Diff line
@@ -100,8 +100,10 @@ void ResourceObserverService::BinderDiedCallback(void* cookie) {
std::shared_ptr<ResourceObserverService> ResourceObserverService::instantiate() {
    std::shared_ptr<ResourceObserverService> observerService =
            ::ndk::SharedRefBase::make<ResourceObserverService>();
    binder_status_t status = AServiceManager_addService(observerService->asBinder().get(),
            ResourceObserverService::getServiceName());
    binder_status_t status = AServiceManager_addServiceWithAllowIsolated(
      observerService->asBinder().get(),ResourceObserverService::getServiceName(),
      /*allowIsolated=*/ true);

    if (status != STATUS_OK) {
        return nullptr;
    }