summaryrefslogtreecommitdiff
path: root/permissionsstandalone/src/main/java/foundation
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2022-11-06 18:19:17 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2022-11-06 18:19:17 +0000
commit99b27efb59ba642bfca0c6fbabfaa2c6631e15b9 (patch)
treec55aed6119dff29a84d7120bedf88e2df1775597 /permissionsstandalone/src/main/java/foundation
parent9701ef06a47560ca429f1e7fffd0958b376ec628 (diff)
parentfdeecefd34c00b225bd58f6cc7135a95e21728f1 (diff)
Merge branch '5561-name_the_vpn_already_running' into 'main'
5561: display name of other VPNrunning always on. See merge request e/os/advanced-privacy!96
Diffstat (limited to 'permissionsstandalone/src/main/java/foundation')
-rw-r--r--permissionsstandalone/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt12
1 files changed, 7 insertions, 5 deletions
diff --git a/permissionsstandalone/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt b/permissionsstandalone/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt
index d32cada..98ebdc3 100644
--- a/permissionsstandalone/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt
+++ b/permissionsstandalone/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt
@@ -18,15 +18,13 @@
package foundation.e.privacymodules.permissions
import android.content.Context
-import android.os.Build
-import android.provider.Settings
import foundation.e.privacymodules.permissions.data.AppOpModes
import foundation.e.privacymodules.permissions.data.ApplicationDescription
/**
* Implements [IPermissionsPrivacyModule] using only API authorized on the PlayStore.
*/
-class PermissionsPrivacyModule(context: Context): APermissionsPrivacyModule(context) {
+class PermissionsPrivacyModule(context: Context) : APermissionsPrivacyModule(context) {
/**
* @see IPermissionsPrivacyModule.toggleDangerousPermission
* Return an ManualAction to go toggle manually the permission in the ap page of the settings.
@@ -34,8 +32,8 @@ class PermissionsPrivacyModule(context: Context): APermissionsPrivacyModule(cont
override fun toggleDangerousPermission(
appDesc: ApplicationDescription,
permissionName: String,
- grant: Boolean): Boolean = false
-
+ grant: Boolean
+ ): Boolean = false
override fun setAppOpMode(
appDesc: ApplicationDescription,
@@ -46,4 +44,8 @@ class PermissionsPrivacyModule(context: Context): APermissionsPrivacyModule(cont
override fun setVpnPackageAuthorization(packageName: String): Boolean {
return false
}
+
+ override fun getAlwaysOnVpnPackage(): String? {
+ return null
+ }
}