Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 275b5635 authored by Svetoslav's avatar Svetoslav Committed by Svetoslav Ganov
Browse files

Teach telephony about location app ops

Change-Id: I2bd8f0cb90d161994045d403f5d0c129ea951c3f
parent 14e317a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -782,7 +782,7 @@ public class TelephonyManager {
            ITelephony telephony = getITelephony();
            if (telephony == null)
                return null;
            Bundle bundle = telephony.getCellLocation();
            Bundle bundle = telephony.getCellLocation(mContext.getOpPackageName());
            if (bundle.isEmpty()) return null;
            CellLocation cl = CellLocation.newFromBundle(bundle);
            if (cl.isEmpty())
@@ -2729,7 +2729,7 @@ public class TelephonyManager {
            ITelephony telephony = getITelephony();
            if (telephony == null)
                return null;
            return telephony.getAllCellInfo();
            return telephony.getAllCellInfo(mContext.getOpPackageName());
        } catch (RemoteException ex) {
            return null;
        } catch (NullPointerException ex) {
+2 −2
Original line number Diff line number Diff line
@@ -343,7 +343,7 @@ interface ITelephony {
     */
    boolean isDataConnectivityPossible();

    Bundle getCellLocation();
    Bundle getCellLocation(String callingPkg);

    /**
     * Returns the neighboring cell information of the device.
@@ -507,7 +507,7 @@ interface ITelephony {
    /**
     * Returns the all observed cell information of the device.
     */
    List<CellInfo> getAllCellInfo();
    List<CellInfo> getAllCellInfo(String callingPkg);

    /**
     * Sets minimum time in milli-seconds between onCellInfoChanged