Created
April 10, 2015 06:43
-
-
Save xxnjdlys/e2c03544dde5f09c2950 to your computer and use it in GitHub Desktop.
add log to smali code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sadieyu.logg; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
/* | |
.class public Lcom/sadieyu/logg/MainActivity; | |
.super Landroid/app/Activity; | |
.source "MainActivity.java" | |
# direct methods | |
.method public constructor <init>()V | |
.locals 0 | |
.prologue | |
.line 8 | |
invoke-direct {p0}, Landroid/app/Activity;-><init>()V | |
return-void | |
.end method | |
# virtual methods | |
.method protected onCreate(Landroid/os/Bundle;)V | |
.locals 2 | |
.param p1, "savedInstanceState" # Landroid/os/Bundle; | |
.prologue | |
.line 12 | |
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V | |
.line 14 | |
const-string v0, "SADIEYU" | |
const-string v1, "==12306" | |
invoke-static {v0, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I | |
.line 16 | |
return-void | |
.end method | |
*/ | |
public class MainActivity extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
Log.v("SADIEYU", "==" + 12306); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment