Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get all strings defined in an apk

Tags:

Is there a quick way to get all the strings defined in an apk?

I am doing something like this:

aapt d --values resources app.apk

I am not sure if it gives me all the strings.

If there is any easier way to parse the strings please let me know.

like image 547
r.v Avatar asked Apr 29 '11 21:04

r.v


2 Answers

You can change "resources" for "strings" and you will have it. Use:

aapt d --values strings [APK_FILE]

This will dump all the strings on the apk. The dump includes the string resources that is what you are looking for.

This also includes strings generated by the system like the path to resources (res/drawable-hdpi/icon.png by example).

like image 122
Juan M. Rivero Avatar answered Oct 27 '22 01:10

Juan M. Rivero


This will decompress the whole APK including turning the files back into the directory hierarchy you expect from an Android project.

http://code.google.com/p/android-apktool/ (deprecated)

http://ibotpeaches.github.io/Apktool/install/

To use type

apktool d YourApp.apk

Results will go into a folder named YourApp

like image 34
SteelBytes Avatar answered Oct 27 '22 00:10

SteelBytes