// Path: app/src/main/java/tw/fatminmin/xposed/minminguard/Common.java
// public class Common
// {
//     public final static String PACKAGE_NAME = BuildConfig.APPLICATION_ID;
// 
//     public final static String MOD_PREFS = "ModSettings";
//     public final static String UI_PREFS = "UI_PREF";
// 
//     // UI Pref
//     public final static String KEY_FIRST_TIME = "first_time_2_0_alpha_7";
//     public final static String KEY_SHOW_SYSTEM_APPS = "show_system_apps";
//     public final static String KEY_SHOW_LAUNCHER_ICON = "show_launcher_icon";
// 
//     // Xposed Mod Pref
//     public final static String KEY_MODE = "mode";
//     public final static String VALUE_MODE_AUTO = "auto";
//     public final static String VALUE_MODE_BLACKLIST = "blacklist";
//     public final static String VALUE_MODE_WHITELIST = "whitelist";
// 
//     // Fragment Name
//     public final static String FRG_MAIN = "main_fragment";
// 
//     // MinMinProvider
//     public final static String KEY_PKG_NAME = "PKG_NAME";
//     public final static String KEY_NETWORK = "AD_NETWORKS";
//     public final static String KEY_BLOCK_NUM = "BLOCK_NUM";
// 
//     private Common() throws InstantiationException
//     {
//         throw new InstantiationException("This class is not for instantiation");
//     }
// 
//     public static String getModeString(MainFragment.FragmentMode mode)
//     {
//         switch (mode)
//         {
//             case AUTO:
//                 return Common.VALUE_MODE_AUTO;
//             case BLACKLIST:
//                 return Common.VALUE_MODE_BLACKLIST;
//             case WHITELIST:
//                 return Common.VALUE_MODE_WHITELIST;
//             default:
//                 break;
//         }
//         return Common.VALUE_MODE_BLACKLIST;
//     }
// 
//     public static String getWhiteListKey(String pkgName)
//     {
//         return pkgName + "_whitelist";
//     }
// }


import android.app.AndroidAppHelper;
import android.app.Application;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Handler;
import java.io.File;
import java.util.concurrent.ExecutorService;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.XposedHelpers;
import tw.fatminmin.xposed.minminguard.BuildConfig;
import tw.fatminmin.xposed.minminguard.Common;
        {

            @Override
            public void run()
            {
                try
                {

                }
                catch (Exception e)
                {
                    e.printStackTrace();
                }
            }
        });
    }

    public static void notifyAdNetwork(final Context context, final String pkgName, final String adNetwork)
    {
        new Thread(new Runnable()
        {
            @Override
            public void run()
            {
                try
                {
                    ContentResolver resolver = context.getContentResolver();
                    Uri uri = Uri.parse("content://tw.fatminmin.xposed.minminguard/");
                    ContentValues values = new ContentValues();

// Path: app/src/main/java/tw/fatminmin/xposed/minminguard/Common.java
// public class Common
// {
//     public final static String PACKAGE_NAME = BuildConfig.APPLICATION_ID;
// 
//     public final static String MOD_PREFS = "ModSettings";
//     public final static String UI_PREFS = "UI_PREF";
// 
//     // UI Pref
//     public final static String KEY_FIRST_TIME = "first_time_2_0_alpha_7";
//     public final static String KEY_SHOW_SYSTEM_APPS = "show_system_apps";
//     public final static String KEY_SHOW_LAUNCHER_ICON = "show_launcher_icon";
// 
//     // Xposed Mod Pref
//     public final static String KEY_MODE = "mode";
//     public final static String VALUE_MODE_AUTO = "auto";
//     public final static String VALUE_MODE_BLACKLIST = "blacklist";
//     public final static String VALUE_MODE_WHITELIST = "whitelist";
// 
//     // Fragment Name
//     public final static String FRG_MAIN = "main_fragment";
// 
//     // MinMinProvider
//     public final static String KEY_PKG_NAME = "PKG_NAME";
//     public final static String KEY_NETWORK = "AD_NETWORKS";
//     public final static String KEY_BLOCK_NUM = "BLOCK_NUM";
// 
//     private Common() throws InstantiationException
//     {
//         throw new InstantiationException("This class is not for instantiation");
//     }
// 
//     public static String getModeString(MainFragment.FragmentMode mode)
//     {
//         switch (mode)
//         {
//             case AUTO:
//                 return Common.VALUE_MODE_AUTO;
//             case BLACKLIST:
//                 return Common.VALUE_MODE_BLACKLIST;
//             case WHITELIST:
//                 return Common.VALUE_MODE_WHITELIST;
//             default:
//                 break;
//         }
//         return Common.VALUE_MODE_BLACKLIST;
//     }
// 
//     public static String getWhiteListKey(String pkgName)
//     {
//         return pkgName + "_whitelist";
//     }
// }


// Path: app/src/main/java/tw/fatminmin/xposed/minminguard/blocker/Util.java
import android.app.AndroidAppHelper;
import android.app.Application;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Handler;
import java.io.File;
import java.util.concurrent.ExecutorService;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.XposedHelpers;
import tw.fatminmin.xposed.minminguard.BuildConfig;
import tw.fatminmin.xposed.minminguard.Common;

        {

            @Override
            public void run()
            {
                try
                {

                }
                catch (Exception e)
                {
                    e.printStackTrace();
                }
            }
        });
    }

    public static void notifyAdNetwork(final Context context, final String pkgName, final String adNetwork)
    {
        new Thread(new Runnable()
        {
            @Override
            public void run()
            {
                try
                {
                    ContentResolver resolver = context.getContentResolver();
                    Uri uri = Uri.parse("content://tw.fatminmin.xposed.minminguard/");
                    ContentValues values = new ContentValues();

                    values.put(Common.KEY_PKG_NAME, pkgName);