Repository navigation
feat: device management category, App Clips and accessibility assets in other - #66
Merged
Merged
Conversation
…in other Add an `mdm` category for remotemanagementd, RemoteManagementAgent and managedassetsd, and move axassetsd and clipserviced into `other`. On an iPhone 17 Pro / iOS 26.5, a fully slim simulator drops from 904.3 to 847.3 MiB and from 72 to 66 processes (median of three clean-boot rounds, `simslim measure`). profiled and mdmd stay untouched. New `mdm` and `app-clips` doctor features report the breakage, and the README and category-memory doc carry the measured estimates and what each change costs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We run iOS simulators for CI on a shared Mac Studio farm through simlock, which copies simslim's categories verbatim. When we went looking for what was still resident in an already-slim simulator, a few daemons outside the allowlist stood out. This PR adds the ones that are safe to persist:
mdmcategory:com.apple.remotemanagementd,com.apple.RemoteManagementAgent,com.apple.managedassetsd(managedconfiguration.profiledanddevicemanagementclient.mdmdstay untouched);com.apple.accessibility.axassetsdandcom.apple.ClipServices.clipservicedadded toother;mdmandapp-clipsdoctor features, sodoctor --requirescan report the breakage;docs/category-memory.mdupdated with the numbers below.Measurements
These numbers come from
simslim measure, run by a build ofmain(d594c23) and of this branch. The device was a fresh iPhone 17 Pro on iOS 26.5 (23F77), in a private device set on a Mac mini. Each configuration gotsimslim off, thensimslim on [--except …], then a clean shutdown and boot, a 20 s settle and three samples. I ran three rounds and report the median sample of each round:main, fully slim--except mdm--except otherSo a fully slim simulator is about 57 MiB (6%) smaller, with 6 fewer processes. The category estimates are 12 MiB for
mdm(shown as 10) and 223 MiB for the extendedother(shown as 225). On our farm's iOS 26.2 simulators, which had been running tests, these same daemons used more. The device-management daemons alone came to about 149 MB across their processes, andaxassetsdto about 68 MB, so the fresh-boot numbers above are the conservative ones.With the branch's full profile, I checked that the following still work:
simctl openurl https://…,launch,privacy grant,status_baroverride/clear andio screenshot. SpringBoard, backboardd and locationd kept their PIDs across a 110 s idle. The launchd log showed 2 failed lookups for the new labels and no retry loop.verifymatches afteron, and the overrides for these labels survive a latersimctl boot.What I left out, and why
disabled.plist:NPKCompanionAgent,appconduitd,pairedsyncd,bulletindistributord,eventkitsyncdand others. Six of them are resident at idle.simslim ondisables them for its own boot, through thelaunchctlfallback. On the nextsimctl boot, though, CoreSimulator rewrites all 17 back tofalseand they start again. A category made of them would drift after every reboot and failverify, so I didn't add one.forbiddenLabels. They still hold on iOS 26.5. As a cross-check, I persistedlaunchctl disableforsleepd,dmd,ManagedSettingsAgent,routined,biomesyncd,mobiletimerdand thenano*registry daemons on a throwaway simulator.bootstatusnever returned. SpringBoard looped oncom.apple.sleepd.sleepserver, andappprotectiondlooped oncom.apple.dmd, about 8.6k failed lookups each in the tail oflaunchd.log.Checks
go test ./...andgo vet ./...pass on macOS 26.5. The newTestSlimProfileReportsMDMAndAppClipsUntilExceptedfailed before the features existed. I didn't runswift-formatormake app, since nothing undergui/changed and the app decodes categories dynamically.TestReadLaunchdRetriesATimedOutReadfailed once in a full run on that Mac mini. It also fails on unmodifiedmainwith-count=5, and passes when run alone, so it looks like an existing timing flake on a loaded host rather than something this PR touches.I only checked iOS 26.5 on an iPhone 17 Pro. I'm happy to split
axassetsd/clipservicedinto their own category if you'd rather not growother.