Skip to content

Commit 41ea137

Browse files
committed
Attempt to fix Couldn't get ...validatedByFreeProfile EA
com.apple.installd.validatedByFreeProfile validation is really weird. This bypass worked as value size was smaller than expected, but is zero. I don't know if this is the cause of `Couldn't get ... EA` when sideloading for some users. Hope this fixes the issue
1 parent 170f14b commit 41ea137

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/SparseRestore/Restore.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ struct Restore {
5959
domain: "SysContainerDomain-../../../../../../../..\(bundlePath.hasPrefix("/private/") ? String(bundlePath.dropFirst(8)) : bundlePath)",
6060
owner: 33,
6161
group: 33,
62-
xattrs: ["com.apple.installd.validatedByFreeProfile": ""]
62+
// set it 3 bytes because 4 bytes causes "EA was not set to expected value"
63+
// it looks like the value is ignored if actual size is smaller than expected
64+
xattrs: ["com.apple.installd.validatedByFreeProfile": "\u{0}\u{0}\u{0}"]
6365
))
6466
}
6567

0 commit comments

Comments
 (0)