There are several ways to install applications or library files to an Android Phone. You can use Market application to find and install or adb command line tool to install or push the files to Android file system. These are all easy to implement for single file but if you have several applications or library files to install at once, it might be better to use update zip file. The update zip file is Android advanced system to install applications or lib files to Android file system using recovery tool. This method is commonly used by rom or theme developers to distribute their package.
Creating an update zip file is quite easy, all you have to do is put the files in corresponding directory in Android file system and an update-script file to copy the files. For example, to install Calculator.apk into system/app and copy libsec-ril.so file into system/lib :
- Create an empty folder (eg. C:\myupdate)
- Create C:\myupdate\system\app folder for Calculator.apk and C:\myupdate\system\lib folder for libsec-ril.so
- Create C:\myupdate\META-INF\com\google\android folder for update-script file.
- Create the update-script file with the following syntax:
show_progress 0.1 0 copy_dir PACKAGE:system SYSTEM: show_progress 0.1 10
Line 1&5 : show progress bar
Line 3: copy system folder from update package to Android’s /system
Note: you should add one extra line at the end of the file (Line 6)
java -jar signapk.jar certificate.pem key.pk8 myupdate.zip update.zip
Note: you can find tutorial on how to sign the update.zip file here
update-script syntax reference (definitions from recovery.c android source code):
Syntax: copy_dir <src-dir> <dst-dir> [<timestamp>]
Copy the contents of <src-dir> to <dst-dir>. The original contents of <dst-dir> are preserved unless something in <src-dir> overwrote them.
Ex: copy_dir PACKAGE:system SYSTEM:
Syntax: format <root>
Format a partiti0n
Ex: format SYSTEM:, will format entire /system . Note: formatting erases data irreversibly.
Syntax: delete <file1> [… <fileN>]
EX: delete SYSTEM:app/Calculator.apk, will delete Calculator.apk from system/app directory.
Syntax: delete_recursive <file-or-dir1> [… <file-or-dirN>]
Delete a file or directory with all of it’s contents recursively
Ex: delete_recursive DATA:dalvik-cache, will delete /data/dalvik-cache directory with all of it’s contents
Syntax: run_program <program-file> [<args> …]
Run an external program included in the update package.
Ex: run_program PACKAGE:install_busybox.sh, will run install_busybox.sh script (shell command) included in the update package.
Syntax: set_perm <uid> <gid> <mode> <path> [… <pathN>]
Set ownership and permission of single file or entire directory trees, like ‘chmod’, ‘chown’, and ‘chgrp’ all in one
Ex: set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh
Syntax: set_perm_recursive <uid> <gid> <dir-mode> <file-moe> <path> [… <pathN>]
Set ownership and permission of a directory with all of it’s contents recursively
Ex: set_perm_recursive 0 0 0755 0644 SYSTEM:app
Syntax: show_progress <fraction> <duration>
Use of the on-screen progress meter for the next operation, automatically advancing the meter over <duration> seconds (or more rapidly if the actual rate of progress can be determined).
Ex: show_progress 0.1 0
Syntax: symlink <link-target> <link-path>
Create a symlink (like ‘ln-s’). The <link-path> is in root:path format, but <link-target> is
for the target filesystem (and may be relative)
Definition of roots and partitions (from root.c android source code)
ROOT: (Linux block device) /mountpoint/ fs, size Description. BOOT: (/dev/mtdblock[?]) / (RAM) Raw Kernel, ramdisk and boot config. DATA: (/dev/mtdblock5) /data/ yaffs2, 91904kb User, system config, app config, and apps (without a2sd) CACHE: (/dev/mtdblock4) /cache/ yaffs2, 30720kb OTA cache, Recovery/update config and temp MISC: (/dev/mtdblock[?]) N/A Raw [TODO: Get info on MISC:] PACKAGE: (Relative to package file) N/A Pseudo-filesystem for update package. RECOVERY: (/dev/mtdblock[?]) / (RAM) Raw, [?]kb The recovery and update environment's kernel and ramdisk. Similar to BOOT:. SDCARD: (/dev/mmcblk0(p1)) /sdcard/ fat32, 32MB-32GB The microSD card. Update zip is usually here. SYSTEM: (/dev/mtdblock3) /system/ yaffs2, 92160kb The OS partition, static and read-only. TMP: /tmp/ in RAM Standard Linux temporary directory. Cleared on poweroff/reboot.by
hi, its work.. But why i cant do the show_progress? It take very long long time..
i have this error
error in update scripte
Ken Kinder says
Hey man, thanks for the instructions. For what it’s worth, this worked perfectly for me in modifying an official update from Google; the only catch was, I deleted Google’s certificates in the zip file before trying to sign my own.
Radii Corporate Low says
Good check list, I am running through it with my sites now .
ghd website says
Great article. I have to use more of these ideas. Thanks.
ghd straightener says
Thank for your post, i really love it. I will come again.
de laptop akkuneu says
n Development How to Sign Android APK or Zip Files | All About Web & Mobile Application Development […]
first of all – thanks for the post – is great
my problem, with recovery 3e it does not accept these signed update.zip the only message is “installation aborted”.
seems to open and read the update.zip if i enter “show_progress 0.1 50000” it tooks more time to display the message.
any hints ? thankyou, greez from BR
hw: hero h6 china phone
Adi Martha says
sama…disini juga kena Instalation Aborted setelah nambah key. kenapa ya?
apa karena ga cocok sama versi ClockWorkMod nya? 🙂
[b][url=http://www.drdrebeatsfrancepaschere.com/monster-beats-solo-haute-performance-on-ear-blanc-p-80.html]Monster Beats Solo Haute Performance On Ear Blanc[/url][/b], Monster Beats Solo Haute Performance On Ear Blanc
[b][url=http://www.drdrebeatsfrancepaschere.com/nouveau-monster-tour-beats-p-74.html]Nouveau Monster Tour Beats[/url][/b], Nouveau Monster Tour Beats
[b][url=http://www.drdrebeatsfrancepaschere.com/casque-by-dr-dre-monster-powerbeats-in-ear-noir-p-72.html]Casque by dr dre Monster Powerbeats in ear noir[/url][/b], Casque by dr dre Monster Powerbeats in ear noir
[b][url=http://www.drdrebeatsfrancepaschere.com/monster-tour-beats-haute-resolution-in-ear-noir-p-71.html]Monster Tour Beats Haute Resolution In Ear Noir[/url][/b], Monster Tour Beats Haute Resolution In Ear Noir
[b][url=http://www.drdrebeatsfrancepaschere.com/monster-beats-kobe-bryant-edition-limitee-on-ear-jaune-p-70.html]Monster Beats Kobe Bryant Edition Limitee On Ear Jaune[/url][/b], Monster Beats Kobe Bryant Edition Limitee On Ear Jaune
[b][url=http://www.drdrebeatsfrancepaschere.com/casque-by-dr-dre-monster-powerbeats-in-ear-blanc-p-69.html]Casque by dr dre Monster Powerbeats in ear blanc[/url][/b], Casque by dr dre Monster Powerbeats in ear blanc
[b][url=http://www.drdrebeatsfrancepaschere.com/monster-tour-beats-haute-resolution-in-ear-blanc-p-68.html]Monster Tour Beats Haute Resolution In Ear Blanc[/url][/b], Monster Tour Beats Haute Resolution In Ear Blanc
[b][url=http://www.drdrebeatsfrancepaschere.com/monster-beats-dre-studio-lamborghini-edition-limitee-p-67.html]Monster Beats Dre Studio Lamborghini Edition Limitee[/url][/b], Monster Beats Dre Studio Lamborghini Edition Limitee
[b][url=http://www.drdrebeatsfrancepaschere.com/casque-beats-studio-studio-maserati-on-ear-p-66.html]Casque Beats Studio Studio Maserati On Ear[/url][/b], Casque Beats Studio Studio Maserati On Ear
[b][url=http://www.drdrebeatsfrancepaschere.com/just-beats-haute-performance-in-ear-violet-p-65.html]Just Beats Haute Performance In Ear Violet[/url][/b], Just Beats Haute Performance In Ear Violet
What is body parts modeling?Limbs modeling is just like ordinary modeling, but instead of using your face to do the work, you use your other body parts to perform the work. This is a pretty fun way to get modeling jobs, as you simply need a part of your body that looks sufficiently good to model. For example, if your hand is smooth and clear, it’s easy to get that hand to get a task for print ads. If you’d like to get moving as this type of model, it is rather possible to do so, and all you’ll need is a good agency.Getting startedWhen producing this type of modeling, you want to join or perhaps a part of an agency that works specifically with limbs modeling. Instead of going to a normal modeling agency, you may not find the right job in the end. So, it’s essential to be a bit extra careful when finding a professional. If you already know a few, try asking them if they can supply for you boost part modeling jobs. This will help yield go sees for those wonderful body parts of yours. First, try to identify what it is that you think is most attractive about your body -: legs, feet, muscles, hands, ears, toes, knees. By being aware looks the best, you can find an agency that will help you to get the most jobs possible.Just how much can I earn?On average, there are good chances that you can get paid up to an ordinary model. It’s hard to convey exactly how much you can earn, as you can get jobs related to prints ads or commercials. So, advertised . does depend upon you and choice . job is going to pay high.Produce a portfolioTry getting a photographer to help create some head shots for the portfolio. In your portfolio, try capturing pictures of all the best body parts which you have. Try to only choose a few parts and earn the rest of your photos your entire face and look. Remember that it’s very rare to acquire these kinds of jobs, but it’s very easy to get several go sees all year long if your agency really pushes you to the industry. It’s more about connections, so really look for an agency that personally loves.As a body parts model, you will need to keep looking good. The fact is, there’s one hand model who makes millions annually and she never puts her hands in sunshine, so she really manages her hands. As for you, put those body parts looking good be it your abs, feet, legs, or ears, look after them as best as you can. In the end, you can receive tons of go sees. It’s actually very nice to be a body part model since face isn’t seen, complete could be a great way to model for anybody who are a bit shy.
[b][url=http://www.michaelkorseurope.com/michael-michael-kors-coffee-hamilton-large-tote-p-18.html]MICHAEL Michael Kors Coffee Hamilton Large Tote[/url][/b], MICHAEL Michael Kors Coffee Hamilton Large Tote
[b][url=http://www.michaelkorseurope.com/cheap-michael-kors-side-goldendetails-brown-handbag-p-19.html]Cheap Michael Kors Side Golden-Details Brown Handbag[/url][/b], Cheap Michael Kors Side Golden-Details Brown Handbag
[b][url=http://www.michaelkorseurope.com/michael-kors-logo-print-light-black-p-20.html]Michael Kors Logo Print Light Black[/url][/b], Michael Kors Logo Print Light Black
[b][url=http://www.michaelkorseurope.com/michael-michael-kors-red-medium-hamilton-chain-leather-satchel-p-36.html]MICHAEL Michael Kors Red Medium Hamilton Chain Leather Satchel[/url][/b], MICHAEL Michael Kors Red Medium Hamilton Chain Leather Satchel
[b][url=http://www.michaelkorseurope.com/michael-kors-new-advanced-leather-orange-wallet-p-35.html]Michael Kors New Advanced Leather Orange Wallet[/url][/b], Michael Kors New Advanced Leather Orange Wallet
[b][url=http://www.michaelkorseurope.com/michael-kors-grayson-white-large-satchel-p-34.html]Michael Kors Grayson White Large Satchel[/url][/b], Michael Kors Grayson White Large Satchel
[b][url=http://www.michaelkorseurope.com/michael-kor-brown-classic-embossed-shoulder-bags-p-33.html]Michael Kor Brown Classic Embossed Shoulder Bags[/url][/b], Michael Kor Brown Classic Embossed Shoulder Bags
[b][url=http://www.michaelkorseurope.com/michael-kors-shoulder-print-logo-tote-bags-white-p-32.html]Michael Kors Shoulder Print Logo Tote Bags White[/url][/b], Michael Kors Shoulder Print Logo Tote Bags White
[b][url=http://www.michaelkorseurope.com/michael-michael-kors-orange-medium-hamilton-satchel-p-31.html]MICHAEL Michael Kors Orange Medium Hamilton Satchel[/url][/b], MICHAEL Michael Kors Orange Medium Hamilton Satchel
[b][url=http://www.michaelkorseurope.com/michael-kors-jet-set-black-leather-logo-white-tote-p-30.html]Michael Kors Jet Set Black Leather Logo White Tote[/url][/b], Michael Kors Jet Set Black Leather Logo White Tote
Although the number of women in engineering is increasing, the growth has been modest in comparison with other careers. That’s because despite the fact that girls have the smarts, should they don’t take the required math and science in secondary school, engineering school is a far reach. As a group, girls get less science and math training. That’s where women engineers help.Through programs like Girl Scout Engineers, women engineers show ladies math and science is fun and challenging. The ladies are amazing. They have brilliance and technical ability an awesome experience. So many have a natural inclination to the maths and sciences, so it is often straightforward to get young girls interested in engineering topics. But studies signify that unless we reach girls because of the 5th or 6th grade, they will not get the courses needed in secondary school. That’s why programs that reach girls and women are so important..The activities familiar with demonstrate hands-on engineering are teams tasks like building a circuit, puff vehicle relay race, ship-a-chip packaging and designing simple machines. When teams design and create something, they get a peek at what it is like to be an engineer. The exact end product is destroyed to discover its durability, but that’s section of the process and often the most exciting part. Whether or not it’s robot wars, egg catapults or ship-a chip packaging, ultimately survival rate says it all. Engineers of both genders like controlled destruction!Engineers get this world a better and safer place. With the tallest building to the deepest well, from clothes to furniture, each product of man has been designed, manufactured and improved by an engineer. Often women choose engineering given that they love technology and want to help people. That excitement and sensation of purpose is easily transferred to generation x of female engineers.Women bring an original dynamic to engineering, maintaining be more nurturing and involving. Women are communications experts, continuously talking about what is seen, thought and felt. Females remember the smallest of details, sometimes for decades. And circular thinking complements linear thinking.So encourage your daughters and sisters to educate yourself regarding math, science and technology. And there has to be female scientist or engineer to produce the inspiration!
[b][url=http://www.moncler-europe.com/moncler-womens-zipper-wind-coats-khaki-p-306.html]Moncler Womens Zipper Wind Coats Khaki[/url][/b], Moncler Womens Zipper Wind Coats Khaki
[b][url=http://www.moncler-europe.com/moncler-womens-logo-down-vest-red-p-307.html]Moncler Womens Logo Down Vest Red[/url][/b], Moncler Womens Logo Down Vest Red
[b][url=http://www.moncler-europe.com/moncler-womens-trench-down-coats-bronze-p-308.html]Moncler Womens Trench Down Coats Bronze[/url][/b], Moncler Womens Trench Down Coats Bronze
[b][url=http://www.moncler-europe.com/moncler-womens-new-design-charmed-jackets-rosybrown-p-309.html]Moncler Womens New Design Charmed Jackets RosyBrown[/url][/b], Moncler Womens New Design Charmed Jackets RosyBrown
[b][url=http://www.moncler-europe.com/moncler-womens-quincy-logo-jackets-blueviolet-p-281.html]Moncler Womens Quincy Logo Jackets BlueViolet[/url][/b], Moncler Womens Quincy Logo Jackets BlueViolet
[b][url=http://www.moncler-europe.com/moncler-womens-gypse-jackets-black-p-280.html]Moncler Womens Gypse Jackets Black[/url][/b], Moncler Womens Gypse Jackets Black
[b][url=http://www.moncler-europe.com/moncler-womens-grillon-shiny-jackets-teal-p-252.html]Moncler Womens Grillon Shiny Jackets Teal[/url][/b], Moncler Womens Grillon Shiny Jackets Teal
[b][url=http://www.moncler-europe.com/moncler-womens-maillol-coat-shiny-black-p-253.html]Moncler Womens Maillol Coat Shiny Black[/url][/b], Moncler Womens Maillol Coat Shiny Black
[b][url=http://www.moncler-europe.com/moncler-womens-fashion-casual-sweater-gery-p-254.html]Moncler Womens Fashion Casual Sweater Gery[/url][/b], Moncler Womens Fashion Casual Sweater Gery
[b][url=http://www.moncler-europe.com/moncler-womens-cool-belt-style-jackets-chocolate-p-255.html]Moncler Womens Cool Belt Style Jackets Chocolate[/url][/b], Moncler Womens Cool Belt Style Jackets Chocolate
There are different ways for you to raise your breast naturally and safely. There is an best breast enhancement pill and there’s breast enhancement cream. The best way for you to gain the breast size you’d like is to combine the pills along with the cream with a good exercise program that may be right for you. The ingredient use within these pills are safe and also effective. Some of the active ingredients are: Pueraria Mirifica Extract – 10%, Red Clover Extract – .5% & Sepilift® – 1% .The components in the pills are all natural what are made from plants. These pills works on the inside of your breast and that is what causes your breast to become firm. If you feel like there has been numerous breast shape and size, because you have just stood a baby or you are getting older, breast implant pills can work for you. The pills can be a great benefit to your health also.After using pill and applying the cream for a couple months you will see and experience the difference in your breast. Your breast will probably be much more firmer and feel smoother compared to they use too. Taking the pill and utilizing the cream at the same time a very good idea, as a matter of fact most companies combine them together being a breast enhancement program.Pills for breast implants do not effect every woman much the same way. You are different than every other woman, so do not expect the same results as other people. Women with bigger breast could see a difference sooner than a woman with smaller breast or it simply might be the other way around. You must see a positive change in your breast with in a few months. Some where between three too six months should be long enough to see a change.Before taking the pills or other medications check with you doctor. Adhere to the instruction according to the products recommendation. If you think you are pregnant or if you are pregnant contact your doctor. Do not mix the pills with some other medication unless your doctor says it truly is OK to do so.There are a lot of ladies who have tried risky, high cost surgery procedures and treatments to get bigger breast and didn’t get the results they wanted. These people were left mad and very disappointed as the procedure did not go as plan. The top breast enhancement pill is a all-natural breast enhancer that produces results.
The link was useful..
But from ICS onwards the recovery file checks for a update-binary & updater-script..
It uses the same function with different syntax…
Check this link too : http://fokke.org/site/content/howto-create-android-updatezip-package
If you have bought an iPhone 5 from local store or an online shop, it will come with some of the basic accessories like USB cable, battery, polish cloth and possibly a phone case. However, after several days you will realize the necessity of some additional accessories. These accessories are very essential and helpful to improve the performance of iPhone 5. Therefore, it is necessary and important to follow the latest trends and choose the best accessories for iPhone 5 at anytime.
You should make a clear blue print of the items that are necessary for iPhone 5 before going to buy any accessories. And you can seek help from the Internet to know more about the different types of accessories that are available in the market. It is also important for you to make a list of such accessories that are necessary. For example, you can go for a Bluetooth with headset as it is a basic necessity of any iPhone 5.
You can replace those standard original setups with the latest ones if you do not like them, or you can upgrade them. You will get more and better choices for these trendy devices. The phone’s dual clock will be one of your necessary accessories to set your Bluetooth. You can look for spare chargers and car holders if you love to drive and always drive. You should also get the accessories such as screen shield, cover or case to protect iPhone 5 from being damaged.
Selecting the right case for iPhone 5 is very much important part. Manufacturers of the cases nowadays are now coming up with more advanced designs with several colors and features. These cases are available according to your need and style. You can get a lot of options for selecting a case or more.
Whether you bought your iPhone 5 from an online store or local store, it doesn’t matters, and what you should remember is that you should buy those [url=http://iphone-5-accessories.webs.com/]iPhone 5 Accessories[/url] from Apple store directly. In this way, you can make sure that the accessories you get are compatible with iPhone 5 you bought and they are of highest quality. You can also find special and unique logos saying “works with iPhone 5” on the pack of these accessories, which ensure that they will be very much compatible with all the devices of iPhone 5 so as to work well with it. And moreover, they have been certified by the Apple.
Many sellers suggest the accessories of iPhone 5 for customers to use them with the iPhone 5. However, most of the devices of iPhone 5 do not work with your iPhone 5. When you see an error message regarding the same, you will get to know about the compatibility. But, most of the people do not pay attention to the generic accessories of iPhone 5 because of the high price. Instead, they’d like to go for an ordinary one, which is cost effective but not suitable for iPhone 5.
So, Get the best and suitable accessories for your lovely iPhone 5 now to make its lifetime as long as possible!
Hi there! I followed your tutorial and created an updater script to paste a font file. The problem is that when I run the updater.zip, the installation gets aborted. Any idea why?
Hi, can u help me sign my zip file for phone ? I don’t hv pc.