summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheScarastic <warabhishek@e.email>2023-03-02 09:21:56 +0000
committerTheScarastic <warabhishek@e.email>2023-03-15 11:07:06 +0000
commitb416e206f2ed36bf27f049b3ebfb18924b4c7e56 (patch)
treec618071cc55d098e6ea21dccc95d9ccab0158c94
parent6a4fadb5d14a0fe2a53368143f45a5d43f07f048 (diff)
AdvancedPrivacy: Add support for sdk 33
-rw-r--r--permissionse/libs/hidden-apis-stub/src/main/java/android/app/AppOpsManager.java8
-rw-r--r--permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/PackageManager.java12
-rw-r--r--permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/UserInfo.java4
-rw-r--r--permissionse/libs/hidden-apis-stub/src/main/java/android/net/VpnManager.java12
-rw-r--r--permissionse/libs/hidden-apis-stub/src/main/java/android/os/UserManager.java8
-rw-r--r--permissionse/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt6
6 files changed, 25 insertions, 25 deletions
diff --git a/permissionse/libs/hidden-apis-stub/src/main/java/android/app/AppOpsManager.java b/permissionse/libs/hidden-apis-stub/src/main/java/android/app/AppOpsManager.java
index 0343312..753b456 100644
--- a/permissionse/libs/hidden-apis-stub/src/main/java/android/app/AppOpsManager.java
+++ b/permissionse/libs/hidden-apis-stub/src/main/java/android/app/AppOpsManager.java
@@ -30,8 +30,8 @@ public class AppOpsManager {
@TargetApi(29)
@DeprecatedSinceApi(
- api = 33,
- message = "Check disponibility in SDK33"
+ api = 34,
+ message = "Check disponibility in SDK34"
)
public static int strOpToOp(@NonNull String op) {
return 0;
@@ -39,8 +39,8 @@ public class AppOpsManager {
@TargetApi(29)
@DeprecatedSinceApi(
- api = 33,
- message = "Check disponibility in SDK33"
+ api = 34,
+ message = "Check disponibility in SDK34"
)
public void setMode(int code, int uid, String packageName, int mode) {}
}
diff --git a/permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/PackageManager.java b/permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/PackageManager.java
index b7209ef..3f232bf 100644
--- a/permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/PackageManager.java
+++ b/permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/PackageManager.java
@@ -34,8 +34,8 @@ public abstract class PackageManager {
@TargetApi(29)
@DeprecatedSinceApi(
- api = 33,
- message = "Check disponibility in SDK33"
+ api = 34,
+ message = "Check disponibility in SDK34"
)
@RequiresPermission("android.permission.GRANT_RUNTIME_PERMISSIONS")
public abstract void grantRuntimePermission(
@@ -46,8 +46,8 @@ public abstract class PackageManager {
@TargetApi(29)
@DeprecatedSinceApi(
- api = 33,
- message = "Check disponibility in SDK33"
+ api = 34,
+ message = "Check disponibility in SDK34"
)
@RequiresPermission("android.permission.REVOKE_RUNTIME_PERMISSIONS")
public abstract void revokeRuntimePermission(
@@ -58,8 +58,8 @@ public abstract class PackageManager {
@TargetApi(29)
@DeprecatedSinceApi(
- api = 33,
- message = "Check disponibility in SDK33"
+ api = 34,
+ message = "Check disponibility in SDK34"
)
@RequiresPermission("android.permission.INTERACT_ACROSS_USERS_FULL")
public abstract List<PackageInfo> getInstalledPackagesAsUser(int flags, int userId);
diff --git a/permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/UserInfo.java b/permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/UserInfo.java
index 9418197..28a3732 100644
--- a/permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/UserInfo.java
+++ b/permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/UserInfo.java
@@ -27,8 +27,8 @@ public class UserInfo {
@TargetApi(29)
@DeprecatedSinceApi(
- api = 33,
- message = "Check availability in SDK33"
+ api = 34,
+ message = "Check availability in SDK34"
)
public UserHandle getUserHandle() {
return null;
diff --git a/permissionse/libs/hidden-apis-stub/src/main/java/android/net/VpnManager.java b/permissionse/libs/hidden-apis-stub/src/main/java/android/net/VpnManager.java
index bdb9e95..dab2173 100644
--- a/permissionse/libs/hidden-apis-stub/src/main/java/android/net/VpnManager.java
+++ b/permissionse/libs/hidden-apis-stub/src/main/java/android/net/VpnManager.java
@@ -30,8 +30,8 @@ public class VpnManager {
@TargetApi(31)
@DeprecatedSinceApi(
- api = 33,
- message = "Check disponibility in SDK33"
+ api = 34,
+ message = "Check disponibility in SDK34"
)
public boolean prepareVpn(
@Nullable String oldPackage,
@@ -43,8 +43,8 @@ public class VpnManager {
@TargetApi(31)
@DeprecatedSinceApi(
- api = 33,
- message = "Check disponibility in SDK33"
+ api = 34,
+ message = "Check disponibility in SDK34"
)
public void setVpnPackageAuthorization(
String packageName,
@@ -54,8 +54,8 @@ public class VpnManager {
@TargetApi(31)
@DeprecatedSinceApi(
- api = 33,
- message = "Check disponibility in SDK33"
+ api = 34,
+ message = "Check disponibility in SDK34"
)
@RequiresPermission("android.permission.CONTROL_ALWAYS_ON_VPN")
public String getAlwaysOnVpnPackageForUser(int userId) {
diff --git a/permissionse/libs/hidden-apis-stub/src/main/java/android/os/UserManager.java b/permissionse/libs/hidden-apis-stub/src/main/java/android/os/UserManager.java
index d2e80d4..be6797e 100644
--- a/permissionse/libs/hidden-apis-stub/src/main/java/android/os/UserManager.java
+++ b/permissionse/libs/hidden-apis-stub/src/main/java/android/os/UserManager.java
@@ -28,8 +28,8 @@ public class UserManager {
@TargetApi(29)
@DeprecatedSinceApi(
- api = 33,
- message = "Check availability in SDK33"
+ api = 34,
+ message = "Check availability in SDK34"
)
@RequiresPermission("android.permission.MANAGE_USERS")
public List<UserInfo> getProfiles(int userHandle) {
@@ -38,8 +38,8 @@ public class UserManager {
@TargetApi(29)
@DeprecatedSinceApi(
- api = 33,
- message = "Check availability in SDK33"
+ api = 34,
+ message = "Check availability in SDK34"
)
@RequiresPermission("android.permission.MANAGE_USERS")
public boolean isManagedProfile(int userId) {
diff --git a/permissionse/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt b/permissionse/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt
index c2e3e2c..cde4afb 100644
--- a/permissionse/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt
+++ b/permissionse/src/main/java/foundation/e/privacymodules/permissions/PermissionsPrivacyModule.kt
@@ -92,7 +92,7 @@ class PermissionsPrivacyModule(context: Context) : APermissionsPrivacyModule(con
return when (Build.VERSION.SDK_INT) {
29 -> setVpnPackageAuthorizationSDK29(packageName)
30 -> setVpnPackageAuthorizationSDK30(packageName)
- 31, 32 -> setVpnPackageAuthorizationSDK32(packageName)
+ 31, 32, 33 -> setVpnPackageAuthorizationSDK32(packageName)
else -> {
Log.e("Permissions-e", "Bad android sdk version")
false
@@ -203,7 +203,7 @@ class PermissionsPrivacyModule(context: Context) : APermissionsPrivacyModule(con
override fun getAlwaysOnVpnPackage(): String? {
return when (Build.VERSION.SDK_INT) {
29, 30 -> getAlwaysOnVpnPackageSDK29()
- 31, 32 -> getAlwaysOnVpnPackageSDK32()
+ 31, 32, 33 -> getAlwaysOnVpnPackageSDK32()
else -> {
Log.e("Permissions-e", "Bad android sdk version")
null
@@ -239,7 +239,7 @@ class PermissionsPrivacyModule(context: Context) : APermissionsPrivacyModule(con
override fun setBlockable(notificationChannel: NotificationChannel) {
when (Build.VERSION.SDK_INT) {
29 -> notificationChannel.setBlockableSystem(true)
- 30, 31, 32 -> notificationChannel.setBlockable(true)
+ 30, 31, 32, 33 -> notificationChannel.setBlockable(true)
else -> {
Log.e("Permissions-e", "Bad android sdk version")
}