mirror of
https://github.com/revanced/smali.git
synced 2025-05-21 08:27:05 +02:00
Fixed up and moved the basic HelloWorld example, so that it is a console app instead of an android app
git-svn-id: https://smali.googlecode.com/svn/trunk@58 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
56c3e45ad4
commit
76ec9bbc90
23
src/test/resources/examples/HelloWorld/HelloWorld.smali
Normal file
23
src/test/resources/examples/HelloWorld/HelloWorld.smali
Normal file
@ -0,0 +1,23 @@
|
||||
.class public LHelloWorld;
|
||||
|
||||
;Ye olde hello world application
|
||||
;To assemble and run this on a phone or emulator:
|
||||
;
|
||||
;java -jar smali.jar --dex HelloWorld.smali
|
||||
;zip HelloWorld.zip classes.dex
|
||||
;adb push HelloWorld.zip /data/local
|
||||
;adb shell dalvikvm -cp /data/local/HelloWorld.zip HelloWorld
|
||||
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
.method public static main([Ljava/lang/String;)V
|
||||
.registers 2
|
||||
|
||||
sget-object v0, java/lang/System/out Ljava/io/PrintStream;
|
||||
|
||||
const-string v1, "Hello World!"
|
||||
|
||||
invoke-virtual {v0, v1}, java/io/PrintStream/println(Ljava/lang/String;)V
|
||||
|
||||
return-void
|
||||
.end method
|
Loading…
x
Reference in New Issue
Block a user