Skip to content

Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.

C

mkapfs.py: a manifest line gives owner and permissions, not the kind -- the system image's LaunchDaemons stays a link

vcvkkeea3c1d9fc5c
diff --git a/tools/apfs/mkapfs.py b/tools/apfs/mkapfs.py
index e9b404b..769cc83 100755
--- a/tools/apfs/mkapfs.py
+++ b/tools/apfs/mkapfs.py
@@ -158,7 +158,10 @@ def apply_manifest(root, manifest):
leaf = node.children[parts[-1]] = Node(parts[-1], mode, target=fields[4])
else:
continue
- leaf.mode, leaf.uid, leaf.gid = mode, uid, gid
+ # (owner, group and permissions; not the kind: a link this tree has where the manifest
+ # says directory -- the system image's LaunchDaemons -- stays a link, as with mkpackfs.py)
+ if stat.S_IFMT(leaf.mode) == stat.S_IFMT(mode):
+ leaf.mode, leaf.uid, leaf.gid = mode, uid, gid
# ---------------------------------------------------------------------- b-tree nodes