Upgrade package encryption and decryption method, electronic device and storage medium

An encryption method and upgrade package technology, applied in security devices, electrical components, wireless communications, etc., can solve problems such as large memory dependence, affecting upgrade efficiency, and inapplicability to models with lower configuration

Active Publication Date: 2019-07-16
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In practice, when using the OTA upgrade package to upgrade, based on the limitation of the encryption technology of the OTA upgrade package in related technologies, encryption requires a large memory, and decryption requires The entire upgrade package is decrypted to the memory at a ratio of 1:1, so the encryption and decryption process of the OTA upgrade package relies heavily on memory, which is not suitable for models with low configuration. Affect upgrade efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Upgrade package encryption and decryption method, electronic device and storage medium
  • Upgrade package encryption and decryption method, electronic device and storage medium
  • Upgrade package encryption and decryption method, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0047] This embodiment shows an encryption method for an upgrade package, which can realize fast encryption of the upgrade package, shorten the encryption time, and also reduce the dependence of the upgrade package decryption on the memory of the electronic device when the electronic device uses the upgrade package, and shorten the decryption time. Time to improve upgrade efficiency.

[0048] see figure 2 , the encryption method of the upgrade package includes:

[0049] Step 201, obtaining an original upgrade package, wherein the original upgrade package includes upgrade files of each partition to be upgraded of the operating system;

[0050] In this embodiment, the operating system applicable to the original upgrade package includes, but is not limited to, the Android system. Types of original upgrade packages include but are not limited to OTA upgrade packages. It can be understood that the original upgrade package in this embodiment is an uncompressed upgrade package. ...

no. 2 example

[0063] This embodiment proposes a refined encryption method for the upgrade package, see image 3 , the encryption method includes:

[0064] Step 301. Obtain the original upgrade package, wherein the original upgrade package contains the upgrade files of each partition to be upgraded;

[0065] In this embodiment, for the explanation of the original upgrade package, the operating system partition and the upgrade file, refer to the related description of the first embodiment, and this embodiment will not be repeated here.

[0066] Step 302, matching the partition to be upgraded corresponding to each upgrade file with the preset operating system partition, and determining the upgrade file of the successfully matched partition to be upgraded as the target upgrade file;

[0067] Optionally, in an example, the preset operating system partitions include but are not limited to system partitions and vendor partitions.

[0068] Optionally, in one embodiment, in step 302, the target up...

no. 3 example

[0100] This embodiment provides an electronic device, which may be a server provided by an electronic device manufacturer, see Figure 5 , the electronic device includes:

[0101] The first acquiring module 501 is configured to acquire an original upgrade package, wherein the original upgrade package includes upgrade files of each partition to be upgraded of the operating system;

[0102] The first determination module 502 is configured to determine the target upgrade file based on the information of each upgrade file;

[0103] An encryption module 503, configured to identify the first upgrade subfile and the second upgrade subfile in the target upgrade file, encrypt the first upgrade subfile in the original upgrade package according to the first encryption algorithm, and not encrypt the second upgrade subfile Encrypt to obtain an encrypted upgrade package, wherein the second upgrade subfile contains data to be written into the partition to be upgraded of the operating system...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an upgrade package encryption and decryption method, an electronic device and a storage medium, and the method comprises the steps: determining a target upgrade file based on an upgrade file of each to-be-upgraded partition in an original upgrade package; then, identifying a first upgrading sub-file and a second upgrading sub-file in the target upgrading file; encrypting afirst upgrading sub-file in the original upgrading package according to a first encryption algorithm, not encrypting the second upgrading subfile; obtaining encrypted upgrade package. Based on the description, a part of files in the target upgrade file are encrypted by adopting a partial encryption rule in the embodiment; therefore, the second upgrade subfile does not need to be encrypted, the encrypted data size is effectively reduced, the encryption time is shortened, when the upgrade package is decrypted, the data of the second upgrade subfile does not need to be decrypted into the memory according to the ratio of 1:1, the dependence of upgrade package decryption on the memory of the electronic device is reduced, the decryption time is shortened, and the upgrade efficiency is improved.

Description

technical field [0001] The present application relates to the technical field of terminals, in particular to an encryption and decryption method of an upgrade package, an electronic device and a storage medium. Background technique [0002] Currently, OTA (Over-the-Air Technology) upgrade is a standard software upgrade method provided by the Android system. It has powerful functions and can upgrade the system without loss. It mainly downloads the OTA upgrade package automatically through the network to realize automatic upgrade. [0003] In practice, when using the OTA upgrade package to upgrade, based on the limitation of the encryption technology of the OTA upgrade package in related technologies, encryption requires a large memory, and when decrypting, the entire upgrade package needs to be decrypted to the memory at 1:1, so the OTA upgrade package The encryption and decryption process relies heavily on memory, which is not suitable for models with low configuration, and...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04W12/02
CPCH04W12/02H04W12/35H04W12/033
Inventor 李杨
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products