Skip to content

Siddharthh39/Android-App-Management-API

Repository files navigation

Android App Management API

This project consists of four tasks that demonstrate proficiency in backend development, database management, virtual Android system simulation, and basic networking.

Table of Contents


Task 1: Backend Development

A Flask-based REST API was developed to manage app details in a database.

Endpoints:

  1. POST /add-app - Adds an app to the database.
  2. GET /get-app/{id} - Retrieves app details by ID.
  3. DELETE /delete-app/{id} - Removes an app by ID.

Task 2: Database Management

  • SQLite was used as the database to store app details.
  • Flask-SQLAlchemy was used to manage the database.
  • The database stores app details with fields: app_name, version, and description.

Task 3: Virtual Android System Simulation

A Python script simulates a virtual Android system capable of:

  1. Launching a virtual Android environment.
  2. Installing a sample app (sample_app.apk).
  3. Retrieving and logging system information (OS version, device model, available memory).

Task 4: Basic Networking

  • A Python script was created to establish an HTTP connection with the backend server.
  • It sends mock data (device ID, system info) to the Flask API.
  • The server's response is logged.

Setup and Installation

Prerequisites

Ensure you have Python 3 installed on your system.

Install Dependencies

Run the following command:

pip install -r requirements.txt

Running the API

python app.py

The API will be available at http://127.0.0.1:5000/.

Running the Virtual Android System

python virtual_android.py

Running the Networking Script

python networking.py

Testing the API

You can test the API using tools like Postman or curl commands.

Add an App

curl -X POST http://127.0.0.1:5000/add-app -H "Content-Type: application/json" -d '{"app_name": "TestApp", "version": "1.0", "description": "Sample application"}'

Retrieve an App

curl -X GET http://127.0.0.1:5000/get-app/1

Delete an App

curl -X DELETE http://127.0.0.1:5000/delete-app/1

This completes all the tasks for the assignment. 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published