frida-java-bridge 7.0.11 → 7.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/class-model.js +4 -3
- package/package.json +1 -1
package/lib/class-model.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { withRunnableArtThread, getArtClassSpec, getArtMethodSpec, getArtFieldSpec
|
|
1
|
+
import { withRunnableArtThread, getArtClassSpec, getArtMethodSpec, getArtFieldSpec } from './android.js';
|
|
2
|
+
import getApi from './api.js';
|
|
2
3
|
|
|
3
4
|
const code = `#include <json-glib/json-glib.h>
|
|
4
5
|
#include <string.h>
|
|
@@ -1321,7 +1322,7 @@ function ensureInitialized (env) {
|
|
|
1321
1322
|
|
|
1322
1323
|
function compileModule (env) {
|
|
1323
1324
|
const api = getApi();
|
|
1324
|
-
const { jvmti } = api;
|
|
1325
|
+
const { jvmti = null } = api;
|
|
1325
1326
|
|
|
1326
1327
|
const { pointerSize } = Process;
|
|
1327
1328
|
|
|
@@ -1343,7 +1344,7 @@ function compileModule (env) {
|
|
|
1343
1344
|
const field = env.javaLangReflectField();
|
|
1344
1345
|
let j = javaApi;
|
|
1345
1346
|
[
|
|
1346
|
-
jvmti,
|
|
1347
|
+
(jvmti !== null) ? jvmti : NULL,
|
|
1347
1348
|
getDeclaredMethods, getDeclaredFields,
|
|
1348
1349
|
method.getName, method.getModifiers,
|
|
1349
1350
|
field.getName, field.getModifiers
|