diff options
| author | 2024-08-13 09:46:54 +0000 | |
|---|---|---|
| committer | 2024-08-13 09:52:48 +0000 | |
| commit | 55f10cb1ad23e86774f165f724a6d8c3c27a18a0 (patch) | |
| tree | 0c1924f257a83e593e5f9619bec15ddce7074d84 | |
| parent | 62ae52076cb1369a48e948c4608e48545e5a2237 (diff) | |
Logging carrier restriction status information in case of debug binary
Flag: EXEMPT bugfix
Bug: 359450368
Test: Verified manually
Change-Id: Ic50315c18951964b69a0a0dad95df83b4cb4abdb
| -rw-r--r-- | telephony/java/android/telephony/CarrierRestrictionRules.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/telephony/java/android/telephony/CarrierRestrictionRules.java b/telephony/java/android/telephony/CarrierRestrictionRules.java index 65e8e13036a6..ddf5ef21face 100644 --- a/telephony/java/android/telephony/CarrierRestrictionRules.java +++ b/telephony/java/android/telephony/CarrierRestrictionRules.java @@ -463,8 +463,9 @@ public final class CarrierRestrictionRules implements Parcelable { public String toString() { return "CarrierRestrictionRules(allowed:" + mAllowedCarriers + ", excluded:" + mExcludedCarriers + ", default:" + mCarrierRestrictionDefault - + ", MultiSim policy:" + mMultiSimPolicy + getCarrierInfoList() + - " mIsCarrierLockInfoSupported = " + mUseCarrierLockInfo + ")"; + + ", MultiSim policy:" + mMultiSimPolicy + getCarrierInfoList() + + ", mIsCarrierLockInfoSupported = " + mUseCarrierLockInfo + + getCarrierRestrictionStatusToLog() + ")"; } private String getCarrierInfoList() { @@ -476,6 +477,13 @@ public final class CarrierRestrictionRules implements Parcelable { } } + private String getCarrierRestrictionStatusToLog() { + if(android.os.Build.isDebuggable()) { + return ", CarrierRestrictionStatus = " + mCarrierRestrictionStatus; + } + return ""; + } + /** * Builder for a {@link CarrierRestrictionRules}. */ |