Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevtinge committed Aug 10, 2024
1 parent 7691111 commit a823ef7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* This file is part of HyperCeiler.
*
* HyperCeiler is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* Copyright (C) 2023-2024 HyperCeiler Contributions
*/

package com.sevtinge.hyperceiler.module.hook.systemframework;

import com.sevtinge.hyperceiler.module.base.BaseHook;

public class VolumeMediaSteps extends BaseHook {
@Override
public void init() throws NoSuchMethodException {
findAndHookMethod("android.os.SystemProperties", "getInt", String.class, int.class, new MethodHook() {
@Override
protected void before(MethodHookParam param) throws Throwable {
if ("ro.config.media_vol_steps".equals(param.args[0])) {
if (mPrefsMap.getInt("system_framework_volume_media_steps", 15) > 15) param.setResult(mPrefsMap.getInt("system_framework_volume_media_steps", 15));
}
}
});
}
}

This file was deleted.

0 comments on commit a823ef7

Please sign in to comment.