On 02/01/2016 06:50 PM, Brian Williams wrote:
We're trying to add a recovery command that performs a filesystem clean
on the /data partition. We have some data that we don't want to delete
on a reset, so we don't want to use the existing unmount and reformat
that is done by the --wipe-data command.
I'm in the process of trying to add rules for recovery to allow it to
recurse through the directory tree and delete files. But a recursive
delete by the recovery process runs afoul of a bunch of the selinux
rules for the data partition file types, and conflicts with a couple of
never allow rules for domain.
Is there a clean approach to achieving the desired effect?
I think the supported way of saving data across a factory reset is
through the use of a separate partition, just as the frp partition is
used to store OEM unlock status and Google account information for
Android device protection. Direct access to /data from recovery is not
supported and intentionally prohibited in policy.
_______________________________________________
Seandroid-list mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to
[email protected].