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 \
|
2015-06-03 23:19:51 +02:00
|
|
|
CryptCommandListener.cpp \
|
2010-06-19 04:06:50 +02:00
|
|
|
VoldCommand.cpp \
|
|
|
|
NetlinkManager.cpp \
|
|
|
|
NetlinkHandler.cpp \
|
|
|
|
Process.cpp \
|
2015-05-22 07:35:42 +02:00
|
|
|
fs/Ext4.cpp \
|
|
|
|
fs/F2fs.cpp \
|
|
|
|
fs/Vfat.cpp \
|
2010-06-19 04:06:50 +02:00
|
|
|
Loop.cpp \
|
|
|
|
Devmapper.cpp \
|
|
|
|
ResponseCode.cpp \
|
2014-02-20 21:21:31 +01:00
|
|
|
CheckBattery.cpp \
|
2015-04-29 00:14:15 +02:00
|
|
|
Ext4Crypt.cpp \
|
2013-06-12 04:10:20 +02:00
|
|
|
VoldUtil.c \
|
2015-03-03 06:01:40 +01:00
|
|
|
cryptfs.c \
|
|
|
|
Disk.cpp \
|
|
|
|
VolumeBase.cpp \
|
|
|
|
PublicVolume.cpp \
|
2015-03-31 19:35:33 +02:00
|
|
|
PrivateVolume.cpp \
|
2015-03-03 06:01:40 +01:00
|
|
|
EmulatedVolume.cpp \
|
|
|
|
Utils.cpp \
|
2015-04-25 01:00:03 +02:00
|
|
|
MoveTask.cpp \
|
2015-05-15 05:33:55 +02:00
|
|
|
Benchmark.cpp \
|
2015-06-26 23:02:09 +02:00
|
|
|
TrimTask.cpp \
|
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 \
|
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 \
|
2015-03-16 18:35:17 +01:00
|
|
|
libsoftkeymaster \
|
2015-05-06 16:04:43 +02:00
|
|
|
libbase
|
2010-06-19 04:06:50 +02:00
|
|
|
|
2013-06-14 21:11:38 +02:00
|
|
|
common_static_libraries := \
|
|
|
|
libfs_mgr \
|
2015-06-01 16:38:29 +02:00
|
|
|
libfec \
|
|
|
|
libfec_rs \
|
2015-04-07 03:15:53 +02:00
|
|
|
libsquashfs_utils \
|
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
|
|
|
|
2014-12-18 19:00:55 +01:00
|
|
|
vold_conlyflags := -std=c11
|
2015-03-03 06:01:40 +01:00
|
|
|
vold_cflags := -Werror -Wall -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter
|
2014-12-18 19:00:55 +01: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-18 19:00:55 +01:00
|
|
|
LOCAL_CLANG := true
|
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-18 19:00:55 +01:00
|
|
|
LOCAL_CFLAGS := $(vold_cflags)
|
|
|
|
LOCAL_CONLYFLAGS := $(vold_conlyflags)
|
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-18 19:00:55 +01:00
|
|
|
LOCAL_CLANG := true
|
2010-06-19 04:06:50 +02:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
main.cpp \
|
|
|
|
$(common_src_files)
|
|
|
|
|
2015-08-14 22:06:45 +02:00
|
|
|
LOCAL_INIT_RC := vold.rc
|
|
|
|
|
2010-06-19 04:06:50 +02:00
|
|
|
LOCAL_C_INCLUDES := $(common_c_includes)
|
2014-12-18 19:00:55 +01:00
|
|
|
LOCAL_CFLAGS := $(vold_cflags)
|
|
|
|
LOCAL_CONLYFLAGS := $(vold_conlyflags)
|
2009-10-11 02:22:08 +02:00
|
|
|
|
2014-09-18 06:02:52 +02:00
|
|
|
ifeq ($(TARGET_HW_DISK_ENCRYPTION),true)
|
|
|
|
LOCAL_C_INCLUDES += $(TARGET_CRYPTFS_HW_PATH)
|
|
|
|
common_shared_libraries += libcryptfs_hw
|
|
|
|
LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION
|
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
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-18 19:00:55 +01:00
|
|
|
LOCAL_CLANG := true
|
2015-05-06 12:27:44 +02:00
|
|
|
LOCAL_SRC_FILES:= vdc.cpp
|
2009-10-11 02:22:08 +02:00
|
|
|
LOCAL_MODULE:= vdc
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils
|
2014-12-18 19:00:55 +01:00
|
|
|
LOCAL_CFLAGS := $(vold_cflags)
|
|
|
|
LOCAL_CONLYFLAGS := $(vold_conlyflags)
|
2015-08-14 22:06:45 +02:00
|
|
|
LOCAL_INIT_RC := vdc.rc
|
2009-10-11 02:22:08 +02:00
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
2015-05-19 18:31:39 +02:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
|
|
|
LOCAL_CLANG := true
|
|
|
|
LOCAL_SRC_FILES:= secdiscard.cpp
|
|
|
|
LOCAL_MODULE:= secdiscard
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils
|
|
|
|
LOCAL_CFLAGS := $(vold_cflags)
|
|
|
|
LOCAL_CONLYFLAGS := $(vold_conlyflags)
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|