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.
-
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.
- Programming Language: C# (Version 10.0)
- Framework: .NET 6
- Database: SQL Server (Local instance)
- UI Framework: Windows Forms
- Libraries:
- Dapper for database operations.
- System.Data.SqlClient for SQL Server connectivity.
- Install SQL Server and ensure it is running locally.
- Install .NET 6 SDK.
- Install ADB (Android Debug Bridge) and ensure it is added to your system's PATH.
- Clone the repository:
- Open the solution in Visual Studio 2022.
- Build the solution to restore dependencies.
- Run the application.
- 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.csis configured correctly:
- 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).
- Use the Save to Database buttons to store the extracted data in the SQL Server database.
- Click the Generate PDF Report button to create a report of the extracted data.
-
Models:
Contact.cs: Represents a contact with fields likeName,PhoneNumber, andEmail.TextMessage.cs: Represents a text message with fields likeSender,Content, andTimestamp.CallLog.cs: Represents a call log with fields likePhoneNumber,CallType, andDuration.DeviceInfo.cs: Represents device information with fields likeCPUInfoandMemoryInfo.
-
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.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a detailed description of your changes.
This project is licensed under the MIT License.