Merge "Remove the restricted user enforcement in getAppExclusionList" am: 11cf828984 am: 5cbf834eef am: 344d20a308

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

Change-Id: Ie8ca8115c7ed74a72eb16017cece9f84d1bff07b
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:47:49 +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));