2025-07-14 15:01:30 +02:00
# android_manager
2025-08-05 08:15:00 +02:00
Do backups and restores of apps installed in your Android phone via the Android USB Debug
2025-07-14 15:01:30 +02:00
## Requirements
2025-08-05 08:15:00 +02:00
1. Enable Android USB debug.
1. In your Android phone, go to Settings
2. Go to "About phone"
2025-08-05 08:21:38 +02:00
3. Click repeatedly over "Build number" until you see a pop up window saying that you are a developer now, you might get ask for confirmation with your security protection (pin, password, fingerprint, face, ...)
2025-08-05 08:15:00 +02:00
4. Go to "System"
5. Go to "Developer options"
6. Enable "USB debbuging"
2. Connect your phone via USB to your computer
2025-07-14 15:01:30 +02:00
## Installation
### Linux
To install for example in your ~/.local/bin folder:
2025-08-05 08:15:00 +02:00
2025-07-14 15:01:30 +02:00
```bash
./install.sh --destination ~/.local/bin
```
To install system-wide:
2025-08-05 08:15:00 +02:00
2025-07-14 15:01:30 +02:00
```bash
sudo ./install.sh --destination /usr/local/bin
```
Change your configuration file in "${HOME}/.config/android_manager.conf" (see the example in the config folder).
### Windows (from PowerShell)
Ensure you have "C:\Users\${env:USERNAME}\AppData\Roaming\Python\Python${python_version}\Scripts\" in your Path environment variable.
```powershell
2025-08-05 08:15:00 +02:00
& $(where.exe pip).split()[0] install .
2025-07-14 15:01:30 +02:00
```
## Usage
2025-08-05 08:15:00 +02:00
```bash
android_manager.py [OPTIONS] COMMAND [ARGS]
2025-07-14 15:01:30 +02:00
```
2025-08-05 08:15:00 +02:00
### General options
2025-08-05 08:16:27 +02:00
2025-08-05 08:15:00 +02:00
|short|long|parameter|description|
|--|--|--|--|
2025-08-05 08:16:27 +02:00
|-d| --debug-level|critical, error, warning, info, debug, notset |Set the debug level for the standard output.|
2025-08-05 08:15:00 +02:00
|-l| --log-file|TEXT |File to store all debug messages.|
|-f| --cache-file|TEXT |Cache file to store data from each run|
|-a| --max-cache-age|INTEGER |Max age in seconds for the cache|
|-H| --host|TEXT |ADB server host name or IP.|
|-p| --port|INTEGER |ADB server port to use.|
||--config|FILE |Read configuration from FILE.|
2025-08-05 08:16:27 +02:00
||--help| |Show this message and exit.|
2025-08-05 08:15:00 +02:00
### Commands
#### Backup Android apps: backup-apps
##### Backup apps options
|short|long|parameter|description|
|--|--|--|--|
|-p|--backup-path|TEXT| Path to save the backed APKs [required]|
|-n|--just-names|| Save only the filename|
||--config| FILE| Read configuration from FILE.|
||--help|| Show this message and exit.|
#### Restore Android apps: restore-apps
##### Restore apps options
|short|long|parameter|description|
|--|--|--|--|
|-p|--backup-text-file |TEXT| Path to save the backed APKs [required]|
|-n|--device-product-name| TEXT| Device product name to install the apps. If not indicated it will install in the first device found.|
||--config| FILE | Read configuration from FILE.|
||--help|| Show this message and exit.|