Skip to content

Commit

Permalink
fix(ProfileSaver): support Android 15 QPR1
Browse files Browse the repository at this point in the history
  • Loading branch information
rushiiMachine committed Feb 7, 2025
1 parent 25a79d4 commit 09c718c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/main/cpp/profile_saver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ bool disable_profile_saver() {
symbol = "_ZN3art12ProfileSaver20ProcessProfilingInfoEbbPt";
}
process_profiling_info = AliuHook::elf_img.GetSymbolAddress(symbol);

// https://android.googlesource.com/platform/art/+/android15-qpr1-release/runtime/jit/profile_saver.cc#767
// Android 15 QPR1 changed back to the same symbol as API <31
if (!process_profiling_info && AliuHook::android_version >= 35) {
symbol = "_ZN3art12ProfileSaver20ProcessProfilingInfoEbPt";
process_profiling_info = AliuHook::elf_img.GetSymbolAddress(symbol);
}
}

if (!process_profiling_info) {
Expand Down

0 comments on commit 09c718c

Please sign in to comment.