CN102855152B - The method and system of resource file in upgrade applications - Google Patents

The method and system of resource file in upgrade applications Download PDF

Info

Publication number
CN102855152B
CN102855152B CN201210334305.7A CN201210334305A CN102855152B CN 102855152 B CN102855152 B CN 102855152B CN 201210334305 A CN201210334305 A CN 201210334305A CN 102855152 B CN102855152 B CN 102855152B
Authority
CN
China
Prior art keywords
application program
application
mapping relationship
installation file
file
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.)
Expired - Fee Related
Application number
CN201210334305.7A
Other languages
Chinese (zh)
Other versions
CN102855152A (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.)
Juhaokan Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201210334305.7A priority Critical patent/CN102855152B/en
Publication of CN102855152A publication Critical patent/CN102855152A/en
Application granted granted Critical
Publication of CN102855152B publication Critical patent/CN102855152B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明公开了一种升级应用程序中资源文件的方法及系统。该方法包括:接收携带有应用程序信息的安装文件,根据携带的应用程序信息,更新安装文件与应用程序的映射关系表;从更新的映射关系表中,获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系,下发至对应应用程序所属的终端;终端存储接收的安装文件、以及,该安装文件与应用程序的映射关系,接收应用程序下载请求,查询获取应用程序映射的安装文件,并进行安装。应用本发明,可以减少网络传输资源耗费、提高网络传输效率。

The invention discloses a method and system for upgrading resource files in application programs. The method includes: receiving an installation file carrying application program information, updating a mapping relationship table between the installation file and the application program according to the carried application program information; obtaining an updated installation file from the updated mapping relationship table, and installing the updated The file and the mapping relationship between the installation file and the application program are sent to the terminal to which the corresponding application program belongs; the terminal stores the received installation file and the mapping relationship between the installation file and the application program, receives the application program download request, and queries to obtain the application program. The installation file of the program map, and install it. By applying the present invention, the consumption of network transmission resources can be reduced and the efficiency of network transmission can be improved.

Description

升级应用程序中资源文件的方法及系统Method and system for upgrading resource files in application programs

技术领域technical field

本发明涉及终端应用技术,尤其涉及一种升级应用程序中资源文件的方法及系统。The invention relates to terminal application technology, in particular to a method and system for upgrading resource files in application programs.

背景技术Background technique

随着国家三网融合的发展,电视市场逐渐成熟,越来越多的企业开始发展终端。终端是指具备开放式操作系统与芯片,拥有开放式应用平台,可实现双向人机交互功能,能通过自主安装应用程序实现新功能或增值服务,并可借助三网接入、3C融合等满足多样化和个性化需求的终端应用平台,例如,移动终端、会议终端、内置多媒体功能的个人计算机、个人数字助理等。With the development of national triple play integration, the TV market has gradually matured, and more and more enterprises have begun to develop terminals. The terminal refers to an open operating system and chip, an open application platform, which can realize two-way human-computer interaction function, can realize new functions or value-added services through independent installation of application programs, and can meet the needs of users with the help of triple network access and 3C integration. Terminal application platforms for diverse and individual needs, such as mobile terminals, conference terminals, personal computers with built-in multimedia functions, personal digital assistants, etc.

通过在终端中安装多样化和个性化的的应用程序,可以支持终端的多应用,但应用程序在使用过程中,为了支持不断扩展的应用功能,需要从相关服务器获取更新的应用程序升级包。对应用程序的升级,包括对应用程序中资源文件的升级以及应用功能文件的升级,其中,资源文件包括:应用程序中的图片、背景、图标、文字效果等信息,该资源文件的升级不涉及应用程序内部功能及业务逻辑的改变;应用功能文件包括应用功能升级信息,涉及应用程序内部功能及业务逻辑的改变。By installing diversified and personalized applications in the terminal, multiple applications of the terminal can be supported. However, in the process of using the application, in order to support the continuously expanding application functions, it is necessary to obtain an updated application upgrade package from the relevant server. The upgrade of the application program includes the upgrade of the resource files in the application program and the upgrade of the application function files. Among them, the resource files include: pictures, backgrounds, icons, text effects and other information in the application program. The upgrade of the resource files does not involve Changes in the internal functions and business logic of the application program; application function files include application function upgrade information, involving changes in the internal functions and business logic of the application program.

图1为现有终端升级应用程序的方法流程示意图。参见图1,该流程包括:FIG. 1 is a schematic flowchart of a method for upgrading an application program in an existing terminal. Referring to Figure 1, the process includes:

步骤101,终端按照预先设置的时间周期,向系统资源管理服务器发送应用程序升级请求,携带待升级的应用程序标识;Step 101, the terminal sends an application program upgrade request to the system resource management server according to a preset time period, carrying the application program identification to be upgraded;

本步骤中,终端存储有各应用程序信息,根据各应用程序设置的升级时间周期,在时间周期到时,向系统资源管理服务器发送携带该应用程序标识的应用程序升级请求。In this step, the terminal stores the information of each application program, and according to the upgrade time period set by each application program, when the time period expires, sends an application program upgrade request carrying the application program identifier to the system resource management server.

当然,实际应用中,终端也可以为各安装的应用程序设置统一升级的时间周期,在设置的时间周期到时,向系统资源管理服务器发送携带各应用程序标识的应用程序升级请求。Of course, in practical applications, the terminal can also set a unified upgrade time period for each installed application program, and when the set time period expires, send an application program upgrade request carrying the identification of each application program to the system resource management server.

应用程序升级请求中还携带有应用程序信息,例如,应用程序版本号信息、升级时间信息等,以使后续流程中,系统资源管理服务器根据应用程序信息确定是否有对应的应用程序升级包。The application program upgrade request also carries application program information, such as application program version number information, upgrade time information, etc., so that in the subsequent process, the system resource management server determines whether there is a corresponding application program upgrade package according to the application program information.

步骤102,接收系统资源管理服务器返回的携带应用程序标识的应用程序升级包,进行存储;Step 102, receiving and storing the application upgrade package carrying the application identifier returned by the system resource management server;

本步骤中,系统资源管理服务器接收携带应用程序标识的应用程序升级请求,根据应用程序升级请求中携带的应用程序信息,查询是否有应用程序标识对应的应用升级程序包,如果有,则将该应用升级程序包下发至终端,其中,各应用程序的资源文件可以相同,也可以不同,而各应用程序的应用功能文件互不相同。应用程序与资源文件以及应用功能文件采用紧耦合关系,即每一应用程序分别对应唯一的资源文件以及应用功能文件。In this step, the system resource management server receives the application upgrade request carrying the application identifier, and checks whether there is an application upgrade package corresponding to the application identifier according to the application information carried in the application upgrade request. The application upgrade program package is delivered to the terminal, wherein the resource files of each application program may be the same or different, and the application function files of each application program are different from each other. The application program, the resource file and the application function file adopt a tightly coupled relationship, that is, each application program corresponds to a unique resource file and application function file.

步骤103,查询待升级的应用程序是否运行,如果是,执行步骤104,否则,执行步骤105;Step 103, inquire whether the application program to be upgraded is running, if yes, execute step 104, otherwise, execute step 105;

本步骤中,终端存储应用程序升级包后,如果需要运行该应用升级程序包,需要先确定该应用程序没有运行。In this step, after the terminal stores the application program upgrade package, if the application program upgrade package needs to be run, it needs to be confirmed that the application program is not running.

步骤104,触发应用程序退出运行状态;Step 104, triggering the application program to exit the running state;

步骤105,运行应用程序升级包进行应用程序升级。Step 105, run the application program upgrade package to upgrade the application program.

由上述可见,由于各应用程序的资源文件可以相同,而现有终端升级应用程序的方法,对于只需经常升级资源文件的应用程序来说,由于应用程序与资源文件是紧耦合关系,使得不同的应用程序,即使具有相同的资源文件,也需要从系统资源管理服务器分别获取相应的应用程序升级包,导致终端需要重复下载封装有同一资源文件的应用程序升级包,耗费了网络传输资源,传输所需的时间较长,网络传输效率低,影响了用户对应用的体验;进一步地,终端需要分别存储各携带有同一资源文件的应用程序升级包,浪费了终端的存储空间。It can be seen from the above that since the resource files of each application program can be the same, and the existing method for updating the application program of the terminal, for the application program that only needs to update the resource file frequently, due to the tightly coupled relationship between the application program and the resource file, it makes different Even if the application program has the same resource file, it needs to obtain the corresponding application program upgrade package from the system resource management server separately, causing the terminal to repeatedly download the application program upgrade package packaged with the same resource file, which consumes network transmission resources and transmission It takes a long time and the network transmission efficiency is low, which affects the user's experience of the application; further, the terminal needs to store the application upgrade packages each carrying the same resource file, which wastes the storage space of the terminal.

发明内容Contents of the invention

本发明的实施例提供一种升级应用程序中资源文件的方法,减少网络传输资源耗费、提高网络传输效率。Embodiments of the present invention provide a method for upgrading resource files in application programs, which reduces network transmission resource consumption and improves network transmission efficiency.

本发明的实施例还提供一种升级应用程序中资源文件的系统,减少网络传输资源耗费、提高网络传输效率。Embodiments of the present invention also provide a system for upgrading resource files in application programs, which reduces network transmission resource consumption and improves network transmission efficiency.

为达到上述目的,本发明实施例提供的一种升级应用程序中资源文件的方法,包括:In order to achieve the above purpose, a method for upgrading resource files in an application program provided by an embodiment of the present invention includes:

接收携带有应用程序信息的安装文件,根据携带的应用程序信息,更新安装文件与应用程序的映射关系表;receiving the installation file carrying the application program information, and updating the mapping relationship table between the installation file and the application program according to the carried application program information;

从更新的映射关系表中,获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系,下发至对应应用程序所属的终端;Obtain an updated installation file from the updated mapping relationship table, and deliver the updated installation file and the mapping relationship between the installation file and the application program to the terminal to which the corresponding application program belongs;

终端存储接收的安装文件、以及,该安装文件与应用程序的映射关系,接收应用程序下载请求,查询获取应用程序映射的安装文件,并进行安装。The terminal stores the received installation file and the mapping relationship between the installation file and the application program, receives the application program download request, inquires to obtain the installation file mapped to the application program, and performs installation.

其中,所述安装文件包括:资源文件以及应用功能文件。Wherein, the installation files include: resource files and application function files.

其中,所述应用程序以应用程序信息进行唯一标识,所述应用程序信息包括:应用程序标识信息以及应用程序更新信息。Wherein, the application program is uniquely identified by application program information, and the application program information includes: application program identification information and application program update information.

其中,所述应用程序更新信息包括:应用程序版本号信息以及应用程序更新时间信息。Wherein, the application program update information includes: application program version number information and application program update time information.

其中,所述更新安装文件与应用程序的映射关系表包括:Wherein, the mapping relationship table between the update installation file and the application program includes:

查询是否存储有接收的安装文件对应的映射关系表;Query whether the mapping relationship table corresponding to the received installation file is stored;

如果有,比较接收的安装文件对应的应用程序标识信息与映射关系表中,该安装文件对应的应用程序信息,如果相同,不作处理,否则,建立接收的安装文件与应用程序的映射关系表,删除存储的映射关系表中包含的该安装文件对应的应用程序;If there is, compare the application identification information corresponding to the received installation file with the application program information corresponding to the installation file in the mapping relationship table, if they are the same, do not process, otherwise, establish the mapping relationship table between the received installation file and the application program, Delete the application program corresponding to the installation file contained in the stored mapping relationship table;

如果没有,建立接收的安装文件与应用程序的映射关系表。If not, establish a mapping relationship table between received installation files and application programs.

其中,所述从更新的映射关系表中,获取更新的安装文件包括:Wherein, said obtaining the updated installation file from the updated mapping relationship table includes:

预先存储终端中安装的应用程序信息;Pre-store the application information installed in the terminal;

从更新的映射关系表中,查询并获取与存储的终端中应用程序标识相同的应用程序;From the updated mapping relationship table, query and obtain the same application program as the application ID stored in the terminal;

判断获取的应用程序更新信息是否与存储的终端中的应用程序更新信息相一致,如果不一致,获取更新的映射关系表中,该获取的应用程序对应的的资源文件、以及,该资源文件与该终端中应用程序的映射关系。Judging whether the obtained application program update information is consistent with the stored application program update information in the terminal, if not, obtain the resource file corresponding to the obtained application program in the updated mapping relationship table, and the resource file and the The mapping relationship of applications in the terminal.

其中,所述从更新的映射关系表中,获取更新的安装文件包括:Wherein, said obtaining the updated installation file from the updated mapping relationship table includes:

终端按照预先设置的周期,向系统资源管理服务器发送应用程序更新请求,携带安装的应用程序信息;The terminal sends an application program update request to the system resource management server according to the preset cycle, carrying the installed application program information;

从更新的映射关系表中,查询并获取与接收的应用程序信息中应用程序标识相同的应用程序;From the updated mapping relationship table, query and obtain the application with the same application ID as that in the received application information;

判断获取的应用程序更新信息是否与接收的应用程序更新信息相一致,如果不一致,获取更新的映射关系表中,该获取的应用程序对应的的资源文件、以及,该资源文件与该终端中应用程序的映射关系。Judging whether the obtained application program update information is consistent with the received application program update information, if not, obtain the resource file corresponding to the obtained application program in the updated mapping relationship table, and the resource file and the application program in the terminal The mapping relationship of the program.

其中,在所述查询获取应用程序映射的安装文件的步骤之后,进行安装的步骤之前,进一步包括:Wherein, after the step of querying to obtain the installation file of the application mapping and before the step of installing, it further includes:

判断安装文件是否为资源文件,如果是,执行所述进行安装的步骤;如果是应用功能文件,进一步判断应用功能文件对应的应用程序是否运行,如果不运行,执行所述进行安装的步骤,如果运行,监测该应用程序的运行,并在监测到该应用程序结束运行后,执行所述进行安装的步骤。Judging whether the installation file is a resource file, if so, performing the installation steps described above; if it is an application function file, further determining whether the application corresponding to the application function file is running, if not running, performing the installation steps described above, if Running, monitoring the running of the application program, and executing the steps of installing after monitoring that the application program finishes running.

一种升级应用程序中资源文件的系统,该系统包括:终端以及系统资源管理服务器,其中,A system for upgrading resource files in application programs, the system includes: a terminal and a system resource management server, wherein,

终端,用于存储接收的安装文件、以及,该安装文件与应用程序的映射关系,接收应用程序下载请求,查询获取应用程序映射的安装文件,并进行安装;The terminal is used to store the received installation file and the mapping relationship between the installation file and the application program, receive the application download request, query and obtain the installation file mapped to the application program, and install it;

系统资源管理服务器,用于接收携带有应用程序信息的安装文件,根据携带的应用程序信息,更新安装文件与应用程序的映射关系表;The system resource management server is configured to receive the installation file carrying application program information, and update the mapping relationship table between the installation file and the application program according to the carried application program information;

从更新的映射关系表中,获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系,下发至对应应用程序所属的终端。The updated installation file is obtained from the updated mapping relationship table, and the updated installation file and the mapping relationship between the installation file and the application program are delivered to the terminal to which the corresponding application program belongs.

所述终端在查询获取应用程序映射的安装文件后,进一步用于判断安装文件是否为资源文件,如果是,执行所述进行安装的步骤;如果是应用功能文件,进一步判断应用功能文件对应的应用程序是否运行,如果不运行,执行所述进行安装的步骤,如果运行,监测该应用程序的运行,并在监测到该应用程序结束运行后,执行所述进行安装的步骤。After the terminal inquires and obtains the installation file mapped by the application program, it is further used to determine whether the installation file is a resource file, and if so, executes the step of installing; if it is an application function file, further determines the application corresponding to the application function file Whether the program runs, if not, execute the step of installing, if it runs, monitor the running of the application, and execute the step of installing after detecting that the running of the application ends.

所述系统资源管理服务器包括:接收模块、更新模块、映射关系表存储模块、映射关系表创建模块以及发送模块,其中,The system resource management server includes: a receiving module, an updating module, a mapping relationship table storage module, a mapping relationship table creation module and a sending module, wherein,

接收模块,用于接收携带有应用程序信息的安装文件;A receiving module, configured to receive an installation file carrying application program information;

映射关系表存储模块,用于存储创建的映射关系表;The mapping relationship table storage module is used to store the created mapping relationship table;

更新模块,用于查询映射关系表存储模块是否存储有接收的安装文件对应的映射关系表,如果有,将接收的安装文件对应的应用程序信息与映射关系表中,该安装文件对应的应用程序信息进行比较,如果相同,不作处理,否则,向映射关系表创建模块输出携带有应用程序信息的该安装文件;The update module is used to query whether the mapping relationship table storage module stores the mapping relationship table corresponding to the received installation file, and if so, compares the application program information corresponding to the received installation file with the application program corresponding to the installation file in the mapping relationship table Information is compared, if identical, do not process, otherwise, output this installation file that carries application program information to mapping relationship table creation module;

映射关系表创建模块,用于根据携带有应用程序信息的安装文件,建立安装文件与应用程序的映射关系表,删除存储的映射关系表中包含的该安装文件对应的应用程序;A mapping relationship table creation module, configured to establish a mapping relationship table between the installation file and the application program according to the installation file carrying the application program information, and delete the application program corresponding to the installation file included in the stored mapping relationship table;

发送模块,用于从更新的映射关系表中,获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系,下发至对应应用程序所属的终端。The sending module is configured to obtain an updated installation file from the updated mapping relationship table, and send the updated installation file and the mapping relationship between the installation file and the application program to the terminal to which the corresponding application program belongs.

所述系统资源管理服务器包括:接收模块、终端应用程序信息存储模块、更新模块、映射关系表存储模块、映射关系表创建模块以及发送模块,其中,The system resource management server includes: a receiving module, a terminal application information storage module, an update module, a mapping relationship table storage module, a mapping relationship table creation module and a sending module, wherein,

接收模块,用于接收携带有应用程序信息的安装文件;A receiving module, configured to receive an installation file carrying application program information;

终端应用程序信息存储模块,用于存储各终端中安装的应用程序信息;The terminal application program information storage module is used to store the application program information installed in each terminal;

映射关系表创建模块,用于根据携带有应用程序信息的安装文件,建立安装文件与应用程序的映射关系表,输出至映射关系表存储模块进行存储;The mapping relationship table creation module is used to establish the mapping relationship table between the installation file and the application program according to the installation file carrying the application program information, and output it to the mapping relationship table storage module for storage;

更新模块,用于从映射关系表中,查询并获取与存储的终端中应用程序标识相同的应用程序,判断获取的应用程序更新信息是否与存储的终端中的应用程序更新信息相一致,如果不一致,获取映射关系表中,所述获取的应用程序对应的的资源文件、以及,该资源文件与该终端中应用程序的映射关系,输出至发送模块;The update module is used to query and obtain the application program with the same application ID as the stored terminal application program from the mapping relationship table, and determine whether the obtained application program update information is consistent with the stored application program update information in the terminal, if not , obtaining the resource file corresponding to the obtained application program in the mapping relationship table, and the mapping relationship between the resource file and the application program in the terminal, and outputting to the sending module;

发送模块,用于将接收的资源文件、以及,该资源文件与该终端中应用程序的映射关系,下发至对应应用程序所属的终端。The sending module is configured to deliver the received resource file and the mapping relationship between the resource file and the application program in the terminal to the terminal to which the corresponding application program belongs.

所述终端包括:终端资源管理模块以及应用程序模块,其中,The terminal includes: a terminal resource management module and an application program module, wherein,

终端资源管理模块,用于存储接收的安装文件、以及,该安装文件与应用程序的映射关系,接收应用程序模块发送的应用程序下载请求,查询获取应用程序映射的安装文件,下发至应用程序模块;The terminal resource management module is used to store the received installation file and the mapping relationship between the installation file and the application program, receive the application program download request sent by the application program module, query and obtain the installation file mapped by the application program, and send it to the application program module;

应用程序模块,用于根据接收的安装文件进行安装。An application module for installation based on received installation files.

所述终端进一步包括:The terminal further includes:

监测模块,用于在终端资源管理模块查询获取应用程序映射的安装文件后,判断安装文件是否为资源文件,如果是,触发终端资源管理模块向应用程序模块下发安装文件;如果是应用功能文件,进一步判断应用功能文件对应的应用程序是否运行,如果不运行,触发终端资源管理模块向应用程序模块下发安装文件,如果运行,监测该应用程序的运行,并在监测到该应用程序结束运行后,触发终端资源管理模块向应用程序模块下发安装文件。The monitoring module is used to determine whether the installation file is a resource file after the terminal resource management module queries and obtains the installation file mapped by the application program, and if so, triggers the terminal resource management module to send the installation file to the application module; if it is an application function file , to further judge whether the application program corresponding to the application function file is running, if not running, trigger the terminal resource management module to deliver the installation file to the application program module, if running, monitor the running of the application program, and end the running of the application program when it is detected After that, the terminal resource management module is triggered to deliver the installation file to the application module.

由上述技术方案可见,本发明实施例提供的一种升级应用程序中资源文件的方法及系统,接收携带有应用程序信息的安装文件,根据携带的应用程序信息,更新安装文件与应用程序的映射关系表;从更新的映射关系表中,获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系,下发至对应应用程序所属的终端;终端存储接收的安装文件、以及,该安装文件与应用程序的映射关系,接收应用程序下载请求,查询获取应用程序映射的安装文件,并进行安装。这样,通过建立安装文件与应用程序的映射关系表,使得一个安装文件可以映射多个应用程序,因而,终端中的多个应用程序获取相同的安装文件时,只需从系统资源管理服务器获取一份安装文件,有效降低了网络传输资源的耗费,从而提高了网络传输效率。It can be seen from the above technical solutions that the embodiment of the present invention provides a method and system for upgrading resource files in an application program, which receives an installation file carrying application program information, and updates the mapping between the installation file and the application program according to the carried application program information relationship table; from the updated mapping relationship table, the updated installation file is obtained, and the updated installation file and the mapping relationship between the installation file and the application program are sent to the terminal to which the corresponding application program belongs; the terminal stores the received installation file, And, the mapping relationship between the installation file and the application program, receiving the download request of the application program, querying to obtain the installation file mapped to the application program, and installing it. In this way, by establishing a mapping relationship table between installation files and application programs, one installation file can be mapped to multiple application programs. Therefore, when multiple application programs in the terminal obtain the same installation file, they only need to obtain one One installation file, which effectively reduces the consumption of network transmission resources, thereby improving the efficiency of network transmission.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,以下将对实施例或现有技术描述中所需要使用的附图作简单地介绍。显而易见地,以下描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员而言,还可以根据这些附图所示实施例得到其它的实施例及其附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Apparently, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other embodiments and their drawings according to the embodiments shown in these drawings.

图1为现有终端升级应用程序的方法流程示意图。FIG. 1 is a schematic flowchart of a method for upgrading an application program in an existing terminal.

图2为本发明实施例升级应用程序中资源文件的方法流程示意图。FIG. 2 is a schematic flowchart of a method for upgrading resource files in an application program according to an embodiment of the present invention.

图3为本发明第一实施例升级应用程序中资源文件的方法流程示意图。FIG. 3 is a schematic flowchart of a method for upgrading resource files in an application program according to the first embodiment of the present invention.

图4为本发明第二实施例升级应用程序中资源文件的方法流程示意图。FIG. 4 is a schematic flowchart of a method for upgrading resource files in an application program according to the second embodiment of the present invention.

图5为本发明第三实施例升级应用程序中资源文件的方法流程示意图。FIG. 5 is a schematic flowchart of a method for upgrading resource files in an application program according to the third embodiment of the present invention.

图6为本发明实施例升级应用程序中资源文件的系统结构示意图。FIG. 6 is a schematic diagram of a system structure for updating resource files in an application program according to an embodiment of the present invention.

图7为本发明实施例升级应用程序中资源文件的系统具体结构示意图。FIG. 7 is a schematic structural diagram of a system for upgrading resource files in an application program according to an embodiment of the present invention.

具体实施方式detailed description

以下将结合附图对本发明各实施例的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所得到的所有其它实施例,都属于本发明所保护的范围。The technical solutions of the various embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

现有终端升级应用程序的方法,对于只需经常升级资源文件的应用程序来说,由于应用程序与资源文件是紧耦合关系,各应用程序即使具有相同的资源文件,也需要分别进行下载,使得下载重复的资源文件,耗费了网络传输资源;同时,传输重复的资源文件,也使得传输所需的时间较长;进一步地,还需要终端进行重复的存储,浪费了终端的存储空间;而且,在升级过程中,还需要退出应用程序运行状态,在升级的时间段内,应用程序无法正常运行,影响用户对应用的使用体验。In the existing methods for updating application programs on terminals, for applications that only need to update resource files frequently, since the application programs and resource files are tightly coupled, even if the application programs have the same resource files, they need to be downloaded separately. Downloading duplicate resource files consumes network transmission resources; at the same time, transmitting duplicate resource files also makes the transmission time longer; further, the terminal is required to perform repeated storage, which wastes the storage space of the terminal; and, During the upgrade process, it is also necessary to exit the running state of the application. During the upgrade period, the application cannot run normally, affecting the user's experience with the application.

本发明实施例中,考虑到应用程序的资源文件升级与应用功能文件升级,分别为两个相互独立、互不关联的升级流程,因而,解除应用程序与资源文件以及应用功能文件的紧耦合关系,使之分离,形成松耦合关系,即将应用程序的升级分解为相互独立的资源文件的升级以及应用功能文件的升级,应用程序可以依据应用程序资源文件升级包进行升级,也可以依据应用程序应用功能文件升级包进行升级。因而,对于具有相同资源文件的应用程序来说,只需从系统资源管理服务器获取一份资源文件,并将该资源文件存储在共享的终端资源管理模块中,由终端资源管理模块进行集中管理。这样,具有相同资源文件的应用程序即可进行资源文件的升级,从而使得系统资源管理服务器只需传输一次资源文件,有效降低了网络传输资源的耗费。In the embodiment of the present invention, considering that the resource file upgrade of the application program and the application function file upgrade are two mutually independent and unrelated upgrade processes, therefore, the tight coupling relationship between the application program, the resource file and the application function file is released , to separate them and form a loosely coupled relationship, that is, to decompose the upgrade of the application program into the upgrade of the resource files and the upgrade of the application function files that are independent of each other. Function file upgrade package to upgrade. Therefore, for applications with the same resource file, only one resource file needs to be obtained from the system resource management server, and the resource file is stored in the shared terminal resource management module, which is centrally managed by the terminal resource management module. In this way, application programs with the same resource file can upgrade the resource file, so that the system resource management server only needs to transmit the resource file once, effectively reducing the consumption of network transmission resources.

进一步地,应用程序在升级过程中,终端可以通过查询应用程序升级包中是否只包含资源文件,如果是,可以在不退出当前应用程序的基础上,实现对应用程序资源文件的升级,提升用户对应用的使用体验。Furthermore, during the upgrade process of the application program, the terminal can query whether the application program upgrade package only contains resource files, and if so, can realize the upgrade of the application program resource files without exiting the current application program, so as to improve user experience with the application.

所应说明的是,对于应用程序中应用功能文件的升级,与现有技术相同,后续不再赘述。It should be noted that the upgrade of the application function file in the application program is the same as that of the prior art, and details will not be described later.

图2为本发明实施例升级应用程序中资源文件的方法流程示意图。参见图2,该流程包括:FIG. 2 is a schematic flowchart of a method for upgrading resource files in an application program according to an embodiment of the present invention. Referring to Figure 2, the process includes:

步骤201,接收携带有应用程序信息的安装文件,根据携带的应用程序信息,更新安装文件与应用程序的映射关系表;Step 201, receiving an installation file carrying application program information, and updating a mapping relationship table between the installation file and the application program according to the carried application program information;

本步骤中,应用程序以应用程序信息进行唯一标识,应用程序信息包括:应用程序标识信息以及应用程序更新信息,其中,应用程序更新信息可以是应用程序版本号信息,也可以是应用程序更新时间信息。In this step, the application is uniquely identified by application information, and the application information includes: application identification information and application update information, where the application update information can be the application version number information, or the application update time information.

应用程序开发者在开发应用程序或进行应用程序升级时,解除应用程序与资源文件的紧耦合关系,使之分离,形成松耦合关系,将应用程序拆分为多个安装文件,例如,如前所述,拆分为相互独立的资源文件以及应用功能文件,其中,较佳地,资源文件为一个或多个,应用功能文件为一个。When developing an application or upgrading an application, the application developer releases the tight coupling relationship between the application and the resource file, separates them, forms a loosely coupled relationship, and splits the application into multiple installation files, for example, as before As described above, it is split into resource files and application function files that are independent of each other, wherein, preferably, there are one or more resource files and one application function file.

本发明实施例中,安装文件包括:资源文件以及应用功能文件。In the embodiment of the present invention, the installation files include: resource files and application function files.

应用程序开发人员在提供用于应用程序的资源文件以及应用功能文件时,分别提供其能够适用的应用程序,并将携带有应用程序信息的安装文件上传至系统资源管理服务器,系统资源管理服务器根据接收的资源文件以及应用功能文件,分别建立资源文件与应用程序的映射关系表、以及,应用功能文件与应用程序的映射关系表。其中,一个资源文件可以映射一个或多个应用程序,一个应用功能文件映射一个应用程序。也就是说,资源文件与应用程序为一对多关系,而应用功能文件与应用程序为一对一关系。When the application developer provides the resource files and application function files for the application, they respectively provide the applicable application, and upload the installation file carrying the application information to the system resource management server. For the received resource file and application function file, a mapping relationship table between the resource file and the application program and a mapping relationship table between the application function file and the application program are respectively established. Wherein, one resource file can map one or more application programs, and one application function file maps one application program. That is to say, there is a one-to-many relationship between resource files and applications, and a one-to-one relationship between application function files and applications.

如果在一次应用程序更新中,应用程序开发人员只对资源文件或应用功能文件进行了更新,相应的应用程序信息也需要更新;如果对资源文件和应用功能文件均进行了更新,则只需更新一次应用程序信息。If in an application update, the application developer only updates the resource file or the application function file, the corresponding application information also needs to be updated; if both the resource file and the application function file are updated, only the update Once application information.

下面描述中,由于应用功能文件的获取与现有技术获取应用程序包相同,后续不再赘述。In the following description, since the acquisition of the application function file is the same as the acquisition of the application program package in the prior art, no further description will be given hereafter.

资源文件中,可以携带有一个或多个应用程序信息,例如,该资源文件如果由某一应用程序开发人员开发,未获其它应用程序提供商许可,则在上传该资源文件时,携带该开发的应用程序信息,其中,对于以应用程序版本号标识应用程序的应用程序信息来说,可以在原应用程序版本号的基础上进行累加,作为新的应用程序的版本号;而对于应用程序更新时间信息标识应用程序的应用程序信息来说,以该应用程序更新时间替换原应用程序的更新时间。A resource file can carry one or more application information. For example, if the resource file is developed by a certain application developer and has not been approved by other application providers, the resource file will be uploaded when the resource file is uploaded. The application program information, wherein, for the application program information identified by the application program version number, it can be accumulated on the basis of the original application program version number as the new application program version number; and for the application program update time For the application program information of the information identification application program, the update time of the original application program is replaced with the update time of the application program.

如果由某一应用程序开发人员开发的资源文件获得其它应用程序提供商许可,则在上传该资源文件时,可以携带该开发的应用程序信息以及同意许可的其它应用程序信息。对于应用程序中的应用功能文件,一般携带该应用功能唯一对应的应用程序信息。If a resource file developed by an application developer is licensed by another application provider, when uploading the resource file, it may carry the developed application information and other application information agreed to license. For the application function file in the application program, it generally carries the application program information uniquely corresponding to the application function.

当然,实际应用中,其它应用程序的开发者在开发资源文件时,也可以通过浏览系统资源管理服务器,如果发现有适用自己待开发的应用程序对应的资源文件后,经该资源文件提供商许可后,将该资源文件上传至系统资源管理服务器,携带待开发的应用程序信息。Of course, in practical applications, developers of other application programs can also browse the system resource management server when developing resource files. Afterwards, the resource file is uploaded to the system resource management server, carrying the application program information to be developed.

更新安装文件与应用程序的映射关系表包括:Update the mapping relationship between installation files and applications including:

A11,查询是否存储有接收的安装文件对应的映射关系表,如果有,执行步骤A12,否则,执行步骤A13;A11, query whether there is a mapping relationship table corresponding to the received installation file stored, if yes, execute step A12, otherwise, execute step A13;

A12,比较接收的安装文件对应的应用程序标识信息与映射关系表中,该安装文件对应的应用程序信息,如果相同,不作处理,否则,建立接收的安装文件与应用程序的映射关系表,删除存储的映射关系表中包含的该安装文件对应的应用程序;A12, compare the application identification information corresponding to the received installation file with the mapping relationship table, the application information corresponding to the installation file, if the same, do not process, otherwise, establish the mapping relationship table between the received installation file and the application program, delete the application program corresponding to the installation file contained in the stored mapping relationship table;

本步骤中,具体来说,以安装文件为资源文件为例,对于应用程序信息为应用程序版本号信息的情形,比较接收的资源文件对应的应用程序版本号与映射关系表中,该资源文件对应的应用程序版本号,如果接收的资源文件对应的应用程序版本号高于映射关系表中存储的应用程序版本号,建立接收的资源文件与应用程序的映射关系表,删除存储的映射关系表中包含的该安装文件对应的应用程序;In this step, specifically, taking the installation file as a resource file as an example, for the case where the application information is the application version number information, compare the application version number corresponding to the received resource file with the mapping relationship table, the resource file Corresponding application program version number, if the application program version number corresponding to the received resource file is higher than the application program version number stored in the mapping relationship table, establish a mapping relationship table between the received resource file and the application program, and delete the stored mapping relationship table The application program corresponding to the installation file contained in ;

对于应用程序信息为应用程序更新时间信息的情形,比较接收的资源文件对应的应用程序更新时间与映射关系表中,该资源文件对应的应用程序更新时间,如果接收的资源文件对应的应用程序更新时间(例如,2012.08.06)晚于映射关系表中存储的应用程序更新时间(例如,2012.03.06),建立接收的资源文件与应用程序的映射关系表,删除存储的映射关系表中包含的该安装文件对应的应用程序。For the case where the application information is the application update time information, compare the application update time corresponding to the received resource file with the application update time corresponding to the resource file in the mapping relationship table, if the application update time corresponding to the received resource file The time (for example, 2012.08.06) is later than the application update time (for example, 2012.03.06) stored in the mapping relationship table, establish a mapping relationship table between the received resource file and the application program, and delete the stored mapping relationship table. The application corresponding to the installation file.

本发明实施例中,对于安装文件为资源文件的情形,系统资源管理服务器接收的资源文件可能是新开发的,也可能是用于升级的,其中,携带的应用程序标识在存储的映射关系表中,可能存在,也可能不存在。因而,对于映射关系表中存在的应用程序,需要更新其映射的资源文件以及应用程序信息,而对于映射关系表中不存在的应用程序,则需要新建立资源文件与应用程序的映射关系表。In the embodiment of the present invention, for the situation where the installation file is a resource file, the resource file received by the system resource management server may be newly developed, or may be used for upgrading, wherein the carried application program identifier is stored in the mapping relationship table , may or may not exist. Therefore, for an application program existing in the mapping relationship table, its mapped resource file and application program information need to be updated, and for an application program not existing in the mapping relationship table, a new mapping relationship table between resource files and application programs needs to be established.

A13,建立接收的安装文件与应用程序的映射关系表。A13, establishing a mapping relationship table between received installation files and application programs.

本步骤中,资源文件与应用程序形成映射关系,即资源文件映射应用程序标识信息以及应用程序更新信息。In this step, the resource file and the application program form a mapping relationship, that is, the resource file maps application program identification information and application program update information.

本发明实施例中,举例来说,如果系统资源管理服务器接收的资源文件a对应的应用程序标识信息为A、B、C,应用程序A、B、C对应的应用程序版本号信息均为为1.1,在系统资源管理服务器中,存储有应用程序版本号信息均为为1.0的资源文件a的映射关系表,映射的应用程序标识信息为A、B、D,则根据上述流程,新建立应用程序版本号信息均为为1.1的资源文件a的映射关系表,映射的应用程序标识信息为A、B、C;而从存储的应用程序版本号信息均为1.0的资源文件a的映射关系表中,删除应用程序标识信息为A、B的应用程序,即应用程序版本号信息为1.0的资源文件a的原映射关系表中,映射的应用程序标识信息为D。In the embodiment of the present invention, for example, if the application identification information corresponding to the resource file a received by the system resource management server is A, B, and C, the application version number information corresponding to the application programs A, B, and C are all 1.1. In the system resource management server, there is stored a mapping relationship table of resource file a whose application version number information is 1.0, and the mapped application identification information is A, B, and D. Then, according to the above process, a new application is created The mapping relationship table of resource file a whose program version number information is all 1.1, the mapped application identification information is A, B, C; and the mapping relationship table of resource file a whose application version number information is all 1.0 from the storage , delete the applications whose application identification information is A and B, that is, the application identification information mapped to D in the original mapping relationship table of the resource file a whose application version number information is 1.0.

步骤202,从更新的映射关系表中,获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系,下发至对应应用程序所属的终端;Step 202, obtain an updated installation file from the updated mapping relationship table, and deliver the updated installation file and the mapping relationship between the installation file and the application program to the terminal to which the corresponding application program belongs;

本步骤中,以安装文件为资源文件为例,从更新的映射关系表中,获取更新的安装文件包括:In this step, taking the installation file as a resource file as an example, the updated installation file obtained from the updated mapping relationship table includes:

A21,预先存储终端中安装的应用程序信息;A21, storing application program information installed in the terminal in advance;

本步骤中,系统资源管理服务器可以周期性地向终端下发请求,请求终端上报安装的应用程序信息,也可以是终端周期性的主动向系统资源管理服务器安装的应用程序信息。系统资源管理服务器接收各终端上报的信息,进行存储。In this step, the system resource management server may periodically send a request to the terminal to request the terminal to report the information of the installed application program, or the terminal may periodically actively send the information of the application program installed to the system resource management server. The system resource management server receives and stores the information reported by each terminal.

A22,从更新的映射关系表中,查询并获取与存储的终端中应用程序标识相同的应用程序;A22, from the updated mapping relationship table, query and obtain the application that is the same as the stored application identifier in the terminal;

本步骤中,系统资源管理服务器首先需要获取映射关系表中,该终端中安装的应用程序。In this step, the system resource management server first needs to obtain the application program installed in the terminal in the mapping relationship table.

A23,判断获取的应用程序更新信息是否与存储的终端中的应用程序更新信息相一致,如果不一致,获取更新的映射关系表中,该获取的应用程序对应的的资源文件、以及,该资源文件与该终端中应用程序的映射关系。A23. Determine whether the acquired application update information is consistent with the stored application update information in the terminal. If not, acquire the resource file corresponding to the acquired application and the resource file in the updated mapping relationship table The mapping relationship with the application program in this terminal.

本步骤中,如果从更新的映射关系表中获取的应用程序更新信息,与终端中相应应用程序的应用程序更新信息不一致,表明该应用程序进行了更新。In this step, if the application update information obtained from the updated mapping relationship table is inconsistent with the application update information of the corresponding application in the terminal, it indicates that the application has been updated.

本发明实施例中,对每一终端,执行上述步骤A22至A23,这样,如果终端中多个程序具有相同的资源文件,则只需从系统资源管理服务器下载一次即可,有效地降低了传输的数据量,节约了传输资源开销,从而减少了网络传输资源耗费,同时也有效降低了传输时间,提高了网络传输效率。In the embodiment of the present invention, for each terminal, the above-mentioned steps A22 to A23 are executed. In this way, if multiple programs in the terminal have the same resource file, it only needs to be downloaded once from the system resource management server, which effectively reduces the transmission cost. The amount of data saves the overhead of transmission resources, thereby reducing the consumption of network transmission resources, effectively reducing the transmission time and improving the efficiency of network transmission.

实际应用中,从更新的映射关系表中,获取更新的安装文件还可以包括:In practical applications, obtaining the updated installation file from the updated mapping relationship table may also include:

A31,终端按照预先设置的周期,向系统资源管理服务器发送应用程序更新请求,携带安装的应用程序信息;A31. The terminal sends an application program update request to the system resource management server according to a preset period, carrying installed application program information;

本步骤中,终端可以主动发起应用程序更新。携带所有应用程序的应用程序信息。In this step, the terminal can actively initiate an application program update. Carries application information for all applications.

A32,从更新的映射关系表中,查询并获取与接收的应用程序信息中应用程序标识相同的应用程序;A32, from the updated mapping relationship table, query and obtain the application program with the same application ID in the received application program information;

本步骤中,系统资源管理服务器首先需要获取映射关系表中,该终端中安装的应用程序。In this step, the system resource management server first needs to obtain the application program installed in the terminal in the mapping relationship table.

A33,判断获取的应用程序更新信息是否与接收的应用程序更新信息相一致,如果不一致,获取更新的映射关系表中,该获取的应用程序对应的的资源文件、以及,该资源文件与该终端中应用程序的映射关系。A33. Determine whether the acquired application update information is consistent with the received application update information. If not, acquire the resource file corresponding to the acquired application in the updated mapping table, and the resource file and the terminal The mapping relationship of the application in .

本步骤中,如果从更新的映射关系表中获取的应用程序更新信息,与终端中相应应用程序的应用程序更新信息不一致,表明该应用程序进行了更新。In this step, if the application update information obtained from the updated mapping relationship table is inconsistent with the application update information of the corresponding application in the terminal, it indicates that the application has been updated.

步骤203,终端存储接收的安装文件、以及,该安装文件与应用程序的映射关系,接收应用程序下载请求,查询获取应用程序映射的安装文件,并进行安装。Step 203, the terminal stores the received installation file and the mapping relationship between the installation file and the application program, receives the application program download request, queries to obtain the installation file mapped to the application program, and installs it.

本步骤中,终端存储接收的资源文件、以及,该资源文件与应用程序的映射关系,对资源文件进行统一管理。In this step, the terminal stores the received resource file and the mapping relationship between the resource file and the application program, and performs unified management of the resource file.

本发明实施例中,终端在接收到资源文件后,根据资源文件与应用程序的映射关系,可以主动向资源文件映射的各应用发送通知消息,应用接收通知消息后,如果确定进行更新,发送应用程序下载请求。也可以是各应用按照预先设置的时间周期,定时发送应用程序下载请求以获取更新的资源文件。In the embodiment of the present invention, after receiving the resource file, the terminal can actively send a notification message to each application mapped to the resource file according to the mapping relationship between the resource file and the application program. Program download request. It may also be that each application regularly sends an application program download request according to a preset time period to obtain updated resource files.

在查询获取应用程序映射的安装文件的步骤之后,进行安装的步骤之前,进一步包括:After the step of querying for the installation file of the application mapping and before the step of installing, further include:

判断安装文件是否为资源文件,如果是,执行所述进行安装的步骤;如果是应用功能文件,进一步判断应用功能文件对应的应用程序是否运行,如果不运行,执行所述进行安装的步骤,如果运行,监测该应用程序的运行,并在监测到该应用程序结束运行后,执行所述进行安装的步骤。Judging whether the installation file is a resource file, if so, performing the installation steps described above; if it is an application function file, further determining whether the application corresponding to the application function file is running, if not running, performing the installation steps described above, if Running, monitoring the running of the application program, and executing the steps of installing after monitoring that the application program finishes running.

下面举几个具体实施例,对本发明作进一步的详细描述。Several specific examples are given below to further describe the present invention in detail.

图3为本发明第一实施例升级应用程序中资源文件的方法流程示意图。本发明实施例中,假设应用程序A需更新终端资源库中没有的资源,则进行下载操作,并在下载成功后通知应用程序A进行资源更新。参见图3,该流程包括:FIG. 3 is a schematic flowchart of a method for upgrading resource files in an application program according to the first embodiment of the present invention. In the embodiment of the present invention, assuming that the application program A needs to update resources that are not in the resource library of the terminal, the download operation is performed, and the application program A is notified to update the resources after the download is successful. Referring to Figure 3, the process includes:

步骤301,终端资源管理服务模块与系统端资源管理服务器进行通信;Step 301, the terminal resource management service module communicates with the system-side resource management server;

本步骤中,终端资源管理服务模块与系统端资源管理服务器建立连接。实际应用中,各应用程序在开发完毕之后,上传的资源,即安装文件由系统端资源管理服务器进行统一管理,并建立安装文件与应用程序的映射关系表。在监测到应用程序的资源有增加或者变动,则通知终端进行相应增加或者变动。例如,增加了资源f,该应用程序就会将该资源提交到系统端资源管理服务器,系统端资源管理服务器将该变化记录下来,当终端资源管理服务模块与系统端资源管理服务器建立连接时,如果确定相关应用发生变化,则提示终端资源管理服务模块进行资源下载或者更新,终端资源管理服务模块在下载或者更新完成之后,提交一个反馈信息,以表示该终端上的该应用程序已经更新完毕,下次无需再更新了。In this step, the terminal resource management service module establishes a connection with the system-side resource management server. In practical application, after the development of each application program is completed, the resource uploaded, that is, the installation file is managed by the resource management server at the system side in a unified manner, and a mapping relationship table between the installation file and the application program is established. When an increase or change in the resource of the application program is detected, the terminal is notified to perform a corresponding increase or change. For example, if a resource f is added, the application program will submit the resource to the system-side resource management server, and the system-side resource management server will record the change. When the terminal resource management service module establishes a connection with the system-side resource management server, If it is determined that the relevant application has changed, the terminal resource management service module is prompted to download or update resources. After the download or update is completed, the terminal resource management service module submits a feedback message to indicate that the application program on the terminal has been updated. No need to update next time.

终端资源管理服务模块通过与系统端资源管理服务器建立通信连接,负责终端所有安装文件(资源文件以及应用功能文件)的下载、更新、删除、排序、搜索等操作,并负责通知应用程序进行安装文件更新或安装。The terminal resource management service module is responsible for downloading, updating, deleting, sorting, searching and other operations of all installation files (resource files and application function files) of the terminal by establishing a communication connection with the system-side resource management server, and is responsible for notifying the application program to install the file update or install.

步骤302,终端资源管理服务模块确定应用程序A的资源文件是否需要下载更新,如果否,返回执行步骤301,否则,执行步骤303;Step 302, the terminal resource management service module determines whether the resource file of application A needs to be downloaded and updated, if not, return to step 301, otherwise, execute step 303;

步骤303,终端资源管理服务模块从系统端资源管理服务器相应资源文件,存储至终端资源库;Step 303, the terminal resource management service module stores the corresponding resource file from the system-side resource management server to the terminal resource library;

本步骤中,终端资源库用于存储有共享的资源文件。In this step, the terminal resource library is used to store shared resource files.

步骤304,判断下载是否成功,如果是,执行步骤305,返回执行步骤301;Step 304, determine whether the download is successful, if so, execute step 305, and return to execute step 301;

步骤305,向应用程序A发送通知消息;Step 305, sending a notification message to application A;

本步骤中,终端资源库在有新资源文件时,通知新资源文件映射的应用程序。In this step, when there is a new resource file, the terminal resource library notifies the application program mapped to the new resource file.

步骤306,应用程序A更新资源文件。Step 306, application A updates the resource file.

本步骤中,应用程序A在更新资源文件时,无需退出当前运行程序。In this step, application A does not need to exit the currently running program when updating the resource file.

本发明实施例中,终端在下载安装文件后,将各应用程序的安装文件,例如资源文件,统一放置于终端的资源库中,由终端资源管理服务模块进行集中管理。In the embodiment of the present invention, after the terminal downloads the installation file, the installation file of each application program, such as the resource file, is uniformly placed in the resource library of the terminal, and is managed centrally by the terminal resource management service module.

终端下载资源文件并进行更新之后,将应用程序A的版本号进行累加,即将下载的应用程序版本号替换存储的应用程序版本号。After the terminal downloads and updates the resource file, it accumulates the version number of the application program A, and replaces the stored application program version number with the downloaded application program version number.

这样,终端在下次进行应用程序更新时,只需将应用程序版本号上报至系统资源管理服务器,系统资源管理服务器根据该应用程序标识,可以获知该终端的应用程序A无需再进行资源更新,而其他的终端中的应用程序A,如果没有执行更新流程,其相应的应用程序版本号还是原来的值,就需要更新下载更新资源。In this way, when the terminal updates the application program next time, it only needs to report the application program version number to the system resource management server, and the system resource management server can know that the application program A of the terminal does not need to perform resource update again according to the application program identification, and If the application program A in other terminals does not execute the update process, the corresponding application program version number is still the original value, and the update resource needs to be updated and downloaded.

图4为本发明第二实施例升级应用程序中资源文件的方法流程示意图。本发明实施例中,假设应用程序B需更新终端资源库已拥有的资源,例如,该资源本属于其它的应用程序,则直接在终端资源库中进行查找,并通知应用程序B进行资源更新。参见图4,该流程包括:FIG. 4 is a schematic flowchart of a method for upgrading resource files in an application program according to the second embodiment of the present invention. In the embodiment of the present invention, assuming that application B needs to update a resource already owned by the terminal resource library, for example, the resource belongs to another application program, it will directly search in the terminal resource library and notify application B to update the resource. Referring to Figure 4, the process includes:

步骤401,终端资源管理服务模块与系统端资源管理服务器进行通信;Step 401, the terminal resource management service module communicates with the system-side resource management server;

本步骤中,终端资源管理服务模块与系统端资源管理服务器建立连接。In this step, the terminal resource management service module establishes a connection with the system-side resource management server.

步骤402,终端资源管理服务模块确定应用程序B的资源文件是否需要进行更新且无需下载,如果否,返回执行步骤401,否则,执行步骤403;Step 402, the terminal resource management service module determines whether the resource file of application B needs to be updated and does not need to be downloaded, if not, return to step 401, otherwise, execute step 403;

步骤403,终端资源管理服务模块从终端资源库中搜索相应资源文件;Step 403, the terminal resource management service module searches for corresponding resource files from the terminal resource library;

本步骤中,终端资源库中存储有共享的资源文件。In this step, shared resource files are stored in the terminal resource library.

步骤404,判断是否搜索成功,如果是,执行步骤405,返回执行步骤401;Step 404, judge whether the search is successful, if yes, execute step 405, and return to execute step 401;

本步骤中,在发现终端中的应用程序B需更新资源e后,终端资源管理服务模块在终端资源库中查找到资源e后,向应用程序B发送广播消息,通知应用程序B,应用程序B接收到广播消息后,根据广播消息中携带的位置信息,从终端资源库中获取指定的该位置处存储的资源e。In this step, after finding that the application B in the terminal needs to update the resource e, the terminal resource management service module finds the resource e in the terminal resource library, and sends a broadcast message to the application B to notify the application B, and the application B After receiving the broadcast message, according to the location information carried in the broadcast message, the resource e stored at the specified location is acquired from the terminal resource library.

步骤405,向应用程序B发送通知消息;Step 405, sending a notification message to application B;

步骤406,应用程序B更新资源文件。Step 406, the application program B updates the resource file.

本步骤中,应用程序B在更新资源文件时,无需退出当前运行程序。In this step, application B does not need to exit the currently running program when updating the resource file.

图5为本发明第三实施例升级应用程序中资源文件的方法流程示意图。参见图5,该流程包括:FIG. 5 is a schematic flowchart of a method for upgrading resource files in an application program according to the third embodiment of the present invention. Referring to Figure 5, the process includes:

步骤501,终端资源管理服务模块与系统端资源管理服务器进行通信;Step 501, the terminal resource management service module communicates with the system-side resource management server;

步骤502,终端资源管理服务模块上报该终端目前所有的应用程序信息;Step 502, the terminal resource management service module reports all current application program information of the terminal;

本步骤中,例如,该终端上报的应用程序信息包含应用程序A与应用程序B,应用程序A的版本号信息是1.0,应用程序B的版本号信息是1.1。In this step, for example, the application information reported by the terminal includes application A and application B, the version number information of application A is 1.0, and the version number information of application B is 1.1.

步骤503,系统端资源管理服务器根据接收的应用程序信息,获取该终端拥有的资源文件;Step 503, the resource management server at the system end obtains the resource file owned by the terminal according to the received application program information;

本步骤中,系统端资源管理服务器能根据应用程序信息,查到该终端目前拥有的资源文件,例如,该终端中的应用程序A与应用程序B拥有资源文件a\b\c\d\e。In this step, the system-side resource management server can find the resource files currently owned by the terminal according to the application program information. For example, application program A and application program B in the terminal have resource files a\b\c\d\e .

步骤504,系统端资源管理服务器根据该终端各应用程序拥有的资源文件以及存储的安装文件与应用程序的映射关系表,获知各应用程序需要更新的相应资源文件;Step 504, the resource management server at the system side learns the corresponding resource files that each application program needs to update according to the resource files owned by each application program of the terminal and the stored mapping relationship table between the installation file and the application program;

本步骤中,系统端资源管理服务器根据应用变化情况,即根据该终端拥有的资源文件以及存储的安装文件与应用程序的映射关系表,得知安装文件与应用程序的映射关系表中存储的资源文件f映射应用程序A,但在查询得到的该终端应用程序A拥有的资源文件中,没有包括资源文件f,因而,应用程序A需增加资源文件f,系统端资源管理服务器通知终端进行下载。In this step, the resource management server at the system end learns the resources stored in the mapping relationship table between the installation file and the application program according to the application change, that is, according to the resource file owned by the terminal and the stored mapping relationship table between the installation file and the application program File f is mapped to application A, but resource file f is not included in the resource files owned by the terminal application A obtained through query. Therefore, application A needs to add resource file f, and the resource management server at the system end notifies the terminal to download it.

步骤505,系统端资源管理服务器在确认资源文件下载完成后,将存储的该终端中的应用程序A对应的资源文件中,加入资源文件f,并更新应用程序A的应用程序信息。Step 505, after confirming that the resource file download is completed, the resource management server at the system end adds the resource file f to the stored resource file corresponding to the application A in the terminal, and updates the application information of the application A.

由上述可见,本发明实施例的升级应用程序中资源文件的方法,通过解除应用程序与安装文件的紧耦合关系,建立安装文件与应用程序的映射关系表,使得不同的应用程序可以共享安装文件,对于需要从系统资源管理服务器进行资源文件更新的情形,由于资源文件是由终端资源管理服务模块进行下载入库,并不影响应用程序的正常运行过程,且应用程序与资源文件是松耦合关系,可以在接收到下载完毕的通知消息后,可以立即执行动态更新资源文件,相对于现有在下载应用程序升级包时就停止应用程序,对用户使用体验影响极小,真正达到了动态配置资源的效果。进一步地,由于应用程序与资源文件是松耦合关系,资源文件都由终端资源库统一管理,因此实现了资源文件的共享,例如,如果应用程序B所需的资源文件原本是应用程序C所使用的,按照现有技术方案,应用程序B无法在本地终端获取该资源文件,但根据本发明实施例的技术手段,应用程序B可直接从终端资源库中获得共享的该资源文件,并进行正常使用,从而实现了资源文件的复用,节省了下载所需耗费的时间成本和网络传输成本,减少了网络传输资源耗费,提高了网络传输效率,同时也节约了终端以及系统资源管理服务器的存储空间,从而解决了现有应用程序为更新资源所采用的整体升级方式的弊端,优化了程序架构,提升了用户体验。As can be seen from the above, the method for upgrading resource files in an application program in the embodiment of the present invention establishes a mapping relationship table between the installation file and the application program by releasing the tight coupling relationship between the application program and the installation file, so that different application programs can share the installation file , for the situation where the resource file needs to be updated from the system resource management server, since the resource file is downloaded and stored by the terminal resource management service module, it does not affect the normal running process of the application program, and the application program and the resource file are loosely coupled , after receiving the notification message that the download is complete, the resource file can be dynamically updated immediately. Compared with the existing application program that is stopped when the application upgrade package is downloaded, the impact on the user experience is minimal, and the dynamic allocation of resources is truly achieved. Effect. Furthermore, since the application program and the resource file are loosely coupled, the resource files are all managed by the terminal resource library, so the resource file sharing is realized. For example, if the resource file required by the application program B is originally used by the application program C Yes, according to the existing technical solution, application B cannot obtain the resource file at the local terminal, but according to the technical means of the embodiment of the present invention, application B can directly obtain the shared resource file from the terminal resource library, and perform normal Use, thus realizing the multiplexing of resource files, saving the time cost of downloading and network transmission costs, reducing the consumption of network transmission resources, improving the efficiency of network transmission, and saving the storage of terminals and system resource management servers Space, thus solving the drawbacks of the overall upgrade method used by existing applications to update resources, optimizing the program architecture, and improving user experience.

图6为本发明实施例升级应用程序中资源文件的系统结构示意图。该系统包括:终端以及系统资源管理服务器,其中,FIG. 6 is a schematic diagram of a system structure for updating resource files in an application program according to an embodiment of the present invention. The system includes: a terminal and a system resource management server, wherein,

终端,用于存储接收的安装文件、以及,该安装文件与应用程序的映射关系,接收应用程序下载请求,查询获取应用程序映射的安装文件,并进行安装;The terminal is used to store the received installation file and the mapping relationship between the installation file and the application program, receive the application download request, query and obtain the installation file mapped to the application program, and install it;

本发明实施例中,安装文件包括:资源文件以及应用功能文件。In the embodiment of the present invention, the installation files include: resource files and application function files.

系统资源管理服务器,用于接收携带有应用程序信息的安装文件,根据携带的应用程序信息,更新安装文件与应用程序的映射关系表;The system resource management server is configured to receive the installation file carrying application program information, and update the mapping relationship table between the installation file and the application program according to the carried application program information;

从更新的映射关系表中,获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系,下发至对应应用程序所属的终端。The updated installation file is obtained from the updated mapping relationship table, and the updated installation file and the mapping relationship between the installation file and the application program are delivered to the terminal to which the corresponding application program belongs.

本发明实施例中,应用程序以应用程序信息进行唯一标识,应用程序信息包括:应用程序标识信息以及应用程序更新信息,其中,应用程序更新信息可以是应用程序版本号信息,也可以是应用程序更新时间信息。In the embodiment of the present invention, the application program is uniquely identified by application program information, and the application program information includes: application program identification information and application program update information, wherein the application program update information can be the application program version number information, or the application program Update time information.

应用程序开发人员在提供用于应用程序的资源文件以及应用功能文件时,分别提供其能够适用的应用程序,并将携带有应用程序信息的安装文件上传至系统资源管理服务器,系统资源管理服务器根据接收的资源文件以及应用功能文件,分别建立资源文件与应用程序的映射关系表、以及,应用功能文件与应用程序的映射关系表。其中,资源文件与应用程序为一对多关系,而应用功能文件与应用程序为一对一关系。When the application developer provides the resource files and application function files for the application, they respectively provide the applicable application, and upload the installation file carrying the application information to the system resource management server. For the received resource file and application function file, a mapping relationship table between the resource file and the application program and a mapping relationship table between the application function file and the application program are respectively established. Among them, the resource file and the application program have a one-to-many relationship, and the application function file and the application program have a one-to-one relationship.

较佳地,终端在查询获取应用程序映射的安装文件后,进一步用于判断安装文件是否为资源文件,如果是,执行所述进行安装的步骤;如果是应用功能文件,进一步判断应用功能文件对应的应用程序是否运行,如果不运行,执行所述进行安装的步骤,如果运行,监测该应用程序的运行,并在监测到该应用程序结束运行后,执行所述进行安装的步骤。Preferably, after the terminal inquires and obtains the installation file mapped by the application program, it is further used to determine whether the installation file is a resource file, and if so, executes the steps of installing; if it is an application function file, further determines whether the application function file corresponds to Whether the application program runs, if not, execute the step of installing, if it runs, monitor the running of the application program, and execute the step of installing after detecting that the application program finishes running.

其中,系统资源管理服务器包括:接收模块、更新模块、映射关系表存储模块、映射关系表创建模块以及发送模块(图中未示出),其中,Wherein, the system resource management server includes: a receiving module, an updating module, a mapping relationship table storage module, a mapping relationship table creation module and a sending module (not shown in the figure), wherein,

接收模块,用于接收携带有应用程序信息的安装文件;A receiving module, configured to receive an installation file carrying application program information;

映射关系表存储模块,用于存储创建的映射关系表;The mapping relationship table storage module is used to store the created mapping relationship table;

更新模块,用于查询映射关系表存储模块是否存储有接收的安装文件对应的映射关系表,如果有,将接收的安装文件对应的应用程序信息与映射关系表中,该安装文件对应的应用程序信息进行比较,如果相同,不作处理,否则,向映射关系表创建模块输出携带有应用程序信息的该安装文件;The update module is used to query whether the mapping relationship table storage module stores the mapping relationship table corresponding to the received installation file, and if so, compares the application program information corresponding to the received installation file with the application program corresponding to the installation file in the mapping relationship table Information is compared, if identical, do not process, otherwise, output this installation file that carries application program information to mapping relationship table creation module;

映射关系表创建模块,用于根据携带有应用程序信息的安装文件,建立安装文件与应用程序的映射关系表,删除存储的映射关系表中包含的该安装文件对应的应用程序;A mapping relationship table creation module, configured to establish a mapping relationship table between the installation file and the application program according to the installation file carrying the application program information, and delete the application program corresponding to the installation file contained in the stored mapping relationship table;

发送模块,用于从更新的映射关系表中,获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系,下发至对应应用程序所属的终端。The sending module is configured to obtain an updated installation file from the updated mapping relationship table, and send the updated installation file and the mapping relationship between the installation file and the application program to the terminal to which the corresponding application program belongs.

实际应用中,系统资源管理服务器也可以包括:接收模块、终端应用程序信息存储模块、更新模块、映射关系表存储模块、映射关系表创建模块以及发送模块(图中未示出),其中,In practical applications, the system resource management server may also include: a receiving module, a terminal application information storage module, an update module, a mapping relationship table storage module, a mapping relationship table creation module, and a sending module (not shown in the figure), wherein,

接收模块,用于接收携带有应用程序信息的安装文件;A receiving module, configured to receive an installation file carrying application program information;

终端应用程序信息存储模块,用于存储各终端中安装的应用程序信息;The terminal application program information storage module is used to store the application program information installed in each terminal;

映射关系表创建模块,用于根据携带有应用程序信息的安装文件,建立安装文件与应用程序的映射关系表,输出至映射关系表存储模块进行存储;The mapping relationship table creation module is used to establish the mapping relationship table between the installation file and the application program according to the installation file carrying the application program information, and output it to the mapping relationship table storage module for storage;

更新模块,用于从映射关系表中,查询并获取与存储的终端中应用程序标识相同的应用程序,判断获取的应用程序更新信息是否与存储的终端中的应用程序更新信息相一致,如果不一致,获取映射关系表中,所述获取的应用程序对应的的资源文件、以及,该资源文件与该终端中应用程序的映射关系,输出至发送模块;The update module is used to query and obtain the application program with the same application ID as the stored terminal application program from the mapping relationship table, and determine whether the obtained application program update information is consistent with the stored application program update information in the terminal, if not , obtaining the resource file corresponding to the obtained application program in the mapping relationship table, and the mapping relationship between the resource file and the application program in the terminal, and outputting to the sending module;

发送模块,用于将接收的资源文件、以及,该资源文件与该终端中应用程序的映射关系,下发至对应应用程序所属的终端。The sending module is configured to deliver the received resource file and the mapping relationship between the resource file and the application program in the terminal to the terminal to which the corresponding application program belongs.

终端包括:终端资源管理模块以及应用程序模块(图中未示出),其中,The terminal includes: a terminal resource management module and an application module (not shown in the figure), wherein,

终端资源管理模块,用于存储接收的安装文件、以及,该安装文件与应用程序的映射关系,接收应用程序模块发送的应用程序下载请求,查询获取应用程序映射的安装文件,下发至应用程序模块;The terminal resource management module is used to store the received installation file and the mapping relationship between the installation file and the application program, receive the application program download request sent by the application program module, query and obtain the installation file mapped by the application program, and send it to the application program module;

本发明实施例中,终端资源管理模块通过终端资源库存储安装文件、以及,该安装文件与应用程序的映射关系。In the embodiment of the present invention, the terminal resource management module stores the installation file and the mapping relationship between the installation file and the application program through the terminal resource library.

应用程序模块,用于根据接收的安装文件进行安装。An application module for installation based on received installation files.

本发明实施例中,终端中的每一应用程序模块只需维护一个消息接收器,以接收终端资源管理模块所发送的携带安装文件的更新消息,进行应用程序更新。In the embodiment of the present invention, each application module in the terminal only needs to maintain one message receiver to receive the update message carrying the installation file sent by the terminal resource management module to update the application.

较佳地,终端进一步包括:Preferably, the terminal further includes:

监测模块,用于在终端资源管理模块查询获取应用程序映射的安装文件后,判断安装文件是否为资源文件,如果是,触发终端资源管理模块向应用程序模块下发安装文件;如果是应用功能文件,进一步判断应用功能文件对应的应用程序是否运行,如果不运行,触发终端资源管理模块向应用程序模块下发安装文件,如果运行,监测该应用程序的运行,并在监测到该应用程序结束运行后,触发终端资源管理模块向应用程序模块下发安装文件。The monitoring module is used to determine whether the installation file is a resource file after the terminal resource management module queries and obtains the installation file mapped by the application program, and if so, triggers the terminal resource management module to send the installation file to the application module; if it is an application function file , to further judge whether the application program corresponding to the application function file is running, if not running, trigger the terminal resource management module to deliver the installation file to the application program module, if running, monitor the running of the application program, and end the running of the application program when it is detected After that, the terminal resource management module is triggered to deliver the installation file to the application module.

图7为本发明实施例升级应用程序中资源文件的系统具体结构示意图。该系统分为系统侧以及终端侧,其中,系统侧为系统资源管理服务器,终端侧包括:终端资源管理模块、终端资源库以及多个应用程序模块,例如,应用程序A模块~应用程序C模块,其中,终端资源管理模块中维护一个消息发送器,终端资源库中存储该终端中,各应用程序共享的资源(资源文件以及应用功能文件),例如,资源a~资源e等,每个应用程序模块中维护一个消息接收器。FIG. 7 is a schematic structural diagram of a system for upgrading resource files in an application program according to an embodiment of the present invention. The system is divided into a system side and a terminal side, wherein the system side is a system resource management server, and the terminal side includes: a terminal resource management module, a terminal resource library, and multiple application program modules, for example, application program A module ~ application program C module , wherein, a message sender is maintained in the terminal resource management module, and resources (resource files and application function files) shared by applications in the terminal are stored in the terminal resource library, for example, resource a to resource e, etc., each application A message receiver is maintained in the program module.

系统资源管理服务器将更新的资源以及映射关系表下发至终端资源管理模块,终端资源管理模块将接收的资源以及映射关系表输出至终端资源库进行存储,并根据更新的资源以及映射关系表,获取需要更新的应用程序,通过消息发送器向相应的应用程序发送更新消息,应用程序模块中的消息接收器接收更新消息,接收终端资源库输出的相应资源,进行更新,从而完成升级应用程序的流程。The system resource management server sends the updated resource and mapping relationship table to the terminal resource management module, and the terminal resource management module outputs the received resource and mapping relationship table to the terminal resource library for storage, and according to the updated resource and mapping relationship table, Get the application program that needs to be updated, send an update message to the corresponding application program through the message sender, and the message receiver in the application program module receives the update message, receives the corresponding resources output by the terminal resource library, and performs the update, thus completing the upgrade of the application program process.

显然,本领域技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若对本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention also includes these modifications and variations.

Claims (11)

1.一种升级应用程序中资源文件的方法,包括:1. A method for upgrading resource files in an application, comprising: 接收携带有应用程序信息的安装文件,根据携带的应用程序信息,更新安装文件与应用程序的映射关系表,所述安装文件包括:资源文件以及应用功能文件;receiving an installation file carrying application program information, and updating a mapping relationship table between the installation file and the application program according to the carried application program information, the installation file including: a resource file and an application function file; 从更新的映射关系表中获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系下发至对应应用程序所属的终端;Obtain an updated installation file from the updated mapping relationship table, and send the updated installation file and the mapping relationship between the installation file and the application program to the terminal to which the corresponding application program belongs; 终端存储接收的安装文件以及该安装文件与应用程序的映射关系,接收应用程序下载请求,查询获取应用程序映射的安装文件;判断安装文件是否为资源文件,如果是,执行安装的步骤;如果是应用功能文件,进一步判断应用功能文件对应的应用程序是否运行,如果不运行,执行安装的步骤,如果运行,监测该应用程序的运行,并在监测到该应用程序结束运行后,执行安装的步骤。The terminal stores the received installation file and the mapping relationship between the installation file and the application program, receives the application program download request, and inquires to obtain the installation file mapped by the application program; judges whether the installation file is a resource file, and if so, executes the steps of installation; if it is The application function file further judges whether the application program corresponding to the application function file is running, if not running, execute the installation steps, if it runs, monitor the operation of the application program, and perform the installation steps after detecting that the application program has finished running . 2.根据权利要求1所述的方法,其中,所述应用程序以应用程序信息进行唯一标识,所述应用程序信息包括:应用程序标识信息以及应用程序更新信息。2. The method according to claim 1, wherein the application program is uniquely identified by application program information, and the application program information includes: application program identification information and application program update information. 3.根据权利要求2所述的方法,其中,所述应用程序更新信息包括:应用程序版本号信息以及应用程序更新时间信息。3. The method according to claim 2, wherein the application program update information comprises: application program version number information and application program update time information. 4.根据权利要求3所述的方法,其中,所述更新安装文件与应用程序的映射关系表包括:4. The method according to claim 3, wherein said updating the mapping relationship table between the installation file and the application program comprises: 查询是否存储有接收的安装文件对应的映射关系表;Query whether the mapping relationship table corresponding to the received installation file is stored; 如果有,比较接收的安装文件对应的应用程序标识信息与映射关系表中该安装文件对应的应用程序信息;如果相同,不作处理,否则,建立接收的安装文件与应用程序的映射关系表,删除存储的映射关系表中包含的该安装文件对应的应用程序;If there is, compare the application identification information corresponding to the received installation file with the application information corresponding to the installation file in the mapping relationship table; the application program corresponding to the installation file contained in the stored mapping relationship table; 如果没有,建立接收的安装文件与应用程序的映射关系表。If not, establish a mapping relationship table between received installation files and application programs. 5.根据权利要求4所述的方法,其中,所述从更新的映射关系表中,获取更新的安装文件包括:5. The method according to claim 4, wherein said obtaining the updated installation file from the updated mapping relationship table comprises: 预先存储终端中安装的应用程序信息;Pre-store the application information installed in the terminal; 从更新的映射关系表中查询并获取与存储的终端中应用程序标识相同的应用程序;Query and obtain the application program with the same application program ID stored in the terminal from the updated mapping relationship table; 判断获取的应用程序更新信息是否与存储的终端中的应用程序更新信息相一致;如果不一致,获取更新的映射关系表中,该获取的应用程序对应的安装文件以及该安装文件与该终端中应用程序的映射关系。Judging whether the acquired application program update information is consistent with the stored application program update information in the terminal; if inconsistent, obtain the installation file corresponding to the obtained application program in the updated mapping relationship table and the installation file corresponding to the application program in the terminal. The mapping relationship of the program. 6.根据权利要求4所述的方法,其中,所述从更新的映射关系表中,获取更新的安装文件包括:6. The method according to claim 4, wherein said obtaining the updated installation file from the updated mapping relationship table comprises: 终端按照预先设置的周期,向系统资源管理服务器发送应用程序更新请求,携带安装的应用程序信息;The terminal sends an application program update request to the system resource management server according to the preset cycle, carrying the installed application program information; 从更新的映射关系表中查询并获取与接收的应用程序信息中应用程序标识相同的应用程序;Query and obtain the application with the same application ID as that in the received application information from the updated mapping table; 判断获取的应用程序更新信息是否与接收的应用程序更新信息相一致;如果不一致,获取更新的映射关系表中该获取的应用程序对应的资源文件以及该资源文件与该终端中应用程序的映射关系。Determine whether the acquired application update information is consistent with the received application update information; if not, obtain the resource file corresponding to the acquired application in the updated mapping relationship table and the mapping relationship between the resource file and the application in the terminal . 7.一种升级应用程序中资源文件的系统,其特征在于,该系统包括:系统资源管理服务器以及终端,其中,7. A system for upgrading resource files in an application program, characterized in that the system includes: a system resource management server and a terminal, wherein, 系统资源管理服务器,用于接收携带有应用程序信息的安装文件,根据携带的应用程序信息,更新安装文件与应用程序的映射关系表;从更新的映射关系表中获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系下发至对应应用程序所属的终端;所述安装文件包括:资源文件以及应用功能文件;The system resource management server is configured to receive the installation file carrying the application program information, and update the mapping relationship table between the installation file and the application program according to the carried application program information; obtain the updated installation file from the updated mapping relationship table, and update the The installation file and the mapping relationship between the installation file and the application are sent to the terminal to which the corresponding application belongs; the installation file includes: resource files and application function files; 终端,用于存储接收的安装文件,以及该安装文件与应用程序的映射关系,接收应用程序下载请求,查询获取应用程序映射的安装文件;判断安装文件是否为资源文件,如果是,执行安装的步骤;如果是应用功能文件,进一步判断应用功能文件对应的应用程序是否运行,如果不运行,执行安装的步骤,如果运行,监测该应用程序的运行,并在监测到该应用程序结束运行后,执行安装的步骤。The terminal is used to store the received installation file and the mapping relationship between the installation file and the application, receive the application download request, query and obtain the installation file mapped by the application; determine whether the installation file is a resource file, and if so, perform the installation Step: if it is an application function file, further determine whether the application program corresponding to the application function file is running, if not running, perform the steps of installation, if running, monitor the operation of the application program, and after monitoring that the application program finishes running, Follow the steps to install. 8.根据权利要求7所述的系统,其特征在于,所述系统资源管理服务器包括:接收模块、更新模块、映射关系表存储模块、映射关系表创建模块以及发送模块,其中,8. The system according to claim 7, wherein the system resource management server comprises: a receiving module, an update module, a mapping relationship table storage module, a mapping relationship table creation module and a sending module, wherein, 接收模块,用于接收携带有应用程序信息的安装文件;A receiving module, configured to receive an installation file carrying application program information; 映射关系表存储模块,用于存储创建的映射关系表;The mapping relationship table storage module is used to store the created mapping relationship table; 更新模块,用于查询映射关系表存储模块是否存储有接收的安装文件对应的映射关系表,如果有,将接收的安装文件对应的应用程序信息与映射关系表中该安装文件对应的应用程序信息进行比较,如果相同,不作处理,否则,向映射关系表创建模块输出携带有应用程序信息的该安装文件;The update module is used to query whether the mapping relationship table storage module stores the mapping relationship table corresponding to the received installation file, and if so, the application information corresponding to the received installation file and the application program information corresponding to the installation file in the mapping relationship table Compare, if they are the same, do not process, otherwise, output the installation file carrying the application information to the mapping relationship table creation module; 映射关系表创建模块,用于根据携带有应用程序信息的安装文件,建立安装文件与应用程序的映射关系表,删除存储的映射关系表中包含的该安装文件对应的应用程序;A mapping relationship table creation module, configured to establish a mapping relationship table between the installation file and the application program according to the installation file carrying the application program information, and delete the application program corresponding to the installation file included in the stored mapping relationship table; 发送模块,用于从更新的映射关系表中,获取更新的安装文件,将更新的安装文件以及该安装文件与应用程序的映射关系,下发至对应应用程序所属的终端。The sending module is configured to obtain an updated installation file from the updated mapping relationship table, and send the updated installation file and the mapping relationship between the installation file and the application program to the terminal to which the corresponding application program belongs. 9.根据权利要求7所述的系统,其特征在于,所述系统资源管理服务器包括:接收模块、终端应用程序信息存储模块、更新模块、映射关系表存储模块、映射关系表创建模块以及发送模块,其中,9. The system according to claim 7, wherein the system resource management server comprises: a receiving module, a terminal application information storage module, an update module, a mapping relationship table storage module, a mapping relationship table creation module and a sending module ,in, 接收模块,用于接收携带有应用程序信息的安装文件;A receiving module, configured to receive an installation file carrying application program information; 终端应用程序信息存储模块,用于存储各终端中安装的应用程序信息;The terminal application program information storage module is used to store the application program information installed in each terminal; 映射关系表创建模块,用于根据携带有应用程序信息的安装文件,建立安装文件与应用程序的映射关系表,并输出至映射关系表存储模块进行存储;The mapping relationship table creation module is used to establish the mapping relationship table between the installation file and the application program according to the installation file carrying the application program information, and output it to the mapping relationship table storage module for storage; 更新模块,用于从映射关系表中,查询并获取与存储的终端中应用程序标识相同的应用程序,判断获取的应用程序更新信息是否与存储的终端中的应用程序更新信息相一致,如果不一致,获取映射关系表中,所述获取的应用程序对应的安装文件,以及该安装文件与该终端中应用程序的映射关系,输出至发送模块;The update module is used to query and obtain the application program with the same application ID as the stored terminal application program from the mapping relationship table, and determine whether the obtained application program update information is consistent with the stored application program update information in the terminal, if not , obtaining the installation file corresponding to the obtained application program in the mapping relationship table, and the mapping relationship between the installation file and the application program in the terminal, and outputting to the sending module; 发送模块,用于将接收的安装文件,以及该安装文件与该终端中应用程序的映射关系,下发至对应应用程序所属的终端。The sending module is configured to deliver the received installation file and the mapping relationship between the installation file and the application program in the terminal to the terminal to which the corresponding application program belongs. 10.根据权利要求7所述的系统,其特征在于,所述终端包括:终端资源管理模块以及应用程序模块,其中,10. The system according to claim 7, wherein the terminal comprises: a terminal resource management module and an application program module, wherein, 终端资源管理模块,用于存储接收的安装文件以及该安装文件与应用程序的映射关系,接收应用程序模块发送的应用程序下载请求,查询获取应用程序映射的安装文件,下发至应用程序模块;The terminal resource management module is used to store the received installation file and the mapping relationship between the installation file and the application program, receive the application program download request sent by the application program module, query and obtain the installation file mapped by the application program, and send it to the application program module; 应用程序模块,用于根据接收的安装文件进行安装。An application module for installation based on received installation files. 11.根据权利要求10所述的系统,其特征在于,所述终端进一步包括:11. The system according to claim 10, wherein the terminal further comprises: 监测模块,用于在终端资源管理模块查询获取应用程序映射的安装文件后,判断安装文件是否为资源文件,如果是,触发终端资源管理模块向应用程序模块下发安装文件;如果是应用功能文件,进一步判断应用功能文件对应的应用程序是否运行,如果不运行,触发终端资源管理模块向应用程序模块下发安装文件,如果运行,监测该应用程序的运行,并在监测到该应用程序结束运行后,触发终端资源管理模块向应用程序模块下发安装文件。The monitoring module is used to determine whether the installation file is a resource file after the terminal resource management module queries and obtains the installation file mapped by the application program, and if so, triggers the terminal resource management module to send the installation file to the application module; if it is an application function file , to further judge whether the application program corresponding to the application function file is running, if it is not running, trigger the terminal resource management module to deliver the installation file to the application program module, if it is running, monitor the running of the application program, and end the running of the application program when it is detected After that, the terminal resource management module is triggered to deliver the installation file to the application module.
CN201210334305.7A 2012-09-10 2012-09-10 The method and system of resource file in upgrade applications Expired - Fee Related CN102855152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210334305.7A CN102855152B (en) 2012-09-10 2012-09-10 The method and system of resource file in upgrade applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210334305.7A CN102855152B (en) 2012-09-10 2012-09-10 The method and system of resource file in upgrade applications

Publications (2)

Publication Number Publication Date
CN102855152A CN102855152A (en) 2013-01-02
CN102855152B true CN102855152B (en) 2016-04-20

Family

ID=47401761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210334305.7A Expired - Fee Related CN102855152B (en) 2012-09-10 2012-09-10 The method and system of resource file in upgrade applications

Country Status (1)

Country Link
CN (1) CN102855152B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092658B (en) * 2013-01-30 2016-08-03 广东欧珀移动通信有限公司 The application program installation method of a kind of intelligent mobile communication terminal, system
CN103313231A (en) * 2013-07-03 2013-09-18 百度在线网络技术(北京)有限公司 Method, system and server for upgrading application program in mobile terminal
CN103686376A (en) * 2013-12-06 2014-03-26 乐视致新电子科技(天津)有限公司 Method and device for software upgrading of smart television
CN105094879A (en) * 2014-05-23 2015-11-25 西安中兴新软件有限责任公司 Software upgrading method and mobile terminal
CN107850883B (en) * 2015-12-31 2020-07-28 深圳配天智能技术研究院有限公司 A system processing method and numerical control system
CN106095518B (en) * 2016-06-28 2019-05-14 东软集团股份有限公司 Application program installation method and device
CN109582458A (en) * 2017-09-28 2019-04-05 北京国双科技有限公司 Resource information loading method, device, storage medium and processor
CN109582402B (en) * 2017-09-29 2022-11-22 北京金山安全软件有限公司 Page display method and device
CN108874417A (en) * 2018-05-22 2018-11-23 上海康斐信息技术有限公司 A kind of method for upgrading software and system of embedded device
CN109101381A (en) * 2018-08-02 2018-12-28 Oppo(重庆)智能科技有限公司 Configuration file update method, system, electronic equipment and storage medium
CN111367749B (en) * 2018-12-25 2023-05-05 中国移动通信有限公司研究院 Business monitoring method, device, related equipment and storage medium
CN112291600B (en) * 2020-10-26 2023-04-18 Vidaa(荷兰)国际控股有限公司 Caching method and display device
CN112506550A (en) * 2020-12-21 2021-03-16 江苏徐工信息技术股份有限公司 Vehicle controller rapid OTA method
CN112882746B (en) * 2021-02-03 2023-07-07 网易(杭州)网络有限公司 Application program updating method and device, storage medium and computer equipment
CN113064609B (en) * 2021-03-05 2024-05-28 深圳市欢太科技有限公司 A resource loading method, client, server, and storage medium
CN114756298B (en) * 2022-04-20 2024-06-04 广州博冠信息科技有限公司 Program instance management method and device, computer storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667131A (en) * 2009-10-14 2010-03-10 中兴通讯股份有限公司 Mobile terminal and updating method of configuration information thereof
CN101697133A (en) * 2009-10-26 2010-04-21 中兴通讯股份有限公司 Software upgrading method, software upgrading system and client

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8204969B2 (en) * 2008-08-05 2012-06-19 Canon Kabushiki Kaisha Method for retrieving updates via the internet

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667131A (en) * 2009-10-14 2010-03-10 中兴通讯股份有限公司 Mobile terminal and updating method of configuration information thereof
CN101697133A (en) * 2009-10-26 2010-04-21 中兴通讯股份有限公司 Software upgrading method, software upgrading system and client

Also Published As

Publication number Publication date
CN102855152A (en) 2013-01-02

Similar Documents

Publication Publication Date Title
CN102855152B (en) The method and system of resource file in upgrade applications
CN105607935B (en) Application update method and terminal and server thereof
US10990449B2 (en) Managing application relationships in machine-to-machine systems
CN104063239A (en) Application program update method of mobile terminal, server and client
CN1922852A (en) Method of supplying content to a device
CN105094922A (en) Application installation-free operation control method and device
JP2016508322A (en) Advertisement processing method and apparatus
CN102355500A (en) Business pushing method and device
US20220303347A1 (en) Message push method, apparatus, device and medium
CN106371874A (en) Plug-in data loading method and equipment
WO2021051747A1 (en) Data update method, system and device, electronic device, and computer storage medium
CN102301760A (en) Method and apparatus for tracking device management data changes
CN110888658A (en) Dynamic method and device for functional module in application program and storage medium
CN114185579A (en) Software upgrading method and device, electronic equipment and readable storage medium
CN111427594A (en) Application program running method and device
CN101877655A (en) Network management system, network management server and method
CN113434233A (en) Interface skipping method and device, storage medium and electronic device
AU2006300075A1 (en) Multimedia middleware apparatus using metadata, method for controlling multimedia middleware, and storage medium thereof
O'Sullivan et al. The cloud personal assistant for providing services to mobile clients
CN116708563A (en) File data processing method, device, server and readable storage medium
CN109799997B (en) Management method for presetting third party application, intelligent terminal and storage medium
WO2021226965A1 (en) Resource processing method and apparatus, electronic device and storage medium
US20090037493A1 (en) Method and device for updating an object with copyright attribute
KR101412029B1 (en) Apparatus and method for updating applications
WO2024193352A1 (en) Data processing method and apparatus, computer device, and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20170118

Address after: 266100 Shandong Province, Qingdao city Laoshan District Songling Road No. 399

Patentee after: JUHAOKAN TECHNOLOGY Co.,Ltd.

Address before: 266061 Laoshan, Qingdao province Hongkong District No. East Road, room 248, room 131

Patentee before: QINGDAO HISENSE MEDIA NETWORKS Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160420