Set the usesNonSdk manifest attribute whan targeting module SDKs.
From an ART perspective, calling module-lib APIs requires the ability to bypass hiddenapi enforcement entirely. This CL ensures that if an APK compiles against module-lib APIs, it will be able to call those APIs. Currently, compiling against module-lib APIs is not safe because APKs that are subject to hiddenapi protection will crash at runtime. Bug: 181309531 Test: made NetworkStackNext compile against module-current, and: Test: aapt dump xmltree .../NetworkStackNext.apk AndroidManifest.xml | grep usesNonSdk Change-Id: I5ca3328c64412078d803e0e3ffa1d8383602416f
Loading
Please register or sign in to comment