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

Commit c55e27a5 authored by Tony Mak's avatar Tony Mak
Browse files

getConnectionInfo should take calling package name as argument

Bug: 64245163

Test: QR provisioning is now possible.

Change-Id: I9ee89b78224aaafd39a44234b704e4ed8cde56f4
parent d25050e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ interface IWifiManager

    void reassociate();

    WifiInfo getConnectionInfo();
    WifiInfo getConnectionInfo(String callingPackage);

    boolean setWifiEnabled(String packageName, boolean enable);

+1 −1
Original line number Diff line number Diff line
@@ -1643,7 +1643,7 @@ public class WifiManager {
     */
    public WifiInfo getConnectionInfo() {
        try {
            return mService.getConnectionInfo();
            return mService.getConnectionInfo(mContext.getOpPackageName());
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }