-
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
085f174
commit a2443a3
Showing
1 changed file
with
21 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
tags: [Android] | ||
date: 2022-9-11 8:00 | ||
title: 软件层面禁用安卓音量键 | ||
--- | ||
|
||
## 起因 | ||
|
||
由于本人的手机`音量+`会自动被按下,故屏蔽以防止音量突然被拉满 | ||
|
||
以下内容基于使用 crDroid 6.15,Android 10 的 Mi MIX 2S | ||
|
||
## 使用 | ||
|
||
**以下内容依赖于 Magisk** | ||
|
||
以下内容中的`YOUR_MODULE_NAME`请自行修改为你的 Magisk 模块的目录 | ||
|
||
1. 将`/system/usr/keylayout/gpio-keys.kl`复制为`/data/adb/modules/YOUR_MODULE_NAME/system/usr/keylayout/gpio-keys.kl` | ||
2. 在`VOLUME_UP`出现那一行最前面插入`# ` | ||
3. 保存,重启手机。 |