[Q] XML Questions for my apk ... (X-post from DNA) - General Questions and Answers

Hi,
I've been trying to make this app mostly for personal use.
I actually am just changing/designing the images to just skin it really.
Feel free to check it out ( http://db.tt/qfFVq7uz ) (see attached as well), but I have a question or two about the xml stuff.
In the settings, I want to change the links that are inside there that go to other site to basically reroute them to our website.
I have tried looking at the xml files, I'm assuming that's where the link gets it's info, but not 100% sure.
Can anyone point me in the right direction on how to change these links. Changing the images and signing the apk is no problem for me so far.
Just a little help needed with the xml stuff. I can see it with an xml reader/editor, but it all looks foreign when I open it. I know html and what should do what, so I'm not completely useless when looking at it!
Thanks so much!

Related

AOSP lockscreen in sprint builds... ideas

I dabble in some programming, taking it in college now, but have little experience with linux and the like, so I don't know where to go from here. I found the files, I think, to modify so that the AOSP lockscreen will work. Found keyguard xml files in \system\framework\framework-res.apk\res\layout. Pretty sure these are the right files, as the images for the sliders is in this apk as well. And I know from a logcat that keyguard is what it's opening for the lockscreen. Only problem is, can't seem to view or edit these xml's in a readable format... tried three different editors. About to reboot into linux and try it there, maybe I'll have better luck. But thought I would ask here where there are people FAR more knowledgeable than I.
danaff37 said:
I dabble in some programming, taking it in college now, but have little experience with linux and the like, so I don't know where to go from here. I found the files, I think, to modify so that the AOSP lockscreen will work. Found keyguard xml files in \system\framework\framework-res.apk\res\layout. Pretty sure these are the right files, as the images for the sliders is in this apk as well. And I know from a logcat that keyguard is what it's opening for the lockscreen. Only problem is, can't seem to view or edit these xml's in a readable format... tried three different editors. About to reboot into linux and try it there, maybe I'll have better luck. But thought I would ask here where there are people FAR more knowledgeable than I.
Click to expand...
Click to collapse
They are in a binary format. I opened them in dreamweaver, and it still wasn't fully readable/able to be edited. you can use this to decode them to readable format, but I have NO CLUE how to get them back.
http://forum.xda-developers.com/showthread.php?t=514412
regaw_leinad said:
They are in a binary format. I opened them in dreamweaver, and it still wasn't fully readable/able to be edited. you can use this to decode them to readable format, but I have NO CLUE how to get them back.
http://forum.xda-developers.com/showthread.php?t=514412
Click to expand...
Click to collapse
Use the AXMLPrinter2.jar to convert the XML files to a Text Readable format. Unfortunately, to modify the files, you need to use a Hex Editor to do any updates. I havn't seen any utilities that will read/write the binary XMLs, just read.
-Daryel
I haven't had the time to look into this yet, but... Since the lock screen works fine in Darch's AOSP build, could it just be a matter of switching out the xmls?
Just an idea.
thematrixkid17 said:
I haven't had the time to look into this yet, but... Since the lock screen works fine in Darch's AOSP build, could it just be a matter of switching out the xmls?
Just an idea.
Click to expand...
Click to collapse
WOW, if that's all it takes, someone should try it lol
I mean, it couldn't be thaat easy, could it?
Doesn't it work on the Eris leak?
let me see what's there under the eris builds
Well I'm headed to class now, and have to study for a big big test tomorrow later, but I might find time, if someone doesn't beat me to it. Now I'm not all that familiar with the framework, but its just a brainstorm. And if the one in the eris leak works, then that xml probably has an even better chance playing well with the sprint build, I assume.
hey... you can view and edit the xml on the phone with root explorer after you extract them. Then just copy to pc to rezip
also, when rezipping an apk, using 7zip, is there a particular setting? compression level, method, etc.

HD2 US - Facebook icon overlay on contact picture.

When I sync a contact with my facebook account, it downloads a picture from facebook (if i choose that). This is a great functionality, however, it overlays a facebook icon in the bottom left of the contact picture. Is there any way to remove the facebook icon?
Since Windows\FBContacts has the picture without the icon, it must be sense that adds them. Also, SPB Mobile Shell doesn't have the icon.
I scoured the registry and found basically nothing:
HKLM\Software\HTC\HTCMsgEnhance\SupportFacebookIcon
and
HKLM\Software\HTC\HTCMsgEnhance\UseContactAgent
I thought disabling this would help, but it doesn't.
Also, sorry if this has been posted somewhere, i searched but hits for facebook were too many.
Thanks in advance.
I'm sad to say that this little icon is hidden somewhere within the Sense Code, not in the registry.
It may be possible to remove it, but I am no HTC Sense Developer, though there are plenty of them here.
I'd suggest PM'ing meltwater, in my personal opinion, and be sure to tell him that I directed you to him.
that's uncool. But thanks for the info.
I'll just pm him with a link too this thread.
Agent Zach said:
I'm sad to say that this little icon is hidden somewhere within the Sense Code, not in the registry.
It may be possible to remove it, but I am no HTC Sense Developer, though there are plenty of them here.
I'd suggest PM'ing meltwater, in my personal opinion, and be sure to tell him that I directed you to him.
Click to expand...
Click to collapse
Zach is right, it is the sense code which overlays the icon, you can see it happening quite often on the facebook tab.
By the way, the pictures are stored \windows\FBContacts, as it happens working with them at the moment. There's two keys which refer to this location, but interested if they would move the location for fb, not had chance to test.
Back to topic, the overlay will occur in many many places in the sense code, and no reg key is checked in the code (at least not in the sections I've seen) so removing would be a pain. HOWEVER...if you find the icon file used, you can replace it with a totally transparent one and that should do it.
Using the manila kitchen and the m9editor you can browse all the xxxxxxxx_manila files and see all the image files (QTC).
3c71439c_manila icon_facebook_indicator.qtc <-my best guess
66c2d17a_manila icon_facebook_indicator.qtc <-my best guess
5cdf5850_manila facebook_icon_small.qtc <-maybe
0c6d0e94_manila icon_holder.qtc appears to be transparent, might work if you replace the fb icon with that (just copy and rename).
It should work in theory. Have fun!
So, here's a simple solution:
1.) Start Menu
2.) File Explorer
3.) Windows
4.) FBContacts
5.) Copy ALL of the pictures
6.) Paste pictures in another location
7.) Manually set the Contact Pics with the recently moved images
The icon will no longer be visible.
[Yes this is a tedious method, and may take some time to set all of the Contact Pics manually, but hey, the Facebook Icon is gone! ]
Thanks to both of you.
However im not going to use method 2, as it takes way too long.
I'm also new to Cooking, since i got my hd2 a few weeks ago.
Is there a FAQ/Newbies thread i could refer to? Or if not do you think you could post up a 5 minute summary of how to do stuff? i can figure things out pretty quickly but i need some guidelines (is the kitchen a PC app? If so , and i export my ROM, i have to flash it, loosing all my contacts etc?)
surgency said:
Thanks to both of you.
However im not going to use method 2, as it takes way too long.
I'm also new to Cooking, since i got my hd2 a few weeks ago.
Is there a FAQ/Newbies thread i could refer to? Or if not do you think you could post up a 5 minute summary of how to do stuff? i can figure things out pretty quickly but i need some guidelines (is the kitchen a PC app? If so , and i export my ROM, i have to flash it, loosing all my contacts etc?)
Click to expand...
Click to collapse
Have a look through my tutorials may give you a clue.
But you should just be able to replace the files in your windows dir as mentioned (enable your file manager to see system/hidden files). The manila kitchen and the m9editor are the tools I use to look at the files and to find the icons you needed, so hopefully you won't need to do that now.
EDIT: I'm guessing that worked...
Another facebook icon files
I've found another png files in windows directory, which include facebook icons:
FB_Icon_Ph_L.png
FB_Icon_S.png
These files are marked as Read Only and ROM so I can't change or remove them... Using HD2, ROM Elegancia v9.0 WWE
Montsko said:
I've found another png files in windows directory, which include facebook icons:
FB_Icon_Ph_L.png
FB_Icon_S.png
These files are marked as Read Only and ROM so I can't change or remove them... Using HD2, ROM Elegancia v9.0 WWE
Click to expand...
Click to collapse
I'm guessing those files are used by the Microsoft facebook application, sense doesn't often refer to png files directly.
The above files are the most likely ones, since surgency didn't ask for more help, I'm guessing they were the files required.

My Arcsoft MMS extraction tool

This week I finally got around to backing up my text messages and clearing the text message cache on my HTC Touch Pro 2 (Verizon). (my God, it had become slow) I'm running WM 6.1 and it seems that the MMS text messages are stored separately in proprietary ".dat" files in the "MMS UA" folder in My Documents. I searched around xda-dev and couldn't find any way to extract the files contained within. From what I understand, they are referred to as "Arcsoft MMS".
Anyway, the file format is somewhat obfuscated so a true extractor wasn't possible but I was able to produce a tool that could extract all the files out of my .dat files. It is a total hack-job, but there don't seem to be any options. Like I said, I searched around for a few minutes and couldn't find anything else so I am now posting to ask the following:
Does anyone want the tool?
If there is no other extractor out there, I will post it to this thread. Also, anyone who has some Arcsoft MMS files handy that don't contain any private information could help by sending me a copy if the tool can't handle them. With some input, it could possibly become a valuable tool for the community.
Lend me your input.
Thanks
Sounds awesome, please post the tool!
Yes, would appreciate this as well - so many devices and MMS are cluttered among all of them.
Cool. Well here it is guys.
Remember that I couldn't completely discover the proprietary format, and although it works on all of my attachments, it may not work on all of yours. It is easy to update the tool, though, so just message me.
metalliqaz said:
this week i finally got around to backing up my text messages and clearing the text message cache on my htc touch pro 2 (verizon). (my god, it had become slow) i'm running wm 6.1 and it seems that the mms text messages are stored separately in proprietary ".dat" files in the "mms ua" folder in my documents. I searched around xda-dev and couldn't find any way to extract the files contained within. From what i understand, they are referred to as "arcsoft mms".
Anyway, the file format is somewhat obfuscated so a true extractor wasn't possible but i was able to produce a tool that could extract all the files out of my .dat files. It is a total hack-job, but there don't seem to be any options. Like i said, i searched around for a few minutes and couldn't find anything else so i am now posting to ask the following:
Does anyone want the tool?
If there is no other extractor out there, i will post it to this thread. Also, anyone who has some arcsoft mms files handy that don't contain any private information could help by sending me a copy if the tool can't handle them. With some input, it could possibly become a valuable tool for the community.
Lend me your input.
Thanks
Click to expand...
Click to collapse
thanks for this mate...s
Thanks, works - not on all, though. Will check further if there is a common cause for the failing ones.
Improvement proposal:
1.) touch the extracted files with the timestamp of the .dat file
2.) check the content of the smil file in the body section if there are elements supposed to be present. afaik, the .smil is a tag-language which can deliver the MMS content with an appropriate viewer
Thanks for the quick feedback.
Improvement #3... GUI
As for the .smil file, you are absolutely correct. However, the issue is not knowing that there are files present, but finding the boundaries of the data. Arcsoft's binary packed format uses header bytes to describe how data is stored. Unfortunately, even though I was able to determine many of the header fields, without documentation I have no idea what they mean or what others may be used in a given archive. It does seem to depend on what kind of phone sent the MMS. Still, I think you may have a good idea going. I could perform a second pass after extracting the .smil, which is just XML, using file names and a lazy search.
One thing I didn't have on my phone was an MMS containing a movie file. I should try that out...
This is a great tool!
It works under desktop Windows.
How about a tool that can be used in WM itself? Anyone thought of that?

Comprehensive theming links/guides?

I've just kind of gotten into theming a lil bit and I was hoping to find more information. I've checked out the "Ultimate Theming Guide" and many other links and I've got a fairly good idea until you get into the xml (I'm reading up on this now) I was wondering if some of you could save me some google time and post links etc. to useful information. I've already got something to extract, repack and sign apks. I'm mostly looking for the actually theming itself, identifying the portions of the ui to tweak, particular xmls to edit etc. I'm still relatively new to this but if any of you ever played WoW there used to be an addon that would identify the frame/scripts responsible for whatever item you moused over.
jvegastn said:
I've just kind of gotten into theming a lil bit and I was hoping to find more information. I've checked out the "Ultimate Theming Guide" and many other links and I've got a fairly good idea until you get into the xml (I'm reading up on this now) I was wondering if some of you could save me some google time and post links etc. to useful information. I've already got something to extract, repack and sign apks. I'm mostly looking for the actually theming itself, identifying the portions of the ui to tweak, particular xmls to edit etc. I'm still relatively new to this but if any of you ever played WoW there used to be an addon that would identify the frame/scripts responsible for whatever item you moused over.
Click to expand...
Click to collapse
If I werent on my phone I would point you at the link... Search xda for apkmanager. This will allow you to decompile and recompile apk's easily after modifying xml filea. It utilizes apktool (smali and baksmali) to format the xml files to a usable format in a text editor such as notepad or notepad++
One catch with apkmanager is that it doesnt interpret 9.png files correctly. You will need to read tge log to see which of those files catch it up. Then cut these and just dip them back into the finished apk using 7zip. When I get back to my desktop I can look up links and try to post the steps I take.
Sent from my DROIDX using XDA App
Apkmanager is very helpful, I'm looking for more info on what images correspond to what. Quick easy xml alteration with being a code guru. Hope that makes sense.

[Q] I really need some help dealing with image files...

So basically what I am doing is fixing some of this application's code(and I assure that the developer of this app allowed free modification). Currently, this app shows pl_starthere.png for certain time, and apparently is stated as an bitmap file. But I wanted to put animated gif file instead of it.
So I changed the animated file's name into pl_starthere.gif, deleted the original png file, and fixed the file name in the smali file into that gif file. However, it showed me stationary image.
The point is, how can I make it animated? I could probably copy and paste the whole code onto this thread if necessary, but I thought this may be enough for code gurus at xda(and really hope it actually is).
Well, thanks for reading. I would really appreciate any kind of help.
I'm still new to Android myself but from my experience with Windows I know that the program being used to display the image has to be coded to be able to display animated images otherwise it treats them as static. Which means code would have to be added to the app for that.

Categories

Resources