CN118245097A - Upgrade method of installation-free application and electronic equipment - Google Patents

Upgrade method of installation-free application and electronic equipment Download PDF

Info

Publication number
CN118245097A
CN118245097A CN202211656834.9A CN202211656834A CN118245097A CN 118245097 A CN118245097 A CN 118245097A CN 202211656834 A CN202211656834 A CN 202211656834A CN 118245097 A CN118245097 A CN 118245097A
Authority
CN
China
Prior art keywords
package
check value
electronic device
installation
function
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.)
Pending
Application number
CN202211656834.9A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202211656834.9A priority Critical patent/CN118245097A/en
Priority to PCT/CN2023/140157 priority patent/WO2024131823A1/en
Publication of CN118245097A publication Critical patent/CN118245097A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The application provides an upgrade method of an installation-free application and electronic equipment. The method comprises the following steps: the electronic equipment acquires a first functional package and a second functional package, wherein the first functional package comprises first description information and a first check value, and the second functional package comprises second description information and a second check value; the electronic equipment sends first description information and a first check value, and second description information and a second check value to the application server, wherein the first description information and the second description information are used for the application server to acquire a third check value and a fourth check value; and under the condition that the third check value is the same as the first check value and the fourth check value is different from the second check value, the electronic equipment receives the second updating function packet sent by the application server, deletes the second function packet and stores or installs the second updating function packet. According to the method, whether to update the function package stored on the electronic equipment can be determined based on the check value of the installation file, so that the starting speed of the function package is improved, and the user experience is improved.

Description

Upgrade method of installation-free application and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to an upgrade method for an installation-free application and an electronic device.
Background
With the progress of technology and the development of intelligent electronic devices, the types and functions of the electronic devices are more and more abundant. To meet the use needs of users, developers have developed a variety of functional applications, which users can download and install on electronic devices, experiencing different functional characteristics through the installed applications, such as playing music, playing video, etc.
Currently, an application may include a number of different installation packages, such as a base package, a configuration package, an Entry (Entry) Feature package, or a Feature (Feature) Feature package, among others. The version numbers of the plurality of different installation packages are required to be identical on the electronic device. Every time an application is updated, the old version of the installation package needs to be deleted, and then the new version of the installation package is downloaded again.
Disclosure of Invention
The application provides an upgrade method of an installation-free application and electronic equipment, which can reduce unnecessary update of some function packages in the installation-free application, improve the starting speed of the function packages in the installation-free application and improve user experience.
In a first aspect, the present application provides a method for upgrading an installation-free application, where the method includes: the electronic equipment acquires a first function package and a second function package of a first installation-free application, wherein the first function package comprises first description information and a first check value, and the second function package comprises second description information and a second check value; the electronic equipment sends the first description information and the first check value, and the second description information and the second check value to the application server, wherein the first description information is used for the application server to acquire the third check value, and the second description information is used for the application server to acquire the fourth check value; when the third check value is the same as the first check value and the fourth check value is different from the second check value, the electronic equipment receives a second update function packet sent by the application server; the electronic device deletes the second function package, and saves or installs the second update function package. It should be understood that, with respect to an acquisition operation of an electronic device, it may refer to a lookup, query, or index operation of the electronic device in its kernel space, user space, or memory. It should be understood that, for an acquisition operation of an application server, it may refer to a search, query, or index operation of the server in its memory space, storage, or database.
In some embodiments, the first description information and the first check value may be the same information or different information. The second description information and the second check value may be the same information or different information.
Wherein the first description information may include one or more of: a package name of the first function package, an application name of the first installation-free application, and the like. The first functional package may further include other description information, such as a version number of the first functional package, in addition to the first description information.
The second description information may include one or more of the following: a package name of the second function package, an application name of the first installation-free application, and the like. The second function package may further include other description information, such as a version number of the second function package, in addition to the first description information.
The third check value may refer to a check value of an installation file in a first update package in a first installation-free application stored on the application server.
The fourth check value may refer to a check value of an installation file in a second update package in the first installation-free application stored on the application server.
The electronic device may periodically/at intervals/sporadically verify in the application server whether the functionality packages in the first installation-free application need to be updated based on the method.
By the method provided by the first aspect, the electronic device can determine whether to delete the function package stored on the electronic device based on the verification value of the installation file. That is, different versions of the feature pack within the same installation-free application may exist on the electronic device 100 at the same time. When a certain function package in the same installation-free application is updated, when the installation files of other function packages in the installation-free application are unchanged, the other function packages do not need to be updated, so that the starting speed of the function packages can be improved, and the user experience is improved.
With reference to the first aspect, in one possible implementation manner, the version number of the first functional packet and the version number of the second functional packet are the same or different; the version number of the first functional package is different from the version number of the second update functional package.
In some embodiments, the version number of the first feature pack is different from the version number of the second update feature pack, and when the electronic device runs the first feature pack, the electronic device may modify the version number of the first feature pack to a version number of a newer version, i.e., to be consistent with the version number of the second update feature pack. Thus, the first feature pack presents the version number to the electronic device as the version number of the newer version at runtime.
Thus, different versions of the feature pack in the same installation-free application on the electronic device can be stored with each other.
With reference to the first aspect, in one possible implementation manner, the method further includes: when the third check value is the same as the first check value and the fourth check value is the same as the second check value, the electronic equipment receives a second message sent by the application server; in response to the second message, the electronic device continues to save the first and second feature packs.
In this way, the electronic device can continue to save the first and second feature packs without updating the installation file in the first feature pack and the installation file in the second feature pack.
With reference to the first aspect, in one possible implementation manner, the method further includes: when the third check value is different from the first check value and the fourth check value is the same as the second check value, the electronic equipment receives a first update function packet sent by the application server; the electronic device deletes the first function package, and stores or installs the first update function package.
Thus, in the case that the installation file in the first function package is updated, the electronic device may delete the first function package, obtain and store the first updated function package. Under the condition that the installation file in the second function package is not updated, the electronic equipment can continuously store the second function package without downloading the second updated function package.
With reference to the first aspect, in one possible implementation manner, the method further includes: when the third check value is different from the first check value and the fourth check value is different from the second check value, the electronic equipment receives a first updating function packet and a second updating function packet which are sent by the application server; the electronic device deletes the first function package and the second function package, and stores or installs the first update function package and the second update function package.
In this way, the electronic device may delete the first and second function packages to obtain and store the first and second update function packages when the installation files in the first and second function packages are updated.
With reference to the first aspect, in one possible implementation manner, the first functional package further includes a first installation file, and the first check value is a check value of the first installation file; the second function package further comprises a second installation file, and the second check value is a check value of the second installation file.
The first update package may include a first update installation file, first description information, and a third check value. The first update package may further include other description information, such as a version number of the first update package, in addition to the first description information. The version number of the first update package is different from the version number of the first package.
The second update package may include a second update installation file, second description information, and a fourth check value. The second update package may include other description information, such as a version number of the second update package, in addition to the first description information. The version number of the second update package is different from the version number of the second package.
With reference to the first aspect, in one possible implementation manner, before the electronic device receives the second update function packet sent by the application server, the method further includes: the electronic equipment receives a first message sent by an application server; the electronic device receives a second update function packet sent by the application server, and specifically includes: responding to the first message, the electronic equipment sends second description information to the application server, wherein the second description information is used for the application server to acquire a second update function package; the electronic device receives a second update function package sent by the application server.
In this way, the electronic device can download the second update package from the server when the second update package is needed.
With reference to the first aspect, in one possible implementation manner, before the electronic device sends the first description information and the first check value, and the second description information and the second check value to the application server, the method further includes: the electronic device receives a first operation; in response to the first operation, the electronic device runs a second feature pack.
In this way, it is verified whether the function package in the first installation-free application needs to be updated except that the electronic device periodically/at intervals/sporadically to the application server. The electronic device may also actively verify, in the application server, whether the function package in the first installation-free application needs to be updated when the user uses the first installation-free application, and obtain the updated function package. The user may use the updated feature pack the next time the first installation-free application is used.
With reference to the first aspect, in one possible implementation manner, the deleting, by the electronic device, the second function package specifically includes: after the electronic device stops running the second function package, the electronic device deletes the second function package.
Thus, when the electronic device needs to update the second function package of the first installation-free application, the electronic device can delete the second function package after the second function package stops running. In this way, the user is not affected to use the second feature pack.
With reference to the first aspect, in one possible implementation manner, the method further includes: the electronic equipment acquires a third functional package of the first installation-free application, wherein the third functional package comprises third description information and a fifth check value; the electronic equipment receives the third description information and the sixth check value sent by the application server; the electronic equipment receives a third updating function packet sent by the application server under the condition that the fifth check value is different from the sixth check value; the electronic device deletes the third functional package, saves or installs the third updated functional package.
In some examples, in the event that the fifth check value is different from the sixth check value, the electronic device may send an update request to the application server for the third update function package to facilitate the application server to send the third update function package.
The third function package may include a third installation file, third description information, and a fifth check value. The third functional package may further include other description information, such as a version number of the third functional package, etc., in addition to the third description information.
The third update package may include a third update installation file, third description information, and a sixth check value. The third update package may further include other description information, such as a version number of the third update package, in addition to the third description information. The version number of the third update package is different from the version number of the third package.
In this way, the server can also actively verify to the electronic device whether the first installation-free application's feature pack needs to be updated.
In a second aspect, the present application provides an upgrade method for an installation-free application, applied to an application server, the method comprising: the application server receives a first check value and a second check value sent by the electronic equipment; the first check value is used for checking a first functional package of the first installation-free application, and the second check value is used for checking a second functional package of the first installation-free application; the application server obtains a third check value according to the first check value and obtains a fourth check value according to the second check value; and under the condition that the third check value is the same as the first check value and the fourth check value is different from the second check value, the application server sends a second update function packet to the electronic equipment.
The first check value may include description information of the first functional package and a check value of an installation file in the first functional package. The description information of the first feature pack may include one or more of the following: the package name of the first function package, the name of the first installation-free application, and the version number of the first function package.
The second check value may include description information of the second function package and a check value of the installation file in the first function package. The description information of the second feature pack may include one or more of the following: the package name of the second function package, the name of the first installation-free application, and the version number of the second function package.
The third check value may include description information of the first update function package and a check value of an installation file in the first update function package. The description information of the first update package may include one or more of the following: the package name of the first update function package, the name of the first installation-free application, and the version number of the first update function package. The version number of the first update package is different from the version number of the first package.
The fourth check value may include description information of the second update function package and a check value of the installation file in the first update function package. The description information of the second update package may include one or more of the following: the package name of the second update function package, the name of the first installation-free application, and the version number of the second update function package. The version number of the second update package is different from the version number of the second package.
The electronic device sends the first check value to the application server, which means that the electronic device sends the package name of the first functional package and the check value of the installation file in the first functional package to the application server.
The electronic device sending the second check value to the application server may refer to the electronic device sending the package name of the second function package and the check value of the installation file in the second function package to the application server.
The application server obtaining the third check value according to the first check value may refer to that the application server obtains the check value of the installation file in the first update function packet according to the packet name of the first function packet.
The application server obtaining the fourth check value according to the second check value may refer to that the application server obtains the check value of the installation file in the second update function packet according to the packet name of the second function packet.
The third check value is the same as the first check value, which may mean that the check value of the installation file in the first update function package is the same as the check value of the installation file in the first function package.
The fourth check value and the second check value being different may mean that the check value of the installation file in the second update function package and the check value of the installation file in the second function package are different.
With reference to the second aspect, in one possible implementation manner, the version number of the first functional packet and the version number of the second functional packet are the same or different; the version number of the first functional package is different from the version number of the second update functional package.
With reference to the second aspect, in one possible implementation manner, the method further includes: the application server sends a sixth check value of the third updating function packet to the electronic equipment, wherein the sixth check value is used for checking the third function packet of the installation-free application by the electronic equipment; and in the case that the fifth check value of the third functional package is different from the sixth check value of the third updating functional package, the server sends the third updating functional package to the electronic device.
In some examples, in the event that the fifth check value is different from the sixth check value, the server may receive an update request sent by the electronic device for the third update function package to send the third update function package to the electronic device.
The fifth check value may include description information of the third functional package and a check value of an installation file in the third functional package. The description information of the third feature pack may include one or more of the following: the package name of the third functional package, the name of the first installation-free application, and the version number of the third functional package.
The sixth check value may include description information of the third update function package and a check value of an installation file in the third update function package. The description information of the third update package may include one or more of the following: the package name of the third update function package, the name of the first installation-free application, and the version number of the third update function package. The version number of the third update package is different from the version number of the third package.
The application server sending the sixth check value to the electronic device may refer to the application server sending the package name of the third update function package and the check value of the installation file in the third update function package to the electronic device.
The sixth check value is used for the electronic device to obtain the fifth check value, and may refer to that the electronic device obtains the check value of the installation file in the third functional package based on the package name of the third update functional package.
The fifth check value is different from the sixth check value, which may mean that the check value of the installation file in the third update function package is different from the check value of the installation file in the third function package.
In a third aspect, the application provides an electronic device, characterized in that the electronic device comprises a processor and a memory; the memory is coupled to the processor, the memory is for storing computer program code, the computer program code comprising computer instructions, the processor invoking the computer instructions to perform an installation-free application upgrade method provided in any one of the possible implementations of the above aspect.
In a fourth aspect, the present application provides a computer readable storage medium, configured to store computer instructions that, when executed on an electronic device, cause the electronic device to perform an upgrade method of an installation-free application provided in any one of the possible implementations of the above aspect.
In a fifth aspect, the present application provides a computer program product, characterized in that the computer program product, when run on an electronic device, causes the electronic device to perform an upgrade method of an installation-free application provided in any one of the possible implementations of the above aspect.
For the description of the advantageous effects in the second to fifth aspects, reference may be made to the description of the advantageous effects in the first aspect, and the present application will not be repeated here.
Drawings
FIGS. 1A-1B are a set of UI diagrams provided in an embodiment of the application;
FIGS. 2A-2C are another set of UI diagrams provided by an application embodiment;
FIGS. 3-4 are diagrams of a set of update packages provided by an embodiment of the application;
FIGS. 5A-5B are schematic diagrams illustrating another set of update packages according to an embodiment of the present application;
FIG. 5C is a diagram of a system architecture according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of an electronic device 100 according to an embodiment of the application;
fig. 7 is a block diagram of a software architecture of the electronic device 100 according to an embodiment;
FIG. 8 is a flowchart of a method for updating a single function package on an electronic device 100 according to an embodiment of the present application;
Fig. 9 is a schematic flow chart of updating a plurality of function packages by the electronic device 100 according to the embodiment of the present application;
fig. 10 is a flow chart of an upgrade method of an installation-free application according to an embodiment of the present application;
fig. 11 is a flow chart of another method for upgrading an installation-free application according to an embodiment of the present application.
Detailed Description
The following description will be given in detail of the technical solutions in the embodiments of the present application with reference to the accompanying drawings. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: the three cases where a exists alone, a and B exist together, and B exists alone, and furthermore, in the description of the embodiments of the present application, "plural" means two or more than two.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
First, a description will be given of a general application and an installation-free application to which the present application relates.
Among them, a general application may refer to an application that requires a user to manually download an installation package from an application server and install it on an electronic device. After the normal application is installed on the electronic device, an icon of the normal application may be displayed on a desktop of the electronic device. Moreover, common applications also require the user to manually uninstall from the electronic device. After the normal application is uninstalled from the electronic device, the icon of the normal application also disappears from the desktop of the electronic device.
The installation package of the common application can realize a plurality of different functional characteristics, and when a user only wants to use one functional characteristic in the common application, the complete installation package of the common application needs to be downloaded and stored on the electronic equipment to use the functional characteristic. The installation package of the general application is relatively large, and for example, the size of the installation package of the general application may be generally about 100MB, 150MB or 200 MB. Therefore, the time to download the installation package of the general application may be longer.
By way of example, the generic application may be a Hua-as video application.
As shown in fig. 1A, fig. 1A illustrates a main interface 210 of the electronic device 100 prior to installation of the video application. The main interface 210 includes icons of a plurality of applications, such as an icon of a weather application, an icon of a Hua-as-store application, an icon of a smart home application, an icon of a sports health application, an icon of a memo application, an icon of a calendar application, an icon of a life service application, an icon of a camera application, an icon of an address book application, an icon of a phone application, an icon of an information application, and the like. The main interface 210 also shows a power indicator, weather indicator, date indicator, network signal indicator, page indicator, etc.
As shown in fig. 1B, fig. 1B illustrates the main interface 220 of the electronic device 100 after installing the video application. The main interface 220 is similar to the main interface 210, except that an icon 2201 is also included in the main interface 220 as a video application. After the Hua-as video application is installed locally, the electronic device 100 may receive an input operation (e.g., a single click) by a user on the icon 2201 of the Hua-as video application in the main interface 220, and in response to the input operation by the user, the electronic device 100 may display content of the Hua-as video application, e.g., play video provided for the video application.
The installation-free application may refer to an application that does not require a user to manually download an installation package of the application from an application server and that is installed on an electronic device as desired. For example, the application server may automatically send an installation package of top-ranked N installation-free applications for the community of users to the electronic device, which may automatically install the installation-free applications. After the installation-free application is installed on the electronic device, the electronic device may display an icon, a card, a link, or the like of the installation-free application.
For example, when the electronic device 100 may display a card of the installation-free application, the electronic device may receive an input operation of a user for the card, and start the installation-free application. And, the user does not need to manually uninstall the installed installation-free application from the electronic device. For example, the electronic device may automatically uninstall the installation-free application from the electronic device after the user has not used the installed installation-free application for more than a certain period of time. The installation package of the installation-free application is smaller, for example, the size of the installation package of the installation-free application can be generally within 10MB,15MB or 20MB, so that the electronic device can quickly download the installation package of the installation-free application, and quickly install and start the installation-free application on the device.
The installation-free application may be an air conditioning control application, for example.
As shown in fig. 2A, the electronic device 100 receives a sliding operation (e.g., a sliding operation horizontally to the right) by a user on the main interface 210, and in response to an input operation by the user, the electronic device 100 may display the user interface 410 shown in fig. 2B.
The user interface 410 may be a user interface of a service center on the electronic device 100. The user may find or use the installation-free application in the user interface 410.
A service center may be a capability provided by the operating system of the electronic device 100, which may be understood as a system application on the electronic device 100. The service center may recommend a card of the installation-free application to the user for the usage habit of the user using the electronic device 100. The user can quickly open the installation-free application based on the card of the installation-free application provided by the service center. For example, the user interface 410 shown in FIG. 2B may be a user interface provided by a service center on the electronic device 100.
As shown in fig. 2B, when a card of the air-conditioning control application is displayed in the user interface 410, the electronic device 100 may receive an input operation (e.g., a click) of the card of the air-conditioning control application by a user, and in response to the input operation by the user, when the electronic device 100 has not previously installed the air-conditioning control application, the electronic device 100 may transmit the type of the electronic device 100 and the identification of the air-conditioning control application to the application server.
When the card of the air-conditioning control application is not displayed in the user interface 410, the electronic device 100 may receive a search operation of the user in a search field in the user interface 410, and find and download the air-conditioning control application.
The method is not only limited to clicking cards or searching for the installation-free application, but also can search for and download the air conditioner control application in a sweeping or touching manner. The application is not limited in this regard.
The present application is not limited to the display of a card for an air conditioning control application in the user interface 410, but may be a card for an air conditioning control application in a desktop or a drop-down notification bar.
For example, after the electronic device 100 installs the air conditioning control application, the electronic device 100 may display the user interface 420 shown in fig. 2C. The user interface 420 is a user interface in an air conditioning control application. The user may control the air conditioner of the living room on the user interface 420, for example, control the on/off of the air conditioner of the living room, control the on/off of the energy saving mode of the air conditioner of the living room, adjust the temperature of the air conditioner of the living room, time duration of the air conditioner of the equipment room, turn on/off the air conditioner of the living room remotely, and the like.
An installation-free application may include multiple installation packages, with different installation packages implementing different functional features. The electronic device 100 also supports that, when a user uses one of a plurality of function characteristics of the installation-free application, only the installation package corresponding to the one function characteristic is downloaded. The multiple installation packages of the installation-free application may also be referred to as multiple functional packages of the installation-free application. Thus, the electronic device 100 can quickly download and install the function package of the installation-free application, and quickly realize the function characteristics provided by the function package.
For different types of devices, the first installation-free application is typically developed by the same vendor, and the first installation-free application may implement the same or similar functions on devices of different device types. The installation files of the function packages of the first installation-free application downloaded by the devices of the different device types or the package names of the function packages may be the same or different. The installation package size of the first installation-free application may also be the same or different for different types of devices.
As shown in fig. 3 (a), the first installation-free application has three function packages, which are installation packages of different functional characteristics in the first installation-free application. The first functional package can realize first functional characteristics, the second functional package can realize second functional characteristics, and the third functional package can realize third functional characteristics. The electronic device 100 may download any one of the three function packages in a time sharing manner and use the function characteristics of each of the three function packages in a time sharing manner. For example, the first feature pack may include a base feature pack or an Entry feature pack. The second feature pack may include a configuration feature pack, such as a resource pack related to a language configuration of the first installation-free application, a resource pack related to a central processing unit (central processing unit, CPU) configuration of the first installation-free application, and the like. The third Feature package may include a Feature package, such as a resource package associated with the image in the first installation-free application, or the like.
Since the first function package, the second function package, and the third function package all belong to the function package in the first installation-free application, the version numbers of the first function package, the second function package, and the third function package are the same. For example, the version numbers of the first, second, and third function packages are app version1.0.
The version numbers of different feature packages within the same installation-free application on electronic device 100 need to be consistent. For example, when the electronic device 100 updates a certain function package in the first installation-free application, the electronic device 100 may download a newer version of the function package from the application server. When the electronic device 100 installs the function package of the newer version, if the version number of the other function package installed on the electronic device 100 is inconsistent with the version number of the function package of the newer version, the electronic device 100 deletes the other function package, and downloads the other function package of the newer version from the application server.
As shown in (b) of fig. 3, when the user wants to use the first feature of the first installation-free application, the electronic device 100 may receive an operation of the user to download the first feature package from the application server. After the electronic device 100 downloads the first feature pack locally to the electronic device 100, the user may use the first feature of the first installation-free application. For example, the user may control the operation mode of the air conditioner in the home based on the user interface 420 shown in fig. 2C.
The first function package may include a first installation file, description information of the first function package, a check value of the first installation file, and the like. Wherein the first installation file may be used for the electronic device 100 to implement a first functional characteristic of the first installation-free application. The description information of the first feature pack may include, but is not limited to, one or more of the following: a package name of the first function package, a name of the first installation-free application, a version number of the first function package, and the like. The check value of the first installation file may be used to verify whether the first installation file in the first function package is updated.
For another example, when the user wants to use the second feature of the first installation-free application, the electronic device 100 may receive an operation of the user to download the second feature package from the application server. After the electronic device 100 downloads the second feature pack locally to the electronic device 100, the user may use the second feature of the first installation-free application based on the second feature pack. Wherein the second functional package implements a different function than the first functional package.
The version number of the first feature pack in the first installation-free application is identical to the version number of the second feature pack in the first installation-free application, so that the first feature pack and the second feature pack can be stored on the electronic device 100 at the same time.
In some embodiments, the installation-free application's feature package also needs to be updated after the installation-free application's feature is updated. The developer needs to put the updated installation-free application's feature pack on top of the application server.
Shown in the dark box shown in fig. 4 (a) is a first updated function package after the first function characteristic is updated, and the developer uploads the first updated function package of the first installation-free application to the application server. Accordingly, the developer also needs to update the version number of the first update package. For example, the version number of the first update function package is app version2.0. In order to ensure that the version numbers of different functional packages in the same installation-free application are consistent, whether the installation files of the second functional package and the third functional package are changed or not, the version numbers of the second functional package and the version numbers of the third functional package are required to be modified to be consistent with the version numbers of the first updated functional package. For example, the version numbers of the first update function package, the second update function package, and the update third function package are app version2.0.
As shown in (b) of fig. 4, after the update of the installation-free application's feature package, when the user uses the first feature of the first installation-free application on the electronic device 100, the electronic device 100 may continue to allow the user to continue using the first feature of the first installation-free application based on the first feature package. Accordingly, the electronic device 100 may download the first update package of the first installation-free application from the application server. After the first installation-free application is stopped, the electronic device 100 may delete the first function package and store the first update function package on the electronic device 100, so that the electronic device 100 may implement the first update function characteristic of the first installation-free application based on the first update function package. And a second feature pack of the first installation-free application is stored on the electronic device 100. Since the version of the second function package is app version1.0, the version number of the first update function package is inconsistent. Then the electronic device 100 may delete the second functional package stored on the electronic device 100 in accordance with the newer version number principle.
As shown in (c) of fig. 4, after the electronic device 100 deletes the second function package, the electronic device 100 may save the first update function package, and the version number of the first update function package is app version2.0.
When the user needs to use the second feature of the first installation-free application on the electronic device 100, the electronic device 100 may download the second update package from the application server and install the second update package since the electronic device 100 has deleted the second package. After installing the second update package, the electronic device 100 may implement the second update functionality characteristic of the first installation-free application based on the second update package.
As can be seen from fig. 3 and fig. 4, in the case that the installation file in the second update package is the same as the first installation file in the second package, that is, the installation file in the second update package is not updated, only the version number of the second update package is updated, the electronic device 100 also needs to delete the old version of the second package stored on the electronic device 100, and download the newer version of the second update package. When the network environment of the electronic device 100 is not good, the time for the electronic device 100 to download the second update package is longer, and the flow is wasted, so that the user experience is poor.
Based on the above, the embodiments of the present application provide a method for independently upgrading a function package of an installation-free application. The method may include:
The electronic device 100 downloads the first and second function packages of the first installation-free application from the application server.
The first function package may include a first installation file, description information of the first function package, a check value of the first installation file, and the like. Wherein the first installation file is used for the electronic device 100 to implement a first functional characteristic of the first installation-free application. The description information of the first feature pack may include, but is not limited to, one or more of the following: a package name of the first function package, a name of the first installation-free application, a version number of the first function package, and the like. The check value of the first installation file is used for verifying whether the first installation file in the first functional package is updated.
The second function package may include a second installation file of the second function package, description information of the second function package, a check value of the second installation file, and the like. Wherein the second installation file is used for the electronic device 100 to implement the second functional characteristic of the first installation-free application. The description information of the second feature pack may include, but is not limited to, one or more of the following: the package name of the second function package, the name of the first installation-free application, the version number of the second function package, etc. The check value of the second installation file is used to verify whether the second installation file in the second function package is updated.
The electronic device 100 obtains the description information of the first functional package and the check value of the first installation file, and the description information of the second functional package and the check value of the second installation file, and sends the description information of the first functional package and the check value of the first installation file to the server 200.
The server 200 may obtain the check value of the first updated installation file stored on the server 200 based on the description information of the first function package, or may obtain the check value of the second updated installation file stored on the server 200 based on the description information of the second function package.
In some examples, the retrieval operation for an electronic device may refer to a lookup, query, or index operation of the electronic device in its kernel space, user space, or memory. The acquisition operation of the application server may refer to operations such as searching, querying or indexing of the server in a memory space, a memory or a database thereof.
When the check value of the first update installation file is the same as the check value of the first installation file, it is explained that the first update installation file and the first installation file are the same, but only the version number of the first update function package is different from the version number of the first function package. The server 200 may send a message to the electronic device 100 indicating that the electronic device 100 does not need to delete the first feature package, and the electronic device 100 may still implement the first feature of the first installation-free application based on the first feature package.
In case the check value of the first update installation file is different from the check value of the first installation file, it is explained that the first update installation file and the first installation file are different, i.e. the installation file of the first update package has been updated, and the version number of the first update package is also different from the version number of the first package. The electronic device 100 may delete the first functional package in the electronic device 100.
Similarly, the principle of verifying whether the installation file in the second function package is updated is similar to the principle of verifying whether the installation file in the first function package is updated, and the present application is not repeated here.
When the electronic device 100 needs to obtain the first update package and/or the second update package, in one possible implementation, the server 200 may actively send the first update package and/or the second update package to the electronic device 100. In other possible implementations, when the user needs to use the first updated feature and/or the second updated feature of the first installation-free application on the electronic device 100, the electronic device 100 may download the first updated feature package and/or the second updated feature package from the server 200.
Alternatively, the check value of the installation file may be a hash value of the installation file. The method of verifying whether the installation file in the function packet is changed or not can be applied to the present application, such as a time stamp or a logic clock, and the embodiment of the present application is not limited thereto.
In this way, the electronic device 100 may determine whether to delete the locally stored function package based on the check value of the installation file. That is, different versions of the feature pack within the same installation-free application may exist on the electronic device 100 at the same time. When a certain function package in the same installation-free application is updated, when the installation files of other function packages in the installation-free application are unchanged, the other function packages do not need to be updated, so that the starting speed of the function packages can be improved, and the user experience is improved.
Fig. 5A is a schematic diagram of a system for independent upgrade of applications provided in the present application.
Referring to the description in the embodiment of fig. 3, the electronic device 100 has stored thereon a first feature pack and a second feature pack of a first installation-free application. The first function package can realize first function characteristics of the first installation-free application, and the second function package can realize second function characteristics of the first installation-free application.
Shown within the dark box shown in fig. 5A is a first updated package of functionality after the first feature is updated, and the developer needs to re-upload the first updated package to the application server. Accordingly, the developer also needs to change the version number of the first update package to app version2.0. The first function package after the version number and the installation file are updated may be referred to as a first update function package. Correspondingly, the version number of the second functional package is also required to be modified into app version2.0, and the version number of the third functional package is required to be modified into app version2.0. The second function package after the version number update may be referred to as a second update function package, and the third function package after the version number update may be referred to as an update third function package.
It should be noted that, the installation file in the first update package indicated by the dark box shown in (a) in fig. 5A is changed. The second update package and the installation file in the update third package indicated by the light-colored box shown in (a) in fig. 5A are unchanged, except that the version number of the second update package and the version number of the update third package are changed.
The verification value of the first updated installation file is different from the verification value of the first installation file, and the version number of the first updated functional package is also different from the version number of the first functional package.
The check value of the second update installation file is the same as the check value of the second installation file, but the version number of the second update function package is different from the version number of the second function package.
The check value of the third updated installation file is the same as the check value of the third installed file, but the version numbers of the third updated functional package and the third functional package are different.
As shown in (b) of fig. 5A, after the first feature pack of the first installation-free application is updated, when the user uses the first feature of the first installation-free application on the electronic device 100, the electronic device 100 may allow the user to continue using the first feature of the first installation-free application based on the first feature pack. Accordingly, the electronic device 100 may download the first update package of the first installation-free application from the application server. After the first installation-free application stops using, the electronic device 100 may delete the first function package and store the first update function package of the first installation-free application, so that the user may use the first update function characteristic of the first installation-free application based on the first update function package next time. And a second feature pack of the first installation-free application is stored on the electronic device 100. The electronic device 100 needs to determine whether the installation file in the second feature pack is updated. Specifically, the electronic device 100 may obtain the description information of the second function package and the check value of the second installation file. And transmitting the description information of the second functional package and the check value of the second installation file to the application server. The application server may obtain a check value of the second update installation file based on the description information of the second function package. And under the condition that the check value of the second installation file is the same as the check value of the second updating installation file, the second installation file and the second updating installation file are the same, namely, the functional characteristics of the installation-free application II are not updated, and the second functional package does not need to be deleted at the moment.
As shown in (c) of fig. 5A, the electronic device 100 may simultaneously store the first update function package and the second function package whose version numbers are inconsistent.
In other embodiments, as shown in (a) of fig. 5B, the installation files in the second update package are different from the installation files in the second package. As shown in (B) of fig. 5B, the electronic device 100 may download a first update package of the first installation-free application from the application server. After the first installation-free application is stopped, the electronic device 100 may delete the first function package and save the first update function package on the electronic device 100, so that the user may use the first update function characteristic of the first installation-free application based on the first update function package next time. And the electronic device 100 previously downloaded a second feature pack of the first installation-free application. The version of the second feature pack is app version1.0, which is inconsistent with the version of the first update feature pack. The electronic device 100 needs to determine whether the installation file of the second function package is updated. Specifically, the electronic device 100 may obtain the description information of the second function package and the check value of the second installation file. And transmitting the description information of the second functional package and the check value of the second installation file to the application server. The application server may obtain a check value of the second update installation file based on the description information of the second function package. In the case that the check value of the second installation file is different from the check value of the second update installation file, it is indicated that the second installation file and the second update installation file are different, and at this time, the electronic device 100 may delete the second function package and download the second update function package.
As shown in (c) of fig. 5B, after the electronic device 100 downloads the second update package from the application server, the electronic device 100 stores the first update package and the second update package. Wherein the versions of the first update package and the second update package are identical.
In other embodiments, the electronic device 100 may also periodically or at intervals or periodically verify whether the installation files in the first and second locally stored packages are updated. Specifically, the electronic device 100 may periodically or periodically obtain, at intervals, the description information of the first functional package and the check value of the first installation file, and the description information of the second functional package and the check value of the second installation file, and send the description information of the first functional package and the check value of the first installation file, and the description information of the second functional package and the check value of the second installation file to the application server. The application server may obtain a check value of the first updated installation file based on the description information of the first function package, and obtain a check value of the second updated installation file based on the description information of the second function package. The application server may compare the check value of the installation file with the check value of the update installation file to confirm whether the installation file in the first function package and the installation file in the second function package are updated. Specifically, in the case that the check value of the first installation file is the same as the check value of the first update installation file, and the check value of the second installation file is the same as the check value of the second update installation file, the electronic device 100 may continue to store the first function package and the second function package. When the check value of the first installation file is the same as the check value of the first update installation file, and the check value of the second installation file is different from the check value of the second update installation file, the electronic device 100 may obtain the second update function package, delete the second function package, and store the first function package and the second update function package. In the case that the check value of the first installation file is different from the check value of the first update installation file, and the check value of the second installation file is the same as the check value of the second update installation file, the electronic device 100 may acquire the first update function package, delete the first function package, and store the first update function package and the second function package. In the case that the check value of the first installation file is different from the check value of the first update installation file, and the check value of the second installation file is also different from the check value of the second update installation file, the electronic device 100 may obtain the first update function package and the second update function package, delete the first function package and the second function package, and store the first update function package and the second update function package.
Fig. 5C is a system architecture diagram according to an embodiment of the present application.
As shown in fig. 5C, the system includes devices including, but not limited to, electronic device 100 and server 200.
In some embodiments, server 200 may also be referred to as an application server.
By way of example, devices of electronic device 100 include, but are not limited to, cell phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computer, UMPC, netbooks, and cellular telephones, personal Digital Assistants (PDAs), augmented reality (augmented reality, AR) devices, virtual Reality (VR) devices, artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) devices, wearable devices, in-vehicle devices, smart home devices, and/or smart city devices, and embodiments of the application are described with respect to electronic device 100 as a cell phone, without limitation to the specific type of electronic device 100.
Wherein the electronic device 100 stores a first function package and a second function package of the first installation-free application. The first function package can realize first function characteristics of the first installation-free application, and the second function package can realize second function characteristics of the first installation-free application.
When updating a certain function package in the first installation-free application, the electronic device 100 also needs to determine whether other function packages in the first installation-free application are updated. Specifically, the electronic device 100 obtains the description information and the check value of the other function packages in the first installation-free application, and sends the description information and the check value of the other functions to the server 200.
The server 200 may acquire the check value of the installation file in the other function package stored in the server 200 based on the description information of the other function package.
When the check value of the installation file in the other function package stored in the server 200 is the same as the check value of the installation file in the other function package sent by the electronic device 100, it is indicated that the installation file in the other function package is not changed, only the version number of the other function package is changed, and then the other function package stored on the electronic device 100 does not need to be deleted.
In the case that the verification value of the installation file in the other function packages stored in the server 200 is different from the verification value of the installation file in the other function packages sent by the electronic device 100, it is indicated that the installation file in the other function packages is also changed, and accordingly, the version numbers of the other function packages are also changed, so that the electronic device 100 may delete the stored other function packages and re-download the function packages of the newer version from the server 200.
Fig. 6 shows a schematic structural diagram of the electronic device 100.
The embodiment will be specifically described below taking the electronic device 100 as an example. It should be understood that the electronic device 100 shown in fig. 6 is only one example, and that the electronic device 100 may have more or fewer components than shown in fig. 6, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SERIAL DATA LINE, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (CAMERA SERIAL INTERFACE, CSI), display serial interfaces (DISPLAY SERIAL INTERFACE, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. USB interface 130 may be used to connect a charger to charge electronic device 100. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques can include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith SATELLITE SYSTEM, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also perform algorithm optimization on noise and brightness of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card.
The following describes a software system architecture of an electronic device provided by an embodiment of the present application.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. Embodiments of the present invention illustrate the software architecture of electronic device 100 in a hierarchical architecture.
Referring to fig. 7, fig. 7 is a software architecture block diagram of the electronic device 100 according to an embodiment of the application. The layered architecture divides the software into layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the system of the electronic device may be divided into an application layer, an application architecture layer, a system library, and a kernel layer.
The application layer may be used to implement management and interface operations for applications, and may include a series of application packages, such as a service center. The user looks up or uses the installation-free application on the electronic device through the service center.
The application framework layer may include a feature pack download module, a feature pack management module, and an installation-free application installation module.
The function package downloading module is configured to delete a function package stored on the electronic device 100 when an installation file in the function package stored on the electronic device 100 is updated.
And the function package downloading module is also used for installing file update in the function package and downloading the function package of the newer version of the installation-free application from the application server.
And the function package management module is used for storing the function package of the installation-free application.
And the installation-free application installation module is used for realizing the functional characteristics of the installation-free application based on the function package of the installation-free application.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The method for independently upgrading the function package of the installation-free application provided by the embodiment of the application is used for determining whether the function package needs to be updated or not based on the check value of the installation file in the function package. And under the condition that the check value of the installation file in the function package stored on the electronic equipment is consistent with the check value of the installation file in the update function package stored in the server, the electronic equipment is not required to delete the function package.
Next, how to generate the check value of the installation file in the function package of the installation-free application is described.
TABLE 1
As shown in table 1, the developer needs to create AppScope (application global scope configuration) directories of the installation-free applications. The AppScope directory may include resources and app.json. The description information of the installation-free application may be added in the AppScope directory, for example, the description information of the installation-free application may be added in an app. Json file. The description information of the installation-free application may include, but is not limited to: the name of the application, the version number of the application, etc.
An installation-free application may include multiple feature packages, and a developer may create multiple feature package directories, such as an entry feature package directory and a feature package directory, within an installation-free application under the AppScope directory. And adds the description information of the function package in the function package catalog.
The entry function package directory may include scr/main, resources, ets and module. The developer may add the information of the entry package to the entry package catalog. For example, the information of the entry function package may be added in a module. Json file. The information of the entry function package includes, but is not limited to, the name of the entry function package, component information realizing the functional characteristics of the entry function package, and the like. In some embodiments, component information that implements the functionality of the entry package may also be referred to as an installation file for the entry package.
The feature package catalog may also include scr/main, resources, ets and module. The developer may also add feature package information to the feature package catalog. For example, the information of the feature package may be added in a module. Json file. The information of the feature function package includes, but is not limited to, the name of the feature function package, component information of the feature function package, and the like. In some embodiments, the component information of the feature package may also be referred to as an installation file of the feature package.
And compiling the catalogue in the development view to obtain a deployment state view of the installation-free application.
In the compiling process, the check value of the installation file in the entry function package and the check value of the installation file in the feature function package are calculated respectively, and the check value of the AppScope file is not required to be calculated. Thus, even if the version number of the installation-free application changes, only the check value of AppScope files is affected, and the check value of the installation files in the entry function package and the check value of the installation files in the feature function package are not affected.
A module. Json file in a development state may, after compilation, generate a hap file in a deployment state.
TABLE 2
As shown in Table 2, the entry file, after compiling, generates an entry. Hap file. After compiling, the feature file generates a feature.
After compilation, the module.json file in the entry.hap file may consist of the module.json file in the entry file in table 1 and the app.json file under AppScope directory. Correspondingly, the check value of the installation file in the entry function package is also required to be inserted into the module.
In the same way, the module.json file in the feature.hap file consists of the module.json file in the feature file in table 1 and the app.json file under AppScope directory. Correspondingly, the check value of the installation file in the feature function package is also required to be inserted into the module.
In some embodiments, the entry.hap file may be referred to as an entry function package. The feature.hap file may be referred to as a feature function package. Thus, the entry. Hap has a check value of the package installation file. The feature.hap function package also has a verification value of the function package installation file.
After the deployment state view of the installation-free application is obtained, packaging and merging the deployment state view of the installation-free application, and uploading the complete installation package of the installation-free application to an application server.
All hap packages are eventually compiled into one app pack. The app pack may be used for uploading into an application server.
The name of the installation-free application may be "xxx" and the installation-free application includes two feature packages of different features, such as entry. Hap and feature. Hap.
The entry.hap comprises an installation file of the functional package, information of the entry.hap, application description information of the installation-free application to which the entry.hap belongs, and a check value of the installation file of the entry.hap.
The feature.hap comprises an installation file of the functional package, information of the feature.hap, application description information of an installation-free application to which the feature.hap belongs, and a check value of the feature.hap installation file.
In some embodiments, the information of the entry. Hap and the application description information of the installation-free application to which the entry. Hap belongs may be referred to as description information of the entry. Hap. The information of the feature.hap, and the application description information of the installation-free application to which the feature.hap belongs may be referred to as description information of the feature.hap.
It should be noted that the present application is described by taking how the check value of the hap packet is obtained in the compiling process of the hap packet without installing application in OpenHarmony as an example, and the embodiment of the present application can be also applied to other operating systems, for exampleOperating System,/>The principle of obtaining the check value of the installation package in the operating system is similar to that of the present application, and the embodiment of the present application is not limited thereto.
Fig. 8 is a flowchart of updating a single function package on the electronic device 100 according to an embodiment of the present application.
S801, a first function package of a first installation-free application is stored in an application server, and a check value of a first installation file is a check value I.
The application server stores a first function package of the first installation-free application, and the first function package can realize first function characteristics of the first installation-free application. For example, the first function package may include a first installation file, description information of the first function package, and a check value of one of the first installation file. Wherein, the description information of the first functional package may include, but is not limited to, one or more of the following: a package name of the first function package, a name of the first installation-free application, a version number (first version number) of the first function package, and the like. And the check value one of the first installation file is used for verifying whether the first installation file is updated.
It should be noted that the embodiment of fig. 8 is described by taking a function package update in the first installation-free application as an example. For a description of the updating of multiple function packages in a first installation-free application, reference may be made to the fig. 9 embodiment.
S802, the application server sends the first function package to the electronic device 100.
S803, the electronic device 100 implements the first functional characteristic of the first installation-free application based on the first functional package.
The electronic device 100 may download a first feature pack of a first installation-free application from the application server. The electronic device 100 may implement the first functional characteristic of the first installation-free application based on the first feature package.
S804, the application server receives a first update function packet of the first installation-free application uploaded by the developer, and the check value of the first update installation file is a check value two.
In some embodiments, in the case of updating the first function characteristic of the first installation-free application, the first update installation file in the first update function package is different from the first installation file in the first function package, and the version number of the first update function package is also changed correspondingly. The first update package may include a first update installation file of the first update package, description information of the first update package, and a check value of two of the first update installation file. Wherein, the description information of the first update function package may include, but is not limited to, one or more of the following: a package name of the first update function package, a name of the first installation-free application, a version number (second version number) of the first update function package, and the like. The second check value of the first updated installation file is different from the first check value of the first installation file, that is, the first updated installation file in the first updated functional package is different from the first installation file in the first functional package, so that it can be judged that the installation file of the first updated functional package is updated.
In other embodiments, only the version number of the first function package may be updated to obtain the first updated function package of the first installation-free application. The first update function package may include a first installation file of the first update function package, description information of the first update function package, and a check value of two of the first installation file in the first update function package. Wherein, the description information of the first update function package may include, but is not limited to, one or more of the following: a package name of the first update function package, a name of the first installation-free application, a version number (second version number) of the first update function package, and the like. The second check value of the first installation file in the first updating function packet is the same as the first check value of the first installation file in the first function packet, that is, the installation file in the first updating function packet is the same as the installation file in the first function packet, so that it can be judged that the installation file in the first updating function packet is not updated.
Note that S804 may be performed after S802.
S805, the application server deletes the first function package and stores the first updated function package.
Under the condition that the function package is updated in the first installation-free application, the application server can store the function package with the newer version and delete the function package with the old version, namely the application server deletes the first function package and stores the first updated function package.
S806, the electronic device 100 receives the first operation, and runs the first function package.
As is known from the description in S803, after the electronic device 100 saves the first function package, the user can use the first function characteristics of the first installation-free application based on the first function package. For example, the first installation-free application may be an air conditioner control application, and the user may control an operation mode of an air conditioner in a home based on the user interface 420 shown in fig. 2C.
S807, the electronic device 100 sends the description information and the check value of the first functional package to the application server.
When the electronic device 100 runs the first functional package, the description information and the check value of the first functional package may be obtained, and the description information and the check value of the first functional package may be sent to the application server. The application server may confirm whether the installation file of the first function package is updated based on the description information and the check value of the first function package. In the case of installing a file update in the first function package, the electronic device 100 may acquire a newer version of the first function package. In the case where the first function package installation file is not updated, the electronic device 100 may continue to save the first function package.
Optionally, the method provided in the embodiment of the present application may not execute S806, and the electronic device 100 may send the description information of the first function package and the check value of the installation file in the first function package to the application server periodically or at a certain interval or at an indefinite time. The application server may verify whether the installation file in the first function package is updated based on the description information of the first function package and the check value of the installation file in the first function package. In the case of an update, the electronic device 100 may acquire a function package containing an update installation file, i.e., a first update function package. In this way, the electronic device 100 may implement the first updated functionality of the first installation-free application based on the first updated functionality package while the user is using the first functionality of the first installation-free application.
Alternatively, the method provided in the embodiment of the present application may not execute S806, and after the first function package on the application server is updated, the application server may periodically, or at a certain interval, or at an irregular time, send the description information of the first update function package and the check value two of the first update installation file to the electronic device 100. It is confirmed by the electronic device 100 whether the first update package is acquired.
S808, the application server acquires a check value II of the first updated installation file based on the description information of the first functional package.
As is known from the description in S804, the application server stores the first function package with the newer version, i.e., the first updated function package, so the application server needs to determine whether the installation file in the first updated function package is the same as the installation file in the first function package stored on the electronic device 100.
The application server can acquire a check value II of the first updated installation file based on the description information of the first functional package, and determine whether the installation file changes by comparing the check values of the installation files.
S809, the application server needs to determine whether the check value I and the check value II are the same.
In some embodiments, the check value may be derived based on an installation file in the feature pack.
When the check value one and the check value two are the same, the installation file in the first function package and the installation file in the first update function package are the same. In this case, the electronic device 100 does not need to reacquire the first update package, and the flow ends. In this way, even if the version number of the first update package changes, the installation file in the first update package does not change, and the electronic device 100 can continue to save the first package.
In the case where the check value one and the check value two are different, which indicates that the installation file in the first function package and the installation file in the first update function package are different, the electronic device 100 may execute S810-S811.
S810, the application server sends a message one to the electronic device 100.
S811, the electronic device 100 deletes the first function package and stores the first updated function package.
In some embodiments, message one may include an indication message to obtain the first update package.
In one possible implementation, the electronic device 100 may prompt the user whether to obtain the first update package after obtaining the first message. The electronic device 100 may obtain the first update package from the application server with the user's consent. When the electronic device 100 is running the first function package, the electronic device 100 may wait for the first function package to stop running, delete the first function package, and save the first updated function package. In the case that the user does not agree, the electronic device 100 does not acquire the first update package or saves the first package.
In other possible implementations, after the first message is acquired, the electronic device 100 may acquire the first update package from the application server, and then prompt the user whether to save the first update package. Under the condition that the user agrees, when the electronic device 100 is running the first function package, the electronic device 100 may wait for the first function package to stop running, delete the first function package, and store the first updated function package. In the event that the user disagrees, the electronic device 100 may delete the first update package or save the first package.
In other embodiments, message one may include a first update package.
After the electronic device 100 acquires the first update package sent by the application server, the electronic device 100 may prompt the user whether to save the first update package. In the case where the user agrees, when the electronic device 100 is running the first feature pack, the electronic device 100 may wait for the first feature pack to stop running, and then delete the first feature pack and save the first updated feature pack by the electronic device 100. In the event that the user disagrees, the electronic device 100 may delete the first update package or save the first package.
In the embodiment of fig. 8, when the application server confirms that the installation file in the first update function package is the same as the installation file in the first function package, that is, that the installation file in the first update function package is not updated, the electronic device 100 does not need to acquire the first update function package, so that the traffic of the electronic device 100 can be saved.
In other embodiments, the electronic device 100 may also store other functionality packages of the first installation-free application, such as a second functionality package for implementing a second functionality feature of the first installation-free application. The electronic device 100 confirms whether the installation file in the first update package is updated, and the electronic device 100 also needs to confirm whether the installation file in the second update package is updated.
Fig. 9 is a flowchart of an electronic device 100 for updating a plurality of function packages according to an embodiment of the present application.
S901, an application server stores a first function package and a second function package of a first installation-free application, wherein the check value of an installation file in the first function package is a check value I, and the check value of an installation file in the second function package is a check value III.
The first installation-free application function package stored in the application server may include a first function package and a second function package. The first functional package is used for realizing the first functional characteristic of the first installation-free application, and the second functional package is used for realizing the second functional characteristic of the first installation-free application.
The first function package may include a first installation file, description information of the first function package, and a check value of the first installation file.
The second function package may include a second installation file, description information of the second function package, and a check value of the second installation file.
S902, the application server sends the first function packet and the second function packet to the electronic device 100.
S903, the electronic device 100 stores the first and second function packages.
The electronic device 100 may download the first and second feature packages of the first installation-free application from the application server. The electronic device 100 may implement a first feature of the first installation-free application based on the first feature package, or may implement a second feature of the first installation-free application based on the second feature package.
S904, the application server receives the first update function package and the second update function package uploaded by the developer, wherein the check value of the installation file in the first update installation file is a check value II, and the check value of the installation file in the second update function package is a check value IV.
The application server receives the first update function package and the second update function package uploaded by the developer.
The first update package may include a first update installation file, description information of the first update package, and a check value of the first update installation file. Wherein, the description information of the first update function package may include, but is not limited to, one or more of the following: a package name of the first update function package, a name of the first installation-free application, a version number (second version number) of the first update function package, and the like.
In some embodiments, the check value two is different from the check value one, which indicates that the first update installation file is different from the first installation file, so that it can be determined that the installation file in the first update function package is updated, and the version number of the first update function package is also different from the version number of the first function package.
In other embodiments, the check value two is the same as the check value one, which means that the first update installation file is the same as the first installation file, but the version number of the first update function package is different from the version number of the first function package.
Similarly, the second update package may include a second update installation file, description information of the second update package, and a check value of the second update installation file. Wherein, the description information of the second update package may include, but is not limited to, one or more of the following: a package name of the second update function package, a name of the first installation-free application, a version number (second version number) of the second update function package, and the like.
In some embodiments, the check value four is different from the check value three, which indicates that the second update installation file is different from the second installation file, so that it can be determined that the installation file in the second update function package is updated, and the version number of the second update function package is also different from the version number of the second function package.
In other embodiments, the check value four is the same as the check value three, which indicates that the second update installation file is the same as the second installation file, but the version number of the second update package is different from the version number of the second package.
Note that S904 may be performed after S902.
S905, deleting the first functional package and the second functional package by the application server, and storing the first updating functional package and the second updating functional package.
Under the condition that the function package of the first installation-free application is updated, the application server can store the function package of the newer version and delete the function package of the old version, namely the application server deletes the first function package and the second function package and stores the first update function package and the second update function package.
S906, the electronic device 100 receives the first operation and runs the second function package.
As is known from the description in S903, the electronic device 100 stores the first and second function packages, and the user can use the first function feature of the first installation-free application based on the first function package and can use the second function feature of the first installation-free application based on the second function package. For example, the electronic device 100 may receive the first operation, run the second function package, and the electronic device 100 may display the user interface 420 shown in fig. 2C, and the user may control the operation mode of the air conditioner in the home based on the user interface 420 shown in fig. 2C.
S907, the electronic device 100 sends the description information and the check value of the first functional packet, and the description information and the check value of the second functional packet to the application server.
When the electronic device 100 runs the first functional package, the electronic device 100 may obtain the description information and the check value of the first functional package, and the description information and the check value of the second functional package. And transmitting the description information and the check value I of the first functional packet and the description information and the check value III of the second functional packet to the application server. To confirm whether the installation file in the first function package and the installation file in the second function package are updated.
In the case of installing a file update in the first function package, the electronic device 100 may acquire a newer version of the first function package. In the event that the first feature pack installation file is not updated, the electronic device 100 may continue to save the first feature pack.
In the case of installing a file update in the second function package, the electronic device 100 may acquire a newer version of the second function package. In the event that the second feature pack installation file is not updated, the electronic device 100 may continue to save the second feature pack.
Optionally, the method provided in the embodiment of the present application may not execute S906, and the electronic device 100 may periodically or at intervals send the description information and the check value one of the first functional packet and the description information and the check value three of the second functional packet to the application server. To confirm whether the installation file in the first function package and the installation file in the second function package are updated. In the case of an update, the electronic device 100 may obtain a feature package containing an update installation file, such as a first update feature package and/or a second update feature package. In this way, when the user uses the first feature of the first installation-free application or the second feature of the first installation-free application, the electronic device 100 may implement the first updated feature of the first installation-free application based on the first updated feature package, or the electronic device 100 may implement the second updated feature of the first installation-free application based on the second updated feature package.
Optionally, the method provided in the embodiment of the present application may not execute S906, and after the first function package and/or the second function package on the application server are updated, the application server may periodically or at a certain interval or at an indefinite time send the description information of the first update function package and the check value of the first update installation file to the electronic device 100, and/or send the description information of the second update function package and the check value of the second update installation file to the electronic device 100. It is confirmed by the electronic device 100 whether the first update package and/or the second update package is acquired.
S908, the application server acquires a check value II of the first updated installation file based on the description information of the first functional package, and acquires a check value IV of the second updated functional package based on the description information of the second functional package.
As can be seen from the description in S904, the application server stores the first function package with the newer version and the second function package with the newer version, that is, the first update function package and the second update function package, so the application server needs to determine whether the installation file in the first update function package is the same as the installation file in the first function package stored on the electronic device 100, and correspondingly, the server needs to determine whether the installation file in the second update function package is the same as the installation file in the second function package stored on the electronic device 100.
The application server may obtain a check value of two for the first update installation file based on the description information of the first function package. The application server may also obtain a check value four of the second update installation file based on the description information of the second function package. And determining whether the installation file is changed or not by comparing the check values of the installation files.
S909, the application server needs to confirm whether the check value I and the check value II are the same, and whether the check value III and the check value IV are the same.
In some embodiments, the check value may be derived based on the installation file in the feature pack.
If the check value one and the check value two are the same, it is indicated that the installation file in the first function package and the installation file in the first update function package are the same, and at this time, the electronic device 100 does not need to reacquire the first update function package, and the flow ends. In this way, even if the version number of the first update package changes, the installation file in the first update package is unchanged, and the electronic device 100 can continue to save the first package.
In the case that the check value one and the check value two are different, it indicates that the installation file in the first function package and the installation file in the first update function package are different, that is, the installation file in the first update function package is updated, and the electronic device 100 may obtain the first update function package.
Similarly, when the check value three and the check value four are the same, it is indicated that the installation file in the second function package is the same as the installation file in the second update function package, and at this time, the electronic device 100 does not need to reacquire the second update function package, and the flow ends. Thus, even if the version number of the second update package changes, the installation file in the second update package is unchanged, and the electronic device 100 can continue to save the second package.
In the case that the check value three and the check value four are different, it indicates that the installation file in the second function package and the installation file in the second update function package are different, that is, the installation file in the second update function package is updated, and the electronic device 100 may obtain the second update function package.
In summary, in S909, the application server can confirm the following four cases:
Case one: the application server confirms that the check value one is identical to the check value two, and the check value three is identical to the check value four. At this time, it may be determined that the electronic device 100 does not need to acquire the first update function package and the second update function package, and the flow ends.
And a second case: the application server confirms that the check value I and the check value II are the same, and the check value III and the check value IV are different. It may be determined that the installation files in the second bundle are different from the installation files in the second update bundle, i.e., the installation files in the second update bundle have been updated. At this time, the electronic device 100 may acquire the second updated function packet, delete the second function packet stored on the electronic device 100, and store the second updated function packet. Thus, the version number of the first function package and the version number of the second update function package stored on the electronic device 100 are different, and function packages with different version numbers exist in the same application.
And a third case: the application server confirms that the check value I and the check value II are different, and the check value III and the check value IV are the same. It may be determined that the installation file in the first package is different from the installation file in the first update package, i.e., the installation file in the first update package has been updated. At this time, the electronic device 100 may acquire the first update package, delete the first package stored in the electronic device 100, and store the first update package. Thus, the version number of the first update package and the version number of the second package stored on the electronic device 100 are different, and the packages with different version numbers in the same application are stored in each other.
Case four: the application server confirms that the check value I and the check value II are different, and the check value III and the check value IV are also different. It may be determined that the installation files in the first and second packages are different, i.e., the installation files in the first and second packages are updated, and that the installation files in the second package are also different, i.e., the installation files in the second package are also updated. At this time, the electronic device 100 may acquire the first update function package and the second update function package, delete the first function package and the second function package stored on the electronic device 100, and store the first update function package and the second update function package.
S910, the application server sends a message two to the electronic device 100.
S911, the electronic device 100 saves the first update function package and/or the second update function package.
In the case that the check value one and the check value two are different and/or the check value three and the check value four are different, the application server may send a message two to the electronic device 100. So that the electronic device 100 can save the first update package and/or the second update package.
Based on the description in S909, there are three cases in S911.
In the first case, the electronic device 100 deletes the first function packet, acquires the first updated function packet, and stores the first updated function packet and the second function packet.
In the second case, the electronic device 100 deletes the second function packet, obtains the second update function packet, and stores the first function packet and the second update function packet.
In the third case, the electronic device 100 deletes the first and second function packages, obtains the first and second update function packages, and stores the first and second update function packages.
For how the electronic device 100 obtains the first update package and/or the second update package, reference may be made to the description in S811, and the embodiments of the present application are not described herein again.
Fig. 10 is a flow chart of an upgrade method of an installation-free application according to an embodiment of the present application.
S1001, the electronic equipment acquires a first function package and a second function package of a first installation-free application, wherein the first function package comprises first description information and a first check value, and the second function package comprises second description information and a second check value.
In some embodiments, the first check value may also be referred to as check value one. The second check value may also be referred to as check value three.
In one possible implementation manner, the first functional package further includes a first installation file, and the first check value is a check value of the first installation file; the second function package further comprises a second installation file, and the second check value is a check value of the second installation file.
In some embodiments, the first description information and the first check value may be the same information or different information. The second description information and the second check value may be the same information or different information.
Wherein the first description information may include one or more of: a package name of the first function package, an application name of the first installation-free application, and the like. The first functional package may further include other description information, such as a version number of the first functional package, in addition to the first description information.
The second description information may include one or more of the following: a package name of the second function package, an application name of the first installation-free application, and the like. The second function package may further include other description information, such as a version number of the second function package, in addition to the first description information.
S1002, the electronic device sends first description information and a first check value, and second description information and a second check value to the application server, wherein the first description information is used for the application server to obtain a third check value, and the second description information is used for the application server to obtain a fourth check value.
In some embodiments, the third check value may also be referred to as check value two. The fourth check value may also be referred to as check value four.
The third check value may refer to a check value of an installation file in a first update package in a first installation-free application stored on the application server.
The fourth check value may refer to a check value of an installation file in a second update package in the first installation-free application stored on the application server.
The electronic device may periodically/at intervals/sporadically verify in the application server whether the functionality packages in the first installation-free application need to be updated based on the method.
In one possible implementation, before the electronic device sends the first description information and the first check value, and the second description information and the second check value to the application server, the method further includes: the electronic device receives a first operation; in response to the first operation, the electronic device runs a second feature pack.
In this way, it is verified whether the function package in the first installation-free application needs to be updated except that the electronic device periodically/at intervals/sporadically to the application server. The electronic device may also actively verify, in the application server, whether the function package in the first installation-free application needs to be updated when the user uses the first installation-free application, and obtain the updated function package. The user may use the updated feature pack the next time the first installation-free application is used.
S1003, when the third check value is the same as the first check value and the fourth check value is different from the second check value, the electronic device receives a second update function packet sent by the application server.
The first update package may include a first update installation file, first description information, and a third check value. The first update package may further include other description information, such as a version number of the first update package, in addition to the first description information. The version number of the first update package is different from the version number of the first package.
The second update package may include a second update installation file, second description information, and a fourth check value. The second update package may include other description information, such as a version number of the second update package, in addition to the first description information. The version number of the second update package is different from the version number of the second package.
In one possible implementation, before the electronic device receives the second update function package sent by the application server, the method further includes: the electronic equipment receives a first message sent by an application server; the electronic device receives a second update function packet sent by the application server, and specifically includes: responding to the first message, the electronic equipment sends second description information to the application server, wherein the second description information is used for the application server to acquire a second update function package; the electronic device receives a second update function package sent by the application server.
In this way, the electronic device can download the second update package from the server when the second update package is needed.
Wherein the first message may be message two shown in the embodiment of fig. 9.
S1004, the electronic equipment deletes the second function package, and stores or installs the second update function package.
In one possible implementation, the version number of the first functional package and the version number of the second functional package are the same or different; the version number of the first functional package is different from the version number of the second update functional package.
In some embodiments, the version number of the first feature pack is different from the version number of the second update feature pack, and when the electronic device runs the first feature pack, the electronic device may modify the version number of the first feature pack to a version number of a newer version, i.e., to be consistent with the version number of the second update feature pack. Thus, the first feature pack presents the version number to the electronic device as the version number of the newer version at runtime.
Thus, different versions of the feature pack in the same installation-free application on the electronic device can be stored with each other.
In one possible implementation, the method further includes: when the third check value is the same as the first check value and the fourth check value is the same as the second check value, the electronic equipment receives a second message sent by the application server; in response to the second message, the electronic device continues to save the first and second feature packs.
In this way, the electronic device can continue to save the first and second feature packs without updating the installation file in the first feature pack and the installation file in the second feature pack.
In one possible implementation, the method further includes: when the third check value is different from the first check value and the fourth check value is the same as the second check value, the electronic equipment receives a first update function packet sent by the application server; the electronic device deletes the first function package, and stores or installs the first update function package.
Thus, in the case that the installation file in the first function package is updated, the electronic device may delete the first function package, obtain and store the first updated function package. Under the condition that the installation file in the second function package is not updated, the electronic equipment can continuously store the second function package without downloading the second updated function package.
In one possible implementation, the method further includes: when the third check value is different from the first check value and the fourth check value is different from the second check value, the electronic equipment receives a first updating function packet and a second updating function packet which are sent by the application server; the electronic device deletes the first function package and the second function package, and stores or installs the first update function package and the second update function package.
In this way, the electronic device may delete the first and second function packages to obtain and store the first and second update function packages when the installation files in the first and second function packages are updated.
In one possible implementation manner, the electronic device deletes the second function package specifically includes: after the electronic device stops running the second function package, the electronic device deletes the second function package.
Thus, when the electronic device needs to update the second function package of the first installation-free application, the electronic device can delete the second function package after the second function package stops running. In this way, the user is not affected to use the second feature pack.
In one possible implementation, the method further includes: the electronic equipment acquires a third functional package of the first installation-free application, wherein the third functional package comprises third description information and a fifth check value; the electronic equipment receives the third description information and the sixth check value sent by the application server; the electronic equipment receives a third updating function packet sent by the application server under the condition that the fifth check value is different from the sixth check value; the electronic device deletes the third functional package, saves or installs the third updated functional package.
In some examples, in the event that the fifth check value is different from the sixth check value, the electronic device may send an update request to the application server for the third update function package to facilitate the application server to send the third update function package.
The third function package may include a third installation file, third description information, and a fifth check value. The third functional package may further include other description information, such as a version number of the third functional package, etc., in addition to the third description information.
The third update package may include a third update installation file, third description information, and a sixth check value. The third update package may further include other description information, such as a version number of the third update package, in addition to the third description information. The version number of the third update package is different from the version number of the third package.
In this way, the server can also actively verify to the electronic device whether the first installation-free application's feature pack needs to be updated.
According to the method, the electronic equipment can determine whether to delete the function package stored on the electronic equipment based on the check value of the installation file. That is, different versions of the feature pack within the same installation-free application may exist on the electronic device 100 at the same time. When a certain function package in the same installation-free application is updated, when the installation files of other function packages in the installation-free application are unchanged, the other function packages do not need to be updated, so that the starting speed of the function packages can be improved, and the user experience is improved.
Fig. 11 is a flow chart of another method for upgrading an installation-free application according to an embodiment of the present application.
S1101, an application server receives a first check value and a second check value sent by electronic equipment; the first check value is used for checking a first functional package of the first installation-free application, and the second check value is used for checking a second functional package of the first installation-free application.
In some embodiments, the first check value may also be referred to as check value one. The second check value may also be referred to as check value three.
The first check value may include description information of the first functional package and a check value of an installation file in the first functional package. The description information of the first feature pack may include one or more of the following: the package name of the first function package, the name of the first installation-free application, and the version number of the first function package.
The second check value may include description information of the second function package and a check value of the installation file in the first function package. The description information of the second feature pack may include one or more of the following: the package name of the second function package, the name of the first installation-free application, and the version number of the second function package.
The electronic device sends the first check value to the application server, which means that the electronic device sends the package name of the first functional package and the check value of the installation file in the first functional package to the application server.
The electronic device sending the second check value to the application server may refer to the electronic device sending the package name of the second function package and the check value of the installation file in the second function package to the application server.
S1102, the application server acquires a third check value according to the first check value, and acquires a fourth check value according to the second check value.
In some embodiments, the third check value may also be referred to as check value two. The fourth check value may also be referred to as check value four.
The third check value may include description information of the first update function package and a check value of an installation file in the first update function package. The description information of the first update package may include one or more of the following: the package name of the first update function package, the name of the first installation-free application, and the version number of the first update function package. The version number of the first update package is different from the version number of the first package.
The fourth check value may include description information of the second update function package and a check value of the installation file in the first update function package. The description information of the second update package may include one or more of the following: the package name of the second update function package, the name of the first installation-free application, and the version number of the second update function package. The version number of the second update package is different from the version number of the second package.
The application server obtaining the third check value according to the first check value may refer to that the application server obtains the check value of the installation file in the first update function packet according to the packet name of the first function packet.
The application server obtaining the fourth check value according to the second check value may refer to that the application server obtains the check value of the installation file in the second update function packet according to the packet name of the second function packet.
S1103, when the third check value is the same as the first check value and the fourth check value is different from the second check value, the application server sends a second update function packet to the electronic device.
The third check value is the same as the first check value, which may mean that the check value of the installation file in the first update function package is the same as the check value of the installation file in the first function package.
The fourth check value and the second check value being different may mean that the check value of the installation file in the second update function package and the check value of the installation file in the second function package are different.
In one possible implementation, the version number of the first functional package and the version number of the second functional package are the same or different; the version number of the first functional package is different from the version number of the second update functional package.
In one possible implementation, the method further includes: the application server sends a sixth check value of the third updating function packet to the electronic equipment, wherein the sixth check value is used for checking the third function packet of the installation-free application by the electronic equipment; and in the case that the fifth check value of the third functional package is different from the sixth check value of the third updating functional package, the server sends the third updating functional package to the electronic device.
In some examples, in the event that the fifth check value is different from the sixth check value, the server may receive an update request sent by the electronic device for the third update function package to send the third update function package to the electronic device.
The fifth check value may include description information of the third functional package and a check value of an installation file in the third functional package. The description information of the third feature pack may include one or more of the following: the package name of the third functional package, the name of the first installation-free application, and the version number of the third functional package.
The sixth check value may include description information of the third update function package and a check value of an installation file in the third update function package. The description information of the third update package may include one or more of the following: the package name of the third update function package, the name of the first installation-free application, and the version number of the third update function package. The version number of the third update package is different from the version number of the third package.
The application server sending the sixth check value to the electronic device may refer to the application server sending the package name of the third update function package and the check value of the installation file in the third update function package to the electronic device.
The sixth check value is used for the electronic device to obtain the fifth check value, and may refer to that the electronic device obtains the check value of the installation file in the third functional package based on the package name of the third update functional package.
The fifth check value is different from the sixth check value, which may mean that the check value of the installation file in the third update function package is different from the check value of the installation file in the third function package.
The application provides an electronic device, which is characterized by comprising a processor and a memory; the memory is coupled to the processor and is configured to store computer program code comprising computer instructions that the processor invokes to execute the electronic device to perform an installation-free application upgrade method as described above with respect to fig. 10 or 11.
The present application provides a computer readable storage medium storing computer instructions that, when executed on an electronic device, cause the electronic device to perform an installation-free application upgrade method as described above with reference to fig. 10 or 11.
The present application provides a computer program product, which is characterized in that, when the computer program product is run on an electronic device, the electronic device is caused to execute an upgrade method of an installation-free application as shown in the above-mentioned fig. 10 or 11.
The embodiments of the present application may be arbitrarily combined to achieve different technical effects.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Drive (SSD)), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
The foregoing is merely an embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A method for upgrading an installation-free application, the method comprising:
the method comprises the steps that electronic equipment obtains a first function package and a second function package of a first installation-free application, wherein the first function package comprises first description information and a first check value, and the second function package comprises second description information and a second check value;
The electronic equipment sends the first description information and the first check value, and the second description information and the second check value to an application server, wherein the first description information is used for the application server to acquire a third check value, and the second description information is used for the application server to acquire a fourth check value;
When the third check value is the same as the first check value and the fourth check value is different from the second check value, the electronic device receives a second update function packet sent by the application server;
and deleting the second function package by the electronic equipment, and storing or installing the second updated function package.
2. The method of claim 1, wherein the version number of the first functional package and the version number of the second functional package are the same or different;
the version number of the first functional package is different from the version number of the second updated functional package.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
When the third check value is different from the first check value and the fourth check value is the same as the second check value, the electronic equipment receives a first update function packet sent by the application server;
And deleting the first function package by the electronic equipment, and storing or installing the first updated function package.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
when the third check value is different from the first check value, and the fourth check value is different from the second check value, the electronic device receives a first update function packet and a second update function packet sent by the application server;
the electronic equipment deletes the first functional package and the second functional package, and stores or installs the first updated functional package and the second updated functional package.
5. The method of any of claims 1-4, wherein the first feature pack further comprises a first installation file, the first check value being a check value of the first installation file;
the second function package further comprises a second installation file, and the second check value is a check value of the second installation file.
6. The method of any of claims 1-5, wherein before the electronic device receives the second update function package sent by the application server, the method further comprises:
The electronic equipment receives a first message sent by the application server;
the electronic device receives a second update function packet sent by the application server, and specifically includes:
The electronic equipment sends the second description information to the application server in response to the first message, wherein the second description information is used for the application server to acquire the second update function package;
and the electronic equipment receives a second update function packet sent by the application server.
7. The method of any of claims 1-6, wherein before the electronic device sends the first description information and the first check value, and the second description information and the second check value to an application server, the method further comprises:
the electronic device receives a first operation;
And responding to the first operation, and operating the second function package by the electronic equipment.
8. The method according to claim 7, wherein the electronic device deletes the second feature pack, specifically comprising:
And deleting the second function package by the electronic equipment after the electronic equipment stops running the second function package.
9. The method according to any one of claims 1-8, further comprising:
the electronic equipment acquires a third functional package of the first installation-free application, wherein the third functional package comprises third description information and a fifth check value;
The electronic equipment receives the third description information and a sixth check value sent by the application server;
receiving a third update function packet sent by the application server by the electronic equipment under the condition that the fifth check value is different from the sixth check value;
and deleting the third functional package by the electronic equipment, and storing or installing the third updated functional package.
10. An upgrade method of an installation-free application, applied to an application server, the method comprising:
The application server receives a first check value and a second check value sent by the electronic equipment; the first check value is used for checking a first functional package of the first installation-free application, and the second check value is used for checking a second functional package of the first installation-free application;
The application server obtains a third check value according to the first check value and obtains a fourth check value according to the second check value;
And under the condition that the third check value is the same as the first check value and the fourth check value is different from the second check value, the application server sends a second update function packet to the electronic equipment.
11. The method of claim 10, wherein the version number of the first functional package and the version number of the second functional package are the same or different;
the version number of the first functional package is different from the version number of the second updated functional package.
12. The method according to claim 10 or 11, characterized in that the method further comprises:
The application server sends a sixth check value of a third update function package to the electronic equipment, wherein the sixth check value is used for the electronic equipment to check the third function package of the installation-free application;
And the server sends the third updating function packet to the electronic equipment under the condition that the fifth check value of the third updating function packet is different from the sixth check value of the third updating function packet.
13. An electronic device comprising a processor and a memory; the memory being coupled to the processor, the memory being for storing computer program code, the computer program code comprising computer instructions, the processor invoking the computer instructions to the electronic device to perform the method of any of the preceding claims 1-9.
14. A computer readable storage medium storing computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of the preceding claims 1-9.
15. A computer program product, characterized in that the computer program product, when run on an electronic device, causes the electronic device to perform the method of any of the preceding claims 1-9.
CN202211656834.9A 2022-12-22 2022-12-22 Upgrade method of installation-free application and electronic equipment Pending CN118245097A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211656834.9A CN118245097A (en) 2022-12-22 2022-12-22 Upgrade method of installation-free application and electronic equipment
PCT/CN2023/140157 WO2024131823A1 (en) 2022-12-22 2023-12-20 Installation-free application upgrading method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211656834.9A CN118245097A (en) 2022-12-22 2022-12-22 Upgrade method of installation-free application and electronic equipment

Publications (1)

Publication Number Publication Date
CN118245097A true CN118245097A (en) 2024-06-25

Family

ID=91556003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211656834.9A Pending CN118245097A (en) 2022-12-22 2022-12-22 Upgrade method of installation-free application and electronic equipment

Country Status (2)

Country Link
CN (1) CN118245097A (en)
WO (1) WO2024131823A1 (en)

Also Published As

Publication number Publication date
WO2024131823A1 (en) 2024-06-27

Similar Documents

Publication Publication Date Title
CN113254409B (en) File sharing method, system and related equipment
CN112947947B (en) Download method, distribution method, terminal equipment, server and system of installation package
CN113704205B (en) Log storage method, chip, electronic device and readable storage medium
CN113568634B (en) Processing method and processing device for application optimization
CN112817634B (en) COTA package downloading method and device
WO2021073337A1 (en) Method and apparatus for installing plug-in, and storage medium
CN115438354A (en) User privacy protection method and device
CN113703894A (en) Display method and display device of notification message
CN116483734B (en) Pile inserting method and system based on compiler and related electronic equipment
CN113608753A (en) Application uninstalling method, application recovery method, electronic device and storage medium
CN115185652B (en) Application optimization method and device and electronic equipment
WO2021238376A1 (en) Function pack loading method and apparatus, and server and electronic device
CN117348894A (en) Software upgrading method, terminal equipment and system
CN113467821A (en) Application program repairing method, device, equipment and readable storage medium
WO2024131823A1 (en) Installation-free application upgrading method and electronic device
CN117009023B (en) Method for displaying notification information and related device
CN116048594B (en) Software upgrading method and related device
CN114168115B (en) Communication system, application downloading method and device
CN116795476B (en) Wallpaper deleting method and electronic equipment
US12032938B2 (en) Plug-in installation method, apparatus, and storage medium
WO2024104137A1 (en) Data recovery method capable of supporting data fusion and apparatus
CN118233446A (en) Application downloading method and electronic equipment
CN117707562A (en) Parameter updating method and terminal equipment
CN116560535A (en) Application component management method and related equipment
CN117675881A (en) Application data storage method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination