Android-API-Extractor is a Python script that facilitates the analysis of Android APKs, extracting Retrofit HTTP method annotations and OkHttp3 variables from the smali code. This tool provides insights into the API endpoints and network-related components used within the APK, allowing for easy examination and integration into different toolsets.
- Extracts Retrofit HTTP method annotations and OkHttp3 variables from smali code.
- Supports both APK files and smali folders as input.
- Generates output in user-friendly text or Postman collection JSON format.
- Clone this repository or download the script.
- Make sure you have
apktool
installed on your system. - Run the script with command-line options to analyze APKs or smali folders and specify output preferences.
- Text Format: Provides annotations and variables in a readable text format.
- Postman Collection Format: Outputs annotations in a JSON format compatible with Postman collections.
To get started, follow these steps:
-
Install
apktool
if you haven't already. -
Clone this repository or download the
analyze_apk.py
script. -
Open your terminal or command prompt.
-
Navigate to the directory containing the script.
-
Run the script using the provided options. Example:
python analyze_apk.py -apk my_app.apk -o output.txt