fs_mgr: remount: add -R argument
The -R flag tells remount it can reboot to disable verity or to
run fsck on an ext4 deduped filesystem, or both.
Testing may include a manual component because adb-remount-test.sh
needs to run from a device in an enable-verity state to test this.
Only recognizes chained avb.
Test: adb-remount-test.sh
Bug: 122602260
Change-Id: I6ce4372532d9b933dcca9e2bec544d525b76c4d9
diff --git a/fs_mgr/Android.bp b/fs_mgr/Android.bp
index a476cd8..0a048f9 100644
--- a/fs_mgr/Android.bp
+++ b/fs_mgr/Android.bp
@@ -115,10 +115,17 @@
cc_binary {
name: "remount",
defaults: ["fs_mgr_defaults"],
+ static_libs: [
+ "libavb_user",
+ ],
shared_libs: [
+ "libbootloader_message",
"libbase",
"libfs_mgr",
],
+ header_libs: [
+ "libcutils_headers",
+ ],
srcs: [
"fs_mgr_remount.cpp",
],