Ejemplo n.º 1
0
def uninstall():
    cloudlog.warning("uninstalling")
    with open('/cache/recovery/command', 'w') as f:
        f.write('--wipe_data\n')
    # IPowerManager.reboot(confirm=false, reason="recovery", wait=true)
    android.reboot(reason="recovery")
Ejemplo n.º 2
0
 def do_reboot():
     time.sleep(2)
     android.reboot()