diff options
| author | 2019-02-20 14:51:42 -0800 | |
|---|---|---|
| committer | 2019-02-20 14:51:42 -0800 | |
| commit | eaa8c47c4c2247c05dd8906c33f03d5c26f1e1f5 (patch) | |
| tree | 42b82d866a8e23e89a0945cda6916353917b91a8 | |
| parent | 720a31725dbc4b29a4adb962ffe2dd380089733e (diff) | |
| parent | e34afe354109b5d2f00ee1d1e8763e1afcfd1317 (diff) | |
Merge "Debug Event for Malformed PLMN ID in CellIdentity" am: 5ea5f198c0
am: e34afe3541
Change-Id: I8689e2e91dc3dac8499aec09b34ad67a6bde307b
| -rw-r--r-- | telephony/java/android/telephony/CellIdentity.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CellIdentity.java b/telephony/java/android/telephony/CellIdentity.java index 6958d22bf5cc..7655834445b2 100644 --- a/telephony/java/android/telephony/CellIdentity.java +++ b/telephony/java/android/telephony/CellIdentity.java @@ -23,6 +23,7 @@ import android.os.Parcelable; import android.text.TextUtils; import java.util.Objects; +import java.util.UUID; /** * CellIdentity represents the identity of a unique cell. This is the base class for @@ -83,6 +84,13 @@ public abstract class CellIdentity implements Parcelable { mMncStr = null; log("invalid MNC format: " + mnc); } + + if ((mMccStr != null && mMncStr == null) || (mMccStr == null && mMncStr != null)) { + DebugEventReporter.sendEvent( + UUID.fromString("a3ab0b9d-f2aa-4baf-911d-7096c0d4645a"), + "CellIdentity Missing Half of PLMN ID"); + } + mAlphaLong = alphal; mAlphaShort = alphas; } |