Connecting a game controller - LG Thrill 4G

I'm just wondering if anyone has successfully connected a wiimote or ps3 controller to the thrill. If you have how did you do it? thanks

i keep getting driver for bluetooth issues

you won't be able to do any of this unless you install CM7. That rom uses the blue tooth stack you need to pair these controllers with.

Connecting a Wiimote to Snes9x Ex
I've been able to use a Wiimote on Snes9x Ex in the Lg Thrill Stock Gingerbread Rom. This mod will not work with the WiimoteController app, since I haven't figured out how to turn bluetooth on and still use this fix. It involves using some of the files from CyanogenMod (included in zip)
Note: This has only been tested on the LG Thrill Stock Gingerbread Rom. You can only perform this mod if you have root access!
Files from Cyanogenmod:
1. system/lib/modules/btwilink.ko (I had to modify the magic number to match that of the stock kernel, but other than that its the same file)
2. hciconfig
How to install:
1. Unzip mod.zip
2. Install btwilink.ko to /system/lib/modules
3. Install hciconfig to /system/xbin
Note: Do not enable bluetooth
Commands to get bluetooth started:
$ su
# insmod /system/lib/modules/btwilink.ko
# hciconfig hci0 up
(Note: Bluetooth will not appear up, but is now on)
Now you should be able to use a wiimote on Snes9x Ex
To turn off bluetooth:
# hciconfig hci0 down
# rmmod btwilink
Maybe someone can figure out how to generalize this into Bluetooth.apk or /init.rc so you can enable and disable it. Hopefully this can be a starting point for a fix to the bluetooth.

Related

[Q] Bluetooth PAN enabling (bnep.ko module)

What about subj on FROYO-based FW's?
I tried to enable it on JM5 firmware (Eclair), but no success
We need to compile bnep.ko module for kernel version 2.6.32 and a bluetooth pan daemon - pand.
So, in case of Eclair, i tried to use bnep.ko, compiled for kernel 2.6.29 and pand version 4.47 (see attachments for both).
And what i've done (step-by-step):
1) Inserting our bnep.ko:
Code:
insmod /lib/modules/bnep.ko
2) Copying pand to /system/bin/
3) Trying to start listening for a incoming bluetooth PAN connection by typing:
Code:
pand -n --listen --role NAP
4) .. and seems we have a problem
Code:
pand[7013]: Bluetooth PAN daemon version 4.47
pand[7013]: Failed to connect to the local SDP server. Connection refused(111)
pand[7013]: Bind failed. Address already in use(98)
... and i have no idea whats going wrong.
So, it will be great if someone could compile bnep.ko for FROYO-based firmwares, may be it will be more lucky
Could someone please compile and post the bnep.ko module and pand for the Galaxy Tab wifi P1010. It seems they left it out of a device that desparately needs it, considering it has no 3g.
I actually have no way of tethering this tab with my phone. It does not pick up adhoc wifi (wpa supplicant hack from p1000 does not work on this device), and itbdoes not support bluetooth pan, which is ultimately my preferred tethering solution because of better battery performance.
I tried the above files but they dont work on the p1010. I even tried copying pand from other devices, but so far none of them execute on this device.
Would really appreciate it if someone could compile the above for the p1010. The kernel version is 2.6.32.9 [email protected] #1. Thanks.
A bit late but someone may need it http://www.patthoyts.tk/blog/android-bluetooth-tethering.html
@sinancetinkaya: Thanks, d00d, came in *very* handy!

[q] usb stick to galaxy tab.

How do i take information from usb stick to my galaxy tab.
Is there a way?
The only way I could see to do it would be via a computer first then usb or a wifi transfer.
Sent from my GT-P1000 using XDA App
The issue is that both a Usb stick and the tab act as slave devices. The tab needs to be able to act as a host before this is possible
Sent from my Nexus One using XDA App
Im using the micro sd adapter(usb type that comes with the sandisk micro sd) to transfer files between my sgt and computer. I have 2 sets, one is for my sgt and one for general usage and copying files around.
Sent from my GT-P1000 using XDA App
Damn Samsung. I think they pulled the plug on this option during development. Cause there was a picture of an accessory for the Tab that had usb:
http://www.engadget.com/2010/08/30/samsung-galaxy-tab-accessories-may-include-bluetooth-stylus-and/
However, when the official accessories list came out, it was not there!
http://www.engadget.com/2010/10/19/samsung-gets-official-with-galaxy-tab-accessory-lineup/
they show it in mobilefun.co.uk, as a "camera kit"
Description of Samsung Galaxy Tab Camera Kit:
Transform your Samsung Galaxy Tab's dock connection port into a standard USB port with the official Camera Kit. Plug USB sticks directly into the device for data transfer, or connect straight to a camera for advanced functionality.
however, not available or price listed yet
if you want to register you interest there is the link
http://www.mobilefun.co.uk/samsung-galaxy-tab-camera-kit-p25809.htm
I have an FTP server set up on my home PC and put any files I want in there and connect to the PC using FTP software on the Tab
I also have VNC running on both so I can access the PC from anywhere and put files in that folder if needed
Dropbox, seriously, thats all you need.
mmace said:
I have an FTP server set up on my home PC and put any files I want in there and connect to the PC using FTP software on the Tab
I also have VNC running on both so I can access the PC from anywhere and put files in that folder if needed
Click to expand...
Click to collapse
mmace said:
Dropbox, seriously, thats all you need.
Click to expand...
Click to collapse
That's all fine and fancy. But it has too many dependencies. It applies only to "your" files. Files you've had the time to organize. It's heavly dependant on the Internet being available and in good condition.
I have had many occasions that simply defeat those setups. I go to many presentations and conferences. Often meet people very very briefly, but we need to exchange files. Where are those files? on their USB flash. Then time is lost looking for a laptop (left in the room?), or trying to get the crappy internet in the conference hall to work, and SIM reception being horrendous.
And even if all that works somehow, USB is much much faster.
We can console ourselves, but in reality, nothing diminishes the convenience and superiority of having a USB host feature present.
KOLEVNIK said:
How do i take information from usb stick to my galaxy tab.
Is there a way?
Click to expand...
Click to collapse
A device from Elan Digital Systems lets you transfer files from a USB flash drive via the Micro SD Slot!
paulrod said:
A device from Elan Digital Systems lets you transfer files from a USB flash drive via the Micro SD Slot!
Click to expand...
Click to collapse
I guess you mean this
http://www.elandigitalsystems.com/adapter/mobidapter.php
but who's gonna carry this gizmo with him.
I wish it had usb host (and hdmi) port on it like archos 70/101...
Yes, that is the device I mean.
I'm not able to post external links here.
Thing is this would prob suit KOLEVNIK to take to meetings so they can download USB flash drive content from other people on the go.
Thanks for posting the link!
BUt how much does the phones support? cant think im able to get 200gb hardrive for the htc hd2 or galaxy tab
How about a Bluetooth hard drive? There is a bunch coming out. I wonder if it'll work with the Tab.
xoltrix2000 said:
How about a Bluetooth hard drive? There is a bunch coming out. I wonder if it'll work with the Tab.
Click to expand...
Click to collapse
Guessing these will be expensive tho... I have a NAS drive which works great for media at home. Every laptop/desktop/phone/tablet/ps3 in my house has access to all my media
Connect USB devices to your Nexus One
Required hardware
- Rooted Nexus One (threads from others @ xda-developers for the G1/Desire/Incredible) with QSD8250 SoC
- USB OTG cable with Micro B plug (e.g., advantage: ID pin connected to ground for future auto detection) or Micro USB cable and adapter
- Powered USB 2.0 hub. Hubs known to provide their power to the upstream port:
TiVECO TM-UH710
- Trust HU-5870V
If your hub doesn't provide its power to the upstream port (the Nexus One isn't charged): USB Dual Power Cable (e.g.), since the Nexus One doesn't provide bus power to the hub chip
For mobile use: battery (e.g.) (measurements)
Software based on Android version: 2.2.1; Kernel version: 2.6.32.9-27240-gbca5320; Build number: FRG83D
Download binaries…
boot.img or zImage
Kernel modules (Mind /system/lib/modules/bcm4329.ko !)
…or build from source
git clone h t t p:// github.com/sonic74/kernel_msm.git
cd kernel_msm
make -j2 ARCH=arm CROSS_COMPILE=/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-
Install kernel
Boot from RAM (till next reset)…
/android-sdk-linux_86/tools/fastboot boot arch/arm/boot/zImage
…or write to flash (extract ramdisk.img from your nandroid backup)
/getramdisk.py /boot.img
From PC…
/android-sdk-linux_86/tools/fastboot -b 0x20000000 flash:raw boot arch/arm/boot/zImage /ramdisk.img
…or on the phone
/mydroid/out/host/linux-x86/bin/mkbootimg --kernel arch/arm/boot/zImage --ramdisk /ramdisk.img --base 0x20000000 -o boot.img
adb push boot.img /sdcard
adb shell
flash_image boot /sdcard/boot.img
reboot
Start ConnectBot, enable full screen and connect to Local
su
insmod drivers/usb/core/usbcore.ko
# Ignore the Unbalanced enabled for IRQ 58 stack trace for now
insmod drivers/usb/host/ehci-hcd.ko
Substitute device mode over TCP/IP (or port Andrew de Quincey's work)
adb
adb connect IP_address:5555
Filesystem access
Nexus One's
On Air (Vista/7 WebDAV registry patch, ro)
nandroid
PC's
insmod fs/cifs/cifs.ko
mount -t cifs -o username=username //IP_address/share /mnt/sdcard/cifs
HID input devices
insmod drivers/hid/usbhid/usbhid.ko
X11
/etc/X11/xorg.conf
apt-get install lxde
startx
USB storage
insmod drivers/usb/storage/usb-storage.ko
# Wait for device enumeration
mount -t vfat /dev/block/sda1 /mnt/sdcard/usb-storage
Ethernet
insmod drivers/net/usb/usbnet.ko
insmod drivers/net/usb/asix.ko
dhcpcd eth1
setprop net.dns1 IP_address
External displays
Hardware
DisplayLink device
Software
SlugTerm DL
mount -t usbfs none /proc/bus/usb
/data/local/bin/slugterm -k /dev/input/event8 -p 0377 -i 00cfa43c4e5573712b7152ffffeeca0640e257fffffff904b0 0402907e -f /mnt/sdcard/usr/local/share/fonts/FON2FNT/dosapp_18.FNT -c /system/bin/sh
Framebuffer
insmod drivers/video/syscopyarea.ko
insmod drivers/video/sysfillrect.ko
insmod drivers/video/sysimgblt.ko
insmod drivers/video/fb_sys_fops.ko
# Source; delete select FB_DEFERRED_IO in Kconfig
insmod drivers/staging/udlfb/udlfb.ko
# Wait for device enumeration
Android framework
chmod 666 /dev/graphics/fb1
/system/build.prop:
dalvik.vm.heapsize=42m
Framebuffer fb=new Framebuffer(1);
Bitmap bm=fb.createBitmap();
fb.tranfer(bm, true);
Also included: Display images on a DisplayLink device from all Android apps through SEND Intent:
Console (Warning: once it scrolled, Nexus One won't shutdown completely)
insmod drivers/video/console/font.ko
insmod drivers/video/console/softcursor.ko
insmod drivers/video/console/bitblit.ko
insmod drivers/video/console/fbcon.ko
Android framework
chmod 666 /dev/console
PrintWriter pw=new PrintWriter("/dev/console");
pw.println("Hello Android!");
X11
Lenny
/etc/X11/xorg.conf
/usr/local/lib/xorg/modules/drivers/displaylink_drv.so (Source)
Squeeze
/etc/X11/xorg.conf
/usr/local/lib/xorg/modules/drivers/fbdev_drv.so (Source)
As primary display (BeagleBoard)
Audio/MIDI devices
insmod sound/soundcore.ko
insmod sound/core/snd.ko
insmod sound/core/snd-timer.ko
insmod sound/core/snd-hrtimer.ko
insmod sound/core/snd-page-alloc.ko
insmod sound/core/snd-pcm.ko
insmod sound/core/snd-rawmidi.ko
insmod sound/core/snd-hwdep.ko
insmod sound/usb/snd-usb-lib.ko
insmod sound/usb/snd-usb-audio.ko
Android framework
insmod sound/core/oss/snd-mixer-oss.ko
insmod sound/core/oss/snd-pcm-oss.ko
chmod 666 /dev/snd/dsp
FileInput/OutputStream("/dev/snd/dsp")
TV Receivers
Hardware
Receiver (e.g. DVB-T)
ALSA Audio device
Software
mplayer scripts (720×480: ~25 FPS)
Refresh DisplayLink device periodically (Source) (720×288: some FPS)
Ideas to enable deinterlacing and scaling
MSM/QSD X-Window Enablement Project including XVideo
OpenMAX (seems to be supported by VLC 1.1)
Android native SurfaceFlinger output plugin
MORE INFO: h t t p : //sven.killig.de/android/N1/2.2/usb_host/[/QUOTE]
Is the Mobidapter still the best device for this? I am interested in using a USB stick with both my Nook Color and HTC Incredible and an external USB stick with Keepass to transfer password databases and for travel to places without internet access.

MILESTONE CM7 RC4 USB Tethering with Linux

I've managed to enable USB Tethering between my Milestone with CM7 RC4 and a Linux box. Maybe it is possible also for Mac OS X with same method.
I'm still testing it, with good results, but it is not easy at all for end users. It can become really easy if it gets integrated into a ROM.
CHANGES:
1) set ro.modem_available=1 in build.prop
2) upload tether-nat to /system/xbin
3) Recompile Usb.apk from CM7 RC4 source with patch attached.
I have the already compiled apk, but I don't know if I can attach it here, for legal reasons.
4) Append attached code to /system/etc/rootfs/init.rc
DISCLAIMER: If you don't fully understand what I've written, do not try this. I should have posted this to Development forum, but I don't have enough posts and I'm not a spammer. Use everything AT YOUR OWN RISK.
HOW IT WORKS:
By sending usb_mode_modem to usbd trough its control socket, the Milestone is seen as a standard ACM modem from the PC. The corresponding serial port on Android is /dev/ttyGS0 .
Simply starting pppd on both ends, and correctly setting up ip forwarding, nat and routing tables does the trick.
ON THE LINUX BOX:
Open a terminal and write
sudo pppd nodetach persist defaultroute 172.16.0.2:172.16.0.1 /dev/ttyACM0
(and please set correct DNS servers before trying.)
Notes: every server app on the phone is also accessible from PC, like dropbear. At IP address 172.16.0.1
Motorola Phone Portal is not working, because it doesn't "detect" the usb connection nor wifi connection, so it doesn't even start listening to the TCP port.
Someone knows how to bypass this check?
When using this mode, ADB is not available. Looks like the PC can't detect the phone as a modem, if ADB is enabled. You don't have to manually toggle it.
Dropbear can be used as a replacement.
It asks for root permission in order to use setprop as a signaling mechanism to Android's init to start and stop pppd daemon, in order to not have it always running and wasting resources.
Maybe it is possible to use on device-added and on device-removed triggers with fake device nodes, in order to not require root privileges, but it is more complicated.
If a Moderator could move this thread to Development, this could be a great thing, if I can still post to it.
Massimo M.
tether
hey can u do a easy steps for doing this???
DISCLAIMER: If you don't fully understand what I've written in the first post, do not try this. I should have posted this to Development forum, but I don't have enough posts and I'm not a spammer. Use everything AT YOUR OWN RISK.
Be prepared to reinstall ROM if you have big issues. It means DO BACKUPS!
Only for CyanogenMod 7.0 RC4 (it should work on newer versions, but I haven't tested it.)
Copy Usb-new.apk on root of your sdcard.
Copy setup.txt on root of your sdcard.
Get a shell (ADB, or Terminal emulator).
Become root ( su )
cd /sdcard
sh setup.txt
reboot the phone.
Connect the USB cable, and choose Phone as a modem.
On the pc (Linux, any distro should work)
sudo modprobe cdc-acm
echo nameserver 8.8.8.8 |sudo tee /etc/resolv.conf
sudo pppd nodetach persist defaultroute 172.16.0.2:172.16.0.1 /dev/ttyACM0
and then open the browser!
I haven't tested setup.txt on my phone, only in a android-like directory hierarchy on my pc. I won't be online until Monday.
Try to understand everything!! And be careful.
The most difficult part was compiling Usb.apk, which I've attached now.
maxximino said:
I've managed to enable USB Tethering between my Milestone with CM7 RC4 and a Linux box. Maybe it is possible also for Mac OS X with same method.
I'm still testing it, with good results, but it is not easy at all for end users. It can become really easy if it gets integrated into a ROM.
CHANGES:
1) set ro.modem_available=1 in build.prop
2) upload tether-nat to /system/xbin
3) Recompile Usb.apk from CM7 RC4 source with patch attached.
I have the already compiled apk, but I don't know if I can attach it here, for legal reasons.
4) Append attached code to /system/etc/rootfs/init.rc
DISCLAIMER: If you don't fully understand what I've written, do not try this. I should have posted this to Development forum, but I don't have enough posts and I'm not a spammer. Use everything AT YOUR OWN RISK.
HOW IT WORKS:
By sending usb_mode_modem to usbd trough its control socket, the Milestone is seen as a standard ACM modem from the PC. The corresponding serial port on Android is /dev/ttyGS0 .
Simply starting pppd on both ends, and correctly setting up ip forwarding, nat and routing tables does the trick.
ON THE LINUX BOX:
Open a terminal and write
sudo pppd nodetach persist defaultroute 172.16.0.2:172.16.0.1 /dev/ttyACM0
(and please set correct DNS servers before trying.)
Notes: every server app on the phone is also accessible from PC, like dropbear. At IP address 172.16.0.1
Motorola Phone Portal is not working, because it doesn't "detect" the usb connection nor wifi connection, so it doesn't even start listening to the TCP port.
Someone knows how to bypass this check?
When using this mode, ADB is not available. Looks like the PC can't detect the phone as a modem, if ADB is enabled. You don't have to manually toggle it.
Dropbear can be used as a replacement.
It asks for root permission in order to use setprop as a signaling mechanism to Android's init to start and stop pppd daemon, in order to not have it always running and wasting resources.
Maybe it is possible to use on device-added and on device-removed triggers with fake device nodes, in order to not require root privileges, but it is more complicated.
If a Moderator could move this thread to Development, this could be a great thing, if I can still post to it.
Massimo M.
Click to expand...
Click to collapse
Hi
I am trying to send the AT Command directly from the terminal of the phone:
stop ril-daemon
cat /dev/ttyGS0 &
echo -e 'ATI\r' > /dev/ttyGS0
But the terminal is like not responding. Why?? Did someone try??
Thank you very much for the help.

[Kernel] KernelfoX (2015-05-26) - NFS / Samba / NTFS / Lirc

Features​
Code:
Enable loadable module support
- Module unloading
Forced module unloading
Multimedia Support
- Digital TV support
- DVB Network support
- Remote controller decoders
LIRC + all protocols
- Remote Controller devices
Windows Mediacenter IR
Loopback driver
Media USB adapters
- Dibcom DiB0700
File systems
- CD-ROM/DVD Filesystems
ISO9660 / UDF
- DOS/FAT/NT Filesystems
NTFS+write support
- Network File Systems
NFS v2/v3
CIFS + SMB2 + client caching
This is my first attempt at building an Android Kernel, last time I did it was for Ubuntu Gutsy, so please bear with me.
This is a stock AOSP kernel for Fugu, 3.10.20. All I did for now was a make menuconfig enabling some features I miss. I'm testing what I enabled, so far I've been able to mount an smb share from both windows 7 and my D-Link DNS-320 NAS running alt-f. Tried to mount nfs but it failed against my NAS. Haven't tested it yet with an NTFS formatted drive, will report back once I do. NFS mounting worked after I disabled SELinux enforcing, will try to figure what's needed to get it going without turning it off. I've been able to move apps to external storage using bind mounts over an ext2 formatted micro SD card, and on an NTFS formatted HD. This didn't work on a FAT formatted card, I'm mostly sure it's because of lack of extended attributes needed by SELinux.
All the features enabled on the kernel are built-in for now, but module loading is enabled in case you want to compile some.
I have a powered OTG USB hub, connected an old Microsoft MCE receiver and got the direction keys on the remote working, no other key worked, so I guess some kind of keymap is needed, will dig into it soon.
Also, I've built with support for my ISDB-T receiver (digital TV standard used in Japan and most of South America). It's seen by the kernel but fails to load firmware. My receiver is a Mygica S870, don't know how involved will be the process to get it working, it's not my main focus as I use it with a Raspberry Pi running tvheadend, but would be nice to get OTA tv on the nexus player with just an USB tuner. If you'd like me to add your tuner, let me know the HW / USB:ID.
For now, the kernel is provided as a zipped image, download, extract and test before flashing:
Code:
adb reboot bootloader
fastboot boot boot.kernelfox.img
If you decide to install it, you can do it with:
Code:
adb reboot bootloader
fastboot flash boot boot.kernelfox.img
or you can use TWRP to flash it. Remember, this is not an update zip, so you should copy the extracted .img file to your player (not the zip), and select Images... on TWRP to see it. There's a kernel.config file in the zip, it's what I used to build this one, if you want to try compiling it yourself, copy it as x86_64/.config on your git root.
I've been running it for the last few hours, but as my gf is using the player, I'm limited to testing from a remote adb. I'll be trying to build support for some type of unionfs for apps2sd, I'm evaluating the available options and would love suggestions about this, again, last time this was an issue for me was on the Motorola Milestone (ie Droid) days.
[Reserved]Really?
Since this is AOSP based, I'm assuming it won't work with CM?
Ambious said:
Since this is AOSP based, I'm assuming it won't work with CM?
Click to expand...
Click to collapse
I'm almost sure it shouldn't, but you can do a one time boot without flashing it, so I'd love to hear if it does. My player gets a lot of use here so I can't mess that much with it right now. I'm targeting rooted stock, as I really like it and would love it with just some tweaks.
@FaberfoX is this for 5.1.1
Toneman07 said:
@FaberfoX is this for 5.1.1
Click to expand...
Click to collapse
Yes, haven't had time to dig more into it, but I've been running it on LMY47V since I built it with no issues.
Thanks man going to flash it this week

Kali Nethunter on Asus Zenfone Max Pro M1

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!

Categories

Resources