電源鍵壞掉的軟體解法 - 手機討論

By Delia
at 2017-12-02T01:12
at 2017-12-02T01:12
Table of Contents
小弟的 z1 在陪了我四年後出了個簍子
電源鍵壞掉,只要稍稍晃到就會被感應到按壓
所以呈現一個不斷鎖屏解鎖鎖屏解鎖的狀態
原本載了一個什麼 keylayout remap 之類的 app,但無法改電源鍵
經過了一番 Google 終於找到解法
(原文:https://whitfin.io/remap-the-android-power-button/)
首先,手機要 root
然後安裝 root explorer 之類可以開到底層資料夾的文件瀏覽器
實體按鍵的配置檔會在
/system/usr/keylayout
裡面可能有一個或數個 .kl 檔,反正都點開來看一看
找到關鍵字 POWER、VOLUME_UP、VOLUME_DOWN
然後就動手改一改吧!
(我的例子是把 POWER 鍵關掉,然後把原本的音量鍵上改成電源鍵)
改之前可以先考慮備份一份以便不時之需
如果是用 root explorer 內建的 editor,他會自己建立備份,還蠻方便的!
最後再重開機,就完成囉!
(電源鍵壞掉的可以搭 adb,用 adb reboot 重啟)
路徑:
https://imgur.com/Yr3OB5o.png
編輯:
https://imgur.com/d8WLDX4.png
原本的 Generic.kl:
https://imgur.com/qENixgM.png
改過的 Generic.kl:
https://imgur.com/xokPZVA.png
另一個改過的檔案 gpio-keys.kl:
https://imgur.com/io6UNCy.png
希望可以幫助到電源鍵壞掉或其他實體鍵壞掉的人:)
--
電源鍵壞掉,只要稍稍晃到就會被感應到按壓
所以呈現一個不斷鎖屏解鎖鎖屏解鎖的狀態
原本載了一個什麼 keylayout remap 之類的 app,但無法改電源鍵
經過了一番 Google 終於找到解法
(原文:https://whitfin.io/remap-the-android-power-button/)
首先,手機要 root
然後安裝 root explorer 之類可以開到底層資料夾的文件瀏覽器
實體按鍵的配置檔會在
/system/usr/keylayout
裡面可能有一個或數個 .kl 檔,反正都點開來看一看
找到關鍵字 POWER、VOLUME_UP、VOLUME_DOWN
然後就動手改一改吧!
(我的例子是把 POWER 鍵關掉,然後把原本的音量鍵上改成電源鍵)
改之前可以先考慮備份一份以便不時之需
如果是用 root explorer 內建的 editor,他會自己建立備份,還蠻方便的!
最後再重開機,就完成囉!
(電源鍵壞掉的可以搭 adb,用 adb reboot 重啟)
路徑:
https://imgur.com/Yr3OB5o.png

編輯:
https://imgur.com/d8WLDX4.png

原本的 Generic.kl:
https://imgur.com/qENixgM.png

改過的 Generic.kl:
https://imgur.com/xokPZVA.png

另一個改過的檔案 gpio-keys.kl:
https://imgur.com/io6UNCy.png

希望可以幫助到電源鍵壞掉或其他實體鍵壞掉的人:)
--
Tags:
手機
All Comments

By Selena
at 2017-12-04T23:28
at 2017-12-04T23:28

By Lydia
at 2017-12-07T21:43
at 2017-12-07T21:43

By Gary
at 2017-12-10T19:59
at 2017-12-10T19:59

By Wallis
at 2017-12-13T18:15
at 2017-12-13T18:15

By Isabella
at 2017-12-16T16:30
at 2017-12-16T16:30

By Thomas
at 2017-12-19T14:46
at 2017-12-19T14:46

By Suhail Hany
at 2017-12-22T13:02
at 2017-12-22T13:02

By Charlotte
at 2017-12-25T11:18
at 2017-12-25T11:18

By Frederica
at 2017-12-28T09:33
at 2017-12-28T09:33

By Kama
at 2017-12-31T07:49
at 2017-12-31T07:49

By Genevieve
at 2018-01-03T06:05
at 2018-01-03T06:05
Related Posts
xzp無法連接ps3手把了

By Lily
at 2017-12-02T01:08
at 2017-12-02T01:08
ios現在是出大包了嗎?!

By Queena
at 2017-12-02T01:06
at 2017-12-02T01:06
初用IPHONE應該要用幾代就能有完整體驗?

By Anthony
at 2017-12-02T01:01
at 2017-12-02T01:01
iphone7異常發燙

By Barb Cronin
at 2017-12-02T01:00
at 2017-12-02T01:00
台灣被鐘文澤羞辱??OPPO R11S開箱上手

By Callum
at 2017-12-02T00:50
at 2017-12-02T00:50