android.stackexchange.com Open in urlscan Pro
104.18.43.226  Public Scan

Submitted URL: http://update.zip/
Effective URL: https://android.stackexchange.com/questions/64051/how-does-update-zip-work
Submission: On March 07 via manual from GB — Scanned from GB

Form analysis 1 forms found in the DOM

/search

<form id="search" role="search" action="/search" class="s-topbar--searchbar js-searchbar " autocomplete="off">
  <div class="s-topbar--searchbar--input-group">
    <input name="q" type="text" role="combobox" placeholder="Search on Android Enthusiasts…" value="" autocomplete="off" maxlength="240" class="s-input s-input__search js-search-field " aria-label="Search" aria-controls="top-search"
      data-controller="s-popover" data-action="focus->s-popover#show" data-s-popover-placement="bottom-start" aria-expanded="false">
    <svg aria-hidden="true" class="s-input-icon s-input-icon__search svg-icon iconSearch" width="18" height="18" viewBox="0 0 18 18">
      <path d="m18 16.5-5.14-5.18h-.35a7 7 0 1 0-1.19 1.19v.35L16.5 18l1.5-1.5ZM12 7A5 5 0 1 1 2 7a5 5 0 0 1 10 0Z"></path>
    </svg>
    <div class="s-popover p0 wmx100 wmn4 sm:wmn-initial js-top-search-popover" id="top-search" role="menu">
      <div class="s-popover--arrow"></div>
      <div class="js-spinner p24 d-flex ai-center jc-center d-none">
        <div class="s-spinner s-spinner__sm fc-orange-400">
          <div class="v-visible-sr">Loading…</div>
        </div>
      </div>
      <span class="v-visible-sr js-screen-reader-info"></span>
      <div class="js-ac-results overflow-y-auto hmx3 d-none"></div>
      <div class="js-search-hints" aria-describedby="Tips for searching"></div>
    </div>
  </div>
</form>

Text Content

STACK EXCHANGE NETWORK

Stack Exchange network consists of 183 Q&A communities including Stack Overflow,
the largest, most trusted online community for developers to learn, share their
knowledge, and build their careers.

Visit Stack Exchange
Loading…


 1. 
     * Tour Start here for a quick overview of the site
     * Help Center Detailed answers to any questions you might have
     * Meta Discuss the workings and policies of this site
     * About Us Learn more about Stack Overflow the company, and our products

 2. 


 3. CURRENT COMMUNITY
    
    
     * 
       Android Enthusiasts
       help chat
     * 
       Android Enthusiasts Meta
    
    
    YOUR COMMUNITIES
    
    Sign up or log in to customize your list.
    
    
    MORE STACK EXCHANGE COMMUNITIES
    
    company blog
    
 4. 
 5. Log in
 6. Sign up



 1. 1. Home
    2. Questions
    3. Tags
    4. 
    5. Users
    6. Companies
    7. Unanswered
 2. Teams
    Stack Overflow for Teams – Start collaborating and sharing organizational
    knowledge. Create a free Team Why Teams?
 3. Teams
    
 4. Create free Team

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy
to search.

Learn more about Teams



HOW DOES UPDATE.ZIP WORK?

Ask Question
Asked 10 years ago
Modified 2 months ago
Viewed 42k times
This question shows research effort; it is useful and clear

15
This question does not show any research effort; it is unclear or not useful

Save this question.

Show activity on this post.


update.zips are packages containing replacements for parts of an Android system.
The packages contain all the files the update is intended to replace and a
script that will do the replacement when it's run.

update.zips can come from OTA updates, but in some cases, it is necessary to
manually download and put an update.zip in some special folder. However, the
update.zip is still detected and applied in the same manner.

What part of Android detects and handles update.zips?

 * updates

Share
Share a link to this question

Copy linkCC BY-SA 4.0

Improve this question
Follow
Follow this question to receive notifications


edited Oct 5, 2023 at 16:23

Andrew T.♦
16k1010 gold badges7474 silver badges123123 bronze badges
asked Feb 21, 2014 at 19:52

Christian ChapmanChristian Chapman
39922 gold badges33 silver badges1111 bronze badges
1
 * 2
   Congratulations: someone made update.zip redirect here.
   – user253751
   Jun 9, 2023 at 17:54

Add a comment  | 


1 ANSWER 1

Sorted by: Reset to default
Highest score (default) Date modified (newest first) Date created (oldest first)
This answer is useful

19
This answer is not useful

Save this answer.


Show activity on this post.


update.zip are never touched by Android.

Inside that archive is a script that is parsed and interpreted by the Recovery
runtime.

The Recovery, at execution, opens the archive by unzipping into a temporary
directory, reads the script, aptly named update-script, analyzes it, and based
on the syntax, executes a function known to Recovery, that function may do the
following, to name but a few:

 * mount /system and other filesystems, and perform read/write file operations
   including, copying the kernel, or, an apk or even formatting a partition etc
 * check the build.prop for certain properties, such as device, manufacturer,
   etc
 * print display to the screen, progress information etc

It is pretty much a de-facto standard incorporated into Android Open Source
Project (AOSP)

ClockworkMod, TWRP are derivatives of the barebones version that resides in AOSP
with additional enhancements, such as touchscreen input.

Share
Share a link to this answer

Copy linkCC BY-SA 3.0

Improve this answer
Follow
Follow this answer to receive notifications


answered Feb 22, 2014 at 2:04

t0mm13bt0mm13b
13.4k11 gold badge4747 silver badges5858 bronze badges
4
 * +1 very interesting. So the recovery isn't part of android itself? What does
   it fall under? Part of Linux, a separate entity?
   – RossC
   Feb 22, 2014 at 9:38
 * 2
   @RossC The proper Recovery environment, resides on a separate /recovery
   partition (some manufacturers do not do this for some unknown reason, pseudo
   recovery) barebones limited Android, depending if stock recovery, limited
   shell vs CWM/TWRP which packs more, besides, root privileges. A real modder's
   delight is a device that has the separate partition for recovery.
   – t0mm13b
   Feb 22, 2014 at 13:44
 * 1
   /recovery doesn't look like a partition. In Linux that's just a directory. It
   could be a mounted partition - but it's still just a directory. I say this
   because it's a common misconception I've noticed in Android users.
   – jcora
   Feb 22, 2014 at 18:47
 * @yannbane - try this,cat /proc/mtd or look at /proc/partitions, its how the
   bootloader works, if vol dwn is pressed, bootloader reads kernel from
   /recovery and chain loads it bringing up either stock or custom recovery. It
   is not linux....
   – t0mm13b
   Feb 22, 2014 at 18:59

Add a comment  | 


YOU MUST LOG IN TO ANSWER THIS QUESTION.

Highly active question. Earn 10 reputation (not counting the association bonus)
in order to answer this question. The reputation requirement helps protect this
question from spam and non-answer activity.
NOT THE ANSWER YOU'RE LOOKING FOR? BROWSE OTHER QUESTIONS TAGGED
 * UPDATES

.

 * The Overflow Blog
 * Chunking express: An expert breaks down how to build your RAG system
 * Building GenAI features in practice with Intuit Mailchimp
 * Featured on Meta
 * Our partnership with Google and commitment to socially responsible AI
 * Shifting the data dump schedule: A proposal




RELATED

1
Is there a direct repo for various Android Build Numbers' update.zip
3
How do I restart the 2.2 update for HTC Desire?
1
How to create an update.zip file that can copy & rename a file?
4
How exactly does operating system update work on Android devices?
0
does it really work? rekey.app claims to protect agains Master Key
vulnerabilities
3
update.zip just for fixing file permissions, possible?
4
How does a update.zip file update files
0
After automatic updating Google does not work when no Wifi available
1
Does Android update and Google services still work on Huawei P30 Pro?

HOT NETWORK QUESTIONS

 * 
   An exact definition of multiplication
 * 
   Do automakers ECU-tune their motors to make new models and versions?
 * 
   Could ammonium azanide exist?
 * 
   Reduce the model sequentially
 * 
   Can minions alone finish a League of Legends game?
 * 
   What methods were used for password encryption before adoption of DES?
 * 
   Is there a language to write programmes by pictures?
 * 
   Are there techniques to reduce the number of Pauli strings in a Hamiltonian?
 * 
   When does one pronounce the T in "-ut"?
 * 
   Are there actually any photons in orbit in the photon sphere of a black hole?
 * 
   How can I make this grunge texture
 * 
   Why is the lunar relief not visible in photographs of solar eclipses?
 * 
   Manga where the main character is reborn in a game as a child villainess who
   hangs out with the two male leads in a greenhouse
 * 
   Does Orlah apply to blueberries
 * 
   How easily could a pre-scientific people purify a substance and hence grow a
   pure crystal?
 * 
   Finite groups and noncommutative algebraic geometry
 * 
   Is the spellcaster aware if their clone is destroyed?
 * 
   STM32 for loop slows down code too much
 * 
   Interaction clarification with 'Invoke curse' and temporary hitpoints
 * 
   One-Dimensional Pinball
 * 
   Puzzle how isolated RS-485 (ADM2582) sends signal without signal ground
 * 
   How executable uses POSIX to keep campatible between different UNIX system?
 * 
   Why do Communist governments turn more socially conservative over time?
 * 
   How could a biomancer monetize their magic

more hot questions
Question feed


SUBSCRIBE TO RSS

Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.




ANDROID ENTHUSIASTS

 * Tour
 * Help
 * Chat
 * Contact
 * Feedback

COMPANY

 * Stack Overflow
 * Teams
 * Advertising
 * Collectives
 * Talent
 * About
 * Press
 * Legal
 * Privacy Policy
 * Terms of Service
 * Cookie Settings
 * Cookie Policy

STACK EXCHANGE NETWORK

 * Technology
 * Culture & recreation
 * Life & arts
 * Science
 * Professional
 * Business
 * API
 * Data

 * Blog
 * Facebook
 * Twitter
 * LinkedIn
 * Instagram

Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under
CC BY-SA. rev 2024.3.5.5754

The Android robot logo is a trademark of Google Inc. Android is a trademark of
Google Inc.


WE CARE ABOUT YOUR PRIVACY

We and our 4 partners store and/or access information on a device, such as
unique IDs in cookies to process personal data. You may accept or manage your
choices by clicking below, including your right to object where legitimate
interest is used, or at any time in the privacy policy page. These choices will
be signaled to our partners and will not affect browsing data.
Cookie Policy.


WE AND OUR PARTNERS PERFORM THE FOLLOWING BASED ON YOUR SETTINGS:

Use precise geolocation data. Actively scan device characteristics for
identification. Understand audiences through statistics or combinations of data
from different sources. Store and/or access information on a device. Develop and
improve services. Create profiles to personalise content. Measure content
performance. Use limited data to select content. Measure advertising
performance. Use limited data to select advertising. Create profiles for
personalised advertising. Use profiles to select personalised advertising. Use
profiles to select personalised content. List of Partners (vendors)

Accept all cookies Necessary cookies only
Customize Settings



ABOUT YOUR PRIVACY

We process your data to deliver content or advertisements and measure the
delivery of such content or advertisements to extract insights about our
website. We share this information with our partners on the basis of consent and
legitimate interest. You may exercise your right to consent or object to a
legitimate interest, based on a specific purpose below or at a partner level in
the link under each purpose. These choices will be signaled to our vendors
participating in the Transparency and Consent Framework.
Cookie Policy
Accept all cookies


MANAGE CONSENT PREFERENCES

STRICTLY NECESSARY COOKIES

Always Active

These cookies are necessary for the website to function and cannot be switched
off in our systems. They are usually only set in response to actions made by you
which amount to a request for services, such as setting your privacy
preferences, logging in or filling in forms. You can set your browser to block
or alert you about these cookies, but some parts of the site will not then work.
These cookies do not store any personally identifiable information.

 * DELIVER AND PRESENT ADVERTISING AND CONTENT 3 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label label
   
   Certain information (like an IP address or device capabilities) is used to
   ensure the technical compatibility of the content or advertising, and to
   facilitate the transmission of the content or ad to your device.
   
   View Illustrations 

 * ENSURE SECURITY, PREVENT AND DETECT FRAUD, AND FIX ERRORS 3 PARTNERS CAN USE
   THIS PURPOSE
   
   Switch Label label
   
   Your data can be used to monitor for and prevent unusual and possibly
   fraudulent activity (for example, regarding advertising, ad clicks by bots),
   and ensure systems and processes work properly and securely. It can also be
   used to correct any problems you, the publisher or the advertiser may
   encounter in the delivery of content and ads and in your interaction with
   them.
   
   View Illustrations 

 * IDENTIFY DEVICES BASED ON INFORMATION TRANSMITTED AUTOMATICALLY 3 PARTNERS
   CAN USE THIS PURPOSE
   
   Switch Label label
   
   Your device might be distinguished from other devices based on information it
   automatically sends when accessing the Internet (for instance, the IP address
   of your Internet connection or the type of browser you are using) in support
   of the purposes exposed in this notice.

List of IAB Vendors‎

FUNCTIONAL COOKIES

Functional Cookies

These cookies enable the website to provide enhanced functionality and
personalisation. They may be set by us or by third party providers whose
services we have added to our pages. If you do not allow these cookies then some
or all of these services may not function properly.

 * USE PRECISE GEOLOCATION DATA 2 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label
   
   With your acceptance, your precise location (within a radius of less than 500
   metres) may be used in support of the purposes explained in this notice.

 * LINK DIFFERENT DEVICES 3 PARTNERS CAN USE THIS PURPOSE
   
   Always Active
   
   In support of the purposes explained in this notice, your device might be
   considered as likely linked to other devices that belong to you or your
   household (for instance because you are logged in to the same service on both
   your phone and your computer, or because you may use the same Internet
   connection on both devices).

List of IAB Vendors‎

PERFORMANCE COOKIES

Performance Cookies

These cookies allow us to count visits and traffic sources so we can measure and
improve the performance of our site. They help us to know which pages are the
most and least popular and see how visitors move around the site. All
information these cookies collect is aggregated and therefore anonymous. If you
do not allow these cookies we will not know when you have visited our site, and
will not be able to monitor its performance.

 * STORE AND/OR ACCESS INFORMATION ON A DEVICE 4 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label
   
   Cookies, device or similar online identifiers (e.g. login-based identifiers,
   randomly assigned identifiers, network based identifiers) together with other
   information (e.g. browser type and information, language, screen size,
   supported technologies etc.) can be stored or read on your device to
   recognise it each time it connects to an app or to a website, for one or
   several of the purposes presented here.
   
   View Illustrations 

 * DEVELOP AND IMPROVE SERVICES 3 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label
   
   Information about your activity on this service, such as your interaction
   with ads or content, can be very helpful to improve products and services and
   to build new products and services based on user interactions, the type of
   audience, etc. This specific purpose does not include the development or
   improvement of user profiles and identifiers.
   
   View Illustrations 
   Object to Legitimate Interests Remove Objection

 * MEASURE CONTENT PERFORMANCE 0 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label
   
   Information regarding which content is presented to you and how you interact
   with it can be used to determine whether the (non-advertising) content e.g.
   reached its intended audience and matched your interests. For instance,
   whether you read an article, watch a video, listen to a podcast or look at a
   product description, how long you spent on this service and the web pages you
   visit etc. This is very helpful to understand the relevance of
   (non-advertising) content that is shown to you.
   
   View Illustrations 
   Object to Legitimate Interests Remove Objection

 * MEASURE ADVERTISING PERFORMANCE 4 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label
   
   Information regarding which advertising is presented to you and how you
   interact with it can be used to determine how well an advert has worked for
   you or other users and whether the goals of the advertising were reached. For
   instance, whether you saw an ad, whether you clicked on it, whether it led
   you to buy a product or visit a website, etc. This is very helpful to
   understand the relevance of advertising campaigns.
   
   View Illustrations 
   Object to Legitimate Interests Remove Objection

List of IAB Vendors‎

TARGETING COOKIES

Targeting Cookies

These cookies are used to make advertising messages more relevant to you and may
be set through our site by us or by our advertising partners. They may be used
to build a profile of your interests and show you relevant advertising on our
site or on other sites. They do not store directly personal information, but are
based on uniquely identifying your browser and internet device.

 * UNDERSTAND AUDIENCES THROUGH STATISTICS OR COMBINATIONS OF DATA FROM
   DIFFERENT SOURCES 2 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label
   
   Reports can be generated based on the combination of data sets (like user
   profiles, statistics, market research, analytics data) regarding your
   interactions and those of other users with advertising or (non-advertising)
   content to identify common characteristics (for instance, to determine which
   target audiences are more receptive to an ad campaign or to certain
   contents).
   
   View Illustrations 
   Object to Legitimate Interests Remove Objection

 * CREATE PROFILES TO PERSONALISE CONTENT 1 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label
   
   Information about your activity on this service (for instance, forms you
   submit, non-advertising content you look at) can be stored and combined with
   other information about you (such as your previous activity on this service
   or other websites or apps) or similar users. This is then used to build or
   improve a profile about you (which might for example include possible
   interests and personal aspects). Your profile can be used (also later) to
   present content that appears more relevant based on your possible interests,
   such as by adapting the order in which content is shown to you, so that it is
   even easier for you to find content that matches your interests.
   
   View Illustrations 

 * USE LIMITED DATA TO SELECT ADVERTISING 4 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label
   
   Advertising presented to you on this service can be based on limited data,
   such as the website or app you are using, your non-precise location, your
   device type or which content you are (or have been) interacting with (for
   example, to limit the number of times an ad is presented to you).
   
   View Illustrations 
   Object to Legitimate Interests Remove Objection

 * CREATE PROFILES FOR PERSONALISED ADVERTISING 3 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label
   
   Information about your activity on this service (such as forms you submit,
   content you look at) can be stored and combined with other information about
   you (for example, information from your previous activity on this service and
   other websites or apps) or similar users. This is then used to build or
   improve a profile about you (that might include possible interests and
   personal aspects). Your profile can be used (also later) to present
   advertising that appears more relevant based on your possible interests by
   this and other entities.
   
   View Illustrations 

 * USE PROFILES TO SELECT PERSONALISED ADVERTISING 4 PARTNERS CAN USE THIS
   PURPOSE
   
   Switch Label
   
   Advertising presented to you on this service can be based on your advertising
   profiles, which can reflect your activity on this service or other websites
   or apps (like the forms you submit, content you look at), possible interests
   and personal aspects.
   
   View Illustrations 

 * USE PROFILES TO SELECT PERSONALISED CONTENT 1 PARTNERS CAN USE THIS PURPOSE
   
   Switch Label
   
   Content presented to you on this service can be based on your content
   personalisation profiles, which can reflect your activity on this or other
   services (for instance, the forms you submit, content you look at), possible
   interests and personal aspects, such as by adapting the order in which
   content is shown to you, so that it is even easier for you to find
   (non-advertising) content that matches your interests.
   
   View Illustrations 

List of IAB Vendors‎
Back Button


COOKIE LIST



Search Icon
Filter Icon

Clear
checkbox label label
Apply Cancel
Consent Leg.Interest
checkbox label label
checkbox label label
checkbox label label

Necessary cookies only Confirm My Choices