From ee609ff1c1e7dc972a621dc23afcd483fcfd115b Mon Sep 17 00:00:00 2001 From: Hall Liu Date: Tue, 26 Feb 2019 17:58:53 -0800 Subject: API tweaks * Make the PhoneAccountSuggestion ctor public * Change protection level of the bind-suggestion-service permission to signature-only. Fixes: 126442573 Fixes: 126442403 Test: CTS Change-Id: Ic6d44989efd28420a5e9e7e9c365318538d140bb --- api/current.txt | 1 + api/system-current.txt | 4 ---- api/test-current.txt | 4 ---- core/res/AndroidManifest.xml | 4 ++-- telecomm/java/android/telecom/PhoneAccountSuggestion.java | 13 ++++++++----- 5 files changed, 11 insertions(+), 15 deletions(-) diff --git a/api/current.txt b/api/current.txt index 9ebd4b4f18be..8ab7b19b70e4 100755 --- a/api/current.txt +++ b/api/current.txt @@ -41736,6 +41736,7 @@ package android.telecom { } public final class PhoneAccountSuggestion implements android.os.Parcelable { + ctor public PhoneAccountSuggestion(@NonNull android.telecom.PhoneAccountHandle, int, boolean); method public int describeContents(); method @NonNull public android.telecom.PhoneAccountHandle getPhoneAccountHandle(); method public int getReason(); diff --git a/api/system-current.txt b/api/system-current.txt index fd6a37c135a0..46c420a572cd 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -5412,10 +5412,6 @@ package android.telecom { field public static final int CAPABILITY_MULTI_USER = 32; // 0x20 } - public final class PhoneAccountSuggestion implements android.os.Parcelable { - ctor public PhoneAccountSuggestion(@NonNull android.telecom.PhoneAccountHandle, int, boolean); - } - public class PhoneAccountSuggestionService extends android.app.Service { ctor public PhoneAccountSuggestionService(); method public void onAccountSuggestionRequest(@NonNull String); diff --git a/api/test-current.txt b/api/test-current.txt index 271f7cbfa823..73910254b850 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -1443,10 +1443,6 @@ package android.telecom { method public android.telecom.Connection getPrimaryConnection(); } - public final class PhoneAccountSuggestion implements android.os.Parcelable { - ctor public PhoneAccountSuggestion(@NonNull android.telecom.PhoneAccountHandle, int, boolean); - } - public class PhoneAccountSuggestionService extends android.app.Service { ctor public PhoneAccountSuggestionService(); method public void onAccountSuggestionRequest(@NonNull String); diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index e40d97bb1396..35bc46ae33ab 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1839,12 +1839,12 @@ + android:protectionLevel="signature" />