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 \
|
2017-02-25 02:43:01 +01:00
|
|
|
cryptfs.cpp \
|
2015-03-03 06:01:40 +01:00
|
|
|
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 \
|
2017-08-01 18:15:53 +02:00
|
|
|
KeyBuffer.cpp \
|
2016-01-21 21:26:12 +01:00
|
|
|
Keymaster.cpp \
|
|
|
|
KeyStorage.cpp \
|
2016-06-02 20:01:19 +02:00
|
|
|
KeyUtil.cpp \
|
2016-02-10 15:02:47 +01:00
|
|
|
ScryptParameters.cpp \
|
2016-01-30 00:34:43 +01:00
|
|
|
secontext.cpp \
|
2016-06-02 20:01:19 +02:00
|
|
|
EncryptInplace.cpp \
|
2016-06-02 20:04:27 +02:00
|
|
|
MetadataCrypt.cpp \
|
2010-06-19 04:06:50 +02:00
|
|
|
|
|
|
|
common_c_includes := \
|
2014-08-16 00:19:23 +02:00
|
|
|
system/extras/f2fs_utils \
|
2014-02-20 21:21:31 +01:00
|
|
|
external/scrypt/lib/crypto \
|
2016-06-02 20:01:19 +02:00
|
|
|
external/f2fs-tools/include \
|
2014-04-14 21:17:14 +02:00
|
|
|
frameworks/native/include \
|
|
|
|
system/security/keystore \
|
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 \
|
2017-05-10 02:01:04 +02:00
|
|
|
libkeyutils \
|
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 \
|
2016-03-31 16:32:59 +02:00
|
|
|
libcrypto_utils \
|
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 \
|
2016-01-21 21:26:12 +01:00
|
|
|
libbase \
|
2016-10-26 15:27:10 +02:00
|
|
|
libhwbinder \
|
|
|
|
libhidlbase \
|
|
|
|
android.hardware.keymaster@3.0 \
|
|
|
|
libkeystore_binder
|
2010-06-19 04:06:50 +02:00
|
|
|
|
2013-06-14 21:11:38 +02:00
|
|
|
common_static_libraries := \
|
2016-06-24 23:48:49 +02:00
|
|
|
libbootloader_message \
|
2013-06-14 21:11:38 +02:00
|
|
|
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 \
|
2016-01-21 21:26:12 +01:00
|
|
|
libbatteryservice \
|
2017-01-06 17:44:35 +01:00
|
|
|
libavb \
|
2013-06-14 21:11:38 +02:00
|
|
|
|
2017-03-28 00:18:50 +02:00
|
|
|
# TODO: include "cert-err34-c" once we move to Binder
|
|
|
|
# TODO: include "cert-err58-cpp" once 36656327 is fixed
|
|
|
|
common_local_tidy_flags := -warnings-as-errors=clang-analyzer-security*,cert-*
|
|
|
|
common_local_tidy_checks := -*,clang-analyzer-security*,cert-*,-cert-err34-c,-cert-err58-cpp
|
|
|
|
|
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
|
|
|
|
2016-11-22 00:14:37 +01:00
|
|
|
required_modules :=
|
|
|
|
ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
|
2017-08-16 01:44:04 +02:00
|
|
|
required_modules += mke2fs
|
2016-11-22 00:14:37 +01:00
|
|
|
endif
|
|
|
|
|
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
|
2017-03-28 00:18:50 +02:00
|
|
|
LOCAL_TIDY := true
|
|
|
|
LOCAL_TIDY_FLAGS := $(common_local_tidy_flags)
|
|
|
|
LOCAL_TIDY_CHECKS := $(common_local_tidy_checks)
|
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)
|
2016-11-22 00:14:37 +01:00
|
|
|
LOCAL_REQUIRED_MODULES := $(required_modules)
|
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
|
2016-02-02 01:02:29 +01:00
|
|
|
LOCAL_MODULE := vold
|
2014-12-18 19:00:55 +01:00
|
|
|
LOCAL_CLANG := true
|
2017-03-28 00:18:50 +02:00
|
|
|
LOCAL_TIDY := true
|
|
|
|
LOCAL_TIDY_FLAGS := $(common_local_tidy_flags)
|
|
|
|
LOCAL_TIDY_CHECKS := $(common_local_tidy_checks)
|
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
|
|
|
|
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)
|
2016-11-22 00:14:37 +01:00
|
|
|
LOCAL_REQUIRED_MODULES := $(required_modules)
|
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
|
2017-03-28 00:18:50 +02:00
|
|
|
LOCAL_TIDY := true
|
|
|
|
LOCAL_TIDY_FLAGS := $(common_local_tidy_flags)
|
|
|
|
LOCAL_TIDY_CHECKS := $(common_local_tidy_checks)
|
2016-02-02 01:02:29 +01:00
|
|
|
LOCAL_SRC_FILES := vdc.cpp
|
|
|
|
LOCAL_MODULE := vdc
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils libbase
|
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
|
2017-03-28 00:18:50 +02:00
|
|
|
LOCAL_TIDY := true
|
|
|
|
LOCAL_TIDY_FLAGS := $(common_local_tidy_flags)
|
|
|
|
LOCAL_TIDY_CHECKS := $(common_local_tidy_checks)
|
2017-06-16 18:37:31 +02:00
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
FileDeviceUtils.cpp \
|
|
|
|
secdiscard.cpp \
|
|
|
|
|
2015-05-19 18:31:39 +02:00
|
|
|
LOCAL_MODULE:= secdiscard
|
2016-01-11 13:26:44 +01:00
|
|
|
LOCAL_SHARED_LIBRARIES := libbase
|
2015-05-19 18:31:39 +02:00
|
|
|
LOCAL_CFLAGS := $(vold_cflags)
|
|
|
|
LOCAL_CONLYFLAGS := $(vold_conlyflags)
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
2016-12-06 17:22:04 +01:00
|
|
|
|
|
|
|
include $(LOCAL_PATH)/tests/Android.mk
|