Halo-Michael / TimeMachine-on-iOS

BSD 3-Clause "New" or "Revised" License
18 stars 2 forks source link

Reboot device (iOS 14.3 support?) #1

Open 420Dope opened 3 years ago

420Dope commented 3 years ago

When I install TimeMachine my device reboots every night at 02:00 am when it will automatically create a snapshot. When I uninstall it, it doesn't reboot so I thing TimeMachine is caused it.

iPhone X on 14.3 unc0ver.

Is it already updated to iOS 14.3?

Halo-Michael commented 3 years ago

Rootfs is sealed on iOS14.2 or higher, so you can’t save snapshots for rootfs, just turn off the button of save snapshots for rootfs, but you can still save snapshots for datafs. However, If you tried Checkra1n you will find that doesn’t matter, because Checkra1n has already patch the kernel so amfid doesn’t care rootfs is sealed or not.

When I install TimeMachine my device reboots every night at 02:00 am when it will automatically create a snapshot. When I uninstall it, it doesn't reboot so I thing TimeMachine is caused it.

iPhone X on 14.3 unc0ver.

Is it already updated to iOS 14.3?

420Dope commented 3 years ago

Thank you for the info. That means, that u0 also don't make a rootFS on first jailbreak? So the rootFS option don't work untill there is a amfid bypass?

Sorry, not very known with this stuff.

Halo-Michael commented 3 years ago

orig-fs snapshot is not create by jailbreak, It's created by iOS installation service, before you jailbreak, the snapshot was be mounted as rootfs by iOS, jailbreak just renamed it when you first jailbreak. Renam snapshots are not covered by the sealed flag.

420Dope commented 3 years ago

Ah ok thank you for clearify this. Question regarding to "Renam snapshots are not covered by the sealed flag.": During installation of TimeMachine, the orig-fs snapshot gets renamed to "com.apple.TimeMachine.orig-fs". When I deinstall TimeMachine, will it rename the snapshot back or have I manually rename it back?

Question regarding to rootFS in future: If a amfid bypass comes, can we use TimeMachine again or is it completly patched on >=14.2?

M-Feve0-1 commented 3 years ago

That explains it, here, the issue is present on 14.2+

Halo-Michael commented 3 years ago

Now I added a detection method to ensure when if creates/deletes a snapshot will cause a panic, prohibit this creation/delete behavior.

JamesBedwell commented 3 years ago

Now I added a detection method to ensure when if creates/deletes a snapshot will cause a panic, prohibit this creation/delete behavior.

Does this mean you can now create snapshots on 14.3?

NyaMisty commented 2 years ago

Simply clear 0x4000 flag in rootfs's mnt_flag would allow creation of snapshots: image I've used my private tool to override the fs flag, and it seems working.

Halo-Michael commented 2 years ago

Simply clear 0x4000 flag in rootfs's mnt_flag would allow creation of snapshots: image I've used my private tool to override the fs flag, and it seems working.

I'm on iOS15.2.1 now so¯_(ツ)_/¯

NyaMisty commented 2 years ago

using checkra1n?

Halo-Michael commented 2 years ago

using checkra1n?

I'm using SE2(A13)

NyaMisty commented 2 years ago

(walking away from jailbreak community lol)

Halo-Michael commented 2 years ago

@NyaMisty I think you can open a pull request to https://github.com/sbingner/snappy