This is how the SDK unlocks the phone:
powerd = subprocess.Popen(["powerd-cli", "display", "on"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL) sessionBus = dbus.SessionBus() unityGreeter = sessionBus.get_object('com.canonical.UnityGreeter','/') unityGreeterIFace = dbus.Interface(unityGreeter,dbus_interface='com.canonical.UnityGreeter') unityGreeterIFace.HideGreeter() # run app and wait until its closed powerd.terminate()
This is how the SDK unlocks the phone:
powerd = subprocess. Popen([ "powerd- cli", "display", "on"],stdout= subprocess. DEVNULL, stderr= subprocess. DEVNULL) get_object( 'com.canonical. UnityGreeter' ,'/') rIFace = dbus.Interface( unityGreeter, dbus_interface= 'com.canonical. UnityGreeter' ) rIFace. HideGreeter( ) terminate( )
sessionBus = dbus.SessionBus()
unityGreeter = sessionBus.
unityGreete
unityGreete
# run app and wait until its closed
powerd.