6 Commits

Author SHA1 Message Date
MoonLeeeaf
54f1597235 chore: desc, v1.2.1 released
Some checks failed
Android CI / build (push) Failing after 19m57s
2024-06-09 12:51:13 +08:00
MoonLeeeaf
68b3d96fdd fix: No updatrs 2024-06-09 12:48:17 +08:00
MoonLeeeaf
c6a3f015e5 feat: No updates, chore: screenshots 2024-06-09 11:06:17 +08:00
MoonLeeeaf
05f2d3915c chore: better toast
Some checks failed
Android CI / build (push) Failing after 14m58s
2024-06-08 20:57:11 +08:00
MoonLeeeaf
9543727c7a chore: no toasts 2024-06-08 19:16:12 +08:00
MoonLeeeaf
7a529652c5 chore: code 401 -> null 2024-06-08 18:16:23 +08:00
5 changed files with 43 additions and 29 deletions

View File

@@ -4,44 +4,29 @@
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/res/xml/config.xml",
"selection": {
"end": {
"column": 7,
"index": 1062,
"column": 36,
"index": 1031,
"line": 30
},
"start": {
"column": 7,
"index": 1062,
"column": 36,
"index": 1031,
"line": 30
}
}
},
{
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java",
"selection": {
"end": {
"column": 31,
"index": 5591,
"line": 138
},
"start": {
"column": 31,
"index": 5591,
"line": 138
}
}
},
{
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/build.gradle",
"selection": {
"end": {
"column": 23,
"index": 273,
"line": 14
"column": 26,
"index": 302,
"line": 15
},
"start": {
"column": 23,
"index": 273,
"line": 14
"column": 26,
"index": 302,
"line": 15
}
}
}

BIN
.github/1.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 KiB

After

Width:  |  Height:  |  Size: 391 KiB

View File

@@ -12,8 +12,8 @@ android {
applicationId "io.github.moonleeeaf.fuckmaonemo"
minSdk 21
targetSdk 33
versionCode 11000
versionName "1.1.0"
versionCode 12100
versionName "1.2.1"
vectorDrawables {
useSupportLibrary true

View File

@@ -2,6 +2,7 @@ package io.github.moonleeeaf.fuckmaonemo;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
import de.robv.android.xposed.IXposedHookLoadPackage;
@@ -81,7 +82,16 @@ public class Hook implements IXposedHookLoadPackage {
Object rawRes = XposedHelpers.getObjectField(res, "rawResponse");
XposedHelpers.setIntField(rawRes, "code", 200);
XposedBridge.log("[FuckMaoNemo] 拦截响应 " + code + "");
String t = "服务端返回响应码 " + code;
String t = "响应码 " + code;
switch (code) {
case 401:
t = "已阻止异常登出";
break;
case 405:
case 422:
t = "API 访问被拒绝,评论区或者已封禁账号?";
break;
}
Toast.makeText(getApplication(), "[FuckMaoNemo] " + t, Toast.LENGTH_SHORT).show();
}
}
@@ -141,6 +151,19 @@ public class Hook implements IXposedHookLoadPackage {
);
});
// 屏蔽更新
load("fuck_update", () -> {
XposedBridge.log("[FuckMaoNemo] Hook_屏蔽更新");
methodToVoid(
getMethod(
XposedHelpers.findClass("com.codemao.nemo.sdk.update.NetChangeReceiver", classLoader),
"onReceive",
Context.class,
Intent.class
)
);
});
XposedBridge.log("[FuckMaoNemo] 执行完毕");
Toast.makeText(getApplication(), "[FuckMaoNemo] 加载成功 (≧▽≦)\n" + nohengheng + " 个功能加载成功, " + aaaa + " 个失败", Toast.LENGTH_LONG).show();

View File

@@ -17,13 +17,19 @@
<SwitchPreference
android:key="fuck_40x"
android:title="阻止服务端响应 40x 码"
android:summary="启用此开关后,将可以:\n拦截 401 码强制登出账号\n强制浏览已封禁账号的资料卡\n评论接口检测\n其他作用" />
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="主页不会弹更新对话框" />
<SwitchPreference
android:key="fuck_no_proxy"
android:title="反防抓包"