Fix SensitiveNotificationRedactionTest on Automotive

testListenerWithReceiveSensitiveNotificationsGetsUnredacted
had been failing because the uid added to mTrustedListenerUids was
different from the uid added to mServices (different users).

Bug: 338305133
Test: atest CtsNotificationTestCases
Change-Id: If9d94c44577077014576633cca6123fccb6916ab
diff --git a/services/core/java/com/android/server/notification/ManagedServices.java b/services/core/java/com/android/server/notification/ManagedServices.java
index 3949dfe..1a8e44b 100644
--- a/services/core/java/com/android/server/notification/ManagedServices.java
+++ b/services/core/java/com/android/server/notification/ManagedServices.java
@@ -1626,8 +1626,8 @@
 
         ApplicationInfo appInfo = null;
         try {
-            appInfo = mContext.getPackageManager().getApplicationInfo(
-                name.getPackageName(), 0);
+            appInfo = mContext.getPackageManager().getApplicationInfoAsUser(
+                name.getPackageName(), 0, userid);
         } catch (NameNotFoundException e) {
             // Ignore if the package doesn't exist we won't be able to bind to the service.
         }