====== Grant reboot to proxysmart.apk ====== ==== Steps, briefly ==== * Plug in a phone to a PC * Grant permissions with ADB * Test Reboot in the App * Disconnect the phone ==== Prerequisites ==== * [[ https://proxysmart.org/files/proxysmart-android-agent/proxysmart-android-agent.apk |proxysmart.apk ]] is installed , version **1.0.6+** * Physical access to the phone and a PC ==== Granting reboot permissions ==== Guide: * If a phone is connected to a Google account, remove the account , otherwise adb command won’t let you reset the owner of the phone. Or factory reset the phone * Connect the phone to USB to a PC with Linux or Windows * Enable ADB in Phone’s developer settings. * If Linux, install adb: sudo apt install adb * If Windows, install adb : https://www.xda-developers.com/install-adb-windows-macos-linux/ * Make sure the command adb devices shows your phone * Make sure you can run commands e.g. ''adb shell id'' . During 1st attempt it will ask for ADB authorization on the phone, confirm it. * Grant permission to Proxysmart app (one line): > adb shell dpm set-device-owner com.allproxiessofts.proxysmart/.receivers.MyDeviceAdminReceiver * check result with command > adb shell dpm list-owners * expected output is: > 1 owner: > User 0: dmin=com.allproxiessofts.proxysmart/.receivers.MyDeviceAdminReceiver,DeviceOwner,Affiliated * open Proxysmart app * click allow reboot * If phone is rooted - click Root under reboot * If phone is not rooted - click NoRoot under reboot * this dialogue appears: {{:px_apk_autoreboot_dialogue1.png?200}} * click "Try Reboot" * The phone reboots * After the 1 minute reboot is finished, the App is started again. ==== Set periodic reboot ==== * Find this form in Proxysmart app : {{:px_apk_autoreboot_dialogue2.png?200}} * and set autoreboot e.g. 12h. * Click SAVE