2009-10-11 02:22:08 +02:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
2010-06-19 04:06:50 +02:00
|
|
|
common_src_files := \
|
|
|
|
VolumeManager.cpp \
|
|
|
|
CommandListener.cpp \
|
|
|
|
VoldCommand.cpp \
|
|
|
|
NetlinkManager.cpp \
|
|
|
|
NetlinkHandler.cpp \
|
|
|
|
Volume.cpp \
|
|
|
|
DirectVolume.cpp \
|
|
|
|
Process.cpp \
|
2012-04-04 02:23:01 +02:00
|
|
|
Ext4.cpp \
|
2010-06-19 04:06:50 +02:00
|
|
|
Fat.cpp \
|
|
|
|
Loop.cpp \
|
|
|
|
Devmapper.cpp \
|
|
|
|
ResponseCode.cpp \
|
2014-02-20 21:21:31 +01:00
|
|
|
CheckBattery.cpp \
|
2013-06-12 04:10:20 +02:00
|
|
|
VoldUtil.c \
|
2013-03-20 05:46:39 +01:00
|
|
|
fstrim.c \
|
2010-12-03 12:47:09 +01:00
|
|
|
cryptfs.c
|
2010-06-19 04:06:50 +02:00
|
|
|
|
|
|
|
common_c_includes := \
|
2011-01-29 08:31:16 +01:00
|
|
|
system/extras/ext4_utils \
|
2014-08-16 00:19:23 +02:00
|
|
|
system/extras/f2fs_utils \
|
2013-06-14 21:11:38 +02:00
|
|
|
external/openssl/include \
|
2014-02-20 21:21:31 +01:00
|
|
|
external/scrypt/lib/crypto \
|
2014-04-14 21:17:14 +02:00
|
|
|
frameworks/native/include \
|
|
|
|
system/security/keystore \
|
|
|
|
hardware/libhardware/include/hardware \
|
|
|
|
system/security/softkeymaster/include/keymaster
|
2010-06-19 04:06:50 +02:00
|
|
|
|
|
|
|
common_shared_libraries := \
|
|
|
|
libsysutils \
|
2014-02-20 21:21:31 +01:00
|
|
|
libbinder \
|
2010-06-19 04:06:50 +02:00
|
|
|
libcutils \
|
2013-04-10 07:05:28 +02:00
|
|
|
liblog \
|
2010-06-19 04:06:50 +02:00
|
|
|
libdiskconfig \
|
Have vold grab a partial wakelock when encrypting
The Progress bar UI grabs a full wakelock when encrypting, but we've seen
a case where it looks like the progress bar UI crashes, and the wakelock is
lost, and then all hell breaks loose. The enablecrypto command has a lot of
work to do, and it will take some time, so it should grab a wakelock to
ensure it can finish without being interrupted and put to sleep.
It grabs a partial wake lock, as it doesn't need the screen to be on to do
its work. If the UI wants to keep it on, it should also grab a full wakelock,
which it does. If the UI crashes, the screen may turn off, but the encryption
will keep going, and vold will reboot the device when it's done.
Change-Id: I51d3a72b8c77383044a3facb1604c1ee510733ae
2011-01-31 04:06:03 +01:00
|
|
|
libhardware_legacy \
|
2013-01-16 21:29:28 +01:00
|
|
|
liblogwrap \
|
2013-08-15 05:15:17 +02:00
|
|
|
libext4_utils \
|
2014-08-16 00:19:23 +02:00
|
|
|
libf2fs_sparseblock \
|
2014-02-04 16:53:00 +01:00
|
|
|
libcrypto \
|
2014-02-20 21:21:31 +01:00
|
|
|
libselinux \
|
2014-04-14 21:17:14 +02:00
|
|
|
libutils \
|
|
|
|
libhardware \
|
|
|
|
libsoftkeymaster
|
2010-06-19 04:06:50 +02:00
|
|
|
|
2013-06-14 21:11:38 +02:00
|
|
|
common_static_libraries := \
|
|
|
|
libfs_mgr \
|
2013-08-07 22:12:41 +02:00
|
|
|
libscrypt_static \
|
2014-02-20 21:21:31 +01:00
|
|
|
libmincrypt \
|
|
|
|
libbatteryservice
|
2013-06-14 21:11:38 +02:00
|
|
|
|
2009-10-11 02:22:08 +02:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-09-12 19:48:12 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
2010-06-19 04:06:50 +02:00
|
|
|
LOCAL_MODULE := libvold
|
2014-12-13 02:47:16 +01:00
|
|
|
LOCAL_CLANG := false
|
2010-06-19 04:06:50 +02:00
|
|
|
LOCAL_SRC_FILES := $(common_src_files)
|
|
|
|
LOCAL_C_INCLUDES := $(common_c_includes)
|
|
|
|
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
|
2013-06-14 21:11:38 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
|
2010-06-19 04:06:50 +02:00
|
|
|
LOCAL_MODULE_TAGS := eng tests
|
2014-12-15 20:56:11 +01:00
|
|
|
LOCAL_CFLAGS := -Werror -Wall -Wno-missing-field-initializers
|
2010-06-19 04:06:50 +02:00
|
|
|
|
2014-11-05 23:48:45 +01:00
|
|
|
LOCAL_CXX_STL := libc++
|
2010-06-19 04:06:50 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2009-10-11 02:22:08 +02:00
|
|
|
|
2014-09-12 19:48:12 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
2009-10-11 02:22:08 +02:00
|
|
|
LOCAL_MODULE:= vold
|
2014-12-13 02:47:16 +01:00
|
|
|
LOCAL_CLANG := false
|
2010-06-19 04:06:50 +02:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
main.cpp \
|
|
|
|
$(common_src_files)
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(common_c_includes)
|
2014-12-15 20:56:11 +01:00
|
|
|
LOCAL_CFLAGS := -Werror -Wall -Wno-missing-field-initializers
|
2010-06-19 04:06:50 +02:00
|
|
|
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
|
2013-06-14 21:11:38 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
|
2012-04-02 08:58:44 +02:00
|
|
|
|
2014-11-05 23:48:45 +01:00
|
|
|
LOCAL_CXX_STL := libc++
|
2009-10-11 02:22:08 +02:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2010-03-15 21:13:41 +01:00
|
|
|
|
2014-09-12 19:48:12 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
2014-12-13 02:47:16 +01:00
|
|
|
LOCAL_CLANG := false
|
2010-03-15 21:13:41 +01:00
|
|
|
LOCAL_SRC_FILES:= vdc.c
|
2009-10-11 02:22:08 +02:00
|
|
|
LOCAL_MODULE:= vdc
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils
|
2014-12-15 20:56:11 +01:00
|
|
|
LOCAL_CFLAGS := -Werror -Wall -Wno-missing-field-initializers
|
2009-10-11 02:22:08 +02:00
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|