reconstructing rosie.apk for android 2.1 - myTouch 3G, Magic Android Development

http://depositfiles.com/files/aji72anj8
this is the rosie.apk file, i replaced the images needed and i changed a few XML files.
i dont know what im doing, just playing around with things. my goal is to get this bar at the bottom instead of the regular senseui bar
ill upload a screenshot of what this new rosie.apk looks like. its getting there, i just need a little help. eventually im gonna compile this with my custom framework-res, htc.resources, and some other files to create a themed 2.1 rom. any help is appreciated.
the rosie.apk works with sanpeis, ive been testing with his rom using adb push. if anything goes wrong, just push the original rosie.apk from sanpeis rom and itll work again..no worries..

Related

Having trouble theming Rosie.

ok, so I am working on reskinning sense, I'm using DamageControl 2.1 right now and I was able to edit some of the files used in com.htc.resources.apk without problem.
The problem I am having right now is whenever I try and modify a file in rosie, repack and resign and adb push it back to the phone, sense force closes until I revert back to the orginial file, has anyone run into the same issue?
I am going to download the latest framework to see if there might be an issue with signing caused by not having the latest one. I really can't remember which version I'm running.
i give you credit, i wouldn't even attempt to try this on my phone.
Quick question, is there a reason why you're resigning the .apk? There is no need too.
I was under the impression, perhaps uneccesarily, that whenever you modify an apk it needs to be resigned to prevent problems.
I've always done this, I have never had a problem with that practice in the past which is why it perplexed me now. As I already stated, there was no problems when I modified com.HTC.resources.apk
I'm drunk
obelisk79 said:
ok, so I am working on reskinning sense, I'm using DamageControl 2.1 right now and I was able to edit some of the files used in com.htc.resources.apk without problem.
The problem I am having right now is whenever I try and modify a file in rosie, repack and resign and adb push it back to the phone, sense force closes until I revert back to the orginial file, has anyone run into the same issue?
I am going to download the latest framework to see if there might be an issue with signing caused by not having the latest one. I really can't remember which version I'm running.
Click to expand...
Click to collapse
There is images where the name is yadayad08.png, well the number might not be 08 it might be another number and i really dont feel like diggin into it right now, but the images with that number in the end have scripts attatched to the or it written into the image. Have you looked into that. Sorry if I have been %100 clear but ther is images with scripts actually written inside of them......... if you can follow what i'm sayin...:\ I'm drunk......... anyway i'll look into it right now and be back so I dont look like a complete douchebag
So some images have a script stored in the same file? I have never heard of that before. I'd like to see some examples if possible, and how exactly do you modify them?
Time to put my Google-fu to good use.
Edit: whatcha drinking?
The file I am trying to modify is common_mainnav_scroller3.png. maybe that will help. I'm not at my laptop right now, so I am not able to try modifying it without resigning.
I also found some info about the images with scripts attached to them. I have a utility now to modify that stuff, however looking around some more I also think the files with a filename.9.png are the applicable files. I'm not modifying them right now.
obelisk79 said:
The file I am trying to modify is common_mainnav_scroller3.png. maybe that will help. I'm not at my laptop right now, so I am not able to try modifying it without resigning.
I also found some info about the images with scripts attached to them. I have a utility now to modify that stuff, however looking around some more I also think the files with a filename.9.png are the applicable files. I'm not modifying them right now.
Click to expand...
Click to collapse
yea i know forsure the.9 files have scripts attached however if your just changing something as small as an icon I don't think it should matter. Not sure though, i was trying to port a theme and i ran into this situation im not a linux guru so I kind of gave it up
I do not resign the .apk after modifying them If you are only changing images just make sure the new image has the same name and just open the .apk and drag n drop the image into the folder where it needs to be it will over write the old image and store the new one.
I have modified the Rosie.apk and com.htc.resources.apk many times to change things in the taskbar change over to Espresso etc
if you are only changing .png files just drag and drop.
Also like cheyne1 said files or .png's with xxxx.9.png etc in them are more than just .png files and replacing them will cause all sorts of issues if the new file is not made correctly
well, lesson learned... drag-n-drop worked. didn't think rosie apk was going to be so testy. thanks for the help.

[THEME] [HELP] Working on a modded theme, running into problems.

Everything seems to work fine so far, but I've hit a snag.
Here's what happens. I've made some changes to my rom. I'm on modaco's latest, I have theme with the battery percentage mod installed (can't remember which), but everything runs perfectly with no hiccups or hangups.
The problem I'm running into is with the battery icons.
Here's what I do.
1) Pull framework-res.apk from device(to keep my changes)
2) Pull battery icons from framework-res
3) Modify icons
4) Put icons back into framework-res
5) Push framework-res back to device
As soon as I push this back to the device, everything starts force-closing. Phone, gmail, launcher, contacts...everything.
I've made changes like this before and this has never happened. Am I doing something wrong here? Any help would be appreciated. I would like to eventually release this as a theme that people can flash.
try pushing the modded files while in recovery...
..never pushed framework-res.apk.
In recovery sounds good..
But why not makin a morph?..or you could do an update.zip.
i am assuming you rebooted after pushing the new framework-res.apk across?
Did you zipalign before pushing? I know CM zipaligns on boot after changes in recovery but can't remember for stuffed pushed across- i either just zipalign it myself or the easiest and best thing to do is what rori~ said- just make a metamorph- that way when the rom gets updated you dont have to change anything at all (assuming there are no xml changes)..
eg. i have been using the same CM metamorph theme i made since about 5.0.X and it still works on every nightly- i have had tyo remove xml edits etc as CM now does that itself but it makes it all so easy.
instead of using adb, try doing it the easy way with Metamorph. Basically you'll need to create custom pngs with the same name as the ones you want to replace in the framework-res.apk.
So get a copy of your framework-res.apk and rename it to .zip and unzip it. Erase all the folders where you have no custom images to push. You'll prob just end up with some nested folders like "framework-res-->res-->drawable-hdpi" or a similar last folder. Place the custom images in there, then just reuse this attached xml file, making sure to change the pertinent information such as the file structure to be the correct path so the images push to the correct folder when you apply it with Metamorph. Be sure to save the xml file with a reasonable name, then zip the xml and framework-res folder containing your custom images together. Make sure the zip has the same name as the xml file only with .zip extension or you may get an error.
From there install Metamorph. Load the zip you created onto your sd card inside the "android themes" folder. Launch Metamorph, grant su, then "unzip new theme", and "apply all".
Hope this is helpful. A bit longer than I pictured it, but easy to do. If you run into trouble just DL a couple ones other people did and it should become easier to figure out.
^^^ what they said
made life even easier ......
here is a blank framework-res morph drag drop your desired pngs in the drawable-hdpi folder within the zip and morph away
http://www.mediafire.com/file/d1zr12fke13i61l/Framework_res_obama.zip
icegad said:
^^^ what they said
made life even easier ......
here is a blank framework-res morph drag drop your desired pngs in the drawable-hdpi folder within the zip and morph away
http://www.mediafire.com/file/d1zr12fke13i61l/Framework_res_obama.zip
Click to expand...
Click to collapse
Awesome! Thanks a ton! I'll report back my findings...
Sorry, no such luck. Endless force closes and reboots. Bummer. I'll have to sleep on it for a day or two and come back to it.
If anyone has any ideas, please let me know.
If u like u can upload the images and ill try to morph it on my phone and see what causes the fcs if any
icegad said:
If u like u can upload the images and ill try to morph it on my phone and see what causes the fcs if any
Click to expand...
Click to collapse
That would be great, thanks!
morphed the icons onto my phoneno fc or bootloops here
see screenshot....(i have a black status so it maybe hard to see your icons )
only thing i can think of is.... dont know if you were putting your folder within the drawable-hdpi folder that can cause errors..put the standalone images only
and i went ahead and put the icons in the morph you so you can jus morph this zip >>>
http://www.mediafire.com/file/9ldnfsf4t894kz6/Framework_res_obama.zip

Request: Stock Sense Clock Zip...

Hey guys,
I have been trying out a few themes, and now would like to get the stock HTC Sense Weather Clock on top of the theme I have.
Problem is, I cannot find a flashable Zip of that anywhere. The closest thing I found had a transparent background and the stock white flip clock. Can someone please help me get the complete stock clock back that is preferably flashable?
Thank you very much in advance for your help!
Go rip it out of a stock rom.
Thank you for your response. Can you please tell me how I can do that?
Much appreciated Sir...
Sure man.
All roms are, are zips, so just open the zip and take the apk out of system/app/
Then, just adb push it to the system/app/ folder on your phone.
Way easy.
Thanks TJ,
I guess my question, if I were to elaborate more, would have been, exactly what files would I need to restore the clock back?
As in, the HTC Clock apk gonna be enough for me to get the old clock back, as in its appearance?
I am a novice to the Android world, but I would imagine the apk itself might not do much to appearance, but more just the functionality and the logic of the widget.
You are of course more knowledgeable, so can you confirm the files I would need to restore?
Thank you again for your help!
Yea, if you just push the HtcClockWidget.apk to the folder, it'll show up in your widget selection again.
However, the look of it is going to depend on your theme, and how the images in the com.htc.resources.apk are edited, because it has a lot of image files that the htc widgets pull from.

Fresh Espresso UI Bar

Is there any way to just replace the stock Rosie UI Bar(the one with the all apps arrow, phone, and add to home screen buttons) with the Fresh Espresso Bar? I have searched up and down and cannot find anything about how to just get that bar installed on my phone. I just need to know what the files are called and where they are located that control the look of that bottom bar...
Any help would be greatly appreciated.
the files are in com.htc.resources.apk under/res/drawable-hdpi-port or something like that. Can't remember off the top of my head. It's been too long since I've worked with sense.
Try here:
http://forum.xda-developers.com/showthread.php?p=8422987#post8422987
nukedukem said:
the files are in com.htc.resources.apk under/res/drawable-hdpi-port or something like that. Can't remember off the top of my head. It's been too long since I've worked with sense.
Click to expand...
Click to collapse
So I have to edit the ROM I'm flashing then? That was the only place I could find the com.htc.resources.apk file was in a ROM. I was wondering if I could mod my little theme I've been making... I am wondering if I can pull the file through adb and then push the file back onto the phone after I change it...
Yeah pull the files you want to theme from whatever stock ROM you are running. You can pull the file and then theme it and push it back. I wouldn't push it back with the phone running. Do it through recovery if it's a system file.

Flashable themes?

I have built alot of roms and need to make flashable themes for them!
I have tried everything with no avail!
Can i just swap png images from a theme zip already made?
Can i make them with Ubuntu!
I thought it would be easier than roms but it is not so easy!
Need serious help thanks!
And i want to make them without apks for now just images
eVoKINGS said:
I have built alot of roms and need to make flashable themes for them!
I have tried everything with no avail!
Can i just swap png images from a theme zip already made?
Can i make them with Ubuntu!
I thought it would be easier than roms but it is not so easy!
Need serious help thanks!
And i want to make them without apks for now just images
Click to expand...
Click to collapse
I was actually just looking into some of the flashable theme files that were posted for the mikfroyo rom. You could probably just open those and look at whats in there and replace the artwork? Just guessing..
sounds that easy but i did it and no go pissin me off!
Tired of theming whole roms!
Give this a try... this will port png's from one rom to another. you just need to pull the framwork-res.apk and resources.apk from framework from your rom and put it in the "new" folder. and put the same apk's from the theme you want to port in the "old" folder, both under the framework folder with in the "new" and "old" folders. and run the script.... there are also app folders for any themed apps that you want to port also.... same thing with those, yours in the new and the themed ones to port in the old.... Just remember, these are only png ports, you still need to do xml edits if there are any...
this is not my work, found it here on xda a very long time ago and don't remember from who but thanx to him or them......
View attachment Theme-Porter.zip
Okay now I think I know what you're trying to do..
I see your built ROM's with themes and you're basically tired of opening each .apk and putting your images in each one?
You wouldn't use metamorph itself but you would create your theme like you would a metamorph and then download ZipThemer from the market. Point it to that metamorph theme you created and it will create the flashable theme zip for you. It does all the work for you and puts the images in the .apks like you defined. Packages them all up and makes the flashable zip.
It may not sound like its not easy but once you build that initial theme.zip you're pretty much set except for adding or deleting a couple things here and there.
As you know for the most part everything will be in /system/ and have the same .apk name so the theme will continue to work. So if you're building an AOSP ROM after each build all you will have to do is load the rom on your phone and launch zipthemer and have it make the flashable zip you'll give to your users.
Know what I mean?

Categories

Resources