fs_mgr: replace make_ext4 api with e2fsprogs
Execute mke2fs to create empty ext4 filesystem.
Execute e2fsdroid to initialize selinux context.
Test: zero-out first 4k of data partition and reboot,
fs_mgr successfully formats /data.
Bug: 35219933
Change-Id: If6f72f62c618c64be703b83f0114a4dd0a2b079f
diff --git a/fs_mgr/Android.bp b/fs_mgr/Android.bp
index 0af6159..4441ad0 100644
--- a/fs_mgr/Android.bp
+++ b/fs_mgr/Android.bp
@@ -22,7 +22,6 @@
local_include_dirs: ["include/"],
cppflags: ["-Werror"],
static_libs: [
- "liblogwrap",
"libfec",
"libfec_rs",
"libbase",
@@ -33,6 +32,9 @@
"libselinux",
"libavb",
],
+ whole_static_libs: [
+ "liblogwrap",
+ ],
}
cc_library_static {