Merge "Remove the restricted user enforcement in getAppExclusionList" am: 11cf828984

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2220584

Change-Id: I1b2b35318e6b9450fa6d06d217854f12389bda82
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Chiachang Wang
2022-09-21 22:04:48 +00:00
committed by Automerger Merge Worker

View File

@@ -4185,8 +4185,6 @@ public class Vpn {
*/ */
@NonNull @NonNull
public synchronized List<String> getAppExclusionList(@NonNull String packageName) { public synchronized List<String> getAppExclusionList(@NonNull String packageName) {
enforceNotRestrictedUser();
final long oldId = Binder.clearCallingIdentity(); final long oldId = Binder.clearCallingIdentity();
try { try {
final byte[] bytes = getVpnProfileStore().get(getVpnAppExcludedForPackage(packageName)); final byte[] bytes = getVpnProfileStore().get(getVpnAppExcludedForPackage(packageName));