Loading telephony/java/android/telephony/TelephonyManager.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -1553,7 +1553,8 @@ public class TelephonyManager { ITelephony telephony = getITelephony(); ITelephony telephony = getITelephony(); if (telephony == null) if (telephony == null) return null; return null; return telephony.getNeighboringCellInfo(mContext.getOpPackageName()); return telephony.getNeighboringCellInfo(mContext.getOpPackageName(), mContext.getApplicationInfo().targetSdkVersion); } catch (RemoteException ex) { } catch (RemoteException ex) { return null; return null; } catch (NullPointerException ex) { } catch (NullPointerException ex) { Loading telephony/java/com/android/internal/telephony/ITelephony.aidl +1 −1 Original line number Original line Diff line number Diff line Loading @@ -390,7 +390,7 @@ interface ITelephony { /** /** * Returns the neighboring cell information of the device. * Returns the neighboring cell information of the device. */ */ List<NeighboringCellInfo> getNeighboringCellInfo(String callingPkg); List<NeighboringCellInfo> getNeighboringCellInfo(String callingPkg, int targetSdk); int getCallState(); int getCallState(); Loading Loading
telephony/java/android/telephony/TelephonyManager.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -1553,7 +1553,8 @@ public class TelephonyManager { ITelephony telephony = getITelephony(); ITelephony telephony = getITelephony(); if (telephony == null) if (telephony == null) return null; return null; return telephony.getNeighboringCellInfo(mContext.getOpPackageName()); return telephony.getNeighboringCellInfo(mContext.getOpPackageName(), mContext.getApplicationInfo().targetSdkVersion); } catch (RemoteException ex) { } catch (RemoteException ex) { return null; return null; } catch (NullPointerException ex) { } catch (NullPointerException ex) { Loading
telephony/java/com/android/internal/telephony/ITelephony.aidl +1 −1 Original line number Original line Diff line number Diff line Loading @@ -390,7 +390,7 @@ interface ITelephony { /** /** * Returns the neighboring cell information of the device. * Returns the neighboring cell information of the device. */ */ List<NeighboringCellInfo> getNeighboringCellInfo(String callingPkg); List<NeighboringCellInfo> getNeighboringCellInfo(String callingPkg, int targetSdk); int getCallState(); int getCallState(); Loading