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
            Asked
            
        
        
            Active
            
        
            Viewed 2.6k times
        
    22
            
            
         
    
    
        Keppil
        
- 45,603
- 8
- 97
- 119
 
    
    
        Muhammad Umar
        
- 11,391
- 21
- 91
- 193
4 Answers
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
- 
                    Good Work bro..Cheers..One more Question..:))...Is it possible to extract the src folder of our Android project..is there any tool that would do this.?? – Haresh Chaudhary Jul 21 '12 at 10:13
- 
                    Oh!!! yes you can [extract src folder](http://stackoverflow.com/a/6081365/726863) also, but it won't be completely readable, but almost you can get the idea what the code is all about :) – Lalit Poptani Jul 21 '12 at 10:17
- 
                    @LalitPoptani the apktoll isn't available on the link you've provided. – android developer Jul 18 '13 at 08:27
- 
                    Man you are a life saver... Thank you so much! – Bugs Happen May 18 '19 at 02:32
- 
                    I would like to add that after extraction from apktool, string.xml file can be located in destination_path/res/values/ folder. – user3046442 Jun 05 '20 at 14:34
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
- Put apk file ( suppose test.apk ) in the directory where you have downloaded it.
- Now type the command ' apktool d test.apk '
- Now browse to " test \ res \ values "
You will get your strings.XML file there.
 
    
    
        user5892815
        
- 31
- 1
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