Java Code Examples for com.android.reverse.util.Logger#log_behavior()
The following examples show how to use
com.android.reverse.util.Logger#log_behavior() .
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: AbstractBahaviorHookCallBack.java From ZjDroid with Apache License 2.0 | 5 votes |
private void printStackInfo() { Throwable ex = new Throwable(); StackTraceElement[] stackElements = ex.getStackTrace(); if (stackElements != null) { StackTraceElement st; for (int i = 0; i < stackElements.length; i++) { st = stackElements[i]; if (st.getClassName().startsWith("com.android.reverse") || st.getClassName().startsWith("de.robv.android.xposed.XposedBridge")) continue; Logger.log_behavior(" at " + st.getClassName() + ":" + st.getMethodName() + ":" + st.getFileName() + ":" + st.getLineNumber()); } } }
Example 2
Source File: ContentResolverHook.java From ZjDroid with Apache License 2.0 | 5 votes |
private boolean isSensitiveUri(Uri uri) { String url = uri.toString().toLowerCase(); Logger.log_behavior(url); for (int i = 0; i < privacyUris.length; i++) { if (url.startsWith(privacyUris[i])) { return true; } } return false; }
Example 3
Source File: ReverseXposedModule.java From ZjDroid with Apache License 2.0 | 5 votes |
@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 4
Source File: AbstractBahaviorHookCallBack.java From zjdroid with Apache License 2.0 | 5 votes |
@Override public void beforeHookedMethod(HookParam param) { // TODO Auto-generated method stub Logger.log_behavior("Invoke "+ param.method.getDeclaringClass().getName()+"->"+param.method.getName()); this.descParam(param); //this.printStackInfo(); }
Example 5
Source File: AbstractBahaviorHookCallBack.java From zjdroid with Apache License 2.0 | 5 votes |
private void printStackInfo(){ Throwable ex = new Throwable(); StackTraceElement[] stackElements = ex.getStackTrace(); if(stackElements != null){ StackTraceElement st; for(int i=0; i<stackElements.length; i++){ st = stackElements[i]; if(st.getClassName().startsWith("com.android.reverse")||st.getClassName().startsWith("de.robv.android.xposed.XposedBridge")) continue; Logger.log_behavior(st.getClassName()+":"+st.getMethodName()+":"+st.getFileName()+":"+st.getLineNumber()); } } }
Example 6
Source File: ContentResolverHook.java From zjdroid with Apache License 2.0 | 5 votes |
private boolean isSensitiveUri(Uri uri) { String url = uri.toString().toLowerCase(); Logger.log_behavior(url); for (int i = 0; i < privacyUris.length; i++) { if (url.startsWith(privacyUris[i])) { return true; } } return false; }
Example 7
Source File: AbstractBahaviorHookCallBack.java From HeyGirl with Apache License 2.0 | 5 votes |
@Override public void beforeHookedMethod(HookParam param) { // TODO Auto-generated method stub Logger.log_behavior("Invoke "+ param.method.getDeclaringClass().getName()+"->"+param.method.getName()); this.descParam(param); //this.printStackInfo(); }
Example 8
Source File: AbstractBahaviorHookCallBack.java From HeyGirl with Apache License 2.0 | 5 votes |
private void printStackInfo(){ Throwable ex = new Throwable(); StackTraceElement[] stackElements = ex.getStackTrace(); if(stackElements != null){ StackTraceElement st; for(int i=0; i<stackElements.length; i++){ st = stackElements[i]; if(st.getClassName().startsWith("com.android.reverse")||st.getClassName().startsWith("de.robv.android.xposed.XposedBridge")) continue; Logger.log_behavior(st.getClassName()+":"+st.getMethodName()+":"+st.getFileName()+":"+st.getLineNumber()); } } }
Example 9
Source File: ContentResolverHook.java From HeyGirl with Apache License 2.0 | 5 votes |
private boolean isSensitiveUri(Uri uri) { String url = uri.toString().toLowerCase(); Logger.log_behavior(url); for (int i = 0; i < privacyUris.length; i++) { if (url.startsWith(privacyUris[i])) { return true; } } return false; }
Example 10
Source File: AbstractBahaviorHookCallBack.java From ZjDroid with Apache License 2.0 | 5 votes |
@Override public void beforeHookedMethod(HookParam param) { // TODO Auto-generated method stub Logger.log_behavior("Invoke "+ param.method.getDeclaringClass().getName()+"->"+param.method.getName()); this.descParam(param); //this.printStackInfo(); }
Example 11
Source File: AbstractBahaviorHookCallBack.java From ZjDroid with Apache License 2.0 | 5 votes |
private void printStackInfo(){ Throwable ex = new Throwable(); StackTraceElement[] stackElements = ex.getStackTrace(); if(stackElements != null){ StackTraceElement st; for(int i=0; i<stackElements.length; i++){ st = stackElements[i]; if(st.getClassName().startsWith("com.android.reverse")||st.getClassName().startsWith("de.robv.android.xposed.XposedBridge")) continue; Logger.log_behavior(st.getClassName()+":"+st.getMethodName()+":"+st.getFileName()+":"+st.getLineNumber()); } } }
Example 12
Source File: ContentResolverHook.java From ZjDroid with Apache License 2.0 | 5 votes |
private boolean isSensitiveUri(Uri uri) { String url = uri.toString().toLowerCase(); Logger.log_behavior(url); for (int i = 0; i < privacyUris.length; i++) { if (url.startsWith(privacyUris[i])) { return true; } } return false; }
Example 13
Source File: AbstractBahaviorHookCallBack.java From ZjDroid with Apache License 2.0 | 4 votes |
@Override public void beforeHookedMethod(HookParam param) { Logger.log_behavior("Invoke " + param.method.getDeclaringClass().getName() + "->" + param.method.getName()); this.descParam(param); this.printStackInfo(); }