summaryrefslogtreecommitdiff
path: root/test/2038-hiddenapi-jvmti-ext/run.py
diff options
context:
space:
mode:
author Martin Stjernholm <mast@google.com> 2024-10-31 17:44:48 +0000
committer Martin Stjernholm <mast@google.com> 2025-01-28 00:46:55 -0800
commitb3ca9f3c87bc935ae56e7647c91e2158971fb47d (patch)
tree6675a899ee6dbfe899c3c360867245ac2c996b6f /test/2038-hiddenapi-jvmti-ext/run.py
parent162e2634caca054659a829df1040ee052b900c34 (diff)
Log info about the caller and callee in hiddenapi denial messages.
If enforcement is enabled then log as error instead of warning. Also add "hiddenapi:" prefix to all log messages to make it easier to search for them. Test: Boot and check errors in logcat Test: 674-hiddenapi 690-hiddenapi-same-name-methods 691-hiddenapi-proxy 817-hiddenapi 822-hiddenapi-future 999-redefine-hiddenapi 2038-hiddenapi-jvmti-ext 2270-mh-internal-hiddenapi-use on host and target Bug: 377676642 Change-Id: Ib4f790d7ab4850d398639c64f55be0d14c5c0408
Diffstat (limited to 'test/2038-hiddenapi-jvmti-ext/run.py')
-rw-r--r--test/2038-hiddenapi-jvmti-ext/run.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/2038-hiddenapi-jvmti-ext/run.py b/test/2038-hiddenapi-jvmti-ext/run.py
index 4796039801..c3f6d8fb72 100644
--- a/test/2038-hiddenapi-jvmti-ext/run.py
+++ b/test/2038-hiddenapi-jvmti-ext/run.py
@@ -17,3 +17,7 @@
def run(ctx, args):
ctx.default_run(args, jvmti=True)
+
+ # Delete hiddenapi's denial errors which go to stderr on host.
+ if args.host:
+ ctx.run(fr"sed -i -E '/ E dalvikvm.* hiddenapi: /d' '{args.stderr_file}'")