This script scans an Android project directory for permissions declared in any XML files and prints the findings directly to the console.
- Python 3.x
- Access to the project directory where the script and Android project reside
- Clone or download the repository: Ensure that the
scanner.py
script is located in the root of your Android project. - Python Environment: You need Python 3.x installed on your system. You can download it from Python's official site.
- Open a terminal or command prompt.
- Navigate to the root of your Android project where the
scanner.py
script is located. - Run the script by typing the following command in your terminal:
python scanner.py
The script will automatically scan the project directory and subdirectories for any XML files that declare permissions and print the findings to the console.
The output will list all unique permissions found throughout the XML files in the project. If no permissions are found, it will indicate so.
- The script assumes all XML files are related to Android configurations. Non-Android XML files might affect the results if they contain similar attributes.
- Ensure that the script has proper read permissions across all directories in the project.