Hi!
Maybe this has been answered before, but I searched for answers everywhere and did not find anything...
I want to extract the name of an application from the APK file.
I have the AndroidManifest.xml and I can decode it.
For the application label I get "ResourceID 0x7f04004a".
In the resources.arsc I find the correct text of the label (verified witk aapt d badging xxx.apk), but the label is the 213th entry, not the 74th (0x4a) one.
I assume that the TypeID (0x04) has an impact, but I just can not figure out how I can get from TypeID 0x04, Index 0x4a to the 213th entry of the arsc file...
I am clearly missing some information here...
Does anybody know the answer to my problem?
Many thanks in advance!
Georg
Related
Does anyone know how to refere to a registry in a .cpr file.
For example, if I want to add a text on my titanium plugin, and in my registry it's in located in HKLM\Software\whatever\text1, how can I get the .cpr to read the value inside that string?
For some reason wm6.5 knows that it can get values from the HKLM\Software\Microsoft\CHome key, but how can I get it from another key?
Would be realy awesome if someone could help, that way there would be quite a bit more to edit in wm6.5...
Does nobody have any idea?
I read that it is the same language as in .xml files, so how do I add a registry value to a text line?
don't know the format or the program which use cpr files
but if the cpr file include the "HKLM\Software\Microsoft\CHome"
then I would change it
if not then the program which interp the cpr files prob have
the parth hard-coded in it's binary code
Rudegar said:
don't know the format or the program which use cpr files
but if the cpr file include the "HKLM\Software\Microsoft\CHome"
then I would change it
if not then the program which interp the cpr files prob have
the parth hard-coded in it's binary code
Click to expand...
Click to collapse
I know the reg. path is in the binary code of a program,
but can't read or edit that.
But, my question is if someone knows the .xml code to read from a registery value.
fe: the code for a picture is [ source="\Windows\photo1.png" ]
to read something from a .dll file is [ InnerTextType="Resource" Text="shellresapps.dll,18149" ]
Hello,
How cen I get information about icon of compiled application??
I have downloaded example.apk on my PC.
Unziped it. Found binary AndroidManifest.xml. OK I decoded it and I get:
<application
android:theme="@7F0C0017"
android:label="@7F0B0000"
android:icon="@7F0200A4"
>
And I would like to know the name of the resources the is icon of this application. What means the number: @7F0200A4 . I tried as an offset in resoirces.arcs file but I missed It's not that.
Maybe it's wrong way?? Maybe there is other way to get knowledge about the icon???
BR.
Damien
Not sure if the app icon can be programatically determined without decompiling the whole apk, but it's usually app_icon.png, icon.png or ic_launcher_appname.png in /res/drawable
/Mats
Just open the .apk with a file manager and hunt around for the png, it's not in any xmls.
I just recently checked out LauncherPro beta, and i really like it, my only problem is that the shortcut icons arent really what I like.
All I want to do it edit the default_workspace.xml so that the target APKs for the shortcuts will be Phone, Messages, Gallery, and Browser. I've already edited the icons to reflect that.
I already decoded the binary XML, I just need to know how to re-compile it to a binary XML after editing.
Sorry guys, I'm a complete noob when it comes to any kind of coding... and thanks in advance
edit: I already read Stericson's sticky, but I either just didnt get it, or didnt see anywhere to re-compile a decompiled binary XML.
If you have used AXMLPrinter to decode XML, then no, you can't compile it back. It's for looking into XML files only, not for editing them as text.
AFAIK my apktool is only one tool, which gives you possibility to edit XML files easily:
http://forum.xda-developers.com/showthread.php?t=640592
AXML is what I used, but re-editing it is no problem. I tried using apktool, but it gives me a "java" is not recognized as an internal blah blah message.. I've googled it, and made sure the environment variables were correct also, just updated Java a couple hours ago as well.
edit: and oh, thanks for the reply.. it's the only one I've gotten so far between here and droidforums so far.
I don't really know, why you don't have java command set in your PATH - I think Java installer does it automatically :-/ You could find java.exe file on your disk and:
Add it to PATH - there are many arts about this in the internet.
Edit apktool.bat file to call java command using full path, i.e. replace "java" with something like: ' "C:\Program Files\Java\java.exe" '.
Don't use apktool.bat, call Java directly: ' "C:\Program Files\Java\java.exe" -jar %WINDIR%\apktool.jar d somefile.apk outdir '
Hey guys, i've spent a few hours searching while figuring out these new tools I've downloaded in hopes to modify some basic apk's. After successfully modifying the background image for the pandora widget, my intention's are to now expand the widgets width. To do so I understand I would need to modify the xml file associated to the widget, and this is where my trouble's lie.
From what I've gathered I've been able to decompile the binary xml file to regular xml using AXMLPrinter, after editing it there seems to be no hope in recompiling it to an android freindly xml file.
After a bit of searching i've learned most suggest using apktool to decompile the apk, edit the necessary xml files, and then recompile. From what I understand this is the most appropriate method for what I desire.\
The problem i'm having is that once I decompile the apk, all I find is "smali" type files, and not one single xml file. This is where i'm lost..
Thanks for any help in advance, and sorry for this stupid question, it seems that everywhere I search this is the part that is directly skipped over.
you will find the xml files in the /res folder
hello, I am a beginner in customizing apk files. I'm not that smart, sorry
I have only three Chinese apk files decompiled and all found the strings.xml file. I put the strings.xml in the resOverloader folder in my phone. It does not work b.t.w.
Now I have an apk with from Brazil in the Portuguese language called Minhateca.apk.
It is a cloud app from Brazil.
I have with Android Multitool and Baksmali Manager app decompiled but I can not find a strings.xml.
Can anyone help me to find the stings file?
Download attachment for br.com.minhateca.apk
1walter9 said:
hello, I am a beginner in customizing apk files. I'm not that smart, sorry
I have only three Chinese apk files decompiled and all found the strings.xml file. I put the strings.xml in the resOverloader folder in my phone. It does not work b.t.w.
Now I have an apk with from Brazil in the Portuguese language called Minhateca.apk.
It is a cloud app from Brazil.
I have with Android Multitool and Baksmali Manager app decompiled but I can not find a strings.xml.
Can anyone help me to find the stings file?
Download attachment for br.com.minhateca.apk
Click to expand...
Click to collapse
Use advanced apktool by BDFreak .
Strings.xml might be in the res/values folder .
Regards,
AlfasMP
I've just used the advanced apktool and after decompiling I get the following message, I do not know what I should do, could you help me?
Login For: br.com.minhateca.apk
* Log Type: decompiling
* Sign Recorded At: Thu -22-01-2015- 18: 15: 09.71
* Sign Recorded By: Advanced ApkTool v4.1.0 By BDFreak
-------------------------------------------------- ----
W: Could not decode attr value, using Undecoded value Instead: ns =, name = name, value = 0x00000008
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write (Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue (ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute (MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute (XmlSerializerDelegate.java:106)
atorg.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event (StaticXmlSerializerWrapper.java:211)
brut.androlib.res.decoder.XmlPullStreamDecoder at $ 1.event (XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode (XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode (ResStreamDecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode (ResFileDecoder.java:114)
at brut.androlib.res.decoder.ResFileDecoder.decode (ResFileDecoder.java:99)
at brut.androlib.res.AndrolibResources.decode (AndrolibResources.java:323)
at brut.androlib.Androlib.decodeResourcesFull (Androlib.java:131)
at brut.androlib.ApkDecoder.decode (ApkDecoder.java:101)
at brut.apktool.Main.cmdDecode (Main.java:165)
at brut.apktool.Main.main (Main.java:81)
-------------------------------------------------- ----