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

Commit 10c04b9a authored by Nate Myren's avatar Nate Myren
Browse files

Correctly set trusted AttributionSource in RecognitionService

Fixes: 193831522
Test: manual
Change-Id: Ib520f755c6a072bb297a4a5964b869006eefc46e
parent e684a19b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -141,7 +141,8 @@ final class SpeechRecognitionManagerServiceImpl extends
                                        throws RemoteException {
                            attributionSource.enforceCallingUid();
                            if (!attributionSource.isTrusted(mMaster.getContext())) {
                                mMaster.getContext().getSystemService(PermissionManager.class)
                                attributionSource = mMaster.getContext()
                                        .getSystemService(PermissionManager.class)
                                        .registerAttributionSource(attributionSource);
                            }
                            service.startListening(recognizerIntent, listener, attributionSource);