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

Commit f5c32a41 authored by Sohani Rao's avatar Sohani Rao Committed by Gerrit Code Review
Browse files

Merge "Permissions check for Wifi Display configuration"

parents 8223dc1a ef401300
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -28,5 +28,6 @@ interface IWifiP2pManager
    Messenger getMessenger();
    Messenger getP2pStateMachineMessenger();
    void setMiracastMode(int mode);
    void checkConfigureWifiDisplayPermission();
}
+5 −0
Original line number Diff line number Diff line
@@ -1324,6 +1324,11 @@ public class WifiP2pManager {
            Channel c, WifiP2pWfdInfo wfdInfo,
            ActionListener listener) {
        checkChannel(c);
        try {
            mService.checkConfigureWifiDisplayPermission();
        } catch (RemoteException e) {
            e.rethrowFromSystemServer();
        }
        c.mAsyncChannel.sendMessage(SET_WFD_INFO, 0, c.putListener(listener), wfdInfo);
    }