summaryrefslogtreecommitdiff
path: root/test/674-hiddenapi/hiddenapi.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/674-hiddenapi/hiddenapi.cc')
-rw-r--r--test/674-hiddenapi/hiddenapi.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/674-hiddenapi/hiddenapi.cc b/test/674-hiddenapi/hiddenapi.cc
index 132df74f30..6113e97d77 100644
--- a/test/674-hiddenapi/hiddenapi.cc
+++ b/test/674-hiddenapi/hiddenapi.cc
@@ -37,7 +37,7 @@ extern "C" JNIEXPORT void JNICALL Java_Main_init(JNIEnv*, jclass) {
runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled);
runtime->SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled);
runtime->SetTargetSdkVersion(
- static_cast<uint32_t>(hiddenapi::ApiList::GreylistMaxO().GetMaxAllowedSdkVersion()));
+ static_cast<uint32_t>(hiddenapi::ApiList::MaxTargetO().GetMaxAllowedSdkVersion()));
runtime->SetDedupeHiddenApiWarnings(false);
}
@@ -85,7 +85,7 @@ extern "C" JNIEXPORT jint JNICALL Java_Main_appendToBootClassLoader(
return int_index;
}
-extern "C" JNIEXPORT void JNICALL Java_Main_setWhitelistAll(JNIEnv*, jclass, jboolean value) {
+extern "C" JNIEXPORT void JNICALL Java_Main_setSdkAll(JNIEnv*, jclass, jboolean value) {
std::vector<std::string> exemptions;
if (value != JNI_FALSE) {
exemptions.push_back("L");