You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task/Issue URL: https://app.asana.com/0/1198194956794324/1208368538104397/f
### Description
Add detection for when the DNS blocks requests to domains that serve malware.
The library also calls back into JVM with the blocked domain, if the JVM callback is present
### Steps to test this PR
_Test_
- [x] checkout this branch and `cd` into the `android` folder
- [x] run `./gradlew assemble publishToMavenLocal`
- [x] go to the Android app repo, `develop` branch and apply the following patch
```diff
commit 40e3568897a31e8c603490f5f49a519773aff8c9
Author: Aitor Viana <[email protected]>
Date: Sun Jun 4 20:49:52 2023 -0400
Maven local use
diff --git a/build.gradle b/build.gradle
index de22b7abb..aee98799a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -42,6 +42,7 @@ allprojects {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
+ mavenLocal()
}
configurations.all {
resolutionStrategy.force 'org.objenesis:objenesis:2.6'
diff --git a/versions.properties b/versions.properties
index d092a0163..5f58ba46a 100644
--- a/versions.properties
+++ b/versions.properties
@@ -77,7 +77,7 @@ version.com.airbnb.android..lottie=5.2.0
version.com.android.installreferrer..installreferrer=2.2
-version.com.duckduckgo.netguard..netguard-android=1.6.12
+version.com.duckduckgo.netguard..netguard-android=1.7.0-SNAPSHOT
version.com.duckduckgo.synccrypto..sync-crypto-android=0.3.0
```
- [x] build Android app, `./gradlew assembleID`, install and run the app
- [x] enable the VPN
- [x] filter the logcat with `MID_RECORD_MALWARE_BLOCK` and another logcat with `tag:WireGuard/GoBackend/Write`
- [x] with VPN enabled, go to "vpn-malware.goduckgo.com"
- [x] verify `DNS malware was blocked for domain: vpn-malware.goduckgo.com. due to 'blocked:m' TXT record` log appears
- [x] verify `MID_RECORD_MALWARE_BLOCK method not found` error log appears
- [x] smoke test VPN and browsing
0 commit comments