summaryrefslogtreecommitdiff
path: root/jarjar-rules.txt
AgeCommit message (Collapse)Author
2022-03-30Add metrics when photo picker opened.Corina
Bug: 218862369 Test: make statsd_testdrive $ANDROID_HOST_OUT/bin/statsd_testdrive 90 Change-Id: I8f359a3df771e81fc276eb7b4e423aa491f2e70d
2022-03-14Jarjar classes in classpathAndrei Onea
Jarjar code that is also included in bootclasspath and/or systemserverclasspath. Test: atest StrictJavaPackagesTest Bug: 199275298 Bug: 223837016 Change-Id: Icc3cafd553813d80e7d36c366cd612eec8a8e384
2020-03-31Remove duplicate MediaStore classAnton Hansson
This was originally added for MediaProvider to be able to access hidden APIs in MediaStore. There's now a better approach of doing this, by compiling against module_current, which doesn't contain any module apis, and listing the module dependencies explicitly. MediaProvider links against the stubs of statsd and the impl jar of framework-mediaprovider. MediaProvider is an apk-in-apex, so is whitelisted to access blacklisted APIs. Note that the sources of framework-mediaprovider are still linked in to the MediaProviderTests, which aren't whitelisted. We'd like to have a general solution for android_test rules to get whitelisted. Bug: 152891096 Test: http://b/146894977#comment15 Change-Id: I7e2bc7475d47e68517f612b94585d00635cff747
2020-01-01Rewrite hidden API usage to avoid inlining.Jeff Sharkey
MediaProvider is in a unique position where it's allowed to use hidden APIs that are defined within in it containing APEX, which technically means we have two copies of MediaStore.java in our classpath: one copy that we've pulled in directly from our source tree (containing everything including hidden APIs) and one copy from the framework "stubs" (which only contains committed API surfaces). This initially appeared to work okay until the nightly dexopt optimization pass attempts to inline method references, which causes errors like this: Abort message: 'Inlined method resolution crossed dex file boundary [...] This must be due to duplicate classes or playing wrongly with class loaders. The runtime is in an unsafe state.' To work around this, we need to make sure our module APK never tries using the "stubs" version of MediaStore.java, which we accomplish in this CL using some local jarjar rules. Bug: 146894977 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: I7d52f1a9857e70cc50b4537b90ccfb346cefbea6