From e4499c08e5728e0250495e7e439c2a3752c6955a Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Mon, 21 Aug 2023 08:44:52 +0200 Subject: [PATCH] Ask to disable always-on VPN If an Always-on VPN is already configured, Android will automatically deny the VPN request on first start --- .../emanuelef/remote_capture/activities/MainActivity.java | 5 +++-- app/src/main/res/values/strings.xml | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/emanuelef/remote_capture/activities/MainActivity.java b/app/src/main/java/com/emanuelef/remote_capture/activities/MainActivity.java index 47982b14..d869d0cf 100644 --- a/app/src/main/java/com/emanuelef/remote_capture/activities/MainActivity.java +++ b/app/src/main/java/com/emanuelef/remote_capture/activities/MainActivity.java @@ -709,9 +709,10 @@ public void startCapture() { if(!Prefs.isRootCaptureEnabled(mPrefs) && Utils.hasVPNRunning(this)) { new AlertDialog.Builder(this) + .setTitle(R.string.active_vpn_detected) .setMessage(R.string.disconnect_vpn_confirm) - .setPositiveButton(R.string.yes, (dialog, whichButton) -> doStartCaptureService(null)) - .setNegativeButton(R.string.no, (dialog, whichButton) -> {}) + .setPositiveButton(R.string.ok, (dialog, whichButton) -> doStartCaptureService(null)) + .setNegativeButton(R.string.cancel_action, (dialog, whichButton) -> {}) .show(); } else doStartCaptureService(null); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 11010827..77c87ffd 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -72,7 +72,7 @@ Source code Yes No - Could not set up the VPN + Could not set up the VPN. Ensure that Always-on VPN is disabled Could not find the "%1$s" app Stats Active connections @@ -261,7 +261,7 @@ Start the capture first Copied You can now use the purchased feature - Disconnect the active VPN app and continue? + Continuing will disconnect the active VPN Loading apps… Open drawer Close drawer @@ -365,7 +365,7 @@ The app does not employ any tracking, analytics or phoning-home anti-features\n\nHow can you be sure? Check out its privacy policy and its source code Country and ASN PCAPdroid can query a local database to determine the country of a remote server\n\nYou must first download the geolocation database from the app settings - PCAPdroid simulates a VPN in order to capture the network traffic without root.\n\nTo start the capture, you need to accept the VPN request in the next screen + PCAPdroid simulates a VPN in order to capture the network traffic without root.\n\nTo start the capture, you need to accept the VPN request in the next screen.\n\nNOTE: to proceed, disable any configured Always-on VPN from the Android settings Inspecting HTTP requests, responses and raw data is easy, thanks to the built-in decoders\n\nGot an encrypted connection? You can enable the TLS decryption to get the decrypted data With the integrated Firewall you can easily block Internet access to individual apps and domains\n\nCombine this with the built-in traffic visibility to get the ultimate tool to protect your privacy Enhance the security of your device with the malware detection feature\n\nBy using up-to-date blacklists, it can detect, block and alert malicious connections in real-time @@ -492,4 +492,5 @@ Live capture This connection will not be decrypted. Create a decryption rule to decrypt it TLS decryption is only applied to connections that match the configured rules. Do you want to create decryption rules now? + Active VPN detected