Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

How to disable internal keypad while external keypad is connected to rk3399

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240

How to disable internal keypad while external keypad is connected to rk3399

Posted at 2/1/2018 13:45:52      View:5026 | Replies:9        Print      Only Author   [Copy Link] 1#
Hello,
My problem is, I want to disable internal keypad only when the external keypad is attached to rk3399.
Can we do this? And Can we do this from an android application or this can be done through firmware modification only? If we have to go with firmware modification only then what they should be?
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 2/1/2018 15:35:22        Only Author  2#
  1. --- a/frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java
  2. +++ b/frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java
  3. @@ -7831,7 +7831,7 @@ public class WindowManagerService extends IWindowManager.Stub

  4.          // Let the policy update hidden states.
  5.          config.keyboardHidden = Configuration.KEYBOARDHIDDEN_NO;
  6. -        config.hardKeyboardHidden = Configuration.HARDKEYBOARDHIDDEN_YES;
  7. +        config.hardKeyboardHidden = Configuration.HARDKEYBOARDHIDDEN_NO;
  8.          config.navigationHidden = Configuration.NAVIGATIONHIDDEN_NO;
  9.          mPolicy.adjustConfigurationLw(config, keyboardPresence, navigationPresence);
  10.      }
Copy the code
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 2/1/2018 15:38:44        Only Author  3#
if u want the virtual keyboard always show when the physical one active,
Settings->Languege/Input->Physical Keyboard->show virtual keyboard
Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 2/1/2018 21:34:55        Only Author  4#

I have tried this code but when I attach external keyboard it doesn't detect it and always go to this condition "config.hardKeyboardHidden = Configuration.HARDKEYBOARDHIDDEN_YES";

I also want to hide softKeyboard when external one is connected. Is there any way to hide it permanently until the External keyboard is detached?
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 2/2/2018 09:34:09        Only Author  5#
KrunalShah Posted at 2/1/2018 21:34
I have tried this code but when I attach external keyboard it doesn't detect it and always go to t ...

I sure that code will work, have u tryed it yet ?
if u do not active the virtual keyboard, it will always not show when u attach the external keyboard.
Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 2/2/2018 14:15:47        Only Author  6#
leung先森 Posted at 2/2/2018 09:34
I sure that code will work, have u tryed it yet ?
if u do not active the virtual keyboard, it wil ...

I have tried the code you have suggested.
In Firefly when I attach an external keyboard and in Settings->Languege/Input->Physical Keyboard->show virtual keyboard I keep it disabled, it is still showing virtual keyboard.
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 2/2/2018 15:07:21        Only Author  7#
KrunalShah Posted at 2/2/2018 14:15
I have tried the code you have suggested.
In Firefly when I attach an external keyboard and in S ...

just change the code above , then complie it
mmm frameworks/base/services/
then push the out/target/product/rk3399_firefly_box/system/framework/services.jar into the board /system/framework/
and soft reboot the board , try to use it again
Reply

Use props Report

131

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
131
Posted at before yesterday 07:25        Only Author  8#
Your article has made a real difference to me, thank you! Let’s do this! Wishing for success in the Valid HPE6-A86 exam camp exam!
Reply

Use props Report

128

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
128
Posted at yesterday 10:07        Only Author  9#
DumpTOP에서 제공하는 제품들은 품질이 아주 좋으며 또 업뎃속도도 아주 빠릅니다 만약 우리가제공하는ServiceNow CIS-Discovery인증시험관련 덤프를 구매하신다면ServiceNow CIS-Discovery시험은 손쉽게 성공적으로 패스하실 수 있습니다.
Reply

Use props Report

122

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
122
Posted at yesterday 10:58        Only Author  10#
I’m deeply thankful for your article, it really stuck with me. The MS-721 exam dumps free test was a key factor in my professional growth, and now I’m sharing it with you for free!
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list