Tools

On this page

Host-side helpers, mostly read-only analysis. Python tools run with python3 -I.

Phone

ToolWhat
fp6-build.shbuild everything on the host: checks the host, then the kernel, imsd, fp6-mobian-support and the image, in one work directory. Resumes after a failure. See Reproduce it: build and install
fp6-phone.shthe checks around the install, read-only on partitions: back up the NV partitions and boot_a and verify the copy, check the AVB data and image size before writing boot, the NV check after the install, the first-boot checks. The writes themselves stay manual
bootimg-info.pydecode an Android boot image header (v0–v2) with no external tools: sizes, addresses, page size, os_version and patch level, cmdline, DTB magic
fp6-collect.shrun on the phone as root: collect logs and state (journal, dmesg, remoteprocs, firmware status, sound, modem, sensors, cameras, power) into a tarball. Read-only. The output contains device identifiers; review it before sharing
redact.shsed filter that masks identifiers in command output: phone numbers, IMSI/ICCID/IMEI/EID fields, SIP/tel URIs, MAC addresses, serial fields, global IPv6 prefixes, and any run of 7+ digits. Errs on the side of masking. Install it on the phone too, and pipe output through it on both ends before pasting logs anywhere

Kernel series and config

ToolWhat
export-catcrafts-series.shlinearize a merge-based tree into an ordered patch series and prove the result matches the merged tree
replicate-graph.pyrebuild a forge’s commit range, merges included, in a local repo from per-commit patches and merge diffs
catcrafts-order.pytopological order of the non-merge commits of such a range
resolve.py, splice-ref.pyresolve conflict blocks during the rebase: pick a side, or splice the matching region from the reference tree (used for the re-placed DTS hunks)
run-olddefconfig.shresolve Mobian’s layered kconfig fragments with olddefconfig in a network-less container, with the source tree mounted read-only
cfgdiff.pyclassify a fragment’s lines against the lower layers: redundant, override, new
fragcheck.pyrequested vs. resolved symbols; diff against a reference config
kdefault.pywhether each CONFIG_ symbol exists in a kernel tree or is added by a patch directory
dt-driver-check.pymap every DT compatible in the FP6/Milos DTS to its driver’s Kconfig symbol
check-debs.shinspect built kernel debs: metadata, DTB, key modules, a fragment check against the config actually used and a reference config

kernel/regen.sh and kernel/make-fixups.sh rebuild the series from upstream; see Kernel.

Audio

ToolWhat
build-topology.shbuild the FP6 AudioReach topology from Catcrafts’ audioreach-topology at a pinned commit, in a container without network, and check it against a pinned sha256

Build containers

All Debian forky:

FileFor
Containerfile.debbuildcross-building the kernel package (gcc, rustc, bindgen)
Containerfile.imsdimsd (clang/libc++ 22, CMake, ninja), run as arm64 under qemu
Containerfile.debosthe image (debos + extras)
Containerfile.kconfigolddefconfig only
Containerfile.tplgAudioReach topology (m4, alsatplg)

Privacy when testing a phone

A phone under test leaks identifiers in ordinary logs: the IMSI and phone number in ModemManager and imsd, SIP identities in IMS traces, the IMEI, the eUICC EID, serial numbers, MAC addresses, WiFi network names. When you share logs or work with someone else on a device: