pelya / android-keyboard-gadget

Convert your Android device into USB keyboard/mouse, control your PC from your Android device remotely, including BIOS/bootloader.
Apache License 2.0
1.22k stars 308 forks source link

Stuck on opening #187

Open TheRealSalad opened 3 years ago

TheRealSalad commented 3 years ago

Xiaomi Redmi 7A Kernel 4.9.112 Android 9, Miui 11.0.7.0 global Magisk 20.4 Recovery PitchBlack 64bit (system is 32bit)

Once i start the app, only this text show us: opening /dev/hidg0 and /dev/hidg1 and it is stuck here. I have also turned on hid keyboard and mouse in usb gadget tool and allowed magisk root perms. (Rucky from nethunter store works fine). The weird this about this is that the app worker only once, i dont know what i did to make it work, but it doesnt now. Thanks for answers.

Flopster101 commented 3 years ago

Exactly the same issue here and with the same device.

Kernel 4.9.250 Android 10, HavocOS 3.12 Official GSI ROM (running as ARM64 with custom vendor) Magisk 21.2 OrangeFox Recovery Project R11 64 bit

Device shows correctly as keyboard and mouse in computer.

TheRealSalad commented 3 years ago

So, after some digging, i have found this error when opening: Failed to get file list remote.hid.keyboard.client

TheRealSalad commented 3 years ago

Also, after few minutes of running the app, i have found those:

remote.hid.keyboard.client/ remote.hid.keyboard.client.MainActivity#O] disconnect: not connected (req=1) (BufferQueue Producer)

remote.hid.keyboard.client/ remote.hid.keyboard.client. MainActivity#0] dequeue Buffer: BufferQueue has no connected producer (BufferQueue Producer)

remote.hid.keyboard.client/ remote.hid.keyboard.client. MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! (InputDispatcher)

Kuuhhl commented 3 years ago

I used USB Gadget Tool to modify my configfs and the PC recognizes the phone as a keyboard successfully. I am also stuck on this message: opening /dev/hidg0 and /dev/hidg1 after granting superuser access.

enn25 commented 3 years ago

Asus zenfone max pro m1 Kernel 4.4.262-Project-Infinity Nebula Android 10 stock rom Magisk 22.0

Same issue here, the app is stucked at opening /dev/hidg0 and /dev/hidg1.Is there any way to temporarily fix this issue. I used the USB Gadget tool to modify the config FS. Screenshot_20210331-090855

TheRealSalad commented 3 years ago

So, recently, i installed a custom rom named CrDroid with android 10 to see, if it would make any difference, and it actually worked, the rom is based on 64 bit core. Some more info;

Kernel: 4.9.249-@AOiSPdev-g3c62dba2380a

Android 10, API 29, crDroid v 6,14

magisk 21.4 (newer version causes system to crash for some reason) amr64-v8a

Well, maybe it didn't work because of the 32 bit system? Not sure.

TheRealSalad commented 3 years ago

Or maybe the stock roms and somewhat locked or whatever

gatesps commented 2 years ago

I had the same problem and resolved it by disabling SELinux. On my device SELinux re-enables itself after every boot, so you may have to do this repeatedly.

ferhacks commented 2 years ago

download this apk and install

, then open it and give it superuser permissions and hit androidsu

and they write this:

setenforce 0

and it should already work

TheRealSalad commented 2 years ago

Thank you so much, it worked

Dne st 25. 8. 2021 20:21 uživatel ferhacks @.***> napsal:

download this apk https://store.nethunter.com/en/packages/com.offsec.nhterm/ and install

, then open it and give it superuser permissions and hit androidsu

and they write this:

setenforce 0

and it should already work

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pelya/android-keyboard-gadget/issues/187#issuecomment-905768369, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASLM7XTIQRHTVVIYXBNSILLT6UYEFANCNFSM4V3TI4WQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .