[Q] Send Key from PC/Laptop or External Keyboard, Keyboard Simulation. - Android Software/Hacking General [Developers Only]

Hi,
Android <-- USB/Bluetooth <-- PC/Laptop (Keyboard)
Few months ago, I try to get this things to work but no luck. Now I am really need to solve this again to make my life easier.
The case is in work place I have PC/laptop and my Android phone of couse. I want to use my phone with actively require keyboard typing for some reasons. Since I am using HTC Desire and I have two keyboards on my desk, why not I am using any of the keyboards to pair with my Android!.
I dont have any bluetooth keyboard and I want to utilize my desktop keyboard
After searching and googling with no luck for second time, I post here by hoping somebody can share with me with the same situation and interesting Android feature.
I know someone has hack a USB keyboard to directly connect to Micro USB in HTC to act as USB On The Go but I am not interested to cut my keyboard wire for that purpose only and not sure it can be done for Desire.
Bluetooth:
Last time I found a solution by using KeyPro from MobileGear and Choose a Freedom or i.Tech Virtual Keyboard driver. Then I create a Windows .NET application on laptop to send a Key code to KeyPro via bluetooth. The problem is I dont know the key codes designed for the keyboard to be sent. The developer also dont want to reveal the codes. I only need any real bluetooth keyboard supported by the supported keyboard to capture the key codes and map into my .NET application to simulate the keyboard from my Laptop.
** If somebody have the supported keyboard please share
USB:
Today I just thinking if possible from USB debugging mode (phone attached to Laptop USB), use adb shell, script/windows app or whats over, can send key to Android, so any active/foreground app can receive it just like what Android keyboard do???
LaNN

Related

[Q] Laptop Dock for All Devices?

I know this might be tough and might not work for all devices, but can we make something, via USB cables/Bluetooth/WiFi or whatsoever to dock our phone to our laptop/desktop?
Perhaps a program for the Windows to show the display of the phone at phone's resolution. Then mouse to navigate within Android (we'll lose multi-touch though - no pinch-to-zoom) and of course keyboard to perform what it should.
Is it very hard to realise?
What I have been thinking is to get the display out, let the mouse be our finger and each keyboard button to map to the alphabet input to the phone.
Impossible?
(Disclaimer: I have zero knowledge in developing an apps or software. It's just a wild idea I have after watching the laptop dock of Atrix)
VNC? Host VNC on the phone and connect to it from a laptop/PC. It'd run slow and **** though.
Webkey (ROOT REQUIRED) accomplishes this with a browser interface over WiFi, I'm not sure if it works over the USB cable.

[Q] Question about "mini bluetooth keyboard" and drivers

Hi,
I have one of those generic mini bluetooth keyboards. It works on my Asus A696 (WM6.0), apart from the fact that it does not recognize the "fn" key; which is needed for some less important things (modus change, contacts, ...); but also for some rather important things like the question mark "?" .
I did some research, and I installed BlueInput, which is included with most "mini bluetooth keyboard"s (but apparently not with mine). Anyway, installed it and it did not recognize any keyboards. Turns out that it is not compatible with the broadcom bluetooth driver, which is used on my Asus device.
So I downloaded the special "broadcom version", and now it works. Not all "fn" functions do, but at least the more important ones like the arrows and the question mark do.
Point is, (although I've set BlueInput to auto start) I have to put my keyboard on discoverable mode always before I can use it, and reconnect it manually in BlueInput (have to retype the "binding code" etc.). So if I disable bluetooth (which I often do to preserve battery life), if I put the keyboard off, if I soft reset my device, ... I always have to go through all that hassle again; quite stupid if you know that with the built-in Windows keyboard support, it immediately automatically connects at the moment the bluetooth on my device is on and the keyboard itself is on.
So my basic question (if you're not too tired after this long intro )is: how can I use my bluetooth keyboard with which driver, having the same facilities as just connecting through Windows Mobile AND being able to use important functions through the "fn" key like a question mark?
I already wondered if Mobile 6.1 or 6.5 has better bluetooth keyboard support (I can upgrade to both); but I'd rather not just try it out before I'm sure that it would function.
I hope anyone can help me out solving this issue;
Thanks in advance,
Liopleurodon

[Q] HP Touchpad BT Keyboard pairing with Android phone / other devices? *solved*

I got one of the hp touchpad bluetooth keyboards on sale with the touchpad. It pairs easily with the touchpad, but if I try to pair it with my android phone, I get prompted for a passcode.
Does anyone know the bluetooth passcode for the keyboard?
***EDIT
Figured it out: apparently android by default doesn't have the capability yet to sync properly with bt keyboards by itself yet (Cyanogenmod might work.) To make it work, I got an app 'Bluetooth Keyboard Easyconnect' from the market. Just turn on bluetooth, open the app, and turn on the hp touchpad keyboard (in that order) and wait - it will sync automatically. Don't try to force the pairing in the bluetooth settings page for your phone.
If you do have a rom that allows manual pairing from the bluetooth settings by default, to sync you need to enter a passcode on your phone when prompted (anything you want - i used 0000), and then type the same code on the bt keyboard and press enter.
market link: https://market.android.com/details?id=net.mybesttools.btkbservice&feature=search_result
Try 000 (three zeros) or 0000 (four zeros). That is what most devices I have tried use.
HP official bluetooth keyboard
I got this for $28 at best buy, and while it works decent with the touchpad, I am wondering: Can it work with other devices?
I got it to pair with windows 7, but when I type, nothing happens. Has anybody else had any success? Something I'm not doing perhaps?
Every comment I've seen about this says the keyboard works only with the touchpad. There is some concern that the keyboard may not even work on the touchpad if/when Android is ported to it.
needslipo said:
I got one of the hp touchpad bluetooth keyboards on sale with the touchpad. It pairs easily with the touchpad, but if I try to pair it with my android phone, I get prompted for a passcode.
Does anyone know the bluetooth passcode for the keyboard?
***EDIT
Figured it out: apparently android by default doesn't have the capability yet to sync properly with bt keyboards by itself yet (Cyanogenmod might work.) To make it work, I got an app 'Bluetooth Keyboard Easyconnect' from the market. Just turn on bluetooth, open the app, and turn on the hp touchpad keyboard (in that order) and wait - it will sync automatically. Don't try to force the pairing in the bluetooth settings page for your phone.
If you do have a rom that allows manual pairing from the bluetooth settings by default, to sync you need to enter a passcode on your phone when prompted (anything you want - i used 0000), and then type the same code on the bt keyboard and press enter.
market link: https://market.android.com/details?id=net.mybesttools.btkbservice&feature=search_result
Click to expand...
Click to collapse
So can your confirm that this keyboard can indeed work with android phones/devices? I just received my purchase of this keyboard, and it looks and feels great. But I don't want a bluetooth keyboard that will only work with WebOS.
Thanks
Works fine with android and webos. Haven't tried it with anything else but it seems to be a generic bt keyboard so I'm sure it's within its capabilities to work on windows or mac.
I have a stock Evo 3D. And it works that.
I can confirm it pairs with the iPad 2, so (presumably) it should also pair with other iOS devices. The iPad asks that you punch in a code to confirm the sync, but I wonder if it's static?
Will this work with Win7?
I currently use the apple BT keyboard for Win7 but used "KeyTweak" to remap the key strokes in the registry for buttons such as delete and the media keys. Everything else works just dandy (cept the damn Ctrl key is in the wrong place...stupid Apple)
Would it be safe to assume that the Touchpad keyboard would work the same and require remapping of a few keys here and there? I see one person above said that they couldn't get it to work with Win7, but then again many people say that it doesn't work with Android and it definitely does...
Thank you all!
I have been able to pair up with my touchpad, 2 android phones, and a ps3 so I am assuming it will work on any bluetooth enabled device
I can't freaking get mine to pair. I can clearly see it, but after putting in the password (I've tried 000, 0000, 1234, 0123, 01234, and ABC) it just keeps asking if I want to pair it again. I'm assuming I don't have the correct PW. Anyone else have one that might work? I'm running the latest CM7 nightly and using the CM7 BT options.
Also, I downloaded that app mentioned earlier and it like.. doesn't work at all.
Mekkakat said:
I can't freaking get mine to pair. I can clearly see it, but after putting in the password (I've tried 000, 0000, 1234, 0123, 01234, and ABC) it just keeps asking if I want to pair it again. I'm assuming I don't have the correct PW. Anyone else have one that might work? I'm running the latest CM7 nightly and using the CM7 BT options.
Also, I downloaded that app mentioned earlier and it like.. doesn't work at all.
Click to expand...
Click to collapse
im having the exact same problem, im running MIUI on my s2 and just cant get it working, with or without the app within the app the keyboard just doesn't show up >_< i just want to pair it up so that i can get confirmation that it will still work when i flash android (when its available) to my touchpad :/ please help!
My Hp Keyboard works with Windows 7 and my dell streak 7 running honeystreak, no app needed. They both ask me to enter in a number upon pairing and they both work great.
I used this app to pair a new HP Touchpad keyboard I bought through Craigslist yesterday for $40. Worked within a few minutes of poking around. My Samsung Infuse is rooted, thanks to a modded Rogers ROM someone shared here. Pairing took a bit of figuring out, mostly because I have Droidwall running and hadn't granted permissions for the app. Then I installed Null Keyboard to get rid of the thumb keyboard while typing. Works AWESOMELY well in QuickOffice and other text editors.
My only complaint is a weirdness in the native email application which makes the keyboard unusable there. I can type random-length text, anywhere from a few words to a short paragraph, then it freezes for a few seconds, then I get a 'text copied to clipboard' message and the new message or reply I was starting vanishes. Not to the Drafts folder or Trash, just gone like it was never there. Doesn't happen with any other input method, as the email application seems generally stable and good. Of course I can write messages in a text editor then copy/paste them into email, but that's a bit of a pain. Anyone heard of this glitch?
Otherwise the HP keyboard is amazingly compact and comfortable to use. There are a few keys which don't seem to work at all and some weird key functions I'll have to learn, like the sideways arrow keys navigate vertically and the vertical arrows do nothing... and how Control A doesn't select all text etc, and how symbol and numeral entry uses odd key combinations, but for basic text entry it's solid. With a good external keyboard for this phone my jump from Windows Mobile is complete, I'm happy to have made the leap.
So I finally got my keyboard. It paired with Win 7 no problems. My issue now is that the "power" button did not remap to the "del" button and program "KeyTweak" doesn't even recognize the "power" button key stroke for me to remap it.
Any ideas? Thank you!
when using the keyboard with android, the keyboard looses connection when it drops into hibernate. It doesn't re-establish connection and must be re-paired from android....am I doing something wrong?
so is it only me but the delete button only deletes a letter (in a word document) at a time and does not continuously delete even if it's held down?
Holding down any key causes it to repeat for me, including the delete key. This is with a Samsung Infuse.
So what am I doing wrong? When I got to connect with any of my Android devices, I get to the password screen and it just won't connect after that. I've tried 000, 0000, 1234 etc, with no avail. Is there a special code?
When I first connected the HP Touchpad keyboard I had to enter a 6 digit code, if memory serves. It wasn't generic - rather a proper code, something you couldn't guess at particular to the pairing request. I entered it (there was a time limit too, a countdown... maybe, but I've been doing a lot of setting up of stuff on this thing and forgetting more than I remember), and since then have not been asked for it. Connecting is a bit twitchy the odd time but mostly I just toggle power on the keyboard off and on again if it's taking more than half a minute to connect. I typically see a pop-up 2 to 4 times on the phone saying the HP keyboard is connecting before it actually does.

[Q] Broadcom Android Keyboard issue

Good morning,
I have an Android Extrenal bluetooth keyboard. This one ( Search B00E8ZDCDU on google)
Works pretty well, but i had an issue. Everytime i want to use the keyboard, i have to go on bluetooth settings and pair the keyboard with my minx x8h. Everytime when i pair the devices, the keyboard generate a new security code (eg 913846).
The problem is the keyboard doesn´t conect automatically to the device next time. Everytime i power off the devices, i have to do the pair again to make it work.
One time , i don´t know how i make the keyboard connect automatically to the device. Just power on both devices and they automatically work. But then i conect the device to an smartphone and losses his settings.
I need to do this again, please help me to configure the keyboard and the minix, so they connect automatically.
Thank you very much.

Question Asus ROG 5s

Hi all does anybody have a solution, Asus ROG 5 & 5s has key mapping features that allow you to operate games with an overlay for mouse & keyboard also controller
I have an Asus controller that works fine,
Unfortunately the mouse and keyboard only works with the: Asus professional dock ( they stopped making these and I am unable to find one for love or money)
Also the desktop dock for the ROG 3 doesn't support the ROG 5 & 5s...
If anyone has a solution that can get the in built key mapping working I will be happy to contribute a generous donation,
With older phones I have rooted them and run apps like panda mouse pro, or bypassed developer options USB debugging with a Bluetooth work around like flydigi.
How every I need a wired connection and would love to use the inbuilt mapping...
Does anyone have a solution or a work around?
Thank you developers and enthusiasts
Durzo_droid said:
Hi all does anybody have a solution, Asus ROG 5 & 5s has key mapping features that allow you to operate games with an overlay for mouse & keyboard also controller
I have an Asus controller that works fine,
Unfortunately the mouse and keyboard only works with the: Asus professional dock ( they stopped making these and I am unable to find one for love or money)
Also the desktop dock for the ROG 3 doesn't support the ROG 5 & 5s...
If anyone has a solution that can get the in built key mapping working I will be happy to contribute a generous donation,
With older phones I have rooted them and run apps like panda mouse pro, or bypassed developer options USB debugging with a Bluetooth work around like flydigi.
How every I need a wired connection and would love to use the inbuilt mapping...
Does anyone have a solution or a work around?
Thank you developers and enthusiasts
Click to expand...
Click to collapse
have you ever figured anything out?
Durzo_droid said:
Hi all does anybody have a solution, Asus ROG 5 & 5s has key mapping features that allow you to operate games with an overlay for mouse & keyboard also controller
I have an Asus controller that works fine,
Unfortunately the mouse and keyboard only works with the: Asus professional dock ( they stopped making these and I am unable to find one for love or money)
Also the desktop dock for the ROG 3 doesn't support the ROG 5 & 5s...
If anyone has a solution that can get the in built key mapping working I will be happy to contribute a generous donation,
With older phones I have rooted them and run apps like panda mouse pro, or bypassed developer options USB debugging with a Bluetooth work around like flydigi.
How every I need a wired connection and would love to use the inbuilt mapping...
Does anyone have a solution or a work around?
Thank you developers and enthusiasts
Click to expand...
Click to collapse
Hello, maybe because of the time you don't want it anymore, but I managed to unlock the mapping feature without the dock.
As here in Brazil technology is backward and expensive, I recently bought a rog phone 5s and was disappointed to see that the feature was not enabled. All the videos I watched from the phone before buying, I don't remember hearing that it only worked with exclusive accessories.
I tried to contact asus but they don't pay attention to these cases. So I started to analyze the system and found a way to enable the feature even without having any device connected to it. So I connected my generic usb-c hub with mouse and keyboard and everything worked as expected. I was able to map the keys and mouse without any problem.

			
				
First we need to enable "USB DEBUG" in the phone's developer options.
Now we need to install "ADB" on the computer and then plug the phone into the usb port and trust the device. With adb installed and the device trusted, we can now run the following command:
"adb shell setprop sys.asus.donglestate_GV_PD 2".
The property value can be either 2 or 3. This "identifies" the Asus Dock and tells the system that it is connected. Depending on the phone model, there may be a variation of the property, it can be: "vendor.asus.donglestate_GV_PD" or "sys.asus.donglestate_GV_PD", in my case the second option corresponds to my ROG PHONE 5S phone.
The command needs to be run again in case you shut down or restart your phone.
Contents of my script:
#!/bin/bash
bash -c "adb shell setprop 'sys.asus.donglestate_GV_PD' 2"
My phone has Android 12 and everything works normally.
It doesn't need root or anything like that, it just simulates what would likely happen when plugging in the Professional Dock.
Now you can use your dock or usb-c hub with keyboard and mouse and be happy.
This is also possible to do directly on the phone using "Local ADB" but it is a bit more complicated.

Categories

Resources