CN111694589B - Upgrade package generation method, device, server and computer readable storage medium - Google Patents

Upgrade package generation method, device, server and computer readable storage medium Download PDF

Info

Publication number
CN111694589B
CN111694589B CN202010540936.9A CN202010540936A CN111694589B CN 111694589 B CN111694589 B CN 111694589B CN 202010540936 A CN202010540936 A CN 202010540936A CN 111694589 B CN111694589 B CN 111694589B
Authority
CN
China
Prior art keywords
partition
upgrade package
upgrade
target
upgrading
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.)
Active
Application number
CN202010540936.9A
Other languages
Chinese (zh)
Other versions
CN111694589A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010540936.9A priority Critical patent/CN111694589B/en
Publication of CN111694589A publication Critical patent/CN111694589A/en
Application granted granted Critical
Publication of CN111694589B publication Critical patent/CN111694589B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application is applicable to the technical field of communication, and provides a method, a device, a server and a computer readable storage medium for generating an upgrade package, which comprise the following steps: acquiring a dynamic partition group to be tested and a partition table without upgrading; determining a target partition from the dynamic partition group to be tested according to the partition table without upgrading, wherein the target partition refers to a partition needing upgrading; acquiring upgrade data of the target partition; and generating an over-the-air OTA upgrade package according to the upgrade data of the target partition. The application can reduce the size of the OTA upgrade package and improve the upgrade rate of the system version.

Description

Upgrade package generation method, device, server and computer readable storage medium
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a method, an apparatus, a server, and a computer readable storage medium for generating an upgrade package.
Background
An Over The Air (OTA) technology is a technology for downloading data through a wireless network, and is widely applied to The upgrading process of system versions of terminal devices such as smart phones, tablet computers and The like. The user can upgrade the system version of the terminal equipment by downloading an OTA upgrade package for the current system version of the terminal equipment from the server.
However, the OTA upgrade package generated in the prior art is larger, and when the terminal device downloads the OTA upgrade package from the server, more flow is required to be consumed, so that the downloading desire of the user for the OTA upgrade package is affected, and the upgrade rate of the system version is easily reduced.
Disclosure of Invention
The application provides an upgrade package generation method, an upgrade package generation device, a server and a computer readable storage medium, which are used for reducing the size of an OTA upgrade package and improving the upgrade rate of a system version.
In a first aspect, an embodiment of the present application provides an upgrade package generating method, where the upgrade package generating method includes:
acquiring a dynamic partition group to be tested and a partition table without upgrading;
determining a target partition from the dynamic partition group to be tested according to the partition table without upgrading, wherein the target partition refers to a partition needing upgrading;
acquiring upgrade data of the target partition;
and generating an over-the-air OTA upgrade package according to the upgrade data of the target partition.
In a second aspect, an embodiment of the present application provides an upgrade package generating apparatus, including:
the partition acquisition module is used for acquiring a dynamic partition group to be detected and a partition table which does not need to be updated;
the target determining module is used for determining a target partition from the dynamic partition group to be tested according to the partition table without upgrading, wherein the target partition refers to a partition needing upgrading;
the data acquisition module is used for acquiring the upgrade data of the target partition;
and the upgrade package generation module is used for generating an over-the-air OTA upgrade package according to the upgrade data of the target partition.
In a third aspect, an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the upgrade package generation method according to the first aspect, when the processor executes the computer program.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program, which when executed by a processor implements the steps of the upgrade package generation method according to the first aspect described above.
In a fifth aspect, embodiments of the present application provide a computer program product which, when run on a server, causes the server to perform the steps of the upgrade package generation method as described in the first aspect above.
From the above, after the dynamic partition group to be tested and the partition table without upgrading are obtained, the scheme of the application can determine the target partition from the dynamic partition group to be tested according to the partition table without upgrading, and generate the target OTA upgrade package according to the upgrade data of the target partition, namely, the application generates the OTA upgrade package according to the upgrade data of the partition to be upgraded without packing all the partitions into the OTA upgrade package, thereby reducing the size of the OTA upgrade package, improving the enthusiasm of a user for downloading the OTA upgrade package from a server to upgrade the system version, and further improving the upgrade rate of the system version.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic implementation flow chart of an upgrade package generation method according to an embodiment of the present application;
fig. 2 is a schematic implementation flow chart of an upgrade package generation method according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of an upgrade package generating apparatus according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a server according to a fifth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should be further understood that the sequence number of each step in this embodiment does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not be construed as limiting the implementation process of the embodiment of the present application.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
Referring to fig. 1, a schematic implementation flow chart of an upgrade package generating method according to an embodiment of the present application is shown, where the upgrade package generating method is applied to a server, and as shown in the figure, the upgrade package generating method may include the following steps:
step 101, obtaining a dynamic partition group to be tested and a partition table without upgrading.
The dynamic partition group to be detected can refer to a dynamic partition group to be subjected to partition detection, the dynamic partition group is an android user space partition system, and the partition can be created, destroyed or adjusted according to an OTA upgrade package by using the partition system.
The dynamic partition group to be tested includes, but is not limited to, identification information of all partitions to be subjected to partition detection, such as identification information of a system partition, identification information of a vendor partition, and the like.
The unnecessary upgrade partition table includes, but is not limited to, identification information of the unnecessary upgrade partition. Alternatively, the user can create the partition table without upgrading according to actual needs.
The identification information of the partition characterizes the uniqueness of the partition, and the identification information of the partition is different from partition to partition, and includes, but is not limited to, the name of the partition.
And 102, determining a target partition from the dynamic partition group to be tested according to the partition table without updating.
The target partition is a partition to be upgraded in the dynamic partition group to be tested, and the identification information of the target partition is not in the partition table without upgrading.
In the embodiment of the application, after the dynamic partition group to be tested and the partition table without upgrading are obtained, the partition with the identification information not in the partition table without upgrading can be searched from the dynamic partition group to be tested based on the identification information of the partition without upgrading in the partition table without upgrading, and the partition is the target partition.
Optionally, determining the target partition from the dynamic partition group to be tested according to the partition table without updating comprises:
detecting whether the partitions with the identification information not in the partition table do not need to be updated exist in the dynamic partition group to be detected;
if the identification information exists in the dynamic partition group to be tested and the partition which is not in the partition table which is not required to be upgraded is not needed to be upgraded, the partition which is not in the partition table which is not required to be upgraded is determined to be the target partition.
In the embodiment of the application, the dynamic partition group to be detected can be traversed according to a preset detection sequence, whether the identification information of each partition in the dynamic partition group to be detected is positioned in a partition table without upgrading is detected, if the identification information of a certain partition in the dynamic partition group to be detected is detected not to be positioned in the partition table without upgrading, the partition is determined to be a target partition, and whether the identification information of the next partition is positioned in the partition table without upgrading is continuously detected until the dynamic partition group to be detected is traversed; if the identification information of a certain partition in the dynamic partition group to be tested is in the partition table without upgrading, determining that the partition is not a target partition, and continuously detecting whether the identification information of the next partition is in the partition table without upgrading or not until the dynamic partition group to be tested is traversed.
The preset detection sequence may be a preset sequence for detecting identification information of all partitions in the dynamic partition group to be detected. Optionally, the user may set a preset detection sequence according to the actual needs, for example, according to the storage sequence of the identification information of all the partitions in the dynamic partition group to be detected, starting from the identification information of the partition arranged in the first position, and sequentially detecting whether the identification information of all the partitions in the dynamic partition group to be detected is in the partition table without upgrading according to the sequencing sequence of all the identification information.
Step 103, obtaining the upgrade data of the target partition.
In the embodiment of the application, when one partition in the dynamic partition group to be detected is determined to be the target partition, the upgrade data of the target partition can be obtained, or after all the target partitions in the dynamic partition group to be detected are obtained, the upgrade data of all the target partitions can be obtained. The upgrade data of a target partition may refer to configuration update information of the target partition, which indicates what kind of upgrade is performed on the target partition.
Step 104, generating an OTA upgrade package according to the upgrade data of the target partition.
In the embodiment of the application, the upgrade data of the target partition can be compressed, and the obtained compressed packet is the OTA upgrade packet.
Optionally, generating the OTA upgrade package according to the upgrade data of the target partition includes:
if all the partitions in the dynamic partition group to be detected are detected, generating an OTA upgrade package according to upgrade data of all the target partitions.
In the embodiment of the application, after all partitions in the dynamic partition group to be detected are detected, all target partitions in the dynamic partition group to be detected can be obtained, upgrade data of all target partitions are compressed, and the obtained compression packet is the OTA upgrade packet.
Wherein, detecting all partitions in the dynamic partition to be detected may refer to whether the identification information of all partitions in the dynamic partition to be detected is in the partition table without updating.
Optionally, after generating the OTA upgrade package, the method further includes:
and sending an OTA upgrade packet to the terminal equipment, wherein the OTA upgrade packet is used for indicating the terminal equipment to upgrade the system version according to the OTA upgrade packet.
In the embodiment of the application, after the server successfully generates the OTA upgrade package, the server can send push information of the OTA upgrade package to the terminal equipment, when the terminal equipment receives the push information of the OTA upgrade package, the terminal equipment can send an upgrade package downloading request to the server, after the server receives the upgrade package downloading request, the OTA upgrade package is sent to the terminal equipment, and the terminal equipment can finish partial updating of the subareas according to the OTA upgrade package without updating all subareas of the terminal equipment, thereby improving the version upgrading efficiency of the terminal equipment.
According to the embodiment of the application, the OTA upgrade package is generated according to the upgrade data of the partition to be upgraded, and all the partitions are not required to be packaged into the OTA upgrade package, so that the size of the OTA upgrade package can be reduced, the bandwidth cost of the OTA upgrade package issued by equipment manufacturers is reduced, the enthusiasm of a user for upgrading a system according to the OTA upgrade package is improved, and the upgrade rate of a system version is further improved.
Referring to fig. 2, a schematic implementation flow chart of an upgrade package generating method according to a second embodiment of the present application is shown, where the upgrade package generating method is applied to a server, and as shown in the figure, the upgrade package generating method may include the following steps:
step 201, when compiling the OTA upgrade package, obtain the dynamic partition group to be tested and the partition table without upgrading.
The step is partially the same as step 101, and the same parts can be specifically referred to the related description of step 101, which is not repeated here.
Step 202, determining a target partition from the dynamic partition group to be tested according to the partition table without updating.
The step is the same as step 102, and the detailed description of step 102 is omitted here.
Step 203, generating a description file of the OTA upgrade package according to the identification information of the target partition.
The description file of the OTA upgrade package is used for reflecting the partition contained in the OTA upgrade package, namely the partition to be upgraded.
Step 204, obtaining the upgrade data of the target partition.
The step is the same as step 103, and specific reference may be made to the related description of step 103, which is not repeated here.
Step 205, generating an OTA upgrade package according to the upgrade data of the target partition and the description file of the OTA upgrade package.
In the embodiment of the application, the upgrade data of the target partition and the description file of the OTA upgrade package can be compressed together, and the obtained compressed package is the OTA upgrade package.
Step 206, encrypting the OTA upgrade package to obtain an encrypted OTA upgrade package.
In the embodiment of the application, after the OTA upgrade package is generated, the server encrypts the OTA upgrade package, so that the OTA upgrade package is not easily modified by malicious strings in the transmission process, the integrity of the OTA upgrade package can be ensured, and the security of system upgrade is further improved.
According to the embodiment of the application, the OTA upgrade package is generated according to the upgrade data of the target partition and the description file of the target partition, and the OTA upgrade package is encrypted, so that the security of system version upgrade can be improved while the system version upgrade rate is improved.
Referring to fig. 3, a schematic structural diagram of an upgrade package generating apparatus according to a third embodiment of the present application is shown, for convenience of explanation, only a portion related to the embodiment of the present application is shown.
The upgrade package generation apparatus includes:
the partition obtaining module 31 is configured to obtain a dynamic partition group to be tested and a partition table that does not need to be upgraded;
the target determining module 32 is configured to determine a target partition from the dynamic partition group to be tested according to the partition table that does not need to be updated, where the target partition refers to a partition that needs to be updated;
a data acquisition module 33, configured to acquire upgrade data of the target partition;
the upgrade package generation module 34 is configured to generate an over-the-air OTA upgrade package according to the upgrade data of the target partition.
Optionally, the unnecessary upgrade partition table includes identification information of the unnecessary upgrade partition, and the target determining module 32 is specifically configured to:
detecting whether the partitions with the identification information not in the partition table do not need to be updated exist in the dynamic partition group to be detected;
if the identification information exists in the dynamic partition group to be tested and is not in the partition table without upgrading, determining that the partition in the partition table without upgrading is the target partition.
Optionally, the upgrade package generation module 34 is specifically configured to:
if all the partitions in the dynamic partition group to be detected are detected, generating an OTA upgrade package according to upgrade data of all the target partitions.
Optionally, the upgrade package generating device further includes:
the file generation module is used for generating a description file of the OTA upgrade package according to the identification information of the target partition;
accordingly, the upgrade package generation module 34 is specifically configured to:
and generating an OTA upgrade package according to the upgrade data of the target partition and the description file of the OTA upgrade package.
Alternatively, the partition obtaining module 31 is specifically configured to:
and when compiling the OTA upgrade package, acquiring the dynamic partition group to be tested and the partition table without upgrading.
Optionally, the upgrade package generating device further includes:
and the upgrade package encryption module is used for encrypting the OTA upgrade package to obtain an encrypted OTA upgrade package.
Optionally, the upgrade package generating device further includes:
the OTA upgrade package sending module is used for sending an OTA upgrade package to the terminal equipment, and the OTA upgrade package is used for indicating the terminal equipment to upgrade the system version according to the OTA upgrade package.
The upgrade package generating device provided in the embodiment of the present application may be applied to the first and second embodiments of the foregoing method, and details refer to the description of the first and second embodiments of the foregoing method, which are not repeated herein.
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present application. The server as shown may include: one or more processors 401 (only one shown in the figure); one or more input devices 402 (only one shown in the figure), one or more output devices 403 (only one shown in the figure), and a memory 404. The processor 401, the input device 402, the output device 403, and the memory 404 are connected by a bus 405. Memory 404 is used to store instructions and processor 401 is used to execute the instructions stored by memory 404. Wherein:
the processor 401 is configured to obtain a dynamic partition group to be tested and a partition table without upgrading, determine a target partition from the dynamic partition group to be tested according to the partition table without upgrading, where the target partition refers to a partition needing upgrading; acquiring upgrade data of a target partition; and generating an over-the-air OTA upgrade package according to the upgrade data of the target partition.
Optionally, the upgrade-unnecessary partition table includes identification information of the upgrade-unnecessary partition, and the processor 401 is specifically configured to:
detecting whether the partitions with the identification information not in the partition table do not need to be updated exist in the dynamic partition group to be detected;
if the identification information exists in the dynamic partition group to be tested and is not in the partition table without upgrading, determining that the partition in the partition table without upgrading is the target partition.
Optionally, the processor 401 is specifically configured to:
if all the partitions in the dynamic partition group to be detected are detected, generating an OTA upgrade package according to upgrade data of all the target partitions.
Optionally, the processor 401 is further configured to:
generating a description file of the OTA upgrade package according to the identification information of the target partition;
and generating an OTA upgrade package according to the upgrade data of the target partition and the description file of the OTA upgrade package.
Optionally, the processor 401 is specifically configured to:
and when compiling the OTA upgrade package, acquiring the dynamic partition group to be tested and the partition table without upgrading.
Optionally, after generating the over-the-air OTA upgrade package, the processor 401 is further configured to:
and encrypting the OTA upgrade package to obtain an encrypted OTA upgrade package.
Optionally, after generating the over-the-air OTA upgrade package, the processor 401 is further configured to:
and sending an OTA upgrade packet to the terminal equipment, wherein the OTA upgrade packet is used for indicating the terminal equipment to upgrade the system version according to the OTA upgrade packet.
It should be appreciated that in embodiments of the application, the processor 401 may be a central processing unit (Central Processing Unit, CPU) which may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 402 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of a fingerprint), a microphone, a data receiving interface, and the like. The output devices 403 may include a display (LCD, etc.), speakers, a data-transmitting interface, etc.
The memory 404 may include read only memory and random access memory and provide instructions and data to the processor 401. A portion of memory 404 may also include non-volatile random access memory. For example, memory 404 may also store information of device type.
In a specific implementation, the processor 401, the input device 402, the output device 403, and the memory 404 described in the embodiments of the present application may perform an implementation described in the embodiments of the method for generating an upgrade package provided in the embodiments of the present application, and may also perform an implementation described in the apparatus for generating an upgrade package in the third embodiment, which is not described herein again.
Fig. 5 is a schematic diagram of a server according to a fifth embodiment of the present application. As shown in fig. 5, the server 5 of this embodiment includes: one or more processors 50 (only one shown), a memory 51, and a computer program 52 stored in the memory 51 and executable on at least one processor 50. The steps of the respective upgrade package generation method embodiments described above are implemented when the processor 50 executes the computer program 52.
The server 5 may be a computing device such as a desktop computer, a notebook computer, a palm computer, and a cloud server. The server may include, but is not limited to, a processor 50, a memory 51. It will be appreciated by those skilled in the art that fig. 5 is merely an example of the server 5 and is not limiting of the server 5, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the server may also include input-output devices, network access devices, buses, etc.
The processor 50 may be a central processing unit CPU, but may also be other general purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the server 5, such as a hard disk or a memory of the server 5. The memory 51 may also be an external storage device of the server 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the server 5. Further, the memory 51 may also include both an internal storage unit of the server 5 and an external storage device. The memory 51 is used to store computer programs and other programs and data required by the server. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/server and method may be implemented in other manners. For example, the above-described apparatus/server embodiments are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The present application may also be implemented as a computer program product for implementing all or part of the steps of the method embodiments described above, when the computer program product is run on a server, causing the server to implement the steps of the method embodiments described above.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (8)

1. An upgrade package generation method, which is characterized by comprising the following steps:
acquiring a dynamic partition group to be tested and a partition table without upgrading, wherein the partition table without upgrading comprises identification information of a partition without upgrading;
determining a target partition from the dynamic partition group to be tested according to the partition table without upgrading, wherein the target partition refers to a partition needing upgrading;
acquiring upgrade data of the target partition, wherein the upgrade data is configuration update information of the target partition and is used for indicating what type of upgrade is performed on the target partition;
generating an over-the-air OTA upgrade package according to the upgrade data of the target partition;
wherein, the determining, according to the partition table without upgrading, the target partition from the dynamic partition group to be tested includes:
detecting whether a partition with identification information not in the partition table without upgrading exists in the dynamic partition group to be tested;
if the dynamic partition group to be tested has a partition with the identification information not in the partition table without upgrading, determining that the partition with the identification information not in the partition table without upgrading is the target partition;
before acquiring the upgrade data of the target partition, the method comprises the following steps:
generating a description file of the OTA upgrade package according to the identification information of the target partition;
the generating the OTA upgrade package according to the upgrade data of the target partition includes:
and generating the OTA upgrade package according to the upgrade data of the target partition and the description file of the OTA upgrade package.
2. The upgrade package generation method of claim 1, wherein generating an over-the-air OTA upgrade package according to upgrade data of the target partition comprises:
and if all the partitions in the dynamic partition group to be detected are detected, generating an OTA upgrade packet according to upgrade data of all the target partitions.
3. The upgrade package generation method of claim 1, wherein the obtaining the dynamic partition group to be tested and the unnecessary upgrade partition table comprises:
and when compiling an OTA upgrade package, acquiring the dynamic partition group to be tested and the partition table without upgrading.
4. The upgrade package generation method of claim 1, further comprising, after generating the over-the-air OTA upgrade package:
and encrypting the OTA upgrade package to obtain the encrypted OTA upgrade package.
5. The upgrade package generation method according to any one of claims 1-4, further comprising, after generating the over-the-air OTA upgrade package:
and sending an OTA upgrade packet to a terminal device, wherein the OTA upgrade packet is used for indicating the terminal device to upgrade the system version according to the OTA upgrade packet.
6. An upgrade package generation apparatus, characterized in that the upgrade package generation apparatus includes:
the partition acquisition module is used for acquiring a dynamic partition group to be detected and a partition table without upgrading, wherein the partition table without upgrading comprises identification information of a partition without upgrading;
the target determining module is used for determining a target partition from the dynamic partition group to be tested according to the partition table without upgrading, wherein the target partition refers to a partition needing upgrading;
the file generation module is used for generating a description file of the OTA upgrade package according to the identification information of the target partition;
the data acquisition module is used for acquiring the upgrade data of the target partition, wherein the upgrade data is configuration update information of the target partition and is used for indicating what type of upgrade is carried out on the target partition;
the upgrade package generation module is used for generating an over-the-air OTA upgrade package according to the upgrade data of the target partition;
the target determining module is specifically configured to: detecting whether the partitions with the identification information not in the partition table do not need to be updated exist in the dynamic partition group to be detected; if the identification information exists in the dynamic partition group to be tested and is not in the partition table without upgrading, determining that the partition in the partition table without upgrading is the target partition;
the upgrade package generation module is specifically configured to: and generating an OTA upgrade package according to the upgrade data of the target partition and the description file of the OTA upgrade package.
7. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the upgrade package generation method according to any one of claims 1 to 5 when the computer program is executed.
8. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the upgrade package generation method according to any one of claims 1 to 5.
CN202010540936.9A 2020-06-15 2020-06-15 Upgrade package generation method, device, server and computer readable storage medium Active CN111694589B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010540936.9A CN111694589B (en) 2020-06-15 2020-06-15 Upgrade package generation method, device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010540936.9A CN111694589B (en) 2020-06-15 2020-06-15 Upgrade package generation method, device, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111694589A CN111694589A (en) 2020-09-22
CN111694589B true CN111694589B (en) 2023-09-29

Family

ID=72481042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010540936.9A Active CN111694589B (en) 2020-06-15 2020-06-15 Upgrade package generation method, device, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111694589B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416359A (en) * 2020-11-23 2021-02-26 捷开通讯(深圳)有限公司 Dynamic partition customizing method, device, equipment and computer readable storage medium
CN116302119A (en) * 2021-06-15 2023-06-23 荣耀终端有限公司 Operating system management method, device, storage medium and computer program product
CN114461257B (en) * 2021-07-29 2023-03-24 荣耀终端有限公司 Operating system data configuration method, operating system data configuration device, storage medium and program product
CN114780120B (en) * 2022-04-02 2023-06-09 荣耀终端有限公司 Upgrade method, device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360127A (en) * 2008-09-10 2009-02-04 金蝶软件(中国)有限公司 File updating method and transmission system
CN101520734A (en) * 2008-12-17 2009-09-02 康佳集团股份有限公司 Method for upgrading data in flash memory, network TV and interactive set-top box thereof
CN105589706A (en) * 2014-10-29 2016-05-18 Tcl集团股份有限公司 Upgrade package generation method and device
CN106484450A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device
CN108196870A (en) * 2017-12-29 2018-06-22 北京臻迪科技股份有限公司 Upgrade method and device
CN108984196A (en) * 2018-06-29 2018-12-11 深圳市九洲电器有限公司 A kind of method for upgrading system and Android TV system set-top box of Android TV system set-top box
CN108989891A (en) * 2018-06-29 2018-12-11 广州视源电子科技股份有限公司 System for TV set update method, device, readable storage medium storing program for executing and television set
CN109634645A (en) * 2018-12-28 2019-04-16 深圳市有方科技股份有限公司 Firmware upgrade method and terminal
CN109766119A (en) * 2019-01-24 2019-05-17 努比亚技术有限公司 Restore subregion upgrade method, terminal and computer readable storage medium
CN110569058A (en) * 2019-09-09 2019-12-13 Oppo(重庆)智能科技有限公司 System upgrading method, device, terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200117438A1 (en) * 2018-10-10 2020-04-16 Ford Global Technologies, Llc Scheduling simplification via geofence time zone resolution

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360127A (en) * 2008-09-10 2009-02-04 金蝶软件(中国)有限公司 File updating method and transmission system
CN101520734A (en) * 2008-12-17 2009-09-02 康佳集团股份有限公司 Method for upgrading data in flash memory, network TV and interactive set-top box thereof
CN105589706A (en) * 2014-10-29 2016-05-18 Tcl集团股份有限公司 Upgrade package generation method and device
CN106484450A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device
CN108196870A (en) * 2017-12-29 2018-06-22 北京臻迪科技股份有限公司 Upgrade method and device
CN108984196A (en) * 2018-06-29 2018-12-11 深圳市九洲电器有限公司 A kind of method for upgrading system and Android TV system set-top box of Android TV system set-top box
CN108989891A (en) * 2018-06-29 2018-12-11 广州视源电子科技股份有限公司 System for TV set update method, device, readable storage medium storing program for executing and television set
CN109634645A (en) * 2018-12-28 2019-04-16 深圳市有方科技股份有限公司 Firmware upgrade method and terminal
CN109766119A (en) * 2019-01-24 2019-05-17 努比亚技术有限公司 Restore subregion upgrade method, terminal and computer readable storage medium
CN110569058A (en) * 2019-09-09 2019-12-13 Oppo(重庆)智能科技有限公司 System upgrading method, device, terminal and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
R2: Over-the-air reprogramming on computational RFIDs;Die Wu等;《2016 IEEE International Conference on RFID (RFID)》;1-8 *
基于Android平台智能手机在线升级技术的改进与实现;张宇杰;《电子质量》;55-58 *

Also Published As

Publication number Publication date
CN111694589A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111694589B (en) Upgrade package generation method, device, server and computer readable storage medium
CN107786504B (en) ELF file release method, ELF file verification method, server and terminal
CN110022558B (en) Method for encrypting and decrypting upgrade package, electronic device and storage medium
CN112163412B (en) Data verification method and device, electronic equipment and storage medium
US20190205539A1 (en) Method and device for verifying upgrade of diagnosis connector of diagnostic equipment, and diagnosis connector
CN112947981A (en) Application program resource updating method and device, terminal equipment and server
CN114201781A (en) Block chain-based storage verification method and device, computer equipment and medium
CN110704833A (en) Data permission configuration method, device, electronic device and storage medium
CN111176685A (en) Upgrading method and device
CN112286565A (en) Embedded system differential upgrading method based on storage container
CN110516463B (en) Method and apparatus for generating information
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN111143240B (en) Image storage method, system and terminal equipment
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
CN110908882A (en) Performance analysis method and device of application program, terminal equipment and medium
WO2021097624A1 (en) File processing method, file processing apparatus, and terminal device
CN111400091A (en) Factory setting restoring method, factory setting restoring device and mobile terminal
CN107368337B (en) Application downloading method and device and terminal equipment
CN107358032B (en) Product upgrading method and device and product upgrading system
CN108664796B (en) So file protection method and device
CN111190824B (en) Monitoring method, device, terminal equipment and storage medium
CN113987471A (en) Executable file execution method and device, electronic equipment and computer readable medium
CN114365081A (en) Incremental package generation method, incremental package generation device and server
CN112015459A (en) Method and device for upgrading image file, terminal and readable storage medium
CN114303131A (en) File processing method, file processing device and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant