compsvc/pvm_exec: Support RPC binder
Bug: 190547489
Bug: 189947807
Test: [VM shell] /apex/com.android.compos/bin/compsvc \
/system/bin/touch --rpc-binder
[Android shell] /apex/com.android.compos/bin/pvm_exec --cid $CID \
touch /data/local/tmp/foo
# IPC did go through, but there is some unrelated problem in the
# service, which can be fixed separately.
Change-Id: Ie3cdd58be1f98f8084b2b63dd325b76546bc5cf9
diff --git a/compos/Android.bp b/compos/Android.bp
index 1611b68..858f64c 100644
--- a/compos/Android.bp
+++ b/compos/Android.bp
@@ -8,6 +8,8 @@
rustlibs: [
"compos_aidl_interface-rust",
"libanyhow",
+ "libbinder_rpc_unstable_bindgen",
+ "libbinder_rs",
"libclap",
"liblibc",
"liblog_rust",
@@ -16,6 +18,9 @@
"libscopeguard",
],
prefer_rlib: true,
+ shared_libs: [
+ "libbinder_rpc_unstable",
+ ],
apex_available: [
"com.android.compos",
],
@@ -28,11 +33,16 @@
"compos_aidl_interface-rust",
"libandroid_logger",
"libanyhow",
+ "libbinder_rpc_unstable_bindgen",
+ "libbinder_rs",
"libclap",
"liblog_rust",
"libminijail_rust",
],
prefer_rlib: true,
+ shared_libs: [
+ "libbinder_rpc_unstable",
+ ],
apex_available: [
"com.android.compos",
],