Loading telephony/java/android/telephony/TelephonyManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -739,7 +739,7 @@ public class TelephonyManager { IPhoneSubInfo info = getSubscriberInfo(); if (info == null) return null; return info.getDeviceIdForPhone(slotId); return info.getDeviceIdForPhone(slotId, mContext.getOpPackageName()); } catch (RemoteException ex) { return null; } catch (NullPointerException ex) { Loading telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ interface IPhoneSubInfo { * Retrieves the unique device ID of a phone for the device, e.g., IMEI * for GSM phones. */ String getDeviceIdForPhone(int phoneId); String getDeviceIdForPhone(int phoneId, String callingPackage); /** * Retrieves the IMEI. Loading Loading
telephony/java/android/telephony/TelephonyManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -739,7 +739,7 @@ public class TelephonyManager { IPhoneSubInfo info = getSubscriberInfo(); if (info == null) return null; return info.getDeviceIdForPhone(slotId); return info.getDeviceIdForPhone(slotId, mContext.getOpPackageName()); } catch (RemoteException ex) { return null; } catch (NullPointerException ex) { Loading
telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ interface IPhoneSubInfo { * Retrieves the unique device ID of a phone for the device, e.g., IMEI * for GSM phones. */ String getDeviceIdForPhone(int phoneId); String getDeviceIdForPhone(int phoneId, String callingPackage); /** * Retrieves the IMEI. Loading