Skip to content

Commit

Permalink
feat: No updates, chore: screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonLeeeaf committed Jun 9, 2024
1 parent 05f2d39 commit c6a3f01
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 10 deletions.
44 changes: 37 additions & 7 deletions .androidide/editor/openedFiles.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,50 @@
{
"allFiles": [
{
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/res/xml/config.xml",
"selection": {
"end": {
"column": 15,
"index": 519,
"line": 17
},
"start": {
"column": 15,
"index": 519,
"line": 17
}
}
},
{
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java",
"selection": {
"end": {
"column": 51,
"index": 3944,
"line": 90
"column": 28,
"index": 5956,
"line": 146
},
"start": {
"column": 28,
"index": 5956,
"line": 146
}
}
},
{
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/build.gradle",
"selection": {
"end": {
"column": 22,
"index": 272,
"line": 14
},
"start": {
"column": 51,
"index": 3944,
"line": 90
"column": 22,
"index": 272,
"line": 14
}
}
}
],
"selectedFile": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java"
"selectedFile": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/res/xml/config.xml"
}
Binary file modified .github/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "io.github.moonleeeaf.fuckmaonemo"
minSdk 21
targetSdk 33
versionCode 11000
versionName "1.1.0"
versionCode 12000
versionName "1.2.0"

vectorDrawables {
useSupportLibrary true
Expand Down
22 changes: 22 additions & 0 deletions app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,28 @@ protected Object replaceHookedMethod(MethodHookParam arg0) throws Throwable {
);
});

// 屏蔽更新
load("fuck_update", () -> {
XposedBridge.log("[FuckMaoNemo] Hook_屏蔽更新");
XposedBridge.hookMethod(
getMethod(
XposedHelpers.findClass("cn.codemao.android.update.CodemaoUpdate$Builder", classLoader),
"setEnv",
int.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"
);
}
}
);
});

XposedBridge.log("[FuckMaoNemo] 执行完毕");

Toast.makeText(getApplication(), "[FuckMaoNemo] 加载成功 (≧▽≦)\n" + nohengheng + " 个功能加载成功, " + aaaa + " 个失败", Toast.LENGTH_LONG).show();
Expand Down
8 changes: 7 additions & 1 deletion app/src/main/res/xml/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,19 @@
<SwitchPreference
android:key="fuck_40x"
android:title="阻止服务端响应 40x 码"
android:summary="启用此开关后,将可以:\n拦截 401 码强制登出账号\n强制浏览已封禁账号的资料卡\n评论接口检测\n其他作用\n现在不再弹出 Toast 提示" />
android:summary="拦截 401 码强制登出账号\n强制浏览已封禁账号的资料卡\n评论接口检测\n获得调试信息?" />

<SwitchPreference
android:key="no_records"
android:title="不要追踪我"
android:summary="启用后,模块将会拦截 CodeMaoStat.recordEvent(str, map) 调用(比如点击创作按钮都会发送一个 collect 请求),风险未知" />


<SwitchPreference
android:key="fuck_update"
android:title="屏蔽更新"
android:summary="此功能会让整个更新功能不可用,若已经收到更新提示请先清理 shared_prefs 才可完全生效" />

<SwitchPreference
android:key="fuck_no_proxy"
android:title="反防抓包"
Expand Down

0 comments on commit c6a3f01

Please sign in to comment.