Add "Android System" in per-app vpn

This commit is contained in:
yuhan6665
2020-08-08 23:48:26 -04:00
parent 17e7c62d53
commit 25ba455656
2 changed files with 4 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
android
com.android.chrome
com.google.android.googlequicksearchbox
com.google.android.apps.photos
@@ -193,4 +194,4 @@ tv.twitch.android.app
com.shanga.walli
com.whatsapp
com.wire
com.simplehabit.simplehabitapp
com.simplehabit.simplehabitapp

View File

@@ -16,7 +16,7 @@ object AppManagerUtil {
val apps = ArrayList<AppInfo>()
for (pkg in packages) {
if (!pkg.hasInternetPermission) continue
if (!pkg.hasInternetPermission && pkg.packageName != "android") continue
val applicationInfo = pkg.applicationInfo
@@ -40,4 +40,4 @@ object AppManagerUtil {
val permissions = requestedPermissions
return permissions?.any { it == Manifest.permission.INTERNET } ?: false
}
}
}