Merge "Returns null not empty string if MEID is not available"
am: 634c108060
Change-Id: I75230fdc0f1014f5fc5d3e986c951bf5ece4d545
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user