Fix app notification toggle

Test: CTS Verifier 'Notification Listener Test'
Bug: 222372861
Change-Id: I060b8b9bf7b749736596676a3d98cd609dc65846
This commit is contained in:
Julia Reynolds
2022-03-08 09:18:56 -05:00
parent 40caac3c9e
commit 856cc0da65

View File

@@ -362,7 +362,8 @@ abstract public class NotificationSettings extends DashboardFragment {
final String p = packages[i];
if (pkg.equals(p)) {
try {
return mPm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES);
return mPm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES
| PackageManager.GET_PERMISSIONS);
} catch (NameNotFoundException e) {
Log.w(TAG, "Failed to load package " + pkg, e);
}