diff options
| author | 2016-02-18 08:31:35 -0500 | |
|---|---|---|
| committer | 2016-02-18 09:05:57 -0500 | |
| commit | f5df55302911d6122f742a44d6685ebb5ec5b78c (patch) | |
| tree | 90e826df8e10f1c6d9afb4c2f28c249896cf72bf | |
| parent | d4ea741d66c4e43e5c782774981fae3f5696809f (diff) | |
Get applicationinfo as user.
Bug: 27237907
Change-Id: I84a07f035904c42f535ef30f2950788f5ac50aba
| -rw-r--r-- | services/core/java/com/android/server/notification/NotificationRecord.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationRecord.java b/services/core/java/com/android/server/notification/NotificationRecord.java index 12c70a3fa83d..2ca5534b3310 100644 --- a/services/core/java/com/android/server/notification/NotificationRecord.java +++ b/services/core/java/com/android/server/notification/NotificationRecord.java @@ -149,8 +149,9 @@ public final class NotificationRecord { } try { - final ApplicationInfo applicationInfo = mContext.getPackageManager().getApplicationInfo( - sbn.getPackageName(), 0); + final ApplicationInfo applicationInfo = + mContext.getPackageManager().getApplicationInfoAsUser(sbn.getPackageName(), + 0, sbn.getUser().getIdentifier()); if (applicationInfo.targetSdkVersion < Build.VERSION_CODES.N) { if (isNoisy) { if (importance >= IMPORTANCE_HIGH) { |