CN109947450A - System file upgrade method, device, mobile terminal and readable storage medium - Google Patents
System file upgrade method, device, mobile terminal and readable storage medium Download PDFInfo
- Publication number
- CN109947450A CN109947450A CN201910211390.XA CN201910211390A CN109947450A CN 109947450 A CN109947450 A CN 109947450A CN 201910211390 A CN201910211390 A CN 201910211390A CN 109947450 A CN109947450 A CN 109947450A
- Authority
- CN
- China
- Prior art keywords
- terminal
- data
- system file
- upgrade
- upgraded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及文件升级技术领域,尤其涉及一种系统文件升级方法、装置、移动终端及可读存储介质。The present invention relates to the technical field of file upgrade, and in particular, to a system file upgrade method, device, mobile terminal and readable storage medium.
背景技术Background technique
为了满足不同用户的需求,设备厂商往往用相同的硬件主板适配多个不同的终端显示设备;为了减少终端显示设备的软件系统开发和后续维护的工作量,软件系统通常是先将所有适配的终端显示设备的配置数据打包至一个升级包中,然后将该升级包数据分别放入各个终端显示设备用于存放配置数据的文件系统分区中,对各个终端显示设备进行升级。然而,每个终端显示设备中用于存放配置数据的文件系统分区大小是固定且有限的,当适配的终端显示设备越来越多时,需要打包至升级包中的配置数据越来越大,打包的升级包也越来越大,最终会超过用于存放配置数据的文件系统分区大小,从而导致升级包过大无法放入文件系统分区,造成无法升级的问题。In order to meet the needs of different users, equipment manufacturers often use the same hardware motherboard to adapt multiple different terminal display devices; in order to reduce the workload of software system development and subsequent maintenance of terminal display devices, the software system usually first adapts all the The configuration data of the terminal display device is packaged into an upgrade package, and then the upgrade package data is put into the file system partitions of each terminal display device for storing configuration data, and each terminal display device is upgraded. However, the size of the file system partition used to store configuration data in each terminal display device is fixed and limited. When more and more terminal display devices are adapted, the configuration data that needs to be packaged into the upgrade package becomes larger and larger. The packaged upgrade package is also getting larger and larger, and will eventually exceed the size of the file system partition used to store configuration data. As a result, the upgrade package is too large to fit into the file system partition, resulting in the problem of inability to upgrade.
当前,出现上述问题时的主要解决办法有两种:一种是修改终端显示设备的文件系统分区的大小,但是后续还是会存在升级包数据大小超过文件系统分区容量大小的风险,且存储设备的总大小一定,加大终端显示设备配置数据的文件系统分区大小,必然会减少其他文件系统分区大小,此时可能会带来其他问题;因此,通过修改终端的文件系统分区大小并不能实现适配无限多个终端。另一种是,新增适配的终端显示设备时,软件系统新增一个升级包适配后续新增的终端显示设备;但是,随着软件升级包的不断增加,后续软件的开发和维护成本会快速增长;因此,通过新增升级包适配新增的终端实现适配无限多个终端,也不太现实。At present, there are two main solutions to the above problems: one is to modify the size of the file system partition of the terminal display device, but there is still a risk that the size of the upgrade package data will exceed the capacity of the file system partition, and the storage device's size The total size is fixed. Increasing the size of the file system partition of the terminal display device configuration data will inevitably reduce the size of other file system partitions, which may cause other problems. Therefore, the adaptation cannot be achieved by modifying the file system partition size of the terminal. Unlimited number of terminals. The other is that when an adapted terminal display device is added, an upgrade package is added to the software system to adapt to the subsequently added terminal display device; however, with the continuous increase of software upgrade packages, the development and maintenance costs of subsequent software It will grow rapidly; therefore, it is not realistic to adapt to the new terminals by adding an upgrade package to adapt to an unlimited number of terminals.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist the understanding of the technical solutions of the present invention, and does not mean that the above content is the prior art.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提供一种系统文件升级方法,旨在解决因适配终端个数增多,同一升级包所包含的数据过大,从而无法将升级包数据升级至适配终端,导致无法不限制数量地新增适配终端的技术问题。The main purpose of the present invention is to provide a system file upgrade method, which aims to solve the problem that due to the increase in the number of adaptation terminals, the data contained in the same upgrade package is too large, so that the upgrade package data cannot be upgraded to the adaptation terminal, resulting in the inability to The technical problem of adding a limited number of adaptation terminals.
为实现上述目的,本发明提供一种系统文件升级方法,包括:To achieve the above purpose, the present invention provides a system file upgrade method, comprising:
获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志;Obtain the preset data upgrade package, and read the partition flag of the system file partition used by the terminal to be upgraded to store configuration data;
从预设数据升级包中获取与所述分区标志对应的子数据包;Obtain the sub-data package corresponding to the partition flag from the preset data upgrade package;
将所述子数据包升级至与所述分区标志对应的系统文件分区.Upgrade the subpackage to the system file partition corresponding to the partition flag.
可选地,所述获取预设数据升级包的步骤之前还包括:Optionally, before the step of acquiring the preset data upgrade package further includes:
获取各个适配终端的配置数据,以及各个所述适配终端用于存放配置数据的系统文件分区的分区容量;Obtain the configuration data of each adaptation terminal, and the partition capacity of the system file partition used by each adaptation terminal to store the configuration data;
根据所述分区容量,对所述配置数据进行编译打包,以生成所述预设数据升级包。According to the partition capacity, the configuration data is compiled and packaged to generate the preset data upgrade package.
可选地,所述根据所述分区容量,对所述配置数据进行编译打包,以生成所述预设数据升级包的步骤包括:Optionally, the step of compiling and packaging the configuration data according to the partition capacity to generate the preset data upgrade package includes:
根据所述分区容量,将所述配置数据组合为各个子数据包;combining the configuration data into sub-packets according to the partition capacity;
将所述子数据包进行编译打包,以生成所述预设数据升级包。The sub-data package is compiled and packaged to generate the preset data upgrade package.
可选地,所述根据所述分区容量,将所述配置数据组合为各个子数据包的步骤包括:Optionally, the step of combining the configuration data into each sub-packet according to the partition capacity includes:
判断所述配置数据的数据总和是否大于所述分区容量;Determine whether the data sum of the configuration data is greater than the partition capacity;
若所述配置数据的数据总和大于所述分区容量,则将所述配置数据组合成个数为大于一且小于所述适配终端数的子数据包。If the data sum of the configuration data is greater than the partition capacity, the configuration data is combined into sub-packets whose number is greater than one and less than the number of adaptation terminals.
可选地,所述获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志的步骤包括:Optionally, the step of obtaining a preset data upgrade package and reading the partition flag of the system file partition used by the terminal to be upgraded for storing configuration data includes:
当检测到待升级终端开机或重启时,获取所述待升级终端的升级标志;When it is detected that the terminal to be upgraded is powered on or restarted, acquiring the upgrade flag of the terminal to be upgraded;
根据所述升级标志,获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志。According to the upgrade flag, a preset data upgrade package is acquired, and the partition flag of the system file partition used by the terminal to be upgraded for storing configuration data is read.
可选地,所述从预设数据升级包中获取与所述分区标志对应的子数据包的步骤包括:Optionally, the step of obtaining the sub-data package corresponding to the partition flag from the preset data upgrade package includes:
在所述预设数据升级包的各个子数据包中查找含有所述分区标志的子数据包;Searching for the sub-data package containing the partition mark in each sub-data package of the preset data upgrade package;
获取含有所述分区标志的子数据包。Get the sub-packet that contains the partition flag.
可选地,所述将所述子数据包升级至与所述分区标志对应的系统文件分区的步骤之后还包括:Optionally, after the step of upgrading the sub-data package to the system file partition corresponding to the partition flag, the step further includes:
判断将所述子数据包升级至与所述分区标志对应的系统文件分区的操作是否成功;judging whether the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is successful;
若将所述子数据包升级至与所述分区标志对应的系统文件分区的操作不成功,则返回将所述子数据包升级至与所述分区标志对应的系统文件分区的操作。If the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is unsuccessful, the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is returned.
此外,为实现上述目的,本发明还提供一种系统文件升级装置,所述系统文件升级装置包括:In addition, in order to achieve the above object, the present invention also provides a system file upgrade device, the system file upgrade device includes:
第一获取模块,用于获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志;a first obtaining module, configured to obtain a preset data upgrade package, and read the partition flag of the system file partition used by the terminal to be upgraded for storing configuration data;
第二获取模块,用于从预设数据升级包中获取与所述分区标志对应的子数据包;a second acquisition module, configured to acquire the sub-data package corresponding to the partition flag from the preset data upgrade package;
升级模块,用于将所述子数据包升级至与所述分区标志对应的系统文件分区。An upgrade module, configured to upgrade the sub-data package to the system file partition corresponding to the partition flag.
此外,为实现上述目的,本发明还提供一种移动终端,所述移动终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的系统文件升级程序,所述系统文件升级程序被所述处理器执行时实现如上所述的系统文件升级方法的步骤。In addition, in order to achieve the above object, the present invention also provides a mobile terminal, the mobile terminal includes: a memory, a processor and a system file upgrade program stored in the memory and running on the processor, the When the system file upgrade program is executed by the processor, the steps of the system file upgrade method described above are implemented.
此外,为实现上述目的,本发明还提供一种可读存储介质,所述可读存储介质上存储有系统文件升级程序,所述系统文件升级程序被处理器执行时实现如上所述的系统文件升级方法的步骤。In addition, in order to achieve the above object, the present invention also provides a readable storage medium, where a system file upgrade program is stored on the readable storage medium, and when the system file upgrade program is executed by a processor, the above-mentioned system file is implemented Steps for the upgrade method.
本发明实施例提出的一种系统文件升级方法、装置、移动终端及存储介质,通过将多个适配的终端的配置数据放入不同的子数据包,然后将各个子数据包一起编译打包至一个升级包中,使得软件系统需要打包的升级包个数只有一个,从而减少后续软件系统开发和维护的工作量;适配终端在升级时,在升级包中查找到与适配终端用于存放配置数据的系统文件分区的分区标志相同的子数据包、并升级至存放配置数据的系统文件分区;避免了因适配终端个数增多,同一升级包所包含的数据过大,升级包数据太大而不能放入适配终端的系统文件分区,从而无法将升级包数据升级至适配终端,导致无法不限制数量地新增适配终端的问题;从而可以实现在减少软件系统开发和维护的工作量的同时,实现适配无限多个终端。A system file upgrade method, device, mobile terminal and storage medium proposed by the embodiments of the present invention, by putting the configuration data of multiple adapted terminals into different sub-data packages, and then compiling and packaging each sub-data package into a In an upgrade package, only one upgrade package needs to be packaged for the software system, thereby reducing the workload of subsequent software system development and maintenance; when the adapter terminal is upgraded, it finds and adapts the terminal in the upgrade package for storage. The system file partition of the configuration data has the same sub-data package with the same partition mark, and is upgraded to the system file partition where the configuration data is stored; it avoids that due to the increase in the number of adaptation terminals, the data contained in the same upgrade package is too large, and the upgrade package data is too large. It is too large to be placed in the system file partition of the adaptation terminal, so that the upgrade package data cannot be upgraded to the adaptation terminal, resulting in the problem that an unlimited number of new adaptation terminals cannot be added; thus, it can reduce the development and maintenance of the software system. At the same time of the workload, it can adapt to an infinite number of terminals.
附图说明Description of drawings
图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图;1 is a schematic diagram of a terminal structure of a hardware operating environment involved in an embodiment of the present invention;
图2为本发明系统文件升级方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a system file upgrade method according to the present invention;
图3为本发明实施例待升级终端升级时的各个功能模块示意图;3 is a schematic diagram of each functional module when a terminal to be upgraded is upgraded according to an embodiment of the present invention;
图4为本发明实施例待升级终端升级的流程示意图;FIG. 4 is a schematic flowchart of an upgrade of a terminal to be upgraded according to an embodiment of the present invention;
图5为本发明系统文件升级方法第二实施例的流程示意图。FIG. 5 is a schematic flowchart of a second embodiment of a system file upgrade method according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
本发明实施例的主要解决方案是:获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志;从预设数据升级包中获取与所述分区标志对应的子数据包;将所述子数据包升级至与所述分区标志对应的系统文件分区。The main solutions of the embodiments of the present invention are: acquiring a preset data upgrade package, and reading the partition flag of the system file partition used by the terminal to be upgraded for storing configuration data; acquiring from the preset data upgrade package corresponding to the partition flag sub-data package; upgrade the sub-data package to the system file partition corresponding to the partition flag.
由于现有技术中,当出现因适配新增终端导致升级包过大无法放入文件系统分区,造成无法升级的问题时,主要解决办法有两种:一种是修改终端显示设备的文件系统分区的大小,但是后续还是会存在升级包数据大小超过文件系统分区容量大小的风险,且存储设备的总大小一定,加大终端显示设备配置数据的文件系统分区大小,必然会减少其他文件系统分区大小,此时可能会带来其他问题;因此,通过修改终端的文件系统分区大小并不能实现适配无限多个终端。另一种是,新增适配的终端显示设备时,软件系统新增一个升级包适配后续新增的终端显示设备;但是,随着软件升级包的不断增加,后续软件的开发和维护成本会快速增长;因此,通过新增升级包适配新增的终端也不能实现适配无限多个终端。As in the prior art, when the upgrade package is too large to be placed in the file system partition due to the adaptation of the newly added terminal, resulting in the problem that the upgrade cannot be performed, there are two main solutions: one is to modify the file system of the terminal display device The size of the partition, but there is still a risk that the data size of the upgrade package will exceed the capacity of the file system partition, and the total size of the storage device is fixed. Increasing the size of the file system partition where the terminal displays the device configuration data will inevitably reduce other file system partitions. size, other problems may arise at this time; therefore, adapting to an infinite number of terminals cannot be achieved by modifying the file system partition size of the terminal. The other is that when an adapted terminal display device is added, an upgrade package is added to the software system to adapt to the subsequently added terminal display device; however, with the continuous increase of software upgrade packages, the development and maintenance costs of subsequent software will grow rapidly; therefore, adapting new terminals by adding an upgrade package cannot achieve adaptation to an infinite number of terminals.
本发明提供一种解决方案,可以实现在减少软件系统开发和维护的工作量的同时,实现适配无限多个终端。The present invention provides a solution, which can realize adaptation to an infinite number of terminals while reducing the workload of software system development and maintenance.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in an embodiment of the present invention.
本发明实施例终端可以是PC,也可以是智能手机、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面3)播放器、便携计算机等可移动式终端设备。The terminal in the embodiment of the present invention may be a PC, a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, moving picture expert compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, moving image expert compression standard audio layer 3) Players, portable computers and other portable terminal equipment.
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the terminal may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 . Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface). The memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or less components than the one shown, or combine some components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及系统文件升级程序。As shown in FIG. 1 , the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a system file upgrade program.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的系统文件升级程序,并执行以下操作:In the terminal shown in FIG. 1 , the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (client) and perform data communication with the client; and the processor 1001 can be used to invoke the system file upgrade program stored in memory 1005 and perform the following operations:
获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志;Obtain the preset data upgrade package, and read the partition flag of the system file partition used by the terminal to be upgraded to store configuration data;
从预设数据升级包中获取与所述分区标志对应的子数据包;Obtain the sub-data package corresponding to the partition flag from the preset data upgrade package;
将所述子数据包升级至与所述分区标志对应的系统文件分区。The sub-data package is upgraded to the system file partition corresponding to the partition flag.
进一步地,所述获取预设数据升级包的步骤之前,处理器1001还可以用于调用存储器1005中存储的系统文件升级程序,并执行以下操作:Further, before the step of obtaining the preset data upgrade package, the processor 1001 can also be used to call the system file upgrade program stored in the memory 1005, and perform the following operations:
获取各个适配终端的配置数据,以及各个所述适配终端用于存放配置数据的系统文件分区的分区容量;Obtain the configuration data of each adaptation terminal, and the partition capacity of the system file partition used by each adaptation terminal to store the configuration data;
根据所述分区容量,对所述配置数据进行编译打包,以生成所述预设数据升级包。According to the partition capacity, the configuration data is compiled and packaged to generate the preset data upgrade package.
进一步地,所述根据所述分区容量,对所述配置数据进行编译打包,以生成所述预设数据升级包的步骤包括:Further, the step of compiling and packaging the configuration data according to the partition capacity to generate the preset data upgrade package includes:
根据所述分区容量,将所述配置数据组合为各个子数据包;combining the configuration data into sub-packets according to the partition capacity;
将所述子数据包进行编译打包,以生成所述预设数据升级包。The sub-data package is compiled and packaged to generate the preset data upgrade package.
进一步地,所述根据所述分区容量,将所述配置数据组合为各个子数据包的步骤包括:Further, according to the partition capacity, the step of combining the configuration data into each sub-data package includes:
判断所述配置数据的数据总和是否大于所述分区容量;Determine whether the data sum of the configuration data is greater than the partition capacity;
若所述配置数据的数据总和大于所述分区容量,则将所述配置数据组合成个数为大于一且小于所述适配终端数的子数据包。If the data sum of the configuration data is greater than the partition capacity, the configuration data is combined into sub-packets whose number is greater than one and less than the number of adaptation terminals.
进一步地,所述获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志的步骤包括:Further, the step of obtaining the preset data upgrade package and reading the partition flag of the system file partition used by the terminal to be upgraded for storing configuration data includes:
当检测到待升级终端开机或重启时,获取所述待升级终端的升级标志;When it is detected that the terminal to be upgraded is powered on or restarted, acquiring the upgrade flag of the terminal to be upgraded;
根据所述升级标志,获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志。According to the upgrade flag, a preset data upgrade package is acquired, and the partition flag of the system file partition used by the terminal to be upgraded for storing configuration data is read.
进一步地,所述从预设数据升级包中获取与所述分区标志对应的子数据包的步骤包括:Further, the step of obtaining the sub-data package corresponding to the partition flag from the preset data upgrade package includes:
在所述预设数据升级包的各个子数据包中查找含有所述分区标志的子数据包;Searching for the sub-data package containing the partition mark in each sub-data package of the preset data upgrade package;
获取含有所述分区标志的子数据包。Get the sub-packet that contains the partition flag.
进一步地,所述将所述子数据包升级至与所述分区标志对应的系统文件分区的步骤之后,处理器1001还可以用于调用存储器1005中存储的系统文件升级程序,并执行以下操作:Further, after the step of upgrading the sub-data package to the system file partition corresponding to the partition flag, the processor 1001 can also be used to call the system file upgrade program stored in the memory 1005, and perform the following operations:
判断将所述子数据包升级至与所述分区标志对应的系统文件分区的操作是否成功;judging whether the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is successful;
若将所述子数据包升级至与所述分区标志对应的系统文件分区的操作不成功,则返回将所述子数据包升级至与所述分区标志对应的系统文件分区的操作。If the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is unsuccessful, the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is returned.
基于上述硬件结构,提出本发明方法实施例。Based on the above hardware structure, method embodiments of the present invention are proposed.
参照图2,在本发明系统文件升级方法第一实施例中,所述系统文件升级方法包括:Referring to FIG. 2, in the first embodiment of the system file upgrade method of the present invention, the system file upgrade method includes:
步骤S10,获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志;Step S10, obtaining a preset data upgrade package, and reading the partition flag of the system file partition used by the terminal to be upgraded for storing configuration data;
其中,预设数据升级包,是指所有适配终端的配置数据编译打包后形成的数据升级包。待升级终端,可以是显示终端,如电视等,也可以是其他的终端设备。本发明实施例中所描述的待升级终端为相同硬件主板适配的所有终端中的适配终端,在后续软件维护中需要进行升级的适配终端即所本发明实施例所描述的待升级终端,每个待升级终端均有自身的配置数据,且每个待升级终端中均分配有用于存放配置数据的系统文件分区,每个用于存放配置数据的系统文件分区会设置对应的分区标志。一般终端中的存储设备会被划分多个存储区域,每个存储区域的存储用途不同,其中,本发明实施例中所描述的系统文件分区是指,终端中被划分为用于存放终端的配置数据的存储区域。分区标志,用于系统识别数据所属的系统文件分区;例如,终端A用于存放配置数据的系统文件分区的分区标志为a、终端B用于存放配置数据的系统文件分区的分区标志为b,当待升级设备识别到含有分区标志为a的数据时,系统会将含有分区标志为a的数据放入终端A的系统文件分区;当待升级设备识别到含有分区标志为b的数据时,系统会将含有分区标志为b的数据放入终端B的系统文件分区。参照图3,图3为本发明实施例待升级终端升级时的各个功能模块示意图;其中,预设数据升级包中包含一个或多个子数据包;SOC代表待升级终端的控制系统,用于获取预设数据升级包,并根据预设数据升级包,将对应的配置数据升级至待升级终端的系统文件分区中。本发明实施例提供的系统文件升级方法中,主要是将相同硬件主板适配的所有终端的配置数据编译打包后形成的预设数据升级包,然后利用预设数据升级包对待升级终端进行升级,将预设数据升级包中对应待升级终端的配置数据升级至待升级终端的系统文件分区中,通过升级方式复用适配终端中的系统文件分区。预设数据升级包可以通过网络服务器向待升级终端进行推送,以供待升级终端接收该预设数据升级包并利用该预设数据升级包中的配置数据进行升级;预设数据升级包还可以存放至U盘中,供待升级终端直接读取该预设数据升级包。此外,预设数据升级包还可以通过其他方式推送给待升级终端,以供待升级终端读取预设数据升级包,利用预设数据升级包中的配置数据进行升级。待升级终端首先获取网络服务器、U盘或者其他方式等推送的预设数据升级包,并读取用于存放配置数据的系统文件分区的分区标志。The preset data upgrade package refers to a data upgrade package formed after compiling and packaging the configuration data of all the adapted terminals. The terminal to be upgraded may be a display terminal, such as a TV, or other terminal equipment. The terminal to be upgraded described in the embodiment of the present invention is an adaptation terminal among all terminals adapted to the same hardware motherboard, and the adaptation terminal that needs to be upgraded in subsequent software maintenance is the terminal to be upgraded described in the embodiment of the present invention , each terminal to be upgraded has its own configuration data, and each terminal to be upgraded is allocated a system file partition for storing configuration data, and each system file partition for storing configuration data will set a corresponding partition flag. Generally, a storage device in a terminal is divided into multiple storage areas, and each storage area has a different storage purpose. The system file partition described in the embodiment of the present invention means that the terminal is divided into configurations for storing the terminal. Data storage area. The partition flag is used for the system to identify the system file partition to which the data belongs; for example, the partition flag of the system file partition used by terminal A to store configuration data is a, and the partition flag of the system file partition used by terminal B to store configuration data is b, When the device to be upgraded recognizes the data containing the partition flag a, the system will put the data containing the partition flag a into the system file partition of terminal A; when the device to be upgraded recognizes the data containing the partition flag b, the system will The data containing the partition flag b will be put into the system file partition of terminal B. Referring to FIG. 3, FIG. 3 is a schematic diagram of each functional module when a terminal to be upgraded according to an embodiment of the present invention is upgraded; wherein, the preset data upgrade package includes one or more sub-data packages; SOC represents the control system of the terminal to be upgraded, and is used to obtain A data upgrade package is preset, and the corresponding configuration data is upgraded to the system file partition of the terminal to be upgraded according to the preset data upgrade package. In the system file upgrade method provided by the embodiment of the present invention, a preset data upgrade package is formed after compiling and packaging the configuration data of all terminals adapted to the same hardware motherboard, and then the terminal to be upgraded is upgraded by using the preset data upgrade package, The configuration data corresponding to the terminal to be upgraded in the preset data upgrade package is upgraded to the system file partition of the terminal to be upgraded, and the system file partition in the adaptation terminal is reused in an upgrade manner. The preset data upgrade package can be pushed to the terminal to be upgraded through the network server, so that the terminal to be upgraded can receive the preset data upgrade package and use the configuration data in the preset data upgrade package to upgrade; the preset data upgrade package can also Store it in the U disk for the terminal to be upgraded to directly read the preset data upgrade package. In addition, the preset data upgrade package can also be pushed to the terminal to be upgraded in other ways, so that the terminal to be upgraded can read the preset data upgrade package and use the configuration data in the preset data upgrade package to perform the upgrade. The terminal to be upgraded first obtains the preset data upgrade package pushed by the network server, U disk, or other means, and reads the partition flag of the system file partition used to store the configuration data.
进一步地,步骤S10包括:Further, step S10 includes:
步骤S11,当检测到待升级终端开机或重启时,获取待升级终端的升级标志;Step S11, when it is detected that the terminal to be upgraded is powered on or restarted, acquire the upgrade flag of the terminal to be upgraded;
参照图4,待升级终端系统开机或重启时,在开机阶段开机引导模块经用户确认是否需要进入升级,如果用户确认待升级终端需要进入升级状态,那么待升级终端系统将会产生升级标志,待升级终端准备进入升级状态。Referring to FIG. 4 , when the terminal system to be upgraded is powered on or restarted, the booting guide module is confirmed by the user whether it needs to enter the upgrade state during the boot phase. If the user confirms that the terminal to be upgraded needs to enter the upgrade state, then the terminal system to be upgraded will generate an upgrade flag. The upgrade terminal is ready to enter the upgrade state.
步骤S12,根据升级标志,获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志。Step S12: Acquire a preset data upgrade package according to the upgrade flag, and read the partition flag of the system file partition used by the terminal to be upgraded for storing configuration data.
当待升级终端读取到系统的升级标志时,待升级终端首先获取网络服务器、U盘或者其他方式等推送的预设数据升级包,并读取用于存放配置数据的系统文件分区的分区标志;待升级终端进入升级模式。When the terminal to be upgraded reads the upgrade flag of the system, the terminal to be upgraded first obtains the preset data upgrade package pushed by the network server, U disk or other means, and reads the partition flag of the system file partition used to store the configuration data ; The terminal to be upgraded enters the upgrade mode.
为了方便理解,以一具体实施例进行说明。例如,现有两台适配的待升级终端,终端A和终端B,终端A用于存放配置数据的系统文件分区的分区标志为“123”、终端B用于存放配置数据的系统文件分区的分区标志为“456”;终端A在读取到系统的升级标志时,获取预设数据升级包,其中预设数据升级包中包含了终端A的配置数据和终端B的配置数据;终端A在进行升级时,需要把预设数据升级包中终端A的配置数据升级至终端A用于存放配置数据的系统文件分区,那么终端A首先需要读取终端A用于存放配置数据的系统文件分区的分区标志“123”,然后在预设数据升级包中读取包含有与分区标志“123”相同的数据升级至终端A用于存放配置数据的系统文件分区中。For the convenience of understanding, a specific embodiment is used for description. For example, there are two terminals to be upgraded, terminal A and terminal B, the partition mark of the system file partition used by terminal A to store configuration data is "123", and the system file partition used by terminal B to store configuration data is marked as "123". The partition mark is "456"; when terminal A reads the upgrade mark of the system, it obtains a preset data upgrade package, wherein the preset data upgrade package includes the configuration data of terminal A and the configuration data of terminal B; terminal A is in the When upgrading, the configuration data of terminal A in the preset data upgrade package needs to be upgraded to the system file partition used by terminal A to store configuration data, then terminal A first needs to read the system file partition of terminal A used to store configuration data. Partition mark "123", and then read the data containing the same partition mark "123" in the preset data upgrade package and upgrade it to the system file partition used by terminal A to store configuration data.
在本实施例中,在升级终端开机或重启时,通过开机引导模块经用户确认是否进行升级,避免了在不需要升级时系统自动进入升级状态,导致终端的开机时长增加,造成用户不必要的等待;在待升级终端读取到系统的升级标志时,可以通过多种方式获取预设数据升级包,有效为后续的升级提供的升级包数据,为后续成功升级提供了保证;通过读取待升级终端用于存放配置数据的系统文件分区的分区标志,以确保后续预设数据升级包中的配置数据能对应地升级至对应的系统文件分区。In this embodiment, when the upgrade terminal is powered on or restarted, the user confirms whether to perform the upgrade through the booting guide module, so as to avoid the system from automatically entering the upgrade state when the upgrade is not required, resulting in an increase in the boot time of the terminal and unnecessary unnecessary use by the user. Waiting; when the terminal to be upgraded reads the upgrade flag of the system, the preset data upgrade package can be obtained in various ways, which effectively provides upgrade package data for subsequent upgrades and provides a guarantee for subsequent successful upgrades; by reading the upgrade package to be The upgrade terminal is used to store the partition mark of the system file partition of the configuration data, so as to ensure that the configuration data in the subsequent preset data upgrade package can be correspondingly upgraded to the corresponding system file partition.
步骤S20,从预设数据升级包中获取与分区标志对应的子数据包;Step S20, obtaining the sub-data package corresponding to the partition flag from the preset data upgrade package;
为了减少适配的终端的软件系统开发和后续维护的工作量,现有技术中会将所有适配终端的配置数据全部打包放入一个升级包中,然后将该升级包数据分别放入各个适配终端用于存放配置数据的系统文件分区中,对各个适配终端进行升级;但每个适配终端用于存放配置数据的系统文件分区大小是固定且有限的,当适配终端越来越多时,将所有适配终端的配置数据打包至一个升级包,升级包的大小最终会超出适配终端用于存放配置数据的系统文件分区大小,从而导致不能无限制地增加适配终端。In order to reduce the workload of software system development and subsequent maintenance of the adapted terminals, in the prior art, all the configuration data of all the adapted terminals will be packaged into an upgrade package, and then the upgrade package data will be put into each suitable terminal. In the system file partition where the configuration terminal is used to store configuration data, each adapter terminal is upgraded; however, the size of the system file partition used by each adapter terminal to store configuration data is fixed and limited. For a long time, the configuration data of all the adaptation terminals are packaged into an upgrade package, and the size of the upgrade package will eventually exceed the size of the system file partition used by the adaptation terminal to store the configuration data, so that the number of adaptation terminals cannot be increased without limit.
在适配终端的配置数据打包至同一升级包后超过适配终端用于存放配置数据的系统文件分区时,使用本发明就能实现不限制个数地增加适配终端,同时保证能利用将所有适配终端的配置数据打包后的一个升级包对适配终端进行升级,并达到极大地减少后续的软件系统开发和维护的工作量。在本发明实施例中,预设数据升级包中包含多个子数据包,每个子数据包中包含了一个或多个适配终端的配置数据;其中,预设数据升级包中子数据包的个数大于一且小于适配终端的个数,每个子数据包中的配置数据均带有标志、所带标志用于识别其所属的系统文件分区,每个子数据包的大小小于或等于其所包含配置数据对应的各个系统文件分区大小,以确保将子数据包能升级至对应的系统文件分区。通过从预设数据包中获取与待升级终端用于存放配置数据的系统文件分区的分区标志相同的子数据包。待升级终端在预设数据升级包的各个子数据包中获取含有待升级终端用于存放配置数据的系统文件分区的分区标志的子数据包。When the configuration data of the adaptation terminal is packaged into the same upgrade package and exceeds the system file partition used by the adaptation terminal to store the configuration data, the invention can realize an unlimited number of adaptation terminals, while ensuring that all An upgrade package after the configuration data of the adaptation terminal is packaged upgrades the adaptation terminal, and greatly reduces the workload of subsequent software system development and maintenance. In the embodiment of the present invention, the preset data upgrade package includes a plurality of sub-data packages, and each sub-data package includes configuration data of one or more adaptation terminals; wherein, each of the sub-data packages in the preset data upgrade package The number is greater than one and less than the number of adaptation terminals. The configuration data in each sub-packet is marked with a mark to identify the system file partition to which it belongs. The size of each sub-packet is less than or equal to the size of the sub-packet it contains. Configure the size of each system file partition corresponding to the data to ensure that sub-packages can be upgraded to the corresponding system file partition. By acquiring the sub-data package from the preset data package that is the same as the partition flag of the system file partition used by the terminal to be upgraded to store the configuration data. The terminal to be upgraded obtains, from each sub-data package of the preset data upgrade package, a sub-data package containing a partition flag of a system file partition used by the terminal to be upgraded to store configuration data.
为了方便理解,以下以一具体实施例进行说明。例如,有适配终端A、B、C、D、E、F、G和H共8台,那么可以将终端A、B和C的配置数据放入子数据包1中,D和E的配置数据放入子数据包2中,F、G和H的配置数据放入子数据包3中,然后将子数据包1、子数据包2和子数据包3一起编译打包到一个升级包中。其中,终端A用于存放配置数据的系统文件分区的分区标志,以及终端A的配置数据的标志均为“a123”;终端B用于存放配置数据的系统文件分区的分区标志,以及终端B的配置数据的标志均为“b123”;终端C用于存放配置数据的系统文件分区的分区标志,以及终端C的配置数据的标志均为“c123”;终端D用于存放配置数据的系统文件分区的分区标志,以及终端D的配置数据的标志均为“d123”;终端E用于存放配置数据的系统文件分区的分区标志,以及终端E的配置数据的标志均为“e123”;终端F用于存放配置数据的系统文件分区的分区标志,以及终端F的配置数据的标志均为“f123”;终端G用于存放配置数据的系统文件分区的分区标志,以及终端G的配置数据的标志均为“g123”;终端H用于存放配置数据的系统文件分区的分区标志,以及终端H的配置数据的标志均为“h123”。For ease of understanding, a specific embodiment is used for description below. For example, if there are 8 adaptation terminals A, B, C, D, E, F, G and H in total, the configuration data of terminals A, B and C can be put into sub-packet 1, and the configuration data of D and E can be The data is put into sub-package 2, the configuration data of F, G and H are put into sub-package 3, and then sub-package 1, sub-package 2 and sub-data package 3 are compiled and packaged together into an upgrade package. The partition flag of the system file partition used by terminal A to store configuration data and the flag of the configuration data of terminal A are both "a123"; the partition flag of the system file partition used by terminal B to store configuration data, and the flag of terminal B's system file partition The flags of the configuration data are all "b123"; the partition flag of the system file partition used by terminal C to store configuration data, and the flag of the configuration data of terminal C are both "c123"; the system file partition used by terminal D to store configuration data The partition flag of terminal E and the flag of the configuration data of terminal D are "d123"; the partition flag of the system file partition used by terminal E to store the configuration data, and the flag of the configuration data of terminal E are all "e123"; terminal F uses The partition flag of the system file partition for storing configuration data and the flag of the configuration data of terminal F are both "f123"; the partition flag of the system file partition used by terminal G to store configuration data, and the flag of the configuration data of terminal G are both. is "g123"; the partition flag of the system file partition used by terminal H to store configuration data, and the flag of the configuration data of terminal H are both "h123".
进一步地,步骤S20包括:Further, step S20 includes:
步骤S21,在预设数据升级包的各个子数据包中查找含有分区标志的子数据包;Step S21, searching for the sub-data package containing the partition mark in each sub-data package of the preset data upgrade package;
所有适配终端的配置数据在被编译打包至同一个升级包中时,同一适配终端的配置数据将会被放入同一子数据包中。待升级终端通过从预设数据包的各个子数据包查找出与待升级终端的系统文件分区的分区标志相同的子数据包。When the configuration data of all the adaptation terminals are compiled and packaged into the same upgrade package, the configuration data of the same adaptation terminal will be put into the same sub-data package. The terminal to be upgraded finds a sub-data package with the same partition flag as the system file partition of the terminal to be upgraded from each sub-data package of the preset data package.
步骤S22,获取含有分区标志的子数据包。In step S22, a sub-data package containing a partition flag is acquired.
待升级终端获取与待升级终端用于存放配置数据的系统文件分区的分区标志相同的子数据包,以便用于进一步的升级。The terminal to be upgraded acquires a sub-data package with the same partition flag as the system file partition used by the terminal to be upgraded to store configuration data, so as to be used for further upgrade.
为了方便理解,接以上步骤S20中的具体实施例进行说明。例如,待升级终端为适配的终端H,终端H读取出用于存放配置数据的系统文件分区的分区标志为“h123”,当终端H接收到网络服务器或者U盘等推送的预设数据升级包后,其中,预设数据升级包包含子数据包1、子数据包2和子数据包3,终端H将从预设数据升级包包含的子数据包1、子数据包2和子数据包3中查找出含有分区标志为“h123”的子数据包3。For the convenience of understanding, the specific embodiment in the above step S20 will be used for description. For example, the terminal to be upgraded is an adapted terminal H, and the terminal H reads the partition mark of the system file partition used for storing configuration data as "h123", when the terminal H receives the preset data pushed by the network server or U disk, etc. After the upgrade package, the preset data upgrade package includes sub-data package 1, sub-data package 2 and sub-data package 3, and terminal H will update the sub-data package 1, sub-data package 2 and sub-data package 3 contained in the preset data upgrade package Find out the sub-packet 3 that contains the partition flag "h123".
在本实施例中,通过在子数据升级包中添加各个配置数据的识别标志,在需要将配置数据升级至待升级终端的系统文件分区时,首先读取系统文件分区的分区标志,然后在预设数据升级包中查找存在与待升级设备系统文件分区的分区标志相同的子数据包;使得在将配置数据升级到待升级终端用于存放配置数据的系统文件分区时,能准确找到对应的配置数据包,为待升级终端进行升级提供了准确数据,从而进一步提高了待升级终端的升级效率。In this embodiment, by adding the identification marks of each configuration data in the sub-data upgrade package, when the configuration data needs to be upgraded to the system file partition of the terminal to be upgraded, first read the partition mark of the system file partition, and then pre- It is assumed that there are sub-data packages with the same partition flag as the system file partition of the device to be upgraded in the data upgrade package; so that when the configuration data is upgraded to the system file partition used by the terminal to be upgraded to store the configuration data, the corresponding configuration can be accurately found. The data package provides accurate data for upgrading the terminal to be upgraded, thereby further improving the upgrading efficiency of the terminal to be upgraded.
步骤S30,将子数据包升级至与分区标志对应的系统文件分区。Step S30, the sub-data package is upgraded to the system file partition corresponding to the partition flag.
待升级终端在读取到系统的升级标志时,根据用于存放配置数据的系统文件分区的分区标志,从预设数据升级包中获取与分区标志相同的子数据包,待升级终端获取的这个子数据包中包含了待升级终端的配置数据;待升级终端在升级时将该子数据包升级至待升级终端用于存放配置数据的系统文件分区,即可将与待升级终端对应的配置数据升级至用于存放配置数据的系统文件分区,在完成升级后,待升级终端重新开机。When the terminal to be upgraded reads the upgrade flag of the system, according to the partition flag of the system file partition used to store the configuration data, the sub-data package that is the same as the partition flag is obtained from the preset data upgrade package. The terminal to be upgraded obtains this sub-data package. The sub-data package contains the configuration data of the terminal to be upgraded; when the terminal to be upgraded upgrades the sub-data package to the system file partition used for storing the configuration data of the terminal to be upgraded, the configuration data corresponding to the terminal to be upgraded can be stored Upgrade to the system file partition for storing configuration data. After the upgrade is complete, reboot the terminal to be upgraded.
为了方便理解,接以上步骤S22中的具体实施例进行说明。终端H将从预设数据升级包包含的子数据包1、子数据包2和子数据包3中查找出含有分区标志为“h123”的子数据包3后,将子数据包3升级至终端H用于存放配置数据的系统文件分区中,从而完成待升级终端的升级操作。For the convenience of understanding, the specific embodiment in the above step S22 will be used for description. The terminal H will search for the sub-data package 3 containing the partition mark "h123" from the sub-data package 1, the sub-data package 2 and the sub-data package 3 contained in the preset data upgrade package, and then upgrade the sub-data package 3 to the terminal H. The system file partition used to store configuration data, so as to complete the upgrade operation of the terminal to be upgraded.
在本实施例中,将多个适配终端的配置数据放入不同的子数据包,使得待升级终端用于存放配置数据的系统文件分区能容纳子数据包,避免因数据包太大而不能放入待升级终端的系统软件分区,导致后续无法升级,从而无法不限制个数地增加适配终端的问题;然后将各个子数据包一起编译打包至一个升级包中,使得软件系统需要打包的升级包个数只有一个,从而减少后续软件系统开发和维护的工作量。待升级终端通过获取采用此种方式编译打包的预设数据升级包,通过系统文件分区的分区标志在预设数据升级包中查找出对应的子数据包,并将该子数据包升级至待升级终端的系统文件分区中;本发明实施例避免了因将所有适配终端的配置数据直接一起打包至同一个升级包中,因后续适配终端增多而导致升级包太大而不能放入待升级终端的系统文件分区,导致后续无法升级,从而无法不限制个数地适配终端的问题;使得设备厂商可以不限制个数地适配终端,并且可以极大地减少软件系统开发和维护工作量。In this embodiment, the configuration data of multiple adaptation terminals are put into different sub-data packages, so that the system file partition used for storing the configuration data of the terminal to be upgraded can accommodate the sub-data packages, so as to avoid that the data package is too large to be too large. Put it into the system software partition of the terminal to be upgraded, so that the subsequent upgrade cannot be performed, so that the number of adaptation terminals cannot be increased without limit; then each sub-data package is compiled and packaged into an upgrade package, so that the software system needs to be packaged. There is only one upgrade package, thereby reducing the workload of subsequent software system development and maintenance. The terminal to be upgraded obtains the preset data upgrade package compiled and packaged in this way, finds the corresponding sub-data package in the preset data upgrade package through the partition mark of the system file partition, and upgrades the sub-data package to the to-be-upgraded package. In the system file partition of the terminal; the embodiment of the present invention avoids that the configuration data of all the adaptation terminals are directly packaged together into the same upgrade package, and the upgrade package is too large to be placed in the to-be-upgraded due to the increase of subsequent adaptation terminals. The system file partition of the terminal makes it impossible to upgrade in the future, so it is impossible to adapt an unlimited number of terminals; this enables equipment manufacturers to adapt an unlimited number of terminals, and can greatly reduce the workload of software system development and maintenance.
进一步地,参照图5,在本发明系统文件升级方法第二实施例中,基于上述图2所述的实施例,所述获取预设数据升级包的步骤之前还包括:Further, referring to FIG. 5 , in the second embodiment of the system file upgrade method of the present invention, based on the embodiment described in FIG. 2 above, the step of obtaining a preset data upgrade package further includes:
步骤A100,获取各个适配终端的配置数据,以及各个适配终端用于存放配置数据的系统文件分区的分区容量;Step A100, obtaining the configuration data of each adaptation terminal, and the partition capacity of the system file partition used by each adaptation terminal to store the configuration data;
一般终端中的存储设备会被划分多个存储区域,每个存储区域的存储用途不同,其中,本发明实施例中所描述的系统文件分区是指,适配终端中被划分为用于存放终端的配置数据的存储区域。其中,分区容量,是指系统文件分区的容量大小,即被划分为用于存放适配终端配置数据的存储区域的大小。Generally, a storage device in a terminal is divided into multiple storage areas, and each storage area has a different storage purpose. The system file partition described in the embodiment of the present invention means that the adaptation terminal is divided into a storage area for storing the terminal. The storage area for configuration data. The partition capacity refers to the capacity of the system file partition, that is, the size of the storage area divided into the storage area for storing the configuration data of the adaptation terminal.
如前面所描述,待升级终端为相同硬件主板所有适配的终端中的适配终端。本发明实施例中,预设数据升级包可以是在待升级终端之外的软件系统进行编译打包形成的数据升级包,然后预设数据升级包可以通过网络服务器向待升级终端进行推送,预设数据升级包还可以存放至U盘中,供待升级终端直接读取该预设数据升级包,或者预设数据升级包可以通过其他方式推送给待升级终端,只要获取到该预设数据升级包。软件系统生成预设数据升级包的过程中,软件系统首先需要获取各个适配终端的配置数据、以及各个适配终端用于存放配置数据的系统文件分区的分区容量。As described above, the terminal to be upgraded is an adapted terminal among all the adapted terminals of the same hardware motherboard. In this embodiment of the present invention, the preset data upgrade package may be a data upgrade package formed by compiling and packaging in a software system other than the terminal to be upgraded, and then the preset data upgrade package may be pushed to the terminal to be upgraded through a network server. The data upgrade package can also be stored in a U disk for the terminal to be upgraded to directly read the preset data upgrade package, or the preset data upgrade package can be pushed to the terminal to be upgraded in other ways, as long as the preset data upgrade package is obtained . In the process of generating the preset data upgrade package by the software system, the software system first needs to obtain the configuration data of each adaptation terminal and the partition capacity of the system file partition used by each adaptation terminal to store the configuration data.
步骤A200,根据分区容量,对配置数据进行编译打包,以生成预设数据升级包。Step A200, according to the partition capacity, compile and package the configuration data to generate a preset data upgrade package.
软件系统在获取到各个适配终端的系统文件分区的分区容量、以及各个适配终端的配置数据后,结合各个适配终端的分区容量,对各个适配终端的配置数据进行组合形成多个子数据包,使得每个子数据包的大小小于或等于对应的系统文件分区,从而使得每个子数据包都能放进对应的系统文件分区;然后将各个子数据包一起进行编译打包,形成一个软件升级包,即预设数据升级包。其中,每个子数据包对应的系统文件分区,是指每个子数据包都有一个或多个适配终端的配置数据,则每个子数据包都有对应所属的一个或多个适配终端,每个系统文件分区也有对应所属的适配终端,属于同一个适配终端的子数据包和系统文件分区即为对应关系。After acquiring the partition capacity of the system file partition of each adaptation terminal and the configuration data of each adaptation terminal, the software system combines the partition capacity of each adaptation terminal to combine the configuration data of each adaptation terminal to form multiple sub-data package, so that the size of each sub-data package is less than or equal to the corresponding system file partition, so that each sub-data package can be placed in the corresponding system file partition; then each sub-data package is compiled and packaged together to form a software upgrade package , that is, the preset data upgrade package. The system file partition corresponding to each sub-packet means that each sub-packet has configuration data of one or more adaptation terminals, and each sub-packet has one or more adaptation terminals to which it belongs. Each system file partition also has a corresponding adaptation terminal, and the sub-packets and system file partitions belonging to the same adaptation terminal are in a corresponding relationship.
在本实施例中,通过获取所有适配终端的分区容量,然后根据适配终端的分区容量,对各个适配终端的配置数据放入不同的子数据包中,再进行编译打包得到一个升级包,使得各个适配终端在后续可以实现升级;从而可以实现无限多个地增加适配终端;同时避免了将所有适配终端的配置数据直接编译打包至同一升级包中,导致升级包大小超出待升级终端的分区容量大小,后续无法将升级包升级至待升级终端的系统文件分区的问题In this embodiment, the partition capacity of all the adaptation terminals is obtained, and then according to the partition capacity of the adaptation terminals, the configuration data of each adaptation terminal is put into different sub-data packages, and then an upgrade package is obtained by compiling and packaging. , so that each adaptation terminal can be upgraded in the follow-up; thus, an infinite number of adaptation terminals can be added; at the same time, it is avoided to directly compile and package the configuration data of all adaptation terminals into the same upgrade package, resulting in the size of the upgrade package exceeding the size of the upgrade package. The partition capacity of the upgraded terminal cannot be upgraded to the system file partition of the terminal to be upgraded later.
进一步地,步骤A200包括:Further, step A200 includes:
步骤A210,根据分区容量,将配置数据组合为各个子数据包;Step A210, combining the configuration data into each sub-packet according to the partition capacity;
如果所有适配终端的配置数据的数据总和大小均小于或等于所有适配终端的系统文件分区的分区容量,则可以直接将所有适配终端的配置数据直接一起编译打包至一个升级包中。但如果所有适配终端的配置数据的数据总和大小大于所有适配终端其中一个的系统文件分区的分区容量,则需要将各个适配终端的配置数据进行组合为多个子数据包,使得每个子数据包的大小均小于对应的适配终端的系统文件分区的容量大小。需要说明的是,同一个适配终端的配置数据只会被打包至一个子数据包中,而不会被拆分至两个或以上的子数据包中。If the total data size of the configuration data of all the adapted terminals is less than or equal to the partition capacity of the system file partitions of all the adapted terminals, the configuration data of all the adapted terminals can be compiled and packaged into an upgrade package directly. However, if the total size of the configuration data of all the adaptation terminals is larger than the partition capacity of the system file partition of one of the adaptation terminals, the configuration data of each adaptation terminal needs to be combined into multiple sub-packets, so that each sub-data The size of the package is smaller than the capacity size of the system file partition of the corresponding adaptation terminal. It should be noted that the configuration data of the same adaptation terminal will only be packaged into one sub-packet, and will not be split into two or more sub-packets.
进一步地,步骤A210包括:Further, step A210 includes:
步骤A211,判断配置数据的数据总和是否大于分区容量;Step A211, judging whether the data sum of the configuration data is greater than the partition capacity;
软件系统判断各个适配终端的配置数据的数据总和大小是否大于各个适配终端的系统文件分区的分区容量,以确定是否需要将各个适配终端的配置数据拆分至不同的子数据包中。若所有适配终端的配置数据的数据总和大小均小于或等于各个适配终端的系统文件分区的分区容量,则可以直接将所有适配终端的配置数据直接一起编译打包至升级包中,而不需要将各个适配终端的配置数据拆分放入各个子数据包后、再编译打包成一个升级包,这样子可以最大限度地减小软件系统的工作量;若配置数据的数据总和大小大于所有适配的终端其中一个的系统文件分区的分区容量,则需要将各个适配终端的配置数据拆分放入各个子数据包后再编译打包成一个升级包。The software system determines whether the total data size of the configuration data of each adaptation terminal is larger than the partition capacity of the system file partition of each adaptation terminal, so as to determine whether the configuration data of each adaptation terminal needs to be split into different sub-packets. If the total data size of the configuration data of all the adaptation terminals is less than or equal to the partition capacity of the system file partition of each adaptation terminal, the configuration data of all the adaptation terminals can be compiled and packaged into the upgrade package directly, instead of It is necessary to split the configuration data of each adaptation terminal into each sub-data package, and then compile and package it into an upgrade package, which can minimize the workload of the software system; if the total size of the configuration data is greater than all For the partition capacity of one of the system file partitions of the adapted terminals, the configuration data of each adapted terminal needs to be split into each sub-data package, and then compiled and packaged into an upgrade package.
步骤A212,若配置数据的数据总和大于分区容量,则将配置数据组合成个数为大于一且小于适配终端数的子数据包。Step A212, if the data sum of the configuration data is greater than the partition capacity, combine the configuration data into sub-packets whose number is greater than one and less than the number of adaptation terminals.
如果软件系统判断出各个适配终端的配置数据的数据总和大小大于所有适配的终端其中一个的系统文件分区的分区容量,那么将各个适配终端的配置数据进行组合形成各个子数据包;在保证子数据包大小能小于或等于对应的系统文件分区的分区容量情况下,软件系统采用使得子数据包的数量最小的组合方式将各个适配终端的配置数据进行组合,以保证子数据包能放入对应的系统文件分区,并且使得子数据包的个数尽可能小,从而达到减少软件系统工作量的目的。其中,软件系统采用使得子数据包的数量最小的组合方式将各个适配终端的配置数据进行组合,并且保证子数据包大小能小于或等于对应的系统文件分区的分区容量的情况下,所有适配终端的配置数据进行组合成的子数据包的个数将大于一且小于适配终端的个数。If the software system determines that the total size of the configuration data of each adapted terminal is greater than the partition capacity of the system file partition of one of all the adapted terminals, then the configuration data of each adapted terminal is combined to form each sub-packet; In the case of ensuring that the size of the sub-data package can be less than or equal to the partition capacity of the corresponding system file partition, the software system combines the configuration data of each adaptation terminal in a combination method that minimizes the number of sub-data packages to ensure that the sub-data package can be Put it into the corresponding system file partition, and make the number of sub-data packages as small as possible, so as to achieve the purpose of reducing the workload of the software system. Among them, the software system combines the configuration data of each adaptation terminal in a combination method that minimizes the number of sub-data packets, and ensures that the sub-data packet size can be less than or equal to the partition capacity of the corresponding system file partition, all suitable The number of sub-packets formed by combining the configuration data of the matching terminal will be greater than one and less than the number of the matching terminals.
如果软件系统判断出各个适配终端的配置数据的数据总和大小均小于或等于各个适配终端的系统文件分区的分区容量,则可以直接将所有适配终端的配置数据直接一起编译打包至升级包中,而不需要将各个适配终端的配置数据拆分放入各个子数据包后、再编译打包成一个升级包,这样子可以最大限度地减小软件系统的工作量。If the software system determines that the total data size of the configuration data of each adaptation terminal is less than or equal to the partition capacity of the system file partition of each adaptation terminal, the configuration data of all the adaptation terminals can be compiled and packaged into the upgrade package directly. There is no need to split the configuration data of each adaptation terminal into each sub-data package, and then compile and package it into an upgrade package, which can minimize the workload of the software system.
例如,所有适配终端共4台,具体如下:适配终端1,配置数据大小为30兆、系统文件分区的分区容量为90兆;适配终端2,配置数据大小为30兆、系统文件分区的分区容量为120兆;适配终端3,配置数据大小为30兆、系统文件分区的分区容量为120兆;适配终端4,配置数据大小为30兆、系统文件分区的分区容量为120兆。4台适配终端的配置数据总和为120兆,适配终端2、适配终端3和适配终端4的分区容量均等于120兆,软件系统在对配置数据进行编译打包形成升级包时,若将4台适配终端的配置数据直接打包至一个升级包中,适配终端2、适配终端3和适配终端4的系统文件分区均可以放入该升级包,但适配终端1的分区容量只有90兆,适配终端1的系统文件分区无法放入该升级包;需要将适配终端1、适配终端2、适配终端3和适配终端4的配置数据进行组合成不同的子数据包,使得对应的子数据包均小于或等于适配终端1、适配终端2、适配终端3和适配终端4的分区容量。若适配终端1的配置数据大小为30兆、系统文件分区的分区容量为150兆,适配终端2、适配终端3和适配终端4的配置数据及分区容量不变的情况下,则所有适配终端的配置数据的数据总和大小均小于或等于所有适配终端的系统文件分区的分区容量,可以将适配终端1、适配终端2、适配终端3和适配终端4的配置数据直接一起编译打包至升级包。For example, there are 4 terminals in total, as follows: for terminal 1, the configuration data size is 30 MB, and the partition capacity of the system file partition is 90 MB; for terminal 2, the configuration data size is 30 MB, and the system file partition is 90 MB. For terminal 3, the configuration data size is 30 MB, and the partition capacity of the system file partition is 120 MB; for terminal 4, the configuration data size is 30 MB, and the partition capacity of the system file partition is 120 MB. . The total configuration data of the four adaptation terminals is 120 MB, and the partition capacity of adaptation terminal 2, adaptation terminal 3 and adaptation terminal 4 are all equal to 120 MB. When the software system compiles and packages the configuration data to form an upgrade package, if The configuration data of the four adapter terminals are directly packaged into an upgrade package. The system file partitions of the adapter terminal 2, the adapter terminal 3, and the adapter terminal 4 can all be placed in the upgrade package, but the partition of the adapter terminal 1 can be placed in the upgrade package. The capacity is only 90 megabytes, and the system file partition of the adaptation terminal 1 cannot be placed in the upgrade package; data packets, so that the corresponding sub-data packets are all less than or equal to the partition capacity of the adaptation terminal 1, the adaptation terminal 2, the adaptation terminal 3, and the adaptation terminal 4. If the configuration data size of adaptation terminal 1 is 30 MB, the partition capacity of the system file partition is 150 MB, and the configuration data and partition capacity of adaptation terminal 2, adaptation terminal 3, and adaptation terminal 4 are unchanged, then The total data size of the configuration data of all adaptation terminals is less than or equal to the partition capacity of the system file partitions of all adaptation terminals. The configuration of adaptation terminal 1, adaptation terminal 2, adaptation terminal 3 and adaptation terminal 4 The data is directly compiled and packaged into the upgrade package.
在本实施例中,在保证子数据包大小能小于或等于对应的系统文件分区的分区容量情况下,软件系统采用使得子数据包的数量最小的组合方式将各个适配终端的配置数据进行组合成子数据包,以保证子数据包能放入对应的系统文件分区,并且使得子数据包的个数尽可能小,从而达到减少软件系统工作量的目的;并且采用子数据包升级至对应系统文件分区的方式,避免了现有技术中出现的升级包过大、无法升级至待升级终端的系统文件分区的问题,使得将软件系统后续开发和维护可以采用一个升级包。In this embodiment, under the condition that the size of the sub-data package can be less than or equal to the partition capacity of the corresponding system file partition, the software system combines the configuration data of each adaptation terminal in a combination method that minimizes the number of sub-data packages into sub-data packages to ensure that the sub-data packages can be placed in the corresponding system file partitions, and to make the number of sub-data packages as small as possible, so as to achieve the purpose of reducing the workload of the software system; and use sub-data packages to upgrade to the corresponding system files The partitioning method avoids the problem in the prior art that the upgrade package is too large and cannot be upgraded to the system file partition of the terminal to be upgraded, so that one upgrade package can be used for subsequent development and maintenance of the software system.
步骤A220,将子数据包进行编译打包,以生成预设数据升级包。Step A220: Compile and package the sub-data package to generate a preset data upgrade package.
将采用步骤A210中的方式组合形成的所有子数据包进行编译打包至一个升级包中,子数据包编译打包后形成的升级包即预设数据升级包。All sub-data packages formed by combining in the manner in step A210 are compiled and packaged into an upgrade package, and the upgrade package formed after the sub-data packages are compiled and packaged is a preset data upgrade package.
为了方便理解,以一具体实施例进行说明。例如,设备厂商针对一个系列的产品,为了满足不同客户的需求,会搭配不同的终端显示设备,例如,某型号设备分别有搭配终端显示设备厂商BOE、LG、三星和INX等不同厂商,且相同产商有32、43、50、55、60和65等不同尺寸的终端显示设备总计n个,后续又新增适配m个终端显示设备,适配完后,发现配置数据大小超过存储此数据的文件系统分区大小,此时软件系统分别将n个终端显示的配置打包为数据包1,m个终端显示设备的配置单独打包为数据包2(数据包2大小均未超出m个终端显示设备中任意一个的文件系统分区大小),然后将数据包1和数据包2编译打包到一个升级包中。For the convenience of understanding, a specific embodiment is used for description. For example, for a series of products, equipment manufacturers will match different terminal display devices in order to meet the needs of different customers. For example, a certain type of device is matched with different terminal display device manufacturers such as BOE, LG, Samsung and INX, and the same The manufacturer has a total of n terminal display devices of different sizes such as 32, 43, 50, 55, 60 and 65, and subsequently added m terminal display devices for adaptation. After the adaptation, it is found that the size of the configuration data exceeds the stored data. At this time, the software system packages the configuration of n terminal display devices into data package 1, and the configuration of m terminal display devices separately packaged into data package 2 (the size of data package 2 does not exceed m terminal display devices) The file system partition size of any one of the above), and then compile and package data package 1 and data package 2 into an upgrade package.
在本实施例中,根据适配终端的系统文件分区的分区容量,将各个适配终端的配置数据进行组合为多个子数据包,使得每个子数据包的大小均小于对应的适配终端的系统文件分区的容量大小,使得后续可以将数据包升级至待升级终端;并且通过将各个子数据包打包至一个升级包中,可以极大地减少软件系统的开发和维护工作量。In this embodiment, according to the partition capacity of the system file partition of the adaptation terminal, the configuration data of each adaptation terminal is combined into a plurality of sub-data packets, so that the size of each sub-data packet is smaller than that of the corresponding adaptation terminal system The size of the file partition makes it possible to upgrade the data package to the terminal to be upgraded later; and by packaging each sub-data package into an upgrade package, the development and maintenance workload of the software system can be greatly reduced.
进一步地,在本发明系统文件升级方法第三实施例中,基于上述图2所述的实施例,步骤S30之后还包括:Further, in the third embodiment of the system file upgrade method of the present invention, based on the embodiment described in FIG. 2, after step S30, the method further includes:
步骤B1,判断将子数据包升级至与分区标志对应的系统文件分区的操作是否成功;Step B1, judging whether the operation of upgrading the sub-data package to the system file partition corresponding to the partition mark is successful;
为方便理解,可参照图4,待升级终端从预设数据升级包中获取与分区标志相同的子数据包,待升级终端获取的这个子数据包中包含了待升级终端的配置数据;待升级终端在升级时将该子数据包升级至待升级终端用于存放配置数据的系统文件分区,即可将与待升级终端对应的配置数据升级至用于存放配置数据的系统文件分区。为了保证待升级终端能将对应的自数据包升级至待升级终端的系统文件分区中,待升级终端需要判断对应的子数据包升级操作是否成功。For easy understanding, referring to FIG. 4 , the terminal to be upgraded obtains the same sub-data package as the partition flag from the preset data upgrade package, and the sub-data package obtained by the terminal to be upgraded contains the configuration data of the terminal to be upgraded; When the terminal upgrades the sub-data package to the system file partition used for storing configuration data of the terminal to be upgraded, the configuration data corresponding to the terminal to be upgraded can be upgraded to the system file partition used for storing configuration data. In order to ensure that the terminal to be upgraded can upgrade the corresponding self-data package to the system file partition of the terminal to be upgraded, the terminal to be upgraded needs to determine whether the corresponding sub-data package upgrade operation is successful.
步骤B2,若将子数据包升级至与分区标志对应的系统文件分区的操作不成功,则返回将子数据包升级至与分区标志对应的系统文件分区的操作。Step B2, if the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is unsuccessful, the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is returned.
如果检测到待升级终端未成功将对应子数据包升级至待升级终端用于存放配置数据的系统文件分区时,则返回继续返回执行将对应的子数据包升级至待升级终端的系统文件分区的操作,以确保待升级终端成功升级,并在升级成功后,待升级终端自动重启。进一步地,如果待升级终端执行升级操作的次数超出预设次数,仍未成功将对应的子数据包升级至待升级终端的系统文件分区时,则待升级终端发出提示信息,提示信息可以为信息提示或者语音提示等方式,用户可以根据提示信息选择让待升级终端继续正常开机或者再次执行升级操作。If it is detected that the terminal to be upgraded has not successfully upgraded the corresponding sub-data package to the system file partition of the terminal to be upgraded for storing configuration data, then return to continue to execute the process of upgrading the corresponding sub-data package to the system file partition of the terminal to be upgraded. operation to ensure that the terminal to be upgraded is successfully upgraded, and after the upgrade is successful, the terminal to be upgraded is automatically restarted. Further, if the number of times the terminal to be upgraded performs the upgrade operation exceeds the preset number of times, and the corresponding sub-data package has not been successfully upgraded to the system file partition of the terminal to be upgraded, the terminal to be upgraded sends a prompt message, and the prompt information can be information. By means of prompts or voice prompts, the user can choose to let the terminal to be upgraded continue to boot normally or perform the upgrade operation again according to the prompt information.
在本实施例中,待升级终端需要判断对应的子数据包升级操作是否成功,若不成功时,待升级终端继续执行升级操作,直至待升级终端成功将子数据包升级至待升级终端的系统文件分区中,以确保成功将子数据包升级至待升级终端用于存放配置数据的系统文件分区中,提高了待升级终端升级的成功率。In this embodiment, the terminal to be upgraded needs to determine whether the corresponding sub-data package upgrade operation is successful, if not, the terminal to be upgraded continues to perform the upgrade operation until the terminal to be upgraded successfully upgrades the sub-data package to the system of the terminal to be upgraded In the file partition, to ensure that the sub-data package is successfully upgraded to the system file partition used by the terminal to be upgraded for storing configuration data, the success rate of the upgrade of the terminal to be upgraded is improved.
此外,本发明实施例还提出一种系统文件升级装置,所述系统文件升级装置包括:In addition, an embodiment of the present invention also provides an apparatus for upgrading system files, where the apparatus for upgrading system files includes:
第一获取模块,用于获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志;a first obtaining module, configured to obtain a preset data upgrade package, and read the partition flag of the system file partition used by the terminal to be upgraded for storing configuration data;
第二获取模块,用于从预设数据升级包中获取与所述分区标志对应的子数据包;a second acquisition module, configured to acquire the sub-data package corresponding to the partition flag from the preset data upgrade package;
升级模块,用于将所述子数据包升级至与所述分区标志对应的系统文件分区。An upgrade module, configured to upgrade the sub-data package to the system file partition corresponding to the partition flag.
可选地,系统文件升级装置还包括升级包生成模块,升级包生成模块用于:Optionally, the system file upgrade apparatus further includes an upgrade package generation module, and the upgrade package generation module is used for:
获取各个适配终端的配置数据,以及各个所述适配终端用于存放配置数据的系统文件分区的分区容量;Obtain the configuration data of each adaptation terminal, and the partition capacity of the system file partition used by each adaptation terminal to store the configuration data;
根据所述分区容量,对所述配置数据进行编译打包,以生成所述预设数据升级包。According to the partition capacity, the configuration data is compiled and packaged to generate the preset data upgrade package.
可选地,升级包生成模块还用于:Optionally, the upgrade package generation module is also used to:
根据所述分区容量,将所述配置数据组合为各个子数据包;combining the configuration data into sub-packets according to the partition capacity;
将所述子数据包进行编译打包,以生成所述预设数据升级包。The sub-data package is compiled and packaged to generate the preset data upgrade package.
可选地,升级包生成模块还用于:Optionally, the upgrade package generation module is also used to:
判断所述配置数据的数据总和是否大于所述分区容量;Determine whether the data sum of the configuration data is greater than the partition capacity;
若所述配置数据的数据总和大于所述分区容量,则将所述配置数据组合成个数为大于一且小于所述适配终端数的子数据包。If the data sum of the configuration data is greater than the partition capacity, the configuration data is combined into sub-packets whose number is greater than one and less than the number of adaptation terminals.
可选地,第一获取模块还用于:Optionally, the first obtaining module is further used for:
当检测到待升级终端开机或重启时,获取所述待升级终端的升级标志;When it is detected that the terminal to be upgraded is powered on or restarted, acquiring the upgrade flag of the terminal to be upgraded;
根据所述升级标志,获取预设数据升级包,并读取待升级终端用于存放配置数据的系统文件分区的分区标志。According to the upgrade flag, a preset data upgrade package is acquired, and the partition flag of the system file partition used by the terminal to be upgraded for storing configuration data is read.
可选地,第二获取模块还用于:Optionally, the second obtaining module is further used for:
在所述预设数据升级包的各个子数据包中查找含有所述分区标志的子数据包;Searching for the sub-data package containing the partition mark in each sub-data package of the preset data upgrade package;
获取含有所述分区标志的子数据包。Get the sub-packet that contains the partition flag.
可选地,系统文件升级装置还包括升级判断模块,升级判断模块用于:Optionally, the system file upgrade apparatus further includes an upgrade judgment module, and the upgrade judgment module is used for:
判断将所述子数据包升级至与所述分区标志对应的系统文件分区的操作是否成功;judging whether the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is successful;
若将所述子数据包升级至与所述分区标志对应的系统文件分区的操作不成功,则返回将所述子数据包升级至与所述分区标志对应的系统文件分区的操作。If the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is unsuccessful, the operation of upgrading the sub-data package to the system file partition corresponding to the partition flag is returned.
本发明系统文件升级装置具体实施方式可以参照上述系统文件升级方法各实施例,在此不再赘述。For the specific implementation manner of the system file upgrade apparatus according to the present invention, reference may be made to the above-mentioned embodiments of the system file upgrade method, and details are not described herein again.
此外,本发明实施例还提出一种可读存储介质,所述可读存储介质上存储有系统文件升级程序,所述系统文件升级程序被处理器执行时实现如上所述的系统文件升级方法的步骤。In addition, an embodiment of the present invention further provides a readable storage medium, where a system file upgrade program is stored on the readable storage medium, and when the system file upgrade program is executed by a processor, the system file upgrade method as described above is implemented. step.
本发明可读存储介质具体实施方式可以参照上述系统文件升级方法各实施例,在此不再赘述。For the specific implementation manner of the readable storage medium of the present invention, reference may be made to the foregoing embodiments of the system file upgrade method, and details are not described herein again.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910211390.XA CN109947450B (en) | 2019-03-19 | 2019-03-19 | System file upgrading method and device, mobile terminal and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910211390.XA CN109947450B (en) | 2019-03-19 | 2019-03-19 | System file upgrading method and device, mobile terminal and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109947450A true CN109947450A (en) | 2019-06-28 |
CN109947450B CN109947450B (en) | 2023-03-17 |
Family
ID=67011166
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910211390.XA Active CN109947450B (en) | 2019-03-19 | 2019-03-19 | System file upgrading method and device, mobile terminal and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109947450B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111488194A (en) * | 2020-03-11 | 2020-08-04 | 广州文远知行科技有限公司 | Container storage method and device, computer equipment and storage medium |
CN111565333A (en) * | 2020-04-29 | 2020-08-21 | 深圳创维-Rgb电子有限公司 | Data modification method, TV set and storage medium based on data separation |
CN112181471A (en) * | 2020-10-16 | 2021-01-05 | 北京紫光展锐通信技术有限公司 | Differential upgrading method and device, storage medium and computer equipment |
CN113419756A (en) * | 2021-06-18 | 2021-09-21 | 杭州海康威视数字技术股份有限公司 | File upgrading method and device and electronic equipment |
CN114090028A (en) * | 2021-11-23 | 2022-02-25 | 深圳鹏行智能研究有限公司 | System upgrading method, electronic device and storage medium |
WO2025091373A1 (en) * | 2023-11-02 | 2025-05-08 | Spreadtrum Communications (Shanghai) Co.,Ltd. | Unified package for embedded systems |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843656A (en) * | 2016-04-22 | 2016-08-10 | Tcl集团股份有限公司 | System upgrading method for insufficient disk space, terminal device and server |
WO2016183951A1 (en) * | 2015-05-15 | 2016-11-24 | 中兴通讯股份有限公司 | System upgrade method and terminal |
CN106484450A (en) * | 2015-08-28 | 2017-03-08 | 青岛海信移动通信技术股份有限公司 | A kind of method for upgrading software and device |
CN107193593A (en) * | 2017-05-17 | 2017-09-22 | 深圳创维数字技术有限公司 | A kind of upgrade method, set top box and the storage medium of scalable file |
WO2017185253A1 (en) * | 2016-04-27 | 2017-11-02 | 华为技术有限公司 | Patch upgrade-based file processing method and device, terminal, and storage medium |
WO2018036166A1 (en) * | 2016-08-25 | 2018-03-01 | 中兴通讯股份有限公司 | Upgrade package reading method and device |
CN107967157A (en) * | 2017-08-17 | 2018-04-27 | 青岛海信移动通信技术股份有限公司 | Data processing method and device during a kind of generation OTA tundish |
CN107992312A (en) * | 2016-10-25 | 2018-05-04 | 中兴通讯股份有限公司 | A kind of upgrade package delivery method and device |
CN108121556A (en) * | 2017-12-26 | 2018-06-05 | 深圳Tcl新技术有限公司 | EMMC compatibilities upgrade method, intelligent terminal and readable storage medium storing program for executing |
CN108170455A (en) * | 2018-03-12 | 2018-06-15 | 晶晨半导体(上海)股份有限公司 | The packaging method and upgrade method of upgrade package |
CN108196870A (en) * | 2017-12-29 | 2018-06-22 | 北京臻迪科技股份有限公司 | Upgrade method and device |
CN108989891A (en) * | 2018-06-29 | 2018-12-11 | 广州视源电子科技股份有限公司 | Television system updating method and device, readable storage medium and television |
CN109062598A (en) * | 2018-06-26 | 2018-12-21 | 珠海全志科技股份有限公司 | A kind of safe OTA upgrade method and system |
CN109460245A (en) * | 2018-10-31 | 2019-03-12 | 北京众谊越泰科技有限公司 | A kind of remote upgrade method of embedded system |
-
2019
- 2019-03-19 CN CN201910211390.XA patent/CN109947450B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016183951A1 (en) * | 2015-05-15 | 2016-11-24 | 中兴通讯股份有限公司 | System upgrade method and terminal |
CN106484450A (en) * | 2015-08-28 | 2017-03-08 | 青岛海信移动通信技术股份有限公司 | A kind of method for upgrading software and device |
CN105843656A (en) * | 2016-04-22 | 2016-08-10 | Tcl集团股份有限公司 | System upgrading method for insufficient disk space, terminal device and server |
WO2017185253A1 (en) * | 2016-04-27 | 2017-11-02 | 华为技术有限公司 | Patch upgrade-based file processing method and device, terminal, and storage medium |
WO2018036166A1 (en) * | 2016-08-25 | 2018-03-01 | 中兴通讯股份有限公司 | Upgrade package reading method and device |
CN107992312A (en) * | 2016-10-25 | 2018-05-04 | 中兴通讯股份有限公司 | A kind of upgrade package delivery method and device |
CN107193593A (en) * | 2017-05-17 | 2017-09-22 | 深圳创维数字技术有限公司 | A kind of upgrade method, set top box and the storage medium of scalable file |
CN107967157A (en) * | 2017-08-17 | 2018-04-27 | 青岛海信移动通信技术股份有限公司 | Data processing method and device during a kind of generation OTA tundish |
CN108121556A (en) * | 2017-12-26 | 2018-06-05 | 深圳Tcl新技术有限公司 | EMMC compatibilities upgrade method, intelligent terminal and readable storage medium storing program for executing |
CN108196870A (en) * | 2017-12-29 | 2018-06-22 | 北京臻迪科技股份有限公司 | Upgrade method and device |
CN108170455A (en) * | 2018-03-12 | 2018-06-15 | 晶晨半导体(上海)股份有限公司 | The packaging method and upgrade method of upgrade package |
CN109062598A (en) * | 2018-06-26 | 2018-12-21 | 珠海全志科技股份有限公司 | A kind of safe OTA upgrade method and system |
CN108989891A (en) * | 2018-06-29 | 2018-12-11 | 广州视源电子科技股份有限公司 | Television system updating method and device, readable storage medium and television |
CN109460245A (en) * | 2018-10-31 | 2019-03-12 | 北京众谊越泰科技有限公司 | A kind of remote upgrade method of embedded system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111488194A (en) * | 2020-03-11 | 2020-08-04 | 广州文远知行科技有限公司 | Container storage method and device, computer equipment and storage medium |
CN111488194B (en) * | 2020-03-11 | 2023-12-01 | 广州文远知行科技有限公司 | Container preservation method, device, computer equipment and storage medium |
CN111565333A (en) * | 2020-04-29 | 2020-08-21 | 深圳创维-Rgb电子有限公司 | Data modification method, TV set and storage medium based on data separation |
CN112181471A (en) * | 2020-10-16 | 2021-01-05 | 北京紫光展锐通信技术有限公司 | Differential upgrading method and device, storage medium and computer equipment |
CN113419756A (en) * | 2021-06-18 | 2021-09-21 | 杭州海康威视数字技术股份有限公司 | File upgrading method and device and electronic equipment |
CN114090028A (en) * | 2021-11-23 | 2022-02-25 | 深圳鹏行智能研究有限公司 | System upgrading method, electronic device and storage medium |
WO2025091373A1 (en) * | 2023-11-02 | 2025-05-08 | Spreadtrum Communications (Shanghai) Co.,Ltd. | Unified package for embedded systems |
Also Published As
Publication number | Publication date |
---|---|
CN109947450B (en) | 2023-03-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109947450A (en) | System file upgrade method, device, mobile terminal and readable storage medium | |
CN109358936B (en) | Information processing method, device, storage medium, electronic device and system | |
US10949191B2 (en) | Patch-upgrade-based file processing method and apparatus, terminal, and storage medium | |
EP2966566B1 (en) | Driver program loading method and embedded device | |
US20110078678A1 (en) | Methods and apparatus for producing cross-platform software applications | |
CN107291497A (en) | Multi-firmware upgrading method and system and readable storage medium | |
CN103186404B (en) | System firmware update method and server system using the method | |
CN107589994A (en) | Method, equipment, system and the storage medium of application process priority management | |
CN107885540A (en) | A kind of method, apparatus and terminal of loading application programs static resource | |
CN111026439B (en) | Application program compatibility method, device, equipment and computer storage medium | |
CN104866293B (en) | A kind of method and device to Android application extensions for Microsoft Internet Explorer & Microsoft Office | |
CN103678091A (en) | Method and device for processing crash data of application software | |
CN108647032B (en) | Application loading method and apparatus, computer apparatus and computer-readable storage medium | |
CN110968331B (en) | Methods and devices for running applications | |
CN112416458A (en) | Preloading method and device based on ReactNative, computer equipment and storage medium | |
CN105653933A (en) | Plugin loading method and device | |
CN111861754B (en) | Transaction packaging method, device and storage medium | |
EP3748493B1 (en) | Method and device for downloading installation-free application | |
CN105786636B (en) | System repair method and device | |
CN119376755A (en) | Application optimization method and electronic device | |
CN107577506B (en) | Data preloading method and system | |
CN112702373B (en) | Micro-service upgrade file sending method, micro-service upgrade file receiving device and storage medium | |
CN115658184B (en) | Method and device for quickly starting cloud application, storage medium and electronic equipment | |
CN109857408A (en) | Application dispositions method, device, equipment, system and the readable storage medium storing program for executing of terminal | |
CN111522564A (en) | Method and device for identifying system upgrading state and computer readable storage medium |
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 |