diff --git a/api/system-current.txt b/api/system-current.txt index 46b07b3039759..6743fe50ef6bd 100755 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -8866,7 +8866,6 @@ package android.telephony { public class ServiceState implements android.os.Parcelable { method public void fillInNotifierBundle(@NonNull android.os.Bundle); method public int getDataNetworkType(); - method public boolean getDataRoamingFromRegistration(); method @Nullable public android.telephony.NetworkRegistrationInfo getNetworkRegistrationInfo(int, int); method @NonNull public java.util.List getNetworkRegistrationInfoListForDomain(int); method @NonNull public java.util.List getNetworkRegistrationInfoListForTransportType(int); diff --git a/telephony/java/android/telephony/ServiceState.java b/telephony/java/android/telephony/ServiceState.java index 82470d41842dc..a269bd1809d48 100644 --- a/telephony/java/android/telephony/ServiceState.java +++ b/telephony/java/android/telephony/ServiceState.java @@ -688,8 +688,9 @@ public class ServiceState implements Parcelable { * @return true if registration indicates roaming, false otherwise * @hide */ - @SystemApi public boolean getDataRoamingFromRegistration() { + // TODO: all callers should refactor to get roaming state directly from modem + // this should not be exposed as a public API return mIsDataRoamingFromRegistration; }