Sunteți pe pagina 1din 19

CORE & Android Integration

Thomas Wambold
taw38@drexel.edu

March 13, 2012

Introduction
CORE:1 convenient, easy-to-use emulator Uses lightweight virtual machines (Linux namespaces) Can run real applications CORE allows access to physical hardware through their RJ45 tool Most Android devices support USB tethering Combine the two to run real Android applications over emulated network

http://cs.itd.nrl.navy.mil/work/core/
2/8

CORE & Android Integration

Requirements
Android device with USB tethering capability If disabled by a carrier, could use a third-party ROM Cyanogenmod2 is a popular ROM which enables USB tethering Android SDK with adb for executing shell commands on device
I I

Other methods such as manually running commmands in terminal emulator on device adb is easier

Tested Devices: Samsung Nexus S, Cyanogenmod 7.1, Android 2.3.3 LG Optimus V, Cyanogenmod 7.1, Android 2.3.3 ASUS EEE Pad Transformer, Android 4.0.3 A Linux machine with CORE installed Arch Linux, Kernel 3.2.9 CORE version 4.3
2

http://www.cyanogenmod.com/
3/8

CORE & Android Integration

Android Setup
First, connect the device to a Linux machine, then: 1. Open the main settings menu 2. Select Wireless & networks 3. Select Tethering & portable hotspot 4. Make sure USB tethering is enabled 5. On host machine, run adb shell ifconfig usb0 <ipaddress> <netmask>
I I

Probably 10.0.0.100 255.255.255.255 On some devices, usb0 is named rndis0.

CORE & Android Integration

4/8

Android Setup
First, connect the device to a Linux machine, then: 1. Open the main settings menu 2. Select Wireless & networks 3. Select Tethering & portable hotspot 4. Make sure USB tethering is enabled 5. On host machine, run adb shell ifconfig usb0 <ipaddress> <netmask>
I I

Probably 10.0.0.100 255.255.255.255 On some devices, usb0 is named rndis0.

CORE & Android Integration

4/8

Android Setup
First, connect the device to a Linux machine, then: 1. Open the main settings menu 2. Select Wireless & networks 3. Select Tethering & portable hotspot 4. Make sure USB tethering is enabled 5. On host machine, run adb shell ifconfig usb0 <ipaddress> <netmask>
I I

Probably 10.0.0.100 255.255.255.255 On some devices, usb0 is named rndis0.

CORE & Android Integration

4/8

Android Setup
First, connect the device to a Linux machine, then: 1. Open the main settings menu 2. Select Wireless & networks 3. Select Tethering & portable hotspot 4. Make sure USB tethering is enabled 5. On host machine, run adb shell ifconfig usb0 <ipaddress> <netmask>
I I

Probably 10.0.0.100 255.255.255.255 On some devices, usb0 is named rndis0.

CORE & Android Integration

4/8

USB Tethering: CORE Setup


Make sure the CORE daemon is running, and start the CORE GUI 1. Create a new emulation 2. Drag some emulated nodes into the network 3. Create an RJ45 node 4. Double click on the RJ45 node to congure it, choose the interface created by the tethering.
I

Some devices seem to create two interfaces when tethering. Unfortunately both need to be tried.

CORE & Android Integration

5/8

USB Tethering: CORE Setup


Make sure the CORE daemon is running, and start the CORE GUI 1. Create a new emulation 2. Drag some emulated nodes into the network 3. Create an RJ45 node 4. Double click on the RJ45 node to congure it, choose the interface created by the tethering.
I

Some devices seem to create two interfaces when tethering. Unfortunately both need to be tried.

CORE & Android Integration

5/8

USB Tethering: CORE Setup


Make sure the CORE daemon is running, and start the CORE GUI 1. Create a new emulation 2. Drag some emulated nodes into the network 3. Create an RJ45 node 4. Double click on the RJ45 node to congure it, choose the interface created by the tethering.
I

Some devices seem to create two interfaces when tethering. Unfortunately both need to be tried.

CORE & Android Integration

5/8

USB Tethering: CORE Setup


Make sure the CORE daemon is running, and start the CORE GUI 1. Create a new emulation 2. Drag some emulated nodes into the network 3. Create an RJ45 node 4. Double click on the RJ45 node to congure it, choose the interface created by the tethering.
I

Some devices seem to create two interfaces when tethering. Unfortunately both need to be tried.

CORE & Android Integration

5/8

USB Tethering: CORE Setup continued


5. Create a wireless LAN node choose the interface created by the tethering. 6. Double click the WLAN node to congure it. 7. Set the IPv4 subnet to the same subnet as your Android device. 8. Click Link to all routers 9. Use the link tool and drag from the WLAN node to the RJ45 node to add it to the wireless network.

CORE & Android Integration

6/8

USB Tethering: CORE Setup continued


5. Create a wireless LAN node choose the interface created by the tethering. 6. Double click the WLAN node to congure it. 7. Set the IPv4 subnet to the same subnet as your Android device. 8. Click Link to all routers 9. Use the link tool and drag from the WLAN node to the RJ45 node to add it to the wireless network.

CORE & Android Integration

6/8

USB Tethering: CORE Setup continued


5. Create a wireless LAN node choose the interface created by the tethering. 6. Double click the WLAN node to congure it. 7. Set the IPv4 subnet to the same subnet as your Android device. 8. Click Link to all routers 9. Use the link tool and drag from the WLAN node to the RJ45 node to add it to the wireless network.

CORE & Android Integration

6/8

USB Tethering: CORE Setup continued


5. Create a wireless LAN node choose the interface created by the tethering. 6. Double click the WLAN node to congure it. 7. Set the IPv4 subnet to the same subnet as your Android device. 8. Click Link to all routers 9. Use the link tool and drag from the WLAN node to the RJ45 node to add it to the wireless network.

CORE & Android Integration

6/8

USB Tethering: CORE Setup continued


5. Create a wireless LAN node choose the interface created by the tethering. 6. Double click the WLAN node to congure it. 7. Set the IPv4 subnet to the same subnet as your Android device. 8. Click Link to all routers 9. Use the link tool and drag from the WLAN node to the RJ45 node to add it to the wireless network.

CORE & Android Integration

6/8

USB Tethering: CORE Setup continued 2


10. Click on the Start Experiment button. 11. Run any applications/routing protocols necessary

CORE & Android Integration

7/8

USB Tethering: CORE Setup continued 2


10. Click on the Start Experiment button. 11. Run any applications/routing protocols necessary

CORE & Android Integration

7/8

Notes
Doesnt matter what IP address the tethered interface has in Linux CORE opens the device in promiscuous mode Some Android devices create two Linux network devices when tethered. For example, the LG Optimus V One device wont work, the other will Just need to try both devices Some Android devices have rndis0 instead of usb0 Both act the same way If tethering is not supported, could connect to wireless AP Instead of tethering, use a USB WiFi card to create a wireless access point One AP for each device The rest of the process is the same, use the wlan device in CORE
CORE & Android Integration 8/8

S-ar putea să vă placă și