Post Reply Subscribe to Thread

[DEV][Kernel] P5210 | USB RT8187 | Aircrack-ng How to Included

22nd April 2014, 11:39 PM   |  #1  
OP Junior Member
Thanks Meter: 8
13 posts
Join Date:Joined: Aug 2012
Donate to Me

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)

Originally Posted by Mod57

This is built using the Samsung GT-P5210 P5210UEUAMI8 [4.2.2] Jelly Bean base.

This is not debloated it's fat and sassy like Samsung intended it.
If you would like to debloat I highly recommend using DutchDanny's debloater which can be found here:

  • Jelly Bean P5210UEUAMI8
  • Fully Deodexed
  • Rooted
  • BusyBox
  • Zipaligned
  • Extended Power Menu (Wanam Xposed)
  • Will Not Delete Internal SD

Thanks to:

and everyone else who has contributed to this device.

MD5: 79f732fefbaf7882bc7c814d3ac1e998

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

You must have a rooted device (I used TWRP 2.7,
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:
and copy it to your sdcard

Thanks to jorgen_gustavsson for his excellent work

1.  Install busybox
2.  Install a vnc viewer
3.  Install
    (Not sure, but open and close it once to be safe)
4.  Copy link to bootscript thread to /data/data/com.zpwebsites.linuxonandroid/files/ overwrite the old file.
    (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)
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

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 )

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
Last edited by Daniel-TAz00; 22nd April 2014 at 11:55 PM. Reason: spellcheck
The Following 8 Users Say Thank You to Daniel-TAz00 For This Useful Post: [ View ]
23rd April 2014, 08:08 AM   |  #2  
Senior Member
Flag Sydney
Thanks Meter: 68
345 posts
Join Date:Joined: Feb 2011
You my dear friend are a LEGEND
6th June 2014, 09:11 AM   |  #3  
Rubenyz's Avatar
Senior Member
Flag Not there bi@tch
Thanks Meter: 128
384 posts
Join Date:Joined: Oct 2011
Donate to Me
I'm also yoing to build an own kernel... And I think I'll add this feature too...

Sent from my GT-P5210 using Tapatalk
The Following User Says Thank You to Rubenyz For This Useful Post: [ View ]
5th March 2015, 03:39 AM   |  #4  
Junior Member
Thanks Meter: 4
21 posts
Join Date:Joined: Feb 2014
Keep having error while compiling kernel :"(
Post Reply Subscribe to Thread

aircrack-ng, gt-p5210, rt8187, tab310
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes