Skip to main content

Android Screenshot and Screen Recording Tool

Project description

SnapDroid

Platform: Android License: MIT Version: 1.0.0

A powerful command-line tool for capturing Android screenshots and screen recordings directly to your local machine without third-party apps or manual transfers.

   _____                   ____             _     __   
  / ___/____  ____ _____  / __ \_________  (_)___/ /   Android
  \__ \/ __ \/ __ `/ __ \/ / / / ___/ __ \/ / __  /    Screenshot
 ___/ / / / / /_/ / /_/ / /_/ / /  / /_/ / / /_/ /     & Recording
/____/_/ /_/\__,_/ .___/_____/_/   \____/_/\__,_/      Tool v1.0.0
                /_/                                     

🚀 Features

  • Instant Screenshots: Capture Android device screens with a single command
  • Screen Recording: Record device activity for specified durations
  • App Targeting: Launch and capture specific apps by package name
  • Background Blur Testing: Special mode for security testing of app preview blurring
  • No Third-Party Apps: Uses built-in Android tools, no app installation needed
  • Local Storage: Files saved directly to your computer, no cloud uploads
  • Emulator Support: Works with Android emulators including Corellium devices

🔍 Why SnapDroid?

For Developers

  • Streamlined Workflow: Capture screenshots and recordings without interrupting your development flow
  • Documentation: Easily create visual documentation for your apps
  • Bug Reporting: Capture and share visual evidence of issues
  • Demo Creation: Record app demos directly from your development environment

For Security Testers

  • Background Blur Testing: Test if sensitive apps properly blur content in the app switcher view
  • Evidence Collection: Capture proof of security findings
  • Automation Friendly: Integrate into testing scripts
  • Works on Emulators: Test on platforms where manual screenshots are difficult (like Corellium)

📋 Requirements

  • Python 3.6+
  • Android Debug Bridge (ADB) installed and in your PATH
  • USB debugging enabled on your Android device
  • Connected Android device or emulator

🔧 Installation

Option 1: Install from PyPI (Recommended)

pip3 install snapdroid

Option 2: Install from GitHub

  1. Clone this repository:

    git clone https://github.com/dr34mhacks/snapdroid.git
    cd snapdroid
    
  2. Install the package:

    # Method A: Using the installation script
    ./install.sh
    
    # Method B: Using pip directly
    pip install -e .
    

Prerequisites

Make sure ADB is installed:

  • macOS: brew install android-platform-tools
  • Linux: apt install adb
  • Windows: Download from developer.android.com

Connect your Android device and enable USB debugging

📱 Usage

Basic Commands

Take a screenshot:

snapdroid -ss

Record the screen for 10 seconds:

snapdroid -sr 10

Save to a specific directory:

snapdroid -ss --out ~/Screenshots

Advanced Features

Capture a specific app by package name:

snapdroid -ss --package com.example.app

Test background blur in app switcher:

snapdroid -ss --background

Record a specific app for 5 seconds:

snapdroid -sr 5 --package com.example.banking.app

Show all examples:

snapdroid --examples

Show version information:

snapdroid --version

🔒 Security Testing Use Cases

Background Blur Testing

Many apps containing sensitive information should implement proper blurring when shown in the app switcher (recent apps) view. SnapDroid makes it easy to test this security feature:

  1. Launch the target app:

    snapdroid -ss --package com.example.banking.app --background
    
  2. SnapDroid will:

    • Launch the specified app
    • Navigate to the app switcher
    • Capture a screenshot
    • Save it locally for analysis
  3. Examine the screenshot to verify proper content blurring

This is particularly useful on emulators like older Corellium devices where taking screenshots of the app switcher can be challenging through normal means.

🛠️ Troubleshooting

No device detected:

  • Ensure USB debugging is enabled on your device
  • Check connection with adb devices
  • Try restarting ADB with adb kill-server && adb start-server

Permission denied errors:

  • Make sure your device has authorized the ADB connection
  • Check for permission prompts on your device

App won't launch:

  • Verify the package name is correct
  • Try launching the app manually first

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📬 Contact

Created by @dr34mhacks - feel free to contact me!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snapdroid-1.0.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snapdroid-1.0.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file snapdroid-1.0.3.tar.gz.

File metadata

  • Download URL: snapdroid-1.0.3.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for snapdroid-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e1d33f918d565443ef9b942dd36125621d3608155285b5dc0e2b804371701d2b
MD5 86941feb147bdda3aef99bdfe7009cc2
BLAKE2b-256 c82244494355627eae960115ed4b95d9d9ec538a5f7dee5b335f3821273cbfdc

See more details on using hashes here.

File details

Details for the file snapdroid-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: snapdroid-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for snapdroid-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 114162b1534b9680d31477f6aa7a1d4b759cd8cb37f5fada305cd1b93a71329b
MD5 fe5be14337fe5082b62d739aa1c5f558
BLAKE2b-256 9cd1f52d0a8b74294edfc759a02c453dac42825fb74edf3d377400938293ff4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page