-
Notifications
You must be signed in to change notification settings - Fork 166
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
1 parent
eae824a
commit 6a2c1ef
Showing
10 changed files
with
70 additions
and
261 deletions.
There are no files selected for viewing
48 changes: 0 additions & 48 deletions
48
app/src/main/java/com/sevtinge/hyperceiler/module/hook/joyose/DisableCloudControl.java
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
app/src/main/java/com/sevtinge/hyperceiler/module/hook/joyose/EnableGpuTuner.java
This file was deleted.
Oops, something went wrong.
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
8 changes: 5 additions & 3 deletions
8
.../main/java/com/sevtinge/hyperceiler/module/hook/screenrecorder/UnlockMoreVolumeFromNew.kt
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
20 changes: 6 additions & 14 deletions
20
app/src/main/java/com/sevtinge/hyperceiler/module/hook/screenshot/UnlockMinimumCropLimit.kt
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,37 +1,29 @@ | ||
package com.sevtinge.hyperceiler.module.hook.screenshot | ||
|
||
import android.annotation.SuppressLint | ||
import com.github.kyuubiran.ezxhelper.EzXHelper | ||
import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHook | ||
import com.sevtinge.hyperceiler.module.base.BaseHook | ||
import com.sevtinge.hyperceiler.utils.DexKit.addUsingStringsEquals | ||
import com.sevtinge.hyperceiler.utils.DexKit.dexKitBridge | ||
import java.lang.reflect.Modifier | ||
|
||
@SuppressLint("StaticFieldLeak") | ||
object UnlockMinimumCropLimit : BaseHook() { | ||
private val mScreenCropViewMethod by lazy { | ||
dexKitBridge.findMethod { | ||
matcher { | ||
declaredClass { | ||
addUsingStringsEquals("fixImageBounds %f,%f") | ||
} | ||
usingNumbers(0.5f, 200) | ||
returnType = "int" | ||
paramCount = 0 | ||
modifiers = Modifier.PRIVATE | ||
} | ||
}.map { it.getMethodInstance(EzXHelper.classLoader) }.first() | ||
}.firstOrNull()?.getMethodInstance(EzXHelper.safeClassLoader) | ||
} | ||
|
||
|
||
override fun init() { | ||
mScreenCropViewMethod.createHook { | ||
mScreenCropViewMethod!!.createHook { | ||
returnConstant(0) | ||
} | ||
|
||
/*val mScreenCropView = | ||
findClassIfExists("com.miui.gallery.editor.photo.screen.crop.ScreenCropView\$h") | ||
returnIntConstant(mScreenCropView, "a")*/ | ||
} | ||
|
||
/*private fun returnIntConstant(cls: Class<*>?, methodName: String) { | ||
findAndHookMethod(cls, methodName, XC_MethodReplacement.returnConstant(0)) | ||
}*/ | ||
} |
Oops, something went wrong.