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 \
|
2015-03-03 06:01:40 +01:00
|
|
|
cryptfs.c \
|
|
|
|
Disk.cpp \
|
|
|
|
VolumeBase.cpp \
|
|
|
|
PublicVolume.cpp \
|
|
|
|
EmulatedVolume.cpp \
|
|
|
|
Utils.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 \
|
|
|
|
libbase \
|
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
|
|
|
|
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)
|
|
|
|
|
|
|
|
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
|
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-18 19:00:55 +01:00
|
|
|
LOCAL_CFLAGS := $(vold_cflags)
|
|
|
|
LOCAL_CONLYFLAGS := $(vold_conlyflags)
|
2009-10-11 02:22:08 +02:00
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|