Giter Club home page Giter Club logo

Comments (11)

the-st0rm avatar the-st0rm commented on July 21, 2024

copy of the patched files are here https://github.com/the-st0rm/android-keyboard-gadget/tree/master/Samsung_S3

from android-keyboard-gadget.

pelya avatar pelya commented on July 21, 2024

Hi. What kernel did you use, could you please give me the link?
When you plug your phone into PC, there should be devices /dev/hidg0 and
/dev/hidg1 created in filesystem, if you don't have them - the patch
doesn't work.

On Sun, Oct 26, 2014 at 5:40 PM, the-st0rm [email protected] wrote:

copy of the patched files are here
https://github.com/the-st0rm/android-keyboard-gadget/tree/master/Samsung_S3


Reply to this email directly or view it on GitHub
#11 (comment)
.

from android-keyboard-gadget.

the-st0rm avatar the-st0rm commented on July 21, 2024

I can see the /dev/hidg0 and /dev/hidg1 created ..
the kernel I am using is https://github.com/CyanogenMod/android_kernel_samsung_smdk4412

from android-keyboard-gadget.

pelya avatar pelya commented on July 21, 2024

Then it should work. Install this app to perform keyboard input:

https://play.google.com/store/apps/details?id=remote.hid.keyboard.client

It needs root to open these devices. If your phone is not rooted, you can
do 'chmod 666 /dev/hidg0 /dev/hidg1' from ADB shell, and then launch the
app.
On Oct 28, 2014 12:28 AM, "the-st0rm" [email protected] wrote:

I can see the /dev/hidg0 and /dev/hidg1 created ..
the kernel I am using is
https://github.com/CyanogenMod/android_kernel_samsung_smdk4412


Reply to this email directly or view it on GitHub
#11 (comment)
.

from android-keyboard-gadget.

the-st0rm avatar the-st0rm commented on July 21, 2024

the permissions are ok but it is not working. I think the problem in this file
android.c
in this function specifically
android_enable_function

in the kernel you built the device for it the android_enable_function takes three arguments in the Samasung S3 kernel the function takes only 2 arguments !!
This is the definition of the function
static int android_enable_function(struct android_dev *dev, char *name)

I think this is the problem

On a side note I built it for Nexus 4 and it worked perfectly so thank you so much
but I was trying to send the three combination alt+ctrl+t but it didn't work !!
I did this
echo --left-ctrl --left-alt t | hid-test.bin /dev/hidg0 keyboard

any suggestions??

from android-keyboard-gadget.

pelya avatar pelya commented on July 21, 2024

You may try the patch for kernel 3.1, that's what I'm using for Nexus 7
2012 kernel:
https://github.com/pelya/android-keyboard-gadget/blob/master/kernel-3.1.patch
android_enable_function() in that patch has 2 parameters instead of 3.

I've checked your hid-gadget-test command, and discovered that I broke this
functionality, so I've fixed it and updated it, please re-download the file:
https://github.com/pelya/android-keyboard-gadget/tree/master/hid-gadget-test

On Wed, Oct 29, 2014 at 2:45 PM, the-st0rm [email protected] wrote:

the permissions are ok but it is not working. I think the problem in this
file
android.c
in this function specifically
android_enable_function

in the kernel you built the device for it the android_enable_function
takes three arguments in the Samasung S3 kernel the function takes only 2
arguments !!
This is the definition of the function
static int android_enable_function(struct android_dev *dev, char *name)

I think this is the problem

On a side note I built it for Nexus 4 and it worked perfectly so thank you
so much
but I was trying to send the three combination alt+ctrl+t but it didn't
work !!
I did this
echo --left-ctrl --left-alt t | hid-test.bin /dev/hidg0 keyboard

any suggestions??


Reply to this email directly or view it on GitHub
#11 (comment)
.

from android-keyboard-gadget.

the-st0rm avatar the-st0rm commented on July 21, 2024

@pelya did you fix the c code ??

from android-keyboard-gadget.

the-st0rm avatar the-st0rm commented on July 21, 2024

@pelya I would like to thank you so much for your effort dude. Great work and I really appreciate it 👍

from android-keyboard-gadget.

pelya avatar pelya commented on July 21, 2024

Yes, I've both fixed C code and updated binaries.

On Wed, Oct 29, 2014 at 3:38 PM, the-st0rm [email protected] wrote:

@pelya https://github.com/pelya I would like to thank you so much for
your effort dude. Great work and I really appreciate it [image: 👍]


Reply to this email directly or view it on GitHub
#11 (comment)
.

from android-keyboard-gadget.

horllste avatar horllste commented on July 21, 2024

Hello, can you please help me with the installation guide or point me to one, i dont understand this, am using samsunt s3 at&t, cynogenmod 13.0, android 601.

thanks

from android-keyboard-gadget.

conrad-heimbold avatar conrad-heimbold commented on July 21, 2024

@horllste : Here is a guide on how to build lineageos for Samsung Galaxy S3 International (i9300):
https://wiki.lineageos.org/devices/i9300/build . The step of patching for HID support has to be done before "brunch i9300".

The problem seems to have been fixed, therefore closing.

from android-keyboard-gadget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.