How To Manager Properly the Pin Lock State in Android RIL

I’m currently developing the native RIL (Radio Interface Layer) in Android 5 and 6 for a modem of mine. While adding the code to manage the Pin Lock State I faced a puzzling problem: no matter what I wrote in the native RIL library, the Pin Service State in the Settings GUI was always wrong. Time to go through the Java code…
Source: How To Manager Properly the Pin Lock State in Android RIL