diff options
| author | 2018-04-12 13:56:37 +0100 | |
|---|---|---|
| committer | 2018-05-08 10:32:05 +0100 | |
| commit | 1724520ec2788838413b20672f73afa5a00b0d4c (patch) | |
| tree | bac735898ef8f9750fcc1fdf04c4538aa6abed22 /runtime/hidden_api.h | |
| parent | c9c87f63f7809568fbab751c8f07107e6151cced (diff) | |
Use tron for logging hidden API accesses.
Example output:
sysui_multi_action: [757,1391,1392,1,1394,Ldalvik/system/VMRuntime;->getRuntime()Ldalvik/system/VMRuntime;]
sysui_multi_action: [757,1391,1392,1,1393,1,1394,Ldalvik/system/VMRuntime;->setHiddenApiExemptions([Ljava/lang/String;)V]
Test: m
Test: $ adb shell settings put global \
Test: hidden_api_access_log_sampling_rate 65536
Test: $ adb lolcat -b events | grep sysui_multi_action | grep 1390
Bug: 77517571
Merged-In: I23548f902d2ff56ad00534421bf8afa902edaa75
Change-Id: I23548f902d2ff56ad00534421bf8afa902edaa75
(cherry picked from commit 2d4d62f2c4cb6f4a659333263a32f7d94c08fc11)
Diffstat (limited to 'runtime/hidden_api.h')
| -rw-r--r-- | runtime/hidden_api.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/runtime/hidden_api.h b/runtime/hidden_api.h index 4325496ca3..e117c08c25 100644 --- a/runtime/hidden_api.h +++ b/runtime/hidden_api.h @@ -52,13 +52,11 @@ enum Action { kDeny }; -// Do not change the values of items in this enum, as they are written to the -// event log for offline analysis. Any changes will interfere with that analysis. enum AccessMethod { - kNone = 0, // internal test that does not correspond to an actual access by app - kReflection = 1, - kJNI = 2, - kLinking = 3, + kNone, // internal test that does not correspond to an actual access by app + kReflection, + kJNI, + kLinking, }; // Do not change the values of items in this enum, as they are written to the |