Class of android.app.role · RoleManager.java · Android's reference
public final class RoleManager
The roles of the device's default apps. The device has the roles, and the app holds none of them: a request for one opens the system's dialog, which the user backs out of (snx.android.app.Activities answers RESULT_CANCELED).
public static final String ROLE_ASSISTANT = "android.app.role.ASSISTANT" sourcepublic static final String ROLE_BROWSER = "android.app.role.BROWSER" sourcepublic static final String ROLE_CALL_REDIRECTION = "android.app.role.CALL_REDIRECTION" sourcepublic static final String ROLE_CALL_SCREENING = "android.app.role.CALL_SCREENING" sourcepublic static final String ROLE_DIALER = "android.app.role.DIALER" sourcepublic static final String ROLE_EMERGENCY = "android.app.role.EMERGENCY" sourcepublic static final String ROLE_HOME = "android.app.role.HOME" sourcepublic static final String ROLE_SMS = "android.app.role.SMS" sourcepublic static final String ROLE_NOTES = "android.app.role.NOTES" sourcepublic static final String ROLE_WALLET = "android.app.role.WALLET" sourcepublic static final String ACTION_REQUEST_ROLE = "android.app.role.action.REQUEST_ROLE" sourcepublic static final String EXTRA_ROLE_NAME = "android.app.role.extra.ROLE_NAME" sourcepublic RoleManager() empty body sourcepublic boolean isRoleAvailable(String roleName) sourcepublic boolean isRoleHeld(String roleName) sourcepublic Intent createRequestRoleIntent(String roleName) sourcepublic List<String> getRoleHolders(String roleName) sourcepublic List<String> getRoleHoldersAsUser(String roleName, UserHandle user) sourcepublic void addRoleHolderAsUser(String roleName, String packageName, int flags, UserHandle user, Executor executor, Consumer<Boolean> callback) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.