Use stubs generated by build system
instead of hand-crafted stub for libnetd_resolv apex.
This change doesn't affect to the Q-device compatibility because netd on
Q device can still the hand-crafted stub for libnetd_resolv.so and the
shared library is not changed.
Bug: N/A
Test: m && flash && boot
Test: adb shell ldd /system/bin/netd # shows libnetd_resolv.so from apex
Change-Id: I185b36e76b4eb57aa8a7954161b2f7fbccfd8b80
diff --git a/Android.bp b/Android.bp
index b7e49ac..ce1178a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -38,6 +38,12 @@
cc_library {
name: "libnetd_resolv",
version_script: "libnetd_resolv.map.txt",
+ stubs: {
+ versions: [
+ "1",
+ ],
+ symbol_file: "libnetd_resolv.map.txt",
+ },
defaults: ["netd_defaults"],
srcs: [
"getaddrinfo.cpp",