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
This commit is contained in:
Devin Moore
2020-10-19 18:18:20 -07:00
parent ad33143837
commit b90e1e38fe

View File

@@ -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 */,