I just bought external ethernet network card Edimax EU-4306. It is USB 3.0, 1GBit - so it's a very nice piece of hardware, and excellent accessory for my SM-N9005. This card is based on ASIX AX88179 chipset, and there are Android drivers for this chipset from the manufacturer, but the drivers are not included into firmware of my phone, so the device doesn't work.
My Galaxy Note 3 is rooted, runs Omega ROM v21, so I decided to compile the drivers myself. I downloaded Omega Kernel sources, and found, that there is no kernel modules support in the kernel by default. I recompiled the kernel with kernel modules support enabled, next compiled the drivers (no any problems during compilation), repacked original Omega's boot.img adding modified kernel, but due to unknown reason my phone doesn't boot.
I wanted to contact Omega ROM developers asking them adding the drivers into next release of Omega ROM, but due to absence of 10 posts on the forum I can't do that.
Can anyone please contact Omega developers for me or direct me to a good guide for installing cusom zImage kernels?
The answer was easy: Android Image Kitchen v1.6 for Linux from http://forum.xda-developers.com/showthread.php?t=2073775
Using this tool I rebuilt original boot.img and flushed my new kernel with modules support. Next, I built the device drivers. My device is now working ok!
Hi,
I am talking about those custom rom here..
https://forum.xda-developers.com/galaxy-j7/development/rom-a5-2017-rom-galaxy-j75-t3531018
A recompiled kernel that is permissive would ber really great. The one currently provided there is a user version with no compile time modification to allow any existing methods (like setenforce command or a boot time script to set from file) to toggle it.
Also i wonder how can i use samsung radio with this. I found the library files all right. Tried to manually introduce the apk with proper permissions. But system logs kept throwing errors with fc. A5 has fm too. Why can't we use it then ?
Is it possible to use j7 kernel with this rom?
I know it's a lot of questions. Hope the devs would kindly respond. Thanks.
Ps. The colour inversion works which is great really. Thanks for all the hard work.
how to patch oneplus 6 or 6t HID nethunter kernel???my kernel is 4.9X how to patch HID。I have fixed the WIFI module and how to fix the HID keyboard attack on the kernel above 4.X。It would be great if someone could help me.I am using Google Translate, the statement may be a bit uncomfortable.
yzsroot said:
how to patch oneplus 6 or 6t HID nethunter kernel???my kernel is 4.9X how to patch HID。I have fixed the WIFI module and how to fix the HID keyboard attack on the kernel above 4.X。It would be great if someone could help me.I am using Google Translate, the statement may be a bit uncomfortable.
Click to expand...
Click to collapse
did you enable otg from the developer menu?*
Sent from my ONEPLUS A6013 using Tapatalk
vichao.s said:
did you enable otg from the developer menu?*
Sent from my ONEPLUS A6013 using Tapatalk
Click to expand...
Click to collapse
Yes, I opened the OTG in the developer options. However, this HID attack did not work, probably because I did not fix the HID kernel.
Hey @yzsroot,
what kernel (version) are you working off of? (I see it's 4.9X, but is it the official OP kernel, or one of the variants with wireless drivers built-in already, such as franco, cleanslate, etc?)
For a generic 3.18+ kernel, you should be able to grab a HID patch (see below), and apply it like the wireless ones:
Code:
cd /path/to/kernel/source
wget https://github.com/pelya/android-keyboard-gadget/blob/master/patches/existing_tested/by-generic-kernel-version/generic_kernel_3.18.patch
patch -p1 < generic_kernel_3.18.patch
If the patch applies cleanly, you should be good.
I have an OP6T, I'll be happy to mirror your development environment to figure out what's going on.
Other resources for rolling our own HID patches -
Code:
From the OP5: https://drive.google.com/drive/folders/1vOhLSv1YMWbIP9KFDc4VhthhMVOcKNfb
Generic: https://github.com/pelya/android-keyboard-gadget/issues/101#issuecomment-354152955
Thank you very much for your help.
nucster said:
Hey @yzsroot,
what kernel (version) are you working off of? (I see it's 4.9X, but is it the official OP kernel, or one of the variants with wireless drivers built-in already, such as franco, cleanslate, etc?)
For a generic 3.18+ kernel, you should be able to grab a HID patch (see below), and apply it like the wireless ones:
Code:
cd /path/to/kernel/source
wget https://github.com/pelya/android-keyboard-gadget/blob/master/patches/existing_tested/by-generic-kernel-version/generic_kernel_3.18.patch
patch -p1 < generic_kernel_3.18.patch
If the patch applies cleanly, you should be good.
I have an OP6T, I'll be happy to mirror your development environment to figure out what's going on.
Other resources for rolling our own HID patches -
Code:
From the OP5: https://drive.google.com/drive/folders/1vOhLSv1YMWbIP9KFDc4VhthhMVOcKNfb
Generic: https://github.com/pelya/android-keyboard-gadget/issues/101#issuecomment-354152955
Click to expand...
Click to collapse
Hello nucster, before I have tried the OP5 kernel patch and the 3.18 kernel patch does not apply to the 4.9X kernel, the android-keyboard-gadget fix 4.X kernel tutorial I did not understand, because I These are not very professional for patching the kernel. Thank you very much for your help.
Has the repair been successful? I am looking forward
Is this still required? We're using init.nethunter.rc and USB Arsenal in NetHunter app to enable hid through configfs
Coconut Kernel
Just a fancy name. Don't bother...
Please read the last post for pie kernel update.
Code:
***I'm not responsible for any problems that might occur flashing this kernel or what you do with the kernel support***
This kernel is only for stock Oxygen OS Oreo 5.x.x or any rom that supports stock kernel
This kernel was made for my own use as i could not find any working kernel with USB Wifi Adapter drivers supporting packet injection and monitor mode or simply Nethunter support.
I've been using ZaneZam's kernel for my nougat OOS. Since the Oreo version wasn't working for whatever reason, i tried to compile one my own.
My sole intention was to create a kernel with USB Wifi drivers and monitor mode/packet injection working. So this kernel doesn't have all those tweaks/options like other great kernels.
People who want upstreamed kernel with nethunter, drivedroid, android auto and stock features working can use this kernel on OOS Oreo.
Kernel has been upstreamed to 3.18.134(current)
Whats working?
- Stock features
- DriveDroid(CDROM Patch)
- USB Wifi adapters with monitor mode/packet injection
- AndroidAuto
Tested Working Wifi Adapters
1. TP Link WN-722N v1 (ath9271 chipset) - all ath9271 chipset should work
2. Alfa card AWUS036NHA (Atheros ath9271 Chipset)
3. Alfa card AWUS036NH (Ralink RT3070 Chipset)
Untested adapters
All adapters on nethunter support page have been added but not tested.
Installation
Download from attachment and flash the kernel zip file from recovery.
It is recommended to flash stock boot.img before flashing the zip.
Using USB Wifi Adapters
1. Reboot the device after flashing the zip
2. Goto Settings-->Advanced and turn on OTG Storage
3. Plugin your USB Wifi card and type ifconfig wlan1 up to test.
Keep in mind that OTG Storage turns off automatically after 10 mins on idle.
You don't need to insmod any modules as all drivers are built inline with the kernel.
Credits
Google
@ZaneZam for his support
Anykernel author
My friend @OscarAkaElvis (author of the great airgeddon tool to audit wireless networks), who tested the beta versions for me.
@nathanchance for his kernel compile and upstream guide
@flar2 for his source that i used to learn compiling at first
All others whose commits i've used
Source
https://github.com/OnePlusOSS/android_kernel_oneplus_msm8996
https://github.com/android-linux-stable/op3
Additional Note - I would like to mention that you can use tools like LinuxDeploy or other chroot supporting apps and the wifi adapters will work fine just like nethunter.
If you guys prefer ZaneZam's version, you can flash my kernel and then flash his kernel for oreo. Then everything will work on his kernel too. There is a small fix needed which will be applied on flashing my kernel.
Hi, I worked as beta tester for this kernel compilation and I must say is the best kernel ever for Oneplus3 I tried (in my opinion). All the standard functions are working flawlessly (wifi, camera, flashlight, etc...). No errors, no glitches. Gestures are working in order to enable camera or flashlight.
I tested the kernel also using Kali Nethunter, it works like a charm. I also installed a Linux using Linux Deploy app on which everything also was working fine.
Android Auto is fully working. Tested plugging it into real car (not emulators). Drive Droid is also working allowing to mount the drives without any problem. This is a feature that many custom kernels are not bearing in mind but for some people is an important stuff to be working. I use it every day.
And regarding the external usb cards. Yes, I tested it using a OTG (On-The-Go) cable. I can confirm that these two chipsets are working. In my case it was not a TP-Link card for Atheros chipset. I tested it using AWUS036NHA (Atheros ath9271 Chipset) Alfa wireless card and it worked very well supporting monitor mode, etc. I also tested it with another Alfa card AWUS036NH (Ralink RT3070 Chipset) and it worked fine too.
So congratz to de creator. This last month was a hard work. Good job. All the Oneplus3 users (like me) will be very grateful to you because of this.
Bro can you compile kernel for los based custom roms pie and oreo plz with nethunter support?,
ayanroy said:
Bro can you compile kernel for los based custom roms pie and oreo plz with nethunter support?,
Click to expand...
Click to collapse
I think ZaneZam has already done that. He builds for stock and lineage os. Did you check?
ayanroy said:
Bro can you compile kernel for los based custom roms pie and oreo plz with nethunter support?,
Click to expand...
Click to collapse
I thought there was a version already available for LOS oreo.
Since i was wrong, i compiled one. You can find it in the following thread.
https://forum.xda-developers.com/on...nel-coconut-kernel-lineage-15-1-oreo-t3902479
Pie version - maybe later
fredrickz said:
I thought there was a version already available for LOS oreo.
Since i was wrong, i compiled one. You can find it in the following thread.
https://forum.xda-developers.com/on...nel-coconut-kernel-lineage-15-1-oreo-t3902479
Pie version - maybe later
Click to expand...
Click to collapse
Thanks alot bro, will be waiting for your pie version
ayanroy said:
Thanks alot bro, will be waiting for your pie version
Click to expand...
Click to collapse
Did you check the oreo version? Or are you just waiting for the pie release?
For those who had this working can post here as a feedback.
very nice job! My TP-LINK WN722N is working just fine with nethunter!
Do you think it would be possible to add HID support to this kernel? To be able to execute HID/Bad USB attacks, that would be super cool!
hokyjack said:
very nice job! My TP-LINK WN722N is working just fine with nethunter!
Do you think it would be possible to add HID support to this kernel? To be able to execute HID/Bad USB attacks, that would be super cool!
Click to expand...
Click to collapse
I'll add that in the next version
I can confirm working monitor mode & injection on my Oneplus3 OOS Oreo with TP Link WN-722N v1 (ath9271 chipset). Nice work @fredrickz !
Limitscrw said:
I can confirm working monitor mode & injection on my Oneplus3 OOS Oreo with TP Link WN-722N v1 (ath9271 chipset). Nice work @fredrickz !
Click to expand...
Click to collapse
Can you suggest me a guide to install kalinethunter? i'm using magisk as root thx
scorpion90 said:
Can you suggest me a guide to install kalinethunter? i'm using magisk as root thx
Click to expand...
Click to collapse
u maybe can try to use one of my provided nethunter packs from here: https://www.androidfilehost.com/?w=files&flid=151160
which where done with this: https://github.com/zanezam/kali-nethunter and which has a little troubleshoot section in Readme at the end
for starting
Excellent kernel. Super performance and good battery life. I hope you make one for oxygen OS stock pie when it releases.
Didn't have one problem, aside from the horrendous Mtp-procedure install on this device(just got a Op3 recently).
Runs smooth, don't drain the battery like many Nethunter kernel from official side.
I hope this will expand in more then just a one-days development, because we need more of user who are beginning to programm etc.
I appreciate your effort and wanted to state that this kernel works without one single flaw whatsoever.. :silly:
UsPdSr said:
Didn't have one problem, aside from the horrendous Mtp-procedure install on this device(just got a Op3 recently).
Runs smooth, don't drain the battery like many Nethunter kernel from official side.
I hope this will expand in more then just a one-days development, because we need more of user wgo are beginning to programm etc.
I appreciate your effort and wanted to state that this kernel works without 1 flaw whatsoever.. :silly:
Click to expand...
Click to collapse
Thanks for the appreciation. Btw, I've already posted a pie version of the kernel with nethunter support built from holydragon sources. But it's not for OOS. It's for AOSP based roms. I'll try to compile a pie version when the official OOS sources are available.
Got my hands on an Alfa AWUS 036 NEH last week, and I am happy to report that monitor and injection are working just fine.
@fredrickz
Will u release one for pie?
metaspook said:
@fredrickz
Will u release one for pie?
Click to expand...
Click to collapse
I can compile from holydragon pie source.
fredrickz said:
I can compile from holydragon pie source.
Click to expand...
Click to collapse
Bro check your inbox...
metaspook said:
Bro check your inbox...
Click to expand...
Click to collapse
Hey i saw the message. But now I'm out of town. I'll message you when i return@metaspook
I've manually applied an HID 3.10 kernel patch, https://github.com/pelya/android-ke...name/motorola__athene_______kernel_3.10.patch, to the quasar kernel and the kernel compiles, The phone boots up as well but I cannot find any HID devices using the https://github.com/tejado/android-usb-gadget app, I've checked other 3.10 patches as well like https://github.com/pelya/android-ke...-soc/samsung___apq8084______kernel_3.10.patch but it seems to be the same as the previous patch, need advice on what could be going wrong