[PATCH 2/2] This patch enables the pin number and type of pin to be sent to daemon to unlock the sim card.
Ryan Raasch
ryan.raasch at gmail.com
Thu Oct 29 07:17:00 PDT 2009
Marcel Holtmann wrote:
> 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.
>
No prob.
Thanks,
Ryan
> Regards
>
> Marcel
>
>
> _______________________________________________
> ofono mailing list
> ofono at ofono.org
> http://lists.ofono.org/listinfo/ofono
More information about the ofono
mailing list