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?
--- a/frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -7831,7 +7831,7 @@ public class WindowManagerService extends IWindowManager.Stub
// Let the policy update hidden states.
config.keyboardHidden = Configuration.KEYBOARDHIDDEN_NO;
- config.hardKeyboardHidden = Configuration.HARDKEYBOARDHIDDEN_YES;
+ config.hardKeyboardHidden = Configuration.HARDKEYBOARDHIDDEN_NO;
config.navigationHidden = Configuration.NAVIGATIONHIDDEN_NO;
mPolicy.adjustConfigurationLw(config, keyboardPresence, navigationPresence);
}
if u want the virtual keyboard always show when the physical one active,
Settings->Languege/Input->Physical Keyboard->show virtual keyboard
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?
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.
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.
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
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!
DumpTOP에서 제공하는 제품들은 품질이 아주 좋으며 또 업뎃속도도 아주 빠릅니다 만약 우리가제공하는ServiceNow CIS-Discovery인증시험관련 덤프를 구매하신다면ServiceNow CIS-Discovery시험은 손쉽게 성공적으로 패스하실 수 있습니다.
No question, this content is getting a like. Sharing the Reliable aPHRi test pattern test materials with you all—best of luck!
That piece really enriched my understanding. The RCWA test pattern exam questions are free for everyone—boost your career and salary today!
This is such a motivational piece, thank you for sharing! Using this NS0-014 reliable exam vce, I secured a promotion and salary boost. Now it’s free for everyone. Wishing you all success in your professional paths!
Your article is absolutely brilliant, thank you for sharing! Sharing the Examcollection 312-50v13 vce test materials with you all—best of luck!
Your article is brilliant, thank you for providing this amazing share! This is the CEDP test name exam that helped me advance in my career with a promotion and raise. It’s free today for all of you. Wishing you success!