Always on and protection › Keep Android from stopping the VPN
Keep Android from stopping the VPN
Android may stop Amalgam in the background to save battery, and the VPN turns off with it.
- In Amalgam: Settings › Background activity › «Lift restriction». Android asks whether Amalgam may always run in the background — allow it.
- If you declined or no question appeared, lift the restriction by hand:
- Samsung: Settings › Apps › Amalgam › Battery › «Unrestricted». Faster: long-press the Amalgam icon › (i) › Battery.
- Android without a vendor skin (LineageOS and similar): Settings › Apps › Amalgam › «App battery usage» › «Unrestricted». Faster: long-press the icon › «App info».
- others: find Amalgam in the battery settings and choose the unrestricted option.
- On Samsung, also keep Amalgam from sleeping: Settings › Battery and device care › Battery › Background usage limits › «Never auto sleeping apps» › «Add apps» › tick Amalgam › «Add». In Amalgam, Settings › Background activity › «Open list» opens this list.
- Connect the VPN again.
If Amalgam is set to «Restricted» (on LineageOS this can follow Battery Manager's advice), the turn-off timer and the subscription refresh may not run.
If the connection dropped while the phone was asleep, Amalgam tries again: on schedule for the first few minutes, then after 5, 10 and 15 minutes, and at once when the network changes or the screen comes on.
If leak protection is on in Android's VPN settings, the phone has no network while the VPN is stopped. That is not a fault: the network comes back with the VPN.