Merge "Remove the restricted user enforcement in getAppExclusionList" into tm-qpr-dev

This commit is contained in:
Chiachang Wang
2022-09-22 14:33:19 +00:00
committed by Android (Google) Code Review

View File

@@ -4182,8 +4182,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));