Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
steveboss
Old
(Last edited by steveboss; 23rd May 2012 at 08:11 AM.) Reason: add pictures
#11  
steveboss's Avatar
Senior Member
Thanks Meter 461
Posts: 276
Join Date: Apr 2012
Location: Bratislava

 
DONATE TO ME
Quote:
Originally Posted by itiskonrad View Post
***Editing XML's***

3.) Find and edit the XML you want!

Now that it's been decompiled, the XML will be magically readable with Notepad++ (before decompiling, opening XML's with a hex editor produces gibberish. Now, you can actually read the text of it!). In this case, the XML we want to edit is here:

C:\Contacts\res\layout-finger\contacts_list_item_top_search_att.xml
Hi, I have a problem, I can not correctly open the XML files from ROM. I want to edit the file primary_text_dark.xml of framework-res \ res \ I can not see it correctly. Help me please, the XML files from ROM, I can not correctly open and edit in any xml editor. What is the trick?
example
https://lh5.googleusercontent.com/-M...520%252014.jpg
The Following User Says Thank You to steveboss For This Useful Post: [ Click to Expand ]
 
itiskonrad
Old
#12  
Senior Member - OP
Thanks Meter 175
Posts: 238
Join Date: Dec 2009
What you are looking at is a non-decompiled xml that is unreadable. You need to first decompile the apk which carries the xml you want to edit in order for it to be readable. You first have to complete steps 1 and 2 and decompile framework-res.apk as described in the guide in order to get a readable primary_text_dark.xml.
The Following 2 Users Say Thank You to itiskonrad For This Useful Post: [ Click to Expand ]
 
steveboss
Old
#13  
steveboss's Avatar
Senior Member
Thanks Meter 461
Posts: 276
Join Date: Apr 2012
Location: Bratislava

 
DONATE TO ME
Thank you for your advice.
 
JSSł
Old
#14  
JSSł's Avatar
Junior Member
Thanks Meter 11
Posts: 18
Join Date: Jul 2011
Location: Porto Alegre - RS
Default Error...

Hello everyone!
Dude, thanks for the post. It is very clear!

I have a question. I did everything step by step to decompile the framework-res and edit it, but when I try to recompile it, the APK folder created inside the new folder BUILD is empty.

What can have happened?

(translation via Google Translate)
 
itiskonrad
Old
#15  
Senior Member - OP
Thanks Meter 175
Posts: 238
Join Date: Dec 2009
Hmm, not sure. Try decompiling and recompiling immediately after without making any changes, just to make sure the commands are working. If that doesn't work, maybe there's something wrong with the commands? For example, I know it sounds stupid, but make sure to recompile, you're typing
apktool b framework-res
NOT
apktool b framework-res.apk
The Following User Says Thank You to itiskonrad For This Useful Post: [ Click to Expand ]
 
JSSł
Old
#16  
JSSł's Avatar
Junior Member
Thanks Meter 11
Posts: 18
Join Date: Jul 2011
Location: Porto Alegre - RS
Thank you Itiskonrad!

Yes, the commands are working. Decompiled and compiled again without changes, and everything went well.
I realized that change depending on what I do when this error occurs. Now I'm changing slowly and has not worked.

The strange thing is that I do not see the changes on the device. My intention is to change the entire text of the notifications in order to use a black theme in my status bar.
I made a theme based on UotKitchen and I'm improving, but notifications such as downloads and ongoing calls persist with the font color black, which makes their visibility.

I will continue testing until something works!
Big hug!

(translation via Google Translate)
 
FlintPNZ
Old
#17  
Member
Thanks Meter 14
Posts: 59
Join Date: Mar 2012
Location: Penza
itiskonrad,
Do you use an ICS leak? Could you please modify status bar apk and remove carrier from there?
2001: Nokia 3310 => 2006: Sony Ericsson K800i => 2007: Toshiba G900 => 2010: iPhone 3g 8gb => 2010: iPhone 4 32gb => 2012: LG Nitro HD
 
sluny
Old
#18  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Mar 2010
Shouldn't be the final APK zipaligned?
 
GtianY
Old
#19  
Junior Member
Thanks Meter 0
Posts: 17
Join Date: Apr 2012
Thanks, great

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...