CN104239110A - Method and device for reducing size of OTA incremental packet - Google Patents

Method and device for reducing size of OTA incremental packet Download PDF

Info

Publication number
CN104239110A
CN104239110A CN201410522461.5A CN201410522461A CN104239110A CN 104239110 A CN104239110 A CN 104239110A CN 201410522461 A CN201410522461 A CN 201410522461A CN 104239110 A CN104239110 A CN 104239110A
Authority
CN
China
Prior art keywords
ota
application software
delta package
title
installation kit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410522461.5A
Other languages
Chinese (zh)
Other versions
CN104239110B (en
Inventor
严斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410522461.5A priority Critical patent/CN104239110B/en
Publication of CN104239110A publication Critical patent/CN104239110A/en
Application granted granted Critical
Publication of CN104239110B publication Critical patent/CN104239110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and device for reducing the size of an OTA incremental packet. A preset symbol is inserted between an application name and other characters, other characters except the application name are filtered out with the inserted symbol as the boundary, so that only the name of an application is reserved in the name of an application installation package, names of the same application software in a new version system and an old version system are the same, accordingly, the generated OTA incremental packet is greatly reduced, download burden is reduced, and the upgrade speed is improved.

Description

Reduce the method and apparatus of OTA delta package size
Technical field
The present invention relates to intelligent terminal technical field, particularly relate to a kind of method and apparatus reducing OTA delta package size.
Background technology
Current brand intelligent machine on the market, as Android intelligent machine, a lot of machine is had still to provide upgrade service to user after listing, this upgrading is all send to user's based on the delta package of a kind of OTA, user is by downloading and installing OTA delta package, and cell phone system version of then upgrading obtains the up-to-date software of cell phone manufacturer and experiences.
The OTA delta package of customer upgrade is the differential file set produced after two version contrasts, such as V1 system version with V2 system version relatively after, the set of the differential file of the system generated, user can complete the upgrading of V1 version to V2 version by this delta package.
Because the upgrading of part mobile phone is frequent, a lot of delta package is excessive, and user downloads not only needs a lot of flow, and very time-consuming, if can reduce OTA bag size, will overcome the above problems.
Summary of the invention
Based on above-mentioned situation, the present invention proposes a kind of method and apparatus reducing OTA delta package size, to improve system upgrade efficiency, for this reason, the scheme of employing is as follows.
Reduce a method for OTA delta package size, comprise step:
In new version system compilation process, for the title of application software installation kit, between application software title and character thereafter, insert predetermined symbol;
Use the predetermined symbol in filter function filtration application software installation kit title and character afterwards thereof, only retain application software title and suffix;
According to the difference between new and old edition system, generate OTA delta package by compiler directive.
Reduce a device for OTA delta package size, comprising:
Symbol insert module, in new version system compilation process, for the title of application software installation kit, inserts predetermined symbol between application software title and character thereafter;
Filtered symbol module, for using the predetermined symbol in filter function filtration application software installation kit title and character afterwards thereof, only retains application software title and suffix;
Delta package generation module, for according to the difference between new and old edition system, generates OTA delta package by compiler directive.
The present invention reduces the method and apparatus of OTA delta package size, predetermined symbol is inserted between Apply Names and other characters, and with the symbol inserted for boundary, cross other characters outside filtering Apply Names, make the title applying installation kit only retain the title of application itself, so, new version system is consistent with the name of application software same in old version system, the OTA delta package then generated based on this greatly reduces, thus alleviates download burden, improves updating speed.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the present invention reduces the method for OTA delta package size;
Fig. 2 is the structural representation that the present invention reduces the device of OTA delta package size.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is described in further detail.Should be appreciated that embodiment described herein only in order to explain the present invention, do not limit protection scope of the present invention.
The present invention reduces the method for OTA delta package size, as shown in Figure 1, comprises the following steps:
Step s101, in new version system compilation process, for the title of application software installation kit, between application software title and character thereafter, insert predetermined symbol.
What the capacity accounting of OTA delta package was maximum is some application installation kits, for android system, if have the apk of certain name inside new version system and do not have inside legacy version, to copy to inside delta package whole for this apk inside redaction, if but apk has with inside legacy version in redaction, then generate the differentiation file xx.apk.p of an apk, this file is usually much little than former apk, we exploitation in often by the mode of some apk called afters " Apply Names "+" date and version number "+" .apk " so that developer searches problem, due to each version number or the date different, therefore whole apk all can be caused to copy to inside delta package at every turn.
Based on above situation, inventor goes out to send to reduce the size of OTA delta package from the angle of Uniform Name.The mode of above-mentioned " Apply Names "+" date and version number "+" .apk " is followed in name due to application program installation kit usually, if inconsistent date and version number deleted, then remaining Apply Names in system in redaction or the system at legacy version is all consistent.
For the character of date and version number and other all non-Apply Nameses, if manually delete, will the time and efforts of at substantial, therefore, this method is according to described in step s101, when the system of each compiling redaction, first find out the installation kit of all application software, predetermined symbol is inserted again between Apply Names and character thereafter, as qq#20140718_V100.apk, predetermined symbol can also be *, % etc., but should be different from existing character in application installation kit title, so that subsequent step filters.
Predetermined symbol in step s102, use filter function filtration application software installation kit title and character afterwards thereof, only retain application software title and suffix.
Still for android system, in compilation script Android.mk, carry out Script controlling, use function filtration application apk# part below.
Filter function is as follows:
Application filter function is called in collector:
LOCAL_MODULE:=$(call?apk_name_filter,$(SINGLE_TARGET))
After having compiled according to said process, the title that in new version system, the title of application software installation kit only has application original except suffix, i.e. " Apply Names "+" .apk ", in old version system, the title of application software installation kit also lives through above-mentioned steps, therefore Apply Names is also only had to add suffix, so, in the system of new and old edition, the name of unified application software is consistent.
Step s103, according to the difference between new and old edition system, generate OTA delta package by compiler directive.
The OTA delta package generated by said process only comprises the differentiation file of application software, and the part of repetition is not included, and thus, compares classic method, method substantially reduces the size of OTA delta package, generally can reduce about 30% ~ 50%.
The device that the present invention reduces OTA delta package size is the device corresponding with said method, as shown in Figure 2, comprising:
Symbol insert module, in new version system compilation process, for the title of application software installation kit, inserts predetermined symbol between application software title and character thereafter;
Filtered symbol module, for using the predetermined symbol in filter function filtration application software installation kit title and character afterwards thereof, only retains application software title and suffix;
Delta package generation module, for according to the difference between new and old edition system, generates OTA delta package by compiler directive.
As a preferred embodiment, described system is android system, and described installation kit is apk installation kit.
As a preferred embodiment, described predetermined symbol is #, * or %.
Because this device is corresponding with said method, identical technical characteristic no longer repetition of explanation.
To sum up, the present invention reduces the method and apparatus of OTA delta package size, from the basic reason that OTA delta package is excessive, character filtering is waited to fall the date version in application installation kit title same in new and old edition system number, only retain Apply Names and suffix, then in new and old edition system, the title of same application installation kit is unified, OTA delta package is made only to comprise the differentiation file of application software, the part repeated is not included, thus, compare classic method, method substantially reduces the size of OTA delta package.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (6)

1. reduce a method for OTA delta package size, it is characterized in that, comprise step:
In new version system compilation process, for the title of application software installation kit, between application software title and character thereafter, insert predetermined symbol;
Use the predetermined symbol in filter function filtration application software installation kit title and character afterwards thereof, only retain application software title and suffix;
According to the difference between new and old edition system, generate OTA delta package by compiler directive.
2. the method for minimizing OTA delta package size according to claim 1, is characterized in that,
Described system is android system, and described installation kit is apk installation kit.
3. the method for minimizing OTA delta package size according to claim 1 and 2, is characterized in that,
Described predetermined symbol is #, * or %.
4. reduce a device for OTA delta package size, it is characterized in that, comprising:
Symbol insert module, in new version system compilation process, for the title of application software installation kit, inserts predetermined symbol between application software title and character thereafter;
Filtered symbol module, for using the predetermined symbol in filter function filtration application software installation kit title and character afterwards thereof, only retains application software title and suffix;
Delta package generation module, for according to the difference between new and old edition system, generates OTA delta package by compiler directive.
5. the device of minimizing OTA delta package size according to claim 4, is characterized in that,
Described system is android system, and described installation kit is apk installation kit.
6. the device of the minimizing OTA delta package size according to claim 4 or 5, is characterized in that,
Described predetermined symbol is #, * or %.
CN201410522461.5A 2014-09-30 2014-09-30 Reduce the method and apparatus of OTA delta package sizes Active CN104239110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410522461.5A CN104239110B (en) 2014-09-30 2014-09-30 Reduce the method and apparatus of OTA delta package sizes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410522461.5A CN104239110B (en) 2014-09-30 2014-09-30 Reduce the method and apparatus of OTA delta package sizes

Publications (2)

Publication Number Publication Date
CN104239110A true CN104239110A (en) 2014-12-24
CN104239110B CN104239110B (en) 2017-06-16

Family

ID=52227245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410522461.5A Active CN104239110B (en) 2014-09-30 2014-09-30 Reduce the method and apparatus of OTA delta package sizes

Country Status (1)

Country Link
CN (1) CN104239110B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487907A (en) * 2015-12-07 2016-04-13 青岛海信电器股份有限公司 Difference package manufacturing method and device
CN106657361A (en) * 2016-12-30 2017-05-10 歌尔科技有限公司 Android installation package OTA upgrade method with mixed codes
CN113805930A (en) * 2021-10-09 2021-12-17 中国银行股份有限公司 Increment packaging method and device
US11947673B2 (en) 2018-11-09 2024-04-02 Huawei Technologies Co., Ltd. Over-the-air upgrade method and related apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278399A1 (en) * 2004-06-10 2005-12-15 Samsung Electronics Co., Ltd. Apparatus and method for efficient generation of delta files for over-the-air upgrades in a wireless network
US20070042766A1 (en) * 2003-02-05 2007-02-22 Samsung Electronics Co., Ltd. System and method for delta-based over-the-air software upgrades for a wireless mobile station
CN101361051A (en) * 2006-06-19 2009-02-04 三星电子株式会社 Information upgrade system and method for ota-capable device
CN102650947A (en) * 2012-04-01 2012-08-29 广东欧珀移动通信有限公司 Continuous increment over-the-air upgrade method of Android handheld equipment
CN102902555A (en) * 2012-09-06 2013-01-30 华为终端有限公司 Upgrading method, unit and upgrading device
CN103313229A (en) * 2013-05-27 2013-09-18 华为终端有限公司 Method and device for upgrading aerial downloading technology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070042766A1 (en) * 2003-02-05 2007-02-22 Samsung Electronics Co., Ltd. System and method for delta-based over-the-air software upgrades for a wireless mobile station
US20050278399A1 (en) * 2004-06-10 2005-12-15 Samsung Electronics Co., Ltd. Apparatus and method for efficient generation of delta files for over-the-air upgrades in a wireless network
CN101361051A (en) * 2006-06-19 2009-02-04 三星电子株式会社 Information upgrade system and method for ota-capable device
CN102650947A (en) * 2012-04-01 2012-08-29 广东欧珀移动通信有限公司 Continuous increment over-the-air upgrade method of Android handheld equipment
CN102902555A (en) * 2012-09-06 2013-01-30 华为终端有限公司 Upgrading method, unit and upgrading device
CN103313229A (en) * 2013-05-27 2013-09-18 华为终端有限公司 Method and device for upgrading aerial downloading technology

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487907A (en) * 2015-12-07 2016-04-13 青岛海信电器股份有限公司 Difference package manufacturing method and device
CN106657361A (en) * 2016-12-30 2017-05-10 歌尔科技有限公司 Android installation package OTA upgrade method with mixed codes
CN106657361B (en) * 2016-12-30 2019-09-13 歌尔科技有限公司 A kind of Android installation kit OTA upgrade method that code addition is obscured
US11947673B2 (en) 2018-11-09 2024-04-02 Huawei Technologies Co., Ltd. Over-the-air upgrade method and related apparatus
CN113805930A (en) * 2021-10-09 2021-12-17 中国银行股份有限公司 Increment packaging method and device

Also Published As

Publication number Publication date
CN104239110B (en) 2017-06-16

Similar Documents

Publication Publication Date Title
CN102622241B (en) A kind of method for upgrading software and device
CN102520948B (en) Application maintenance update method and device
CN107506219A (en) A kind of general version upgrade method based on android system
CN103218242B (en) A kind of method of automatic renewal
US20170206079A1 (en) Method and Device for Upgrading Software
CN104239110A (en) Method and device for reducing size of OTA incremental packet
JP2008510252A (en) Generic upgrade architecture
CN103095838A (en) Method for upgrading Android smartphone software through downloading incremental upgrade package
CN104216749A (en) Updating method and updating device for applications
CN101110788A (en) Method and system for updating client software
WO2013178048A1 (en) Method and device for generating firmware over-the-air upgrade package
CN105159718B (en) Firmware upgrade method and device
CN102833350A (en) Processing method and processing device of WebApp updating
CN104598286A (en) Software updating method and device for mobile terminal
CN103810416A (en) Software installation or uninstallation method and device
CN101383746A (en) Access control method and system for wireless network
CN106201588A (en) The method for upgrading software of terminal and terminal
CN106648798A (en) Method for dynamically upgrading cross-version OTA
CN105743933A (en) Router module updating method and system
CN103906092A (en) Method and device for updating access point information
CN106874040A (en) Realize that PC ends software is mourned in silence the system and method for upgrading based on Windows services
CN104572207A (en) Intelligent accessories based APP expanded application method and intelligent accessories
CN105791135A (en) Method for providing intelligent routing application and intelligent router
CN103840968A (en) Version updating method, version updating device and terminal equipment
CN107463405A (en) The update method and device of a kind of application program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.