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

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 2/1/2018 15:35:22      1#
  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      2#
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

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 2/2/2018 09:34:09      3#
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

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 2/2/2018 15:07:21      4#
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

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

This forum Credits Rules

Quick Reply Back to top Back to list