sing-box in proxy mode
Android runs one VPN at a time. In its proxy mode, sing-box runs without a VPN, and Datapavan can send your apps through it.
These steps assume sing-box already works for you as a VPN.
Turn on proxy mode
- Open the “Dashboard” tab.
- On the “Profiles” card, tap + and then “Create Manually”.
- Give it a name under “Name”, keep “Local”, and tap “Create”.
- Tap “JSON Editor”.
- Write the profile with no inbound of type “tun”, and with one inbound of type “mixed” whose “listen” is “127.0.0.1” and “listen_port” is 2080. Then save it.
- Tap “Start” to start.
Its proxy then listens on this phone at 127.0.0.1, port 2080.
Datapavan looks for its proxy at port 2080 only, so set that port even where your profile names another.
A remote profile shows only “JSON Viewer”: its content comes from its address and cannot be changed here. Make a local profile instead.
Then come back to Datapavan. It finds the proxy by itself and offers to send your apps through it.
A password for its proxy
Its proxy can ask for a user name and a password. Set the ones Datapavan shows when it finds the proxy. Then other apps on this phone cannot use it.
- In that “mixed” inbound, add “users” with a “username” and a “password”.
What it asks for
It asks to show notifications.
On Android 17 it asks for the local network permission. Datapavan does not need that for its proxy, which is on this phone.
Back to VPN mode
- Use a profile with an inbound of type “tun” again, or add one with “JSON Editor”. Then start it.
When sing-box runs as a VPN again, Android turns Datapavan’s VPN off: only one VPN runs at a time.
Read from the source code of sing-box, version 1.14.4.
Not yet tried with Datapavan.
The words in quotes are as that version shows them.
Where each word in quotes is in the source code of sing-box: