mirror of
https://github.com/MoonLeeeaf/FuckMaoNemo.git
synced 2025-06-06 11:23:33 +08:00
Compare commits
4 Commits
v1.2.0
...
0f8c30b6c6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f8c30b6c6 | ||
|
|
1a25a90358 | ||
|
|
54f1597235 | ||
|
|
68b3d96fdd |
@@ -4,29 +4,14 @@
|
|||||||
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/res/xml/config.xml",
|
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/res/xml/config.xml",
|
||||||
"selection": {
|
"selection": {
|
||||||
"end": {
|
"end": {
|
||||||
"column": 15,
|
"column": 36,
|
||||||
"index": 519,
|
"index": 1031,
|
||||||
"line": 17
|
"line": 30
|
||||||
},
|
},
|
||||||
"start": {
|
"start": {
|
||||||
"column": 15,
|
"column": 36,
|
||||||
"index": 519,
|
"index": 1031,
|
||||||
"line": 17
|
"line": 30
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java",
|
|
||||||
"selection": {
|
|
||||||
"end": {
|
|
||||||
"column": 28,
|
|
||||||
"index": 5956,
|
|
||||||
"line": 146
|
|
||||||
},
|
|
||||||
"start": {
|
|
||||||
"column": 28,
|
|
||||||
"index": 5956,
|
|
||||||
"line": 146
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -34,17 +19,17 @@
|
|||||||
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/build.gradle",
|
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/build.gradle",
|
||||||
"selection": {
|
"selection": {
|
||||||
"end": {
|
"end": {
|
||||||
"column": 22,
|
"column": 26,
|
||||||
"index": 272,
|
"index": 302,
|
||||||
"line": 14
|
"line": 15
|
||||||
},
|
},
|
||||||
"start": {
|
"start": {
|
||||||
"column": 22,
|
"column": 26,
|
||||||
"index": 272,
|
"index": 302,
|
||||||
"line": 14
|
"line": 15
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"selectedFile": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/res/xml/config.xml"
|
"selectedFile": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/build.gradle"
|
||||||
}
|
}
|
||||||
@@ -12,8 +12,8 @@ android {
|
|||||||
applicationId "io.github.moonleeeaf.fuckmaonemo"
|
applicationId "io.github.moonleeeaf.fuckmaonemo"
|
||||||
minSdk 21
|
minSdk 21
|
||||||
targetSdk 33
|
targetSdk 33
|
||||||
versionCode 12000
|
versionCode 12100
|
||||||
versionName "1.2.0"
|
versionName "1.2.1"
|
||||||
|
|
||||||
vectorDrawables {
|
vectorDrawables {
|
||||||
useSupportLibrary true
|
useSupportLibrary true
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package io.github.moonleeeaf.fuckmaonemo;
|
|||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
import de.robv.android.xposed.IXposedHookLoadPackage;
|
import de.robv.android.xposed.IXposedHookLoadPackage;
|
||||||
@@ -153,22 +154,13 @@ public class Hook implements IXposedHookLoadPackage {
|
|||||||
// 屏蔽更新
|
// 屏蔽更新
|
||||||
load("fuck_update", () -> {
|
load("fuck_update", () -> {
|
||||||
XposedBridge.log("[FuckMaoNemo] Hook_屏蔽更新");
|
XposedBridge.log("[FuckMaoNemo] Hook_屏蔽更新");
|
||||||
XposedBridge.hookMethod(
|
methodToVoid(
|
||||||
getMethod(
|
getMethod(
|
||||||
XposedHelpers.findClass("cn.codemao.android.update.CodemaoUpdate$Builder", classLoader),
|
XposedHelpers.findClass("com.codemao.nemo.sdk.update.NetChangeReceiver", classLoader),
|
||||||
"setEnv",
|
"onReceive",
|
||||||
int.class
|
Context.class,
|
||||||
),
|
Intent.class
|
||||||
new XC_MethodHook(){
|
)
|
||||||
@Override
|
|
||||||
protected void afterHookedMethod(MethodHookParam arg0) throws Throwable {
|
|
||||||
XposedHelpers.setStaticObjectField(
|
|
||||||
XposedHelpers.findClass("cn.codemao.android.update.util.UpdateConstants", classLoader),
|
|
||||||
"UPDATE_URL",
|
|
||||||
"http://114.514.1.1"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:key="fuck_update"
|
android:key="fuck_update"
|
||||||
android:title="屏蔽更新"
|
android:title="屏蔽更新"
|
||||||
android:summary="此功能会让整个更新功能不可用,若已经收到更新提示请先清理 shared_prefs 才可完全生效" />
|
android:summary="主页不会弹更新对话框" />
|
||||||
|
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:key="fuck_no_proxy"
|
android:key="fuck_no_proxy"
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
弥补 编程猫Nemo/点个猫 的不合理特性,功能增强等特性(。・ω・。)
|
弥补 编程猫Nemo/点个猫 的不合理特性,功能增强等特性(。・ω・。)
|
||||||
|
|
||||||
|
### For non-Chinese users
|
||||||
|
|
||||||
|
This project is for Codemao Nemo. Most of the time, you needn't use this Xposed module.
|
||||||
|
|
||||||
### 使用
|
### 使用
|
||||||
|
|
||||||
0. 建议点个猫版本为 4.3.4,已安装 LSPosed 框架(由于使用了 XSharedPreferences,故免 Root 的 Xposed 框架貌似无法正常运作)
|
0. 建议点个猫版本为 4.3.4,已安装 LSPosed 框架(由于使用了 XSharedPreferences,故免 Root 的 Xposed 框架貌似无法正常运作)
|
||||||
|
|||||||
Reference in New Issue
Block a user