All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.virjar.ratel.api.rposed.IRposedHookLoadPackage Maven / Gradle / Ivy

Go to download

ratel api,used for developer on ratel system,an extension for xposed framewrok,ratel api compatable with original xposed framework

There is a newer version: 1.3.6
Show newest version
package com.virjar.ratel.api.rposed;

import android.app.Application;

import com.virjar.ratel.api.rposed.callbacks.RC_LoadPackage;
import com.virjar.ratel.api.xposed.IRXposedHookLoadPackage;


/**
 * Get notified when an app ("Android package") is loaded.
 * This is especially useful to hook some app-specific methods.
 *
 * 

This interface should be implemented by the module's main class. Xposed will take care of * registering it as a callback automatically. */ public interface IRposedHookLoadPackage extends IRposedMod, IRXposedHookLoadPackage { /** * This method is called when an app is loaded. It's called very early, even before * {@link Application#onCreate} is called. * Modules can set up their app-specific hooks here. * * @param lpparam Information about the app. * @throws Throwable Everything the callback throws is caught and logged. */ void handleLoadPackage(RC_LoadPackage.LoadPackageParam lpparam) throws Throwable; /** * @hide */ final class Wrapper extends RC_LoadPackage { private final IRposedHookLoadPackage instance; public Wrapper(IRposedHookLoadPackage instance) { this.instance = instance; } @Override public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable { instance.handleLoadPackage(lpparam); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy