General Info ~~~~~~~~~~~~ * Avoid Android 12. It has very agressive mechanism that kills apps running in background. More info: https://github.com/termux/termux-app/issues/2366 * There is no APP , so Termux will be used (an app that emulates a Linux micro server). * No Android Root is needed. But it's nice to have it. How Android phones are connected to Proxysmart server. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ There can be these methods: Method 2.1. Android phones connected via USB tethering to Proxysmart server onsite. PRO: - we can enable ADB on phones and fix some issues when phone freezes or APPs stop working - phone can be controlled even if its MobileData goes off CON: - a lot of wires; - USB tethering tend to switch off (rarely but still) - buggy USB hubs Method 2.2. Android phones connected via MobileData to Proxysmart VPS in the cloud PRO: - no wires , no USB hubs, just wall chargers CON: - no way to control a phone if MobileData goes off - no ADB , so apps freeze can't be fixed Phone setup steps ~~~~~~~~~~~~~~~~~ Purging old things ================== Uninstall Macrodroid, Termux, Termux:Api, Termux:Boot Prepare phones: ============== If method 2.1: - connect phone to 4G - connect USB cable, enable USB Tethering ; https://www.quora.com/How-do-you-keep-USB-tethering-always-on If method 2.2 - connect phone to 4G Termux App ========== Install F-Droid https://f-droid.org/ Open F-Droid app, install Termux, Termux:Api, Termux:Boot. Run Termux:Boot, it will show up, then switch to Home screen. Long press Termux icon, INFO>Battery>set Unrestricted the same for Termux:Boot. Also for Termux & Termux:API, grant access to Location, SMS, CONTACTS, Calls. Open Termux, wait till it initializes if method 2.1 (USBTethering): Type in and press ENTER: curl modus.tanatos.org/pz/pz1 > pz; bash -x pz it will ask for these details, type in everything: imei if method 2.2 (MobileData>>VPS): VPS: IP of the VPS in the cloud VPS_PORT: 22 Type in and press ENTER: curl modus.tanatos.org/pz/pz2 > pz; bash -x pz it will ask for these details, type in everything: imei, VPS, VPS_PORT Expect big green DONE in the end. Macrodroid ========== Install Macrodroid from GooglePlay. long tap on Macrodroid app icon => Run in background=>yes . Open Macrodroid app, settings=> ignore battery optimizations 1. create a macro Trigger: catch notification: notification recieved: any app: contains: PX_RESET Then press OK. Action: vibrate Blip, Airplane ON, wait 2s, Airplane OFF Grant all permissions! (catch notification, assistent, etc). Save macro as IP-Reset Test trigger. It must vibrate and do Airplane on\off. 2. create a macro Trigger: Regular interval: 15 minutes Actions: Airplane off, Launch application: Termux Save as Autofix. (grant Overlay) Post Steps ========== Disable Wifi. Forget all WIFI networks. Reboot phone, after start-up (1-2 minute later) Termux will auto-start. Settings ======== Battery - select `performance` profile , disable battery savers. Test IP rotation ================ Open Termux app. Type in & press ENTER. bash ip_reset.md You will see how IP is changed + micro vibration.