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

Commit b90e1e38 authored by Devin Moore's avatar Devin Moore
Browse files

Change error log to fatal when failing to register framework HALs

If the system server fails to register a framework HAL, it should be
treated as a fatal error.

Test: builds & boots on cuttlefish and flame devices
Change-Id: Ib7cf0d738be51c315f0936582d92ec70f19ce479
parent ad331438
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ static void android_server_SystemServer_startHidlServices(JNIEnv* env, jobject /

    sp<ISensorManager> sensorService = new SensorManager(vm);
    err = sensorService->registerAsService();
    ALOGE_IF(err != OK, "Cannot register %s: %d", ISensorManager::descriptor, err);
    LOG_ALWAYS_FATAL_IF(err != OK, "Cannot register %s: %d", ISensorManager::descriptor, err);

    sp<ISchedulingPolicyService> schedulingService = new SchedulingPolicyService();
    if (IServiceManager::Transport::HWBINDER ==
@@ -91,7 +91,7 @@ static void android_server_SystemServer_startHidlServices(JNIEnv* env, jobject /

    sp<IStats> statsHal = new StatsHal();
    err = statsHal->registerAsService();
    ALOGE_IF(err != OK, "Cannot register %s: %d", IStats::descriptor, err);
    LOG_ALWAYS_FATAL_IF(err != OK, "Cannot register %s: %d", IStats::descriptor, err);
}

static void android_server_SystemServer_initZygoteChildHeapProfiling(JNIEnv* /* env */,