[Q] Help with XML editing - Android Q&A, Help & Troubleshooting

10 10 10 10 10

11 11 11 11 11

Don't look only in framework-res.apk, look in app and systemui.apk too

Repost.deletion

You are probably further ahead then myself, but I understand the frustration. I cant get the damn apktools to work for me to extract or decompile.i dont know if I have it installed right or what, but I didnt get any help yet. So far what I hear u can just extract system apks with 7zip/winrar if u are just swapping images(pngs)from originals as system apks sign themselves on boot.*Just passing information from what ive read in threads.Maybe u dont have 2 edit xml?Just tryin 2 help.
Sent from my R800a using xda premium

**Read next post**sorry triple posted...?
Sent from my R800a using xda premium

First off there plenty of theme tut threads. Second the blue bar is a .9. PNG not am XML. The second will be in the settings apk. Look at the display XML and that will lead you to it. Next one should not expect a reply mainly when the info is out there to be found aand by trial and error

first off im not an idiot. i know theres a bunch of theme threads. theres also a billion posts. even if i searched for this id have to go thru 100's of posts. dont be an asshole know it all. you can just answer my question and it'd be over with.

glenny buster said:
first off im not an idiot. i know theres a bunch of theme threads. theres also a billion posts. even if i searched for this id have to go thru 100's of posts. dont be an asshole know it all. you can just answer my question and it'd be over with.
Click to expand...
Click to collapse
OK well see here is the thing that image is not in the rom for my device. I only know the where to look from an older device I used to have. Second swearing on the forum is not allowed and yes there is alot of info that needs to be gone over. How do you think we did it. Search and ye shall find
And just to help a little to get the whole bar color changed you will need the framework Res, any device framework file and the contacts apk. Each section is a seperate .9.png that will need to be remade and then run the the tool in the sdk tools.

2.1 Language: XDA is a worldwide community. As a result what is ‘ok’ to say in your part of the world may not be ok in someone else’s part of the world. Please think about who is reading what you write. Keep in mind that what you think of as acceptable use of language may not be acceptable to others. Conversely, while reading member posts, remember that word you find offensive may not be to the writer. Tolerance is a two way street.
first, there is a lot of info in the rules but the word swearing was never included. a quick search and ye shall not find it. and i found your use of language by talking down to me very offensive. its a "two way street" remember.
second, a better way is to decompile the framework in apkmanager, edit the files in gimp/photshop/whatever, compile back with apkmanager. no messing with the 9 patches. but you already know that. because you know everything. senior moderator.
edit:
zelendel said:
Bottom line is people just cant talk to anyone any damn way they feel. This is not a site to make people popular. Hell I dont give a **** how many people use the kernel, rom, mod, or hack. Act like a fool and you deserve to be banned for good. The rules are here for a reason. Either follow them or leave, your chose.
Click to expand...
Click to collapse
did you seriously tell me about swearing? this is right in your sig. practice what you preach son.

cyrusalmighty said:
You are probably further ahead then myself, but I understand the frustration. I cant get the damn apktools to work for me to extract or decompile.i dont know if I have it installed right or what, but I didnt get any help yet. So far what I hear u can just extract system apks with 7zip/winrar if u are just swapping images(pngs)from originals as system apks sign themselves on boot.*Just passing information from what ive read in threads.Maybe u dont have 2 edit xml?Just tryin 2 help.
Sent from my R800a using xda premium
Click to expand...
Click to collapse
try apk manager. take your framework and put it in place-here-for-modding folder. run script. select 22 to set your project, select framework-res.apk. select 9 to decompile, keep the terminal open. the files you want to edit are in the projects folder. if you mess with the .9 png's dont touch the 9 patches on the outsides of the image. also, write down all the files you edit, youre going to need it later. after youre done making all your changes, go back to the terminal and select 11 to compile. if youre editing a system apk select Y when it asks you, then say Y to limit the amount of errors. it will then ask you to delete all the files you edited from the keep folder, the keep folder has all the original files, you want to delete all the files you edited from the keep folder so it can overwrite the originals with the edited ones. if you edited any xml files, delete the resources.arsc file also. after you deleted all the files you edited from the keep folder, go back to the terminal and press any button, it will finish compiling the apk. thats it
edit: i think its called apk multi tool now but i believe its all the same

I appreciate that detailed explanation. I couldnt do anything with the program, because I never hit 22 to set the project in the first step.lol. Now I was successful in decompiling my systemui.apk to swap out files & change colors in statusbar clock/date with another systemui.apk from a theme. I thought I did it right by compiling ,signing it afterwards, & changing permissions as I placed back in system/app folder but It just kept force closing anyways? The files I swapped were Clock.smali-Clock$1.smali & Dateview.smali- Dateview$1.smali. Dont know if these files are only in Sony Ericsson xperia play as this is phone im working with or what. Anyways thanks for helpful advice. Did you get any help with xml? Maybe try posting in phone specific forum?
Sent from my R800a using xda premium

Yes I did post that because people come here thinking they can disrespect anybody they want.
You can go ahead and edit the .9 that way all you want and I will keep an eye out for your next thread. Then ill even help you to show you how to properly edit the .9 or even do what I do and make your own.
I was not talking down to you. Sorry if you took it that way.I was telling to look for the info you needed as it is all here in the threads. Searching and reading is requried before opening a new thread. No spoon feeding here
As for your rule ref it states it right there. "What might be OK for you may not be ok for every one." Swearing is never cool in any civilized place. And no swearing has always been the rules.
Now I pointed you in the right direction. Take or not, your choice. Even if you want come on over to my teams themeing thread in the captivate or the inspire section. There is always great info in those threads.

Related

App isn't fitting screen.

Hello. Im a complete noob and im not sure if im posting in the right section but it seemed like it would be, so here i go.
My rock band app isn't fitting properly on my evo 3d. It works perfecetly control wise and game play. it just doesnt fit my screen and i was wondering if any of you guys no how to make it fit? Ive already tried the spare parts and compadabilty mode thing but no luck. :/ halp?
It isn't an easy fix... It would need the proper coding in the smali and xml of the .apk.
Hopefully the developers of the app are updating to qhd resolution.
Sent from my PG86100 using XDA App
That's another problem. The devs stopped working on this app along time ago. It's not even in the market anymore. :/ is there anyway I can edit the smali and xml?
quarantinedmemory said:
That's another problem. The devs stopped working on this app along time ago. It's not even in the market anymore. :/ is there anyway I can edit the smali and xml?
Click to expand...
Click to collapse
If you decompile it you can but some of the smalis you wont be able to edit because they are read only meaning they are the core java and cant be changed through normal editting. You would have to use eclipse but I dont think you can import an .apk to edit in eclipse (I might be wrong on that).
If you send me the .apk I will look at it but I cant promise anything because me and smalis dont like eachother very much ...
send it to my email. [email protected]
jkrough0728 said:
If you decompile it you can but some of the smalis you wont be able to edit because they are read only meaning they are the core java and cant be changed through normal editting. You would have to use eclipse but I dont think you can import an .apk to edit in eclipse (I might be wrong on that).
If you send me the .apk I will look at it but I cant promise anything because me and smalis dont like eachother very much ...
send it to my email. [email protected]
Click to expand...
Click to collapse
alright, will do. If you cant it's okay. I was just wondering if its possible. And i would like it to fit my screen cause its one of my favorite apps.
Was this ever solved as I have the same issue
If you guys fiXd this app then dont forget to post this updated .apk here....jus for others to benifit...
"SeXxy Virus"
so... bump?

[Q] Editing Phone.apk

Is there something special about editing the images inside phone.apk?
Every time I edit them, it becomes unusable. Thankfully I have many back ups to choose from. I am on the latest leak of Team Perfections Rom. Any help would be appreciated.
Dont know why I even post questions in this area!
Raiderman said:
Dont know why I even post questions in this area!
Click to expand...
Click to collapse
Maybe no one that has read your post has tried to edit that file. I used to do a little theming on HTC devices but haven't tried on a samsung yet. What do you mean by unuseable? That term is very broad. Did you resign the app?
Means it Force closes when making a call. Never sign system apk's. Push them using ADB.
It was the same for me on HTC phones. Hit and miss when editing images inside Phone.apk
Sorry, then I can't help. I always used Auto Sign to sign the apps first. Goodluck.

[Q] Development questions

Hi,
I am slowly getting through the basics of apk decompiling, Editing, Debugging & recompiling.
Using tools like Apk Tool, Winrar, Notepad++ Winmerge, Adb .
first time I have touched an android or even done any kind of stuff like this was Early August 2012. So not long at all, now i have a question to the more experienced Devs. Eg; Lets just say I dont want increasing ringtone How do you pin point where in the apk to start editing i mean there are heaps of files its like looking for a needle in a haystack. One way I came close and pin pointed it is using a previous made mod and then used Winmerge to compare the differences, Problem is the differences in these to Apks is not just the Increasing ringtone, so when I winmerged them it picked out out the other differences Now this deffinatley narrowed it down. I have a feeling it has something to do with the Callnotifier.xml is this the only Xml?
Also Lets just say you dont have another apk to compare it to , how to you find out this stuff..
Another thing is I want to cook up a rom, but the way I want to do it is modding my own rom untill I am happy with it and then creating something like a nandroid without my personal data. then making it flashable for people. What tools is best used for this? I was thinking editing my nandroid and adding it to a cwm flash. but I think there is an easier way.
Thanks for you help

[Q] XML Questions for my apk ...

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!
The links for the buttons are not going to be in the XML files. XML is just going to be the visual stuff, anything that does anything is going to be the java files. I know how to edit XML in apps, but I have no clue how to do smali edits, which is what you'd have to do in order to get the results you want.
Thank you. I have no idea how to edit them yet either! Doesn't mean I can't learn. I've decompiled the classes file to get to the smalis, but that's where I've stopped for now.
Sent from my HTC6435LVW using xda app-developers app

[Q] All of the theme and rom building questions

Hey guys, I have a few questions. I looked around a bit before posting this, but I may have missed some stuff so if I need to remove this thread just let me know that I should have looked harder(and kindly provide a link please).
First I would like to know how to get into "Themeing". I want to know how to change the colors mostly. I can usually find the file I need to edit in order to change the icon shape, but If I'm not mistaken, the colors are probably controlled in an xml file. They may all look for a "central file" that contains the colors, or I may need to change each one individually. If there is a central file could someone help me find out what it is.
I have only found how to edit apps, so here's where I get a major case of the noobs. Are the system colors controlled by the launcher or the theme or is there a UI that can be edited what do I need to do. I want to be able to change the number styles, the fonts of the keyboard, and all that jazz. The most important thing, though; is that I need to be able to change the colors. I really don't have an issue with the current fonts and don't have a good idea what to replace them with anyway.
---------------------------------------------------------------------------------------------
Now that the above train wreck is over I have some harder questions.
I also want to get into developing. I will probably start by modifying someone else's. (side question, could I re-release theirs with my changes just so that people could test it provided I ask and give them credit. I know this depends on the person, but is it taboo, or just a no for some people) I already read through and followed shrike1978's. It was possibly the best thing that could have happened to me. It showed me that it was actually possible to do for someone with less android experience. (link)
But after I have built it what do I need to do to get started modifying it? I'm not even sure what all I want to do, but is there any suggestions of a starter project, as well as a how to do it?(maybe changing the launcher, or something like that)
Also I have been using xfce linux mint on a second hard drive of 75 gigs. Will this be an ok setup? Should I switch to ubuntu although I don't really like it as much?
Should I be s-off or on (maybe on so that I know that they will be supported)? Also is there any good vm's that run in linux and will run android?
I probably missed a few questions that I intended to ask, so I will edit them in when needed.
I plan to make a how to thread on my findings(hopefully good enough shrike gives me a :highfive: for doing a good job) so everyone who helps (provided I actually learn how and am capable of making the how to) will be thanked in my future famous thread
Also I apologize for any miss-types. I will do my best to correct them, but my keyboard is pretty broken (it took a tumble when I moved home for winter break)
I figured out the fonts(at least for the few roms I checked). They are easy to change and add. They are controlled in a system_fonts.xml in the "\system\etc" folder of the rom. The files that they represent are in the "\system\fonts" folder of the rom. The xml file has a pretty good explanation of how it is read, so adding your own should be pretty easy.
If anyone here has any suggestions even if you dont know for sure let me know please.;
Here's some threads I had bookmarked that may help:
http://forum.xda-developers.com/showthread.php?p=16459009
http://forum.xda-developers.com/showthread.php?t=916814
I had another one that I can't find the bookmark for.
feralicious said:
Here's some threads I had bookmarked that may help:
http://forum.xda-developers.com/showthread.php?p=16459009
http://forum.xda-developers.com/showthread.php?t=916814
I had another one that I can't find the bookmark for.
Click to expand...
Click to collapse
You are my hero.

Categories

Resources