-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace whale so file to fix crash on x86_64
fix: hook art::OatFileManager::SetOnlyUseSystemOatFiles on AndroidQ
- Loading branch information
Showing
5 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+164 KB
(120%)
edxp-common/template_override/system_x86/lib64/libwhale.edxp.so
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
edxp-core/src/main/cpp/main/include/art/runtime/oat_file_manager.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
#pragma once | ||
|
||
#include "base/object.h" | ||
|
||
namespace art { | ||
|
||
namespace oat_file_manager { | ||
|
||
CREATE_HOOK_STUB_ENTRIES(void, SetOnlyUseSystemOatFiles) { | ||
return; | ||
} | ||
|
||
// http://androidxref.com/9.0.0_r3/xref/art/runtime/oat_file_manager.cc#637 | ||
static void DisableOnlyUseSystemOatFiles(void *handle, HookFunType hook_func) { | ||
const int api_level = GetAndroidApiLevel(); | ||
if (api_level == ANDROID_P) { | ||
HOOK_FUNC(SetOnlyUseSystemOatFiles, | ||
"_ZN3art14OatFileManager24SetOnlyUseSystemOatFilesEv"); | ||
|
||
} | ||
}; | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.