Skip to content

Pytech04/ADBDataExtractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ADB Data Extractor

ADB Data Extractor is a Windows Forms application designed to extract, manage, and store data from Android devices. It provides a user-friendly interface to handle contacts, messages, call logs, and device information, with options to save the data to a local SQL Server database and generate reports.


UI

image

Features

  • Contacts Management:

    • Load contacts from an Android device.
    • Save contacts to a SQL Server database.
    • View and manage contacts in a tabular format.
  • Messages Management:

    • Load text messages from an Android device.
    • Save messages to a SQL Server database.
    • View and manage messages in a tabular format.
  • Call Logs Management:

    • Load call logs from an Android device.
    • Save call logs to a SQL Server database.
    • View and manage call logs in a tabular format.
  • Device Information:

    • Retrieve CPU and memory information from an Android device.
    • Save device information to a SQL Server database.
  • Report Generation:

    • Generate PDF reports for the extracted data.

Technologies Used

  • Programming Language: C# (Version 10.0)
  • Framework: .NET 6
  • Database: SQL Server (Local instance)
  • UI Framework: Windows Forms
  • Libraries:

Installation

Prerequisites

  1. Install SQL Server and ensure it is running locally.
  2. Install .NET 6 SDK.
  3. Install ADB (Android Debug Bridge) and ensure it is added to your system's PATH.

Steps

  1. Clone the repository:
  2. Open the solution in Visual Studio 2022.
  3. Build the solution to restore dependencies.
  4. Run the application.

Usage

1. Initialize the Database

  • The application will automatically create the required tables in the database when it runs for the first time. Ensure the database connection string in DatabaseService.cs is configured correctly:

2. Extract Data

  • Connect your Android device via USB and ensure USB debugging is enabled.
  • Use the Load buttons in the application to fetch data (e.g., contacts, messages, call logs, or device info).

3. Save Data

  • Use the Save to Database buttons to store the extracted data in the SQL Server database.

4. Generate Reports

  • Click the Generate PDF Report button to create a report of the extracted data.

Project Structure

  • Models:

    • Contact.cs: Represents a contact with fields like Name, PhoneNumber, and Email.
    • TextMessage.cs: Represents a text message with fields like Sender, Content, and Timestamp.
    • CallLog.cs: Represents a call log with fields like PhoneNumber, CallType, and Duration.
    • DeviceInfo.cs: Represents device information with fields like CPUInfo and MemoryInfo.
  • Services:

    • DatabaseService.cs: Handles database initialization and CRUD operations.
    • ADBService.cs: Interacts with the Android device using ADB commands.
    • ReportService.cs: Generates PDF reports for the extracted data.
  • UI:

    • MainForm.cs: The main Windows Forms interface for interacting with the application.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Submit a pull request with a detailed description of your changes.

License

This project is licensed under the MIT License.


Acknowledgments

  • Dapper for simplifying database operations.
  • ADB for enabling communication with Android devices.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages