diff options
| author | 2021-04-06 13:14:42 -0700 | |
|---|---|---|
| committer | 2021-04-06 13:14:42 -0700 | |
| commit | ff66bbffac914d57c2c311fb603b00baba98c0ec (patch) | |
| tree | c66f096b1d54a6e72c93f8d7d4848e42c71f4d73 | |
| parent | 4b163155e54345b0bc933ffe3e565d6bb651dbc6 (diff) | |
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
| -rw-r--r-- | core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl | 1 | ||||
| -rw-r--r-- | services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl b/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl index fffeb024caae..5a5e745c2426 100644 --- a/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl +++ b/core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl @@ -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(); diff --git a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java index ccaeaf991467..9aded899aaae 100644 --- a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java +++ b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java @@ -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; } |