Use cases
- Improve ergonimics
- Use your phone at work
- Share data between PC and Android device
- Bring your work wherever you go
- Experience something like Samsung Dex
- Boost productivity by multi-tasking on Android
Requirements
Your Android version must be 10.0 or higher.
USB debugging (ADB) must be enabled.
Your phone needs to be rooted, and com.android.shell must have root permission.
Features
- Multi-window, multi-application support
- Fuzzy search interface for managing apps, sessions, input methods, etc.
- Session persistance
- Reopen applications at device reconnection
- Config file customization
- PC-side UTF-8 input method support
- "Did you mean" suggestions when encountered a wrong command
Installation
This application is running on your PC, with your Android device connected to it via ADB.
Using pip:
pip install swm-android
Command line
SWM - Scrcpy Window Manager
Usage:
swm init [force]
swm [options] repl
swm [options] healthcheck
swm [options] adb [<adb_args>...]
swm [options] scrcpy [<scrcpy_args>...]
swm [options] app recent
swm [options] app run <query> [no-new-display] [<init_config>]
swm [options] app list [with-last-used-time] [with-type] [update]
swm [options] app search [with-type] [index]
swm [options] app most-used [<count>]
swm [options] app config show-default
swm [options] app config list
swm [options] app config (show|edit) <config_name>
swm [options] app config copy <source_name> <target_name>
swm [options] mount <device_path> <host_path>
swm [options] mount reverse <host_path> <device_path>
swm [options] ime list
swm [options] ime (switch|activate|deactivate) <query>
swm [options] ime search
swm [options] ime switch-to-previous
swm [options] java run <script_path>
swm [options] java shell [<shell_args>...]
swm [options] termux run <script_path>
swm [options] termux exec <executable>
swm [options] termux shell [<shell_args>...]
swm [options] session list [last-used]
swm [options] session search [index]
swm [options] session restore [session_name]
swm [options] session delete <query>
swm [options] session edit <query>
swm [options] session save <session_name>
swm [options] session copy <source> <target>
swm [options] device list [last-used]
swm [options] device search [index]
swm [options] device select <query>
swm [options] device name <device_id> <device_alias>
swm [options] baseconfig show [diagnostic]
swm [options] baseconfig show-default
swm [options] baseconfig edit
swm --version
swm --help
Options:
-h --help Show this screen.
--version Show version.
-c --config=<config_file>
Use a config file.
-v --verbose Enable verbose logging.
-d --device=<device_selected>
Device name or ID for executing the command.
--debug Debug mode, capturing all exceptions.
Environment variables:
SWM_CACHE_DIR
SWM managed cache directory on PC, which stores the main config file
SWM_CLI_SUGGESION_LIMIT
Maximum possible command suggestions when failed to parse user input
ADB Path to ADB binary (overrides SWM managed ADB)
SCRCPY Path to SCRCPY binary (overrides SWM managed SCRCPY)
FZF Path to FZF binary (overrides SWM managed FZF)
Demo
App fuzzy run
App search and run
Chrome demo
Device status
Java shell
List IME
Search
Termux demo
Termux shell
Related projects
Metadata
Release files for swm-android 0.3.3.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swm-android-0.3.3.2.2.tar.gz | 52.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swm_android-0.3.3.2.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 103.0 kB
Release files / swm-android-0.3.3.2.2.tar.gz
| Download URL | swm-android-0.3.3.2.2.tar.gz |
|---|---|
| Size | 52.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba5d5e71e4df447acd4cfb33ca0ac9fea2a20db5d66222744f8d8f05aaeba6bb
|
|
BLAKE2b-256 checksum How to use checksums |
3eec3bb504ea7d4d469dcbae3ece34a6c952c730faf4de3a2513bf0bc415c0f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.19
|
Release files / swm_android-0.3.3.2.2-py2.py3-none-any.whl
| Download URL | swm_android-0.3.3.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 50.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1a89c2f644b1e939c9e05ff7b1865b8454b6ba24f91e946bc1d63ee9888a31de
|
|
BLAKE2b-256 checksum How to use checksums |
acc87c902f16642fd1a439c0549c15d9b5f7fa62f5e8acd4588d45c58d46057a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.19
|