From cc5ae0f1d19ad177615aa4b27edd84c6fc7106fc Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Sat, 8 Feb 2014 17:17:02 -0600 Subject: [PATCH] update unit-tests to handle a simple resource in smali --- .../test/resources/brut/apktool/testapp/res/values/public.xml | 4 ++++ .../resources/brut/apktool/testapp/res/values/strings.xml | 1 + .../resources/brut/apktool/testapp/smali/HelloWorld.smali | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/res/values/public.xml diff --git a/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/res/values/public.xml b/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/res/values/public.xml new file mode 100644 index 00000000..4a0a3a39 --- /dev/null +++ b/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/res/values/public.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/res/values/strings.xml b/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/res/values/strings.xml index 00ec9a40..dbbe1827 100644 --- a/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/res/values/strings.xml +++ b/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/res/values/strings.xml @@ -1,4 +1,5 @@ + Hello World diff --git a/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/smali/HelloWorld.smali b/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/smali/HelloWorld.smali index 900f5e54..5fb24d8c 100644 --- a/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/smali/HelloWorld.smali +++ b/brut.apktool/apktool-lib/src/test/resources/brut/apktool/testapp/smali/HelloWorld.smali @@ -7,7 +7,7 @@ sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream; - const-string v1, "Hello World!" + const/high16 v1, 0x7f020000 invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V