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

Commit 86fc4f34 authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Don't block long time gettng system service

Test: run google/template/local --template:map test
      google/continuous/boot-successive --no-first-boot --successive-boot
      --boot-count 10 --granular-boot-info -f
      SystemServerTiming_StartServices,SystemServerTiming_StartAudioService

bug:72322854

Change-Id: Ie287e0a8f1ed10f9a535b489cef6f3db184e41cb
parent 7e3b57a2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
 */

#include <mutex>
#include <unistd.h>

#include <binder/ActivityManager.h>
#include <binder/Binder.h>
#include <binder/IServiceManager.h>
@@ -44,7 +46,7 @@ sp<IActivityManager> ActivityManager::getService()
                service = NULL;
                break;
            }
            sleep(1);
            usleep(25000);
        } else {
            service = interface_cast<IActivityManager>(binder);
            mService = service;