diff options
-rw-r--r-- | Android.bp | 7 | ||||
-rw-r--r-- | patches/Android.bp.patch | 14 |
2 files changed, 20 insertions, 1 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --run --device --dependencies --features os-poll,tcp,udp,uds,os-util. +// This file is generated by cargo2android.py --run --device --dependencies --features os-poll,tcp,udp,uds,os-util --patch=patches/Android.bp.patch. rust_library { name: "libmio", @@ -19,6 +19,11 @@ rust_library { "liblibc", "liblog_rust", ], + apex_available: [ + "//apex_available:platform", + "com.android.resolv", + ], + min_sdk_version: "29", } // dependent_library ["feature_list"] diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch new file mode 100644 index 0000000..a4582df --- /dev/null +++ b/patches/Android.bp.patch @@ -0,0 +1,14 @@ +--- Android.bp 2020-12-21 02:15:37.110815320 +0900 ++++ Android.bp.new 2020-12-19 19:18:22.394348931 +0900 +@@ -19,6 +19,11 @@ rust_library { + "liblibc", + "liblog_rust", + ], ++ apex_available: [ ++ "//apex_available:platform", ++ "com.android.resolv", ++ ], ++ min_sdk_version: "29", + } + + // dependent_library ["feature_list"] |