Android Host

From Android Open Pwn Project
Jump to: navigation, search

Connecting via ADB over USB

Prerequisites: Developer Options Enabled and ADB enabled, Host machine with ADB installed, USB cable.

Steps:

  1. Plug in device to host machine via USB
  2. Open a terminal and enter:
  3.    $ adb shell 
    
  4. Allow the connection on device by tapping OK on the ADB Prompt

You should now have a shell open on device.

From here you can:

    $ su 


This will spawn a TIMED SuperSU notification. You will need to hit allow.

Now that you have root you can do as you please on the android host.

To connect to the Pwnix environment from here see Connectivity:Pwnix Environment.

Connecting via ADB over TCP

Prerequisites: Developer Options Enabled and ADB enabled, Host machine with ADB installed, Wireless Network.

On Device

NOTE: You need to enable ADB over TCP in Developer Options every time you want to use it. It resets on reboot.

Steps:

  1. Connect AOPP Device to wireless network
  2. Enable ADB over TCP in Developer Options
  3. Note the IP of the device and the port used - ex: 192.168.1.40:5555

On Host Machine

Steps:

  1. Open terminal
  2. Enter:
  3.     $ adb connect <IP-OF-DEVICE>:<PORT>
    
  4. Once connected, to get a shell on device enter:
  5.     $ adb shell
    


From here you can:

    $ su


This will spawn a TIMED SuperSU notification. You will need to hit allow.

Now that you have root you can do as you please on the android host.

To connect to the Pwnix environment from here see Connectivity:Pwnix Environment.

Enabling Developer Options and ADB over USB


There are many cases where one might want to be able to talk directly to the AOPP Android host. To do this developer options and ADB over USB must be enabled.

Steps:

  1. From Settings tap About
  2. Scroll down to the build number list item and tap it repeatedly until you are notified you have enabled Developer options
  3. hit back to return to Settings and tap Developer Options
  4. Tap the Android Debugging line to enabled ADB over USB
  5. Tap OK to complete


Settings > About Next Step Tap Build number 3 taps left Next Step Tap Build number 1 tap left Next Step You have enabled development settings! Next Step Pwnix update notification Next Step Pwnix update notification Next Step Pwnix update notification