MCPcopy Index your code
hub / github.com/sensepost/objection / wrapJavaPerform

Function wrapJavaPerform

agent/src/android/lib/libjava.ts:19–29  ·  view source on GitHub ↗
(fn: any)

Source from the content-addressed store, hash-verified

17// rpc export will sniff and resolve before returning
18// the result when its ready.
19export const wrapJavaPerform = (fn: any): Promise<any> => {
20 return new Promise((resolve, reject) => {
21 Java.perform(() => {
22 try {
23 resolve(fn());
24 } catch (e) {
25 reject(e);
26 }
27 });
28 });
29};
30
31export const getApplicationContext = (): any => {
32 const ActivityThread = Java.use("android.app.ActivityThread");

Callers 15

listFunction · 0.85
keystore_infoFunction · 0.85
detailFunction · 0.85
clearFunction · 0.85
keystoreLoadFunction · 0.85
keystoreGetKeyFunction · 0.85
getInstanceFunction · 0.85
getInstancesFunction · 0.85
methodsFunction · 0.85
executeFunction · 0.85
fieldsFunction · 0.85
evaluateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…