-
- Downloads
Add getEmergencyAssistancePackageName API to TelephonyManager.
Since the emergency role is basically the app that handles ACTION_EMERGENCY_ASSISTANCE, it was proposed to add this API alongside isEmergencyAssistanceEnabled(). This provides privileged clients (e.g. GmsCore) with a robust way to query the emergency role holder. This API calls a new getEmergencyRoleHolder() API in RoleManager. Both of these APIs are guarded by a common flag in the permissions namespace. Bug: 323157319 Test: atest RoleManagerTest Change-Id: I4302ca53f6a0187f225ad085a7d43cd20a935b3e
Showing
- core/api/system-current.txt 1 addition, 0 deletionscore/api/system-current.txt
- core/java/android/permission/flags.aconfig 8 additions, 0 deletionscore/java/android/permission/flags.aconfig
- telephony/java/android/telephony/TelephonyManager.java 21 additions, 0 deletionstelephony/java/android/telephony/TelephonyManager.java
Loading
Please register or sign in to comment