Original article: http://blog.csdn.net/zjujoe/article/details/6206010
Android OTA update: Compile the update package
Author: Song Lixin
Email: zjujoe@yahoo.comPreface
OTA update is a standard software upgrade method provided by the Android system. It is powerful and provide
Android OTA update package preparation and androidota update package
0. Signature
Java-Xmx2048m-jar out/host/linux-x86/framework/signapk. jar-w build/target/product/security/testkey. x509.pem build/target/product/security/testkey. pk8
This key is automatically generated in debug mode.
You can also create your own private key through openssl
The generated key is
1. Ota features
OTA update is a standard software upgrade method provided by the Android system. It is powerful and provides full upgrade and incremental upgrade modes, which can be upgraded through SD card or USB flash disk or through network. Here, we will first study the simplest situation and complete the upgrade through the SD card.2. Compile the full
Tian haili @ csdn
After obtaining the OTA update package through the network or local device, you can start the android upgrade through the program. This document describes this process.
After obtaining the OTA update package, you can enable the OTA
We need to deal with the update related issues used by some applications. We learned that android build system will use open-source bsdiff to update packages. this article analyzes OTA update in the android system.
First, let's take a look at the overall OTA framework.Build
Update APN list after the OTA upgrade needs to restore the factory settings APN Update is valid, the customer needs to do the upgrade after the boot is effective.Because the OTA upgrade is updated with three zones, boot, recovery, System,The APN is part of the data domain, and OTA
Android 5.x OTA Update official documentation (V. Partition ing in the Recovery System), androidota
Preface: if the translation can be translated, the translation will not be translated, and the translation will not be translated. In order to choose not to mislead others, the translation will also be missed. English is hard. If there is a mistake, ask a passing friend to correct it, so as not to mislead mor
Original article: http://blog.csdn.net/zjujoe/article/details/6251747
Android OTA Update 5: Updater
Author: Song Lixin
Email: zjujoe@yahoo.comPreface
It can be said that all the sections of the OTA update code analyzed above are on the stage, and the main character is now on the stage, it is Updater. google's code arch
Let's forget apt-get today. Ubuntu wants to make the server system have a better update experience than OTA. Canonical disclosed information about the new Ubuntu version. According to the description, the version named UnbuntuCore is dedicated to servers and optimized for Docker usage. It is expected to bring ldquo to the server operating system; one-click Update
Android OTA update package creation script (2. Decompress), androidota
Step 1: extract (ota_from_target_files)
print "unzipping target target-files..." OPTIONS.input_tmp, input_zip = common.UnzipTemp(args[0])The above code is the portal to start decompression.
Def UnzipTemp (filename, pattern = None): "Unzip the given archive into a temporary directory and return the name. if filename is of the form "f
Thank you for your delivery.According to the latest news, Google has started to provide android2.2 updates to Nexus One through OTA (over the air download. Because the update prompt is sent gradually, if you have Nexus One, pay attention to the update message in the status prompt bar. Maybe the next update is your mach
We create an instance of the device by calling the Make_device () function in recovery_ui.cpp , as follows:Class Tardisdevice:public Device { //... all the above methods ...};D evice* Make_device () { return new TARDISDE Vice ();}CompileRecovery_ui.cppwe will introduce how to create a static library for Recovery_ui.cpp by the introduction of the previous article on recovery_ui.cpp . Device/yoyodyne/tardis/recovery/android.mkLocal_path: = $ (call My-dir) include $ (clear_vars) Local_module_
1, Commnad file:--update_package=/sdcard/dload/update.zipActual need to change to the location of the package you downloaded2, Command writes to/cache/recovery/below3, execution parameter string recovery of reboot((PowerManager) Getsystemservice ("Power")). Reboot ("Recovery");4, Androidmanist.xml note the ability to join powerNo permissions reboot not allowed to execute5, the target file needs to be signed with the platform level.How to do OTA
Android OTA update package creation script (1. Parameter Parsing)
Preface:
"Build/tools/releasetools/ota_from_target_files-u lk. bin-n target.zip update.zip" is the command for creating the entire package. Obviously, lk upgrade is supported here. This series of blog posts mainly analyzes the execution process and principle of this command in a system, involving multiple modules in the/build/tools/releasetoo
Android 5.x OTA Update official documentation (VII. Building devices), androidota
Call the make_device () function in recovery_ui.cpp to create a Device instance, as shown below:
class TardisDevice : public Device { // ... all the above methods ...};Device* make_device() { return new TardisDevice();}
Compile recovery_ui.cpp
Next, we will introduce how to create a static database for recovery_ui.cpp
Analyze the recovery process and start with analyzing the upgrade package.The upgrade package can be generated by the make otapackage command, which is generated by makefile and the packaging script (Python.The generation rules are complex, including the signature process, which has no details and focuses on its content.After the upgrade package is decompressed, the structure is as follows:
/home/simba/update_zip|-- boot.img|-- Manifest.xml|-- META-INF| |-- CERT.RSA| |-- CERT.SF| |-- com|
What does OTA mean?
Over-the-air. A short message mechanism, through the mobile phone terminal or server (online) way to realize the dynamic download, delete and update the Business menu in the SIM card, enable users to obtain personalized information services of the data value-added service (OTA service) OTA (over-th
Some friends do not know what OTA upgrade means, OTA (over-the-air Technology) is the aerial download technology. A lot of smartphones now offer OTA upgrades.
OTA upgrades are standard software upgrades provided by the Android system. It is powerful, can upgrade the system without loss, mainly through the network [suc
This article was reproduced from: http://www.thinksaas.cn/topics/0/445/445670.html0. SignatureJava-xmx2048m-jar out/host/linux-x86/framework/signapk.jar-w BUILD/TARGET/PRODUCT/SECURITY/TESTKEY.X509.PEM Build /target/product/security/testkey.pk8This key is the auto-generated key in debug mode.You can also create your own private key via OpenSSL.The OTA package will automatically sign with the generated key, and the location of the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.