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

Skip to content
Commit 53b95297 authored by Benjamin Löhner's avatar Benjamin Löhner
Browse files

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
parent 1684475d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment