Pre-requisites and Initial Setup

Owner : 🧛🏻‍♂️ - Mr. Sup3rN0va | 08-April-2021

Tags : #i0S (📲), #android (📱), #pentesting (👨🏼‍💻), #tools (⚒), #cheatsheet (📜)


Table Of Contents



Assumption



☝️ Back to top ☝️

Post Android Studio Installation


Local Paths


  • Once you have completed your "Android Studio" installation, you will have default paths as
    • Windows

      • Default Path where new AVD's are created : %USERPROFILE%\.android\avd
      • Default Path for "Android SDK" : %LOCALAPPDATA%\Android\Sdk
      • Default Path for "ADB" : %LOCALAPPDATA%\Android\Sdk\platform-tools
      • Default Path for "Emulator" : %LOCALAPPDATA%\Android\Sdk\emulator
    • Linux : Linux doesn't have an installer. It's just a "tar.gz" file which needs to be extracted

      • Default Path where new AVD's are created : $HOME/.android/avd
      • Default Path for "Android SDK" : $HOME/Android/Sdk
      • Default Path for "ADB" : $HOME/Android/Sdk/platform-tools
      • Default Path for "Emulator" : $HOME/Android/Sdk/emulator

Installing and adding ARM Image


  • With Android Studio before '4.1.1' version, we can get the system image for "Android 9.0" which supports ARM libs out-of-the-box

  • This has been removed from latest Android Studio Version (Not sure WHY????? - It was very useful) 😭😭😡😡😡😡😡

  • So, you can download it from here : "Android v9.0 - Google X86_ARM Intel x86 Atom System Image"

  • Then you need to manually onload the image to create an emulator. You can visit this site for reference : "Android SDK Offline" 😍😍😍

  • You can also use "Android v11.0" if you are interested in ARM support as "Android v11.0" comes with ARM libs pre-installed out-of-the-box

    NOTE : Make sure that you always use system-images with "Google API's" rather than "Google Play Store" images as they are production builds and google doesn't like that to be rooted 🤷‍♂️🤷‍♂️😈😈


Creating Android Emulator


  • When you open "AVD Manager" to create an emulator, you need to use "v9" image as shown below to create the emulator

  • You can also use "Android v11.0" "Google API's" image for Android Pentesting as this one also supports ARM libs

  • Better to visit my GitHub page: "RASEv2" or "RASEv1"


Rooting Android Emulator


  • There are a lot of hiccups when you want to root the emulator as there is a change in filesystem from "Android v9.0" and above
  • Best and easy way is to use the script I wrote : "RASEv2"
  • You can use this to root AOSP Android Images from Android v6.0 and above