ril: Change rild initial sequence to guarantee non-null function pointer before rild register its hidl service
am: 456df1bf43
Change-Id: I22ef08409bfcdbb052859f4aaada1f5f04a858c8
diff --git a/libril/ril_service.cpp b/libril/ril_service.cpp
index 47b0b9c..b8862dc 100644
--- a/libril/ril_service.cpp
+++ b/libril/ril_service.cpp
@@ -8500,6 +8500,9 @@
simCount = SIM_COUNT;
#endif
+ s_vendorFunctions = callbacks;
+ s_commands = commands;
+
configureRpcThreadpool(1, true /* callerWillJoin */);
for (int i = 0; i < simCount; i++) {
pthread_rwlock_t *radioServiceRwlockPtr = getRadioServiceRwlock(i);
@@ -8521,9 +8524,6 @@
ret = pthread_rwlock_unlock(radioServiceRwlockPtr);
assert(ret == 0);
}
-
- s_vendorFunctions = callbacks;
- s_commands = commands;
}
void rilc_thread_pool() {