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

Commit a29b046b authored by Nancy Chen's avatar Nancy Chen
Browse files

Enforce permissions for isVoiceMailNumber.

Third party apps should not be able to discover a user's voicemail
number. Enforce permission to read state or dialing app only.

Bug: 17925501
Change-Id: Ieba52fe4bb4fbb57819519ded6a113473bf2a012
parent 140004a1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -331,6 +331,7 @@ public class TelecomServiceImpl extends ITelecomService.Stub {
     */
    @Override
    public boolean isVoiceMailNumber(PhoneAccountHandle accountHandle, String number) {
        enforceReadPermissionOrDefaultDialer();
        try {
            return mPhoneAccountRegistrar.isVoiceMailNumber(accountHandle, number);
        } catch (Exception e) {