[PATCH 2/2] This patch enables the pin number and type of pin to be sent to daemon to unlock the sim card.

Ryan M. Raasch ryan.raasch at gmail.com
Thu Oct 29 06:54:34 PDT 2009


---
 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])
-- 
1.6.4.GIT



More information about the ofono mailing list