Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,209 Members 48,062 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Daniel-TAz00
Old
(Last edited by Daniel-TAz00; 22nd April 2014 at 10:55 PM.) Reason: spellcheck
#1  
Junior Member - OP
Thanks Meter 7
Posts: 13
Join Date: Aug 2012

 
DONATE TO ME
Storage [DEV][Kernel] P5210 | USB RT8187 | Aircrack-ng How to Included

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)

Quote:
Originally Posted by Mod57 View Post
This is built using the Samsung GT-P5210 P5210UEUAMI8 [4.2.2] Jelly Bean base.
ORIGINAL THREAD

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:
http://forum.xda-developers.com/show....php?t=2482582
  • Jelly Bean P5210UEUAMI8
  • Fully Deodexed
  • Rooted
  • BusyBox
  • Zipaligned
  • Extended Power Menu (Wanam Xposed)
  • Will Not Delete Internal SD

Thanks to:
DutchDanny
Angel_666
Zidkijah

and everyone else who has contributed to this device.

Download:
http://www.androidfilehost.com/?fid=23189362627838229
MD5: 79f732fefbaf7882bc7c814d3ac1e998
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...422-stock.html)
Code:
Select Code
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.
Code:
Select Code
Download this image: ubuntu-13.10.LARGE.x86.ext2.v1.zip
from http://sourceforge.net/projects/linu...ntu/13.10/x86/
and copy it to your sdcard

Thanks to jorgen_gustavsson for his excellent work http://forum.xda-developers.com/show....php?t=2573441

1.  Install busybox https://play.google.com/store/apps/d...ricson.busybox
2.  Install a vnc viewer https://play.google.com/store/apps/d...oid.androidVNC
3.  Install https://play.google.com/store/apps/d...linuxonandroid
    (Not sure, but open and close it once to be safe)
4.  Copy bootscript.sh link to bootscript thread 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 http://download.aircrack-ng.org/airc...2-beta3.tar.gz
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/sour...hd/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
The Following 7 Users Say Thank You to Daniel-TAz00 For This Useful Post: [ Click to Expand ]
 
Nitro_123
Old
#2  
Senior Member
Thanks Meter 66
Posts: 333
Join Date: Feb 2011
Location: Salmiya
You my dear friend are a LEGEND
Trying to help
 
Rubenyz
Old
#3  
Rubenyz's Avatar
Senior Member
Thanks Meter 128
Posts: 384
Join Date: Oct 2011
Location: Not there bi@tch

 
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 quick green Android jumps over the Apple \\

The Following User Says Thank You to Rubenyz For This Useful Post: [ Click to Expand ]
Tags
aircrack-ng, gt-p5210, rt8187, tab310
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes