Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R$string.smali file values #34

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 1 comment
Closed

R$string.smali file values #34

GoogleCodeExporter opened this issue Mar 24, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What seems to be the problem?
First of all, I would like to thank you guys so much for developing and 
releasing such and excellent and useful tool. That being said, I was wondering 
what format is used to encode the R$string.smali file, or for that matter, any 
of the .smali files. I wished to be able to see the string values for the 
strings I added to my .apk file but I currently only see the string names. For 
ex., if I entered the string:
"DrNick" with value "Hi Everybody" in Java, once the .dex file has been 
de-assembled, the R$string.smali file shows:
 ".field public static final DrNick:I = 0x7f040002". Is there a way to get the value "Hi Everybody" to show up in the .smali file or what is the encoding method used so I can try to return the string to it's original value?


What version are you using?
1.2.2

Please provide any additional information below: error messages, symptoms,
etc.
If at all possible, I would really appreciate it if I could get to take a look 
at the source code to edit and figure out the encoding issue. 
Thank you so much in advance for this program and all your help!

Original issue reported on code.google.com by andypa...@gmail.com on 10 Jun 2010 at 8:26

@GoogleCodeExporter
Copy link
Author

This really isn't a "smali thing". This is more of an android resource thing. 
Smali doesn't know or care about android resources, all it knows about is 
whatever is in the dex file. The string value that you want is stored in the 
binary xml files in the apk. You might take a look at brutall's apktool - I 
think he has some resource related stuff, although I'm not positive about that. 
You might also check out AXmlPrinter2, which can convert those binary xml files 
back into textual xml.

The source code to smali is available. The procedure for building it is 
documented at http://code.google.com/p/smali/wiki/BuildProcedure

Original comment by JesusFr...@gmail.com on 10 Jun 2010 at 8:37

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant