22

Is there any way you can read the strings.xml file from an apk file?
I am not interested in libs or classes/code file just the strings defined in strings.xml

Keppil
  • 45,603
  • 8
  • 97
  • 119
Muhammad Umar
  • 11,391
  • 21
  • 91
  • 193

4 Answers4

43

Yes you can extract all the Resource files using apktool

Steps -

1.) Download files from above links and extract them in a folder.
2.) Open cmd -> run 
3.) Run command as 
    apktool.bat d source.apk destination_path

OR

1.) Put apktool.jar and test.apk in same folder 
2.) Go to the jar and .apk path by command line
3.) And fire the command java -jar apktool.jar d test.apk
4.) It will generate a folder with the name "test" in the same folder.
Lalit Poptani
  • 67,150
  • 23
  • 161
  • 242
7

Download android-apktool (download dependencies also if required), extract all in the same directory and run apktool d application.apk

biegleux
  • 13,179
  • 11
  • 45
  • 52
3

Download apktool

  1. Put apk file ( suppose test.apk ) in the directory where you have downloaded it.
  2. Now type the command ' apktool d test.apk '
  3. Now browse to " test \ res \ values "

You will get your strings.XML file there.

3

Another option besides apktool is aapt, but it won't reproduce the strings in the original XML form.

$ aapt dump --values resources app.apk |
  grep '^ *resource.*:string/' --after-context=1

  resource 0x7f04011a com.example:string/hello: t=0x03 d=0x0000039e (s=0x0008 r=0x00)
    (string8) "Hello"
  ...
apricot
  • 3,599
  • 3
  • 19
  • 20