Skip to content

bockra/CDP-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

It is android cdp parser using usb to ethernet module.

Fully tested on Samsung Galaxy Nexus, Android 4.1.2 (should work on any 4.0+ androids and devices with OTG support)

Also its a great example of running bash scripts from your device.

Each file has a lot of description inside I searched a lot for this information. So check MainActivity.java

Requipments.

  1. Phone MUST-have OTG support (http://en.wikipedia.org/wiki/USB_On-The-Go)
  2. Android phone should be rooted, because of accesing system files via bash scripts
  3. You have to install TCPdump for android. Good instruction (http://gadgetcat.wordpress.com/2011/09/11/tcpdump-on-android/)
  4. You should have Ethernet to USB connector to connect to wired network (I've used Apple Ethernet to sb connector + female usb to microusb)

Instruction.

  1. Create new android project (I used eclipse (in my own its name is com.example.test)
  2. MainActivity.java should be placed in Test\src\com\example\test\
  3. activity_main.xml is from Test\res\layout running scripts is on "android:onClick=" property in Textview
  4. android:targetSdkVersion="15" android:minSdkVersion="9"
  5. place cdp.sh and eth.sh to /sdcard/ (dont forget to change scripts with your needs)
  6. Connect ethernet cable to your Adroid device
  7. Run application - tap 2nd Textview to get info about ethernet - tap 4th Textview to get and parse CDP info

You can skip 1-4 just installing Test.apk on your phone

Feel free to contact me with any qustions. me@bockra.org

About

Get CDP info from android. Bash running from android app example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors