Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading Strings.xml file from apk file

Tags:

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

like image 515
Muhammad Umar Avatar asked Jul 21 '12 09:07

Muhammad Umar


People also ask

Where is strings xml in APK?

xml file can be located in destination_path/res/values/ folder.

How do I open a string in xml?

In the Project > Android panel on the left, select ModuleName > res > values. Double-click strings. xml to open it for editing.

Where is strings xml in Android?

String. xml file contains all the strings which will be used frequently in Android project. String. xml file present in the values folder which is sub folder of res folder in project structure.In Android Studio, we have many Views such as TextView,Button,EditText,CheckBox,RadioButton etc.


2 Answers

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. 
like image 90
Lalit Poptani Avatar answered Sep 19 '22 11:09

Lalit Poptani


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

like image 40
biegleux Avatar answered Sep 19 '22 11:09

biegleux