Compile framework-mediaprovier against the SDK
Linking against the stubs directly bypasses the linktype checks
we have, so compile against the module sdk instead.
Bug: 146757305
Bug: 152864915
Test: m
Change-Id: I9c1a5a626b1585a5bfa1f3167e22d293f6a71044
diff --git a/apex/framework/Android.bp b/apex/framework/Android.bp
index 8648c72..f5747d5 100644
--- a/apex/framework/Android.bp
+++ b/apex/framework/Android.bp
@@ -25,11 +25,9 @@
installable: true,
- sdk_version: "core_current",
+ sdk_version: "module_current",
libs: [
- // The order matters. android_system_* library should come later.
"framework_mediaprovider_annotation",
- "android_system_stubs_current",
"unsupportedappusage",
],