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

Commit fe22c257 authored by Aleksander Morgado's avatar Aleksander Morgado
Browse files

Check voice support using TelephonyManager.isDeviceVoiceCapable()

The isVoiceCapable() method in TelephonyManager, which relied
exclusively on checking the config_voice_capable config setting is now
deprecated. The config_voice_capable config setting is itself
deprecated since VENDOR_API_2024_Q2.

On newer vendor API levels, the isDeviceVoiceCapable() method uses the
new FEATURE_TELEPHONY_CALLING PackageManager flag to report whether a
device is voice capable or not.

NO_IFTTT=Underlying unit tests don't require an update.

Bug: 395714454
Test: mm && atest SettingsRoboTests
Flag: EXEMPT bugfix
Change-Id: I9ba202ded585e64f39391dc557863e26f2f25864
parent a6bd2b9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment