Skip to content

Commit

Permalink
enum misalignment
Browse files Browse the repository at this point in the history
  • Loading branch information
matbrik committed Jul 16, 2024
1 parent 977ca6e commit 33bc5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@ function ensureArtKnowsHowToHandleReplacementMethods (vm) {
const kCollectorTypeCMC = 3;
const mayUseCollector = new NativeFunction(Module.findExportByName('libart.so', '_ZNK3art2gc4Heap15MayUseCollectorENS0_13CollectorTypeE'), 'int', ['pointer', 'int']);

if (mayUseCollector !== null && mayUseCollector(api.artHeap, kCollectorTypeCMC)) {
if (mayUseCollector !== null && apiLevel > 28 && mayUseCollector(api.artHeap, kCollectorTypeCMC)) {
exportName = '_ZN3art6Thread15RunFlipFunctionEPS0_b';
Interceptor.attach(Module.getExportByName('libart.so', exportName), artController.hooks.Gc.runFlip);
} else {
Expand Down

0 comments on commit 33bc5c5

Please sign in to comment.