DaSchmarotzer
Blame it on me
After a few queries on how to create an update.zip, I decided to make a quick guide with some basic information. You can use this to make app packages (install a lot of apps from the recovery), theming apks, overwrite system apps, etc.
Ok, so I'm using Windows 7 and this method should also work on XP and Vista. Linux users, you should check here for information on how to sign .apk and .zip files.
I'll take for granted that you already have the SDK and java. You'll need to download this (here is the original thread on XDA).
Open that .zip and copy the content to your SDK's "tools" folder. Please note that there shouldn't be any spaces in the pathname to the SDK. You don't actually have to put it there, but that was Stericson's recommendation.
Alright, before we start using this you need something to sign. I'll take an application as an example. What you can do is install the application from the market, open up Root Explorer, find the .apk, copy it to your SD card, plug the phone to your computer and transfer the .apk. In Galaxo they are located in "/data/app" or "/data/app_s" and it should be something similar for GAOSP.
Now that you have a .apk, you can easily modify its content. You can open a .apk file with programs like winrar, as it is simply a .zip file. So there you can modify or change the images, they are located in /res and then in the different sub-folders.
Now that you want to sign this apk, launch autosign.bat that should be in the tools folder of the SDK. Here's what it looks like:
You'll probably have to set it up before you can use it, so select the first option. All I had to do was to type yes.
Now select the second option. Once again I only had to type yes. (Told you this was easy. )
The third option isn't really needed, however you can select it and see what it is. I typed "no".
Now to the fourth choice. This is what we wanted to do, so select it and you're almost done signing your .apk or .zip (more on that later). You have to write the full path of the file, so that's what I did as you can see on this picture:
Then, if the path was written correctly, you have to confirm, which is what i was about to do:
Alright, you're pretty much done signing the apk. You should see something like this:
From now on, you should only have to select the fourth option if you want to sign something else, a .apk or a .zip.
To create a .zip file that you can apply in the recovery, I suggest you take an existing one and modify it. You'll understand how it is done quickly.
For example, if you want to change the GAOSP launcher, take a look at this .zip file. You never have to change stuff besides the .apks included in the zip files you work on.
When I first started working on themes and stuff like that, I always started from "Back to Galaxo" (or "Back to GAOSP"). If you downlaod it, you'll see that you can add any signed application in the app folder and that the framework-res.apk is the only app that is located somewhere else. So what you can do is delete the framework-res folder, delete the .apks from the app folder and just add your own signed apks there. Please note that without scripts, this will only add apps or overwrite them. You won't be able to uninstall them; you'll have to use root explorer on your phone and delete the .apk. When you are done modifying the .zip file, you have to sign it and then you can apply it from the recovery.
Alright, so this is pretty much everything you need to know. I know it's not such a great guide, but still, it should help you get started.
Ok, so I'm using Windows 7 and this method should also work on XP and Vista. Linux users, you should check here for information on how to sign .apk and .zip files.
I'll take for granted that you already have the SDK and java. You'll need to download this (here is the original thread on XDA).
Open that .zip and copy the content to your SDK's "tools" folder. Please note that there shouldn't be any spaces in the pathname to the SDK. You don't actually have to put it there, but that was Stericson's recommendation.
Alright, before we start using this you need something to sign. I'll take an application as an example. What you can do is install the application from the market, open up Root Explorer, find the .apk, copy it to your SD card, plug the phone to your computer and transfer the .apk. In Galaxo they are located in "/data/app" or "/data/app_s" and it should be something similar for GAOSP.
Now that you have a .apk, you can easily modify its content. You can open a .apk file with programs like winrar, as it is simply a .zip file. So there you can modify or change the images, they are located in /res and then in the different sub-folders.
Now that you want to sign this apk, launch autosign.bat that should be in the tools folder of the SDK. Here's what it looks like:
You'll probably have to set it up before you can use it, so select the first option. All I had to do was to type yes.
Now select the second option. Once again I only had to type yes. (Told you this was easy. )
The third option isn't really needed, however you can select it and see what it is. I typed "no".
Now to the fourth choice. This is what we wanted to do, so select it and you're almost done signing your .apk or .zip (more on that later). You have to write the full path of the file, so that's what I did as you can see on this picture:
Then, if the path was written correctly, you have to confirm, which is what i was about to do:
Alright, you're pretty much done signing the apk. You should see something like this:
From now on, you should only have to select the fourth option if you want to sign something else, a .apk or a .zip.
To create a .zip file that you can apply in the recovery, I suggest you take an existing one and modify it. You'll understand how it is done quickly.
For example, if you want to change the GAOSP launcher, take a look at this .zip file. You never have to change stuff besides the .apks included in the zip files you work on.
When I first started working on themes and stuff like that, I always started from "Back to Galaxo" (or "Back to GAOSP"). If you downlaod it, you'll see that you can add any signed application in the app folder and that the framework-res.apk is the only app that is located somewhere else. So what you can do is delete the framework-res folder, delete the .apks from the app folder and just add your own signed apks there. Please note that without scripts, this will only add apps or overwrite them. You won't be able to uninstall them; you'll have to use root explorer on your phone and delete the .apk. When you are done modifying the .zip file, you have to sign it and then you can apply it from the recovery.
Alright, so this is pretty much everything you need to know. I know it's not such a great guide, but still, it should help you get started.