程序包 net_62v.external
类 MetaCore
java.lang.Object
net_62v.external.MetaCore
Mundo core callback and process initializer
- 版本:
- 1.0
- 作者:
- king@62v.net
-
构造器概要
-
方法概要
修饰符和类型方法说明static InvocationHandler
addServiceInterpreter
(String serviceName, String methodName, InvocationHandler handler) Add a service interpreter, you can interpret system service by this method.
e.g. service name {Context.LOCATION_SERVICE
} to interpret the location manager service.
Method name {getLastLocation
}
(reference to {@nullable Location getLastLocation(String provider, in LastLocationRequest request, String packageName, @nullable String attributionTag);
})
to interpret the getLastLocation method.
You can modify the service result by this api, and implement your own location spoofing tool help etc.static void
attachMetaBase
(Context context) Can be called inside the attachBaseContext block.static Context
Get the application base context (of the host app)static void
registerCoreCallback
(Runnable callback) You can render your app ui after our core done all initialize progresses.
You should call this method to assure that our core done the initialize.static void
Set process callback, will callback when the mundo environment prepared and the internal application initialized.
-
构造器详细资料
-
MetaCore
public MetaCore()
-
-
方法详细资料
-
getHostContext
Get the application base context (of the host app)- 返回:
- base context
-
attachMetaBase
Can be called inside the attachBaseContext block.MetaCore.attachMetaBase(base)
- 参数:
context
- application base context- 另请参阅:
-
registerCoreCallback
You can render your app ui after our core done all initialize progresses.
You should call this method to assure that our core done the initialize.- 参数:
callback
- will receive a callback after the init progress done.
-
setProcessLifecycleCallback
Set process callback, will callback when the mundo environment prepared and the internal application initialized.- 参数:
callback
- process callback, you can implement the app callback and the environment callback
-
addServiceInterpreter
public static InvocationHandler addServiceInterpreter(String serviceName, String methodName, InvocationHandler handler) Add a service interpreter, you can interpret system service by this method.
e.g. service name {Context.LOCATION_SERVICE
} to interpret the location manager service.
Method name {getLastLocation
}
(reference to {@nullable Location getLastLocation(String provider, in LastLocationRequest request, String packageName, @nullable String attributionTag);
})
to interpret the getLastLocation method.
You can modify the service result by this api, and implement your own location spoofing tool help etc.- 参数:
serviceName
- The system service namemethodName
- Method name of the service you selected like getCurrentLocationhandler
- Your method interpreter, you can modify the return value and the params through our callback.- 返回:
- The origin method interpreter, null if no origin method interpreter, if null, you can obtain the origin result by
calling the Method.invoke function. - 另请参阅:
-