kernel.org ended the 7.2 series with 7.2.15. Releases no longer build or carry
mu300-kernel-7.2.tar.gz or the -k7.2 Magisk zips (release and mainline
workflows, make-release, make-magisk-zips), patches/7.2 is gone (7.3 has its
own 0028) and parity/mainline.list drops the 7.2 series.
Migration: mu300-update takes a 7.2 choice for 7.3 (never the 5.4 an unknown
choice means), says so in apply/boot/check/kernel, installs 7.3 through the
usual boot update (image before kept for rollback-boot, one-boot fallback
unchanged) and writes 7.3 down once an image of 7.3 is in place.
"mu300-update kernel 7.2" refuses and names 7.3. rollback-boot to a 7.2 image
still works and says the next update brings 7.3. Zips and directories of older
releases with 7.2 are still read. install.sh, install.ps1, the GUI, the web
installer and the Ubuntu panel take an answer or a choice of 7.2 as 7.3 with
a note; the kernel menu is 1) 5.4, 2) 6.18, 3) 7.3, and 4 still means 7.3.
mu300-api and the LuCI adapter no longer accept 7.2. Docs, wiki and site
(en/tr/zh) list three kernels and describe the retirement.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
On an F50 the stock firmware's MTP function hangs, and Windows then resets the
USB device about every ten seconds, which cuts the adb session the installer
uses each time. Reported by kanoqwq, who suggested turning MTP off from the
installer.
Early in every run (right after root is confirmed) install.sh, install.ps1,
uninstall.sh, uninstall.ps1 and the web installer push tools/android-usb.sh
and switch sys.usb.config to "adb" when it holds mtp or ptp: "none" first,
until sys.usb.state says none, then "adb" - what Android's UsbDeviceManager
does (UsbHandlerLegacy: no USB gadget HAL on these units). The F50's stock
vendor rc (init.ums9620_2h10_ufi.usb.rc, B09) builds "adb" as ffs.adb alone
(19d2:1352) for every persist.vendor.sys.modem.diag value, and AOSP's
init.usb.configfs.rc has it on every configfs Android, so the U30 Air and the
V50 get it too. Never persist.sys.usb.config: the next start of Android has
the user's functions again. The switch runs detached (adb drops with its
first step); the host then waits for adb with sys.usb.state "adb", bounded by
MU300_USB_WAIT (60 s), and stops with what to do when the device does not come
back. Android that sets its functions again is gone on with. MTP already off:
nothing happens. MU300_USB_ADB_ONLY=0 leaves the USB alone.
Where a run ends with the device still in that boot of Android (uninstall,
--check, a backup, a failure) the functions of before are set back; never
after a reboot (sys.powerctl set, or another boot_id). The web installer
switches after staging and tells the user to choose the device again (it
comes back as another USB product). Our Linux gadget (ncm/ecm/rndis + acm +
ffs.adb) has no MTP or PTP function; a test says so.
Not run on a board: it needs the owner's test in Android.
Reported-by: kanoqwq
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
The installers' make-room path (FINDINGS 112) could only reset Android. Where /data is an F2FS on all of userdata
(directly or through one device-mapper mapping, as metadata encryption has it), they now also offer "keep": Android's
own kernel shrinks the mounted F2FS (F2FS_IOC_RESIZE_FS), then the smaller table is written and Android restarts
once with everything kept. EXPERIMENTAL; FINDINGS 238.
The method is dikeckaan's; kanoqwq implemented it (kanoqwq/mu300-linux fe52afe3, c69be3a3, dad8224b): his
f2fs-online.c helper is tools/f2fs-online/mu300-f2fs-online (static arm64, reproducible build, CI rebuilds and
compares), his eligibility checks are tools/android-online-shrink.sh, and his rules - section-aligned target with
2 GiB to spare, a same-size probe first, a detached worker that checks both GPT copies and commits the table only
after the shrink, an interrupted run continued only from a known state - are in tools/resume.sh, tools/resume.py and
install.ps1. The graphical installer offers keep or reset.
Tests: tests/online-shrink-e2e.sh runs the real helper and script on a real F2FS in a loop disk (dm and direct);
tests/test_online_shrink.py; tests/test_resume.py OnlineShrink with tests/fakeonline.py; ps1 answers-mode checks.
UFS (fe52afe3's other half) is left to the UFS work. Not taken: his uninstall growth through a temporary Android boot
image (474e8018).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
The internal disk and its partitions were found in seven places, each with
its own copy of "the mmcblk disk of type MMC": init, early-recorder,
android-vendor-start, mu300-cpu, mu300-update, and on the Android side the
installers' /dev/block/mmcblk0. A unit with UFS storage (the 1 TB U30 Air of
issue #396: sda, partitions sda1..sda75, no mmcblk at all) was found by none.
- rootfs/overlay/opt/mu300/lib/storage.sh: the one lookup. The eMMC as
before (type MMC, else the first mmcblk disk that is not a card), else a
SCSI disk below the UFS host that holds misc; never a card or a USB disk.
Partitions are the disk's own sysfs children (mmcblk0pN or sdaN).
After kanoqwq's storage.sh (his fe52afe3).
- init sources it from the ramdisk (/etc/mu300-storage.sh, which
build-boot-image.py puts into every segment that has an init);
early-recorder, android-vendor-start and mu300-cpu from /opt/mu300/lib.
mu300-update carries a copy (a self-update runs it on a system that may
not have the file yet); a test keeps it the same.
- Android side: the internal disk is the one that holds misc, as Android's
by-name links say (tools/storage.sh's internal_disk, install.ps1,
uninstall.ps1, and the same lines in android-install.sh,
android-mount-mu300root.sh and android-web.sh); mmcblk0 when Android does
not say. On an eMMC unit every device command is the same text as before.
Not here: the make-room path on 4096-byte logical blocks and an identity
without the eMMC CID (step 2).
Co-Authored-By: kanoqwq <kanoqwq@qq.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Ported from kanoqwq/mu300-linux, adapted to this tree:
- home.js: a newer successful fast-tier read clears the slow tier's old
error, so the card stops saying "No response" once the modem is back
(3c350105). Our cell output has no card field, so only the error clear.
- openwrt-board-check: a broken /etc/board.json is made again by
board_detect before the wifi-scripts read it, the broken one kept beside
it (f6b0668d). mu300-hw runs it and carries on either way (his returned).
- wifi-ready (ucode): every enabled radio and interface up, each access
point ENABLED; a disabled one counts as ready (f0b5ad43). mu300-hw's
20 s wait asks it instead of hostapd.wlan0 alone, which a switched-off
hotspot never has (that boot waited 20 s and restarted the Wi-Fi).
Exit 2 for a radio netifd gave up on or an AP DISABLED, so the wait
still ends at once there.
- mu300-led: sleep and idle on darken every lamp, not only those with a
state file here, and write the battery LED again (dbd6bf1e).
- thermal-guard: a round where no zone gives a number lifts no cap and
turns no alarm off (the invalid-sensor check of cc0ecce7; his adaptive
cadence is not taken, ours stays 5 s).
- early-recorder: pinned to the lowest-capacity CPUs, logread -l 300
(f0b5ad43, after liuwang97).
- mu300-linux (Magisk switch): --no-reboot, and misc written with
conv=fsync, falling back to the old dd where fsync is unknown (f6b0668d).
- mu300-next-boot: when the default-boot file cannot be written after
misc was, misc gets its previous block back (f6b0668d).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Work in progress, put on hold by the owner. Not ready for review or release.
- upstream: 7.3 builds (Image + all 31 out-of-tree modules, 3074 modules in the bundle). Every patch of
upstream/patches applies to 7.3 unchanged (offsets; fuzz in 0003, 0005, 0019 as on 7.2); none is upstream,
none dropped.
- 7.3 folded CONFIG_PROC_SYSCTL into SYSCTL: config-ignored.txt lists it, the fragment also sets
CONFIG_SYSCTL=y; build.sh and audit-bundle.py pass a listed option only when the kernel has no such symbol at
all (test added).
- wlan (sprd_wlan_combo): 7.3's cfg80211 hands remain_on_channel/mgmt_tx the cookie by value; dma_capable()
takes DMA attributes. Audio (sprd_audio): the headset driver imports the IIO_CONSUMER namespace on 7.3.
- mu300-update, install.sh, install.ps1, the Magisk installer, the GUI strings and i18n (tr, zh): kernel 7.3
as choice 4 next to 5.4, 6.18 and 7.2.
- Docs, wiki and site list 7.3.
Not done yet: release.yml/mainline.yml/make-release.sh/make-magisk-zips.sh/package.sh/android-install.sh/
android-web.sh, GUI KERNELS lists and the web installer JS, the Cockpit/LuCI kernel pickers, tests for the new
choice, build.sh's fetch of sha256sums.asc from www.kernel.org (the CDN copy lagged 7.3), a FINDINGS entry, and
the device tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
mu300-carry same/tarfilter/tarlink, mu300-update's delta block (the plan, the room before anything is
written, the unpack, a run cut off leaves nothing), android-install.sh's side of it, the device's own files
by link in every mode, and the computer installer's switch module of the release.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Review: android-pwcheck.sh ran the installed system's perl or openssl in a chroot as Android's root - a tampered
Linux system would get Android's root during the update. Now only the project's own tools compute the hash:
- tools/pwcheck/mu300-pwcheck.c: crypt_r() of libxcrypt, linked statically, built by make-release.sh with the
other helpers (the build checks a real Ubuntu yescrypt hash) into the 5.4 kernel bundle beside busybox; the zips
carry it as mu300/mu300-pwcheck when their release has it. Password and hash on standard input, one word out.
- android-pwcheck.sh: mu300-pwcheck, else the bundle's busybox mkpasswd (MD5-/SHA-crypt, a salt of crypt's
alphabet only), else UNVERIFIABLE; no chroot; ROOT, etc and shadow must not be links.
- install.sh, install.ps1: the tools from the package, or from the release's kernel bundle fetched and checked
before the question, pushed with the check.
- The check mounts with the journal replayed (MU300_RO=recover): OpenWrt's reboot leaves needs_recovery set, and
a noload view can hold an older /etc/shadow.
- Tests: nothing under ROOT and no chroot may run (every program there says MATCH and leaves a mark), links,
the checker built with -Werror against libcrypt; the Pester runs reset the fake between cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
The v2026.10.16.1 zip reset an OpenWrt root whose password was "ubuntu" to none while its plan said the
passwords were kept: default_hash took "ubuntu" (and none) for the images' own. The computer's installers wrote
a new password over the old one at every update.
- tools/android-pwcheck.sh: on Android, over the read-only mount, the installed system's own tools in a chroot
check a password against its hash (Ubuntu's perl/libxcrypt for yescrypt, OpenWrt's openssl passwd for MD5-
and SHA-crypt; the zip's busybox mkpasswd first). One word out, never the password or the hash.
- install.sh, install.ps1, the window: an update asks "Keep the current password? (yes/no)"; yes asks the
current one (three tries, then it stops with nothing changed), no asks a new one twice. Answers mode:
MU300_ANS_KEEP_PASSWORD, MU300_ANS_CURRENT_PASSWORD[_<SYSTEM>] (secrets). KEEP_PW_OSES in mu300-install.env:
android-install.sh leaves those accounts alone.
- The Magisk zip: nothing can be typed, so an update keeps every password and says "kept, not checked"; a
mu300-install.conf at the top of the zip (customize.sh hands it over, it wins over every other file) can say
MU300_KEEP_PASSWORD=yes with MU300_CURRENT_PASSWORD (checked; a wrong one stops before anything is written) or
no with MU300_PASSWORD. An update takes MU300_PASSWORD/MU300_PASSWORD_RESET only from the zip.
- Tests, i18n (tr, zh), README, wiki, site (en, tr, zh), INSTALLER-AUTOMATION, FINDINGS 126 (device results on
an F50).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
On the F50 (part 7 of docs/update-device-test.md), install.sh from the package of an older test release updated
the internal OpenWrt from v2026.10.16.91 to v2026.10.16.90 without a word, where mu300-update and the Magisk zip
refuse (the older release's updater may not carry everything over). android-install.sh now checks the release of
each image against the installed system before it writes anything (its downgrade block, the release-tag order);
DOWNGRADE=1 in the env file allows it: install.sh and install.ps1 with MU300_DOWNGRADE=yes, the Magisk installer
after its own check. The update texts of install.sh, install.ps1 and the window say what an update keeps now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
v2026.10.28 will never exist (docs/FINDINGS.md 125: after v2026.10.27 the tags are vYYYY.MM.DD.N), so
every mention this branch added now names the release by what it is: the docs, the wiki, the site in
three languages, the installer's messages (msgids and their tr/zh translations), the comments, and the
two test builds' records without the name they were built under.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Every vYYYY.MM.DD.N is newer than every vYYYY.MM.DD and N is a number (docs/FINDINGS.md 125); sort
took v2026.10.27 for newer than v2026.10.16.1 and v2026.10.16.2 for newer than v2026.10.16.10, so a
zip of a newer release would have been refused as a downgrade. plan_choices now uses mu300-update's
newer (the installer sources it already).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Both sides kept: install.sh/install.ps1 take --package and --resume/--no-resume/--transaction; no
self-update from a package or while a transaction waits; tools/resume.sh and tools/resume.py go
into the zip's computer/ (files.txt). A test makes room from an unpacked zip and resumes with the
same zip after the reset; another zip or a copy of the project is refused (the payload identity).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Every release zip now also holds the project's installers for a computer (computer/, from
android/magisk/computer/files.txt), START-HERE.md (en/tr/zh, with the zip's system, kernel and
release written in) and launchers: start.sh/.cmd, start-gui.sh/.cmd, uninstall-linux.sh/.cmd.
Unpacked, install.sh / install.ps1 / the window install exactly that zip's system and kernel from
its own payload/, offline: tools/package.sh (and its PowerShell twin, gui/mu300gui/package.py)
reads mu300/manifest as the zip's own installer does and checks both payload files against the
manifest and the release's SHA256SUMS; no question about the system, kernel, release or panel, no
self-update. MU300_PACKAGE / --package / -Package name another unpacked zip.
The Magisk side is untouched: customize.sh unpacks only mu300/, module.prop, the switch module and
system/. A test installs a zip with and without the computer's side through customize.sh on the
fake device and compares; the real v2026.10.27 zips built by main and by this differ only in the
new entries (and the new translations). About 0.33 MB more per zip.
A mainline zip has no 5.4 bundle: build-boot-image.py takes --busybox/--logdw/--modules as
optional only with --append-ramdisk, and checks that segment brings them (it replaces them anyway).
adb is not bundled: the Android SDK licence (3.4) does not allow passing platform-tools on;
START-HERE.md says where to get them. FINDINGS 111.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Both were published while this branch waited: without their manifests a device on either would be updated the old
way (no manifest: only the list of places counts as the user's for certain). Made from the published images, each
checked against its release's SHA256SUMS first (tools/image-manifest.py legacy, then union); every older release
comes out of the new unions exactly as from the old ones. The texts that named v2026.10.26 as the first release
that carries everything over now name v2026.10.28 (should another release go out first, it needs the same).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Conflicts: apply's downgrade rule is #221's downgrade_ok (--downgrade) for every source; the usage and help name
both report and the panel's commands; running_os keeps #221's words; make-release publishes the manifests beside
mu300-release and the signature; the keep list of the fallback (android-install.sh) has etc/crontabs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Review of the first version: a mktemp -d directory in /data/local/tmp
(0771, no sticky bit) can still be renamed away by the shell user. Now
printf goes straight into dd (hex checked, 32 bytes counted), and
by-name/misc is resolved once to a block device under /dev/block whose
sysfs uevent says PARTNAME=misc; that path is read, written and read
back. Tests plant links at the old temp name and at by-name/misc.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
switch.sh wrote the 32-byte block under a fixed name in
/data/local/tmp (the adb shell user's directory) as root: a symlink
planted there redirected root's write, and a swap between the size check
and dd chose what went into misc. Now a mktemp -d directory, and dd
copies at most 32 bytes. FINDINGS 101.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
kano (kanoqwq) ported this project to the ZTE V50 in his line (clean-tf-7.2: f6b0668d, 0438ab01). Brought over
as an experimental third device; nobody in this project has a V50, nothing of it is measured here.
- How it is told apart: mu300-device and boot/init (one rule, the same code): its device tree has an AW9523B at
0x5b on I2C3, which no F50's or U30 Air's has (both read). An F50 label on such a tree (an older installer's
"continue anyway") is a v50; a v50 label without the node is what the tree says. F50 and U30 Air unchanged.
- Installers (install.sh, install.ps1, the Magisk zip, the web installer, the boot chain scripts): exactly
V50 / MU3351 on ums9620, with one line saying it is experimental; any other V50 refused, never offered as an
F50; mainline kernel only.
- Kernel: kano's leds-aw9523b (binds only ZTE's binding), patch 0017 keeps the V50's eMMC host awake (his
measured fix); a mainline bundle names v50 only with the driver, the 5.4 bundle never.
- mu300-led (NET1 network lamp, Wi-Fi lamp by band, never the PMIC's LEDs), no battery, the F50's USB role
switch, USB network 192.168.79.1; SIM2, NFC and SIM selection stay off (mu300-nfc says so).
- README, wiki Hardware-Notes, FINDINGS 95 (kano's findings apart from what was checked here), ADB-INTERFACE.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Until now an update kept a list of places and the image replaced the rest:
/etc/wireguard, a unit written by hand, crontabs, /var/lib/docker, /opt, a
changed /etc/sysctl.conf were gone from the system afterwards (measured on
the published images: 34 of 67 planted kinds of user state lost on Ubuntu,
26 of 52 on OpenWrt; docs/FINDINGS.md 85).
Every image now carries the manifest of its own files, and the ones of the
releases from v2026.09.21 on ship in the images. What the old image did not
bring, or brought and the user changed, goes into the new system (the carry
block of mu300-update); what cannot stay in its place is set aside under
/etc/mu300/update-kept and named in /etc/mu300/update-report. The block runs
from the new image, by its static busybox and with tools/carry/mu300-carry
(owners, modes, extended attributes, hard links, holes, times), the same for
mu300-update apply, the installers and the Magisk zip. An update never
leaves the device less protected than the user left it.
apply --no-rollback carries by link when there is no room for a copy; an
older release is not installed over a newer one by itself; the old way stays
reachable for one release (MU300_UPDATE_KEEP=list).
Measured in containers on real release images only; no device was free.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
mu300-install.sh (the installer inside every Magisk zip) for a caller that is not Magisk:
MU300_ANSWERS=FILE takes the settings from that file alone (root's, or the run is refused),
MU300_PROGRESS=1 prints MU300-STEP and MU300-PLAN lines beside the messages for people,
mu300/extras/ carries the VPN module or the panel to android-install.sh, and
MU300_ADB_KEY (trusted only) authorises one adb key for the installed Linux.
tools/android-web.sh is what the page runs on Android under su: status as JSON, a pushed
zip checked and moved to root's directory before its installer is unpacked, the
installation as a job in a session of its own (it does not need its watcher), an
uninstaller in the order of uninstall.sh (misc, then the boot partition, then the erase,
each verified), and the copies for a backup - never an NV, calibration or identity
partition. site/tools/stage.sh stages the site with those scripts for publishing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
install.sh run from a folder on FAT or exFAT under macOS stored every imported file and directory as 0700
root:root (the file system keeps no modes, macOS reports 0700, tools/vendor-overlay.py took what it was told).
modem_control and refnotify run as uid 1000 or mu300vnd and keep no capability that reads past a mode: the
property area unreadable ends at "can't get modem type!", vendor/etc unreadable at "can't get modem img!" - the
CP is never loaded, the AT ttys answer ENODEV. Reproduced on the F50-B on 7.2.10 and on 5.4.254 (the kernel makes
no difference), on Ubuntu and on openwrt-luci.
- android-vendor-start: before anything is started, the five imported trees are checked with one find and set
right where they are not: root's, directories 0755 (0711 left), programs 0755, the property files 0444, other
files 0644. One line says what was found, in the service's log and in the kernel's; marks in the boot
timeline. An update carries these files over as they are, so this is what repairs an installed system.
- tools/vendor-overlay.py: the mode of an entry comes from where it goes, never from the host's file system.
- The Magisk installer and android-install.sh run under umask 022 (magisk --install-module gives 000: sixteen
directories 0777 and ld.config.txt 0666 in a system the v2026.10.22 zip installed), and the overlay is packed
as root's (bionic was stored as Android's system, uid 1000: the first login account of the installed system).
- android-vendor-start makes /var/log before it starts logdw: on OpenWrt it can run before the boot script that
creates it, and then there was no vendor log at all - on three of four boots of the F50-B.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
Three guards taken from kanoqwq's TF installer, in our shape (one android-install.sh,
no slot layout):
1. Every install reads the written boot image back from the partition with the page
cache dropped - exactly its length in whole 4096-byte blocks, one dd into a file
whose status counts - and compares the sha256; a difference never arms Linux. The
Magisk installer's boot_readback (after write_boot's own check, the AVB footer
too) says which step failed; install.sh/install.ps1 keep their message.
2. In SD mode android-install.sh runs the format, each unpack, the removal of the old
system and a final flush through stage_run: the command in a session of its own
(setsid), polled, never waited for; ended at its limit or after 120 s without
movement of the card's completion counters (/sys/class/block/DISK/stat). On a
timeout the group gets TERM/KILL, nothing more is written (no sync, no unmount),
the user is told to reboot Android, and the OK line never comes.
3. The timeout leaves mu300-install.stalled (boot_id, stage, reason) in the lock dir
(/data/local/tmp; /data/adb for the zip). Both the device script and the Magisk
installer refuse a run in the same Android boot, remove a stale lock, and a clean
run leaves none. The zip keeps the device log in /data/adb on failure;
install.ps1 now writes work/device-install.log like install.sh.
Tests: test_android_install.Stages, test_magisk_installer.Install (a dd stub whose
read-back differs or fails; the lock; the lock dir; the kept log); fakedevice gets a
boot id. tr/zh lines for the three new messages. FINDINGS 48 with the device checks.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
A system the Magisk zip installed next to one already on the disk got a random
12-character password (build_password, KEEP_PW=0 without MU300_PASSWORD) that was
written only to /data/adb/mu300-linux-password.txt, root-only and replaced by every
later zip, so the user never saw it and the device offered a system nobody could log
in to (F50-B: Ubuntu first, openwrt-luci and openwrt added later). The one-boot
image's root::: was never the cause: the installer always replaced it.
Decision: a system the zip installs gets the images' well-known password - Ubuntu's
user ubuntu has the password ubuntu, OpenWrt's root has none (the empty field stock
OpenWrt ships with; dropbear and LuCI let root in until one is set with passwd or in
LuCI). No random password any more, for a first install or an added system. A trusted
MU300_PASSWORD still wins, hashed as before and never shown or written down. An update
of a system with accounts of its own keeps carrying them over (KEEP_PW).
- mu300-install.sh: build_password hashes "ubuntu" for Ubuntu (fresh salt), leaves the
hash empty for OpenWrt, and writes PW_SET=1 into mu300-install.env; the plan, the
closing message and the note in the password file say which account and password
work, in en/tr/zh; the file holds no secret any more
- android-install.sh: PW_SET=1 puts PWHASH in even when empty; the refusal of an
"empty or default" password is gone (those are the intended accounts now) and the
accounts-from-image mark is removed on every path
- tests: the images' password for a first install, a wipe and a system added beside
another (Ubuntu and OpenWrt); MU300_PASSWORD used, hashed and not shown; an update
kept; the device-side paths with and without PW_SET
- docs: FINDINGS 47, README, wiki/Installation.md, the site's install page (en/tr/zh)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
Linux boots with its own slot's uboot, sml, teecfg, trustos and vbmeta but runs
Android's modem images (android-vendor-start swaps the slot suffix). After an OTA
the Linux slot still holds the factory chain (issue #86). Following kano's advice,
tools/android-bootchain.sh copies those five images from Android's slot to the
Linux slot where they differ: every check first (slot, model, Android's slot
marked successful in misc, no OTA pending on the other slot, never from Linux,
both links present, two devices, one size), both slots' images backed up to the
Linux filesystem (.mu300/bootchain/<date>, SHA256SUMS), each write read back, a
mismatch restored and the install stopped before Linux is armed. Nothing outside
the fixed list of five is ever written (NV names refused even if listed).
android-install.sh runs it (SYNC_BOOTCHAIN in mu300-install.env); install.sh,
install.ps1 and the Magisk installer show it in their plan, refuse before
anything is written, and the host installers pull the backup into
work/bootchain. MU300_SYNC_BOOTCHAIN=0 / -NoBootchainSync skip it. From Android
later: su -c 'mu300-linux bootchain [sync]' (the switch module's identical copy,
bootchain.sh). FINDINGS 40 records what LK and the SPL load per slot and why
the modem images and NV partitions are left alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
Three more zips per release (openwrt-luci on 5.4, 6.18 and 7.2). The device
installer accepts the manifest of that system, sizes it like OpenWrt, puts
the device's firmware where OpenWrt keeps it, and keeps OpenWrt's password
block in the password file when Ubuntu is installed beside the panel system.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
When the release has no vpn extra of its own, install.sh and install.ps1 download mu300-linux-vpn.tar.gz from the
module's latest release (or MU300_VPN_MODULE, a copy on the computer), check it against SHA256SUMS and push it as the
vpn extra as before; android-install.sh accepts the module layout and the systems link it at their first boot. A
reinstall over a system that used the VPN without the module now warns that the VPN stays off, since engines alone
are no use without mu300-vpn. The question and the Magisk report name the module, in all three languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
a hash only when it carried the accounts over
image_hash fails when the zip's image shadow or the account's line cannot be read, and default_hash then says
"default" (a new password is generated). android-install.sh installs a system without PWHASH only when the merge
of the old accounts ran and left a real hash that is not the image's; its refusal names MU300_PASSWORD_RESET=yes.
Tests: the image's own hash carried over, an unreadable image shadow.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
The Magisk installer keeps the password only when the system's account (ubuntu, OpenWrt's root) has a crypt hash
that is not empty or locked, not the image's hash and not a SHA-crypt hash of the images' "ubuntu" (checked with
the bundled mkpasswd); an unreadable shadow or accounts still marked as the image's get a generated password.
android-install.sh sets the password before the new system replaces the old one and refuses to install a system
whose account would end up with no hash, an empty one, the image's own or the image's accounts: the old system
stays, the install stops and the boot image is never armed. Review findings: comment width, the zip's own conf.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
The Ubuntu zip installed over an existing Ubuntu on the U30 Air (keep mode) generated a new password and put it into
the system: the user's own password stopped working. Update now passes no PWHASH, writes no password file and says
"unchanged"; android-install.sh carries the accounts over with mu300-update's merge_accounts (a copy, kept identical
by a test), also when install.sh's update brings a hash. A password is generated for a new filesystem, a wipe, a
system added beside another, a system whose accounts are still the image's, or when /data/adb/mu300-install.conf
says MU300_PASSWORD=... or the new MU300_PASSWORD_RESET=yes (trusted only, used once).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
FINDINGS: main's 34 (LEDs, the second F50) before this branch's 35, under its own heading. The F50 lamp states that
K68/K38 point to are on main now. Host 650 OK, busybox OK, check-i18n and luci-i18n clean.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
Conflicts kept both sides: boot/init's region marker before the usb-net and pick-root blocks; android-vendor-start
links the partitions of the eMMC found by type, through the fork-free link_partitions; the OpenWrt build links the
shared path-commands list and keeps the panel's own services and mu300-sms; no VPN engine in either image (the vpn
extra) while the panel's docker mounts stay positional; assemble.sh enables mu300-atd2 next to the update notice;
android-install keeps openwrt-luci and the extras on a legacy wipe; make-release audits both the panel asset and the
vpn extra.
The third system in main's new places: mu300-extra counts a disk with only openwrt-luci as mounted, the Magisk
installer sees an installed openwrt-luci (space, plan, MU300_BOOT_OS) and names the installed systems in its last
hint (the fixed "ubuntu|openwrt" text became the {1} form install.sh already uses). Tests that read what git tracks
skip where there is no checkout (a container with only the worktree mounted).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
Both systems are two zips, and the second one leaves the first system's password as it is. On the F50 the Ubuntu zip
replaced /data/adb/mu300-linux-password.txt with its own password, and the OpenWrt root password, still the one in
use, was then nowhere on the device. The file now keeps the other system's block when that system is on the
filesystem being kept (not after a wipe), newest first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
mu300-update keeps both: notice and the extras in its help and usage, the slot-aware boot next to the extras'
install and adopt. make-release.sh audits the vpn extra and the sdcard and linux-slot features of every kernel
bundle. The Magisk installer's report says that the VPN engines are the vpn extra and how to add them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
A wipe onto a blank region or a new card formatted the target but was not recorded as used, so it stayed in
/data/adb/mu300-install.conf and the next flash (the second zip, an update) wiped the system just installed.
The key is now used whenever it is set and the target is formatted. MU300_SD_ERASE and MU300_REGION_OVERWRITE
were already used in every path that formats or overwrites. Test: a first install with the wipe (blank region,
installed region, new card, mu300sd card), then the next flash with the conf it left is an update.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn