diff options
author | Mathew Inwood <mathewi@google.com> | 2018-04-05 13:58:55 +0100 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2018-05-08 10:30:55 +0100 |
commit | 9a81945ca49de3c5b3969cc85278ecbadf238c84 (patch) | |
tree | c5d3e508727d1d2d58d7b29af22fd849c32c0544 /compiler/optimizing/graph_visualizer.cc | |
parent | 4525e0b62cc808a49b4cd2c826bb52a768779e72 (diff) |
Treat hidden API exemptions as whitelist.
This was a request from android-api-council, effectively to treat
exempted APIs as equivalent to public APIs. The reasoning for this is
that if the support library uses such APIs, we don't want to confuse
developers with a warning in the log.
To avoid examing the exemptions list on all light greylist API accesses,
also change the light greylist warn behavior to only print a warning in
the log if the app is debuggable. This means:
- less log spam from light greylist usages
- debuggable apps still get info about light greylist usage
Bug: 64382372
Test: m
Test: Boot device
Test: $ adb shell settings put global hidden_api_blacklist_exemptions \
Test: "\"Landroid/app/Activity;->mWindow:,Landroid/app/Activity;->mCalled:\""
Test: Verified with test app & adb logcat
Merged-In: Ibada61b591517f7e72c7101aea04ff0ad4beb0ee
Change-Id: Ibada61b591517f7e72c7101aea04ff0ad4beb0ee
(cherry picked from commit c8ce5f520d2ba84ff8f393f78ba953ae6d467ca8)
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions