[Q] usb host mode for the blade - Blade General

I saw a certain patch in burstlams github page for his kernel called USB host mode which was then reverted so what I want to know is if it is possible to fork wbaw's new kernel and import that patch or to get USB hostmode working on wbaw's or any kernel for that matter

xyz`1 said:
I saw a certain patch in burstlams github page for his kernel called USB host mode which was then reverted so what I want to know is if it is possible to fork wbaw's new kernel and import that patch or to get USB hostmode working on wbaw's or any kernel for that matter
Click to expand...
Click to collapse
i think it was reverted beacause it was the reason for battery drain

That isn't a problem i just wanna try host mode so am I doing the right thing or not? That's what I wanna know..

Related

[Q] Adding Android Open Accessory (AOA) protocol to defy (CM10)

Hi all!
I will try to get the Android Open Accessory (AOA) protocol into our defy/defy+.
Anybody else working on this topic?
Atm I just added the android.hardware.usb.accessory.xml file to /etc/permissions and the com.android.future.usb.accessory.jar to /system/framework (jar taken from the droid sdk API16, my fw is latest quarx CM10).
Right now I can install f.w. the ADK2012 app. So I may on the right way... but I guess that is not all the work... does anybody know if we need to add some kernel modules f.e.?
[Edit] btw... looks like we just need to add a new f_accessory.o to our usb gadget... f.e. see https://www.codeaurora.org/gitweb/q...in;h=5d9d8625e39f815673dedea353f39edccabb1fac
Best regards, Stephan
Like to know this to. If quarx managed to give us sub host, I might be able to use my duomilanove board...
Aren't there other projects for the ADK that doesn't use the protocols?
Please ask all questions in the Q&A section. Thread moved there.
Ok... I gave it a short try with the patch and quarx's linux-2.6.32 but it failed during the compiliation... but meanwhile I noticed that quarx is working on linux-3.0.8 (see its repo in github). There we have our accessory...
So I would say stay tuned for a while and let's if quarx may got this newer kernel working with our defy...
You can find all the steps needed to patch it here:
https://github.com/ezterry/manifest-gingerbread-DS/issues/32
They're saying everywere that you need 2.6.35+ kernel (don't know if it really is mandatory, kernel in the link is 2.6.34)
A kernel with the same chipset that has it enabled can be found here:
https://github.com/XDA-Bam/samsung_kernel_latona_GB
Apparently, you need to enable it in the kernel (config), add the libs to the kernel (driver/usb/f_accesory and include/linux/f_.accesory), add the lib in the framework (might be included from CM side already??), hope it will work (or debug why not).
---------- Post added at 01:21 AM ---------- Previous post was at 01:06 AM ----------
It seems that the files are indeed in the 3.0 kernel.
I already ordered a USB-host shield for my arduino a week ago, I'll try and compile a kernel with it ones it comes in the mail.
Edit:
Tried the changes I listed, will build it tomorrow (or so). Maybe then my shield might arrive to (hate waiting, stupid holidays.. )
Any place to upload it when it works?
Got something build, but it didn't include the /system/framework/com.android.future.usb.accessory.jar and got bootloop without (cause I added the /etc/permision/something_with_usb_accesory.something
Pushed the jar with adb from bootmenu (from another CM rom).
Don't have the usb_shield yet, so can't really test. Will try and install an usb_accessory app. Does someone want the build to try?
Ok, the app fails to launch.
Ok, my repo's:
Kernel: https://github.com/labsin/jordan-kernel/commits/2.6.32
Device: https://github.com/labsin/android_device_moto_jordan-common/commits/jb_2ndboot
But doesn't work. The library isn't build (in framework/base).
And it also doesn't build in the kernel... :/
Anyone??
Might it be possible to check the driver?
Edit: Found it.
It seems to many commits need to be merged in. Can't seem to find a kernel that's not based on the nexus line that has it.
If anyone is still interested in this, I managed to make an Arduino Mega ADK board with the DemoKit application work in accessory mode on my Defy
Quarx backported the USB gadget driver from 3.0.8 kernel into his 2.6.32 based kernel already a while ago. All that was still missing was the accessory configuration in init.usb.rc and the .jar and .xml files. Quarx has already merged my pull request, so in the next CM10.1 nightly with 2.6.32 kernel, USB accessory mode should work out of the box
Thnx. Already saw this actually

Kernel modules for Atheros AR9271 based usb wifi dongles(now in Hundsbuah's kernel)

UPDATE: These modules were added by request to Hundsbuah's kernel here:
http://forum.xda-developers.com/showthread.php?t=2246062
______________________________________________________________________
I was not going to post this because it has limited use for most TF300T owners but it can't hurt so here it is. The attached file(ath9k.tar.gz) contains kernel modules needed to get AR9271 based usb wifi dongles working on the latest stock TF300T kernel(Asus build 10.4.2.20, kernel version 3.1.10). I have tested the modules with this dongle: TP-Link TL-WN722N.
Uncompress the file and you will get an ath9k directory. Inside are the modules, 2 scripts for easy loading and unloading of the modules, and iwconfig compiled for Android. Getting the dongle working goes something like this:
Su to root. Copy htc_9271.hw to /system/etc/firmware. Run the scripts start_ath9k and stop_ath9k to load and unload the modules.
After the modules are loaded, insert the dongle into the keyboard full size usb port and run ifconfig and iwconfig as needed. If wlan0(default android wifi) is on then iwconfig will show the dongle as wlan1.
Note: I did not post this on the Dev forum because I did not develop these modules...I only changed a few lines in 2 modules before compiling them.
ath9k
I have one mtech atab7t tablet with 4.0.4 android(rooted) and 3.0.8+ kernel [email protected] can i add the driver somehow?
kerteszalex said:
I have one mtech atab7t tablet with 4.0.4 android(rooted) and 3.0.8+ kernel [email protected] can i add the driver somehow?
Click to expand...
Click to collapse
Not very likely...you would need to get your kernel source, add ath9k driver support to the kernel config, then fix any compile errors.
bads3ctor said:
Not very likely...you would need to get your kernel source, add ath9k driver support to the kernel config, then fix any compile errors.
Click to expand...
Click to collapse
you can able to make a tutor for me? i am new in these things :/
kerteszalex said:
you can able to make a tutor for me? i am new in these things :/
Click to expand...
Click to collapse
Hmmm...kernel module compiling in 1 easy lesson....not sure it's possible.
bads3ctor said:
Hmmm...kernel module compiling in 1 easy lesson....not sure it's possible.
Click to expand...
Click to collapse
I really need this usb wifi support for my tab :/ i purchased recently more powerful antennas for my router but this tablet lost the signal on the next room :/ sorry for my bad english
kerteszalex said:
I really need this usb wifi support for my tab :/ i purchased recently more powerful antennas for my router but this tablet lost the signal on the next room :/ sorry for my bad english
Click to expand...
Click to collapse
You need the kernel source for your tablet and a way to root your tablet. I did a cursory Google search for the kernel source for your tablet and I can't find it. If you can get the kernel source code for your tablet then it might be possible to compile ath9k modules. If you can't root that tablet then kernel modules won't be useful because there would be no way to load them.
bads3ctor said:
You need the kernel source for your tablet and a way to root your tablet. I did a cursory Google search for the kernel source for your tablet and I can't find it. If you can get the kernel source code for your tablet then it might be possible to compile ath9k modules. If you can't root that tablet then kernel modules won't be useful because there would be no way to load them.
Click to expand...
Click to collapse
the tablet comes with root.i can extract the kernel from it?
kerteszalex said:
the tablet comes with root.i can extract the kernel from it?
Click to expand...
Click to collapse
You need the kernel source code from the tablet manufacturer.
Hello! I have source code for my kernel (Nexus 7 4.2.2) and I successful built module cifs.ko and cp210x.ko, but i can't build module ath9_htc. I add in my nexus_defconfig file
CONFIG_ATH_COMMON=m
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K_HTC=m
but after make modules command only atk.ko created.
Sorry for my english.
SpulN said:
Hello! I have source code for my kernel (Nexus 7 4.2.2) and I successful built module cifs.ko and cp210x.ko, but i can't build module ath9_htc. I add in my nexus_defconfig file
CONFIG_ATH_COMMON=m
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K_HTC=m
but after make modules command only atk.ko created.
Sorry for my english.
Click to expand...
Click to collapse
I had to comment out a few lines of code in 2 modules to get mine to compile. On the TF300T, it has to do with LED code not present in the stock kernel that is referred to in 2 of the modules. If you use my modules on the TF300T, you will get no LED blinking on the WIFI stick when data is transmitted or received.
EDIT: Newegg has an Atheros AR9271 USB stick for $9.99 with a cradle.
http://www.newegg.com/Product/Product.aspx?Item=N82E16833166068
For anyone wondering what these modules are used for, read this:
http://forum.xda-developers.com/showthread.php?t=1714300
HELP!! Need Kernel Module ath9k for GT-N5110 Galaxy Note 8.0
HELP !!!
Could really use some help. For the life of me I can't compile a kernel module driver ath9k for my USB wireless adapter TL-WN722N. So it can be used by insmod on my rooted Galaxy Note 8.0 GT-N5110 on Kernel 3.0.31 Build BMC9 running android 4.1.2. The source code is available at opensource.samsung. and is listed as the GT-N5110 NA (north america) model. If some one could help me please? I would be forever in your debt... :good:
Hello
When trying to add modules via your script, it gives me an "exec format error" for each module. How can this be fixed?
Device: Asus Padfone A66, Android 4.1.1
hi I am getting some problem with this attach file, i decompressed it and got the directory. but what are the next stapes ? sorry but i am not getting that part to copy to system/etc/firmware. will u make clear the process stapewise?
Sorry for bothering this old thread. I'm trying to get this to work on my OnePlus 3 running Oxygen OS Nougat. I installed Linux on my phone and I would like to install the TP-LINK drivers on it as the inbuilt WiFi module on my phone does not support monitor mode. I connected this WiFi adapter and trying to get it to work. Please help.

Any one tried using USB Keyboard app?

It needs a custom kernel for HID output to simulate a HID devive. But according to @jcadduono it is disabled somehow.
But that was a 2016 post . I wonder if anyone built a kernel with the latest ROM and succeed with that which would be good to know.

[KERNEL] Coconut-Kernel (OOS-Oreo(5.x.x) (Pie test Kernel 9.0.3)

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

[KERNEL] Neon Kernel [4.14.195] [Nethunter] [MIUI 12/STOCK]

NEON KERNEL
Disclaimer:
Use this kernel at your own risk. Flashing it may brick your device. I'm not responsible for any software/hardware and any kind of damages/losses.​
Changelog v1.01
Upstreamed To Latest CAF With Linux Stable Merged.
Full Nethunter Support.
Supports Internal Monitor Mode.
Lots Of Under The Hood Bug Fixes.
Download
Click Me
How to flash:
- reboot into recovery
- make a backup of your original boot.img
- flash zip
- flash magisk if needed
- wipe dalvik (mandatory!)
XDA:DevDB Information
Neon Kernel, Kernel for the Xiaomi Mi A3
Contributors
arunbiju969, paul89rulez
Source Code: [url]https://github.com/ArunBiju/Neon-Kernel[/url]
Version Information
Status: Stable
Current Stable Version: v1.01
Stable Release Date: 2020-09-01
Created 2020-08-31
Last Updated 2020-08-31
Reserved1
Reserved2
Hi,
1- Can you add patching kernel so flashing magisk is not necessary.
2- Can this kernel be used in Custom Roms?
3- Whats the point of this kernel battery,performance,balanced or only for Nethunter?
sasukeob said:
Hi,
1- Can you add patching kernel so flashing magisk is not necessary.
2- Can this kernel be used in Custom Roms?
3- Whats the point of this kernel battery,performance,balanced or only for Nethunter?
Click to expand...
Click to collapse
Patching is already present, this kernel was also tested on crDroid basically any rom with stock vendor and MIUI, Finally this kernel is made for balanced use with Good performance and Battery with the latest bug fixes from ALS and nethunter is bonus.
bad news for me. Because i have OSS vendor and Pixel Experience Rom. so i cant flash it.. Sad..
sasukeob said:
bad news for me. Because i have OSS vendor and Pixel Experience Rom. so i cant flash it.. Sad..
Click to expand...
Click to collapse
I am planning an OSS release.
if it has flashing kernel and magisk flashing not necessary again, and if it has for OSS vendor, i will definetly try this kernel
Does packet injection work to do Deauth attacks, I would like to do deauth attacks without the need for a wifi adapter, by the way does it support all kinds of wifi adapters?
Charly737 said:
Does packet injection work to do Deauth attacks, I would like to do deauth attacks without the need for a wifi adapter, by the way does it support all kinds of wifi adapters?
Click to expand...
Click to collapse
Internal packet injection is not present as of now and yes it supports all the adapter supported by Kali Nethunter.
Friend since I installed this kernel I cannot use my phone as a universal remote control every time I try it restarts my phone I checked it and it is the friend kernel.
Also quick bug report
Face unlock doesn't work with this kernel.
Don't use it that much so it's not a big deal for me but have since switched to a different oss ROM and never got a log of the issue, my apologies
arunbiju969 said:
Patching is already present, this kernel was also tested on crDroid basically any rom with stock vendor and MIUI, Finally this kernel is made for balanced use with Good performance and Battery with the latest bug fixes from ALS and nethunter is bonus.
Click to expand...
Click to collapse
Well this may sound stupid or dumb but i had to, so how was the battery backup on crDroid? because i am trying find a perfect kernel to get the best battery backup i could from a 4000 mah and i have the CrDroid.
thanks for making this ( THANKED )
Regards.
Are you guys using Kali Nethunter or X-Tools via Termux?
nice effort,
is it better than perf+?
Hello. I cannot start a covert attack with your kernel, that is, I connect the phone to the computer, click on Execute attack, for 1 second the inscription: attack launched appears, and then the inscription: attack execution appears
ended. Tested on Windows 10. Internal monitor mode works and duckHunter Hid works too. Firmware: android 10 stock
Hey, airmon-ng working??? I need this kernel to get wifi handshakes using built-in wifi, if its already working please let me know.
Charly737 said:
Friend since I installed this kernel I cannot use my phone as a universal remote control every time I try it restarts my phone I checked it and it is the friend kernel.
Click to expand...
Click to collapse
Which phone you have
Is for Stock a10 or A11?
Gauravnoob said:
Which phone you have
Click to expand...
Click to collapse
Mia A3 Android 11

Categories

Resources