Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Dyonas
Old
#1  
Senior Member - OP
Thanks Meter 20
Posts: 687
Join Date: Jul 2009
Default Wasting lots of time and getting nowhere!

I managed to somehow stumble through a few minor edits in the Launcher.apk by relying purely on colour replacement tools but that was messy and I tried to be more accurate and do something that works and looks how I want. Unfortunately it doesn't seem to matter what I do now on any .apk PNGs they don't work. I resign them when I'm done, push to my phone and nada. It either fails to load or half loads then throws up a ton of acore FCs so clearly I'm doing something wrong. Perhaps someone here can point out what I'm doing wrong if I list what I do.

unzip .apk and find image to edit.
Pull image into Photoshop
Change image as needed / wanted
Save file (I haven't touched any .9s yet)
zip the lot back up, rename to .apk and sign
Push file back to phone, reboot.

I've tried pushing the file while in recovery and while it's been running, neither makes a difference and I have little enough hair without resorting to pull it out :| I did just notice in another thread where Ted mentions using Paint.NET to pry open those damned indexed files. I'm going to look at that but earlier if it was indexed I ended up opening it then manually cleaning it up before making sure it was indexed when I saved it again.

That's about it. If anyone can offer insight into the cause I'd be most appreciative
 
NguyenHuu
Old
#2  
NguyenHuu's Avatar
Senior Member
Thanks Meter 106
Posts: 1,650
Join Date: Nov 2007
Location: Northern California

 
DONATE TO ME
try not resigning individual apks (system apks). After you edit them, zip them back up. put them back into the update.zip that it came from and resign the update.zip and reflash. that should work.
 
freekyfrogy
Old
#3  
freekyfrogy's Avatar
Senior Member
Thanks Meter 18
Posts: 361
Join Date: Aug 2009
Location: Virginia
Yeah what I do is unpack the theme/ROM with the .apk I want to edit. Then I unpack the .apk, go into the folder and edit the images I need, then zip the contents of the folder back into a .apk (make sure you zip the contents, not the folder they are in) and replace the current .apk with mine. Then I re-zip the theme/ROM and resign it. it's a long and arduous process, but it works
Make sure to click the "Thanks" button if you like what I do! It helps my ego

As of 4/1/2013:

Current Phone: Galaxy Nexus
ROM: Paranoid Android

Current Tablet: Asus TransformerTF300
ROM: Paranoid Android


follow me on twitter and I'll give you a cookie!

Donate here if you feel the urge, help me to have a soda during my class breaks haha.
 
david1171
Old
#4  
Senior Member
Thanks Meter 157
Posts: 3,202
Join Date: Apr 2009

 
DONATE TO ME
i use 7-zip, extract the folders i want to edit from the archive, delete all of the .xml's out of it (since they can break something between versions sometimes) then edit my images, go back to the .zip or .apk file (7-zip will open either extension) go to the folder with the images i edited, then drag my images into it.

i never actually never unzip an entire zip or apk and rezip it when i am done. it is rather quick and easy. just make sure that you click ok when it ask you to update the archive.
Device: Nexus S 4G
ROM: CM7
CM7 Theme Engine: MinimalBread
App Mod: Demotivators Protips Widget
My Icon Sets: Minimalist and Minimal
Twitter: david1171_
Google Chrome Theme: Minimalist
PayPal: If you would like to donate
 
brandenk
Old
#5  
brandenk's Avatar
Senior Member
Thanks Meter 37
Posts: 1,117
Join Date: Aug 2007
Location: San Diego
Quote:
Originally Posted by david1171 View Post
i use 7-zip, extract the folders i want to edit from the archive, delete all of the .xml's out of it (since they can break something between versions sometimes) then edit my images, go back to the .zip or .apk file (7-zip will open either extension) go to the folder with the images i edited, then drag my images into it.

i never actually never unzip an entire zip or apk and rezip it when i am done. it is rather quick and easy. just make sure that you click ok when it ask you to update the archive.
Hes got the solution..........its the way ive done it from day 1, and 7-zip FTW.
Samsung GS3 ← Evo 3D ← Evo 4G ← Nexus One ← MyTouch ← G1 ← HTC TyTN
 
david1171
Old
#6  
Senior Member
Thanks Meter 157
Posts: 3,202
Join Date: Apr 2009

 
DONATE TO ME
Quote:
Originally Posted by brandenk View Post
Hes got the solution..........its the way ive done it from day 1, and 7-zip FTW.
well i got it from a certain post you made on how you made themed quickly and easily
Device: Nexus S 4G
ROM: CM7
CM7 Theme Engine: MinimalBread
App Mod: Demotivators Protips Widget
My Icon Sets: Minimalist and Minimal
Twitter: david1171_
Google Chrome Theme: Minimalist
PayPal: If you would like to donate
 
Dyonas
Old
#7  
Senior Member - OP
Thanks Meter 20
Posts: 687
Join Date: Jul 2009
Thanks for all the replies I've been a fan of 7-zip for a while, glad to see I'm not alone there! From the sound of it all the re-signing might be the cause so I'll give the method david suggested a whirl!

Are there any major things to avoid? For example, I noticed a lot of the icons don't take the full size of the image like the 3G notification icon or the satellite notification icon. Is it safe to go the full size or will that cause a horrible mess? I don't quite see why the images have so much space around them basically and want to use some of those extra pixels lol
 
Stericson
Old
#8  
Stericson's Avatar
Retired Senior Mod / Elite Recognized Developer - Godfather of Android Theming
Thanks Meter 346
Posts: 1,187
Join Date: Nov 2008
Hey about using metamorph bud? much easier to do then what your doing

Check it out.

www.RelentlessAddictions.com/android

http://forum.xda-developers.com/showthread.php?t=589315

Stericson
Want to know what I've been up to lately? Click here


 
RichieDaze
Old
#9  
RichieDaze's Avatar
Senior Member
Thanks Meter 126
Posts: 477
Join Date: Jan 2009
Location: New York City

 
DONATE TO ME
If your on windows, its simpler not to unzip the .apk or .zip. Since the begining, there have been problems with the way windows zips files. It seems the way Linux and windows zips files are some what different. There may lie your problem. Simply drag the folder on to your desktop, edit the pngs, then drag the folder back on to the .apk inside the .zip. I also agree with the above statements. Sign the whole zip as one instead of each one independably. You can also erase any apk or jar archive not being editing to make your update smaller and faster to load...
Also, most .apk's are universal, meaning they can be used in any rom. Some are not! Meaning they will break the system. Examples are framework, launcher...
 
Dyonas
Old
(Last edited by Dyonas; 26th November 2009 at 01:14 AM.) Reason: Success!
#10  
Senior Member - OP
Thanks Meter 20
Posts: 687
Join Date: Jul 2009
Quote:
Originally Posted by Stericson View Post
Hey about using metamorph bud? much easier to do then what your doing

Check it out.

www.RelentlessAddictions.com/android

http://forum.xda-developers.com/showthread.php?t=589315

Stericson
I thought about it for simple recolours but this is me trying to teach myself what works and what doesn't before I attempt to make myself a theme. I'm still going to have a look at metamorph though so thanks for the links Stericson.

Quick edit to note that using Paint.NET to change lots of bits in framework-res.apk worked Now I can have a little rest before I tackle things like Launcher and others. Out of all the programs to open indexed PNGs I would've thought Photoshop would do it. I only own Elements but the trial version of CS4 still opened them as corrupt. Strange stuff!

 
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...