summaryrefslogtreecommitdiff
path: root/test/2038-hiddenapi-jvmti-ext
AgeCommit message (Collapse)Author
2025-01-29Ignore hiddenapi denial errors on qemu as well. Martin Stjernholm
It's not just host testing that sends logcat messages to stderr. Simply remove the condition for the sed command - it just won't have any effect on device where the messages don't go to stderr in the first place. 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 device Bug: 377676642 Change-Id: I3faf97557dcb3e47bf3e927185cce1c96fe2ac8b
2025-01-28Log info about the caller and callee in hiddenapi denial messages. Martin Stjernholm
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
2022-11-02Run-tests: Rename "run" files to "run.py" David Srbecky
Make it explicit that they are python files. Make the file attributes non-executable. Test: test.py -b -r --host --optimizing --64 Change-Id: I874c8453032298bcc15dbd1030a3f7c0fd58254f
2022-10-24Revert^2 "Convert per-test run scripts to python." David Srbecky
This reverts commit 8d6a4e021e1dc4717939e05aee89c9b18e383d12. Reason for revert: Reland Test: test.py -r --all-target Test: diff emitted test commands before and after Change-Id: I8b99d9b3804615f2ebc50171a4368ad87d809300
2022-10-23Revert "Convert per-test run scripts to python." David Srbecky
This reverts commit 895c27039a57ec19efc8f526ac17b1ae28e2edd9. Reason for revert: Breaks tests Change-Id: If7d346b23731d32d1fdf31346bebcb658fbce421
2022-10-23Convert per-test run scripts to python. David Srbecky
Test: test.py -r --all-target Test: diff emitted test commands before and after Change-Id: I05003b5cde0e39ffc7d037ef875a45f13dd83755
2022-10-20Refactor individual run-test build scripts David Srbecky
Follow the same convention as run-test run scripts. The python files shall export build function, rather than doing the work when the script is loaded. This has the advantage that we now pass context/arguments to the function (rather than using environment variables). Test: the generated build artefacts are identical Change-Id: I90e0ef0d2e31b27813042d51d07b5ae132e1e704
2022-06-28Convert run-test bash build scripts to python. David Srbecky
Tests use the build script for two distinct purposes: * Some tests generate their source code before completion. Keep this code in bash for now and rename it "generate-sources". * To customize arguments passed to the default compilation script. Since the default compilation script is in python, make this a normal python call, and add any customization as arguments. This speeds up the run-test compilation. There was small cost to pay due to the switching from python to bash to python. This added up for the thousands of run-test compilations that we do. It also removes the need for argument parser in the default script. We could also remove the data passing via environment (to-do later). It moves the definition to more build-system-like look and feel. Test: The outputs are bit-for-bit identical as before. Change-Id: Idca4181a4676036f06aae0a8f6eea3a3c30d390e
2021-01-13Revert^2 "Add disable/get/set_hidden_api_enforcement_policy extensions" Alex Light
This reverts commit 46d6fc0e16d65468aa259fadf27ddfeef72987b7. The test, 2038, is incompatible with redefine stress due to class redefinition disabling most hidden-api checks. This adds the appropriate skips to knownfailures.json. Reason for revert: Add 2038 to redefine-stress knownfailures.json Test: ./test.py --host --redefine-host Bug: 175329755 Change-Id: I6c8f0f6fc468db85368ecc9fbb2372677b529383
2021-01-12Revert "Add disable/get/set_hidden_api_enforcement_policy extensions" Nicolas Geoffray
This reverts commit c38d94449a0ccfefd396d2e01b571f3e804d9e48. Bug: 175329755 Reason for revert: Fails on redefine-stress Change-Id: Id3b4e504ebfe6b090b06b7f47a3896fe30cdf850
2021-01-11Add disable/get/set_hidden_api_enforcement_policy extensions Alex Light
Add JVMTI extensions to control the hidden-api enforcement policy. The new extensions com.android.art.misc.{disable,get,set}_hidden_api_enforcement_policy use the int representations defined by ApplicationInfo.java. Users of these APIs should be sure to toggle the hidden-api state temporarily as needed and should avoid turning it off for long periods in order to ensure users can continue to find bugs. Test: ./test.py --host Bug: 175329755 Change-Id: I89848faf6cf53179b713c6ca9f19f1fe8062b739