InvizibleHelper

@Singleton
class InvizibleHelper @Inject constructor(context: Context)

Helper to integrate with InviZible Pro Tor SOCKS proxy.

InviZible does not expose a public Orbot-style STATUS broadcast or an exported service to start Tor from third-party apps. The supported pattern is:

  1. User enables Tor in InviZible (and optionally "Allow apps to use Internet via Tor").

  2. This app routes traffic through 127.0.0.1:<SOCKSPort> (default 9050).

  3. requestTorUi opens InviZible so the user can start Tor if it is not running.

Constructors

Link copied to clipboard
@Inject
constructor(context: Context)

Functions

Link copied to clipboard
suspend fun checkTorSocksHealthy(host: String = InvizibleConstants.LOOPBACK, port: Int = resolveSocksPort(), username: String? = null, password: String? = null, remoteDns: Boolean = true): SocksCheckResult
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Reads InviZible default SharedPreferences when accessible (same signing / debug builds may differ).

Link copied to clipboard

Opens InviZible — user must start Tor from the app UI or Quick Settings tile.

Link copied to clipboard