Android Open Source - XposedWifiDeepSleep Xposed Mod






From Project

Back to project page XposedWifiDeepSleep.

License

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.

Java Source Code

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());
  }

}




Java Source Code List

ru.abusalimov.xposed.util.SingletonMethodHook.java
ru.abusalimov.xposed.wifideepsleep.WifiControllerDeviceInactiveStateProcessMessageMethodHook.java
ru.abusalimov.xposed.wifideepsleep.XposedMod.java