Guys, i've made a incredible s kernel which with USB host mode (OTG) support
It's based on XSKernel, so this kernel contains 1.8Ghz overclocking support, thanks to l0st.prophet very much !!!
I merged usb host mode patch from here:
http://sven.killig.de/android/N1/2.2/usb_host/
and made some bug fix and improvment for incredible s.
I test this kernel only on Froyo rom, i'm not sure whether this also works fine on gingerbread rom.. ^_^
It's not very perfect, while this is current status in my testing environment:
pros:
--------------------------------------
USB keyboard : works fine
USB mouse : works fine
USB printer : works fine
USB ethernet card : works fine
wifi : works ok
GPS : works ok
bluetooth : works ok
FM : works ok
USB charging and AC charging : works ok
cons:
--------------------------------------
usb device mode functions are disabled, like adb, usb tether ...
If I use USB flash disk / USB CDROM with usb host mode enabled,
Incredible S hangs (they use the same usb-storage driver)
I have no idea whether it's relative to my Incredible S phone, so it would be appreciated if you would like to try to use usb storage device ^_^
--------------------------------------
I've post a usb host mode patch and config file here:
vivo-usb-host.patch.zip
usb-host.config.zip
the patch seems to be a little big, cause i upgrade asix usb ethernet card driver, the original version doesn't works fine, enjoy it ~~~ ^_^
=====================================================
prerequisites:
1. a rooted S-OFF incredible S phone (of course )
2. a self-powered usb 2.0 hub (must always has self-power)
3. A micro USB B male to USB A female adapter/cable
(a USB female to female adapter and a micro USB cable also works ^_^)
steps:
1. use attached PG32IMG.zip to update IS kernel in fastboot
copy PG32IMG.zip to the root directory of sdcard, in fastboot mode,
you can just update it
2. unzip modules.zip, use RootExplorer or other tools to copy all *.ko module
files to:
/system/lib/modules
3. power up IS phone, connect IS phone to USB hub's upstream port,
connect some usb devices, connect usb hub's power, wait for the charging
LED lights
4. wait about 10 seconds, open a terminal emulator, load kernel modules:
Code:
cd /system/lib/modules
insmod usbcore.ko
insmod ehci-hcd.ko
# use USB input device
insmod usbhid.ko
# use USB printer device
insmod usblp.ko
# use USB ethernet card device
insmod mii.ko
insmod usbnet.ko
insmod asix.ko
# use USB mass storage device (flash disk and so on)
# this may cause IS phone hang, it's on your own...
insmod usb-storage.ko
There is a picture shows USB keyboard works fine in my IS phone, lol ~~
If usb mass storage device works fine or any other usb device doesn't works fine in your phone,
you can just post "dmesg" output here, thank you ~~~
That is pretty cool, nicely done! Can't try it out as I'm stuck with S-ON for now but it's a great idea and I hope you find time to develop it further and iron out the bugs.
does the camera and youtube works?
vontdeux said:
does the camera and youtube works?
Click to expand...
Click to collapse
Yep, camera works fine, wifi works fine, now adb functions are disabled
usb host mode functions almost works perfect
Are you sure camera and video works, cause the sources are for froyo and that breaks video on gb roms. If you've fixed it I'd love to know how cause its broken in XSKernel until HTC release the gb sources.
BTW, you need to post your sources for a kernel as it OS distributed under GPL, or the mods will have to take it down till you do, just a friendly warning.
Sent from my HTC Incredible S using Tapatalk
l0st.prophet said:
Are you sure camera and video works, cause the sources are for froyo and that breaks video on gb roms. If you've fixed it I'd love to know how cause its broken in XSKernel until HTC release the gb sources.
BTW, you need to post your sources for a kernel as it OS distributed under GPL, or the mods will have to take it down till you do, just a friendly warning.
Sent from my HTC Incredible S using Tapatalk
Click to expand...
Click to collapse
I test this kernel only on Froyo rom, camera and video works, i'm not sure whether this also works fine on gingerbread rom.. ^_^
And as you said, the kernel source is GPL licensed, i will post a patch which based on the HTC's released froyo source code - based on XSKernel may be much easier, lol ~~~
Ah fair enough, yes it works fine on Froyo, break on GB
Damn HTC... releasing 2.2 sources only.
arghh.. i was this close to try and flash it...
zzz HTC...cmon..update this!! release it for GB!! we need it badly...
Please help me with this I am interested not sleep for days I could not do a kind of sorry about my English bad typographical error would translate what I wrote might be.
I can not open kernel hangs after installing the rom does not turn on my phone several times but the recovery mode, open the CM7 I installed the new rom rom installed installed installed the old rom in the same results, please Can you give me a link to a rom that you can run with this kernel is running, or if you have a friend, if possible, upload a backup of full recovery can? Incredible S, but I can not make my phone .. please help I can not sleep anymore I put my head Thank you for your interest in advance.
Great! now how can we turn adb and usb tether back on?
Is there any way we can enable USB host mode on ICS
bhushangahire said:
Is there any way we can enable USB host mode on ICS
Click to expand...
Click to collapse
Check this thread by lost prophet. His kernel will include USB OTG and two way call recording in near future. Just check this thread often.
http://forum.xda-developers.com/showthread.php?t=1851121
Sent from my HTC Incredible S using xda app-developers app
Cyb0rgz said:
Check this thread by lost prophet. His kernel will include USB OTG and two way call recording in near future. Just check this thread often.
http://forum.xda-developers.com/showthread.php?t=1851121
Sent from my HTC Incredible S using xda app-developers app
Click to expand...
Click to collapse
Not working...
Cyb0rgz said:
Check this thread by lost prophet. His kernel will include USB OTG and two way call recording in near future.
Just check this thread often.
http://forum.xda-developers.com/showthread.php?t=1851121
Sent from my HTC Incredible S using xda app-developers app
Click to expand...
Click to collapse
bhushangahire said:
Not working...
Click to expand...
Click to collapse
Read carefully. It will be supported in a new version so keep checking the OP for updates.
qexing said:
Guys, i've made a incredible s kernel which with USB host mode (OTG) support
It's based on XSKernel, so this kernel contains 1.8Ghz overclocking support, thanks to l0st.prophet very much !!!
I merged usb host mode patch from here:
http://sven.killig.de/android/N1/2.2/usb_host/
and made some bug fix and improvment for incredible s.
I test this kernel only on Froyo rom, i'm not sure whether this also works fine on gingerbread rom.. ^_^
It's not very perfect, while this is current status in my testing environment:
pros:
--------------------------------------
USB keyboard : works fine
USB mouse : works fine
USB printer : works fine
USB ethernet card : works fine
wifi : works ok
GPS : works ok
bluetooth : works ok
FM : works ok
USB charging and AC charging : works ok
cons:
--------------------------------------
usb device mode functions are disabled, like adb, usb tether ...
If I use USB flash disk / USB CDROM with usb host mode enabled,
Incredible S hangs (they use the same usb-storage driver)
I have no idea whether it's relative to my Incredible S phone, so it would be appreciated if you would like to try to use usb storage device ^_^
--------------------------------------
I've post a usb host mode patch and config file here:
vivo-usb-host.patch.zip
usb-host.config.zip
the patch seems to be a little big, cause i upgrade asix usb ethernet card driver, the original version doesn't works fine, enjoy it ~~~ ^_^
=====================================================
prerequisites:
1. a rooted S-OFF incredible S phone (of course )
2. a self-powered usb 2.0 hub (must always has self-power)
3. A micro USB B male to USB A female adapter/cable
(a USB female to female adapter and a micro USB cable also works ^_^)
steps:
1. use attached PG32IMG.zip to update IS kernel in fastboot
copy PG32IMG.zip to the root directory of sdcard, in fastboot mode,
you can just update it
2. unzip modules.zip, use RootExplorer or other tools to copy all *.ko module
files to:
/system/lib/modules
3. power up IS phone, connect IS phone to USB hub's upstream port,
connect some usb devices, connect usb hub's power, wait for the charging
LED lights
4. wait about 10 seconds, open a terminal emulator, load kernel modules:
Code:
cd /system/lib/modules
insmod usbcore.ko
insmod ehci-hcd.ko
# use USB input device
insmod usbhid.ko
# use USB printer device
insmod usblp.ko
# use USB ethernet card device
insmod mii.ko
insmod usbnet.ko
insmod asix.ko
# use USB mass storage device (flash disk and so on)
# this may cause IS phone hang, it's on your own...
insmod usb-storage.ko
There is a picture shows USB keyboard works fine in my IS phone, lol ~~
If usb mass storage device works fine or any other usb device doesn't works fine in your phone,
you can just post "dmesg" output here, thank you ~~~
Click to expand...
Click to collapse
Hi,
As now HTC kernel source code is released can you please make USB host mode working with the latest code.
Or can you please help me out with what changes needs to be done or any pointers to work on it.
I really wanted USB host mode for incredible S.
Thanks
bhushangahire said:
Hi,
As now HTC kernel source code is released can you please make USB host mode working with the latest code.
Or can you please help me out with what changes needs to be done or any pointers to work on it.
I really wanted USB host mode for incredible S.
Thanks
Click to expand...
Click to collapse
As said earlier, it will be launched in near future. It takes some time for dev to made it possible. Added to that, It's already listed in future plan by lost prophet in his op. Be patient, surely you will get it
When I update PG32IMG.zip , after reboot my phone stuck on HTC Logo , and I have to re-flash with another boot.img
my rom is nik project x
is there anyway to use OTG USB on incredible s please?
it's very important to me,
thnx
Related
hello to all devs and sorry if my english isn't good, i'm using the latest Nova HD rom (RC30-73) and i need to use adb, but i can't get a working driver.
i tried the wifi adb and it work fine, but i need the usb adb.
i hope that someone can help me
I think there are no USB drivers for ICS from LG
You can get it to work by assigning the Google USB Drivers to the unknown device in the device manager. It works flawlessly then but you have to do this again for every system reboot.
Maybe a driver guy could add the 2x's device ID into the usb driver to increase the compatibility.
[Scripts] USB Mass Storage (UMS) EXTERNAL SdCard for Samsung based 7.7 ROMs
Fancy "old school" USB Mass Storage with faster file transfer to / from your EXTERNAL SdCard to WINDOWS or UBUNTU PC? Well, here you go.
I have modified the code and fully tested the scripts on my own device using my own Samsung SkyHigh ROM P6810XXLPM ICS v2.1 and successfully mounted my P6810 EXTERNAL SdCard to a Windows 7 & Ubuntu PC with no device issues.
The CWM zips were packaged by me and also tested.
Just remember, the process involves unmounting the EXTERNAL SdCard from your device, so any data etc won't be accessible by the device until / unless you revert to MTP
Requirements:
1. Rooted Samsung 7.7 ICS base ROM (init.d support required for Method #2)
2. A recent Nandroid backup in a safe place
3. An installed custom Recovery for Method #2
4. An installed app for running the script with SU privileges (ie. Script Manager, GScript etc....)
5. Possible removal of Samsung KIES from PC
6. Latest "Samsung USB Driver for Mobile Phones.exe" (download link in Credits)
Disclaimer : As always, nandroid backup before flashing any mods & by using any of the info or scripts posted here you hereby assume full responsibility for any potential damage (however unlikely) to your device or data.
Instructions
Method #1
Confirmed to work on both Samsung P6810 & P6800 ROMs, so no need for additional attachments.
UMS Mode
1. Run app and UMS_P6810_EXTERNAL_sdcard.sh with SU privileges
2. Connect to PC USB port
3. Driver installation (may take a while), when done, your EXTERNAL SdCard should now be a mounted drive in “My Computer”
Revert to MTP
1. Eject drive from PC
2. Run app and MTP_P6810_EXTERNAL_sdcard.sh with SU privileges
Method #2 (requires init.d support - script loads each boot)
Confirmed to work on both Samsung P6810 & P6800 ROMs
++ ENSURE correct zip (P6810 or P6800) for your device !! ++
UMS Mode
1. Boot into a custom Recovery (ie. CWM) and flash UMS_P68xx_EXTERNAL_SdCard.zip
2. Connect to PC USB port
3. Driver installation (may take a while), when done, your EXTERNAL SdCard should now be a mounted drive in “My Computer”
Revert to MTP
1. Temporary - Run app and MTP_P68xx_EXTERNAL_sdcard.sh with SU privileges (will revert to UMS mode on next boot)
2. Permanent (removes init.d script) - Boot into a custom Recovery (ie. CWM) and flash Revert_to_stock_GT-P68xx_mounts.zip
After connecting in UMS mode and IF Windows fails to install the driver, the problem will be a Windows driver issue.
I am not a Windows IT expert or Help Desk ! but a couple things you might want to try if you have trouble :
a)
1. Eject & disconnect device
2. Windows update and check/install any updated Samsung Drivers
3. Reboot PC & try again
OR
b) Worked on my PC Windows7 Ultimate x86 PC & Notebook Windows7 Basic x86
1. Eject & disconnect device
2. Uninstall KIES and all its components (also, Program Files/Samsung/USB Drivers/Uninstall)
3. Reboot PC
4. Install Samsung USB Driver for Mobile Phones.exe (download link in Credits)
5. Reboot PC
6. Reconnect device & wait for device driver software to install and mount drive. Will take a while, so be patient.....
7. If still no good:
a) Control Panel
b) Devices & Printers
c) SAMSUNG_Android
d) Hardware → USB Mass Storage Device → properties → change settings → driver → update driver
++ Highly recommend you always EJECT your device from the PC BEFORE disconnecting the USB cable to preserve your data from corruption! ++
After every eject, you may have to reconnect the USB cable for the PC to re-initialise the new connection.
Credits :
SamHaLeKe : Samsung USB Driver for Mobile Phones.exe
bazald : [GUIDE] Mass Storage
.
.
thanks.6800 with XXLQ2 works well.
tzm0510 said:
thanks.6800 with XXLQ2 works well.
Click to expand...
Click to collapse
Thanks for confirming working with P6800 too.
I will change the wording in the thread Title and OP to include both 7.7 versions for Samsung build ICS ROMs.
Sent from my GT-I9300 using xda premium
Specific P6800 init.d support zips added
Specific P6800 init.d support zips added.
As per OP instructions, flash in custom Recovery (ie CWM)
1. UMS_P6800_EXTERNAL_SdCard.zip
2. Revert_to_stock_GT-P6800_mounts.zip
.
.
OP clearly says Windows but I tried it on a MAC and nothing came up if anyone wants to know. Would love to have the old USB host back again.
fredaroony said:
OP clearly says Windows but I tried it on a MAC and nothing came up if anyone wants to know. Would love to have the old USB host back again.
Click to expand...
Click to collapse
Would love to help out the MAC users out there, but I don't use one........
As your problem could be driver issue similar to that I had on my Windows7 machines, I would suggest some Googling for updated Samsung mobile USB drivers for MAC, and try again.
At time of this post, we have had 15 and 11 downloads of the Method #2 init.d support zips for P6800 model.
NO one yet confirming that Method #2 works for this model ??????????
With no complaints or feedback, should I assume it works ?
i will check method 2 for 6800 after work... method 1 working without any problem...
edan1979 said:
i will check method 2 for 6800 after work... method 1 working without any problem...
Click to expand...
Click to collapse
tried method 2 in my p6800, only shows up as 2 empty drive in my computer..
method 2 is working with stock firmware with init.d support...
edan1979 said:
method 2 is working with stock firmware with init.d support...
Click to expand...
Click to collapse
Good news . Thanks for confirmation.
Sent from my GT-I9300 using xda premium
kevin613 said:
tried method 2 in my p6800, only shows up as 2 empty drive in my computer..
Click to expand...
Click to collapse
Confirmed by edan1979 to work.
You must be doing something wrong, or drivers aren't right.
Eject device, disconnect and reboot pc. Reconnect and wait for any driver to load. Can take a while first time.
IF method #1 works for you, there should be no reason #2 won't. Sometimes it's as simple as reconnecting the cable....
Sent from my GT-I9300 using xda premium
Hello,
tested without luck
unistalled the previous Samsung Drivers
reboot
instlled the latest ones
reboot
still recognized as MTP :/
On Windows XP.
I will check tonight on
Could the Pimp My Rom have screwed some things ?
guisof said:
Hello,
tested without luck
unistalled the previous Samsung Drivers
reboot
instlled the latest ones
reboot
still recognized as MTP :/
On Windows XP.
I will check tonight on
Could the Pimp My Rom have screwed some things ?
Click to expand...
Click to collapse
6. Reconnect device & wait for device driver software to install and mount drive. Will take a while, so be patient.....
Click to expand...
Click to collapse
Possibly 5 minutes or so
As in OP, I only tested on Win7 and Ubuntu, so WinXP can't assist there afraid
.
.
Any reason to think this script would not work for Verizon i815 variant? Has anyone attempted?
Arobase40 said:
Is it supposed to work for both internal and external mass storage, and if not is there any way to handle them, specially with Ubuntu (optionally with Windows 7...) ???
Click to expand...
Click to collapse
OP says EXTERNAL.
Have tried internal and didn't work yet.
When I get time, will look further into it. ROMs are priority right now.
Sent from my GT-I9300 using xda premium
tried on my p6800, both method 1 & 2 didn't work for me, mine is p6800xxlp
arthurson said:
tried on my p6800, both method 1 & 2 didn't work for me, mine is p6800xxlp
Click to expand...
Click to collapse
Drivers. . .
Sent from my GT-I9300 using xda premium
Hello
Works on Se7en as anticipated. Issue on XP
THANKS Again
ahhh... yeah... forget to mention that i also test on windows 7...
I needed a stable fast 4.1.2 Rom and to have OTG Host + charging + OTG Host with No power working , and bluetooth working, with a tablet ui ... it seems almost every rom and kernel would enable 1 function but disable or just not support another... well i found a good combination and i hope it will save someone 3 days of searching and flashing multiple roms and Kernels like i had to do
The Rom
CM 10 + tablet UI Rom
http://forum.xda-developers.com/showthread.php?t=1938041
The kernel:
Faux 123 kernel (im running the stock one will be labled es)
http://forum.xda-developers.com/showthread.php?t=1804374
Rom Has native usb storage so no need for stickmount , Directory bind works great also
Bluetooth works , unlike Custonexus, which i had on before this and really liked, lots of customizations so if you dont need Bluetooth i recommend that rom.
There is 2 issues which i can live with 1)when i unmount usb storage and take the otg cable out the tablet seems to reboot. but not a full reboot. more like the boot animation plays for like 5 seconds thenit goes back to the home screen . also with The faux Kernel you have to put a command into terminal to enable charging (command bellow) . what i did was just typed the command in a note and have the note on my home screen and i can just copy and paste the command from the note into terminal. no big deal . This kernel is not recommended for fixed car installations. for that use Timmur kernel (https://github.com/mehrvarz/files/raw/master/boot-cm10-grouper-host-mode-power-2012-10-16.img) (flash in fastboot)
Command : echo 1 > /sys/module/tegra_otg/parameters/tegra_otg_on_charging (just copy and paste this in a note and copy and paste in terninal when you need otg + charging, put in the command before you attach the cable, also have the charger and usb device/ reader attached before you plug the cable into the N7
any Questions post up ill be glad to help any way i can
That version of the Timurs kernel is dated go here for the latest,he has made many fixs lately.
http://mehrvarz.github.com/nexus-7-kernel-download-page/
Sent from my SGH-I927 using xda app-developers app
Kodiack99 said:
That version of the Timurs kernel is dated go here for the latest,he has made many fixs lately.
http://mehrvarz.github.com/nexus-7-kernel-download-page/
Sent from my SGH-I927 using xda app-developers app
Click to expand...
Click to collapse
Thank you for you response. I'm aware of Timur's updated Kernel , but the updated kernel is for 4.2 and when I tried to flash it before I knew all this, my N7 was stuck in a Boot loop . The Kernel I posted was ,afaik, the last updated Kernel for 4.1.2 (Cm10 is 4.1.2) I should state for those who don't know the Timur Kernel for Cm10 or 4.1.2 does not allow OTG host unless its plugged into power ... this would be good only for a setup where the device would be stationary or a fixed install and always plugged in ... the faux kernel again is what I recommended if you need OTG Host +Charging + Otg Host without Power attached . For 4.1.2 or Cm10 .
Sent from my Nexus 7 using xda app-developers app
Kernel "Timur-USBhost-FI-2013-08-17" (für CM10.1) is working in PA2.54 (CM10)
Djfantom said:
if you need OTG Host +Charging + Otg Host without Power attached . For 4.1.2 or Cm10 .
Click to expand...
Click to collapse
I found another solution: Kernel "Timur-USBhost-FI-2013-08-17" (für CM10.1) is working with PA2.54 (CM10) without problems!
-Mirror for USBROM CM10.1 (4.2.2) - includes kernel "Timur-USBhost-FI-2013-08-17" boot.img: http://rootzwiki.com/topic/343017-download-location-for-usbrom/
-To change this "fixed installation" (FI) kernel to "mobil" change /sys/kernel/usbhost/usbhost_fixed_install_mode from 1 (true) to 0 (false).
-Terminal command "echo 0 > /sys/kernel/usbhost/usbhost_fixed_install_mode" or via a text editor
So I recently installed ubuntu 12.10 and I want to connect the o2x with the computer but it is only chargin....how can I have Mass Storage like in windows?
What rom? It's difficult to help without any info
Sent from my LG-P990 using xda app-developers app
It should work out of the box, unless you have JB ROM. In that case, follow this:
http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html?m=1
Sent from my LG-P990
Check if you dont have Fast Charge ON. Fast Charge have to be turned OFF.
I have Mivv's Unofficial CM10.1 Build beta 7 and Kowalski Kernel. I have PSP Fast CHarge turned off
asmerito said:
It should work out of the box, unless you have JB ROM. In that case, follow this:
http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html?m=1
Sent from my LG-P990
Click to expand...
Click to collapse
I've got the app but when I'm mounting my device I get an error in terminal that permision denied and unable to initialize device
MTP or Mass Storage
1. First you need to be sure that the USB Fast Charge is switched off ( if you're using Kowalski Kernel ).
2. If you connecting using MTP, you will need some tools. Use gMTP. Either you can mount your MTP device as directory using mtpfs. Follow this instruction: http://forum.xda-developers.com/showthread.php?t=2055563
3. If you want to connect using UMS (USB Mass Storage), you need to switch it in Settings->Storage->USB computer connection (context menu)->Mass Storage. Or just select this method in stock firmware dialog. Then you need to reconnect your device and select usb storage in status bar.
4. If you have problem with all these methods, you can use ADB (Android Debug Bridge) to manage your files. Just enable USB Debugging mode in Settings->Developers options(switch it on)->Android debugging. Then install android sdk tools in your system.
Follow this instruction. http://www.xda-developers.com/android/installing-adb-on-ubuntu-the-easy-way/. Then use adb pop and adb push commands to manage with your content.
5. If you have problem with all of this method, you can use AirDroid application and manage your files wirelessly using Wi-Fi.
http://www.airdroid.com/
Have a good luck, mate!
I just needed to enable USB debuging. I enabled it and it solved all the problem
Hi,
I'm using CM 7.2 and I can't access any mass storage - phone > PC USB connection at all. Any ideas?
Installing Nethunter
1. Download and install magisk module called KaliNethunter
2. Go to offensive security website and download generic arm64 nethunter image
3. Extract and install following apps from downloaded archive: NetHunter.apk, NetHunterTerminal.apk.
4. Extract kalifs-arm64-full.tar.xz on your phone.
5. Open NetHunter app and grant permissions and root permission
6. Open hamburger menu, select Kali Chroot Manager, select location where you had extracted kalifs-arm64-full.tar.xz and start installing chroot
7. Wait some time (~10 minutes)
8. Start chroot. Now you can use nethunter app and nethunter terminal app.
Enabling monitor mode on built-in wifi module
0. I could not enable it on custom roms. On stock 082 it worked, but there are some problems. Contact me if you have any info about enabling monitor mode on roms except stock.
1. Open nethunter app, go to custom commands
2. Click run on "Start wlan0 in monitor mode"
3. Now wlan0 is in monitor mode. I've tried capturing handshakes using airodump-ng, it worked. However, when I tried deauth attack using aireplay-ng, wlan0 was stuck on channel 0.
4. Note that if you turn wifi on/off or try to disable monitor mode, your phone will turn off.
5. Alternative way: you can enable monitor mode using other apps, like penmon. However, your phone will still turn off if you do anything to wlan0 while it is in monitor mode.
Using external wifi adapter
0. Your wifi adapter must support monitor mode. External adapter won't work without a kernel that supports it. I've built one based on darkonah (many thaks to @travarilo ). Atheros HTC based adpaters are not supported!
1. Flash the attached kernel (the latest version is NH_kernel_v2.zip).
2. Now you can use your exernal adapter.
Enabling monitor mode on external adapter
0. I only tested it with Alfa AWUS036NH (chipset ralink3070), but the instruction may be similar for other adapters
1. First, let's install firmware for your wireless adapter
Code:
apt update
apt upgrade
apt install firmware-ralink
2. Execute command iwconfig and check if your adapter is present there. For me it was displayed as wlan1
3. Turn your adapter off and put it into monitor mode
Code:
ifconfig wlan1 down
airmon-ng start wlan1
4. Check airmon-ng output. It will say you that your adapter is now in monitor mode and will give you new adapter's name (for me it was wlan1mon)
5. Now you can use monitor mode on your adapter (for example, to run airodump-ng)
P.S.: Do it at your own risk and don't use this info in illegal purposes. Only you are responsible for your actions.
Thank you very much sir! Really appreciate your work time and efforts!
Just one small query about what rom and firmware are you using?
Heven11 said:
Thank you very much sir! Really appreciate your work time and efforts!
Just one small query about what rom and firmware are you using?
Click to expand...
Click to collapse
Right now I'm using stock rom 082 (and fw 082, respectively), but it would be great if you tested this guide on any custom rom (if you are not going to use built-in wifi module. If you are, I recommend you to use stock rom)
Ok thank you!
tutaf said:
Installing Nethunter
1. Download and install magisk module called KaliNethunter
2. Go to offensive security website and download generic arm64 nethunter image
3. Extract and install following apps from downloaded archive: NetHunter.apk, NetHunterTerminal.apk.
4. Extract kalifs-arm64-full.tar.xz on your phone.
5. Open NetHunter app and grant permissions and root permission
6. Open hamburger menu, select Kali Chroot Manager, select location where you had extracted kalifs-arm64-full.tar.xz and start installing chroot
7. Wait some time (~10 minutes)
8. Start chroot. Now you can use nethunter app and nethunter terminal app.
Enabling monitor mode on built-in wifi module
0. I could not enable it on custom roms. On stock 082 it worked, but there are some problems. Contact me if you have any info about enabling monitor mode on roms except stock.
1. Open nethunter app, go to custom commands
2. Click run on "Start wlan0 in monitor mode"
3. Now wlan0 is in monitor mode. I've tried capturing handshakes using airodump-ng, it worked. However, when I tried deauth attack using aireplay-ng, wlan0 was stuck on channel 0.
4. Note that if you turn wifi on/off or try to disable monitor mode, your phone will turn off.
5. Alternative way: you can enable monitor mode using other apps, like penmon. However, your phone will still turn off if you do anything to wlan0 while it is in monitor mode.
Using external wifi adapter
0. Your wifi adapter must support monitor mode. External adapter won't work without a kernel that supports it. I've built one based on darkonah (many thaks to @travarilo ). Later I'll update this post to list adapters that should be supported by tis kernel.
1. Flash the attached kernel.
2. Now you can use your exernal adapter.
Enabling monitor mode on external adapter
0. I only tested it with Alfa AWUS036NH (chipset ralink3070), but the instruction may be similar for other adapters
1. First, let's install firmware for your wireless adapter
Code:
apt update
apt upgrade
apt install firmware-ralink
2. Execute command iwconfig and check if your adapter is present there. For me it was displayed as wlan1
3. Turn your adapter off and put it into monitor mode
Code:
ifconfig wlan1 down
airmon-ng start wlan1
4. Check airmon-ng output. It will say you that your adapter is now in monitor mode and will give you new adapter's name (for me it was wlan1mon)
5. Now you can use monitor mode on your adapter (for example, to run airodump-ng)
P.S.: Do it at your own risk and don't use this info in illegal purposes. Only you are responsible for your actions.
Click to expand...
Click to collapse
I love it when you put 0 first instead of 1. A true caffeine blooded being. Btw im on .087 fw ver (X00TDB var.). Gonna try the image out and see if internal wifi module works. Im running BT5 on my xp era machine.
ImperialNuggets said:
I love it when you put 0 first instead of 1. A true caffeine blooded being. Btw im on .087 fw ver (X00TDB var.). Gonna try the image out and see if internal wifi module works. Im running BT5 on my xp era machine.
Click to expand...
Click to collapse
What is BT5? I got it
does the kernel support atheros chipset: TL-WN722N v1?
ive done everything i could but my device still dont detect my adapter
...
apt update
apt upgrade
apt install firmware-atheros
airmon-ng... nothing..
xda_u$er said:
does the kernel support atheros chipset: TL-WN722N v1?
ive done everything i could but my device still dont detect my adapter
...
apt update
apt upgrade
apt install firmware-atheros
airmon-ng... nothing..
Click to expand...
Click to collapse
I had some problems building kernel, so I had to disable support for Atheros HTC based cards. You can try to add it as a loadable kernel module.
0. Flash the attached kernel, download and extract module file (ath9k_htc.ko) from zip
1. Go to NetHunter Terminal app and start androidsu shell
2. Go to the folder where you had extracted ath9k_htc.ko. For example:
Code:
cd /storage/emulated/0/Download
3. Install the module
Code:
insmod ath9k_htc.ko
If it throws error like "no such file or directory", check dmesg
4. Check if the module is installed
Code:
lsmod
You should see the name of the module (ath9k_htc) and its size (check attached screenshot)
5. Now try executing airmon-ng in kali terminal.
Module doesn't persist between reboots. Let me know if it works for you, I'll try to automate module installation process.
Throws me error..
xda_u$er said:
Throws me error..
Click to expand...
Click to collapse
Could you please execute dmesg command right after getting this error and show me the output?
its huge, so I put it in notepad
xda_u$er said:
its huge, so I put it in notepad
Click to expand...
Click to collapse
Sorry, my bad, I gave you the module for the previous kernel build (it has different name, that is why insmod throws error). Please try installing the attached module. If anything goes wrong, send me dmesg again.
@xda_u$er did it work?
Well, the installation went ok, but the external adapter its not working, it is not recognized by the device.
xda_u$er said:
Well, the installation went ok, but the external adapter its not working, it is not recognized by the device.
Click to expand...
Click to collapse
Sorry, I don't know what to do with that. You may try to find an old version (~2019) of TRB kernel, I've heard that its developer tried to enable Atheros HTC based adapters support.
Hii again! Your kernel is working amazingly good!and thanks to your guidance nethunter is working fine for me!
But I am unable to perform hid attacks are you able to do them? Like using our phone as a bad usb ! Does this also need kernel modification?
Heven11 said:
Hii again! Your kernel is working amazingly good!and thanks to your guidance nethunter is working fine for me!
But I am unable to perform hid attacks are you able to do them? Like using our phone as a bad usb ! Does this also need kernel modification?
Click to expand...
Click to collapse
As far as I know, it does. I haven't tried any usb attacks, but I'm going to.
Heven11 said:
Hii again! Your kernel is working amazingly good!and thanks to your guidance nethunter is working fine for me!
But I am unable to perform hid attacks are you able to do them? Like using our phone as a bad usb ! Does this also need kernel modification?
Click to expand...
Click to collapse
I've enabled everything that should be enabled to make bluetooth attacks work, but they don't. The adapter is recognized by the system, but nethunter app doesn't see it. I would be very thankful if you tested bluetooth with new kernel. Btw, usb attacks work with new kernel too. I've tried launching firefox on my PC, it worked. This is a really cool thing
Firstly sorry for late reply! I had to reset my device since I was testing some android 11 rom and Thank you sooooo much for V2 of this kernel,usb/hid is working like a charm but I haven't tried bluetooth yet but will definitely try it soon since I don't know how to do it!
Please continue the development of this kerneland remember you are a legend!
Thank you again!
Hii! I want to try Kali nethunter on my device but there are many bugs that I am facing my internet is not working in Kali not monitor mode is working!
Can you please make a nethunter ROM!please
Or give me a backup of your ROM KERNEL AND FIRMWARE THAT I can flash through TWRP !
Please!
PS. Currently I am using Android 10 corvus os and nethunter is not working!