[PATCH] [RFC] Do the PIN check in SIMManager
Denis Kenzior
denkenz at gmail.com
Mon Sep 21 22:12:29 PDT 2009
Hi Andrew,
> And here's a version that implements most of what's specified in
> doc/sim-api.txt. There are two caveats: when you re-enable SIM PIN
Patch has been applied, thanks.
> authentication, you have to give the old password from before it was
> changed to "", i.e to disable and enable SIM PIN, do:
> SimManager.ChangePin("pin", "1234", "")
> SimManager.ChangePin("pin", "1234", "1234")
>
> rather than the more logical
>
> SimManager.ChangePin("pin", "1234", "")
> SimManager.ChangePin("pin, "", "1234)
>
> The other problem is that if changing the password succeeds but
> enabling authentiation fails, ChangePin still returns failure
I added LockPin and UnlockPin methods to take care of these two cases.
Regards,
-Denis
More information about the ofono
mailing list