CN107844309B - System data processing method and device - Google Patents

System data processing method and device Download PDF

Info

Publication number
CN107844309B
CN107844309B CN201710973106.3A CN201710973106A CN107844309B CN 107844309 B CN107844309 B CN 107844309B CN 201710973106 A CN201710973106 A CN 201710973106A CN 107844309 B CN107844309 B CN 107844309B
Authority
CN
China
Prior art keywords
fixed data
data block
fixed
file
terminal
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
CN201710973106.3A
Other languages
Chinese (zh)
Other versions
CN107844309A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710973106.3A priority Critical patent/CN107844309B/en
Publication of CN107844309A publication Critical patent/CN107844309A/en
Application granted granted Critical
Publication of CN107844309B publication Critical patent/CN107844309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The invention provides a system data processing method and device, and belongs to the technical field of computers. According to the system data processing method and device provided by the invention, the development device can establish the fixed partition under the operating system of the terminal, and then the fixed data file generated according to the fixed data block in the system partition is stored in the fixed partition. Therefore, when the terminal upgrades the operating system of the terminal by using the system upgrade package, the fixed data file can be extracted from the fixed data partition, and the fixed data block can be obtained after the fixed data file is decompressed. Therefore, in the embodiment of the invention, when the terminal only needs to include data for updating the data block to be updated in the system upgrade package, the terminal can utilize the fixed data block in the fixed partition to realize the upgrade of the system, thereby reducing the data volume in the system upgrade package, reducing the time for a user to download the system upgrade package and accelerating the efficiency of the system upgrade.

Description

System data processing method and device
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a system data processing method and device.
Background
With the development of the android system, terminal devices of many manufacturers are equipped with the android system, and the android system generally includes a system partition and a data partition. Various data blocks aiming at the android system are stored in the system partition, and third-party application installed by a user, personal data and the like are generally stored in the data partition.
In use, a system developer will typically upgrade the android system. Generally, upgrading the android system is usually achieved by updating a portion of the data blocks in the system partition. The specific upgrading process is generally as follows: the method comprises The steps that a system developer customizes a development system upgrade package according to data stored in a system partition, then an android terminal downloads The system upgrade package through an Over The Air (OTA) technology, and then The system upgrade package is installed to update The data in The system partition, so that android system updating is completed.
Although each system upgrade only updates a part of data blocks in a system partition, when the system is upgraded, data in the system partition is removed, so that the system upgrade package needs to include data blocks which do not need to be updated in addition to data used for updating the data blocks which need to be updated, and thus, the data volume of the system upgrade package is large, and further, the process of downloading and installing the system upgrade package by a user is long.
Disclosure of Invention
In view of the above, the present invention has been made to provide a system data processing method and apparatus that overcome the above problems or at least partially solve the above problems.
According to a first aspect of the present invention, there is provided a system data processing method applied to a development device, the method including:
establishing a fixed partition under an operating system of a terminal;
determining a fixed data block stored in a system partition under the operating system; the fixed data block is a data block which does not need to be changed in a system partition when the terminal upgrades the operating system;
generating a fixed data file according to the fixed data block;
and storing the fixed data file into the fixed partition.
Optionally, the method further includes:
and storing the name of the fixed data block into a preset android compiled file so as to determine the fixed data block according to the name when the operating system is modified.
Optionally, the step of generating a fixed data file according to the fixed data block includes:
and compressing the fixed data block according to a preset format to obtain a fixed data file.
Optionally, the method further includes:
and adding a decompression command in a preset android script file so that the terminal converts the fixed data file into an executable fixed data block.
Optionally, the method further includes:
and setting a permission modification interface in a preset android system setting file so that the terminal can change the file permission of the fixed data block through the permission modification interface.
According to a second aspect of the present invention, there is provided a system data processing method applied to a terminal, the method including:
when a system upgrade package is used for upgrading an operating system of a terminal, extracting a fixed data file stored in a fixed partition of the terminal;
decompressing the fixed data file to obtain an executable fixed data block;
carrying out system upgrading by using the data in the system upgrading packet and the fixed data block;
the fixed partition is established under an operating system of the terminal through a preset development device; the fixed data block is stored in the fixed partition by the development device; the fixed data block is a data block which does not need to be changed when the operating system is upgraded.
Optionally, the method further includes:
and changing the file authority of the fixed data block into an initial authority so as to read the fixed data file when the operating system is upgraded.
Optionally, the system upgrade package stores a soft link of a fixed data block corresponding to the fixed data block;
and the fixed data block soft link is used for indicating the terminal to call the data in the fixed data block according to the storage path when the terminal utilizes the data in the system upgrade package and the fixed data block to carry out system upgrade.
According to a third aspect of the present invention, there is provided a system data processing apparatus, which may include:
the establishing module is used for establishing a fixed partition under an operating system of the terminal;
the determining module is used for determining a fixed data block stored in a system partition under the operating system; the fixed data block is a data block which does not need to be changed in a system partition when the terminal upgrades the operating system;
the generating module is used for generating a fixed data file according to the fixed data block;
and the first storage module is used for storing the fixed data file into the fixed partition.
Optionally, the apparatus further comprises:
and the second storage module is used for storing the names of the fixed data blocks into a preset android compiled file so as to determine the fixed data blocks according to the names when the operating system is modified.
Optionally, the generating module is configured to:
and compressing the fixed data block according to a preset format to obtain a fixed data file.
Optionally, the apparatus further comprises:
and the adding module is used for adding a decompression command in a preset android script file so as to enable the terminal to convert the fixed data file into an executable fixed data block.
Optionally, the apparatus further comprises:
and the setting module is used for setting an authority modification interface in a preset android system setting file so that the terminal can change the file authority of the fixed data block through the authority modification interface.
According to a fourth aspect of the present invention, there is provided a system data processing apparatus, which may include:
the extraction module is used for extracting the fixed data files stored in the fixed partition of the terminal when the system upgrade package is used for upgrading the operating system of the terminal;
the decompression module is used for decompressing the fixed data file to obtain an executable fixed data block;
the upgrading module is used for upgrading the system by using the data in the system upgrading packet and the fixed data block;
the fixed partition is established under an operating system of the terminal through a preset development device; the fixed data block is stored in the fixed partition by the development device; the fixed data block is a data block which does not need to be changed when the operating system is upgraded.
Optionally, the apparatus further comprises:
and the changing module is used for changing the file authority of the fixed data block into the initial authority so as to read the fixed data file when the operating system is upgraded.
Optionally, the system upgrade package stores a soft link of a fixed data block corresponding to the fixed data block;
and the fixed data block soft link is used for indicating the terminal to call the data in the fixed data block according to the storage path when the terminal utilizes the data in the system upgrade package and the fixed data block to carry out system upgrade.
Aiming at the prior art, the invention has the following advantages:
according to the system data processing method and device provided by the embodiment of the invention, the development device can establish the fixed partition under the operating system of the terminal, and then the fixed data file generated according to the fixed data block in the system partition is stored in the fixed partition. Therefore, when the terminal upgrades the operating system of the terminal by using the system upgrade package, the fixed data file can be extracted from the fixed data partition, and the fixed data block can be obtained after the fixed data file is decompressed. In the embodiment of the invention, when the system upgrading packet only comprises data for updating the data block needing to be updated, the terminal can utilize the fixed data block in the fixed partition to realize the upgrading of the system, thereby reducing the data volume in the system upgrading packet, reducing the time for a user to download the system upgrading packet and accelerating the efficiency of the system upgrading.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic diagram of an implementation environment related to a system data processing method provided by an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for processing system data according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating steps of another method for processing system data according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating steps of a method for processing system data according to another embodiment of the present invention;
FIG. 5 is a block diagram of a system data processing apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of another system data processing apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a schematic diagram of an implementation environment related to a system data processing method provided by an embodiment of the present invention, and as shown in fig. 1, the implementation environment may include: a development device 110 and at least one terminal 120.
The development device 110 may be a computer. The terminal 120 may be a smartphone, a television set-top box, a tablet computer, a multimedia player, an e-reader, a wearable device, etc. The connection between the development device 110 and the terminal 120 may be established through a communication line, which may be a Universal Serial Bus (USB) line. The development device 110 can operate on the system data in the terminal 120. The system data may include blocks of data that do not need to be changed when the operating system of the terminal 120 is upgraded.
Fig. 2 is a flowchart of steps of another system data processing method provided in an embodiment of the present invention, which is applied to a development device, and as shown in fig. 2, the method may include:
step 201, establishing a fixed partition under the operating system of the terminal.
In the embodiment of the present invention, the development device may modify a Universal Boot Loader (Uboot) to establish the fixed partition. For example, the uboot source code may be modified accordingly, and the partitions of the operating system and the storage capacity of each partition may be reallocated to implement establishment of the fixed partition.
Step 202, determining a fixed data block stored in a system partition under the operating system.
In the embodiment of the present invention, the fixed data block is a data block that does not need to be changed when the terminal upgrades the operating system. The fixed data block may be determined according to specific development requirements. Generally, different development requirements may be different for data blocks that need not be changed when upgrading a system. In a specific implementation, one or more fixed data blocks may be used, which is not limited in this embodiment of the present invention. For example, a data block named dumpsys and a data block named am may be determined according to development requirements as data blocks that need not be changed when upgrading.
And 203, generating a fixed data file according to the fixed data block.
Due to the characteristics of the development environment, the data stored in the partition by the development device must be data compressed in a preset format. Therefore, in the embodiment of the invention, the fixed data block can be compressed in a preset format to obtain the fixed data file. For example, the preset format may be a Fourth generation extended file system (ext 4) format. For example, the development device may compress the fixed data blocks in ext4 format to generate a fixed data file, and the resulting fixed data file may be an image file, which may be denoted as img. It should be noted that the preset format may also be another format, which is not limited in the embodiment of the present invention.
And step 204, storing the fixed data file into the fixed partition.
In the embodiment of the invention, the development device can store the fixed data file into the fixed partition in a burning mode. Specifically, the development device can perform burning by using burning software installed on the development device, first, information of the newly-built fixed partition is written into a burning file configuration of the burning software, then, the fixed partition is connected with a terminal through a USB (universal serial bus) line, and finally, the fixed data file is burned into the fixed partition. It should be noted that, in another alternative embodiment of the present invention, the fixed data file may also be stored in the fixed partition in other ways, for example, a copy operation, and the like, which is not limited in the implementation of the present invention.
In summary, in the system data processing method provided in the embodiment of the present invention, the development device may establish the fixed partition under the operating system of the terminal, generate the fixed data file according to the fixed data block in the system partition under the operating system, and finally store the fixed data file in the fixed partition. Therefore, when the terminal upgrades the operating system of the terminal by using the system upgrade package, the fixed data file can be extracted from the fixed data partition, and the fixed data block can be obtained after the fixed data file is decompressed. Therefore, in the embodiment of the present invention, when the system upgrade package only includes data for updating the data block to be updated, the terminal may use the fixed data block in the fixed partition to upgrade the system, thereby reducing the data amount in the system upgrade package, reducing the time for a user to download the system upgrade package, and accelerating the efficiency of system upgrade.
Fig. 3 is a flowchart of steps of a system data processing method provided in an embodiment of the present invention, which is applied to a terminal, and as shown in fig. 3, the method may include:
step 301, when the operating system of the terminal is upgraded by using the system upgrade package, extracting the fixed data file stored in the fixed partition of the terminal.
In this embodiment of the present invention, the fixed partition may be established by the development device under the operating system of the terminal, and the fixed data file is stored in the fixed partition by the development device. The fixed data file is obtained after a development device compresses a fixed data block, the fixed data block is a data block which does not need to be changed when the terminal upgrades an operating system, and the fixed data block can be determined according to actual development requirements.
Step 302, decompressing the fixed data file to obtain an executable fixed data block.
In practical application, when the terminal upgrades the operating system, part of the data blocks in the system partition are generally updated, and although the fixed data files stored in the fixed data partition are fixed data files which do not need to be updated, the data in the fixed data blocks are called in the process of upgrading. The fixed data file preset in the fixed data partition by the development device is a file obtained by compressing the fixed data block through a preset format, so that the data in the fixed data file cannot be directly called in the upgrading process. In this step, the fixed data file needs to be decompressed to obtain a fixed data block, so as to realize system upgrade.
Specifically, the extracted fixed data file may be decompressed through a decompression command to obtain the executable fixed data block. Therefore, in the process of upgrading the system, the data in the fixed data block can be called to ensure that the system is upgraded normally.
And 303, upgrading the system by using the data in the system upgrading packet and the fixed data block.
In the embodiment of the invention, the data block needing to be updated can be updated by using the data in the system upgrading packet, and the data in the fixed data block can be called in the updating process, so that the system upgrading is realized. The data in the fixed data block may also be used during subsequent system operations.
In summary, the system data processing method provided in the embodiments of the present invention may extract the fixed data file in the fixed data partition when the system upgrade package is used to upgrade the operating system of the terminal, and may obtain the fixed data block after decompressing the fixed data file. Therefore, in the embodiment of the present invention, when the system upgrade package only includes data for updating the data block to be updated, the terminal may use the fixed data block in the fixed partition to upgrade the system, thereby reducing the data amount in the system upgrade package, reducing the time for a user to download the system upgrade package, and accelerating the efficiency of system upgrade.
Fig. 4 is a flowchart of steps of another system data processing method provided in an embodiment of the present invention, and as shown in fig. 4, the method may include:
step 401, the development device establishes a fixed partition under the operating system of the terminal.
Specifically, the step 201 may be referred to for a specific implementation manner of this step, and details of the embodiment of the present invention are not described herein.
Step 402, the development device determines the fixed data blocks stored in the system partition under the operating system.
Specifically, the step 202 may be referred to for a specific implementation manner of this step, and details are not described herein in this embodiment of the present invention.
And 403, generating a fixed data file by the development device according to the fixed data block.
Specifically, step 403 may include:
step 4031, the development device compresses the fixed data block according to a preset format to obtain a fixed data file.
Specifically, the specific implementation manner of this step may refer to step 203 described above, and details of the embodiment of the present invention are not described herein.
Step 404, the development device stores the fixed data file into the fixed partition.
Specifically, the specific implementation manner of this step may refer to step 204 described above, and details of the embodiment of the present invention are not described herein.
And 405, the developing device stores the name of the fixed data block into a preset android compiled file so that the fixed data block can be determined according to the name when the operating system is modified.
The preset installation compiling file is a file with a compiling function in an android system, and the preset android compiling file can be an android. In practical application, in the development process of the same operating system, there may be a situation where multiple developers develop the same operating system, and therefore it is necessary to ensure that each developer can know which data blocks in a system partition are determined as fixed data blocks, so as to ensure normal development of the system.
Therefore, in the embodiment of the present invention, the names of the fixed data blocks are stored in the preset android compiled file, so that when the operating system is modified again, a developer can quickly determine which data blocks are determined as the fixed data blocks according to the names in the preset android compiled file.
Specifically, during storage, a list may be generated according to the name of the fixed data block, and then the list may be stored in a preset android compiled file. Assuming that there are two fixed data blocks, one of which is named a and the other of which is named b, a list X may be generated, which includes the names a and b.
It should be noted that, in practical applications, when the operating system is modified again, a developer may also determine which data blocks are determined as fixed data blocks by analyzing the fixed data files in the fixed data partition, so that step 405 may be omitted, and development cost is saved.
And 406, adding a decompression command in a preset android script file by the development device so that the terminal converts the fixed data file into an executable fixed data block.
In the embodiment of the present invention, the preset android script file may be an "init. Since the fixed data file is a file compressed in a preset format, the terminal cannot directly use the data in the fixed data file. Therefore, in this step, the development device adds the decompression command to the preset android script file, so that the terminal can decompress the fixed data file according to the decompression command to obtain the fixed data block.
And 407, setting an authority modification interface in a preset android system setting file by the development device so that the terminal can change the file authority of the fixed data block through the authority modification interface.
Because the fixed data block is originally stored in the system partition, after the fixed data block is stored in the fixed partition, the operating system can default to set a lowest file authority for the fixed data block, for example, the file authority is set to be unreadable or unwritable, so that the terminal cannot read and write data in the fixed data block in the operation process, and the operating system cannot normally operate. Therefore, in the embodiment of the invention, the development device can set the permission modification interface in the preset android system setting file, and the permission modification interface can indicate the permission of the terminal to modify the fixed data block, so that the problem that the system cannot normally run due to the fact that the file permission is different from the initial permission is solved.
In the embodiment of the present invention, the preset android system setup file may be denoted as "system/core/include/private/android _ filesystem _ config", and the permission modification interface may include an initial permission of the fixed data block, that is, a file permission that the fixed data block has when the system is partitioned, so that the permission modification interface may instruct the terminal to change the file permission of the fixed data block to the initial permission.
Further, in practical applications, when the terminal performs system upgrade, the terminal calls data in the fixed data block while upgrading according to data in the system upgrade package, so that the data in the system upgrade package has address parameters for calling the data in the fixed data block. In the embodiment of the present invention, the fixed data block is stored in the fixed partition, that is, the storage location of the fixed data block is changed. In order to ensure that the data in the fixed data block can be normally called when the system is upgraded, the address parameters in the system upgrade package can be changed according to the storage path of the fixed data block in the fixed partition. However, since the address parameters are many, the workload of changing the address parameters is large. Therefore, in the embodiment of the present invention, a fixed data block soft link may be generated according to a storage path of a fixed data block in a fixed partition, where the fixed data block soft link carries the storage path of the fixed data block in the fixed partition, and the fixed data block soft link is used to instruct the terminal to call data in the fixed data block according to the storage path when performing system upgrade by using data in the system upgrade package and the fixed data block; then when the system needs to be upgraded, the developer can store the fixed data blocks in corresponding positions in the system upgrade package in a soft link mode. Thus, normal calling can be realized without changing the calling address parameter.
And step 408, when the terminal upgrades the operating system of the terminal by using the system upgrade package, extracting the fixed data file stored in the fixed partition of the terminal.
In this step, the system upgrade package may store the fixed data block soft link corresponding to the fixed data block. Wherein the fixed data block soft link carries a storage path of the fixed data block in the fixed partition. Therefore, in the subsequent upgrading process, the terminal can call the data in the fixed data block according to the soft link of the fixed data block.
Step 409, the terminal decompresses the fixed data file to obtain an executable fixed data block.
Specifically, the step 302 may be referred to for a specific implementation manner of this step, and details are not described herein in this embodiment of the present invention.
And step 410, the terminal carries out system upgrade by using the data in the system upgrade package and the fixed data block.
Specifically, the specific implementation manner of this step may refer to step 303 described above, and details of the embodiment of the present invention are not described herein.
Step 411, the terminal changes the file authority of the fixed data block into an initial authority so as to read the fixed data file when the operating system is upgraded.
In the android system, when the storage position of the data changes, the operating system changes the file authority of the data with the changed storage position to the lowest authority, so that in the embodiment of the invention, the file authority of the fixed data block changes when the fixed data block is stored in the fixed partition.
In this step, since the development device sets the permission modification interface in the preset android system setting file in advance, the terminal can change the file permission of the fixed data block into the initial permission according to the permission modification interface. For example, assuming that the initial permission is readable and writable, the terminal may change the file permission of the fixed data block to be readable and writable according to the permission modification interface.
It should be noted that, the order of the steps of the system data processing method provided by the embodiment of the present disclosure may be appropriately adjusted, and the steps may also be correspondingly increased or decreased according to the situation. For example, the step 406 may be before the step 405, the step 407 may be before the step 406, and any person skilled in the art can easily think of various methods within the technical scope of the disclosure, which are within the protection scope of the disclosure, and thus, the description thereof is omitted.
In summary, according to another system data processing method provided in the embodiments of the present invention, the development device may establish the fixed partition under the operating system of the terminal, generate the fixed data file according to the fixed data block in the system partition under the operating system, and finally store the fixed data file in the fixed partition. Therefore, when the terminal upgrades the operating system of the terminal by using the system upgrade package, the fixed data file can be extracted from the fixed data partition, and the fixed data block can be obtained after the fixed data file is decompressed. Therefore, in the embodiment of the present invention, when the system upgrade package only includes data for updating the data block to be updated, the terminal may use the fixed data block in the fixed partition to upgrade the system, thereby reducing the data amount in the system upgrade package, reducing the time for a user to download the system upgrade package, and accelerating the efficiency of system upgrade.
Fig. 5 is a block diagram of another system data processing apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus 50 may include:
the establishing module 501 is configured to establish a fixed partition under an operating system of the terminal.
A determining module 502, configured to determine a fixed data block stored in a system partition under the operating system.
The fixed data block is a data block which does not need to be changed in a system partition when the terminal upgrades the operating system.
A generating module 503, configured to generate a fixed data file according to the fixed data block.
A first storage module 504, configured to store the fixed data file in the fixed partition.
Optionally, the apparatus 50 further includes:
a second storage module 505, configured to store the name of the fixed data block in a preset android compiled file, so that the fixed data block can be determined according to the name when the operating system is modified.
Optionally, the generating module 503 is configured to:
and compressing the fixed data block according to a preset format to obtain a fixed data file.
Optionally, the apparatus 50 further includes:
an adding module 506, configured to add a decompression command in a preset android script file, so that the terminal converts the fixed data file into an executable fixed data block.
Optionally, the apparatus 50 further includes:
a setting module 507, configured to set an authority modification interface in a preset android system setting file, so that the terminal changes the file authority of the fixed data block through the authority modification interface.
In summary, in another system data processing apparatus provided in the embodiment of the present invention, the establishing module may establish the fixed partition under the operating system of the terminal, then the generating module generates the fixed data file according to the fixed data block in the system partition under the operating system, and finally the storing module stores the fixed data file in the fixed partition. Therefore, when the terminal upgrades the operating system of the terminal by using the system upgrade package, the fixed data file can be extracted from the fixed data partition, and the fixed data block can be obtained after the fixed data file is decompressed. Therefore, in the embodiment of the present invention, when the system upgrade package only includes data for updating the data block to be updated, the terminal may use the fixed data block in the fixed partition to upgrade the system, thereby reducing the data amount in the system upgrade package, reducing the time for a user to download the system upgrade package, and accelerating the efficiency of system upgrade.
Fig. 6 is a block diagram of a system data processing apparatus according to an embodiment of the present invention, and as shown in fig. 6, the apparatus 60 may include:
the extracting module 601 is configured to extract a fixed data file stored in a fixed partition of the terminal when the system upgrade package is used to upgrade an operating system of the terminal.
A decompressing module 602, configured to decompress the fixed data file to obtain an executable fixed data block.
And the upgrading module 603 is configured to perform system upgrading by using the data in the system upgrade package and the fixed data block.
The fixed partition is established under an operating system of the terminal through a preset development device; the fixed data block is stored in the fixed partition by the development device;
the fixed data block is a data block which does not need to be changed when the operating system is upgraded.
Optionally, the apparatus 60 further includes:
a changing module 604, configured to change the file permission of the fixed data block to an initial permission, so as to read the fixed data file when the operating system is upgraded.
Optionally, the system upgrade package stores a soft link of a fixed data block corresponding to the fixed data block;
and the fixed data block soft link is used for indicating the terminal to call the data in the fixed data block according to the storage path when the terminal utilizes the data in the system upgrade package and the fixed data block to carry out system upgrade.
In summary, in the system data processing apparatus provided in the embodiment of the present invention, when the extraction module uses the system upgrade package to upgrade the operating system of the terminal, the fixed data file may be extracted from the fixed data partition, and the decompression module decompresses the fixed data file to obtain the fixed data block. Therefore, in the embodiment of the present invention, when the system upgrade package only includes data for updating the data block to be updated, the terminal may use the fixed data block in the fixed partition to upgrade the system, thereby reducing the data amount in the system upgrade package, reducing the time for a user to download the system upgrade package, and accelerating the efficiency of system upgrade.
For the above device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As is readily imaginable to the person skilled in the art: any combination of the above embodiments is possible, and thus any combination between the above embodiments is an embodiment of the present invention, but the present disclosure is not necessarily detailed herein for reasons of space.
The system data processing methods provided herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system incorporating aspects of the present invention will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the system data processing method according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (14)

1. A system data processing method is applied to a development device, and is characterized by comprising the following steps:
establishing a fixed partition under an operating system of a terminal;
determining a fixed data block stored in a system partition under the operating system; the fixed data block is a data block which does not need to be changed in a system partition when the terminal upgrades the operating system; data in the system partition is cleared when the terminal upgrades the operating system;
generating a fixed data file according to the fixed data block;
storing the fixed data file into the fixed partition;
wherein the determining the fixed data blocks stored in the system partition under the operating system comprises:
determining the fixed data block in the data blocks stored in the system partition under the operating system according to a preset name;
wherein the method further comprises:
adding a decompression command in a preset android script file to enable the terminal to convert the fixed data file into an executable fixed data block; the preset android script file is an init.
2. The method of claim 1, further comprising:
and storing the name of the fixed data block into a preset android compiled file so as to determine the fixed data block according to the name when the operating system is modified.
3. The method of claim 1, wherein the step of generating a fixed data file from the fixed data blocks comprises:
and compressing the fixed data block according to a preset format to obtain a fixed data file.
4. The method of claim 1, further comprising:
and setting a permission modification interface in a preset android system setting file so that the terminal can change the file permission of the fixed data block through the permission modification interface.
5. A system data processing method is applied to a terminal, and is characterized by comprising the following steps:
when a system upgrade package is used for upgrading an operating system of a terminal, extracting a fixed data file stored in a fixed partition of the terminal;
decompressing the fixed data file according to a decompression command in a preset android script file to obtain an executable fixed data block; the preset android script file is an init.rc file;
carrying out system upgrading by using the data in the system upgrading packet and the fixed data block;
the fixed partition is established under an operating system of the terminal through a preset development device; the fixed data block is stored in the fixed partition by the development device; the fixed data block is a data block which does not need to be changed when the operating system is upgraded; the fixed data block is determined by the development device in the data block stored in the system partition under the operating system according to a preset name;
before the system upgrade is performed by using the data in the system upgrade package and the fixed data block, the method further includes:
and clearing all data in the terminal system partition.
6. The method of claim 5, further comprising:
and changing the file authority of the fixed data block into an initial authority so as to read the fixed data file when the operating system is upgraded.
7. The method according to claim 5, wherein the system upgrade package stores soft links of the fixed data blocks corresponding to the fixed data blocks;
and the fixed data block soft link is used for indicating the terminal to call the data in the fixed data block according to the storage path when the terminal utilizes the data in the system upgrade package and the fixed data block to carry out system upgrade.
8. A system data processing apparatus, the apparatus comprising:
the establishing module is used for establishing a fixed partition under an operating system of the terminal;
the determining module is used for determining a fixed data block stored in a system partition under the operating system; the fixed data block is a data block which does not need to be changed in a system partition when the terminal upgrades the operating system; data in the system partition is cleared when the terminal upgrades the operating system;
the generating module is used for generating a fixed data file according to the fixed data block;
the first storage module is used for storing the fixed data file into the fixed partition;
wherein the determining module is specifically configured to:
determining the fixed data block in the data blocks stored in the system partition under the operating system according to a preset name;
wherein the apparatus further comprises:
the adding module is used for adding a decompression command in a preset android script file so that the terminal converts the fixed data file into an executable fixed data block; the preset android script file is an init.
9. The apparatus of claim 8, further comprising:
and the second storage module is used for storing the names of the fixed data blocks into a preset android compiled file so as to determine the fixed data blocks according to the names when the operating system is modified.
10. The apparatus of claim 8, wherein the generating module is configured to:
and compressing the fixed data block according to a preset format to obtain a fixed data file.
11. The apparatus of claim 8, further comprising:
and the setting module is used for setting an authority modification interface in a preset android system setting file so that the terminal can change the file authority of the fixed data block through the authority modification interface.
12. A system data processing apparatus, the apparatus comprising:
the extraction module is used for extracting the fixed data files stored in the fixed partition of the terminal when the system upgrade package is used for upgrading the operating system of the terminal;
the decompression module is used for decompressing the fixed data file according to a decompression command in a preset android script file to obtain an executable fixed data block; the preset android script file is an init.rc file;
the upgrading module is used for upgrading the system by using the data in the system upgrading packet and the fixed data block;
the fixed partition is established under an operating system of the terminal through a preset development device; the fixed data block is stored in the fixed partition by the development device; the fixed data block is a data block which does not need to be changed when the operating system is upgraded; the fixed data block is determined by the development device in the data block stored in the system partition under the operating system according to a preset name;
wherein the apparatus is further configured to:
and clearing all data in the terminal system partition.
13. The apparatus of claim 12, further comprising:
and the changing module is used for changing the file authority of the fixed data block into the initial authority so as to read the fixed data file when the operating system is upgraded.
14. The apparatus according to claim 12, wherein the system upgrade package stores a soft link of the fixed data block corresponding to the fixed data block;
and the fixed data block soft link is used for indicating the terminal to call the data in the fixed data block according to the storage path when the terminal utilizes the data in the system upgrade package and the fixed data block to carry out system upgrade.
CN201710973106.3A 2017-10-18 2017-10-18 System data processing method and device Active CN107844309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710973106.3A CN107844309B (en) 2017-10-18 2017-10-18 System data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710973106.3A CN107844309B (en) 2017-10-18 2017-10-18 System data processing method and device

Publications (2)

Publication Number Publication Date
CN107844309A CN107844309A (en) 2018-03-27
CN107844309B true CN107844309B (en) 2020-11-27

Family

ID=61662768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710973106.3A Active CN107844309B (en) 2017-10-18 2017-10-18 System data processing method and device

Country Status (1)

Country Link
CN (1) CN107844309B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100425020C (en) * 2004-12-31 2008-10-08 中国科学院声学研究所 Method for upgrading software of digital terminal system in DVB system
US8429209B2 (en) * 2010-08-16 2013-04-23 Symantec Corporation Method and system for efficiently reading a partitioned directory incident to a serialized process
CN106446723B (en) * 2016-09-21 2019-04-05 电子科技大学 Android mobile terminal data isolation method

Also Published As

Publication number Publication date
CN107844309A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN107506221B (en) Application program upgrading method, device and equipment
CN105138382B (en) A kind of method and terminal of android system upgrading
CN105867947B (en) Data processing method and device after preset application program updating
CN104991793B (en) A kind of method, apparatus and system for application program subpackage
US8719810B2 (en) Program upgrade system and method for over the air-capable mobile terminal
CN110597542B (en) Software automatic OTA (over the air) upgrading method and device and electronic equipment
CN105975311B (en) Application starting method and device
CN104375849A (en) Core loading method and device
CN110750288A (en) Native engineering configuration method and device, electronic equipment and storage medium
CN103365644A (en) Method and device for expanding software functions
CN105407130A (en) Mobile client plug-in system and mobile client plug-in processing method
CN107239309B (en) Patch generation method and device, updating method, electronic device and storage medium
CN106293849B (en) application updating method and terminal
CN109933350B (en) Method and device for embedding codes in application and electronic equipment
CN109857432B (en) Hot updating method and device for game application
CN111427596A (en) Software upgrading method and device and terminal equipment
CN103793248A (en) Method and device for upgrading application program
CN108228077B (en) Storage area management method, operation method, device, equipment and readable medium
CN112631622A (en) Application installation method and device, server and computer readable medium
CN110489162B (en) Method, device, medium and equipment for simplifying installation package SO (storage and retrieval) file
CN109032617B (en) Control method and control device for automatically deleting installation package
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN114490103A (en) Operating system interface calling method and device and electronic equipment
CN107844309B (en) System data processing method and device
JP6001199B2 (en) Method for automatic conversion of package for taizen installation of android application and computer-readable recording medium therefor

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