Sync frida-gum typings with Frida 12.7.25 (#40868)

Changelog at:

        https://www.frida.re/news/2019/09/18/frida-12-7-released/
This commit is contained in:
Ole André Vadla Ravnås
2019-12-06 16:32:18 -08:00
committed by Ron Buckton
parent 6f49a850bf
commit 3b047be851
+18 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for non-npm package frida-gum 14.2
// Type definitions for non-npm package frida-gum 14.3
// Project: https://github.com/frida/frida
// Definitions by: Ole André Vadla Ravnås <https://github.com/oleavr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -935,6 +935,11 @@ interface ModuleSymbolDetails {
* Absolute address.
*/
address: NativePointer;
/**
* Size in bytes, if available.
*/
size?: number;
}
type ModuleImportType = "function" | "variable";
@@ -4043,7 +4048,7 @@ declare namespace Java {
*
* @param className Canonical class name to get a wrapper for.
*/
function use(className: string): Wrapper;
function use(className: string, options?: UseOptions): Wrapper;
/**
* Opens the .dex file at `filePath`.
@@ -4139,6 +4144,17 @@ declare namespace Java {
onComplete: () => void;
}
interface UseOptions {
/**
* Whether to consult the class wrapper cache which is the default
* behavior or skip it and create a brand new class wrapper.
*
* Skipping the cache is useful when dealing with multiple class-loaders
* and colliding class names.
*/
cache?: "consult" | "skip";
}
interface ChooseCallbacks {
/**
* Called with each live instance found with a ready-to-use `instance`