Thank you for your response!
[quote='814302022, DTS Engineer, /thread/768708?answerId=814302022#814302022']
We don't currently have any mechanism (tool or API) that allows snapshot reversion
[/quote]
I know that there is a fs_snapshot_* family of functions, and according to its manual "To revert the filesystem to a previous snapshot, the fs_snapshot_revert() can be used". This function is only available to apps/tools that have both the com.apple.developer.vfs.snapshot and the com.apple.private.apfs.revert-to-snapshot entitlements enabled. The latter seems to be available only to Apple itself. So why does the fs_snapshot_revert() function exist if it is not available to third-party developers and is not used by Apple in their tools?
By the way, I have disabled SIP and AMFI and tried calling fs_snapshot_revert(), and it worked as expected for me!
Topic:
App & System Services
SubTopic:
Core OS
Tags: