diff options
author | Paul Lawrence <paullawrence@google.com> | 2014-02-20 12:21:31 -0800 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2014-03-21 18:30:26 +0000 |
commit | 87999173dd79dbcbd8cb97f5476007e867aaeeba (patch) | |
tree | 95ca8174bd8c264426fe418b69f6e21e9f5d591a /Android.mk | |
parent | f8e9569507a641ece6713cb4be072d1d9cfd2dcd (diff) | |
download | android_system_vold-87999173dd79dbcbd8cb97f5476007e867aaeeba.tar.gz android_system_vold-87999173dd79dbcbd8cb97f5476007e867aaeeba.tar.bz2 android_system_vold-87999173dd79dbcbd8cb97f5476007e867aaeeba.zip |
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
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -14,6 +14,7 @@ common_src_files := \ Loop.cpp \ Devmapper.cpp \ ResponseCode.cpp \ + CheckBattery.cpp \ VoldUtil.c \ fstrim.c \ cryptfs.c @@ -23,11 +24,13 @@ common_c_includes := \ external/openssl/include \ external/stlport/stlport \ bionic \ - external/scrypt/lib/crypto + external/scrypt/lib/crypto \ + frameworks/native/include common_shared_libraries := \ libsysutils \ libstlport \ + libbinder \ libcutils \ liblog \ libdiskconfig \ @@ -35,12 +38,14 @@ common_shared_libraries := \ liblogwrap \ libext4_utils \ libcrypto \ - libselinux + libselinux \ + libutils common_static_libraries := \ libfs_mgr \ libscrypt_static \ - libmincrypt + libmincrypt \ + libbatteryservice include $(CLEAR_VARS) |