diff options
| -rw-r--r-- | openjdkjvmti/fixed_up_dex_file.cc | 5 | ||||
| -rw-r--r-- | runtime/vdex_file.cc | 4 |
2 files changed, 1 insertions, 8 deletions
diff --git a/openjdkjvmti/fixed_up_dex_file.cc b/openjdkjvmti/fixed_up_dex_file.cc index a660fb56c4..2ca87fd482 100644 --- a/openjdkjvmti/fixed_up_dex_file.cc +++ b/openjdkjvmti/fixed_up_dex_file.cc @@ -79,11 +79,8 @@ static void DoDexUnquicken(const art::DexFile& new_dex_file, const art::VdexFile* vdex = GetVdex(original_dex_file); if (vdex != nullptr) { vdex->UnquickenDexFile(new_dex_file, original_dex_file, /* decompile_return_instruction */true); - } else { - // The dex file isn't quickened since it is being used directly. We might still have hiddenapis - // so we need to get rid of those. - UnhideApis(new_dex_file); } + UnhideApis(new_dex_file); } static void DCheckVerifyDexFile(const art::DexFile& dex) { diff --git a/runtime/vdex_file.cc b/runtime/vdex_file.cc index 32aa86dc93..1e0a852764 100644 --- a/runtime/vdex_file.cc +++ b/runtime/vdex_file.cc @@ -299,10 +299,6 @@ void VdexFile::UnquickenDexFile(const DexFile& target_dex_file, decompile_return_instruction); } } - method.UnHideAccessFlags(); - } - for (const ClassAccessor::Field& field : class_accessor.GetFields()) { - field.UnHideAccessFlags(); } } } |