5 Commits
Author SHA1 Message Date
Abdurrahman Kaan DikeçandClaude Opus 5.5 3e1d4fbaf6 tests: the import tests do not depend on the umask they run under, and check the owners where they run as root
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-12 18:33:56 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 209c2bfadd Imported Android files: readable by the vendor daemons whoever unpacked them, root's, nothing world-writable (#127, #170)
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
2026-10-12 18:13:40 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 b284b6dc84 The Magisk workflow refreshes the package lists before it installs its tools, and a failing magiskboot compress says why
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-05 08:51:12 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 91ab6556db android-boot-image: the device segment keeps only whole LZ4 chunks and must decompress to its cpio, and no proprietary copy outlives a failure
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-05 03:03:39 +03:00
Abdurrahman Kaan DikeçandClaude Opus 5.5 b380fda608 android-boot-image: the misc blocks, the Android files and the device ramdisk segment, made on the device itself
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn
2026-10-05 02:53:18 +03:00