Loading cmds/installd/dexopt.cpp +16 −0 Original line number Original line Diff line number Diff line Loading @@ -492,6 +492,14 @@ class RunProfman : public ExecVHelper { std::to_string(min_new_methods_percent_change)); std::to_string(min_new_methods_percent_change)); } } // On-device signing related. odsign sets the system property odsign.verification.success if // AOT artifacts have the expected signatures. const bool trust_art_apex_data_files = ::android::base::GetBoolProperty("odsign.verification.success", false); if (!trust_art_apex_data_files) { AddRuntimeArg("-Xdeny-art-apex-data-files"); } // Do not add after dex2oat_flags, they should override others for debugging. // Do not add after dex2oat_flags, they should override others for debugging. PrepareArgs(profman_bin); PrepareArgs(profman_bin); } } Loading Loading @@ -1231,6 +1239,14 @@ class RunDexoptAnalyzer : public ExecVHelper { } } } } // On-device signing related. odsign sets the system property odsign.verification.success if // AOT artifacts have the expected signatures. const bool trust_art_apex_data_files = ::android::base::GetBoolProperty("odsign.verification.success", false); if (!trust_art_apex_data_files) { AddRuntimeArg("-Xdeny-art-apex-data-files"); } PrepareArgs(dexoptanalyzer_bin); PrepareArgs(dexoptanalyzer_bin); } } Loading cmds/installd/run_dex2oat.cpp +7 −0 Original line number Original line Diff line number Diff line Loading @@ -283,6 +283,13 @@ void RunDex2Oat::PrepareCompilerConfigFlags(const UniqueFile& input_vdex, } } } } // On-device signing related. odsign sets the system property odsign.verification.success if // AOT artifacts have the expected signatures. const bool trust_art_apex_data_files = GetBoolProperty("odsign.verification.success", false); if (!trust_art_apex_data_files) { AddRuntimeArg("-Xdeny-art-apex-data-files"); } if (target_sdk_version != 0) { if (target_sdk_version != 0) { AddRuntimeArg(StringPrintf("-Xtarget-sdk-version:%d", target_sdk_version)); AddRuntimeArg(StringPrintf("-Xtarget-sdk-version:%d", target_sdk_version)); } } Loading Loading
cmds/installd/dexopt.cpp +16 −0 Original line number Original line Diff line number Diff line Loading @@ -492,6 +492,14 @@ class RunProfman : public ExecVHelper { std::to_string(min_new_methods_percent_change)); std::to_string(min_new_methods_percent_change)); } } // On-device signing related. odsign sets the system property odsign.verification.success if // AOT artifacts have the expected signatures. const bool trust_art_apex_data_files = ::android::base::GetBoolProperty("odsign.verification.success", false); if (!trust_art_apex_data_files) { AddRuntimeArg("-Xdeny-art-apex-data-files"); } // Do not add after dex2oat_flags, they should override others for debugging. // Do not add after dex2oat_flags, they should override others for debugging. PrepareArgs(profman_bin); PrepareArgs(profman_bin); } } Loading Loading @@ -1231,6 +1239,14 @@ class RunDexoptAnalyzer : public ExecVHelper { } } } } // On-device signing related. odsign sets the system property odsign.verification.success if // AOT artifacts have the expected signatures. const bool trust_art_apex_data_files = ::android::base::GetBoolProperty("odsign.verification.success", false); if (!trust_art_apex_data_files) { AddRuntimeArg("-Xdeny-art-apex-data-files"); } PrepareArgs(dexoptanalyzer_bin); PrepareArgs(dexoptanalyzer_bin); } } Loading
cmds/installd/run_dex2oat.cpp +7 −0 Original line number Original line Diff line number Diff line Loading @@ -283,6 +283,13 @@ void RunDex2Oat::PrepareCompilerConfigFlags(const UniqueFile& input_vdex, } } } } // On-device signing related. odsign sets the system property odsign.verification.success if // AOT artifacts have the expected signatures. const bool trust_art_apex_data_files = GetBoolProperty("odsign.verification.success", false); if (!trust_art_apex_data_files) { AddRuntimeArg("-Xdeny-art-apex-data-files"); } if (target_sdk_version != 0) { if (target_sdk_version != 0) { AddRuntimeArg(StringPrintf("-Xtarget-sdk-version:%d", target_sdk_version)); AddRuntimeArg(StringPrintf("-Xtarget-sdk-version:%d", target_sdk_version)); } } Loading