From 9b345d45b001fd4fc1860b81da8fdcf4c35d8769 Mon Sep 17 00:00:00 2001 From: Vitalii Yehorov Date: Tue, 3 Nov 2026 15:17:16 +0100 Subject: [PATCH] feat: device management category, App Clips and accessibility assets 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. --- README.md | 7 +++++-- docs/category-memory.md | 10 +++++++++- features.go | 2 ++ features_test.go | 14 ++++++++++++++ profiles.go | 20 +++++++++++++++++--- service_descriptions.go | 7 +++++++ 6 files changed, 54 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 65260fe..977aa66 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,8 @@ simslim on --keep com.apple.apsd | `messaging` | Messaging & FaceTime | iMessage, FaceTime, call, and identity services. | 60 | | `connectivity` | Sharing & Device Connectivity | AirDrop, Continuity, CarPlay, Watch, and Find My services. | 65 | | `telemetry` | Ads, Diagnostics & Telemetry | DeviceCheck, ad privacy, analytics, diagnostics, and feedback services. | 105 | -| `other` | Other Background Services | Wallet, business services, assets, and miscellaneous background daemons. | 195 | +| `mdm` | Device Management | Declarative device management and managed asset services. | 10 | +| `other` | Other Background Services | Wallet, App Clips, business services, assets, and miscellaneous background daemons. | 225 | Memory figures are iOS 26.5 clean-boot medians and are not additive; see the [measurement method](docs/category-memory.md). Run `simslim profiles ` to @@ -157,7 +158,7 @@ see the daemons in a category. ### Slow CI runners -`simslim on` boots the simulator, disables ~170 daemons one `launchctl` call at a +`simslim on` boots the simulator, disables ~175 daemons one `launchctl` call at a time, then reboots — all under a single 10-minute deadline. Shared CI runners (like GitHub-hosted macOS runners) are slower and less predictable, and can blow that deadline mid-reconfigure with `context deadline exceeded` errors. Raise it with the @@ -474,6 +475,8 @@ Turning services off is fine for most development, UI automation, and CI, but so - Recents in the Files app and the document picker shows "Content Unavailable" without `searchd` (`search`). - Push notifications need `apsd`, StoreKit testing needs `storekitd` (`store`). - Universal links need `swcd` (`web`). +- Declarative device management, and MDM or configuration-profile workflows that use it, need `mdm`. +- App Clips need `clipserviced`, and accessibility asset downloads such as VoiceOver voices need `axassetsd` (`other`). - The Contacts, Photos, and Calendar pickers can act up without their categories. `simslim profiles` lists every category, so you can keep a category with `--except` or individual daemons with `--keep`. diff --git a/docs/category-memory.md b/docs/category-memory.md index 58efb98..6ec3285 100644 --- a/docs/category-memory.md +++ b/docs/category-memory.md @@ -32,7 +32,8 @@ category run's median minus that baseline, rounded to a useful GUI value. | Messaging & FaceTime | 60.2 MiB | 60 MB | | Sharing & Device Connectivity | 64.4 MiB | 65 MB | | Ads, Diagnostics & Telemetry | 106.0 MiB | 105 MB | -| Other Background Services | 194.0 MiB | 195 MB | +| Device Management | 12.0 MiB | 10 MB | +| Other Background Services | 222.9 MiB | 225 MB | These deltas are not additive. Services share caches and dependencies, and their footprint changes with simulator runtime, boot age, installed apps, and @@ -44,3 +45,10 @@ remaining 11 daemons after the same 20-second settle. Their median deltas were 64.4, 46.4, and 73.4 MiB; the median pair gives the 65 MB GUI estimate. Seven of those daemons stayed resident at idle and directly totaled about 76.2 MiB. The whole-simulator delta is used above for consistency with the other categories. + +Device Management was added, and Other Background Services gained +`accessibility.axassetsd` and `ClipServices.clipserviced`, later. Both were +measured on an iPhone 17 Pro / iOS 26.5 in three clean-boot rounds, taking the +median of three samples after a 20-second settle, against a fully slim baseline +of 847.3 MiB from the same rounds. Before the change, the same rounds measured a +fully slim simulator at 904.3 MiB. diff --git a/features.go b/features.go index 61ac170..5df33ec 100644 --- a/features.go +++ b/features.go @@ -53,6 +53,8 @@ var Features = []Feature{ {ID: "news", Name: "News", Labels: []string{"com.apple.newsd"}}, {ID: "game-center", Name: "Game Center", Labels: []string{"com.apple.gamed"}}, {ID: "find-my", Name: "Find My", Labels: []string{"com.apple.findmy.findmylocated"}}, + {ID: "mdm", Name: "Declarative device management", Labels: []string{"com.apple.remotemanagementd", "com.apple.RemoteManagementAgent"}}, + {ID: "app-clips", Name: "App Clips", Labels: []string{"com.apple.ClipServices.clipserviced"}}, {ID: "screen-time", Name: "Screen Time", Labels: []string{"com.apple.ScreenTimeAgent"}}, } diff --git a/features_test.go b/features_test.go index d45fedd..f37a97f 100644 --- a/features_test.go +++ b/features_test.go @@ -90,6 +90,20 @@ func TestFilesRecentsDiagnoseDisabledSearchd(t *testing.T) { } } +func TestSlimProfileReportsMDMAndAppClipsUntilExcepted(t *testing.T) { + features, err := ResolveFeatures([]string{"mdm", "app-clips"}) + if err != nil { + t.Fatalf("ResolveFeatures(mdm, app-clips) error = %v", err) + } + if report := DiagnoseFeatures(features, (Profile{}).Desired()); report.OK { + t.Errorf("a full slim profile must break MDM and App Clips: %+v", report) + } + kept := Profile{ExceptCategories: map[string]bool{"mdm": true, "other": true}} + if report := DiagnoseFeatures(features, kept.Desired()); !report.OK { + t.Errorf("--except mdm,other must keep MDM and App Clips: %+v", report) + } +} + func TestDiagnoseFeatures(t *testing.T) { features, err := ResolveFeatures([]string{"push", "storekit", "universal-links"}) if err != nil { diff --git a/profiles.go b/profiles.go index 1051cd2..9f9ac7e 100644 --- a/profiles.go +++ b/profiles.go @@ -341,12 +341,24 @@ var Categories = []Category{ "com.apple.devicecheckd", }, }, + { + ID: "mdm", + Name: "Device Management", + Description: "Declarative device management and managed asset services.", + Downside: "Declarative device management, and MDM or configuration-profile workflows that use it, will not work.", + ApproxMemoryMB: 10, + Labels: []string{ + "com.apple.remotemanagementd", + "com.apple.RemoteManagementAgent", + "com.apple.managedassetsd", + }, + }, { ID: "other", Name: "Other Background Services", - Description: "Wallet, business services, assets, and miscellaneous background daemons.", - Downside: "Wallet, merchant, business, asset, and miscellaneous background services are unavailable.", - ApproxMemoryMB: 195, + Description: "Wallet, App Clips, business services, assets, and miscellaneous background daemons.", + Downside: "Wallet, App Clips, accessibility asset downloads, merchant, business, and miscellaneous background services are unavailable.", + ApproxMemoryMB: 225, Labels: []string{ "com.apple.financed", "com.apple.passd", @@ -362,6 +374,8 @@ var Categories = []Category{ "com.apple.countryd", "com.apple.mobileassetd", "com.apple.managedconfiguration.passcodenagd", + "com.apple.accessibility.axassetsd", + "com.apple.ClipServices.clipserviced", }, }, } diff --git a/service_descriptions.go b/service_descriptions.go index f39fc57..9b7cf57 100644 --- a/service_descriptions.go +++ b/service_descriptions.go @@ -187,6 +187,11 @@ var serviceDescriptionByLabel = map[string]string{ "com.apple.purplebuddy.budd": "Maintains Setup Assistant completion state.", "com.apple.devicecheckd": "Provides DeviceCheck and app-attestation services.", + // Device Management + "com.apple.remotemanagementd": "Applies declarative device management configurations.", + "com.apple.RemoteManagementAgent": "Applies per-user declarative management configurations.", + "com.apple.managedassetsd": "Downloads assets referenced by management declarations.", + // Other Background Services "com.apple.financed": "Provides Wallet transaction and finance services.", "com.apple.passd": "Manages Wallet passes and Apple Pay state.", @@ -202,6 +207,8 @@ var serviceDescriptionByLabel = map[string]string{ "com.apple.countryd": "Determines regional availability for system features.", "com.apple.mobileassetd": "Downloads and manages system asset packages. Kept enabled on visionOS.", "com.apple.managedconfiguration.passcodenagd": "Enforces managed passcode requirements.", + "com.apple.accessibility.axassetsd": "Downloads accessibility assets such as speech voices.", + "com.apple.ClipServices.clipserviced": "Downloads, launches, and manages App Clips.", } func init() {