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

Commit ff66bbff authored by Nicholas Ambur's avatar Nicholas Ambur
Browse files

rm permission from getActiveServiceComponentName

remove the ACCESS_VOICE_INTERACTION_SERVICE permission from
VoiceInteractionManagerService.getActiveServiceComponentName

Test: build and verify no stability impact
Bug: 173122149
Change-Id: I9e42b7b6e205ec352b3cfbac51022dd7594d1d0f
parent 4b163155
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -116,7 +116,6 @@ interface IVoiceInteractionManagerService {
    KeyphraseMetadata getEnrolledKeyphraseMetadata(String keyphrase, String bcp47Locale);
    /**
     * @return the component name for the currently active voice interaction service
     * @RequiresPermission Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE
     */
    ComponentName getActiveServiceComponentName();

+0 −1
Original line number Diff line number Diff line
@@ -1439,7 +1439,6 @@ public class VoiceInteractionManagerService extends SystemService {

        @Override
        public ComponentName getActiveServiceComponentName() {
            enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE);
            synchronized (this) {
                return mImpl != null ? mImpl.mComponent : null;
            }