Update android from zip file

How To Upgrade Your Smartphone Using OTA Firmware Zip File

All smartphones provide options to upgrade their Android Operating system through System Update. But sometimes update fails to download or install downloaded firmware. In such cases, you can manually update your Android Smartphone using OTA update zip file. This tutorial shows, “how to update/upgrade your Android smartphone” using Firmware zip file via Recovery mode.

YOU ARE STRONGLY ADVISED TO TAKE BACKUP OF YOUR PHONE’S DATA BEFORE PROCEEDING AS THIS WILL ERASE EVERYTHING ON YOUR DEVICE’S INTERNAL STORAGE. IN CASE OF FAILURE, YOU MAY GET A DEAD SD CARD OR YOU CAN LEAVE YOUR DEVICE IN DEAD STATE. THIS TUTORIAL MAY WORK FOR SOME PEOPLE WHILE IT MAY NOT WORK FOR OTHERS. PROCEED AT YOUR OWN RISK. WE WON’T BE RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE OR ANY LOSS OF DATA BY ANY MEANS.

Requirements to Upgrade

1. Official Stock ROM / Update.zip file for your smartphone.

2. Take Backup of your personal data as this process will erase all data on your phone.

3. Charge your phone’s battery more than 50%.

How to Upgrade your Android smartphone?

Step 1

Copy downloaded Stock ROM (Firmware) zip file to your SD card and rename it to Update.zip. Insert SD card in your phone.

Step 2

After you have inserted SD card in your phone. Power off your device using power button on your phone.

Step 3

Now go to Recovery Mode by holding down volume up, volume down, and power button together. You should hold these three buttons for 10 seconds and then release. You should see Android robot logo, if you don’t see it, you have to power off your device again and repeat this step again.

Step 4

You will see Recovery Menu on screen, choose wipe data/factory reset and wipe cache partition before installing OTA update zip file on your device.

Step 5

After wiping out data and cache partition, select apply update from sd card and then navigate to firmware ROM zip file you copied to your SD card in Step 1 and select it.

This process is going to take some time. You can have a cup of coffee in meanwhile.

Step 6

After you have successfully installed OTA update on your Android smartphone, choose reboot system now option from Stock Recovery Menu.

Now, your smartphone will reboot and will start with delay for first time. And your Apps will be optimized for new upgraded Android OS. If you face any issues with upgrade, reset your Android smartphone to factory settings. This might solve most of the problems.

Источник

How to Create Android Update Zip Package

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:

Line 1&5 : show progress bar
Line 3: copy s ystem folder from update package to Android’s /system

Note: you should add one extra line at the end of the file (Line 6)

  • Compress the entire contents of C:\myupdate folder to zip (not the myupdate folder itself)
  • Sign the myupdate.zip file

    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

  • Copy the update.zip file to sdcard and apply it from recovery console
  • Читайте также:  Медиаплееры для тв приставки андроид

    update-script syntax reference (definitions from recovery.c android source code):

      copy_dir

    Syntax: copy_dir [ ]
    Copy the contents of to . The original contents of are preserved unless something in overwrote them.
    Ex: copy_dir PACKAGE:system SYSTEM:

    format

    Syntax: format
    Format a partiti0n
    Ex: format SYSTEM: , will format entire /system . Note: formatting erases data irreversibly.

    delete

    Syntax: delete [… ]
    Delete file.
    EX: delete SYSTEM:app/Calculator.apk , will delete Calculator.apk from system/app directory.

    delete_recursive

    Syntax: delete_recursive [… ]
    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

    run_program

    set_perm

    ]
    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

    set_perm_recursive

    ]
    Set ownership and permission of a directory with all of it’s contents recursively

    Ex: set_perm_recursive 0 0 0755 0644 SYSTEM:app

    show_progress

    Syntax: show_progress
    Use of the on-screen progress meter for the next operation, automatically advancing the meter over seconds (or more rapidly if the actual rate of progress can be determined).
    Ex: show_progress 0.1 0

    symlink

    Create a symlink (like ‘ln-s’). The

  • is in root:path format, but
  • is
    for the target filesystem (and may be relative)
  • Definition of roots and partitions (from root.c android source code)

    About Lorensius Londa

    Passionate web and mobile application developer. Co-founder of TRUSTUDIO, loves programming, Android, aviation, travelling, photography, coffee and gym mania.

    Reader Interactions

    Comments

    hi, its work.. But why i cant do the show_progress? It take very long long time..

    not worked
    i have this error

    error in update scripte

    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.

    Good check list, I am running through it with my sites now .

    Great article. I have to use more of these ideas. Thanks.

    Thank for your post, i really love it. I will come again.

    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.

    Читайте также:  Android studio xml editor design

    [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…

    Источник

    Оцените статью