-
Notifications
You must be signed in to change notification settings - Fork 1
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
cf4fcec
commit 4c57112
Showing
5 changed files
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
- 允许所有应用使用强制深色模式 | ||
- 使用原生打开方式界面 | ||
- 使用原生截屏 | ||
- 禁用高媒体音量安全警告 | ||
|
||
#### 系统界面 | ||
|
||
|
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
21 changes: 21 additions & 0 deletions
21
...main/java/com/yifeplayte/wommo/hook/hooks/singlepackage/android/DisableSafeMediaVolume.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.yifeplayte.wommo.hook.hooks.singlepackage.android | ||
|
||
import com.github.kyuubiran.ezxhelper.ClassUtils.loadClass | ||
import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHook | ||
import com.github.kyuubiran.ezxhelper.finders.MethodFinder.`-Static`.methodFinder | ||
import com.yifeplayte.wommo.hook.hooks.BaseHook | ||
|
||
@Suppress("unused") | ||
object DisableSafeMediaVolume : BaseHook() { | ||
override val key = "disable_safe_media_volume" | ||
override fun hook() { | ||
loadClass("com.android.server.audio.SoundDoseHelperStubImpl").methodFinder() | ||
.filterByName("updateSafeMediaVolumeIndex").filterNonAbstract().single().createHook { | ||
returnConstant(0x7ffffffe) | ||
} | ||
loadClass("com.android.server.audio.SoundDoseHelper").methodFinder() | ||
.filterByName("safeMediaVolumeIndex").filterNonAbstract().single().createHook { | ||
returnConstant(0x7ffffffe) | ||
} | ||
} | ||
} |
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