mirror of
https://github.com/MoonLeeeaf/FuckMaoNemo.git
synced 2025-06-06 11:23:33 +08:00
Compare commits
8 Commits
v1.1.0
...
0f8c30b6c6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f8c30b6c6 | ||
|
|
1a25a90358 | ||
|
|
54f1597235 | ||
|
|
68b3d96fdd | ||
|
|
c6a3f015e5 | ||
|
|
05f2d3915c | ||
|
|
9543727c7a | ||
|
|
7a529652c5 |
@@ -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
BIN
.github/1.jpg
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 240 KiB After Width: | Height: | Size: 391 KiB |
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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="反防抓包"
|
||||
|
||||
Reference in New Issue
Block a user