Fix prerestore snapshots incorrectly taken with checkpointing enabled.

This fixes an issue where APEX pre-restore snapshots were being taken
on devices with FS checkpointing enabled.

Prerestore snapshots are needed only on devices without checkpointing,
but gInFsCheckpointMode was not being set when DE restores occurred,
so the checkpointing state was not being checked correctly.

Bug: 156693352
Test: atest StagedRollbackTest#testRollbackApexDataDirectories_DeUser
and verify that no pre-restore snapshot is present after the test.

Change-Id: Ic721f5119a12fb03ba4439a6fc8fe3b65327f7d5
3 files changed