The idea is to be able to "automatically" enter SIM PIN.
Automatically means without end-user action on DBUS.

When Ofono (src/sim.c) discovers that a SIM needs a PIN code,
it will call all SIM password provision plugins registered to try
to get current SIM needed password. 
If it gets a password, it will try to enter it without waiting for
end-user to call EnterPin method. Of course, this is tried only once to
avoid blocking SIM cards.

I have also written a SIM password plugin based on a key-value file.

Christophe Ronco (2):
  provision: add SIM PIN provisionning
  provision: add SIM PIN provisionning plugin

 Makefile.am                    |   9 ++-
 include/sim-passwd-provision.h |  41 +++++++++++
 plugins/sim-file-provision.c   | 156 +++++++++++++++++++++++++++++++++++++++++
 src/ofono.h                    |   5 ++
 src/sim-password-provision.c   |  80 +++++++++++++++++++++
 src/sim.c                      |  35 +++++++++
 6 files changed, 324 insertions(+), 2 deletions(-)
 create mode 100644 include/sim-passwd-provision.h
 create mode 100644 plugins/sim-file-provision.c
 create mode 100644 src/sim-password-provision.c

-- 
2.11.0

_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to