I added an app to AOSP and it has the "platform" certificate. When I just install it on my device it resolves the domain just fine, but as a system app I get an GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname).
This is the entire log of the crash:
aused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
12-22 10:00:32.792 5656 5681 W System.err: at libcore.io.Linux.android_getaddrinfo(Native Method)
12-22 10:00:32.792 5656 5681 W System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:136)
12-22 10:00:32.792 5656 5681 W System.err: at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:221)
12-22 10:00:32.792 5656 5681 W System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:136)
12-22 10:00:32.792 5656 5681 W System.err: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135)
Do I need to add a permission or tell the build-system somewhere to get the permission to resolve domains?
Thank you!