— a/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/dwservice/DwSettingsService.java
+++ b/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/dwservice/DwSettingsService.java
@@ -229,6 +229,8 @@ public class DwSettingsService extends Service {
dwSettingsFilter.addAction("com.hra.whitelist_app.update");
dwSettingsFilter.addAction("com.hra.whitelist_app.clear");
-
//wifi on/off^M -
dwSettingsFilter.addAction("com.action.wifi.function.enable");^M //led dwSettingsFilter.addAction("com.intent.redled.on");
@@ -814,6 +816,18 @@ public class DwSettingsService extends Service {
readServerIntent.setAction(“com.action.read.server_url.return”);
readServerIntent.putExtra(“serverUrl”,strServerUrl);
mContext.sendBroadcast(readServerIntent);
-
}else if(action.equals("com.action.wifi.function.enable")){^M -
Boolean wifiEnable = intent.getBooleanExtra("enable",false);^M -
int wifiFlag = intent.getFlags();^M -
Log.d("ycj", " wifiEnable = "+ wifiEnable +" wifiFlag = "+ wifiFlag);^M -
if(wifiFlag != 0){^M -
WifiManager wifiManager = (WifiManager) mContext.getApplicationContext().getSystemService(Context.WIFI_SERVICE);^M -
if(wifiEnable){ ^M -
wifiManager.setWifiEnabled(true);^M -
}else{ ^M -
wifiManager.setWifiEnabled(false);^M -
}^M -
}}^M } }
1568

被折叠的 条评论
为什么被折叠?



