[go: up one dir, main page]

CN106293790B - Application program upgrading method and device based on Firefox operating system - Google Patents

Application program upgrading method and device based on Firefox operating system Download PDF

Info

Publication number
CN106293790B
CN106293790B CN201510283424.8A CN201510283424A CN106293790B CN 106293790 B CN106293790 B CN 106293790B CN 201510283424 A CN201510283424 A CN 201510283424A CN 106293790 B CN106293790 B CN 106293790B
Authority
CN
China
Prior art keywords
application program
application
upgrade
upgrade package
operating system
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
CN201510283424.8A
Other languages
Chinese (zh)
Other versions
CN106293790A (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201510283424.8A priority Critical patent/CN106293790B/en
Publication of CN106293790A publication Critical patent/CN106293790A/en
Application granted granted Critical
Publication of CN106293790B publication Critical patent/CN106293790B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明公开了一种基于Firefox操作系统的应用程序升级方法和装置,其中,上述应用程序升级方法包括获取应用程序更新信息,该应用程序更新信息包括:应用程序升级包的下载地址;从该下载地址指定的位置下载应用程序升级包,并将该应用程序升级包存储到Firefox操作系统的用户目录中;调用Gecko中新增的用于拷贝文件的应用程序编程接口函数,将该应用程序升级包从用户目录拷贝到本次升级的目标应用程序的系统目录中,其中,所述新增的用于拷贝文件的应用程序编程接口函数具备root权限;重启该目标应用程序以完成对所述目标应用程序的升级。本发明提供的技术方案能够有效降低升级所需的流量和时间的损耗。

The present invention discloses an application program upgrading method and device based on the Firefox operating system, wherein the above application program upgrading method includes obtaining application program update information, and the application program update information includes: the download address of the application program upgrade package; Download the application program upgrade package at the location specified by the address, and store the application program upgrade package in the user directory of the Firefox operating system; call the newly added API function for copying files in Gecko to update the application program package Copy from the user directory to the system directory of the target application program for this upgrade, wherein the newly added application programming interface function for copying files has root authority; restart the target application program to complete the target application program Program upgrades. The technical solution provided by the invention can effectively reduce the flow and time loss required for upgrading.

Description

基于Firefox操作系统的应用程序升级方法和装置Application program upgrading method and device based on Firefox operating system

技术领域technical field

本发明涉及升级技术领域,具体涉及一种基于Firefox操作系统的应用程序升级方法和装置。The invention relates to the technical field of upgrading, in particular to an application program upgrading method and device based on the Firefox operating system.

背景技术Background technique

Firefox操作系统(OS,Operating System),是由Mozilla主导研发的开放源代码移动操作系统,采用Linux核心,应用于智能手机,以Gecko浏览器引擎为核心,系统架构分为Gonk、Gecko和Gaia三层,应用程序采用经第五次重大修改的超文本标记语言(HTML,Hypertext Markup Language)(即HTML5)来开发。The Firefox operating system (OS, Operating System) is an open source mobile operating system developed by Mozilla. It uses the Linux core and is applied to smartphones. It uses the Gecko browser engine as the core. The system architecture is divided into three parts: Gonk, Gecko and Gaia. Layer, the application program is developed using the fifth major modification of Hypertext Markup Language (HTML, Hypertext Markup Language) (ie, HTML5).

Firefox OS的应用程序(App,Application)按照资源文件的存放方式可以分为Package App和Hosted App两种,前者的所有资源文件都放到一个目录下,安装后所有的资源文件都存储到设备上;Hosted App的所有资源存放到网页服务器(即Web Server)上,安装后会根据应用程序的manifest.webapp来加载资源文件。Firefox OS applications (App, Application) can be divided into two types according to the storage method of resource files: Package App and Hosted App. All resource files of the former are placed in a directory, and all resource files are stored on the device after installation. ;All resources of the Hosted App are stored on the web server (that is, Web Server), and the resource files will be loaded according to the manifest.webapp of the application after installation.

Hosted App由于其资源文件都是存储在Web Server上,更新时只需更新WebServer上的相应资源文件,然后设备刷新即可实现。Since the resource files of the Hosted App are stored on the Web Server, when updating, it only needs to update the corresponding resource files on the Web Server, and then the device can be refreshed.

Package App中的非网页APP只能通过Firefox OS的Gonk模块升级或者Gecko模块升级的方式来实现,该种升级方式由于需要升级操作系统的全部或部分模块,具有耗时和耗流量等缺陷,而且如果应用程序更新频繁的话,每次都需要升级整个操作系统或操作系统的部分模块来实现一个应用程序的更新,用户体验将大大下降。The non-webpage APP in Package App can only be implemented through Gonk module upgrade or Gecko module upgrade of Firefox OS. This upgrade method has the disadvantages of time-consuming and traffic-consuming due to the need to upgrade all or part of the modules of the operating system, and If the application program is updated frequently, the entire operating system or some modules of the operating system need to be upgraded each time to update an application program, and user experience will be greatly reduced.

发明内容Contents of the invention

本发明提供一种基于Firefox操作系统的应用程序升级方法和装置,用于降低升级所需的流量和时间的损耗。The invention provides an application program upgrading method and device based on the Firefox operating system, which are used for reducing the flow and time consumption required for upgrading.

本发明第一方面提供一种基于Firefox操作系统的应用程序升级方法,包括:获取应用程序更新信息,所述应用程序更新信息包括:应用程序升级包的下载地址;The first aspect of the present invention provides an application program upgrade method based on the Firefox operating system, comprising: obtaining application program update information, the application program update information including: a download address of the application program upgrade package;

从所述下载地址指定的位置下载所述应用程序升级包,并将所述应用程序升级包存储到Firefox操作系统的用户目录中;Download the application upgrade package from the location specified by the download address, and store the application upgrade package in the user directory of the Firefox operating system;

调用所述Firefox操作系统的Gecko中新增的用于拷贝文件的应用程序编程接口函数,将所述应用程序升级包从所述用户目录拷贝到本次升级的目标应用程序的系统目录中,其中,所述新增的用于拷贝文件的应用程序编程接口函数具备root权限;Call the newly added application programming interface function for copying files in the Gecko of the Firefox operating system, and copy the application upgrade package from the user directory to the system directory of the target application program for this upgrade, wherein , the newly added application programming interface function for copying files has root authority;

重启所述目标应用程序以完成对所述目标应用程序的升级。Restarting the target application program to complete the upgrade of the target application program.

本发明第二方面提供一种一种基于Firefox操作系统的应用程序升级装置,包括:获取单元,用于获取应用程序更新信息,所述应用程序更新信息包括:应用程序升级包的下载地址;下载存储单元,用于从所述下载地址指定的位置下载所述应用程序升级包,并将所述应用程序升级包存储到Firefox操作系统的用户目录中;拷贝单元,用于调用所述Firefox操作系统的Gecko中新增的用于拷贝文件的应用程序编程接口函数,将所述应用程序升级包从所述用户目录拷贝到本次升级的目标应用程序的系统目录中,其中,所述新增的用于拷贝文件的应用程序编程接口函数具备root权限;重启单元,用于重启所述目标应用程序以完成对所述目标应用程序的升级。The second aspect of the present invention provides an application upgrade device based on the Firefox operating system, including: an acquisition unit for acquiring application update information, the application update information including: the download address of the application update package; The storage unit is used to download the application upgrade package from the location specified by the download address, and store the application upgrade package in the user directory of the Firefox operating system; the copy unit is used to call the Firefox operating system The newly added application programming interface function for copying files in Gecko copies the application program upgrade package from the user directory to the system directory of the target application program for this upgrade, wherein the newly added The application programming interface function for copying files has root authority; the restart unit is used for restarting the target application program to complete the upgrade of the target application program.

由上可见,本发明中在Firefox操作系统的Gecko中新增用于拷贝文件且具有root权限的应用程序编程接口函数,在应用程序升级过程中,通过调用该应用程序编程接口函数,将存储到用户目录中的应用程序升级包拷贝到该应用程序的系统目录中,之后重启该应用程序完成该应用程序的升级,通过本发明方案,Firefox操作系统中的任何非网页应用程序的升级都可以单独进行而无需升级整个操作系统或操作系统的部分模块,有效提升了应用程序升级效率,且降低升级所需的流量和时间的损耗,提高用户体验。As can be seen from the above, in the present invention, an API function for copying files and having root authority is newly added in Gecko of the Firefox operating system. In the application program upgrade process, by calling the API function, the storage will be stored in The application upgrade package in the user directory is copied into the system directory of the application, and then the application is restarted to complete the upgrade of the application. By the scheme of the present invention, the upgrade of any non-webpage application in the Firefox operating system can be performed independently. There is no need to upgrade the entire operating system or some modules of the operating system, which effectively improves the efficiency of application program upgrades, reduces the traffic and time consumption required for the upgrade, and improves user experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or 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. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明提供的一种基于Firefox操作系统的应用程序升级方法一个实施例流程示意图;Fig. 1 is a schematic flow chart of an embodiment of an application program upgrading method based on the Firefox operating system provided by the present invention;

图2为本发明提供的一种基于Firefox操作系统的应用程序升级方法另一个实施例流程示意图;Fig. 2 is a schematic flow chart of another embodiment of an application program upgrading method based on the Firefox operating system provided by the present invention;

图3为本发明提供的一种应用场景下的应用程序升级系统架构示意图;FIG. 3 is a schematic diagram of an application upgrade system architecture in an application scenario provided by the present invention;

图4为本发明提供的一种基于Firefox操作系统的应用程序升级装置一个实施例结构示意图。FIG. 4 is a schematic structural diagram of an embodiment of an application program upgrading device based on the Firefox operating system provided by the present invention.

具体实施方式Detailed ways

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but 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.

本发明实施例提供一种基于Firefox操作系统的应用程序升级方法,包括:获取应用程序更新信息,所述应用程序更新信息包括:应用程序升级包的下载地址;从所述下载地址指定的位置下载所述应用程序升级包,并将所述应用程序升级包存储到Firefox操作系统的用户目录中;调用所述Firefox操作系统的Gecko中新增的用于拷贝文件的应用程序编程接口函数,将所述应用程序升级包从所述用户目录拷贝到本次升级的目标应用程序的系统目录中,其中,所述新增的用于拷贝文件的应用程序编程接口函数具备root权限;重启所述目标应用程序以完成对所述目标应用程序的升级。本发明实施例还提供相应的应用程序升级装置,以下分别进行详细说明。An embodiment of the present invention provides a method for upgrading an application program based on the Firefox operating system, comprising: acquiring application program update information, the application program update information including: the download address of the application program upgrade package; downloading from the location specified by the download address Described application program upgrade package, and described application program upgrade package is stored in the user directory of Firefox operating system; Call the newly-added application programming interface function for copying files in the Gecko of described Firefox operating system, and all The application program upgrade package is copied from the user directory to the system directory of the target application program for this upgrade, wherein the newly added application programming interface function for copying files has root authority; restart the target application program to complete the upgrade of the target application. The embodiment of the present invention also provides a corresponding application program upgrading device, which will be described in detail below.

下面对本发明实施例提供的一种基于Firefox操作系统的应用程序升级方法进行描述,请参阅图1,本发明实施例中的应用程序升级方法包括:A kind of application program upgrade method based on Firefox operating system provided by the embodiment of the present invention is described below, please refer to Fig. 1, the application program upgrade method in the embodiment of the present invention includes:

101、获取应用程序更新信息,其中,上述应用程序更新信息包括:应用程序升级包的下载地址;101. Obtain application update information, wherein the above application update information includes: the download address of the application update package;

可选地,当服务器发现存在某一应用程序的新版本的应用程序升级包时,向管理该应用程序的应用程序升级装置推送上述应用程序更新信息;或者,应用程序升级装置也可以主动从服务器获取上述应用程序更新信息,本发明实施例中不对获取应用程序更新信息的具体实现方式进行限定。Optionally, when the server finds that there is an application upgrade package of a new version of a certain application, it pushes the above-mentioned application update information to the application upgrade device that manages the application; The above-mentioned application program update information is obtained, and the specific implementation manner of obtaining the application program update information is not limited in the embodiment of the present invention.

102、从上述下载地址指定的位置下载上述应用程序升级包,并将上述应用程序升级包存储到Firefox操作系统的用户目录中;102. Download the above-mentioned application program upgrade package from the location specified by the above-mentioned download address, and store the above-mentioned application program upgrade package in the user directory of the Firefox operating system;

本发明实施例中,当应用程序升级装置获取上述应用程序更新信息后,即触发步骤102的执行。In the embodiment of the present invention, the execution of step 102 is triggered when the application program upgrading device acquires the above application program update information.

可选地,上述应用程序更新信息还包括:应用程序升级包的版本信息描述文件,当应用程序升级装置获取上述应用程序更新信息时,应用程序升级装置根据上述应用程序升级包的版本信息描述文件检测该应用程序升级包是否为新版本的应用程序升级包,当确定该应用程序升级包为新版本的应用程序升级包,才触发步骤102的执行,否则,不触发步骤102以及后续步骤的执行。Optionally, the above-mentioned application program update information further includes: a version information description file of the application program upgrade package. When the application program update device acquires the above-mentioned application program update information, the application program update device will Detect whether the application upgrade package is a new version of the application upgrade package, and only trigger the execution of step 102 when it is determined that the application upgrade package is a new version of the application upgrade package, otherwise, do not trigger the execution of step 102 and subsequent steps .

可选的,当应用程序升级装置获取上述应用程序更新信息时,提醒用户是否触发升级流程,当用户选择升级时,触发步骤102的执行,否则,不触发步骤102以及后续步骤的执行。Optionally, when the application program upgrade device acquires the above application program update information, it reminds the user whether to trigger the upgrade process. When the user chooses to upgrade, the execution of step 102 is triggered; otherwise, the execution of step 102 and subsequent steps is not triggered.

103、调用上述Firefox操作系统的Gecko中新增的用于拷贝文件的应用程序编程接口函数,将上述应用程序升级包从上述用户目录拷贝到本次升级的目标应用程序的系统目录中;103. Call the newly added application programming interface function for copying files in the Gecko of the above-mentioned Firefox operating system, and copy the above-mentioned application program upgrade package from the above-mentioned user directory to the system directory of the target application program for this upgrade;

其中,上述新增的用于拷贝文件的应用程序编程接口函数具备root权限。本发明实施例中,预先在上述Firefox操作系统的Gecko新增用于拷贝文件的应用程序编程接口函数(API,Application Programming Interface)。可选地,新增的该API按照web接口定义语言方式(IDL,Interface Definition Language)添加在上述Firefox操作系统的Gecko层中,具体文件拷贝函数在动态链接库文件中实现,由于该API在Gecko中通过web IDL实现,属于系统API,因此该API具备root权限,能够直接操作系统目录。具体地,上述动态链接库文件采用c语言实现,可以放到Firefox操作系统的/external目录下,使用Android的编译安装方式,最后生成的动态链接库文件拷贝到Firefox操作系统的/data/local目录中。Wherein, the above-mentioned newly added application programming interface function for copying files has root authority. In the embodiment of the present invention, an application programming interface function (API, Application Programming Interface) for copying files is newly added in Gecko of the above-mentioned Firefox operating system in advance. Optionally, this newly-added API is added in the Gecko layer of the above-mentioned Firefox operating system according to the web interface definition language mode (IDL, Interface Definition Language), and the specific file copy function is realized in the dynamic link library file, because this API is in Gecko It is implemented through web IDL and belongs to the system API, so the API has root authority and can directly operate the operating system directory. Specifically, the above-mentioned dynamic link library file is implemented in C language, and can be placed in the /external directory of the Firefox operating system, using the Android compilation and installation method, and the finally generated dynamic link library file is copied to the /data/local directory of the Firefox operating system middle.

本发明实施例中,应用程序升级装置调用上述新增的API,将步骤102存储到上述用户目录的应用程序升级包拷贝到本次升级的目标应用程序的系统目录中。具体地,应用程序升级装置可以通过系统App调用具有root权限的上述新增的API,上述新增API使用dlopen函数调用上述动态链接库文件中的文件拷贝函数,将步骤102存储到上述用户目录的应用程序升级包拷贝到本次升级的目标应用程序的系统目录中。In the embodiment of the present invention, the application program upgrade device calls the newly added API, and copies the application program upgrade package stored in the user directory in step 102 to the system directory of the target application program to be upgraded this time. Specifically, the application program upgrade device can call the above-mentioned newly-added API with root authority through the system App, and the above-mentioned newly-added API uses the dlopen function to call the file copy function in the above-mentioned dynamic link library file, and stores step 102 in the above-mentioned user directory. The application upgrade package is copied to the system directory of the target application for this upgrade.

可选的,应用程序升级装置与系统APP建立连接,通过该系统APP调用Gecko中新增的上述API,将步骤102存储到用户目录中的应用程序升级包拷贝到本次升级的目标应用程序的系统目录中。Optionally, the application program upgrade device establishes a connection with the system APP, calls the above-mentioned API newly added in Gecko through the system APP, and copies the application program upgrade package stored in the user directory in step 102 to the target application program of this upgrade. in the system directory.

104、重启上述目标应用程序以完成对上述目标应用程序的升级;104. Restart the above-mentioned target application program to complete the upgrade of the above-mentioned target application program;

在完成步骤103的拷贝工作后,应用程序升级装置重启上述目标应用程序,以完成对上述目标应用程序的升级。After the copying work in step 103 is completed, the application program upgrading device restarts the above-mentioned target application program, so as to complete the upgrade of the above-mentioned target application program.

需要说明的是,本发明实施例中的应用程序升级方法主要应用于PackageApp的升级,当然,该应用程序升级方法也可以应用于其它类型的APP的升级,此处不作限定。It should be noted that the application upgrade method in the embodiment of the present invention is mainly applied to the upgrade of PackageApp. Of course, the application upgrade method can also be applied to the upgrade of other types of APP, which is not limited here.

需要说明的是,本发明实施例中的应用程序升级装置可以集成在移动终端、智能电视机或其它装载Firefox操作系统的设备中,或者,也可以独立于上述装载Firefox操作系统的设备,并能够通过有线或无线方式与上述设备进行通讯的装置,此处不作限定。It should be noted that the application program upgrading device in the embodiment of the present invention can be integrated in a mobile terminal, a smart TV or other devices loaded with the Firefox operating system, or it can also be independent of the above-mentioned devices loaded with the Firefox operating system, and can A device that communicates with the above-mentioned equipment through wired or wireless means is not limited here.

由上可见,本发明中在Firefox操作系统的Gecko中新增用于拷贝文件且具有root权限的应用程序编程接口函数,在应用程序升级过程中,通过调用该应用程序编程接口函数,将存储到用户目录中的应用程序升级包拷贝到该应用程序的系统目录中,之后重启该应用程序完成该应用程序的升级,通过本发明方案,Firefox操作系统中的任何非网页应用程序的升级都可以单独进行而无需升级整个操作系统或操作系统的部分模块,有效提升了应用程序升级效率,且降低升级所需的流量和时间的损耗,提高用户体验。As can be seen from the above, in the present invention, an API function for copying files and having root authority is newly added in Gecko of the Firefox operating system. In the application program upgrade process, by calling the API function, the storage will be stored in The application upgrade package in the user directory is copied into the system directory of the application, and then the application is restarted to complete the upgrade of the application. By the scheme of the present invention, the upgrade of any non-webpage application in the Firefox operating system can be performed independently. There is no need to upgrade the entire operating system or some modules of the operating system, which effectively improves the efficiency of application program upgrades, reduces the traffic and time consumption required for the upgrade, and improves user experience.

下面以另一实施例对本发明实施例中的提供的一种基于Firefox操作系统的应用程序升级方法进行描述,请参阅图2,本发明实施例中的应用程序升级方法包括:A method for upgrading an application program based on the Firefox operating system provided in the embodiment of the present invention is described below with another embodiment. Referring to FIG. 2, the method for upgrading an application program in the embodiment of the present invention includes:

201、获取应用程序更新信息,其中,上述应用程序更新信息包括:应用程序升级包的下载地址和应用程序升级包的版本信息描述文件;201. Obtain application update information, wherein the above application update information includes: the download address of the application update package and the version information description file of the application update package;

可选地,当服务器发现存在某一应用程序的新版本的应用程序升级包时,向管理该应用程序的应用程序升级装置推送上述应用程序更新信息;或者,应用程序升级装置也可以主动从服务器获取上述应用程序更新信息,本发明实施例中不对获取应用程序更新信息的具体实现方式进行限定。Optionally, when the server finds that there is an application upgrade package of a new version of a certain application, it pushes the above-mentioned application update information to the application upgrade device that manages the application; The above-mentioned application program update information is obtained, and the specific implementation manner of obtaining the application program update information is not limited in the embodiment of the present invention.

202、根据应用程序升级包的版本信息描述文件,判断应用程序升级包是否为新版本的应用程序升级包;202. According to the version information description file of the application upgrade package, determine whether the application upgrade package is a new version of the application upgrade package;

本发明实施例中,当应用程序升级装置获取上述应用程序更新信息时,应用程序升级装置根据上述应用程序升级包的版本信息描述文件检测该应用程序升级包是否为新版本的应用程序升级包,当确定该应用程序升级包为新版本的应用程序升级包,执行步骤203,否则,执行步骤206。In the embodiment of the present invention, when the application program upgrade device acquires the above application program update information, the application program upgrade device detects whether the application program upgrade package is a new version of the application program upgrade package according to the version information description file of the above application program upgrade package, When it is determined that the application upgrade package is a new version of the application upgrade package, step 203 is performed; otherwise, step 206 is performed.

203、从上述下载地址指定的位置下载上述应用程序升级包,并将上述应用程序升级包存储到Firefox操作系统的用户目录中;203. Download the above-mentioned application program upgrade package from the location specified by the above-mentioned download address, and store the above-mentioned application program upgrade package in the user directory of the Firefox operating system;

204、调用上述Firefox操作系统的Gecko中新增的用于拷贝文件的应用程序编程接口函数,将上述应用程序升级包从上述用户目录拷贝到本次升级的目标应用程序的系统目录中;204. Call the newly added application programming interface function for copying files in the Gecko of the above-mentioned Firefox operating system, and copy the above-mentioned application program upgrade package from the above-mentioned user directory to the system directory of the target application program for this upgrade;

其中,上述新增的用于拷贝文件的应用程序编程接口函数具备root权限。本发明实施例中,预先在上述Firefox操作系统的Gecko新增用于拷贝文件的API。可选地,新增的该API按照web IDL添加在上述Firefox操作系统的Gecko层中,具体文件拷贝函数在动态链接库文件中实现,由于该API在Gecko中通过web IDL实现,属于系统API,因此该API具备root权限,能够直接操作系统目录。具体地,上述动态链接库文件采用c语言实现,可以放到Firefox操作系统的/external目录下,使用Android的编译安装方式,最后生成的动态链接库文件拷贝到Firefox操作系统的/data/local目录中。Wherein, the above-mentioned newly added application programming interface function for copying files has root authority. In the embodiment of the present invention, an API for copying files is newly added in Gecko of the above-mentioned Firefox operating system in advance. Optionally, the newly added API is added in the Gecko layer of the above-mentioned Firefox operating system according to the web IDL, and the specific file copy function is implemented in the dynamic link library file. Since the API is implemented by the web IDL in Gecko, it belongs to the system API. Therefore, the API has root authority and can directly operate the operating system directory. Specifically, the above-mentioned dynamic link library file is implemented in C language, and can be placed in the /external directory of the Firefox operating system, using the Android compilation and installation method, and the finally generated dynamic link library file is copied to the /data/local directory of the Firefox operating system middle.

本发明实施例中,应用程序升级装置调用上述新增的API,将步骤203存储到上述用户目录的应用程序升级包拷贝到本次升级的目标应用程序的系统目录中。具体地,应用程序升级装置可以通过系统App调用具有root权限的上述新增的API,上述新增API使用dlopen函数从上述动态链接库文件中调用文件拷贝函数,将步骤203存储到上述用户目录的应用程序升级包拷贝到本次升级的目标应用程序的系统目录中。In the embodiment of the present invention, the application program upgrade device calls the newly added API, and copies the application program upgrade package stored in the user directory in step 203 to the system directory of the target application program to be upgraded this time. Specifically, the application program upgrade device can call the above-mentioned newly-added API with root authority through the system App, and the above-mentioned newly-added API uses the dlopen function to call the file copy function from the above-mentioned dynamic link library file, and stores step 203 in the above-mentioned user directory. The application upgrade package is copied to the system directory of the target application for this upgrade.

可选的,应用程序升级装置与系统APP建立连接,通过该系统APP调用Gecko中新增的上述API,将步骤203存储到用户目录中的应用程序升级包拷贝到本次升级的目标应用程序的系统目录中。Optionally, the application program upgrade device establishes a connection with the system APP, calls the above-mentioned API newly added in Gecko through the system APP, and copies the application program upgrade package stored in the user directory in step 203 to the target application program of this upgrade. in the system directory.

205、重启上述目标应用程序以完成对上述目标应用程序的升级;205. Restart the above-mentioned target application program to complete the upgrade of the above-mentioned target application program;

在完成步骤204的拷贝工作后,应用程序升级装置重启上述目标应用程序,以完成对上述目标应用程序的升级。After the copying work in step 204 is completed, the application program upgrading device restarts the above-mentioned target application program, so as to complete the upgrade of the above-mentioned target application program.

206、结束本次流程。206. End this process.

需要说明的是,本发明实施例中的应用程序升级装置可以集成在移动终端、智能电视机或其它装载Firefox操作系统的设备中,此处不作限定。It should be noted that the application program upgrading apparatus in the embodiment of the present invention can be integrated in a mobile terminal, a smart TV or other devices loaded with the Firefox operating system, which is not limited here.

需要说明的是,本发明实施例中的应用程序升级方法主要应用于PackageApp的升级,当然,该应用程序升级方法也可以应用于其它类型的APP的升级,此处不作限定。It should be noted that the application upgrade method in the embodiment of the present invention is mainly applied to the upgrade of PackageApp. Of course, the application upgrade method can also be applied to the upgrade of other types of APP, which is not limited here.

由上可见,本发明中在Firefox操作系统的Gecko中新增用于拷贝文件且具有root权限的应用程序编程接口函数,在应用程序升级过程中,通过调用该应用程序编程接口函数,将存储到用户目录中的应用程序升级包拷贝到该应用程序的系统目录中,之后重启该应用程序完成该应用程序的升级,通过本发明方案,Firefox操作系统中的任何非网页应用程序的升级都可以单独进行而无需升级整个操作系统或操作系统的部分模块,有效提升了应用程序升级效率,且降低升级所需的流量和时间的损耗,提高用户体验。As can be seen from the above, in the present invention, an API function for copying files and having root authority is newly added in Gecko of the Firefox operating system. In the application program upgrade process, by calling the API function, the storage will be stored in The application upgrade package in the user directory is copied into the system directory of the application, and then the application is restarted to complete the upgrade of the application. By the scheme of the present invention, the upgrade of any non-webpage application in the Firefox operating system can be performed independently. There is no need to upgrade the entire operating system or some modules of the operating system, which effectively improves the efficiency of application program upgrades, reduces the traffic and time consumption required for the upgrade, and improves user experience.

下面以一具体应用场景对本发明实施例中的应用程序升级方法进行说明,如。如图3所示,本发明实施例中的应用程序升级系统在硬件上包含服务器和客户端两部分,上述服务器用来存放应用程序升级包和应用程序升级包的版本信息描述文档,上述客户端基于Firefox OS,包含System App、升级管理App和Package App三部分。The application program upgrading method in the embodiment of the present invention will be described below with a specific application scenario, eg. As shown in Figure 3, the application program upgrade system in the embodiment of the present invention includes server and client two parts on hardware, and above-mentioned server is used for storing application program upgrade package and the version information description document of application program upgrade package, and above-mentioned client Based on Firefox OS, it includes three parts: System App, Upgrade Management App and Package App.

上述Firefox OS的Gecko层中新增用于拷贝文件的API,该API的添加使用WebIDL的方式,具体拷贝工作采用C语言实现,编译成动态链接库,Gecko通过dlopen方法调用该动态链接库来实现文件拷贝;The above-mentioned Gecko layer of Firefox OS adds an API for copying files. The addition of this API uses the method of WebIDL. The specific copying work is implemented in C language and compiled into a dynamic link library. Gecko uses the dlopen method to call the dynamic link library to achieve file copy;

上述System App为Firefox OS启动后启动的首个App,具有root权限,可以调用上述API,拷贝系统目录中的文件;The above-mentioned System App is the first App started after Firefox OS is started. It has root authority and can call the above-mentioned API to copy files in the system directory;

上述Package App为资源文件存储在本地的Web App、Privilige App和CertifiedApp,其资源文件位于系统目录中,其中Certified App的资源文件需要root权限才可以操作;The above-mentioned Package Apps are Web Apps, Privilige Apps, and Certified Apps whose resource files are stored locally. Their resource files are located in the system directory, and the resource files of Certified Apps require root authority to operate;

上述升级管理App用来实现Package App的升级功能,当接收到服务器推送的应用程序更新信息,根据该应用程序更新信息中的应用程序升级包的版本信息描述文档确定本次可升级的应用程序升级包的版本是否高于客户端本地目标应用程序(该目标应用程序为本次可升级的应用程序升级包对应的应用程序)的版本,若是,则确定该应用程序升级包为新版本的应用程序升级包,执行更新动作。The above upgrade management software is used to implement the upgrade function of Package App. When receiving the application update information pushed by the server, the upgradeable application upgrade is determined according to the version information description document of the application upgrade package in the application update information. Whether the version of the package is higher than the version of the client's local target application program (this target application program is the application program corresponding to the application program upgrade package that can be upgraded this time), if so, then determine that the application program upgrade package is a new version of the application program Upgrade the package and execute the update action.

上述Package App的升级包含版本比较模块、升级包下载、保存模块和升级模块。上述版本比较模块为升级管理App接收到服务器推送的应用程序更新信息后与本地目标应用程序的版本信息进行比较,以确定是否更新;The upgrade of the above-mentioned Package App includes a version comparison module, an upgrade package download, a save module and an upgrade module. The above-mentioned version comparison module compares the version information of the local target application program with the version information of the local target application program after the upgrade management App receives the application program update information pushed by the server, to determine whether to update;

上述升级包下载、保存模块为升级管理App从服务器推送的应用程序更新信息中获取应用程序升级包的下载地址,下载并保存应用程序升级包到客户端本地的用户目录;The above-mentioned upgrade package downloading and saving module is an upgrade management App that obtains the download address of the application program upgrade package from the application program update information pushed by the server, downloads and saves the application program upgrade package to the local user directory of the client;

上述升级模块为升级管理App申请与System App建立connections,通过SystemApp调用Gecko层中的上述API,将应用程序升级包拷贝到目标应用程序相应的系统目录中,之后重新上述目标应用程序以完成上述目标应用程序的升级。The above upgrade module applies for the upgrade management App to establish connections with the System App, calls the above API in the Gecko layer through the SystemApp, copies the application upgrade package to the corresponding system directory of the target application, and then restarts the above target application to complete the above goal Application upgrades.

下面以另一实施例对本发明实施例提供的一种基于Firefox操作系统的应用程序升级装置进行描述,请参阅图4,本发明实施例中的应用程序升级装置400包括:The following uses another embodiment to describe a Firefox operating system-based application upgrade device provided by the embodiment of the present invention. Referring to FIG. 4, the application upgrade device 400 in the embodiment of the present invention includes:

获取单元401,用于获取应用程序更新信息,所述应用程序更新信息包括:应用程序升级包的下载地址;An acquiring unit 401, configured to acquire application update information, the application update information including: a download address of an application upgrade package;

下载存储单元402,用于从所述下载地址指定的位置下载所述应用程序升级包,并将所述应用程序升级包存储到Firefox操作系统的用户目录中;A download storage unit 402, configured to download the application upgrade package from the location specified by the download address, and store the application upgrade package in the user directory of the Firefox operating system;

拷贝单元403,用于调用所述Firefox操作系统的Gecko中新增的用于拷贝文件的应用程序编程接口函数,将所述应用程序升级包从所述用户目录拷贝到本次升级的目标应用程序的系统目录中,其中,所述新增的用于拷贝文件的应用程序编程接口函数具备root权限;The copying unit 403 is used to call the newly-added application programming interface function for copying files in the Gecko of the Firefox operating system, and copy the application program upgrade package from the user directory to the target application program for this upgrade In the system directory of , wherein, the newly added application programming interface function for copying files has root authority;

重启单元404,用于重启所述目标应用程序以完成对所述目标应用程序的升级。The restart unit 404 is configured to restart the target application program to complete the upgrade of the target application program.

可选的,所述新增的用于拷贝文件的应用程序编程接口函数按照web接口定义语言方式添加在所述Firefox操作系统的动态链接库文件中;拷贝单元403具体用于:使用dlopen函数从所述动态链接库文件中调用所述新增的用于拷贝文件的应用程序编程接口函数。Optionally, the newly added application programming interface function for copying files is added in the dynamic link library file of the Firefox operating system according to the web interface definition language; the copying unit 403 is specifically used for: using the dlopen function from The newly added application programming interface function for copying files is called in the dynamic link library file.

可选的,所述应用程序更新信息还包括:应用程序升级包的版本信息描述文件;本发明实施例中的应用程序升级装置还包括:确定单元,用于根据所述应用程序升级包的版本信息描述文件确定所述应用程序升级包为新版本的应用程序升级包。Optionally, the application program update information further includes: a version information description file of the application program upgrade package; the application program upgrade device in the embodiment of the present invention further includes: a determining unit, configured to The information description file determines that the application program upgrade package is a new version of the application program upgrade package.

可选的,本发明实施例中的应用程序升级装置还包括:接收单元,用于:接收针对所述应用程序更新信息的升级指令。Optionally, the application program upgrading apparatus in the embodiment of the present invention further includes: a receiving unit, configured to: receive an upgrade instruction for the application program update information.

可选的,获取单元401具体用于:接收服务器推送的应用程序更新信息。Optionally, the obtaining unit 401 is specifically configured to: receive application update information pushed by the server.

需要说明的是,本发明实施例中的应用程序升级装置主要应用于PackageApp的升级,当然,该应用程序升级装置也可以应用于其它类型的APP的升级,此处不作限定。It should be noted that the application upgrade device in the embodiment of the present invention is mainly applied to the upgrade of PackageApp. Of course, the application upgrade device can also be applied to the upgrade of other types of APP, which is not limited here.

需要说明的是,本发明实施例中的应用程序升级装置可以集成在移动终端、智能电视机或其它装载Firefox操作系统的设备中,或者,也可以独立于上述装载Firefox操作系统的设备,并能够通过有线或无线方式与上述设备进行通讯的装置,此处不作限定。It should be noted that the application program upgrading device in the embodiment of the present invention can be integrated in a mobile terminal, a smart TV or other devices loaded with the Firefox operating system, or it can also be independent of the above-mentioned devices loaded with the Firefox operating system, and can A device that communicates with the above-mentioned equipment through wired or wireless means is not limited here.

应理解,本发明实施例中的应用程序升级装置可以如上述方法实施例中提及的应用程序升级装置,可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述实施例中的相关描述,此处不再赘述。It should be understood that the application program upgrading device in the embodiment of the present invention can be like the application program upgrading device mentioned in the above-mentioned method embodiment, and can be used to realize all the technical solutions in the above-mentioned method embodiment, and the functions of each functional module can be based on The methods in the above method embodiments are specifically implemented, and the specific implementation process may refer to relevant descriptions in the above embodiments, and details are not repeated here.

由上可见,本发明中在Firefox操作系统的Gecko中新增用于拷贝文件且具有root权限的应用程序编程接口函数,在应用程序升级过程中,通过调用该应用程序编程接口函数,将存储到用户目录中的应用程序升级包拷贝到该应用程序的系统目录中,之后重启该应用程序完成该应用程序的升级,通过本发明方案,Firefox操作系统中的任何非网页应用程序的升级都可以单独进行而无需升级整个操作系统或操作系统的部分模块,有效提升了应用程序升级效率,且降低升级所需的流量和时间的损耗,提高用户体验。As can be seen from the above, in the present invention, an API function for copying files and having root authority is newly added in Gecko of the Firefox operating system. In the application program upgrade process, by calling the API function, the storage will be stored in The application upgrade package in the user directory is copied into the system directory of the application, and then the application is restarted to complete the upgrade of the application. By the scheme of the present invention, the upgrade of any non-webpage application in the Firefox operating system can be performed independently. There is no need to upgrade the entire operating system or some modules of the operating system, which effectively improves the efficiency of application program upgrades, reduces the traffic and time consumption required for the upgrade, and improves user experience.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.

需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

以上为对本发明所提供的一种基于Firefox操作系统的应用程序升级方法和装置的描述,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a description of an application program upgrade method and device based on the Firefox operating system provided by the present invention. For those of ordinary skill in the art, according to the ideas of the embodiments of the present invention, there will be specific implementation methods and application scopes. Changes, in summary, the contents of this specification should not be construed as limiting the present invention.

Claims (10)

1.一种基于Firefox操作系统的应用程序升级方法,其特征在于,包括:1. A method for upgrading an application program based on Firefox operating system, characterized in that, comprising: 获取应用程序更新信息,所述应用程序更新信息包括:应用程序升级包的下载地址;Acquiring application program update information, the application program update information includes: the download address of the application program upgrade package; 从所述下载地址指定的位置下载所述应用程序升级包,并将所述应用程序升级包存储到Firefox操作系统的用户目录中;Download the application upgrade package from the location specified by the download address, and store the application upgrade package in the user directory of the Firefox operating system; 调用所述Firefox操作系统的Gecko中新增的用于拷贝文件的应用程序编程接口函数,使得所述应用程序编程接口函数使用dlopen函数调用动态链接库文件中的文件拷贝函数,将所述应用程序升级包从所述用户目录拷贝到本次升级的目标应用程序的系统目录中,其中,所述新增的用于拷贝文件的应用程序编程接口函数在Gecko中通过webIDL实现,为系统应用程序编程接口函数,具备root权限;Call the newly added application programming interface function for copying files in the Gecko of the Firefox operating system, so that the application programming interface function uses the dlopen function to call the file copy function in the dynamic link library file, and the application program The upgrade package is copied from the user directory to the system directory of the target application program for this upgrade, wherein the newly added application programming interface function for copying files is implemented in Gecko through webIDL, which is a system application programming Interface function, with root authority; 重启所述目标应用程序以完成对所述目标应用程序的升级。Restarting the target application program to complete the upgrade of the target application program. 2.根据权利要求1所述的方法,其特征在于,所述新增的用于拷贝文件的应用程序编程接口函数按照web接口定义语言方式添加在所述Firefox操作系统的Gecko层中,文件拷贝函数在动态链接库文件中实现。2. method according to claim 1, it is characterized in that, described newly-increased application programming interface function for copying file is added in the Gecko layer of described Firefox operating system according to web interface definition language mode, and file copy Functions are implemented in dynamic link library files. 3.根据权利要求1或2所述的方法,其特征在于,3. The method according to claim 1 or 2, characterized in that, 所述应用程序更新信息还包括:应用程序升级包的版本信息描述文件;The application program update information also includes: a version information description file of the application program upgrade package; 所述从所述下载地址指定的位置下载所述应用程序升级包,之前包括:The downloading of the application upgrade package from the location specified by the download address previously includes: 根据所述应用程序升级包的版本信息描述文件确定所述应用程序升级包为新版本的应用程序升级包。According to the version information description file of the application program upgrade package, it is determined that the application program upgrade package is a new version of the application program upgrade package. 4.根据权利要求1或2所述的方法,其特征在于,所述从所述下载地址指定的位置下载所述应用程序升级包,之前包括:4. The method according to claim 1 or 2, wherein downloading the application upgrade package from the location specified by the download address includes: 接收针对所述应用程序更新信息的升级指令。An upgrade instruction for updating information of the application program is received. 5.根据权利要求1或2所述的方法,其特征在于,所述获取应用程序更新信息具体为:5. The method according to claim 1 or 2, wherein the obtaining application update information is specifically: 接收服务器推送的应用程序更新信息。Receive application update information pushed by the server. 6.一种基于Firefox操作系统的应用程序升级装置,其特征在于,包括:6. A device for upgrading application programs based on the Firefox operating system, characterized in that it comprises: 获取单元,用于获取应用程序更新信息,所述应用程序更新信息包括:应用程序升级包的下载地址;An acquisition unit, configured to acquire application update information, where the application update information includes: a download address of an application upgrade package; 下载存储单元,用于从所述下载地址指定的位置下载所述应用程序升级包,并将所述应用程序升级包存储到Firefox操作系统的用户目录中;A download storage unit, configured to download the application upgrade package from the location specified by the download address, and store the application upgrade package in the user directory of the Firefox operating system; 拷贝单元,用于调用所述Firefox操作系统的Gecko中新增的用于拷贝文件的应用程序编程接口函数,使得所述应用程序编程接口函数使用dlopen函数调用动态链接库文件中的文件拷贝函数,将所述应用程序升级包从所述用户目录拷贝到本次升级的目标应用程序的系统目录中,其中,所述新增的用于拷贝文件的应用程序编程接口函数在Gecko中通过webIDL实现,为系统应用程序编程接口函数,具备root权限;The copy unit is used to call the newly added application programming interface function for copying files in the Gecko of the Firefox operating system, so that the application programming interface function uses the dlopen function to call the file copy function in the dynamic link library file, Copy the application program upgrade package from the user directory to the system directory of the target application program for this upgrade, wherein the newly added application programming interface function for copying files is implemented in Gecko by webIDL, It is a system application programming interface function with root authority; 重启单元,用于重启所述目标应用程序以完成对所述目标应用程序的升级。A restart unit, configured to restart the target application program to complete the upgrade of the target application program. 7.根据权利要求6所述的应用程序升级装置,其特征在于,所述新增的用于拷贝文件的应用程序编程接口函数按照web接口定义语言方式添加在所述Firefox操作系统的Gecko层中,文件拷贝函数在动态链接库文件中实现。7. The application program upgrading device according to claim 6, wherein the newly added API function for copying files is added in the Gecko layer of the Firefox operating system according to the web interface definition language mode , the file copy function is implemented in the dynamic link library file. 8.根据权利要求6或7所述的应用程序升级装置,其特征在于,所述应用程序更新信息还包括:应用程序升级包的版本信息描述文件;8. The application program upgrading device according to claim 6 or 7, wherein the application program update information further comprises: a version information description file of the application program upgrade package; 所述应用程序升级装置还包括:The application program upgrading device also includes: 确定单元,用于根据所述应用程序升级包的版本信息描述文件确定所述应用程序升级包为新版本的应用程序升级包。The determining unit is configured to determine, according to the version information description file of the application program upgrade package, that the application program upgrade package is a new version of the application program upgrade package. 9.根据权利要求6或7所述的应用程序升级装置,其特征在于,9. The application program upgrading device according to claim 6 or 7, characterized in that, 所述应用程序升级装置还包括:The application program upgrading device also includes: 接收单元,用于:接收针对所述应用程序更新信息的升级指令。The receiving unit is configured to: receive an upgrade instruction for the application update information. 10.根据权利要求6或7所述的应用程序升级装置,其特征在于,所述获取单元具体用于:接收服务器推送的应用程序更新信息。10. The application program upgrading device according to claim 6 or 7, wherein the acquiring unit is specifically configured to: receive application program update information pushed by the server.
CN201510283424.8A 2015-05-28 2015-05-28 Application program upgrading method and device based on Firefox operating system Expired - Fee Related CN106293790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510283424.8A CN106293790B (en) 2015-05-28 2015-05-28 Application program upgrading method and device based on Firefox operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510283424.8A CN106293790B (en) 2015-05-28 2015-05-28 Application program upgrading method and device based on Firefox operating system

Publications (2)

Publication Number Publication Date
CN106293790A CN106293790A (en) 2017-01-04
CN106293790B true CN106293790B (en) 2019-12-13

Family

ID=57635467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510283424.8A Expired - Fee Related CN106293790B (en) 2015-05-28 2015-05-28 Application program upgrading method and device based on Firefox operating system

Country Status (1)

Country Link
CN (1) CN106293790B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357613B (en) * 2017-06-28 2020-09-04 广州酷狗计算机科技有限公司 Application updating method and device and computer readable storage medium
CN109086066B (en) * 2018-08-20 2023-12-19 中企瑞铭科技(北京)有限公司 Application program updating method and device, computer equipment and storage medium
CN113127859B (en) * 2019-12-30 2024-04-12 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for detecting files to be detected
CN111324411B (en) * 2020-03-26 2023-12-22 Vidaa(荷兰)国际控股有限公司 User interface upgrading method in display equipment and display equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101393591A (en) * 2008-10-27 2009-03-25 中国科学院计算技术研究所 A method and system for discovering unknown USB viruses
CN103885806A (en) * 2014-04-02 2014-06-25 深圳市兰丁科技有限公司 Implementation method and device for online upgrading of system software of set top box
CN104182241A (en) * 2013-05-24 2014-12-03 华为终端有限公司 Webpage application program (Web App) update method and communication device
CN104298532A (en) * 2014-11-04 2015-01-21 上海斐讯数据通信技术有限公司 Upgrading method and upgrading system for software
CN104375856A (en) * 2014-09-24 2015-02-25 腾讯科技(深圳)有限公司 Application updating method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8959142B2 (en) * 2012-02-29 2015-02-17 Microsoft Corporation Combining server-side and client-side user interface elements

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101393591A (en) * 2008-10-27 2009-03-25 中国科学院计算技术研究所 A method and system for discovering unknown USB viruses
CN104182241A (en) * 2013-05-24 2014-12-03 华为终端有限公司 Webpage application program (Web App) update method and communication device
CN103885806A (en) * 2014-04-02 2014-06-25 深圳市兰丁科技有限公司 Implementation method and device for online upgrading of system software of set top box
CN104375856A (en) * 2014-09-24 2015-02-25 腾讯科技(深圳)有限公司 Application updating method and device
CN104298532A (en) * 2014-11-04 2015-01-21 上海斐讯数据通信技术有限公司 Upgrading method and upgrading system for software

Also Published As

Publication number Publication date
CN106293790A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN107291481B (en) Component updating method, device and system
CN104838405B (en) The method and system of test frame for application program
JP5838527B2 (en) Method, apparatus and communication device for updating firmware
US9118677B2 (en) Meta-app to depict cloud environment dependencies to faciliate a service environment rebuild
TWI626593B (en) Method and device for upgrading software
CN104395879B (en) Apparatus and method for automatically updating client software applications
US20130311613A1 (en) Updating Web Resources
CN103647816A (en) Method and device for upgrading application software
WO2015192608A1 (en) Method for updating app in android system, terminal and storage medium
WO2018032757A1 (en) Method and device for updating component
WO2019056187A1 (en) Application deployment method, apparatus and system
CN106293790B (en) Application program upgrading method and device based on Firefox operating system
CN111459523A (en) Image quality chip software upgrading method and device, electronic equipment and storage medium
CN111752577B (en) Upgrading method and equipment for system version
CN111712794A (en) A method for installing application program by function module
CN112612493B (en) Software upgrade method, device, equipment and storage medium for software set
CN103631869B (en) A kind of method and apparatus for alleviating server-side database access pressure
CN108280174A (en) Front-end file construction method and server, page access method and terminal
CN105354065A (en) Multi-product software upgrading method and terminal
CN105912641A (en) Icon update method and apparatus of Native Apps
CN112860300B (en) Distributed SDK hot update processing method, application server cluster and application client
CN106293814A (en) Upgrade method and device
CN102799426B (en) The disposal route of Service Component and system and equipment
CN106933604A (en) A kind of method for upgrading system and device
CN115857984A (en) How to upgrade master and slave devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191213

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