Merge "Returns null not empty string if MEID is not available" am: 634c108060

am: 02445f14da

Change-Id: Iad4251e00f28f1e051bc6af79cbdb3179230442d
This commit is contained in:
Ruijie Bai
2019-10-29 17:57:11 -07:00
committed by android-build-merger

View File

@@ -1887,7 +1887,12 @@ public class TelephonyManager {
if (telephony == null) return null;
try {
return telephony.getMeidForSlot(slotIndex, getOpPackageName());
String meid = telephony.getMeidForSlot(slotIndex, getOpPackageName());
if (TextUtils.isEmpty(meid)) {
Log.d(TAG, "getMeid: return null because MEID is not available");
return null;
}
return meid;
} catch (RemoteException ex) {
return null;
} catch (NullPointerException ex) {