aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliangyuteng0927 <liangyuteng0927@hotmail.com>2016-12-11 17:28:46 +0800
committerliangyuteng0927 <liangyuteng0927@hotmail.com>2016-12-11 17:28:46 +0800
commit15f4a7b4dfd625c1ad13015d63b79c93b70bb50c (patch)
treed4f069a83a923093c9f9c667ff9530c096e5ff16
downloadCompatibleUp-15f4a7b4dfd625c1ad13015d63b79c93b70bb50c.tar
CompatibleUp-15f4a7b4dfd625c1ad13015d63b79c93b70bb50c.tar.gz
CompatibleUp-15f4a7b4dfd625c1ad13015d63b79c93b70bb50c.tar.bz2
CompatibleUp-15f4a7b4dfd625c1ad13015d63b79c93b70bb50c.zip
first commit
-rw-r--r--.gitignore8
-rw-r--r--.idea/compiler.xml22
-rw-r--r--.idea/copyright/profiles_settings.xml3
-rw-r--r--.idea/gradle.xml18
-rw-r--r--.idea/modules.xml9
-rw-r--r--.idea/runConfigurations.xml12
-rw-r--r--app/.gitignore1
-rw-r--r--app/app-release.apkbin0 -> 876442 bytes
-rw-r--r--app/build.gradle35
-rw-r--r--app/deps/XposedBridgeApi.jarbin0 -> 138040 bytes
-rw-r--r--app/proguard-rules.pro6
-rw-r--r--app/src/androidTest/java/kh/android/xposed/comlatibleup/ApplicationTest.java13
-rw-r--r--app/src/main/AndroidManifest.xml33
-rw-r--r--app/src/main/assets/xposed_init1
-rw-r--r--app/src/main/java/kh/android/xposed/comlatibleup/ControlCore.java68
-rw-r--r--app/src/main/java/kh/android/xposed/comlatibleup/Launcher.java18
-rw-r--r--app/src/main/java/kh/android/xposed/comlatibleup/MainActivity.java125
-rw-r--r--app/src/main/res/drawable-xhdpi/ic.pngbin0 -> 1068790 bytes
-rw-r--r--app/src/main/res/layout/activity_main.xml49
-rw-r--r--app/src/main/res/menu/menu_main.xml19
-rw-r--r--app/src/main/res/values/strings.xml23
-rw-r--r--app/src/main/res/values/styles.xml4
-rw-r--r--build.gradle25
-rw-r--r--gradle.properties17
-rw-r--r--gradle/wrapper/gradle-wrapper.jarbin0 -> 53636 bytes
-rw-r--r--gradle/wrapper/gradle-wrapper.properties6
-rwxr-xr-xgradlew160
-rw-r--r--gradlew.bat90
-rw-r--r--settings.gradle1
29 files changed, 766 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c6cbe56
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="CompilerConfiguration">
+ <resourceExtensions />
+ <wildcardResourcePatterns>
+ <entry name="!?*.java" />
+ <entry name="!?*.form" />
+ <entry name="!?*.class" />
+ <entry name="!?*.groovy" />
+ <entry name="!?*.scala" />
+ <entry name="!?*.flex" />
+ <entry name="!?*.kt" />
+ <entry name="!?*.clj" />
+ <entry name="!?*.aj" />
+ </wildcardResourcePatterns>
+ <annotationProcessing>
+ <profile default="true" name="Default" enabled="false">
+ <processorPath useClasspath="true" />
+ </profile>
+ </annotationProcessing>
+ </component>
+</project> \ No newline at end of file
diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+<component name="CopyrightManager">
+ <settings default="" />
+</component> \ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..7ac24c7
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="GradleSettings">
+ <option name="linkedExternalProjectsSettings">
+ <GradleProjectSettings>
+ <option name="distributionType" value="DEFAULT_WRAPPED" />
+ <option name="externalProjectPath" value="$PROJECT_DIR$" />
+ <option name="modules">
+ <set>
+ <option value="$PROJECT_DIR$" />
+ <option value="$PROJECT_DIR$/app" />
+ </set>
+ </option>
+ <option name="resolveModulePerSourceSet" value="false" />
+ </GradleProjectSettings>
+ </option>
+ </component>
+</project> \ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..c246628
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="ProjectModuleManager">
+ <modules>
+ <module fileurl="file://$PROJECT_DIR$/ComlatibleUp.iml" filepath="$PROJECT_DIR$/ComlatibleUp.iml" />
+ <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
+ </modules>
+ </component>
+</project> \ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="RunConfigurationProducerService">
+ <option name="ignoredProducers">
+ <set>
+ <option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
+ <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
+ <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
+ </set>
+ </option>
+ </component>
+</project> \ No newline at end of file
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/app/app-release.apk b/app/app-release.apk
new file mode 100644
index 0000000..61d0bac
--- /dev/null
+++ b/app/app-release.apk
Binary files differ
diff --git a/app/build.gradle b/app/build.gradle
new file mode 100644
index 0000000..198acda
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,35 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 25
+ buildToolsVersion '25.0.0'
+ defaultConfig {
+ applicationId 'kh.android.xposed.comlatibleup'
+ minSdkVersion 9
+ targetSdkVersion 25
+ versionCode 17
+ versionName '5.1'
+ }
+ buildTypes {
+ release {
+ // 不显示Log
+ buildConfigField "boolean", "LOG_DEBUG", "false"
+ //混淆
+ minifyEnabled true
+ //Zipalign优化
+ zipAlignEnabled true
+ // 移除无用的resource文件
+ shrinkResources true
+ //加载默认混淆配置文件
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+ productFlavors {
+ }
+}
+
+dependencies {
+ provided fileTree(include: ['*.jar'], dir: 'deps')
+ compile 'com.github.liangyuteng0927:UpdateCheckerLib:1.1'
+ compile 'com.android.support:appcompat-v7:25.0.1'
+}
diff --git a/app/deps/XposedBridgeApi.jar b/app/deps/XposedBridgeApi.jar
new file mode 100644
index 0000000..2f4458d
--- /dev/null
+++ b/app/deps/XposedBridgeApi.jar
Binary files differ
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..6914a4e
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,6 @@
+-dontwarn com.google.**
+-keep class com.google.** { *;}
+-dontwarn android.support.**
+-keepattributes *Annotation*
+-keep class kh.android.xposed.comlatibleup.ControlCore
+-keep class org.jsoup.** \ No newline at end of file
diff --git a/app/src/androidTest/java/kh/android/xposed/comlatibleup/ApplicationTest.java b/app/src/androidTest/java/kh/android/xposed/comlatibleup/ApplicationTest.java
new file mode 100644
index 0000000..c4ffa30
--- /dev/null
+++ b/app/src/androidTest/java/kh/android/xposed/comlatibleup/ApplicationTest.java
@@ -0,0 +1,13 @@
+package kh.android.xposed.comlatibleup;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
+ */
+public class ApplicationTest extends ApplicationTestCase<Application> {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+} \ No newline at end of file
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..39073c1
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="kh.android.xposed.comlatibleup"
+ android:installLocation="internalOnly">
+ <uses-permission android:name="android.permission.INTERNET" />
+ <application
+ android:allowBackup="true"
+ android:icon="@drawable/ic"
+ android:label="@string/app_name"
+ android:supportsRtl="true"
+ android:theme="@style/Base">
+
+ <meta-data android:value="true" android:name="xposedmodule"/>
+ <meta-data android:value="30" android:name="xposedminversion"/>
+ <meta-data android:value="" android:name="xposeddescription"/>
+
+ <activity android:name="kh.android.xposed.comlatibleup.MainActivity">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
+ </intent-filter>
+ </activity>
+ <activity android:name=".Launcher">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
+ <category android:name="android.intent.category.LAUNCHER"/>
+ </intent-filter>
+ </activity>
+
+ </application>
+
+</manifest>
diff --git a/app/src/main/assets/xposed_init b/app/src/main/assets/xposed_init
new file mode 100644
index 0000000..0f4c9ab
--- /dev/null
+++ b/app/src/main/assets/xposed_init
@@ -0,0 +1 @@
+kh.android.xposed.comlatibleup.ControlCore \ No newline at end of file
diff --git a/app/src/main/java/kh/android/xposed/comlatibleup/ControlCore.java b/app/src/main/java/kh/android/xposed/comlatibleup/ControlCore.java
new file mode 100644
index 0000000..638f3fa
--- /dev/null
+++ b/app/src/main/java/kh/android/xposed/comlatibleup/ControlCore.java
@@ -0,0 +1,68 @@
+package kh.android.xposed.comlatibleup;
+
+
+import de.robv.android.xposed.IXposedHookLoadPackage;
+import de.robv.android.xposed.IXposedHookZygoteInit;
+import de.robv.android.xposed.XC_MethodHook;
+import de.robv.android.xposed.XC_MethodReplacement;
+import de.robv.android.xposed.XSharedPreferences;
+import de.robv.android.xposed.XposedBridge;
+import de.robv.android.xposed.XposedHelpers;
+import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;
+
+/**
+ * Created by liangyuteng on 16-6-21.
+ * Main hook codes.
+ */
+
+public class ControlCore implements IXposedHookZygoteInit,
+ IXposedHookLoadPackage{
+ private XC_MethodHook checkSdkVersionHook;
+ private XSharedPreferences prefs;
+ @Override
+ public void initZygote(IXposedHookZygoteInit.StartupParam startupParam) throws Throwable{
+
+ checkSdkVersionHook = new XC_MethodHook() {
+
+ @Override
+ protected void beforeHookedMethod(MethodHookParam param)
+ throws Throwable {
+
+ XposedHelpers.setObjectField(param.thisObject,
+ "SDK_VERSION", 25);
+
+ }
+
+ };
+ prefs = new XSharedPreferences(ControlCore.class.getPackage().getName());
+ prefs.makeWorldReadable();
+ prefs.reload();
+
+ if(!prefs.getBoolean("ENABLE",true)){
+ XposedBridge.log("CompatibleUp is NOT-ENABLE");
+ }else{
+ XposedBridge.log("Compatible-Up ENABLE");
+ }
+
+ }
+
+ private static final String sMethodA="parsePackage";
+ private static final String sMethodB="parseBaseApk";
+ private static final String sMethodC="parseClusterPackage";
+ private static final String sMethodD="parseSplitApk";
+
+ private final String [] Method={sMethodA,sMethodB,sMethodC,sMethodD};
+ @Override
+ public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {
+ prefs.reload();
+ if(prefs.getBoolean("ENABLE",false)) {
+ Class<?> packageParserClass = XposedHelpers.findClass(
+ "android.content.pm.PackageParser", lpparam.classLoader);
+ for (String aMethod : Method) {
+ XposedBridge.hookAllMethods(packageParserClass, aMethod,
+ checkSdkVersionHook);
+ }
+ }
+ }
+
+}
diff --git a/app/src/main/java/kh/android/xposed/comlatibleup/Launcher.java b/app/src/main/java/kh/android/xposed/comlatibleup/Launcher.java
new file mode 100644
index 0000000..e96e362
--- /dev/null
+++ b/app/src/main/java/kh/android/xposed/comlatibleup/Launcher.java
@@ -0,0 +1,18 @@
+package kh.android.xposed.comlatibleup;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+
+/**
+ * Created by liangyuteng on 16-8-11.
+ */
+public class Launcher extends Activity{
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ Intent i = new Intent(Launcher.this, MainActivity.class);
+ startActivity(i);
+ finish();
+ }
+}
diff --git a/app/src/main/java/kh/android/xposed/comlatibleup/MainActivity.java b/app/src/main/java/kh/android/xposed/comlatibleup/MainActivity.java
new file mode 100644
index 0000000..c3bf195
--- /dev/null
+++ b/app/src/main/java/kh/android/xposed/comlatibleup/MainActivity.java
@@ -0,0 +1,125 @@
+package kh.android.xposed.comlatibleup;
+
+import android.content.ActivityNotFoundException;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.content.pm.PackageManager;
+import android.net.Uri;
+import android.os.Bundle;
+import android.preference.PreferenceManager;
+import android.support.v7.app.AlertDialog;
+import android.support.v7.app.AppCompatActivity;
+import android.support.v7.widget.SwitchCompat;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.CompoundButton;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import kh.android.updatecheckerlib.UpdateChecker;
+
+
+public class MainActivity extends AppCompatActivity {
+ Context mContext;
+ SwitchCompat swStart;
+ public static SharedPreferences prefs;
+ boolean isEnable=true;
+ private MenuItem mMenuItemUpdate;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ mContext = this;
+ swStart= (SwitchCompat) findViewById(R.id.switchStart);
+ //prefs = PreferenceManager.getDefaultSharedPreferences(mContext);
+ prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
+ isEnable = prefs.getBoolean("ENABLE",false);
+ swStart.setChecked(isEnable);
+ swStart.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+ @Override
+ public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
+ SharedPreferences.Editor prefsEditor = prefs.edit();
+ prefsEditor.putBoolean("ENABLE",b);
+ prefsEditor.apply();
+ }
+ });
+ }
+ private void checkUpdate(){
+ new UpdateChecker(UpdateChecker.Market.MARKET_COOLAPK, getPackageName())
+ .checkAsync(new UpdateChecker.OnCheckListener() {
+ @Override
+ public void onStartCheck() {
+ mMenuItemUpdate.setEnabled(false);
+ Toast.makeText(mContext, R.string.btn_InCheckUpdate, Toast.LENGTH_SHORT).show();
+ }
+
+ @Override
+ public void done(UpdateChecker.UpdateInfo info, Exception e) {
+ mMenuItemUpdate.setEnabled(true);
+ if (e == null) {
+ new AlertDialog.Builder(mContext)
+ .setTitle(R.string.btn_CheckUpdate)
+ .setMessage(getString(R.string.text_update
+ , info.getVersionName(), info.getChangeLog().replace(" ", "\n")))
+ .setCancelable(false)
+ .setPositiveButton(android.R.string.ok, null).show();
+ } else {
+ new AlertDialog.Builder(mContext)
+ .setTitle(R.string.btn_CheckUpdate)
+ .setMessage(R.string.btn_Update_Err)
+ .setCancelable(false)
+ .setPositiveButton(android.R.string.ok, null).show();
+ }
+ }
+ });
+ }
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ getMenuInflater().inflate(R.menu.menu_main, menu);
+ mMenuItemUpdate = menu.findItem(R.id.action_update);
+ return true;
+ }
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ int id = item.getItemId();
+ switch(id){
+ case R.id.action_Hide:
+ int mode = prefs.getBoolean("hide_launcher_icon", false) ? PackageManager.COMPONENT_ENABLED_STATE_DISABLED : PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
+ boolean now=prefs.getBoolean("hide_launcher_icon", false);
+ mContext.getPackageManager().setComponentEnabledSetting(new ComponentName(mContext, MainActivity.class.getPackage().getName()+".Launcher"), mode, PackageManager.DONT_KILL_APP);
+ if(!now){
+ Toast.makeText(mContext,getString(R.string.toast_ShowIcon),Toast.LENGTH_LONG).show();
+ }else {
+ Toast.makeText(mContext,getString(R.string.toast_HideIcon),Toast.LENGTH_LONG).show();
+ }
+ SharedPreferences.Editor prefsEditor = prefs.edit();
+ prefsEditor.putBoolean("hide_launcher_icon",!now);
+ prefsEditor.apply();
+ break;
+ case R.id.action_update :
+ checkUpdate();
+ break;
+ case R.id.action_code :
+ try {
+ startActivity(new Intent(Intent.ACTION_VIEW,
+ Uri.parse("https://github.com/liangyuteng0927/CompatibleUp")));
+ } catch (ActivityNotFoundException e) {
+ e.printStackTrace();
+ }
+ break;
+ case R.id.action_developer :
+ try {
+ startActivity(new Intent(Intent.ACTION_VIEW,
+ Uri.parse("http://coolapk.com/u/543424")));
+ } catch (ActivityNotFoundException e) {
+ e.printStackTrace();
+ }
+ break;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+} \ No newline at end of file
diff --git a/app/src/main/res/drawable-xhdpi/ic.png b/app/src/main/res/drawable-xhdpi/ic.png
new file mode 100644
index 0000000..15f0040
--- /dev/null
+++ b/app/src/main/res/drawable-xhdpi/ic.png
Binary files differ
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..5c47174
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".MainActivity">
+
+ <TextView
+ android:gravity="center"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/text_isOK"
+ android:layout_alignParentTop="true"
+ android:layout_centerHorizontal="true"
+ android:id="@+id/textView2" />
+
+ <TextView
+ android:gravity="center"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:text="@string/text_OpenSource"
+ android:id="@+id/textView"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true" />
+
+ <TextView
+ android:gravity="center"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:text="@string/text_FCWarning"
+ android:id="@+id/textView3"
+ android:layout_below="@+id/textView2"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true" />
+
+ <android.support.v7.widget.SwitchCompat
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/text_switch_start"
+ android:id="@+id/switchStart"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true" />
+
+</LinearLayout>
diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml
new file mode 100644
index 0000000..b674987
--- /dev/null
+++ b/app/src/main/res/menu/menu_main.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:id="@+id/action_update"
+ android:orderInCategory="100"
+ android:title="@string/btn_CheckUpdate" />
+ <item
+ android:id="@+id/action_Hide"
+ android:orderInCategory="100"
+ android:title="@string/btn_Hide" />
+ <item
+ android:id="@+id/action_developer"
+ android:orderInCategory="100"
+ android:title="@string/action_developer" />
+ <item
+ android:id="@+id/action_code"
+ android:orderInCategory="100"
+ android:title="@string/action_code" />
+</menu> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..69ca509
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">向上兼容</string>
+ <string name="text_FCWarning">由于SDK版本问题这些不兼容的应用随时可能FC,请谅解。</string>
+ <string name="text_isOK">恭喜!您现在可以安装手机不兼容的应用了!</string>
+ <string name="text_OpenSource">我Fork了xInstaller的代码,您也可以在Github上找到这个项目。</string>
+ <string name="btn_OpenXposedInstaller">打开Xposed安装器!</string>
+ <string name="err_notrun">请检查您是否在Xposed安装器中完成激活并重启(软重启)了?</string>
+ <string name="btn_Hide">切换图标隐藏</string>
+ <string name="text_switch_start">启用</string>
+ <string name="btn_InCheckUpdate">马上完成..</string>
+ <string name="btn_Update_Err">检查失败</string>
+ <string name="btn_CheckUpdate">检查更新</string>
+
+ <string name="btn_HaveUpdate">更新可用</string>
+
+ <string name="toast_ShowIcon">图标显示</string>
+ <string name="toast_HideIcon">图标隐藏</string>
+
+ <string name="text_update">最新版:%1$s\n更新日志:%2$s</string>
+ <string name="action_developer">开发者:liangyuteng0927</string>
+ <string name="action_code">源代码</string>
+</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..91e469a
--- /dev/null
+++ b/app/src/main/res/values/styles.xml
@@ -0,0 +1,4 @@
+<resources>
+ <style name="Base" parent="Theme.AppCompat.Light.DarkActionBar"/>
+
+</resources>
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..b5b7a24
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,25 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.0.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ mavenCentral()
+ maven { url 'https://jitpack.io' }
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..1781f7f
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,17 @@
+## Project-wide Gradle settings.
+#
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+#
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+#
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+#Thu Jul 28 18:48:27 CST 2016
+systemProp.http.proxyHost=127.0.0.1
+systemProp.http.proxyPort=1080
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..13372ae
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..122a0dc
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Mon Dec 28 10:00:20 PST 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
diff --git a/gradlew b/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+include ':app'