Back to project page XposedWifiDeepSleep.
The source code is released under:
MIT License
If you think the Android project XposedWifiDeepSleep listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ru.abusalimov.xposed.wifideepsleep; /*from ww w . j a v a 2 s. c om*/ import android.os.Build; import android.os.Message; import android.util.Log; import de.robv.android.xposed.IXposedHookLoadPackage; import de.robv.android.xposed.XposedHelpers; import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam; public class XposedMod implements IXposedHookLoadPackage { @Override public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable { if (Build.VERSION.SDK_INT != Build.VERSION_CODES.KITKAT) { Log.w("WifiDeepSleep", "Incompatible Android version: " + Build.VERSION.RELEASE); return; } XposedHelpers.findAndHookMethod( WifiControllerDeviceInactiveStateProcessMessageMethodHook.DEVICE_INACTIVE_STATE, lpparam.classLoader, "processMessage", Message.class, new WifiControllerDeviceInactiveStateProcessMessageMethodHook()); } }