com.android.reverse.collecter.LuaScriptInvoker Java Examples

The following examples show how to use com.android.reverse.collecter.LuaScriptInvoker. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReverseXposedModule.java    From zjdroid with Apache License 2.0 6 votes vote down vote up
@Override
public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {
	// TODO Auto-generated method stub
	if(lpparam.appInfo == null || 
			(lpparam.appInfo.flags & (ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)) !=0){
		return;
	}else if(lpparam.isFirstApplication && !ZJDROID_PACKAGENAME.equals(lpparam.packageName)){
	  Logger.PACKAGENAME = lpparam.packageName;
	  Logger.log("the package = "+lpparam.packageName +" has hook");
	  Logger.log("the app target id = "+android.os.Process.myPid());
	  PackageMetaInfo pminfo = PackageMetaInfo.fromXposed(lpparam);
	  ModuleContext.getInstance().initModuleContext(pminfo);
	  DexFileInfoCollecter.getInstance().start();
	  LuaScriptInvoker.getInstance().start();
	  ApiMonitorHookManager.getInstance().startMonitor();
	}else{
		
	}
}
 
Example #2
Source File: ReverseXposedModule.java    From ZjDroid with Apache License 2.0 6 votes vote down vote up
@Override
public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {
	// TODO Auto-generated method stub
	if(lpparam.appInfo == null || 
			(lpparam.appInfo.flags & (ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)) !=0){
		return;
	}else if(lpparam.isFirstApplication && !ZJDROID_PACKAGENAME.equals(lpparam.packageName)){
	  Logger.PACKAGENAME = lpparam.packageName;
	  Logger.log("the package = "+lpparam.packageName +" has hook");
	  Logger.log("the app target id = "+android.os.Process.myPid());
	  PackageMetaInfo pminfo = PackageMetaInfo.fromXposed(lpparam);
	  ModuleContext.getInstance().initModuleContext(pminfo);
	  DexFileInfoCollecter.getInstance().start();
	  LuaScriptInvoker.getInstance().start();
	  ApiMonitorHookManager.getInstance().startMonitor();
	}else{
		
	}
}
 
Example #3
Source File: InvokeScriptCommandHandler.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Override
public void doAction() {
	Logger.log("The Script invoke start");
	if (this.type == ScriptType.TEXTTYPE) {
		LuaScriptInvoker.getInstance().invokeScript(script);
	} else if (this.type == ScriptType.FILETYPE) {
		LuaScriptInvoker.getInstance().invokeFileScript(filePath);
	} else {
		Logger.log("the script type is invalid");
	}
	Logger.log("The Script invoke end");

}
 
Example #4
Source File: ReverseXposedModule.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Override
    public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {


        XMMultiDex.install(ReverseXposedModule.class.getClassLoader(),MODULE_PATH,lpparam.appInfo);

        APPINFO_DATA_DIR = lpparam.appInfo.dataDir;

//        addNativeLibDic();



        if (lpparam.appInfo == null ||
                (lpparam.appInfo.flags & (ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)) != 0) {
            return;
        } else if (lpparam.isFirstApplication && !ZJDROID_PACKAGENAME.equals(lpparam.packageName)) {
            Logger.PACKAGENAME = lpparam.packageName;
            Logger.log("the package = " + lpparam.packageName + " has hook");
            Logger.log("the app target id = " + android.os.Process.myPid());
            PackageMetaInfo pminfo = PackageMetaInfo.fromXposed(lpparam);
            ModuleContext.getInstance().initModuleContext(pminfo);
            DexFileInfoCollecter.getInstance().start();
            LuaScriptInvoker.getInstance().start();


            Logger.log_behavior("the package = " + lpparam.packageName + " has hook");
            Logger.log_behavior("the app target id = " + android.os.Process.myPid());
            ApiMonitorHookManager.getInstance().startMonitor();
        } else {

        }
    }
 
Example #5
Source File: InvokeScriptCommandHandler.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
@Override
public void doAction() {
	Logger.log("The Script invoke start");
	if (this.type == ScriptType.TEXTTYPE) {
		LuaScriptInvoker.getInstance().invokeScript(script);
	} else if (this.type == ScriptType.FILETYPE) {
		LuaScriptInvoker.getInstance().invokeFileScript(filePath);
	} else {
		Logger.log("the script type is invalid");
	}
	Logger.log("The Script invoke end");

}
 
Example #6
Source File: InvokeScriptCommandHandler.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
@Override
public void doAction() {
	Logger.log("The Script invoke start");
	if (this.type == ScriptType.TEXTTYPE) {
		LuaScriptInvoker.getInstance().invokeScript(script);
	} else if (this.type == ScriptType.FILETYPE) {
		LuaScriptInvoker.getInstance().invokeFileScript(filePath);
	} else {
		Logger.log("the script type is invalid");
	}
	Logger.log("The Script invoke end");

}
 
Example #7
Source File: InvokeScriptCommandHandler.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Override
public void doAction() {
	Logger.log("The Script invoke start");
	if (this.type == ScriptType.TEXTTYPE) {
		LuaScriptInvoker.getInstance().invokeScript(script);
	} else if (this.type == ScriptType.FILETYPE) {
		LuaScriptInvoker.getInstance().invokeFileScript(filePath);
	} else {
		Logger.log("the script type is invalid");
	}
	Logger.log("The Script invoke end");

}