summaryrefslogtreecommitdiff
path: root/permissionse/libs/hidden-apis-stub/src/main
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-04-21 06:25:55 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-04-21 06:25:55 +0000
commitef669659db8c9fbab2a84dcbc8f3e99411eb1201 (patch)
tree4785f6b44d121f95c840020441687bce5777a44f /permissionse/libs/hidden-apis-stub/src/main
parent2df577ca97a674a4bd3875dc5137bb44df2c03ef (diff)
parent6068cebe972e000872e4780dd9f75680a3abf073 (diff)
Merge branch '6556-use_pname_for_trackers_2' into 'main'
6556: add AdvancedPrivacy App Id in trackers stats to avoid appUid aliasing See merge request e/os/advanced-privacy!122
Diffstat (limited to 'permissionse/libs/hidden-apis-stub/src/main')
-rw-r--r--permissionse/libs/hidden-apis-stub/src/main/java/android/content/pm/PackageManager.java27
1 files changed, 27 insertions, 0 deletions
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 3f232bf..c6232ce 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
@@ -26,11 +26,26 @@ import androidx.annotation.NonNull;
import androidx.annotation.RequiresPermission;
import java.util.List;
+import android.util.AndroidException;
// Stub based on:
// https://gitlab.e.foundation/e/os/android_frameworks_base/-/blob/[SDK_VERSION]/core/java/android/content/pm/PackageManager.java
public abstract class PackageManager {
+ @TargetApi(29)
+ @DeprecatedSinceApi(
+ api = 34,
+ message = "Check availability in SDK34"
+ )
+ public static class NameNotFoundException extends AndroidException {
+ public NameNotFoundException() {
+ }
+
+ public NameNotFoundException(String name) {
+ super(name);
+ }
+ }
+
@TargetApi(29)
@DeprecatedSinceApi(
@@ -58,6 +73,18 @@ public abstract class PackageManager {
@TargetApi(29)
@DeprecatedSinceApi(
+ api = 33,
+ message = "@deprecated Use {@link #getApplicationInfoAsUser(String, ApplicationInfoFlags, int)} instead."
+ )
+ public abstract ApplicationInfo getApplicationInfoAsUser(
+ @NonNull String packageName,
+ int flags,
+ int userId
+ ) throws NameNotFoundException;
+
+
+ @TargetApi(29)
+ @DeprecatedSinceApi(
api = 34,
message = "Check disponibility in SDK34"
)