Signing .zip files - Click Android Development

As the titel says i want to try to add a sign key for my own boot image, just to mix something together, but everytime i try, it moves everything into a folder called the same as the folder name... it even creates a META-INF... but if i sign one exsisting rom, it does the same!
what do i do wrong?

I can only tell you how I do it:
I first extract the ROM i want to modify into a separate folder (let's call it ROM). So the folder structure in ROM looks like this:
Code:
2.041.856 boot.img
<DIR> data
<DIR> META-INF
<DIR> system
Now I modify what I have to modify and then I delete the following files:
Code:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
Now I go into the folder ROM again, select every file and folder and zip it into an archive file. I assume u have already the signapk.jar (which can be used also to sign update.zip files). The syntax is:
Code:
[B]java -jar .\signapk.jar .\testkey.x509.pem .\testkey.pk8 .\update.zip .\signed-update.zip[/B]
Then wait a little bit and it should become a fully flashable signed zip archive...hope this helps...

TheSSJ said:
I can only tell you how I do it:
I first extract the ROM i want to modify into a separate folder (let's call it ROM). So the folder structure in ROM looks like this:
Code:
2.041.856 boot.img
<DIR> data
<DIR> META-INF
<DIR> system
Now I modify what I have to modify and then I delete the following files:
Code:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
Now I go into the folder ROM again, select every file and folder and zip it into an archive file. I assume u have already the signapk.jar (which can be used also to sign update.zip files). The syntax is:
Code:
[B]java -jar .\signapk.jar .\testkey.x509.pem .\testkey.pk8 .\update.zip .\signed-update.zip[/B]
Then wait a little bit and it should become a fully flashable signed zip archive...hope this helps...
Click to expand...
Click to collapse
thats where i dont get it xD what do i zip, and how? all folders clustered into one?
or how do i do it? xD
i really want to know how! >.<

I think I expressed myself very clearly but here are screenies (have a look at the current directory):
Step1
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step2
Step3
Step4
Step5
If you don't get this, noone can help you

worked! weeee! xD now i just need to learn to add/remove apps and i'm flying!

Test Sign also works... Where the frig did my copy go?!

Related

How do you edit Quick Launch icons? xml is read only

I want to edit my quick launch xml to point to different apps but the xml file is read only. I was able to copy it over to my pc and edit it, but I cannot copy it back. It says I do not have permission to replace the existing file or delete it. Any help?
htcoveblue said:
I want to edit my quick launch xml to point to different apps but the xml file is read only. I was able to copy it over to my pc and edit it, but I cannot copy it back. It says I do not have permission to replace the existing file or delete it. Any help?
Click to expand...
Click to collapse
You need another file explorer then the default one.
Resco Explorer or Total Commander for example.
With that you can overwrite it.
Where is this quicklaunch xml file located?
Its in the \Windows folder. Ive also posted a similar thread to this. I posted the xml's as well
You can edit xml files with notebook or word,but before click right on xml file then property and uncheck "read only".After you could edit and save your settings.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have no problem copying the xmls and editing them on my computer. I just can't copy them back. I tried putting them on my Storage Card and then using Resco Explorer to copy them to my Windows folder. It doesn't give me any error, but it doesn't actually replace the file either. I tried deleting the file first in Resco Explorer but it says the file is in Rom and cannot be deleted. Is there another way I haven't tried?
Don't forget to uncheck the plugin before copying files in windows folder.
Uncheck what plugin? The Read-Only property? I uncheck it, but when I hit properties, it's checked again.
the quick launcher must be unchecked in today/items before copying xml files in windows folder
htcoveblue said:
I want to edit my quick launch xml to point to different apps but the xml file is read only. I was able to copy it over to my pc and edit it, but I cannot copy it back. It says I do not have permission to replace the existing file or delete it. Any help?
Click to expand...
Click to collapse
On my vista machine I had to untick the 'Hidden' tick for me to copy the file back to my tytn as I was getting the same error.

Installing applications (i am noob)

Hi, everyone I have one question about applications who have files like this
and I don't know how to install them? i was trying to find this, about 4 hours,,, please help
Its been explained over and over before. Copy the cab`s to your device and run them from the phone. By that I mean the two files who are ending on: .cab The other files in that folder you got by extracting the cab which does not work like that. You need a app like WinCE CAB manager to edit them.
man I still don't get it i can't run eny of these files please write me how exactly i will install apps like that please man please
Shaggy007 said:
man I still don't get it i can't run eny of these files please write me how exactly i will install apps like that please man please
Click to expand...
Click to collapse
They are not .cab files, they are .rar files. Copy the .rar files to your phone and un-zip them with pocket rar. And then just click on the resulting cab files and they will self install.
http://www.pocketpcfreewares.com/en/index.php?soft=820
You done something strange here, I bet you have tried to rename the file? I can see one is ending on .cab while the other doesnt. This means the one you renamed is now called vmvistacab.cab.cab
Download the file, if its packed then extract. Copy the cab (not the .zip or other) to youre phone. Use File Explorer or other and navigate to the place you stored the cab and run it by opening it. Problem here is that you cant separate the cab and .zip cause you have hidden the extension of the files like .zip and .cab Fix this by going to folder options and tick "Hide file extension for known file types" (open a folder then click alt then you can find folder option).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
No raiisak, I think the folder is named wmvista.cab after he unzips it. What he neds to do is unzip the original zip file. Then he needs to open the folder and find wmvista.cab and copy it to his phone. He then needs to run the cab file.
MarkanthonY said:
No raiisak, I think the folder is named wmvista.cab after he unzips it. What he neds to do is unzip the original zip file. Then he needs to open the folder and find wmvista.cab and copy it to his phone. He then needs to run the cab file.
Click to expand...
Click to collapse
Not if he choose extract here.... And its not even certain he downloaded a .zip
I think I remember the file he downloaded. I believe it was a zip. It was in the following thread:
http://forum.xda-developers.com/showthread.php?t=474919
The mediafire link leads to a download named: wmVistaCAB.CAB.zip so when it is unzipped, it gives a folder named wmVistaCAB.CAB. The CAB is inside the folder. I was also going to install to test it but it is still not complete. The clock does not update, it is just still picture. It looks nice though.

[BOOT ANIMATION / SHUT DOWN ANIMATION] Nexus S Alternate Colors

I replaced the Google RGBY colors with alternate hues.
NOTE: you need to extract this file.
Inside you'll find your bootanimation.zip and the "shutdown" folder:
Copy the "shutdown" folder into your /system/media/video folder.(Delete or backup the original shutdown folder)
Copy the bootanimation.zip into your system/media folder
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
everytime i try to place a boot animation in system/media i get an error, i was told to mount in r/w so i used sgs tools script but that didnt work.
ksimilie said:
everytime i try to place a boot animation in system/media i get an error, i was told to mount in r/w so i used sgs tools script but that didnt work.
Click to expand...
Click to collapse
use root explorer, makes things way easier
I keep getting an error that there isn't enough room
Sorry if the instructions were unclear.
You will have to make the /system/ folder Read/Write before you can make any changes, then change it back to Read Only again when you are finished.
In Root Explorer, look at the upper right-hand corner and you will see a grey button with "Mount R/W", click the button and it will change to "Mount R/O". Now it will allow you to make changes...
Using Root Explorer, navigate to your system/media/ folder and copy bootanimation.zip there. Then move to system/media/video/. Backup or delete the current shutdown folder, then copy the new shutdown folder there...
When you are done copying the files into the /system/ folder, click the "Mount R/O" button and you're done.
AtariBorn said:
Sorry if the instructions were unclear.
You will have to make the /system/ folder Read/Write before you can make any changes, then change it back to Read Only again when you are finished.
In Root Explorer, look at the upper right-hand corner and you will see a grey button with "Mount R/W", click the button and it will change to "Mount R/O". Now it will allow you to make changes...
Using Root Explorer, navigate to your system/media/ folder and copy bootanimation.zip there. Then move to system/media/video/. Backup or delete the current shutdown folder, then copy the new shutdown folder there...
When you are done copying the files into the /system/ folder, click the "Mount R/O" button and you're done.
Click to expand...
Click to collapse
it says:
Paste Failure
There was not enough free disk space to complete the past operation.
Please note that the free space displayed by Root Explorer (as reported by linux) is not always 100% accurate.
*Edit: In my settings, I have 12.1gb available on my internal
AtariBorn said:
I replaced the Google RGBY colors with alternate hues.
NOTE: you need to extract this file.
Inside you'll find your bootanimation.zip and the "shutdown" folder:
Copy the "shutdown" folder into your /system/media/video folder.(Delete or backup the original shutdown folder)
Copy the bootanimation.zip into your system/media folder
Click to expand...
Click to collapse
is there a Nexus Boot animation that is bigger??

[Bootanimation] NyanCat!!

Hi everybody
This is my first bootanimation,so please be patient
Sreenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Video:
http://www.youtube.com/watch?v=QH2-TGUlwu4
(the bootanimation is without sound )
how to install:
1. copy the bootanimation.zip into SD card.
2. go to all apps > root explorer > system > media > and you will see a bootanimation.zip
3. press PASTE and your new bootanimation.zip will replace it.
ore just push it trough ADB to /system/media
enjoy!
lol, this is fantastic!
thanks for the animation! honestly I dont want nyannyannyan on my phone but it got me a cool idea for a personal boot animation, however I can not install it: when trying to paste it to "system\media " folder with root explorer I got this message: "you cannot paste here because the file system is ready only"
phone is rooted but still on stock rom, any ideas where do i go wrong?
anyways, nyannyannyan nyannyan...
topanyel said:
thanks for the animation! honestly I dont want nyannyannyan on my phone but it got me a cool idea for a personal boot animation, however I can not install it: when trying to paste it to "system\media " folder with root explorer I got this message: "you cannot paste here because the file system is ready only"
phone is rooted but still on stock rom, any ideas where do i go wrong?
anyways, nyannyannyan nyannyan...
Click to expand...
Click to collapse
If you have root explorer you should be able to just paste it right in. All you need to do is mount the sd as R/W. To do this just click on the R/W button at the top right hand side of root explorer. After pasting it I think you need to change the permission of the zip file as well to let the system access it. You can also do this with root explore.
I'm new on XDA so please press the THANKS button if I was any help. I need at least one thanks to look a bit respectable in this forum.
Giiar said:
If you have root explorer you should be able to just paste it right in. All you need to do is mount the sd as R/W. To do this just click on the R/W button at the top right hand side of root explorer. After pasting it I think you need to change the permission of the zip file as well to let the system access it. You can also do this with root explore.
I'm new on XDA so please press the THANKS button if I was any help. I need at least one thanks to look a bit respectable in this forum.
Click to expand...
Click to collapse
your answer is correct sir! (its not necessary to change zips permission, they should be fine allready)
@topanyel, remember to NOT COMPRESS your zip folder with the bootanimation in it, else it will not work.
topanyel said:
thanks for the animation! honestly I dont want nyannyannyan on my phone but it got me a cool idea for a personal boot animation, however I can not install it: when trying to paste it to "system\media " folder with root explorer I got this message: "you cannot paste here because the file system is ready only"
phone is rooted but still on stock rom, any ideas where do i go wrong?
anyways, nyannyannyan nyannyan...
Click to expand...
Click to collapse
i realy like the part where its says nyan!

[GUIDE] File format/location changes w/ MIUI v4 photoframe widget (and other themes)

So after searching the intarwebz for considerably longer than should have been necessary, I decided to write this up, hoping it might save someone else some time with this.
First of all, I really liked this one photoframe mod called StickyTape. After a while of searching (and a dozen or two dead download links later), I finally found a working link, only to see the MIUI theme manager not recognize it. Long story shot, it came down to two issues.
1) the mtz was in the wrong folder. For previous releases, I found somewhat conflicting info. One source said the photoframe should go in /sdcard/MIUI/gadget/. Another said it should go in /sdcard/MIUI/gadget/photo_frame. I also read sources that said the archive should be extracted into that folder, and others that said not to extract it. Both are wrong.
2) format of the files in the mtz was incorrect.
Here's how it works now.
1) For many of the current photoframe mods you might come across, the file structure will be pretty much the same. If you download an .mtz file, rename it to a .zip file. Then extract the contents of that zip file. (If you use 7zip, you should be able to right-click it and extract it using the 7zip options in the context menu without renaming the file extension.)
The files in this archive are always the same.
image.png
frame.png
filter.png
description.xml
a folder named "preview" with an image preview for the mod. for the photoframe, it will be one or both of these:
preview_photo_frame_big_0.png
preview_photo_frame_small_0.png
The problem is that many of the mods you currently may come across, will not have the files compressed. It will look like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2)What's different now is that the preview folder and xml file are not compressed, but the 3 images must be bundled into a zip file called "photoframe_2x2", where the 2x2 part changes, depending on whether it's a 2x2, 2x4, or 4x4 photoframe. Regardless of what frame it is, that is always the file name. The mtz that it's in, will tell you which one it is. This is true of other theme mtz files now as well. The content must be compressed in a zip file (with the .zip extension removed).
3) after you have extracted the images and made the changes you want to make, select the 3 images, right-click and select "Add to Archive." I'll continue with the StickyTape as my example:
For Archive Format, select zip. For compression method, I don't know if it matters, but I chose "Store." The default option is "Normal."
4) Once you have created the zip file, rename it by removing the ".zip" from the end of the file name. If it's not already names "photoframe_2x2" or whatever size it is, then do that as well. When you get a warning about changing the extension possibly making the file unusable, just tell Windows to shut up.
5) Now you should have 3 items. The preview folder, the description.xml file, and the photoframe zip archive that does not have a .zip file extension. For the description.xml file, it contains the following:
Code:
<?xml version="1.0" encoding="utf-8"?>
<photo_frame>
<!-- t: hxw 1: 1x2 2: 2x2 8: 4x4 -->
<type>2</type>
<title>StickyTape2x2</title>
<version>0</version>
<platformVersion>0</platformVersion>
</photo_frame>
The only thing you will need to change is the "type" option and the title. As indicated by the line above it, enter type "1" if it's a 1x2, "2" for a 2x2, etc.
Also, give the mod a name on the title line.
6) Now you'll do the same thing as you did in step 4 with these 3 items. Highlight all 3, right-click and "add to archive" and select zip.:
7) rename the zip file by changing the file extension from ".zip" to ".mtz"
8) Copy the mtz to /sdcard/MIUI/theme. the /MIUI/gadget folder is not used. On some builds (like the unofficial port for my Skyrocket) the location is /emmc/MIUI/theme as /emmc is the internal sdcard while /sdcard or /mnt/sdcard is the external sdcard. Now, just add a widget and select the frame you added and enjoy.
link for the StickyTape2x2 mtz:
https://www.dropbox.com/s/mhbfu390alhzb4d/StickyTape2x2.mtz

Categories

Resources