Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Chipppppppppp committed Jan 20, 2024
1 parent e6b634a commit 03f04ac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ LINE を掃除する Xposed Module です。
## 機能

- 画面下部の VOOM アイコンの削除
- 画面下部の VOOM・ウォレットアイコンの削除
- 広告の削除
- WebView(アプリ内ブラウザ) を好きなブラウザにリダイレクト
- WebView (アプリ内ブラウザ) を好きなブラウザにリダイレクト

## 既知の問題

- LSPosed でのアイコンがデフォルトのままになっている
- 稀にホームタブの広告の場所に余白が残る

新たなバグや修正方法を見つけた場合は、[報告](//github.com/Chipppppppppp/LIME/issues/new/choose)をお願いします。
16 changes: 16 additions & 0 deletions app/src/main/java/io/github/chipppppppppp/lime/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.TextView;

import androidx.browser.customtabs.CustomTabsIntent;
import java.lang.reflect.*;

Expand All @@ -30,6 +32,20 @@ public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lparam) throws Thr

Class hookTarget;

hookTarget = lparam.classLoader.loadClass("android.widget.TextView");
XposedBridge.hookAllMethods(hookTarget, "setText", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
TextView textView = (TextView) param.thisObject;
XposedBridge.log(textView.getText().toString());
View parent = (View) textView.getParent();
while (parent != null) {
XposedBridge.log(parent.getClass().getName());
parent = (View) parent.getParent();
}
}
});

if (deleteVoom || deleteWallet) {
hookTarget = lparam.classLoader.loadClass("jp.naver.line.android.activity.main.MainActivity");
XposedHelpers.findAndHookMethod(hookTarget, "onResume", new XC_MethodHook() {
Expand Down

0 comments on commit 03f04ac

Please sign in to comment.