summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZhao Wei Liew <zhaoweiliew@gmail.com>2016-09-19 18:07:00 +0800
committerMichael Bestas <mikeioannina@gmail.com>2016-12-30 18:12:21 +0200
commit0be6609ab9280ca67d9796e8e22d35c9f5edcca9 (patch)
treef438a4314dd3fc0febd29e1418a041e09fca285d /src
parent4ad2d1315066ae8dccef9e265b7a1738329eb0ba (diff)
downloadandroid_packages_apps_Dialer-0be6609ab9280ca67d9796e8e22d35c9f5edcca9.tar.gz
android_packages_apps_Dialer-0be6609ab9280ca67d9796e8e22d35c9f5edcca9.tar.bz2
android_packages_apps_Dialer-0be6609ab9280ca67d9796e8e22d35c9f5edcca9.zip
Revert "Dialer: Display 14 digit IMEI(Ignore Check Digit)"
There is no reason for any device to hide the check digit. Revert the unnecessary CAF change. This commit depends on the commits with the following change-ids: I51b813ecf0ce61b7131c2de2a9e5ae239f195410 in Settings Id3a7ff108124e3ffe4180233eb086151fdc20f03 in telephony framework This reverts commit 87c9459ff2f9e3b8095fa281c48c634a307bd1bf. Change-Id: Ie55c5b1cb3231a58706e5d8f9ecc79e8118d2181
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/SpecialCharSequenceMgr.java23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/com/android/dialer/SpecialCharSequenceMgr.java b/src/com/android/dialer/SpecialCharSequenceMgr.java
index fff7d1954..8eae277ae 100644
--- a/src/com/android/dialer/SpecialCharSequenceMgr.java
+++ b/src/com/android/dialer/SpecialCharSequenceMgr.java
@@ -32,9 +32,7 @@ import android.os.Looper;
import android.provider.Settings;
import android.telecom.PhoneAccount;
import android.telecom.PhoneAccountHandle;
-import android.telephony.CarrierConfigManager;
import android.telephony.PhoneNumberUtils;
-import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;
@@ -78,7 +76,6 @@ public class SpecialCharSequenceMgr {
private static final String PRL_VERSION_DISPLAY = "*#0000#";
- private static final int IMEI_14_DIGIT = 14;
/**
* Remembers the previous {@link QueryHandler} and cancel the operation when needed, to
* prevent possible crash.
@@ -364,26 +361,6 @@ public class SpecialCharSequenceMgr {
"getDeviceId", Integer.TYPE)) {
for (int slot = 0; slot < telephonyManager.getPhoneCount(); slot++) {
String deviceId = telephonyManager.getDeviceId(slot);
- boolean enable14DigitImei = false;
- try {
- CarrierConfigManager configManager =
- (CarrierConfigManager) context.getSystemService(
- Context.CARRIER_CONFIG_SERVICE);
- int[] subIds = SubscriptionManager.getSubId(slot);
- if (configManager != null &&
- configManager.getConfigForSubId(subIds[0]) != null) {
- enable14DigitImei =
- configManager.getConfigForSubId(subIds[0]).getBoolean(
- "config_enable_display_14digit_imei");
- }
- } catch(RuntimeException ex) {
- //do Nothing
- Log.e(TAG, "Config for 14 digit IMEI not found: " + ex);
- }
- if (enable14DigitImei && !TextUtils.isEmpty(deviceId)
- && deviceId.length() > IMEI_14_DIGIT) {
- deviceId = deviceId.substring(0, IMEI_14_DIGIT);
- }
if (!TextUtils.isEmpty(deviceId)) {
deviceIds.add(deviceId);
}