Here is a demo plugin which contains the hook info. It hooks the following methods:
- AssetManager.open()
- File()
- URL.openConnection()
The arguments would be logged and then the original method be called.
Build the plugin and you'll get an APK file. Push the APK to sdcard, then add the hook and run applications in VirtualHook.
Please take a look at the demo plugin in YAHFA on how to write a hook plugin.