Skip to content

Commit

Permalink
fix: RemoveOpenAppConfirmationPopup hook failed && BeautyPrivacy find…
Browse files Browse the repository at this point in the history
… failed

Signed-off-by: mu7220 <[email protected]>
  • Loading branch information
lingqiqi5211 committed Mar 1, 2024
1 parent 2ac4cf2 commit 329b9d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ object UnlockCustomPhotoFrames : BaseHook() {
other(method)
}

if (isOpenSpring) {
if (isOpenSpring && orderedPublicC.isNotEmpty()) {
orderedPublicC.forEach { method ->
logI(TAG, "Public Spring name is $method") // debug 用
other(method) // 1.6.0.5.2 新增限时新春定制画框
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class RemoveOpenAppConfirmationPopup : BaseHook() {
.filterByName("setText")
.filterByParamTypes {
it[0] == CharSequence::class.java
}.single().createHook {
}.first().createHook {
after {
val textView = it.thisObject as TextView
if (it.args.isNotEmpty() && it.args[0]?.toString().equals(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object BeautyPrivacy : BaseHook() {
private val R0 by lazy {
dexKitBridge.findMethod {
matcher {
addUsingString("persist.sys.privacy_camera")
addUsingStringsEquals("persist.sys.privacy_camera")
}
}.single().getMethodInstance(EzXHelper.safeClassLoader)
}
Expand Down

0 comments on commit 329b9d9

Please sign in to comment.