This is extremely useful for android privacy when using Orbot’s Full-Device VPN with Tor Browser(full device vpn mode blocks tor browser from connecting unless you do this).
Tor Browser fails to connect while Orbot is running in Full-Device VPN mode due to Tor browser not being on the VPN lockdown whitelist, use this ADB workaround to get it working.
Requirements:
- Developer Options enabled.
- USB debugging enabled.
- A computer with ADB installed.
- Orbot configured in Full Device VPN mode.
Instructions:
- Connect your Android device to your computer via USB and authorize USB debugging.
- Check your existing VPN lockdown allowlist:
bashSave any existing entries so you can preserve them.1
adb shell settings get secure always_on_vpn_lockdown_whitelist
- Set the allowlist to Orbot’s bypass packages:
bashIf you have existing entries, append them as comma-separated values.1
adb shell settings put secure always_on_vpn_lockdown_whitelist org.torproject.torbrowser_alpha,org.torproject.torbrowser,org.onionshare.android,org.onionshare.android.fdroid,org.briarproject.briar.android,im.cwtch.flwtch
- Verify the updated allowlist:
bash1
adb shell settings get secure always_on_vpn_lockdown_whitelist
- Reboot your device through ADB:
bashImportant: Reboot using ADB rather than Android’s power menu. A normal restart may cause Android to reset the modified allowlist.1
adb shell reboot
Result: Tor Browser can establish its own Tor connection while your other apps remain subject to Orbot’s VPN lockdown.
Note: Allowlisted apps can bypass Android’s VPN lockdown. Changing Always-on VPN or lockdown settings may reset the allowlist, requiring you to repeat this procedure.