Set up a degoogled Android phone or tablet from your terminal.
Flash LineageOS, audit privacy, harden settings and install apps,
with the tradeoff of every recommendation spelled out.
Why
Getting onto a degoogled ROM used to mean piecing together a dozen forum
posts. los-bootstrap covers the whole path from one CLI:
- Full lifecycle: bootloader unlock → ROM flash → privacy audit → hardening → apps → location → camera.
- It does the flashing. It runs the real fastboot sequence: manufacturer-aware unlock guides (Pixel, OnePlus, Fairphone, Motorola, Samsung, Xiaomi), SHA-256-verified downloads, device-match checks, and a two-step confirm before anything destructive.
- Honest about tradeoffs. Every recommendation names its downside.
- Safe by default. Commands are read-only unless you pass
--confirm; root is opt-in with--root.
Get started
1. Install (also installs adb; prints every command before running it):
curl -fsSL https://raw.githubusercontent.com/richardkfm/los-bootstrap/main/scripts/install.sh | sh
On Windows (PowerShell):
irm https://raw.githubusercontent.com/richardkfm/los-bootstrap/main/scripts/install.ps1 | iex
Already have Python and adb? Run pipx install "los-bootstrap[wizard]".
For the checksum-verified variant, source installs and upgrades, see
docs/INSTALL.md.
2. Turn on USB debugging. On the phone, open Settings › About phone (or About tablet) and tap Build number seven times. Then go to Settings › System › Developer options and switch on USB debugging.
3. Plug in and tap Allow. Connect the phone with a USB cable. When it asks Allow USB debugging?, tap Allow. Tick Always allow from this computer if it is your own machine.
4. Run it:
los-bootstrap
The wizard detects your device and lets you choose what to do. Is the phone
still on its stock ROM? Choose Flash for the bootloader unlock and
install guide, or start with los-bootstrap flash backup.
What it can do
| Command | What it does |
|---|---|
los-bootstrap |
Interactive guided wizard |
audit / report |
Privacy and degoogle audit (GMS, Google apps, Private DNS, ADB over network) |
harden |
Lockdown checks with why and tradeoff; --interactive --confirm applies fixes |
plan / apply --profile <name> |
Install a bundle of FOSS apps and settings from a YAML profile |
flash status / prepare / download / verify / run |
Unlock the bootloader and flash a ROM |
flash backup / check / update |
Pre-flash backup guide, first-boot check, "is my ROM current?" |
location doctor / compat |
Diagnose the location stack (microG, UnifiedNlp) and app compatibility |
integrity doctor / compat / guide |
Why banking and government apps refuse a custom ROM, and the options you have |
camera list-profiles / show |
GCam port recommendations per device |
The full command reference and exit codes are in docs/USAGE.md, and what each check does is in docs/FEATURES.md.
What it does not do
It does not bypass bootloader locks or signature checks. It never ships or fetches proprietary binaries (GCam APKs) or attestation keyboxes. It never roots your device for you. See the full list.
Project
- Roadmap · Changelog · Contributing / architecture · Releasing
- README graphics are generated by
python docs/assets/build.py. - License: GPL-3.0, see LICENSE.
Metadata
Release files for los-bootstrap 0.16.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 | Actions |
|---|---|---|---|---|
| los_bootstrap-0.16.2.tar.gz | 175.6 kB | With provenance | Details for los_bootstrap-0.16.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| los_bootstrap-0.16.2-py3-none-any.whl | Python 3 | none | any | Details for los_bootstrap-0.16.2-py3-none-any.whl |
Total release size: 329.6 kB
Release files / los_bootstrap-0.16.2.tar.gz
| Download URL | los_bootstrap-0.16.2.tar.gz |
|---|---|
| Size | 175.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad11f7c9692cc004b2cf35fd1b70b736975de5047bc8c2474471b9b9d45ef665
|
|
BLAKE2b-256 checksum How to use checksums |
bcdd2de87deb8fb8fef6afc69d572f94b45d1b39af2a9e8be1ca2360bc67f86f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / los_bootstrap-0.16.2-py3-none-any.whl
| Download URL | los_bootstrap-0.16.2-py3-none-any.whl |
|---|---|
| Size | 154.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4591cc1cd96de7aa394a9791d9522612f4e4e64c2f641c1fac639c49e5b00fe9
|
|
BLAKE2b-256 checksum How to use checksums |
a896bdbb6872d6de1f436ca7c49b4bf5473b92745b54c107add217e2ce263085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for los-bootstrap 0.16.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for los_bootstrap-0.16.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA 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.