// Path: app/src/main/java/com/mero/wyt_register/Config.java
// public class Config {
// 	public static final String ID="prefs";//当前应用的ID
// 	public static final String CHARSET="UTF-8";//编码格式
// 	public static final String DEBUGGING="T";//可调试开发阶段标志
// 	public static final String URL="www.haoma.com";//临时接码平台地址
// 	public static final String KEY_IS_FIRST_IN = "isFirstIn";
// 	public static final String KEY_IS_INSTALL_XPOSED = "isInstalledXposed";//是否安装XPOSED
// 	public static final String KEY_IS_MODULE_INSTALLED = "isInstalledModule";//是否已经安装MODULE
// 	public static final boolean VALUE_TRUE = true;
// 	public static final boolean VALUE_FALSE = false;
// 	public static final String VALUE_IS_INSTALL = "已安装";
// 	public static final String VALUE_NOT_INSTALLED = "未安装";
// }
// 
// Path: app/src/main/java/com/mero/wyt_register/MyApplication.java
// public class MyApplication extends Application {
//     public static MyApplication instance;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         instance = this;
//     }
//     public static MyApplication getMyApplication(){
//         return instance;
//     }
// }


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
import com.mero.wyt_register.Config;
import com.mero.wyt_register.MyApplication;
package com.mero.wyt_register.receiver;



/**
 * Created by chenlei on 2016/10/26.
 */

public class XposedModelIsOrNotInstalled extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent.getAction().equals("xposed.isInstalledOrNot")){
            Log.e("TAG","入口函数广播已接收到");
            SharedPreferences sharedPreferences = MyApplication.getMyApplication().getSharedPreferences(Config.ID,Context.MODE_PRIVATE);
            SharedPreferences.Editor editor = sharedPreferences.edit();
// Path: app/src/main/java/com/mero/wyt_register/Config.java
// public class Config {
// 	public static final String ID="prefs";//当前应用的ID
// 	public static final String CHARSET="UTF-8";//编码格式
// 	public static final String DEBUGGING="T";//可调试开发阶段标志
// 	public static final String URL="www.haoma.com";//临时接码平台地址
// 	public static final String KEY_IS_FIRST_IN = "isFirstIn";
// 	public static final String KEY_IS_INSTALL_XPOSED = "isInstalledXposed";//是否安装XPOSED
// 	public static final String KEY_IS_MODULE_INSTALLED = "isInstalledModule";//是否已经安装MODULE
// 	public static final boolean VALUE_TRUE = true;
// 	public static final boolean VALUE_FALSE = false;
// 	public static final String VALUE_IS_INSTALL = "已安装";
// 	public static final String VALUE_NOT_INSTALLED = "未安装";
// }
// 
// Path: app/src/main/java/com/mero/wyt_register/MyApplication.java
// public class MyApplication extends Application {
//     public static MyApplication instance;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         instance = this;
//     }
//     public static MyApplication getMyApplication(){
//         return instance;
//     }
// }


// Path: app/src/main/java/com/mero/wyt_register/receiver/XposedModelIsOrNotInstalled.java
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
import com.mero.wyt_register.Config;
import com.mero.wyt_register.MyApplication;

package com.mero.wyt_register.receiver;



/**
 * Created by chenlei on 2016/10/26.
 */

public class XposedModelIsOrNotInstalled extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent.getAction().equals("xposed.isInstalledOrNot")){
            Log.e("TAG","入口函数广播已接收到");
            SharedPreferences sharedPreferences = MyApplication.getMyApplication().getSharedPreferences(Config.ID,Context.MODE_PRIVATE);
            SharedPreferences.Editor editor = sharedPreferences.edit();
            editor.putString("isModelInstalledOrNot","已安装");