adb-install-cert (root required)
This script automatically detect android version and choose preffered way to install certificate to system store.
If you want manually install certificate, see my guide
Usage
After installation, you can plug your device and run:
adb-install-cert --cert ~/path/to/cert.pem
If certificate format detect incorrectly, pass it directly (only der and pem support):
adb-install-cert --cert ~/path/to/cert.crt --cert-format der
By default adb-install-cert automatically select installation mode, based on android version.
If you want override it, pass --mode option (see --help or read technical description below for more information):
adb-install-cert --cert ~/path/to/cert.pem --mode temporary
If multiple devices present, you can specify one by serial:
adb-install-cert --cert ~/path/to/cert.pem --device-serial some-serial
As alternative, you can use environment variables, as described here:
ANDROID_SERIAL=emulator-5556 adb-install-cert --cert ~/path/to/cert.pem
Installation
pipx variant:
pipx install adb-install-cert
nix variant:
nix install github:sysraccoon/adb-install-cert
Technical Description
Before Android 10, permanent installation of a certificate is possible by remounting the root directory in read-write mode. These changes may require a device reboot.
Starting with Android 10, the root system is available in read-only mode. To install a certificate, the utility uses remounting /system/etc/security/cacerts directory in tmpfs with a preliminary copy of all existing certificates. After a reboot, the changes will be reset and the utility will need to be reused.
Starting with Android 14, all logic described before used, but also in order for the changes to take effect, the utility updates the state of running processes.
Metadata
Release files for adb-install-cert 0.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 | Provenance | |
|---|---|---|---|---|
| adb_install_cert-0.2.2.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adb_install_cert-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / adb_install_cert-0.2.2.tar.gz
| Download URL | adb_install_cert-0.2.2.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
767256f889d709c4465264a793b4d719d19afde0c8d285cf9e4c1b3a9f4bb3ba
|
|
BLAKE2b-256 checksum How to use checksums |
7808b065e72fd2d5df9b25e45b37d447f27a5790472385d5bbf0d5af6940d7aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.7 Linux/6.11.0-26-generic
|
Release files / adb_install_cert-0.2.2-py3-none-any.whl
| Download URL | adb_install_cert-0.2.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49c03f876d6cb0c6b119ae10b3ef03a5e8e7a1247f0d8710dab6c6e09dd04d78
|
|
BLAKE2b-256 checksum How to use checksums |
cbe4685afab772133ab3785d43860f4f55bdaf279264636e9e362f2158042de3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.7 Linux/6.11.0-26-generic
|
Security for adb-install-cert 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.