File tree 5 files changed +38
-0
lines changed
edxp-common/template_override/system_x86/lib64
edxp-core/src/main/cpp/main
5 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 12
12
/release
13
13
.externalNativeBuild
14
14
elf-cleaner.sh
15
+
16
+ # vscode
17
+ .project
18
+ .classpath
19
+ .settings /
20
+ .vscode /
21
+
22
+ dalvikdx /bin /
23
+ dexmaker /bin /
Original file line number Diff line number Diff line change
1
+
2
+ #pragma once
3
+
4
+ #include " base/object.h"
5
+
6
+ namespace art {
7
+
8
+ namespace oat_file_manager {
9
+
10
+ CREATE_HOOK_STUB_ENTRIES (void , SetOnlyUseSystemOatFiles) {
11
+ return ;
12
+ }
13
+
14
+ // http://androidxref.com/9.0.0_r3/xref/art/runtime/oat_file_manager.cc#637
15
+ static void DisableOnlyUseSystemOatFiles (void *handle, HookFunType hook_func) {
16
+ const int api_level = GetAndroidApiLevel ();
17
+ if (api_level == ANDROID_P) {
18
+ HOOK_FUNC (SetOnlyUseSystemOatFiles,
19
+ " _ZN3art14OatFileManager24SetOnlyUseSystemOatFilesEv" );
20
+
21
+ }
22
+ };
23
+
24
+ }
25
+
26
+ }
Original file line number Diff line number Diff line change 16
16
#include " art/runtime/class_linker.h"
17
17
#include " art/runtime/gc/heap.h"
18
18
#include " art/runtime/hidden_api.h"
19
+ #include " art/runtime/oat_file_manager.h"
19
20
#include " framework/fd_utils.h"
20
21
21
22
namespace edxp {
@@ -88,6 +89,8 @@ namespace edxp {
88
89
art::ClassLinker::Setup (art_handle, hook_func);
89
90
art::mirror::Class::Setup (art_handle, hook_func);
90
91
art::JNIEnvExt::Setup (art_handle, hook_func);
92
+ art::oat_file_manager::DisableOnlyUseSystemOatFiles (art_handle, hook_func);
93
+
91
94
art_hooks_installed = true ;
92
95
LOGI (" ART hooks installed" );
93
96
}
You can’t perform that action at this time.
0 commit comments