diff --git a/cmds/svc/src/com/android/commands/svc/WifiCommand.java b/cmds/svc/src/com/android/commands/svc/WifiCommand.java
index 633dd9787cb11..94214ff9694fb 100644
--- a/cmds/svc/src/com/android/commands/svc/WifiCommand.java
+++ b/cmds/svc/src/com/android/commands/svc/WifiCommand.java
@@ -52,7 +52,7 @@ public class WifiCommand extends Svc.Command {
IWifiManager wifiMgr
= IWifiManager.Stub.asInterface(ServiceManager.getService(Context.WIFI_SERVICE));
try {
- wifiMgr.setWifiEnabled("com.android.shell", flag);
+ wifiMgr.setWifiEnabled(flag);
}
catch (RemoteException e) {
System.err.println("Wi-Fi operation failed: " + e);
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 76d7d2be78fb2..20392f14d1097 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -2582,13 +2582,6 @@
Input: {@link android.content.Intent#EXTRA_PACKAGE_NAME} string extra with - * the name of the app requesting the action. - *
Output: Nothing. - * - * @hide - */ - @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) - public static final String ACTION_REQUEST_ENABLE = "android.net.wifi.action.REQUEST_ENABLE"; - - /** - * Activity Action: Show UI to get user approval to disable WiFi. - *
Input: {@link android.content.Intent#EXTRA_PACKAGE_NAME} string extra with - * the name of the app requesting the action. - *
Output: Nothing. - * - * @hide - */ - @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) - public static final String ACTION_REQUEST_DISABLE = "android.net.wifi.action.REQUEST_DISABLE"; - /** * Internally used Wi-Fi lock mode representing the case were no locks are held. * @hide @@ -1468,7 +1445,7 @@ public class WifiManager { */ public boolean setWifiEnabled(boolean enabled) { try { - return mService.setWifiEnabled(mContext.getOpPackageName(), enabled); + return mService.setWifiEnabled(enabled); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); }