Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9c4276e authored by Jainam Shah's avatar Jainam Shah
Browse files

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
parent e56cc199
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1626,8 +1626,8 @@ abstract public class ManagedServices {

        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.
        }