Skip to content

Commit

Permalink
新增博文:软件层面禁用安卓音量键
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Lord authored Sep 11, 2022
1 parent 085f174 commit a2443a3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions _posts/2022-09-11-软件层面禁用安卓音量键.md
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. 保存,重启手机。

0 comments on commit a2443a3

Please sign in to comment.