Giter Club home page Giter Club logo

Comments (15)

pelya avatar pelya commented on July 21, 2024

I cannot fix that without your kernel and your device. What does
/proc/last_kmsg say?
On Nov 17, 2014 3:08 AM, "Antonio Jesús" [email protected] wrote:

when connect usb sometimes to windows pc android-lollypop-kernel crash
forever, don't fix it when android reboot. in kitkat works fine... :S


Reply to this email directly or view it on GitHub
#16.

from android-keyboard-gadget.

ajmtrz avatar ajmtrz commented on July 21, 2024

As soon as i can i upload you my kmsg log

from android-keyboard-gadget.

ajmtrz avatar ajmtrz commented on July 21, 2024

kmsg:

<4>[ 171.458092] type=1400 audit(1416595314.284:101): avc: denied { read write } for pid=4660 comm="GLThread" name="hidg0" dev="tmpfs" ino=24242 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:device:s0 tclass=chr_file
<4>[ 171.458481] type=1400 audit(1416595314.284:102): avc: denied { open } for pid=4660 comm="GLThread" name="hidg0" dev="tmpfs" ino=24242 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:device:s0 tclass=chr_file

With Supersu 2.17 installed. I have tried it to work with /dev/hidg* root:root chown and system:system and nothing, with both this kernel message.

from android-keyboard-gadget.

pelya avatar pelya commented on July 21, 2024

So, the kernel crashes, or USB Keyboard app crashes? The app does not work
with Lollipop yet, I am working on a fix.

On Fri, Nov 21, 2014 at 8:46 PM, Antonio Jesús [email protected]
wrote:

kmsg:

[ 171.458092] type=1400 audit(1416595314.284:101): avc: denied { read
write } for pid=4660 comm="GLThread" name="hidg0" dev="tmpfs" ino=24242
scontext=u:r:untrusted_app:s0 tcontext=u:object_r:device:s0 tclass=chr_file
[ 171.458481] type=1400 audit(1416595314.284:102): avc: denied { open }
for pid=4660 comm="GLThread" name="hidg0" dev="tmpfs" ino=24242
scontext=u:r:untrusted_app:s0 tcontext=u:object_r:device:s0 tclass=chr_file

But i have installed supersu 2.17 and work fine. I have tried it to work
with /dev/hidg* root:root chown and system:system and nothing, with both
this kernel message.


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

from android-keyboard-gadget.

ajmtrz avatar ajmtrz commented on July 21, 2024

When I plug in Linux the app and /dev/hidg* devices works fine, but when I plug in Windows:

First: Previous error

Second: Kernel Crash with this message:

<4>[ 1067.599186] ------------[ cut here ]------------
<4>[ 1067.599261] WARNING: at drivers/usb/dwc3/gadget.c:726 dwc3_gadget_ep_disable+0xf0/0x130()
<4>[ 1067.599375] Device dwc3
<4>[ 1067.599377] ep2in is already disabled
<4>[ 1067.599556] Modules linked in:
<4>[ 1067.599693] from
<4>[ 1067.599822] from
<4>[ 1067.599944] from
<4>[ 1067.600015] from
<4>[ 1067.600164] from
<4>[ 1067.600311] from
<4>[ 1067.600452] from
<4>[ 1067.600574] from
<4>[ 1067.600695] from
<4>[ 1067.600774] from
<4>[ 1067.600901] from
<4>[ 1067.601028] from
<4>[ 1067.601150] from
<4>[ 1067.601224] from
<4>[ 1067.601343] ---[ end trace 94dc221dd068b59a ]---
<6>[ 1067.601463] hidg_unbind: destroying device de15d300

from android-keyboard-gadget.

pelya avatar pelya commented on July 21, 2024

I see. What device is that?
On Nov 21, 2014 9:07 PM, "Antonio Jesús" [email protected] wrote:

When I plug in Linux the app and /dev/hidg* devices works fine, but when I
plug in Windows:

First: Previous error

Second: Kernel Crash with this message:

[ 1067.599186] ------------[ cut here ]------------
[ 1067.599261] WARNING: at drivers/usb/dwc3/gadget.c:726
dwc3_gadget_ep_disable+0xf0/0x130()
[ 1067.599375] Device dwc3
[ 1067.599377] ep2in is already disabled
[ 1067.599556] Modules linked in:
[ 1067.599693] http://unwind_backtrace+0x0/0x140 from
http://dump_stack+0x20/0x24
[ 1067.599822] http://dump_stack+0x20/0x24 from
http://warn_slowpath_common+0x64/0x74
[ 1067.599944] http://warn_slowpath_common+0x64/0x74 from
http://warn_slowpath_fmt+0x40/0x48
[ 1067.600015] http://warn_slowpath_fmt+0x40/0x48 from
http://dwc3_gadget_ep_disable+0xf0/0x130
[ 1067.600164] http://dwc3_gadget_ep_disable+0xf0/0x130 from
http://hidg_unbind+0xac/0x118
[ 1067.600311] http://hidg_unbind+0xac/0x118 from
http://unbind_config+0xbc/0x11c
[ 1067.600452] http://unbind_config+0xbc/0x11c from
http://usb_remove_config+0x84/0xb8
[ 1067.600574] http://usb_remove_config+0x84/0xb8 from
http://android_disable+0x7c/0x90
[ 1067.600695] http://android_disable+0x7c/0x90 from
http://enable_store+0x1b8/0x26c
[ 1067.600774] http://enable_store+0x1b8/0x26c from
http://dev_attr_store+0x28/0x34
[ 1067.600901] http://dev_attr_store+0x28/0x34 from
http://sysfs_write_file+0x170/0x1a0
[ 1067.601028] http://sysfs_write_file+0x170/0x1a0 from
http://vfs_write+0xac/0x158
[ 1067.601150] http://vfs_write+0xac/0x158 from
http://sys_write+0x48/0x88
[ 1067.601224] http://sys_write+0x48/0x88 from
http://ret_fast_syscall+0x0/0x30
[ 1067.601343] ---[ end trace 94dc221dd068b59a ]---
[ 1067.601463] hidg_unbind: destroying device de15d300


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

from android-keyboard-gadget.

ajmtrz avatar ajmtrz commented on July 21, 2024

Nexus 5 with Android 5.0 (lollipop) with this kernel https://github.com/binkybear/kernel_msm.git android-msm-hammerhead-3.4-lollipop-release branch with your patch

from android-keyboard-gadget.

pelya avatar pelya commented on July 21, 2024

I will test my patch on Nexus 7 2012 with Lollipop, but most probably it
will work on Nexus 7. And I don't have Nexus 5.

On Fri, Nov 21, 2014 at 9:13 PM, Antonio Jesús [email protected]
wrote:

Nexus 5 with this kernel https://github.com/binkybear/kernel_msm.git
android-msm-hammerhead-3.4-lollipop-release with your patch


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

from android-keyboard-gadget.

ajmtrz avatar ajmtrz commented on July 21, 2024

Ok. I waitting for you.

from android-keyboard-gadget.

binkybear avatar binkybear commented on July 21, 2024

@discipuloosho - I can confirm the hid patch still works on the Nexus 5 (with updated hid-keyboard). Unsure if you've tested.

from android-keyboard-gadget.

ajmtrz avatar ajmtrz commented on July 21, 2024

No @binkybear , when plug in windows, kernel crash, in Linux no problem. Tested several times with many windows (7).

from android-keyboard-gadget.

binkybear avatar binkybear commented on July 21, 2024

@discipuloosho - I just saw your email. I only tested on OSX so that's good to know about the Windows problem. Sorry for clogging up this issue!

from android-keyboard-gadget.

pelya avatar pelya commented on July 21, 2024

I've updated Nexus 7 2012 kernel to Lollipop version, and it works fine with Windows. So I don't know how to reproduce or fix this crash.

from android-keyboard-gadget.

ajmtrz avatar ajmtrz commented on July 21, 2024

Thanks Pelya, i don't know too, something happens. i will investigate ... :)

from android-keyboard-gadget.

ajmtrz avatar ajmtrz commented on July 21, 2024

For this problem does not appear is necessary connect nexus device as mtp or ptp usb mode, else kernel crash and disappear /dev/hidg* interfaces.

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.