File tree Expand file tree Collapse file tree
VirtualApp/lib/src/main/jni/Foundation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -443,6 +443,11 @@ bool (*orig_ProcessProfilingInfo)(void*, void*);
443443bool compileNothing (void * thiz, void * thread, void * method, bool osr) { return false ; }
444444bool (*orig_CompileNothing)(void * thiz, void * thread, void * method, bool osr);
445445
446+ void (*org_notifyJitActivity)(void *);
447+ void notifyNothing (void *thiz) {
448+ return ;
449+ }
450+
446451void disableJit (int apiLevel) {
447452#ifdef __arm__
448453 void *libart = fake_dlopen (" /system/lib/libart.so" , RTLD_NOW);
@@ -466,6 +471,12 @@ void disableJit(int apiLevel) {
466471 if (compileMethod) {
467472 MSHookFunction (compileMethod, (void *) compileNothing, (void **) &orig_CompileNothing);
468473 }
474+
475+ void *notifyJitActivity = fake_dlsym (libart, " _ZN3art12ProfileSaver17NotifyJitActivityEv" );
476+ if (notifyJitActivity) {
477+ MSHookFunction (notifyJitActivity, (void *) notifyNothing,
478+ (void **) &org_notifyJitActivity);
479+ }
469480 }
470481#endif
471482}
You can’t perform that action at this time.
0 commit comments