OSDN Git Service

Don't corrupt ssd when encrypting and power fails
authorPaul Lawrence <paullawrence@google.com>
Thu, 20 Feb 2014 20:21:31 +0000 (12:21 -0800)
committerJP Abgrall <jpa@google.com>
Fri, 21 Mar 2014 18:30:26 +0000 (18:30 +0000)
commit87999173dd79dbcbd8cb97f5476007e867aaeeba
tree95ca8174bd8c264426fe418b69f6e21e9f5d591a
parentf8e9569507a641ece6713cb4be072d1d9cfd2dcd
Don't corrupt ssd when encrypting and power fails

Stop encryption when battery is low, mark position, and continue on reboot.

Note - support for multiple encrypted volumes removed as no devices seem
to exist with an fstab that uses this feature. If you want support for such
a device, contact me and we will re-add it with appropriate testing.

Bug: 13284213
Change-Id: I1f7178e4f7dd8ea816cbc03ab5c4f6543e98acaa
Android.mk
CheckBattery.cpp [new file with mode: 0644]
CheckBattery.h [new file with mode: 0644]
cryptfs.c
cryptfs.h