diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/mediaeditor/UnlockCustomPhotoFrames.kt b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/mediaeditor/UnlockCustomPhotoFrames.kt index a03069ea14..45aa314622 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/mediaeditor/UnlockCustomPhotoFrames.kt +++ b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/mediaeditor/UnlockCustomPhotoFrames.kt @@ -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 新增限时新春定制画框 diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/securitycenter/RemoveOpenAppConfirmationPopup.kt b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/securitycenter/RemoveOpenAppConfirmationPopup.kt index ffc8444278..3437aaac54 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/securitycenter/RemoveOpenAppConfirmationPopup.kt +++ b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/securitycenter/RemoveOpenAppConfirmationPopup.kt @@ -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( diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/securitycenter/beauty/BeautyPrivacy.kt b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/securitycenter/beauty/BeautyPrivacy.kt index 123d6a31d8..8c9ec9cbae 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/securitycenter/beauty/BeautyPrivacy.kt +++ b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/securitycenter/beauty/BeautyPrivacy.kt @@ -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) }