Hmmmm, OK so much for my first theory regarding a race with the RIL_CONNECTED event.
Here's a new version with retry logic added to the GET_SIM_STATUS operation. This code gives up after ~20s, however I will discuss with some of the other guys the possibility of not capping the actual number of retries, but instead raising the interval between attempts at some point...
@Michael
Hmmmm, OK so much for my first theory regarding a race with the RIL_CONNECTED event.
Here's a new version with retry logic added to the GET_SIM_STATUS operation. This code gives up after ~20s, however I will discuss with some of the other guys the possibility of not capping the actual number of retries, but instead raising the interval between attempts at some point...