A friendly android adb command-line tool
Project description
Adbtool
A friendly android adb command-line tool
Python Requirements
- python 3.10+
- Android SDK
Commands
adbt -h
usage: adbt [options]
show android device list
options:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
global config
--version show program's version number and exit
sub commands:
{adb,devices,push,install,uninstall,apk,sign,ab,il2cpp}
adb forward adb arguments to selected devices
devices show android device list
push push files to android device
install install apk file
uninstall uninstall apk file
apk show apk packageName/activityName
sign sign apk with android debug(only windows)
ab extract unity asset bundle information
il2cpp extract unity il2cpp information
adbt adb -- devices
adbt adb -d 1 -- shell
adbt adb -d a -- shell pwd
adbt adb -- -H localhost devices
adbt adb -d 1 -- -d shell
adbt adb supports the same device selection flow as install, and adb arguments must
be placed after --.
-d/--devicesbefore--belongs toadbt adb- everything after
--is passed to the realadbbinary without extra parsing adbt adb -hshows theadbtsubcommand helpadbt adb -- -hshows the realadbhelp
adbt adb -h
usage: adbt adb [-h] [-d [DEVICES ...]] -- [adb_args ...]
adbt devices -h
usage: adbt [options] devices [-h] [-d DEVICES [DEVICES ...]] [-l]
optional arguments:
-h, --help show this help message and exit
-d DEVICES [DEVICES ...], --devices DEVICES [DEVICES ...]
filter of devices, [n | serial | a] n:index of list(start with 1), serial:at least 2 char,
a:all
-l, --list show devices list
adbt push -h
usage: adbt [options] push [-h] [-r] [-n] [-j [HASHJSON]] [--hash [{sha1,mtime}]] [--localdir LOCALDIR]
[--remotedir REMOTEDIR] [--dontpush] [-d [DEVICES [DEVICES ...]]]
[path [path ...]]
positional arguments:
path file or directory
optional arguments:
-h, --help show this help message and exit
-r recursion all file
-n only push new file by last modify files, see -j
-j [HASHJSON] hash json file, default: ./$deviceMode_$deviceSerial.json
--hash [{sha1,mtime}]
hash function: mtime or sha1, default:mtime
--localdir LOCALDIR local prefix and remote prefix, will replace local prefix to remote prefix
--remotedir REMOTEDIR
local prefix and remote prefix, will replace local prefix to remote prefix
--dontpush only outout json file, not really push file to remote
-d [DEVICES [DEVICES ...]], --devices [DEVICES [DEVICES ...]]
filter of devices, [a | n | serial] a: all devices n: index of devices list(start with 1)
serial: devices serial (at least 2 char) not argument is show device list
adbt install -h
usage: adbt [options] install [-h] [-f] [--filter [FILTER ...]] [-r] [-d [DEVICES [DEVICES ...]]] [apkpath ...]
positional arguments:
apkpath
optional arguments:
-h, --help show this help message and exit
-f, --force install with adb -d -r
--filter [FILTER [FILTER ...]]
filtered by file name
-r, --run run app after install
-d [DEVICES [DEVICES ...]], --devices [DEVICES [DEVICES ...]]
filter of devices, [a | n | serial] a: all devices n: index of devices list(start with 1)
serial: devices serial (at least 2 char) not argument is show device list
installaccepts multiple apk paths and usesadb install-multi-packagewhen more than one apk is provided.- default install mode uses
adb -r;-f/--forceupgrades it toadb -d -r.
adbt apk -h
usage: adbt [options] apk [-h] [-r] [-d [DEVICES [DEVICES ...]]] [apkpath]
positional arguments:
apkpath
optional arguments:
-h, --help show this help message and exit
-r, --run run app
-d [DEVICES [DEVICES ...]], --devices [DEVICES [DEVICES ...]]
filter of devices, [a | n | serial] a: all devices n: index of devices list(start with 1)
serial: devices serial (at least 2 char) not argument is show device list
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adbtool-0.0.36.tar.gz.
File metadata
- Download URL: adbtool-0.0.36.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d7939eee4f1bec45ea828252da77e39ab27441d2145fa5d8100104082d6cde4
|
|
| MD5 |
2f29aca168c78a26427d23f2dcf99682
|
|
| BLAKE2b-256 |
d887305d8edead2f40d31c5c4af61ad23f1385fd22437262e68f4bed4f923bee
|
Provenance
The following attestation bundles were made for adbtool-0.0.36.tar.gz:
Publisher:
pythonpublish.yml on litefeel/adbtool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adbtool-0.0.36.tar.gz -
Subject digest:
4d7939eee4f1bec45ea828252da77e39ab27441d2145fa5d8100104082d6cde4 - Sigstore transparency entry: 1203328499
- Sigstore integration time:
-
Permalink:
litefeel/adbtool@37d05b3f1a3d85c888f493be0f7ac4b896797bf8 -
Branch / Tag:
refs/tags/0.0.36 - Owner: https://github.com/litefeel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pythonpublish.yml@37d05b3f1a3d85c888f493be0f7ac4b896797bf8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file adbtool-0.0.36-py3-none-any.whl.
File metadata
- Download URL: adbtool-0.0.36-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa6f84d67c6ff660f7a526502013f31f8e96fa0db0ca02ec1d6be566724db048
|
|
| MD5 |
8e45e8667421810fb663a74d827d0f1b
|
|
| BLAKE2b-256 |
6c86fb0cd4857fb87cd74ffb13f351bda71dad866574edc5a03f894ebf15a184
|
Provenance
The following attestation bundles were made for adbtool-0.0.36-py3-none-any.whl:
Publisher:
pythonpublish.yml on litefeel/adbtool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adbtool-0.0.36-py3-none-any.whl -
Subject digest:
aa6f84d67c6ff660f7a526502013f31f8e96fa0db0ca02ec1d6be566724db048 - Sigstore transparency entry: 1203328500
- Sigstore integration time:
-
Permalink:
litefeel/adbtool@37d05b3f1a3d85c888f493be0f7ac4b896797bf8 -
Branch / Tag:
refs/tags/0.0.36 - Owner: https://github.com/litefeel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pythonpublish.yml@37d05b3f1a3d85c888f493be0f7ac4b896797bf8 -
Trigger Event:
release
-
Statement type: