Add new skip option

This commit is contained in:
hyugogirubato
2024-10-18 20:26:41 +02:00
parent f1cfbf752c
commit 2a8a987766
5 changed files with 20 additions and 8 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
const OEM_CRYPTO_API = JSON.parse('${OEM_CRYPTO_API}');
const NATIVE_C_API = JSON.parse('${NATIVE_C_API}');
const SYMBOLS = JSON.parse('${SYMBOLS}');
const SKIP = '${SKIP}' === 'True';
// Logging levels to synchronize with Python's logging module.
@@ -281,7 +282,7 @@ const hookLibrary = (name) => {
}
functions = functions.filter(f => !NATIVE_C_API.includes(f.name));
const targets = functions.filter(f => OEM_CRYPTO_API.includes(f.name)).map(f => f.name);
const targets = SKIP ? [] : functions.filter(f => OEM_CRYPTO_API.includes(f.name)).map(f => f.name);
const hooked = [];
functions.forEach(func => {