Exemple #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")
Exemple #2
0
 def do_reboot():
     time.sleep(2)
     android.reboot()