APISonar


com.android.reverse.util.Logger.log

> com > android > reverse > util > Logger > log
com APIs android APIs reverse APIs util APIs Logger APIs log APIs

Example 1
public void doAction() {
		HashMap<String, DexFileInfo> dexfileInfo = DexFileInfoCollecter.getInstance().dumpDexFileInfo();
		Iterator<DexFileInfo> itor = dexfileInfo.values().iterator();
		DexFileInfo info = null;
		Logger.log("The DexFile Infomation ->");
		while (itor.hasNext()) {
			info = itor.next();
			Logger.log("filepath:"+ info.getDexPath()+" mCookie:"+info.getmCookie());
		}
		Logger.log("End DexFile Infomation");
	}
Example 2
public String[] dumpLoadableClass(String dexPath) {
		int mCookie = this.getCookie(dexPath);
		if (mCookie != 0) {
			return (String[]) RefInvoke.invokeStaticMethod("dalvik.system.DexFile", "getClassNameList", new Class[] { int.class },
					new Object[] { mCookie });
		} else {
			Logger.log("the cookie is not right");
		}
		return null;

	}
Example 3
public void startHook() {
		
		Method setMobileDataEnabledmethod = RefInvoke.findMethodExact(
				"android.net.ConnectivityManager", ClassLoader.getSystemClassLoader(),
				"setMobileDataEnabled",boolean.class);
		hookhelper.hookMethod(setMobileDataEnabledmethod, new AbstractBahaviorHookCallBack() {
			
			@Override
			public void descParam(HookParam param) {
				boolean status = (Boolean) param.args[0];
				Logger.log("Set MobileDataEnabled = "+status);
			}
		});
		
	}
Example 4
public void doAction() {
		// TODO Auto-generated method stub
		String heapfilePath =ModuleContext.getInstance().getAppContext().getFilesDir()+"/"+dumpFileName;
        HeapDump.dumpHeap(heapfilePath);
        Logger.log("the heap data save to ="+ heapfilePath);
	}
Example 5
public void doAction() {
		// TODO Auto-generated method stub
		String memfilePath = ModuleContext.getInstance().getAppContext().getFilesDir()+"/"+dumpFileName;
        MemDump.dumpMem(memfilePath,start, length);       
        Logger.log("the mem data save to ="+ memfilePath);
	}
Example 6
public void doAction() {
		// TODO Auto-generated method stub
		String filename = ModuleContext.getInstance().getAppContext().getFilesDir()+"/dexfile.dex";
		DexFileInfoCollecter.getInstance().backsmaliDexFile(filename, dexpath);
		Logger.log("the dexfile data save to ="+filename);
	}
Example 7
public void invokeScript(String script){
		LuaState luaState = LuaStateFactory.newLuaState();
		luaState.openLibs();
		this.initLuaContext(luaState);
		int error = luaState.LdoString(script);
		if(error!=0){
			Logger.log("Read/Parse lua error. Exit");
			return;
		}
		
		luaState.close();
	}