[PATCH 2/2] This patch enables the pin number and type of pin to be sent to daemon to unlock the sim card.
Marcel Holtmann
marcel at holtmann.org
Thu Oct 29 07:00:50 PDT 2009
Hi Ryan,
> ---
> test/enable-sim | 18 ++++++++++++++++++
> 1 files changed, 18 insertions(+), 0 deletions(-)
> create mode 100755 test/enable-sim
>
> diff --git a/test/enable-sim b/test/enable-sim
> new file mode 100755
> index 0000000..bbfd34f
> --- /dev/null
> +++ b/test/enable-sim
> @@ -0,0 +1,18 @@
> +#!/usr/bin/python
> +
> +import dbus
> +import sys
> +
> +bus = dbus.SystemBus()
> +
> +manager = dbus.Interface(bus.get_object('org.ofono', '/'),
> + 'org.ofono.Manager')
> +
> +properties = manager.GetProperties()
> +
> +path = properties["Modems"][0]
> +
> +modem = dbus.Interface(bus.get_object('org.ofono', path),
> + 'org.ofono.SimManager')
> +
> +modem.EnterPin(sys.argv[1], sys.argv[2])
call this script enter-pin and have it check if a PIN is actually
required.
Regards
Marcel
More information about the ofono
mailing list