Merge "Clean up SmsApplication and expose getDefaultSmsPackage" am: 2ada7fbac2 am: b128b793c7
Change-Id: Icee2c41d635883c6b9ede6bf6ec3bbfda22cdc1f
This commit is contained in:
@@ -629,9 +629,12 @@ public final class RoleManager {
|
||||
* {@link Manifest.permission#OBSERVE_ROLE_HOLDERS}, as required by
|
||||
* {@link android.provider.Telephony.Sms#getDefaultSmsPackage(Context)}
|
||||
*
|
||||
* @param userId The user ID to get the default SMS package for.
|
||||
* @return the package name of the default SMS app, or {@code null} if not configured.
|
||||
* @hide
|
||||
*/
|
||||
@Nullable
|
||||
@SystemApi
|
||||
public String getDefaultSmsPackage(@UserIdInt int userId) {
|
||||
try {
|
||||
return mService.getDefaultSmsPackage(userId);
|
||||
|
||||
Reference in New Issue
Block a user