Skip to main content

los-bootstrap

CI PyPI License: GPL-3.0 Platform: Android / LineageOS Python 3.10+

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.

Animated terminal demo: devices, audit, harden, plan, flash check and integrity doctor

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 on your computer. 2. Turn on USB debugging. 3. Plug in and tap Allow. 4. Run los-bootstrap.

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

Metadata

Release files for los-bootstrap 0.16.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for los-bootstrap 0.16.3
File Size Uploaded Provenance Actions
los_bootstrap-0.16.3.tar.gz 175.6 kB With provenance Details for los_bootstrap-0.16.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for los-bootstrap 0.16.3
File Interpreter ABI Platform Actions
los_bootstrap-0.16.3-py3-none-any.whl Python 3 none any Details for los_bootstrap-0.16.3-py3-none-any.whl

Total release size: 329.6 kB

Release files / los_bootstrap-0.16.3.tar.gz

Download URL los_bootstrap-0.16.3.tar.gz
Size 175.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e9ce07a6fd043658a52772513d66d91acb5fddac666cb2d0e1f9f54408695fe5
BLAKE2b-256 checksum
How to use checksums
3eccbb5448edb19e5c1b9f9cec139079574c51353640eaec81a94a7caaef5997
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 log

Release files / los_bootstrap-0.16.3-py3-none-any.whl

Download URL los_bootstrap-0.16.3-py3-none-any.whl
Size 154.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b71d26abd0708cc87d7a1d898a37519f1f39b9ad4b686942eadc9db598def86e
BLAKE2b-256 checksum
How to use checksums
86f6579fe72c5fda7e6c0b73133b63be2b3790c801e090c40b1bf691cf3089f2
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 log

Security for los-bootstrap 0.16.3

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.

Select from 2 files

Attestation for los_bootstrap-0.16.3.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 log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page