Loading cmds/svc/src/com/android/commands/svc/WifiCommand.java +4 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,10 @@ public class WifiCommand extends Svc.Command { if (validCommand) { IWifiManager wifiMgr = IWifiManager.Stub.asInterface(ServiceManager.getService(Context.WIFI_SERVICE)); if (wifiMgr == null) { System.err.println("Wi-Fi service is not ready"); return; } try { wifiMgr.setWifiEnabled("com.android.shell", flag); } Loading Loading
cmds/svc/src/com/android/commands/svc/WifiCommand.java +4 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,10 @@ public class WifiCommand extends Svc.Command { if (validCommand) { IWifiManager wifiMgr = IWifiManager.Stub.asInterface(ServiceManager.getService(Context.WIFI_SERVICE)); if (wifiMgr == null) { System.err.println("Wi-Fi service is not ready"); return; } try { wifiMgr.setWifiEnabled("com.android.shell", flag); } Loading