Loading core/java/android/accounts/AccountManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -1657,7 +1657,7 @@ public class AccountManagerService } boolean needsProvisioning; try { needsProvisioning = telephony.getCdmaNeedsProvisioning(); needsProvisioning = telephony.needsOtaServiceProvisioning(); } catch (RemoteException e) { Log.w(TAG, "exception while checking provisioning", e); // default to NOT wiping out the passwords Loading telephony/java/com/android/internal/telephony/ITelephony.aidl +4 −2 Original line number Diff line number Diff line Loading @@ -239,9 +239,11 @@ interface ITelephony { String getCdmaEriText(); /** * Returns true if CDMA provisioning needs to run. * Returns true if OTA service provisioning needs to run. * Only relevant on some technologies, others will always * return false. */ boolean getCdmaNeedsProvisioning(); boolean needsOtaServiceProvisioning(); /** * Returns the unread count of voicemails Loading telephony/java/com/android/internal/telephony/Phone.java +5 −0 Original line number Diff line number Diff line Loading @@ -1532,6 +1532,11 @@ public interface Phone { */ boolean isOtaSpNumber(String dialStr); /** * Returns true if OTA Service Provisioning needs to be performed. */ boolean needsOtaServiceProvisioning(); /** * Register for notifications when CDMA call waiting comes * Loading telephony/java/com/android/internal/telephony/PhoneBase.java +12 −2 Original line number Diff line number Diff line Loading @@ -824,9 +824,19 @@ public abstract class PhoneBase extends Handler implements Phone { logUnexpectedCdmaMethodCall("unregisterForSubscriptionInfoReady"); } /** * Returns true if OTA Service Provisioning needs to be performed. * If not overridden return false. */ public boolean needsOtaServiceProvisioning() { return false; } /** * Return true if number is an OTASP number. * If not overridden return false. */ public boolean isOtaSpNumber(String dialStr) { // This function should be overridden by the class CDMAPhone. Not implemented in GSMPhone. logUnexpectedCdmaMethodCall("isOtaSpNumber"); return false; } Loading telephony/java/com/android/internal/telephony/PhoneProxy.java +4 −0 Original line number Diff line number Diff line Loading @@ -764,6 +764,10 @@ public class PhoneProxy extends Handler implements Phone { mActivePhone.exitEmergencyCallbackMode(); } public boolean needsOtaServiceProvisioning(){ return mActivePhone.needsOtaServiceProvisioning(); } public boolean isOtaSpNumber(String dialStr){ return mActivePhone.isOtaSpNumber(dialStr); } Loading Loading
core/java/android/accounts/AccountManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -1657,7 +1657,7 @@ public class AccountManagerService } boolean needsProvisioning; try { needsProvisioning = telephony.getCdmaNeedsProvisioning(); needsProvisioning = telephony.needsOtaServiceProvisioning(); } catch (RemoteException e) { Log.w(TAG, "exception while checking provisioning", e); // default to NOT wiping out the passwords Loading
telephony/java/com/android/internal/telephony/ITelephony.aidl +4 −2 Original line number Diff line number Diff line Loading @@ -239,9 +239,11 @@ interface ITelephony { String getCdmaEriText(); /** * Returns true if CDMA provisioning needs to run. * Returns true if OTA service provisioning needs to run. * Only relevant on some technologies, others will always * return false. */ boolean getCdmaNeedsProvisioning(); boolean needsOtaServiceProvisioning(); /** * Returns the unread count of voicemails Loading
telephony/java/com/android/internal/telephony/Phone.java +5 −0 Original line number Diff line number Diff line Loading @@ -1532,6 +1532,11 @@ public interface Phone { */ boolean isOtaSpNumber(String dialStr); /** * Returns true if OTA Service Provisioning needs to be performed. */ boolean needsOtaServiceProvisioning(); /** * Register for notifications when CDMA call waiting comes * Loading
telephony/java/com/android/internal/telephony/PhoneBase.java +12 −2 Original line number Diff line number Diff line Loading @@ -824,9 +824,19 @@ public abstract class PhoneBase extends Handler implements Phone { logUnexpectedCdmaMethodCall("unregisterForSubscriptionInfoReady"); } /** * Returns true if OTA Service Provisioning needs to be performed. * If not overridden return false. */ public boolean needsOtaServiceProvisioning() { return false; } /** * Return true if number is an OTASP number. * If not overridden return false. */ public boolean isOtaSpNumber(String dialStr) { // This function should be overridden by the class CDMAPhone. Not implemented in GSMPhone. logUnexpectedCdmaMethodCall("isOtaSpNumber"); return false; } Loading
telephony/java/com/android/internal/telephony/PhoneProxy.java +4 −0 Original line number Diff line number Diff line Loading @@ -764,6 +764,10 @@ public class PhoneProxy extends Handler implements Phone { mActivePhone.exitEmergencyCallbackMode(); } public boolean needsOtaServiceProvisioning(){ return mActivePhone.needsOtaServiceProvisioning(); } public boolean isOtaSpNumber(String dialStr){ return mActivePhone.isOtaSpNumber(dialStr); } Loading