[Galaxy Tab 3 10.1 Android Development] Daniel-TAz00:
Hi,

This kernel/rom lets you connect an RT8187 USB Wifi adapter to your GT-P5210 and run aircrack-ng/airmon-ng/airodump-ng through Linux on Android.

Mind the noobness, I just compiled my first kernel(ever) and stuck it in someones image and it worked.

(worked untill i enabled the builtin wifi, lol)

After i bought one of these tablets I can't say I'm not a bit dissapointed about the amount of dev work on the GT-5210, (words go unspoken for DutchDanny, Angel_666, trevd)

It's an x86 device, anything should be compileable and runable without any arm mods (i'm looking at you kali linux) this thing should be owning the Nexus 7.

Tested with TWRP 2.7 recovery

Its built using builduntu, and from the P5210UEUAMI8 source, with the toolchain recommended in the Kernel Readme.

I followed this tutorial to enable driver support

And this detailed guide to compile the kernel and create a proper boot.img

Replaced the boot.img in Mod57's rom with my modified one. (god fed up with fastboot and usb issues on Win 8.1 and just flashed it, it worked. Thats my testing)

Once you have downloaded and verified Mod57's rom, open up the zip and replace boot.img with this one:

https://www.dropbox.com/s/9gfucdzsadciy66/boot.zip

MD5: 4dd95a78c78550586cf3c2f7953978ab boot.img

You must have a rooted device (I used TWRP 2.7, http://nasirtech.blogspot.dk/2014/03/root-p5210xxuanb4-android-422-stock.html)

Put the modified rom onto the sdcard
Go to recovery
Wipe Cache and dalvik-cache
Install the ROM
Reboot and enjoy

Once you have installed the kernel and it boots up, you must follow these steps to chroot into an ubuntu image and compile / install aircrack.

Download this image: ubuntu-13.10.LARGE.x86.ext2.v1.zip
from [url]http://sourceforge.net/projects/linuxonandroid/files/Ubuntu/13.10/x86/[/url]
and copy it to your sdcard

Thanks to jorgen_gustavsson for his excellent work [url]http://xdaforums.com/showthread.php?t=2573441[/url]

1. Install busybox [url]https://play.google.com/store/apps/details?id=stericson.busybox[/url]
2. Install a vnc viewer [url]https://play.google.com/store/apps/details?id=android.androidVNC[/url]
3. Install [url]https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid[/url]
(Not sure, but open and close it once to be safe)
4. Copy bootscript.sh [url=http://xdaforums.com/showthread.php?t=2573441]link to bootscript thread[/url] to /data/data/com.zpwebsites.linuxonandroid/files/ overwrite the old file.
bootscript.sh
(Thanks to xdadev: jorgen_gustavsson)
5. Unpack and Copy the ubuntu-13.10.LARGE.x86.ext2.img and .md5 to a place of your choosing on either internal or external sdcard.
6. Make a Linux on Android widget and point it to the img file you copied to your sdcard (ubuntu-13.10.LARGE.x86.ext2.v1.img).
7. Now click on the LOA widget you made in 6 and let linux ”bootup”
8. Press 'y' to check MD5 checksum
9. Connect vnc to localhost:5900 password ubuntu

Now to install Aircrack

# Libraries
sudo updatedb
sudo apt-get install build-essential
sudo apt-get install gcc
sudo apt-get install zlibg-dev
sudo apt-get install libssl-dev (or libssl-dev depending on your distribution)

#airolib-ng optional sqlite=true
sudo apt-get install libsqlite3-devel

#libnl optional libnl=true
sudo apt-get install libnl-genl-3-dev libnl-3-dev

#Required Extras
sudo apt-get install wireless-tools
sudo apt-get install net-tools
sudo apt-get install wicd-curses (or wicd-cli)
sudo apt-get install usbutils
sudo apt-get install wpasupplicant
sudo apt-get install dbus

# Download & unpack (or replace link with latest trunk)
wget [url]http://download.aircrack-ng.org/aircrack-ng-1.2-beta3.tar.gz[/url]
tar -zxvf aircrack-ng-1.2-beta3.tar.gz
cd aircrack-ng-1.2-beta3

# Make
sudo make libnl=false sqlite=false
sudo make install libnl=false sqlite=false

# or
make libnl=true;make libnl=true install
make install libnl=true;make libnl=true install

# or Airolib-ng support
make sqlite=true;make sqlite=true install
make install sqlite=true;make sqlite=true install

# Add binaries to path
export PATH=$PATH:/usr/local/sbin

# add the above line to below file for include path on startup
vim /home/ubuntu/.bashrc

# Update MAC OUI
airodump-ng-oui-update

Reboot and disable your internal wifi, connect your dongle, and get cracking.

This is what I spent my easter (and then some) doing, I hope someone can make good use of it. I can :)

Maybe someone can come along and add bcmon for the bcm4334 chipset

(Just maybe https://code.google.com/p/bcmon/source/browse/trunk/bcm4330/driver/src/bcmdhd/Kconfig?r=4 )

Any feedback and questions are welcome:

why didn't you use the latest source? -couldn't find it

Will this kernel work with xx rom? -probably not

Why aren't more roms including this? -dno, its in the menuconfig, should be easy

I've tried to give thanks where ever possible, let me know if you feel left out.

Ill come back tomorrow and clean up my post.

Best Regards