Comments (7)
I've added Nexus 10 patch - it compiles, but I cannot test it:
https://github.com/pelya/android-keyboard-gadget/blob/master/not-tested/kernel-3.4-nexus10-2012.patch
On Tue, Aug 12, 2014 at 10:33 AM, binkybear [email protected]
wrote:
I'm trying to compile for the Nexus 10 and the patch for 3.4 works mostly
fine except:
- if (hid_enabled)
- android_enable_function(dev, conf, "hid");
Here is the source file for reference:
I know there isn't a conf in this android.c so I tried replacing with
'name' but it still doesn't seem to want to build. Any help would be much
appreciated.—
Reply to this email directly or view it on GitHub
#6.
from android-keyboard-gadget.
pelya - Thanks for the quick patch and the kernel built/compiled fine. Flashed the kernel and I tried running the usb android app and I only get instructions to build the custom kernel. I added the /dev/hid* in ueventd.rc manually and killed ueventd (so that it restarted) and still nothing.
Tried a dmesg | grep hid but that didn't return anything so I don't have any debugging.
from android-keyboard-gadget.
If /dev/hidg0 and hidg1 exists, you only need to set appropriate
permissions to them, like world-writable.
The app will try to change permissions on start, using superuser command.
Do you have a proper su command installed, that will work for apps?
On Aug 13, 2014 7:58 AM, "binkybear" [email protected] wrote:
pelya - Thanks for the quick patch and the kernel built/compiled fine.
Flashed the kernel and I tried running the usb android app and I only get
instructions to build the custom kernel. I added the /dev/hid* in
ueventd.rc manually and killed ueventd (so that it restarted) and still
nothing.—
Reply to this email directly or view it on GitHub
#6 (comment)
.
from android-keyboard-gadget.
I don't have either hidg0 or hidg2 in /dev. Su works but USB Keyboard is not even asking for root permissions.
from android-keyboard-gadget.
That means the kernel does not contain the patch - these files should be
created whenever you plug your phone into PC.
I suggest to ask the maintainer of that kernel, maybe he forgot to put it
into some of the versions:
http://forum.xda-developers.com/showthread.php?t=2725023
On Aug 14, 2014 3:25 AM, "binkybear" [email protected] wrote:
I don't have either hidg0 or hidg2 in /dev. Su works but USB Keyboard is
not even asking for root permissions.
—
Reply to this email directly or view it on GitHub
#6 (comment)
.
from android-keyboard-gadget.
Pelya,
Thanks for all your help. I'm compiling the kernel myself and your patched have worked well when I've built them on the Nexus 7 and Nexus 5. I'm still not sure what the issue is, but I'll keep trying at it. Thanks again for your quick responses and I'll let you know if I ever get it working.
from android-keyboard-gadget.
Pelya,
I was able to get the keyboard to show up on the n10 by modifying your patch with:
err = android_enable_function(dev, name);
if (err)
pr_err("android_usb: Cannot enable '%s' (%d)",
name, err);
if (!strcmp(name, "hid"))
hid_enabled = 1;
/* HID driver always enabled, it's the whole point of this kernel patch */
android_enable_function(dev, "hid");
}
mutex_unlock(&dev->mutex);
from android-keyboard-gadget.
Related Issues (20)
- Some Questions...Pls Help HOT 2
- Stuck on opening HOT 10
- need hid patch for 4.4.117 kernel
- Ji
- Keyboard
- Require patch for samsung grand 2
- nokia 1020 HOT 1
- No f_hid.c found pls help
- pelya/Android_keyword gadget
- Permissions bug HOT 2
- rdp support HOT 1
- could you add support for samsung galaxy j3 (2016)
- Please send the poc_android files
- what is the VNC password?
- Pin
- How to get or Where can i find the hid-keyboard file?
- Add redmi note 4 support
- No 64bit support
- hid-gadget-test behaving strange
- Well
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-keyboard-gadget.