Open karencho777 opened 3 years ago
If your OnePlus 5 has a kernel version higher than 3.19, instead of the custom kernel patch, you can try https://github.com/tejado/android-usb-gadget Let me know if you have any issues with it. I released the app just recently so it might have some issues.
If your OnePlus 5 has a kernel version higher than 3.19, instead of the custom kernel patch, you can try https://github.com/tejado/android-usb-gadget Let me know if you have any issues with it. I released the app just recently so it might have some issues.
i have donloaded install it, and grant permissions, then add gadget mouse+keyboard.sh , now i am not getting an error about no kernel support but dont executes any payload
Did you activate the new Gadget in the USB Gadget Tool? What kernel version do you have? Can you post the logcat output of the app (remove any sensitive data)?
Did you activate the new Gadget in the USB Gadget Tool? What kernel version do you have? Can you post the logcat output of the app (remove any sensitive data)?
yes i activate it...
output where i need to get it?
Do you have adb installed?
adb logcat
adb shell cat /proc/version
Or you can install Logcat app from fdroid or play store.
here is kernel info: linux version 4.4.205-perf+ onrplus@rd-build-104 gcc version 4.9.x 20150123
The kernel version looks good. So lets check the output of the USB Gadget Tool. Give me a day and I will integrate the log function inside the app.
here is the log : https://anonymousfiles.io/cnc1mgB6/
There is no info about the gadget activation inside the log :/ can you get the log part for it?
There is no info about the gadget activation inside the log :/ can you get the log part for it?
i dont actually ))) i am a newbie
Okay, let me integrate that into the app.
okay
is there some news?
I will let you know when I integrated it. Will need some additional days.
ok sure
Can you try my latest release, @karencho777 ? https://github.com/tejado/android-usb-gadget/releases/tag/v0.2-beta
Please provide the log here (you can select the log text inside the app), thanks.
ROOT - Execute command: for dir in /config/usb_gadget//; do echo GADGET_PATH=$dir; cd $dir; if [ "$?" -ne "0" ]; then echo "Error - not able to change dir to $dir... exit"; exit 1; fi; echo UDC=$(cat UDC); find ./configs/ -type l -exec sh -c 'echo FUNCTIONSACTIVE=$(basename $(readlink "$@"))' {} \;; for f in ./functions//; do echo FUNCTIONS=$(basename $f); done; cd ./strings/0x409/; for vars in *; do echo ${vars}=$(cat $vars); done; echo "============="; done;
ROOT (stderr) - ROOT - Execute command: for dir in /config/usb_gadget//; do echo GADGET_PATH=$dir; cd $dir; if [ "$?" -ne "0" ]; then echo "Error - not able to change dir to $dir... exit"; exit 1; fi; echo UDC=$(cat UDC); find ./configs/ -type l -exec sh -c 'echo FUNCTIONSACTIVE=$(basename $(readlink "$@"))' {} \;; for f in ./functions//; do echo FUNCTIONS=$(basename $f); done; cd ./strings/0x409/; for vars in *; do echo ${vars}=$(cat $vars); done; echo "============="; done;
ROOT (stderr) -
At first, please use markdown code tags here if you write such a log output in a github comment otherwise the output is difficult to read. So it seems that it should work and that you have your hid activated. Please check, e.g. with termux if the file /dev/hidg0 is really there. Also you can try any other app (like mentioned in the README of this repository) to test if HID is working. Is there any log available for the Rucky app?
yes files are there... can it be usb fault?
If your USB works otherwise well, then I guess it is a problem with the Rucky app. Please test it with others...
Please also check if your computer identifies your phone as a keyboard.
no i have test it on Nethunter too
how can i check if phone identifies as keyboard?
Check the device manager in your Operating System.
No, it dont see it like keyboard, only Standard PS/2 Keyboard
Okayy... is your phone recognized as an Android device if you switch back to your standard profile? Did you tried other apps like mentioned in the README of android-keyboard-gadget? Please do this....
No it dont recognizes it like Android phone, have tried Authorizer just saved pass for codeby.net url and tried to use it there was no effect((
Maybe switch the USB cable or you have some issue with the connection, e.g. there is dust in the USB socket or the contacts have a defect... also try to use a different PC to connect your phone to...
have tried with another computer outcome is the same, my guess it is usb, need to change it
Maybe switch the USB cable or you have some issue with the connection, e.g. there is dust in the USB socket or the contacts have a defect... also try to use a different PC to connect your phone to...
Usb keyboard app on mi a1 android10 just hangs on opening screen with your app, yes i enabled keyboard and mouse
Usb keyboard app on mi a1 android10 just hangs on opening screen with your app, yes i enabled keyboard and mouse
@Sohil876 Is this related to the issue to karencho777 or a new one? If it is a new one, please create a new issue.
Usb keyboard app on mi a1 android10 just hangs on opening screen with your app, yes i enabled keyboard and mouse
@Sohil876 Is this related to the issue to karencho777 or a new one? If it is a new one, please create a new issue.
Ok but im not sure if issue is with your app or usb keyboard app, ill try other apps you mentioned first.
i have oneplus5 and install the rucky app for HID injection, but there is no kernel support for oneplus 5 maybe someone has it please respond