Convert some unsafe post-fork() LOG usage.
Using LOG() in the child process is not safe, because the parent may
have held a lock in bionic that will now never be unlocked in the child.
Use async_safe_format_log instead.
Bug: 182672944
Test: N/A
Change-Id: I419ad3a92c829e945acbfd73ebbc472a31de7080
diff --git a/cmds/installd/Android.bp b/cmds/installd/Android.bp
index d09d3e8..18c267d 100644
--- a/cmds/installd/Android.bp
+++ b/cmds/installd/Android.bp
@@ -47,6 +47,9 @@
"libutils",
"server_configurable_flags",
],
+ static_libs: [
+ "libasync_safe",
+ ],
export_shared_lib_headers: [
"libbinder",
],
@@ -251,6 +254,7 @@
],
static_libs: [
+ "libasync_safe",
"libdiskusage",
"libotapreoptparameters",
],