| commit | b992d21043024beb3f43dfd02d929f8830ee919d | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Fri Jul 25 04:37:05 2025 -0700 |
| committer | Android Build Coastguard Worker <[email protected]> | Fri Jul 25 04:37:05 2025 -0700 |
| tree | 94d5099f0718d2b356f113111985fc5277d2997f | |
| parent | 8d50e5f71faffbdbe3d93bc7903c9a93b7a75fae [diff] | |
| parent | 31b3b1c50a7542bcb69be8b8d9664a8b7f922201 [diff] |
Merge cherrypicks of ['googleplex-android-review.googlesource.com/33833389'] into sparse-13775243-L92100030014435199. SPARSE_CHANGE: I1ee7a09b7628a67dcb3502b29d99761bafd913b5 Change-Id: I014067ef7b430f5da7efe807125ea5d74a17856a
diff --git a/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java b/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java index 614b0df..015073c 100644 --- a/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java +++ b/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java
@@ -1126,6 +1126,9 @@ public boolean isSystem(String packageName, int uid) { long ident = Binder.clearCallingIdentity(); try { + if (SdkLevel.isAtLeastT() && Process.isSdkSandboxUid(uid)) { + return false; + } ApplicationInfo info = mContext.getPackageManager().getApplicationInfoAsUser( packageName, 0, UserHandle.getUserHandleForUid(uid)); return (info.flags & APP_INFO_FLAGS_SYSTEM_APP) != 0;