yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Themes and Apps] athanos:
Well, it is still running, but there are hundreds of Magick: cannot open file errors and now I am seeing a couple of Error: can't open the input file.

EDIT: It has now completed, but NONE of the .9.pngs were changed. All the other png's were though.
[Hero CDMA Themes and Apps] ASimmons:
Ok I just ran this it it seems to have copied everything even the 9 patch pngs, along with resizing them. I don't have my hero with me, and I only ported the framework since I'm on a very slow computer and I already have about 8 programs open as it is. But from just browsing the files in the framework-res.apk it seems to be fine.

The errors you are seeing are pretty normal.

Did you flash the theme, and this is how you know there are no 9 patch's in it.
[Hero CDMA Themes and Apps] athanos:
The .9's are in it, but they were not changed to the themes .9's. All of th e.9's are still the original rom ones.
[Hero CDMA Themes and Apps] ASimmons:
AOSP Mod with Dark Cherry Injected Framework Only

Try to flash this its only the framework, but as far as I can see it got all the 9 patches from dark cherry.

Take some screenies if you see things that didnt make it, framework only tho.
[Hero CDMA Themes and Apps] InfDaMarvel:
framework0-res.zpk ?Do you mean framekwork-res.apk?

Because thats the only file I see in the themes files.

If so what do you use to open these files up? cmd prompt?
[Hero CDMA Themes and Apps] ASimmons:
Oh yes sorry typo. You can use winzip or winrar or 7zip. Then treat an apk or zip just like a folder. So you can drag and drop files into and out of a zip/ apk replace files and or rename them.
[Hero CDMA Themes and Apps] InfDaMarvel:
Maybe its just jzip on my schools computer but when I open the file I dont see the files your talking about. Ill try when I get home.

I have to set .apk native to opening through winzip/winrar right?
[Hero CDMA Themes and Apps] ASimmons:
yeah just set apks to always open in your preferred zip program. Maybe you could tell what files you do see. first ones in the top level of your theme or rom should be system and meta-inf (there might be others but there not important.

Inside of the system folder you should see (at least) app and framework folders. Then inside framework you should see framework-res.zpk. Inisde this apk is the res folder, which contains a buncha other folders, in your case the theme has -v4 appended to some of them, if you take that off the folder name it should work for you.

This has todo with how I transfer from an hdpi folder to an mdpi folder (technically a bug) and since the folder is named say drawable-hdpi-v4 then it looks for a folder called drawable-mdpi-v4 and that is nt in the mdpi rom, so just remove the -v4 on those hdpi theme's framework-res.apk.
[Hero CDMA Themes and Apps] InfDaMarvel:
Good job, renamed the files and it worked for the most part.

Only thing that remained un-themed from what I see is the 3g icon, and the signal status icon.

Seems like this currently would be a really easy way almost completely(begin to) port a theme, and then u could probably just go in and change what didn't get ported over.
[Hero CDMA Themes and Apps] ASimmons:
What got missed? I'll see if It can be fixed.
[Hero CDMA Themes and Apps] theimpaler747:
Probably .9pngs
[Hero CDMA Themes and Apps] ASimmons:
OK so you can confirm 9 patches got resized? Just not the signal bars.

Well to fix that see if the signal bars are named the same as in the rom, if not change them in the theme same way you changed the -v4 folders.
[Hero CDMA Themes and Apps] ASimmons:
Forgot to say great job. can you post some screenshots?
[Hero CDMA Themes and Apps] InfDaMarvel:
The 3g singal icons and the radio signal icon were not the ones that belonged in the theme so I believe. They were the ones that were already part of the rom from what Im guessing.

I already restored my phone and what not so I cant post any pic. Maybe ill do it tomorrow if need be, im too sick atm.

and I tried to attach the file but its not happening.
[Hero CDMA Themes and Apps] norm12:
Don't have the time to post screenshots, but Dark-Froyo for the Nexus 1 can be ported over to MDPI and the 129 nightly (just did it) the original theme can be found http://xdaforums.com/showthread.php?t=783977 smoked-glass theme for shadow-rom from droidforums.net also works. http://www.droidforums.net/forum/shadowrom/86125-smoked-glass-theme-shadowrom-v0-2-1-d.html ASimmons, this is a great tool and I know its not done yet, but its working out great. I'll try to post pics tomorrow afternoon or some other time.
[Hero CDMA Themes and Apps] ASimmons:
I guess not.

Oh ok maybe tomorrow then.

Awesome that dark froyo look awesome, can't wait to see the screens. Thanks for this. I might cut the dev off on this and move this to a gui, was thinking of a personal theme kitchen. So with java I'd be able to accomplish more stuff and it would be more flexible.
[Hero CDMA Themes and Apps] foreman31:
Does this work on hdpi? I have Motorola Milestone 1 and tried to port a theme.

rom.zip and theme.zip showed up as well as a folder called theme and then 20 minutes later the command prompt closed and the 2 zips and the theme folder dissapeared!?

If it succeeded, where is the themed rom?
[Hero CDMA Themes and Apps] theimpaler747:
It should work in hdpi....

Sent from my hero running froyo... take that Sprint!
[Hero CDMA Themes and Apps] ASimmons:
The folders you see popup are temporary working directories created when the changes take place. The file output comes up in the same folder and it will be called themed-<yourromsname>.zip, this will be the flashable.

So first did you install image magick? Its needed to do the hdpi to mdpi resizing. Since its closing out and not producing the final output I would suspect its error on the image magick stuff.
[Hero CDMA Themes and Apps] Cetus Corr:
Can someone give me an example of what the path to java should be, I can't get mine to work. I followed the instructions on the first post, but still cant get my finished roms to be signed. Here is what I have:

C:\Program Files\Java\jre6;%JAVA_HOME%\bin
[Hero CDMA Themes and Apps] ASimmons:
Ok did you make a JAVA_HOME variable also.

Your path is might be wrong.

make one system variable called JAVA_HOME and the value of that will be this "C:\Program Files\Java\jre6". Now go to the system variable path and add this to the end of that variable ";%JAVA_HOME%\bin". Now if you type java -version in a cmd it should tell you the version. Think of the variable as shortcuts to the program for a command prompt, so if you went in and type \Program Files\Java\jre6\bin\java -version youd get the same thing. The variable in the path makes you not have to type it all out.
[Hero CDMA Themes and Apps] dburg84:
Just want to say thanks to the dev of this. I love this script! I don't know if I'll ever be able to go two days without flashing a new theme!:D
[Hero CDMA Themes and Apps] ASimmons:
Great this is the exact reason I made it.
[Hero CDMA Themes and Apps] norm12:
just a couple of quick shots---basically everything from Dark Froyo got ported over. The lockscreen controls are invisble, but they are the standard AOSP sliders. The keyboard has no delineation of keys, but its the same keyboard. I'm really loving the icons in the status bar though
[Hero CDMA Themes and Apps] ASimmons:
So that was and hdpi theme? So the 9 path shrinking seems to be working? That theme kinda reminds me of the darkedge theme.
[Hero CDMA Themes and Apps] norm12:
the original post on xda said it was a hdpi theme and that's what I ran it as. yeah, it doesn't look distorted or otherwise tweaked. I just wanted something darker with different icons that were simple/not flashy, but not the same old same old
[Hero CDMA Themes and Apps] ASimmons:
Ok yeah its an n1 thread. So just looking at the theme, I can see it a good candidate for the hdpi port, and you probably won't any distortion.

I'm looking into make a gui for this (doing some research on it), it would make the program way more flexible and you could then literally build a theme on the fly, port themes like now and not have to worry about dir structure or framework differences (for the most part).
[Hero CDMA Themes and Apps] socalsfinest93:
Ha I can't believe that this actually worked...I was able to port konikubs detoxblues theme to NFX Stock .7 and everything seems to be working

Edit: the only problem is that the notification text is white on white which is why there is no clock and the phone is aligned wrong
[Hero CDMA Themes and Apps] ASimmons:
That is awesome. Can you post some screens.

Surprised no ones asked how I shrink 9 patches, or is it obvious?
[Hero CDMA Themes and Apps] theimpaler747:
Nice, porting sense themes :D
[Hero CDMA Themes and Apps] cdiddy11:
This might be a stupid question, but does this only work for Hero themes/ROMs? I'm trying it with Moment theme/ROM and after it extracted a bunch of files and did stuff it finally stopped after everything is ok, files 834, size, compressed, and a flashing cursor.
[Hero CDMA Themes and Apps] theimpaler747:
Thais should work for any phone's theme :)
[Hero CDMA Themes and Apps] InfDaMarvel:
http://androidforums.com/droid-roms/172574-theme-pack-bugless-theme-collection.html#post1555235

ported to syndicate rom using your theme injector.

Okay you'll notice that the 3g icons and signal icons don't match. This was the same thing that happened when I was trying to port in elegant steel.

I tried a new theme because elegant steel was just recently ported for the epic, my device.

screenshots:
[Hero CDMA Themes and Apps] foreman31:
I still can`t get it to work, installed image magick but still no themed zip
[Hero CDMA Themes and Apps] ASimmons:
Thanks for the screenies looks great, the white on white text is most likely an xml edit that needs to be done. I might try and adress problems like this in the next version.

This will work for any phone, rom and most themes. This script can take up to an hour to run, and when its done it will close itself out. If you seeing it sit on the everything is ok screen then its still running, just allow it to finish.

Ok i'll look into why those particular icons don't get ported.

First are you letting it run all the way threw? Can you post links to the theme and rom your try to inject? If it is running all the way threw how long does it take?
[Hero CDMA Themes and Apps] cordell12:
I got to thinking and I was only trying to port a cm6 theme to a updated version of cm6, extremely blue NOV 16. So what I did was just take the framework.res from the theme and replace it inside the rom, didnt work and got boot looped :( I then took the whole framework folder and replaced in the rom, BINGO! ;) Now did I just revert the NOV 16 extremely blue back to the 10-28 release of cm6.1, or did I just change images and keep the updates from the nightlies jaybob pushes into cm6.1?
[Hero CDMA Themes and Apps] ASimmons:
More than likely you just reverted back. Since the injector only deals with pngs, it won't over write things that change from version to version in cm6. So by copying the framework folder from the theme (old version of cm6) to the newest night it is most likely just copying over the nightly changes.

My script does the same thing you did but it only copies the pngs over. So alot of themes have the framework-res.apk in them and in there you see a resource.arsc file this is a compiled version of all the frameworks xmls. This will change from nightly to night along with other stuff.

Before your in the clear make sure that other programs aren't fc'ing, sense there are alot of other programs that depend on the framework-res.apk.
[Hero CDMA Themes and Apps] cdiddy11:
Thanks Asimmons. It worked. It sat there appearing to do nothing for a very long time, then finally started up again and finished. I didn't time it, but I started it at the beginning of an NBA game last night and it sat on "Everything is ok" for 1 1/2 quarters and finally started finishing.

So, anyone using it and getting to "Everything is ok", just let it run, it will finish eventually. :D
[Hero CDMA Themes and Apps] ASimmons:
Great post some screenies for us!

You know it will run for a long time on bigger roms, and its very resource intensive and I have had a report of someones laptop overheating.

So the funny thing is I just burnt out a motherboard about 2 weeks ago. It was about the same time as I was running this program non stop. So I have an after market gtx sli card and it barely fits in the case, and its been fine for over a year. Now I know that when my computer was doing long operations it was overheating my board (stupid card was right over the mobo chip), and I think the program did it.
[Hero CDMA Themes and Apps] eugene300:
people, please, help me!

who can combine this theme and this ROM (nonsensikal v13.2 BlackandBlue)

I did not get, verification not compete at flash.
[Hero CDMA Themes and Apps] ASimmons:
Thats because it didn't get signed properly, so more than likely java is not in your system path.

Type java -version in a command prompt. If it errors then you don't have it in the path, so check the op for setting java system path up.

So its ported it just needs to be signed.
[Hero CDMA Themes and Apps] eugene300:
java must be installed on my PC? JRE or something?
[Hero CDMA Themes and Apps] ASimmons:
yes only need the jre unless you would also like to compile java, then you get the jdk (which has a jre inside it). Most windows computers already have java installed in c:\programs files\java\jre<version>\bin.

If you already have it just add the system path.
[Hero CDMA Themes and Apps] cordell12:
Nothing is FC yet, knock on wood! My about phone says Nov 16th version, I know that's just build prop though. I was thinking all I was swapping was images :( o'well

Thanks
[Hero CDMA Themes and Apps] eugene300:
I have C:\Program Files\Java\jre6\bin.

How to add the system path ?
[Hero CDMA Themes and Apps] ASimmons:
yeah build.prop changed cause you copied that over with the framework folder.

JAVA system path:

Its needed for the signer to work properly goto a command prompt and type in java -version. if you get and error back java is not in your classpath and needs to be.

just right click on my computer, then goto properties, then click on the advanced tab, at the bottom click on the "Environment Variable" button.

Now click on the new button... the one on the bottom for system variable and put in this

variable name: JAVA_HOME

variable value: C:\Program Files\Java\jre6

Now click ok and select the path system variable and then click edit. IMPORTANT only append to the end of the value this... ;%JAVA_HOME%\bin

then click ok and ok out of all those windows and open a new command prompt and type java -version you should get no error if you do your path to java was wrong follow the steps above again and make sure the path is correct.
[Hero CDMA Themes and Apps] eugene300:
ok, thanks, will try..
[Hero CDMA Themes and Apps] socalsfinest93:
I decided just to use the black one
[Hero CDMA Themes and Apps] foreman31:
I am letting it run all the way, if I choose y for hdpi to mdpi it will give a rom_9patch.zip which makes my Milestone stuck at M logo.

If I choose n, which I want really, it finishes without result.

The rom I have on my Milestone is update 15

http://code.google.com/p/cyanogenmod4milestone/downloads/list

and the theme I would like to port is for cyanogen from this page:

http://www.droidforums.net/forum/dr...d-theme-files-thread-non-discussion-area.html

928Droid "Black Glass" 2.2 for Froyo

Just swapping selected apk`s from that rom into my Milestone works and manually swapping the images from the framework works too but getting your injector to work would be the easiest way to go

edit: y takes nearly an hour and n takes about 20 mins
[Hero CDMA Themes and Apps] ASimmons:
Niice.

OK so the 9patch rom.zip is temporary, when it finishes you should see a new zip called themed-yourromname.zip this will be the flashable.

Since you aren't getting this it's erroring. Did you install image Magick? How long is it running for? Let the program run till it closes its self out.

ahhh but my way also optimizes all the pngs, zipaligns the apk, signs everything. Did I mention it also will resize hdpi 9 patch pngs to mdpi size?

I made this script a while back cause I hated copying the pngs manually when a new rom came out (but I wanted the same theme). Its all ways better to automate something that why build process can be controlled and refined, it also removes the human element of error.
[Hero CDMA Themes and Apps] cordell12:
Well since you told me to check for FC I get one on Browser, and the Calendar for some reason has the image of the USB Connected android guy right smack in the middle of it :eek: The one where his arm is raised up and his hand becomes a USB connector, LOL. I frickin give up, the theme wins :mad:

Thanks for the help
[Hero CDMA Themes and Apps] eugene300:
it's working!!!!
[Hero CDMA Themes and Apps] ASimmons:
great post screenies, and tell us what theme you ported and to what rom you ported it to.
[Hero CDMA Themes and Apps] eugene300:
upload, later...

Rom is one - Nonsensikal 13.2, CM 6.1, Froyo 2.2.1

but I want to port some themes, tomorrow will upload screens with the best theme...
[Hero CDMA Themes and Apps] foreman31:
Yes image magick is installed and the 9patchrom.zip is as far as it got.

When the cmd prompt closes that should be it ay?

The Milestone is a hdpi device, does that bamke any difference
[Hero CDMA Themes and Apps] ASimmons:
Ok so it sounds like its having issues with the path or dir structure. Try this...

Does the theme have the same file structure as the rom ie... meta-inf and system/app and syste/framework folders in the top level. If not change the theme around to have that file structure (move the files around in the theme's zip).

And if it is an hdpi device to an mdpi rom then just answer y for the hdpi to mdpi when you run the script.

edit:

Foreman this is the link to the cm6 black glass (hdpi). Use this theme against the rom you posted earlier and you should be good to go. Make sure you put .zip on the end of the names when the script asks for them.
[Hero CDMA Themes and Apps] cdiddy11:
The .pngs were too big to upload here for some reason, so I put them on Picasa. I'm not authorize to post hyperlinks, so I guess copy paste this to get to the gallery.

picasaweb.google.com/CDiddy11/Theme#5541038466844040866

Thanks again for your help Asimmons!
[Hero CDMA Themes and Apps] cdiddy11:
Just wanted to add that I injected DE03BlueDark theme from the SDX Custom Kitchen into the noobnl Radioactive Froyo ROM for DJ07. Samsung Moment.
[Hero CDMA Themes and Apps] ASimmons:
Thanks Ill post them. Looks great by the way.

CDiddy11 Theme port
[Hero CDMA Themes and Apps] jtpterp:
Ported the following http://www.droidforums.net/forum/droid-themes/57629-red-glass-theme-ud-froyo-extreme.html

Battery and Signal Icons are a bit blurry but other than that turned out great.
[Hero CDMA Themes and Apps] ASimmons:
That looks great, the next version I will work on a better shrinking formula, so that the smaller icons don't blur as much.
[Hero CDMA Themes and Apps] cordell12:
Thinking about what you said when replacing the whole Framework file I am reverting back to cm6.1, more thinking on how when I manually change all png files in the new extremely blue rom with the themed png's, how the menu_submenu's and other various things do not take the themed effect.

Hmmmm :confused:

What I did now is use BlackMod Nov 16th as my base rom, see BlackMod has the deep colored, shiny submenu's ;) SO, I swapped everything manually again... 1 hour later I was flashing my new BlackModded Galaxy S themed rom. Did it work? Hell Yeah it did! :D I am convinced that something is controlling the layout of these png's that go unchanged in the extremely blue rom, it has to be some sort of XML file. When comparing the png's for the submenu, extremely blue one and themed one they look exactly the same! BUT they display differently...

IDK, what I do know though is I got what I wanted :) It may have taken a loooong time, and a lot of this and that too! My question is now that I have a working themed rom what can I do to make this thing a flashable zip. So when a new BlackMod is released rather than go through and edit it I can flash my theme I made?

Thanks :)
[Hero CDMA Themes and Apps] ASimmons:
Yep it just needs to be flashed, and if you hold onto that one you just made you can use it to inject later on into other roms.

So to make it a flashable look at my sig post and then goto the one click signer. This will ask the name of the zip or apk you want to sign and then do it for you. just make sure that when you go into the meta-inf folder and drill into the com/google folder that you have and update-script (this should be in here already).

Good job, I promise that next version will be sooo much easier to use.
[Hero CDMA Themes and Apps] dburg84:
Just ported the Luna theme

http://www.droidforums.net/forum/icculusx/81753-theme-luna-theme-lithium.html

For CM6 Nightly 131. This script is awesome. I know this has probably been asked more than once, but I tried to look through the thread...could you point me in the direction of studying the programming language made for this? I used to play with VB, C, and Java years ago...maybe one day I'll be able to contribute sooner or later!

Anyway here are some screens...just a few colors are off.
[Hero CDMA Themes and Apps] ASimmons:
Honestly this is written in widows cmd scripting, the next version will be in Java. I do use several other utilities like apktool, 7zip and image magick. I'm honestly not great at it either and the scripting gets annoying after while. I'm use to having more control with what I can do.

I'd be willing to answer questions about cmd and scripting or the script itself.

Thanks or the screens looks great.
[Hero CDMA Themes and Apps] theimpaler747:
Looks good, but the icons are way to small in the notification bar IMHO :D
[Hero CDMA Themes and Apps] dburg84:
Thats because I prefer 140 dpi
[Hero CDMA Themes and Apps] theimpaler747:
As do I :) just looks smaller than normal for some reason in the picture

Sent from my hero running froyo... take that Sprint!
[Hero CDMA Themes and Apps] dburg84:
Yeah I think ASimmons is working on it. Some icons do blur a bit. Still loving the script! Using it now to port your silver theme to the 137 nightly as I type! ;)
[Hero CDMA Themes and Apps] theimpaler747:
Cool cool, glad you like impaled silver ;)

Sent from my hero running froyo... take that Sprint!
[Hero CDMA Themes and Apps] spiritcrusher33:
lol didnt think bout that..

good question..
[Hero CDMA Themes and Apps] ASimmons:
wow, that sucks... what theme and rom are you doing? I have a steel my elegance themed dd2.8. Ill post it if you want.
[Hero CDMA Themes and Apps] spiritcrusher33:
lol ya.. post it.. cause thats the theme I was gunning for. I love it. but dd2.8 has been my fav rom... and it WAS. made for cm6..etc.

thanks in advance...
[Hero CDMA Themes and Apps] ASimmons:
lol Ohhh I hope you aren't canceling thats 7zip telling you its done updating the rom but it still needs to do other stuff still has to sign it. If you double click it it should run and when its done it will close its self out.

Yes wait for it to finish it takes a second to sign a rom maybe a minute or less.
[Hero CDMA Themes and Apps] jtpterp:
alright. I got a final product, I was just be impatient didn't give it enough time to run.

flashing now will report back in a minute.
[Hero CDMA Themes and Apps] ehac1680:
I just ran it and it worked just fine for me. It takes a little bit after it says Everything is OK, Maybe change the message so people don't think it's done at that point?
[Hero CDMA Themes and Apps] ASimmons:
Awesome glad to hear.... can't change that I know of its part of 7zip and the way it shows progress.

Edit ok I got an idea I put some stuff in about not closing out and to wait. Thanks for the input.
[Hero CDMA Themes and Apps] spiritcrusher33:
rotflmao thats was prolly my problem too.

but u can still post the steel my el.. for me. lol