This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
186 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
v1.1.9 | ||
增加隐藏群聊底部分享卡片 | ||
修复部分已知问题 | ||
|
||
v1.1.8 | ||
增加模块图标隐藏 | ||
增加WebDav多配置 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.8-47 | ||
1.1.9-52 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.freegang.hook | ||
|
||
import android.os.Bundle | ||
import android.view.ViewTreeObserver | ||
import androidx.core.view.isVisible | ||
import com.freegang.base.BaseHook | ||
import com.freegang.ktutils.app.contentView | ||
import com.freegang.ktutils.view.parentView | ||
import com.freegang.ktutils.view.traverse | ||
import com.freegang.xpler.core.OnAfter | ||
import com.freegang.xpler.core.OnBefore | ||
import com.freegang.xpler.core.thisActivity | ||
import de.robv.android.xposed.XC_MethodHook | ||
import de.robv.android.xposed.callbacks.XC_LoadPackage | ||
|
||
class HChatRoomActivity(lpparam: XC_LoadPackage.LoadPackageParam) : BaseHook<Any>(lpparam) { | ||
override fun setTargetClass(): Class<*> { | ||
return findClass("com.ss.android.ugc.aweme.im.sdk.chat.ChatRoomActivity") | ||
} | ||
|
||
private var onGlobalLayoutListener: ViewTreeObserver.OnGlobalLayoutListener? = null | ||
|
||
@OnAfter("onCreate") | ||
fun onCreateAfter(it: XC_MethodHook.MethodHookParam, bundle: Bundle?) { | ||
hookBlock(it) { | ||
val contentView = thisActivity.contentView | ||
onGlobalLayoutListener = ViewTreeObserver.OnGlobalLayoutListener { | ||
contentView.traverse { | ||
if ("${it.contentDescription}".contains("邀请朋友")) { | ||
it.parent.parentView.isVisible = false | ||
} | ||
} | ||
} | ||
contentView.viewTreeObserver.addOnGlobalLayoutListener(onGlobalLayoutListener) | ||
} | ||
} | ||
|
||
@OnBefore("onDestroy") | ||
fun onDestroyBefore(it: XC_MethodHook.MethodHookParam) { | ||
hookBlock(it) { | ||
thisActivity.contentView.viewTreeObserver.removeOnGlobalLayoutListener(onGlobalLayoutListener) | ||
onGlobalLayoutListener = null | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
["23.5.0","23.6.0","23.7.0","23.8.0","23.9.0","24.0.0","24.1.0","24.2.0","24.3.0","24.4.0","24.5.0","24.6.0","24.7.0","24.8.0","24.9.0","25.0.0","25.1.0","25.2.0","25.3.0","25.4.0","25.5.0","25.6.0","25.7.0","25.8.0","25.9.0","26.0.0","26.1.0","26.2.0","26.3.0","26.4.0","26.5.0","26.6.0","26.7.0","26.8.0"] | ||
["23.5.0","23.6.0","23.7.0","23.8.0","23.9.0","24.0.0","24.1.0","24.2.0","24.3.0","24.4.0","24.5.0","24.6.0","24.7.0","24.8.0","24.9.0","25.0.0","25.1.0","25.2.0","25.3.0","25.4.0","25.5.0","25.6.0","25.7.0","25.8.0","25.9.0","26.0.0","26.1.0","26.2.0","26.3.0","26.4.0","26.5.0","26.6.0","26.7.0","26.8.0","26.9.0"] |