diff --git a/.androidide/editor/openedFiles.json b/.androidide/editor/openedFiles.json index 3248f8a..9ac754c 100644 --- a/.androidide/editor/openedFiles.json +++ b/.androidide/editor/openedFiles.json @@ -1,35 +1,50 @@ { "allFiles": [ + { + "file": "/storage/emulated/0/MoonLeaf/Projects/FuckMaoNemo/app/src/main/res/xml/config.xml", + "selection": { + "end": { + "column": 83, + "index": 3436, + "line": 97 + }, + "start": { + "column": 83, + "index": 3436, + "line": 97 + } + } + }, { "file": "/storage/emulated/0/MoonLeaf/Projects/FuckMaoNemo/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java", "selection": { "end": { - "column": 17, - "index": 6820, - "line": 170 + "column": 58, + "index": 8459, + "line": 207 }, "start": { - "column": 17, - "index": 6820, - "line": 170 + "column": 58, + "index": 8459, + "line": 207 } } }, { - "file": "/storage/emulated/0/MoonLeaf/Projects/FuckMaoNemo/app/src/main/res/xml/config.xml", + "file": "/storage/emulated/0/MoonLeaf/Projects/FuckMaoNemo/app/build.gradle", "selection": { "end": { - "column": 66, - "index": 3096, - "line": 88 + "column": 22, + "index": 272, + "line": 14 }, "start": { - "column": 52, - "index": 3082, - "line": 88 + "column": 22, + "index": 272, + "line": 14 } } } ], - "selectedFile": "/storage/emulated/0/MoonLeaf/Projects/FuckMaoNemo/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java" + "selectedFile": "/storage/emulated/0/MoonLeaf/Projects/FuckMaoNemo/app/build.gradle" } \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index a8cc85f..9fec826 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,8 +12,8 @@ android { applicationId "io.github.moonleeeaf.fuckmaonemo" minSdk 21 targetSdk 33 - versionCode 14000 - versionName "1.4.0" + versionCode 15000 + versionName "1.5.0" vectorDrawables { useSupportLibrary true diff --git a/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java b/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java index 301d49b..c551531 100644 --- a/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java +++ b/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java @@ -6,7 +6,10 @@ import android.content.res.AssetManager; import android.content.res.loader.AssetsProvider; import android.os.Bundle; +import android.text.InputFilter; +import android.text.Spanned; import android.util.Pair; +import android.widget.EditText; import android.widget.Toast; import de.robv.android.xposed.IXposedHookLoadPackage; import de.robv.android.xposed.XC_MethodHook; @@ -189,6 +192,25 @@ protected void beforeHookedMethod(MethodHookParam mp) throws Throwable { ); }); + // 我就要个人信息换行 + load("remove_edit_desc_filter", () -> { + XposedBridge.log("[FuckMaoNemo] Hook_我就要个人信息换行"); + XposedBridge.hookMethod( + getMethod( + XposedHelpers.findClass("com.codemao.nemo.activity.UserNameDesEditActivity", classLoader), + "initView", + null + ), + new XC_MethodHook() { + @Override + protected void afterHookedMethod(MethodHookParam mp) throws Throwable { + EditText e = (EditText) XposedHelpers.getObjectField(mp.thisObject, "editText"); + e.setFilters(new InputFilter[]{}); + } + } + ); + }); + // 作品没有失效 load("work_is_valid", () -> { XposedBridge.log("[FuckMaoNemo] Hook_作品没有失效"); diff --git a/app/src/main/res/xml/config.xml b/app/src/main/res/xml/config.xml index d12b30c..34ee824 100644 --- a/app/src/main/res/xml/config.xml +++ b/app/src/main/res/xml/config.xml @@ -86,7 +86,16 @@ + android:summary="去你吗的Nemo推广(UA检测),去你妈的 “?is_nemo_player” 害得我无法打开,我直接把它机吧割了,QSWL\n本功能仅需要时启用,5.0.0用户请不要启用" /> + + + + + + @@ -94,8 +103,8 @@ + android:title="Unnamed Feature" + android:summary="setFork_user(B)V" />