summaryrefslogtreecommitdiffhomepage
path: root/app/tools
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2019-12-15 00:35:28 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2019-12-20 11:26:33 +0100
commit90e2b66df719784a6c8f9e8673a14bb2861081fb (patch)
treec7d7edc17812a7d6b55663ef683ab2af774c0fd4 /app/tools
parentf9065c889da2322da9bdec89fcf514eac337d411 (diff)
Introduce TunnelToggleActivity
On Android 10, apps cannot start services when they're in the background. This means that starting VpnService from within QuickTileService when the app is not active ends badly. To mitigate this situation, we introduce a proxy activity of sorts that will handle starting VpnService for us. The activity is completely transparent and invisible, and does only four things: - Toggle the tunnel state - Request the Tile bound by QuickTileService to refresh its state - Handle any error that might have been thrown during toggle - Call finishAffinity() and go away Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
Diffstat (limited to 'app/tools')
0 files changed, 0 insertions, 0 deletions