Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

How to add hid patchers to kernel? #1238

Open
BZBaXraM opened this issue Dec 25, 2018 · 6 comments
Open

How to add hid patchers to kernel? #1238

BZBaXraM opened this issue Dec 25, 2018 · 6 comments

Comments

@BZBaXraM
Copy link

Device: OnePlus One

OS version (KitKat/Lollipop/Marshmallow/Nougat): Pie

Built from repo (date and build command) or downloaded from website (links): build.nethunter.com

Output of cat /proc/version in adb shell or NetHunter Terminal:

Issue:

I assembled the kernel in order to use Nethunter in full for my OnePlus One, which is currently running on Android Pie. The fact is that when I assembled the kernel, I forgot to add patches so that the hid attacks work. More precisely: I could not find them. How do I add them?

@yesimxev
Copy link

https://github.com/binkybear/AK-OnePone

This includes the hid drivers, not sure if it is something which needs to be patched on OPO though.
Btw is your bluetooth service starting? Looking for an update as it does not start on mine since bluez 5 up to LineageOS 15

@BZBaXraM
Copy link
Author

Thank you very much for the information. I hope that I will find the very patches that I need. On Bluetooth: I do not use it, or rather, I have never used it.

@bronnel
Copy link

bronnel commented Dec 29, 2018

@BZBaXraM did you find the drivers, I also need this if you can help me

@BZBaXraM
Copy link
Author

@bronnel Drivers for HID No, I did not find it. Alas...

@yesimxev
Copy link

yesimxev commented Feb 25, 2019

Check how and what it is added to the source files on binkybear's repo (CM14, android nougat), it could be the best to try to do the same patch lines to the same files, which might not need any modifying
HID:
binkybear/AK-OnePone@b0d576f
CDROM:
binkybear/AK-OnePone@e29161b
Wifi injection:

wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch

Y-cable (I needed to use the dwc3_otg.c and dwc3_otg.h driver from CM12 to get it working, not sure if modifying does the job for it)
binkybear/AK-OnePone@694a83b

@BZBaXraM
Copy link
Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants