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

Commit 7b6821cb authored by Nate Myren's avatar Nate Myren
Browse files

Use UserContext when getting CDM associations in isTrustedForSmsOtp

Fixing omission from previous CL

Fixes: 434291484
Flag: EXEMPT trivial fix
Test: atest SmsTest
Change-Id: Idc3c421e2f2612c810511ef098940dcc7336d139
parent e6020b6c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3837,7 +3837,7 @@ public final class SmsManager {

            // Apps with a current companion device association often need to relay all sms
            // messages to the companion device
            for (AssociationInfo info : getAllCdmAssociations(context)) {
            for (AssociationInfo info : getAllCdmAssociations(userContext)) {
                if (Objects.equals(info.getPackageName(), packageName)) {
                    return true;
                }