CN108491225B - Update package generation method and mobile terminal - Google Patents

Update package generation method and mobile terminal Download PDF

Info

Publication number
CN108491225B
CN108491225B CN201810213089.8A CN201810213089A CN108491225B CN 108491225 B CN108491225 B CN 108491225B CN 201810213089 A CN201810213089 A CN 201810213089A CN 108491225 B CN108491225 B CN 108491225B
Authority
CN
China
Prior art keywords
version
module
update package
difference
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810213089.8A
Other languages
Chinese (zh)
Other versions
CN108491225A (en
Inventor
曹元�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810213089.8A priority Critical patent/CN108491225B/en
Publication of CN108491225A publication Critical patent/CN108491225A/en
Application granted granted Critical
Publication of CN108491225B publication Critical patent/CN108491225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an update package generation method and a mobile terminal, wherein the method comprises the following steps: acquiring an update package of a first version of a target object and an installation package of a second version of the target object; comparing the content of the update package of the first version with the content of the installation package of the second version to obtain the difference degree between the first version and the second version; if the difference degree between the first version and the second version is larger than a preset threshold value, generating an update package for restoring the first version of the target object to the second version of the target object. The update package generation method provided by the invention does not need a user to download the installation package of the second version of the target object, but can use the generated update package to reduce the target object from the first version to the second version, thereby having the advantage of simple and convenient operation.

Description

Update package generation method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an update package generation method and a mobile terminal.
Background
With the continuous development of mobile terminal technology and the continuous change of user requirements, the systems and applications installed on the mobile terminal equipment are continuously updated. At present, the update of a system or an application program is generally realized through an increment upgrade package or a full upgrade package, and after the upgrade and update, a mobile terminal usually deletes an old installation package in order to avoid occupying system space, so that if the updated system or application program has a larger change compared with an original version, so that a user needs to search and download the installation package of the original version again when the user expects to return to the original version.
Therefore, when the updated system or application program needs to be restored to the original version, the existing mobile terminal needs to search and download the installation package of the original version again by the user, thereby causing the problem of complicated operation.
Disclosure of Invention
The embodiment of the invention provides an update package generation method and a mobile terminal, and aims to solve the problem that when the mobile terminal needs to restore an updated system or application program to an original version, a user needs to search and download an installation package of the original version again, so that the operation is complex.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an update package generation method, which is applied to a mobile terminal, and the method includes:
the method comprises the steps of obtaining an update package of a first version of a target object, and obtaining an installation package of a second version of the target object, wherein the target object comprises an operating system or an application program, the first version is higher than the second version, and the second version is the version of the target object currently installed by the mobile terminal;
comparing the content of the update package of the first version with the content of the installation package of the second version to obtain the difference degree between the first version and the second version;
and generating an update package for restoring the first version of the target object to the second version of the target object when the degree of difference between the first version and the second version is greater than a preset threshold.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring an update package of a first version of a target object and acquiring an installation package of a second version of the target object, the target object comprises an operating system or an application program, the first version is higher than the second version, and the second version is the version of the target object currently installed by the mobile terminal;
the comparison module is used for comparing the content of the update package of the first version with the content of the installation package of the second version to obtain the difference degree between the first version and the second version;
a first generation module, configured to generate an update package for restoring the first version of the target object to the second version of the target object when a degree of difference between the first version and the second version is greater than a preset threshold.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps in the update package generation method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the update package generation method.
In this embodiment of the present invention, the mobile terminal may generate an update package for restoring the first version to the second version of the target object by acquiring an update package of the first version of the target object and an installation package of the second version of the target object, comparing the difference degree between the first version and the second version, and then generating the update package for restoring the first version to the second version of the target object when the difference degree between the first version and the second version exceeds a preset threshold. In this way, if the target object needs to be restored from the first version to the second version, the user does not need to search and download the installation package of the second version of the target object, and the generated update package can be directly used to restore the target object from the first version to the second version, thereby providing an advantage of easy operation.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of an update package generation method according to an embodiment of the present invention;
fig. 2 is a flowchart of another update package generation method according to an embodiment of the present invention;
fig. 3 is a flowchart of another update package generation method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 6a is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 6b is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an update package generation method provided in an embodiment of the present invention, and is applied to a mobile terminal, as shown in fig. 1, the method includes the following steps:
step 101, obtaining an update package of a first version of a target object, and obtaining an installation package of a second version of the target object, where the target object includes an operating system or an application program, the first version is higher than the second version, and the second version is the version of the target object currently installed by the mobile terminal.
In this embodiment, the target object may be an operating system of the mobile terminal or an application installed on the mobile terminal. The second version of the target object may be a version of the target object currently installed by the mobile terminal, and the first version of the target object may be an updated version higher than the first version, for example: the second version of an application is v1.1 and the first version is v 1.2.
The update package of the first version of the target object may be a differential package updated from the second version of the target object to the first version of the target object, or may be a complete installation package updated from the second version of the target object to the first version of the target object, that is, the update package of the first version may include only the content of the difference portion between the second version and the first version, or may include all the content of the first version. The installation package of the second version of the target object may be a complete package of the second version of the target object, i.e. including the entire content of the second version.
The update package for acquiring the first version of the target object may be an update package for downloading the first version of the target object, or may be an update package for acquiring a downloaded first version of the target object. The obtaining of the second version of the target object may be obtaining a currently installed version of the target object from a system partition of the mobile terminal.
In addition, in this step, the acquiring of the update package of the first version of the target object may be performed when the mobile terminal starts a task of updating the target object, or may be performed when the mobile terminal downloads the update package of the updated version of the target object.
And 102, comparing the content of the update package of the first version with the content of the installation package of the second version to obtain the difference degree between the first version and the second version.
Since the first version is an updated version of the target object and the second version is a current version of the target object, in this step, a difference degree between the first version and the second version may be compared, and if the update package of the first version is a differential package, before the comparison, the update package of the first version and the installation package of the second version may be synthesized to obtain the installation package of the first version, and then contents of the installation package of the first version and contents of the installation package of the second version are compared, and if the update package of the first version is a complete installation package, the contents of the update package of the first version and contents of the installation package of the second version may be directly compared without being synthesized. For example: the difference between the first version and the second version in the operation flow facing the user or the difference between the first version and the second version in the interface layout can be compared.
In the comparison process, the difference between the content of the update package of the first version and the content of the installation package of the second version may be quantified, so as to obtain the degree of difference between the first version and the second version. For example: if the number of components on an interface of the first version is six and the number of components on the interface of the second version is five, it can be determined that the degree of difference between the first version and the second version with respect to the interface is 20%. More specifically, because the content of each different module in the update package of the first version may be compared with the content of each different module in the installation package of the second version during the comparison, so as to obtain the difference degree between the content of each different module of the first version and the content of each different module of the second version, when determining the final difference degree, different weights may be taken for the difference degrees of the content of each different module to calculate the difference degree between the first version and the second version.
It should be noted that, during comparison, only the target content in the update package of the first version may be compared with the target content in the update package of the second version, where the target content in the update package of the first version may be the content in the update package of the first version that is updated compared with the second version, and the target content in the installation package of the second version may be the content in the second version that has the same identifier as the target content in the update package of the first version. For example: if only the layout of an interface in the first version is updated, only the layout of the interface in the first version and the layout of the interface in the second version may be compared. In this way, for the content in the update package of the first version that is not updated compared with the second version, comparison is not needed, so as to save system resources.
And 103, generating an update package for restoring the first version of the target object to the second version of the target object when the difference degree between the first version and the second version is greater than a preset threshold value.
The preset threshold may be a difference threshold preset by the mobile terminal, or may be a difference threshold defined by a user. In this embodiment, if it is compared that the difference degree between the first version and the second version is greater than the preset threshold, an update package for restoring from the first version to the second version of the target object may be generated, where the update package of the second version may be a differential package or a complete installation package, and preferably, to avoid occupying a large storage space, an update differential package for restoring from the first version to the second version of the target object may be generated. Specifically, a reverse update package that is restored from the first version of the target object to the second version of the target object by using a difference algorithm may be generated according to the content difference between the first version and the second version.
In addition, if the step is performed during the process of updating the target object by the mobile terminal, when the difference degree between the first version and the second version is greater than a preset threshold, the installation package of the second version may be backed up to prevent the installation package of the second version from being covered by the update package of the first version during updating, then a reverse update package for restoring the first version of the target object to the second version of the target object may be generated according to the backed-up installation package of the second version and the update package of the first version, and after the reverse update package is generated, the backed-up installation package of the second version may be deleted to release the storage space of the mobile terminal.
In this embodiment of the present invention, the mobile terminal may be any device having a storage medium, for example: terminal devices such as computers (Computer), Mobile phones, Tablet Personal computers (Tablet Personal Computer), Laptop computers (Laptop Computer), Personal Digital Assistants (PDA), Mobile Internet Devices (MID), and Wearable devices (Wearable Device).
In the update package generation method in this embodiment, the mobile terminal may obtain an update package of a first version of a target object and an installation package of a second version of the target object, compare the difference degree between the first version and the second version, and generate an update package for restoring from the first version to the second version of the target object when the difference degree between the first version and the second version exceeds a preset threshold. In this way, if the target object needs to be restored from the first version to the second version, the user does not need to search and download the installation package of the second version of the target object, and the generated update package can be directly used to restore the target object from the first version to the second version, thereby providing an advantage of easy operation.
Referring to fig. 2, fig. 2 is a flowchart of another update package generation method provided in an embodiment of the present invention, which is applied to a mobile terminal, and in this embodiment, on the basis of the embodiment shown in fig. 1, a step of comparing the content of the update package of the first version with the content of the installation package of the second version to obtain a difference degree between the first version and the second version is refined, so that a comparison manner between the content of the update package of the first version and the content of the installation package of the second version is clearer and more specific. As shown in fig. 2, the method comprises the steps of:
step 201, obtaining an update package of a first version of a target object, and obtaining an installation package of a second version of the target object, where the target object includes an operating system or an application program, the first version is higher than the second version, and the second version is the version of the target object currently installed by the mobile terminal.
The specific implementation of this step may refer to the implementation of step 101 in the method embodiment shown in fig. 1, and is not described here again to avoid repetition.
Step 202, comparing the content of the target module in the update package of the first version with the content of the module with the same name as the target module in the installation package of the second version, respectively, to obtain the difference degree between the target module and the module with the same name as the target module in the installation package of the second version, wherein the target module is a module which is updated in the update package of the first version compared with the second version.
In this embodiment, the update package or the installation package may include a plurality of different modules, and each module has a different name, for example: the installation package for the operating system may include several application modules and system configuration modules, each named by a different name. Therefore, in this step, the content of the target module in the update package of the first version may be compared with the content of the module with the same name as the target module in the installation package of the second version, where the target module may be a module in the update package of the first version that is updated compared with the second version, and there may be one or more target modules. Specifically, a target module in the update package of the first version may be determined first, then a module with the same name as the target module in the installation package of the second version may be determined, and finally contents of the two modules may be compared, where a specific comparison manner may refer to a related implementation manner of step 102 in the method embodiment shown in fig. 1, and details are not repeated here to avoid repetition.
After the content of the target module in the update package of the first version is respectively compared with the content of the module with the same name as the target module in the installation package of the second version, the difference degree between the target module and the module with the same name as the target module in the installation package of the second version can be obtained, so that the mobile terminal can generate a reverse update package for the module with larger change after update conveniently, and a user can restore the specific module conveniently.
Step 203, if the difference degree between the first target module and the module with the same name as the first target module in the installation package of the second version is greater than a preset threshold value, generating an update package for restoring the first version of the first target module to the second version of the first target module.
In this embodiment, if it is determined after the comparison that the difference degree between the first target module and the module with the same name as the first target module in the installation package of the second version is greater than the preset threshold, the update package used for restoring the first version of the first target module to the second version of the first target module may be generated, and specifically, the reverse update package used for restoring the first version of the first target module to the second version of the first target module may be generated by using a differential algorithm.
It should be noted that, if the step is performed in the process of updating the target object by the mobile terminal, when it is determined that a difference degree between a first target module and a module, which is in the same name as the first target module, in the installation package of the second version is greater than a preset threshold, a module, which is in the same name as the first target module, in the installation package of the second version may be backed up, so that the module is covered by the first target module during updating, then a reverse update package, which is restored from the first version of the first target module to the second version of the first target module, is generated according to the backed-up module and the first target module, and after the reverse update package is generated, the backed-up module may be deleted, so as to release the storage space of the mobile terminal.
Therefore, after the mobile terminal updates the target object from the old version to the new version, if the user does not adapt to the change of a certain module, the generated reverse update package of the module can be used for restoring the version of the module, and if the user does not adapt to the change of a plurality of modules, the generated reverse update packages of the modules can be used for uniformly restoring the modules to the original version, so that the user can conveniently and flexibly restore the version of the specific module.
Optionally, after step 201 and before step 202, the method further includes:
identifying at least two modules having a calling relationship in the first version of the update package;
after step 203, the method further comprises:
and if a second target module having a calling relationship with the first target module exists in the update package of the first version, generating an update package for restoring the first version of the second target module to a second version of the second target module.
In this embodiment, after obtaining the update package of the first version of the target object, each module in the update package of the first version may be identified, so as to identify at least two modules having a call relationship in the update package of the first version, specifically, the source code file in the update package of the first version may be scanned, and the at least two modules having a call relationship are identified from the source code file, and if a call relationship exists between two modules, a call statement is usually made in the source code file, and an address of a called party is indicated in a call definition, so that the at least two modules having a call relationship in the update package of the first version may be identified by scanning the source code file.
In this embodiment, after generating an update package for restoring from the first version of the first target module to the second version of the first target module, it may be further searched whether a second target module having a calling relationship with the first target module exists in the update package of the first version, and specifically, it may be searched whether a second target module having a calling relationship with the first target module exists in the update package of the first version according to at least two modules having a calling relationship in the identified update package of the first version. If a second target module having a calling relationship with the first target module exists in the update package of the first version, an update package for restoring the first version of the second target module to the second version of the second target module may be generated.
In this way, if an update package is generated for at least two modules having a calling relationship, in which any one of the modules is restored from the first version to the second version, the update packages for other modules are simultaneously generated from the first version to the second version, so that the problem of incompatibility or program crash caused by that after a certain module is restored, other modules having a calling relationship with the module are not restored can be prevented.
Preferably, in this embodiment, after at least two modules having a calling relationship in the first version of the update package are identified, the at least two modules having a calling relationship may be further marked as associated modules, and an update list is generated, in which basic information of each module in the first version of the update package and modules respectively associated with each module are recorded. In addition, the update lists may be grouped, for example, the modules marked as associated modules in the update package of the first version may be divided into one group, and the modules not marked as associated modules in the update package of the first version may be divided into another group. For example: the update package of the first version comprises a module A, a module B, a module C, a module D, a module E and a module F, wherein the module B and the module D have a calling relationship, the module C and the module F have a calling relationship, the module A and the module E can be divided into a group in a generated update list, the module B, the module D, the module C and the module F are divided into a group, the module B and the module D are related modules, and the module C and the module F are related modules.
In this way, when comparing, according to the update list, sequentially comparing the content of the target module in the update package of the first version with the content of the module with the same name as the target module in the installation package of the second version, if it is compared that the difference degree between the first target module and the module with the same name as the first target module in the installation package of the second version in the update package of the first version is greater than the preset threshold value, then after generating an update package for a reduction from the first version of the first target module to the second version of the first target module, a first step of searching the updated list for the existence of a second target module associated with the first target module, and if so, an update package is generated for a reduction from the first version of the second destination module to a second version of the second destination module.
For example: if the module A and the module C in the generated updating list are in a group, the module B and the module D are in a group, wherein, the module B and the module D are related modules, the module a, the module C, and the module B in the update package of the first version may be sequentially compared with the module a, the module C, and the module B in the installation package of the second version, if the difference degree between the module B in the update package of the first version and the module B in the installation package of the second version is greater than a preset threshold value, generating an update package for the reduction from the first version of the B-module to the second version of the B-module, and generating an update package for the reduction from the first version of the D-module to the second version of the D-module, without comparing the D-modules in the update package of the first version with the D-modules in the installation package of the second version, respectively.
In this way, for at least two modules having a calling relationship, as long as the difference degree between the content of one of the modules and the content of the module with the same name as the module in the installation package of the second version is greater than the preset threshold value, the comparison of other modules in the at least two modules having the calling relationship is not needed, so that certain system resources can be saved.
Optionally, after the step of generating, if there is a second target module having a call relationship with the first target module in the update package of the first version, an update package for restoring from the first version of the second target module to the second version of the second target module, the method further includes:
and making all the generated update packages into compressed packages and storing the compressed packages into a storage space of the mobile terminal.
In this embodiment, all the generated update packages can be made into compressed packages and stored in the storage space of the mobile terminal, so that the storage space of the mobile terminal can be saved, a user can conveniently search the generated update packages, and the user can conveniently perform unified restoration on modules with large changes after updating.
In this embodiment, on the basis of the embodiment shown in fig. 1, the step of comparing the content of the update package of the first version with the content of the installation package of the second version to obtain the difference degree between the first version and the second version is refined, so that the comparison manner between the content of the update package of the first version and the content of the installation package of the second version is more clear and specific. In addition, in this embodiment, various optional embodiments are added on the basis of the embodiment shown in fig. 1, and these optional embodiments may be implemented in combination with each other or individually, and all that is achieved is that the user does not need to search and download the installation package of the second version of the target object, but the generated update package may be directly used to restore the target object from the first version to the second version, thereby having the technical effect of being simple and convenient to operate.
Referring to fig. 3, fig. 3 is a flowchart of another update package generation method provided in an embodiment of the present invention, which is applied to a mobile terminal, and in this embodiment, on the basis of the embodiment shown in fig. 1, a step of comparing the content of the update package of the first version with the content of the installation package of the second version to obtain a difference degree between the first version and the second version is refined, so that a comparison manner between the content of the update package of the first version and the content of the installation package of the second version is clearer and more specific. As shown in fig. 2, the method comprises the steps of:
step 301, obtaining an update package of a first version of a target object, and obtaining an installation package of a second version of the target object, where the target object includes an operating system or an application program, the first version is higher than the second version, and the second version is the version of the target object currently installed by the mobile terminal.
The specific implementation of this step may refer to the implementation of step 101 in the method embodiment shown in fig. 1, and is not described here again to avoid repetition.
Step 302, comparing the layout configuration file in the update package of the first version with the layout configuration file in the installation package of the second version to obtain the difference degree of the first version and the second version in layout configuration.
In this embodiment, since the layout configuration of the interface is an important factor that affects the usage habit of the user, in this step, the difference between the layout configurations of the first version and the second version may be compared, specifically, the difference may be obtained by scanning the layout configuration file in the update package of the first version and the layout configuration file in the installation package of the second version, and comparing the layout configuration file in the update package of the first version and the layout configuration file in the installation package of the second version, respectively.
For example: by comparing the layout configuration file in the update package of the first version with the layout configuration file in the installation package of the second version, the arrangement difference of the interface elements (such as interface buttons, options, menus and the like) of the first version and the second version can be obtained, and by quantifying the arrangement difference of the interface elements of the first version and the second version, the difference degree of the first version and the second version in the layout configuration can be obtained.
In this way, in this step, the difference degree between the first version and the second version in the layout configuration is obtained by comparing the layout configuration file in the update package of the first version with the layout configuration file in the installation package of the second version, so that the difference degree between the first version and the second version can be compared from the perspective of meeting the use habit of the user, and the user experience is further improved.
Step 303, in a case that the difference degree between the first version and the second version in the layout configuration is greater than a preset threshold, generating an update package for restoring the first version of the target object to the second version of the target object.
In this embodiment, if the degree of difference between the first version and the second version in the layout configuration is greater than a preset threshold, it may be determined that the first version and the second version have a large difference, and therefore, in this step, an update package for restoring the first version of the target object to the second version of the target object may be generated under the condition that the degree of difference between the first version and the second version in the layout configuration is greater than the preset threshold, and a specific generation manner may refer to a related implementation manner of step 104 in the method embodiment shown in fig. 1, and is not described herein again to avoid repetition.
It should be noted that, in this embodiment, step 302 and step 303 are replaceable, for example, step 302 may be replaced with:
comparing a source code in the update package of the first version with a source code of the installation package of the second version to obtain a difference of interface jump operation values and/or a difference of target jump interfaces of the first version and the second version;
and determining the difference degree of the first version and the second version on interface jump according to the difference of the interface jump operation values of the first version and the second version and/or the difference of a target jump interface.
Step 303 may be replaced with:
and under the condition that the difference degree of the first version and the second version in interface jump is larger than a preset threshold value, generating an update package for restoring the first version of the target object to the second version of the target object.
Since the user-oriented operation flow is another important factor that affects the usage habit of the user, in this embodiment, the difference between the first version and the second version in the interface jump can be compared, the jumping mode between interfaces is embodied in the source code of the installation package, so that the source code in the update package of the first version and the source code in the installation package of the second version can be scanned respectively, comparing the source code in the update package of the first version with the source code of the installation package of the second version to obtain the difference of the interface jump operation values and/or the difference of the target jump interface between the first version and the second version, the target jump interface can be understood as a target interface needing to jump, and the interface jump operation value can be understood as a trigger operation instruction for jumping to the target interface.
Then, the difference degree of the interface jump between the first version and the second version can be obtained by quantifying the difference of the interface jump operation values or the difference of the target jump interfaces between the first version and the second version, or quantifying and weighting the difference of the interface jump operation values and the difference of the target jump interfaces between the first version and the second version.
If the difference degree between the first version and the second version at the interface jump is greater than the preset threshold, it may be determined that the first version and the second version have a large difference, and therefore, in this step, an update package for restoring the first version of the target object to the second version of the target object may be generated under the condition that the difference degree between the first version and the second version at the interface jump is greater than the preset threshold, and a specific generation manner may refer to a related implementation manner of step 104 in the method embodiment shown in fig. 1, and is not described herein again to avoid repetition.
In this way, in this embodiment, by comparing the source code in the update package of the first version with the source code in the installation package of the second version, the difference degree of the first version and the second version in interface jump is obtained, so that the difference degree of the first version and the second version can be compared from the perspective of an operation flow facing a user, and further user experience is improved.
Optionally, step 302 includes:
comparing the layout configuration files in the update package of the first version with the layout configuration files in the installation package of the second version to obtain the quantity difference and/or display content difference of the interface components of the first version and the second version;
and determining the difference degree of the first version and the second version in the layout configuration according to the difference of the number of the interface components and/or the difference of the display contents of the first version and the second version.
In this embodiment, when comparing the layout configuration file in the update package of the first version with the layout configuration file in the installation package of the second version, the number difference and/or the display content difference of the interface components of the first version and the second version may be compared, where the interface components may be buttons, lists, menus, or the like on the interface, and in the layout configuration file, there are an agreed component name for each component on the interface and the content displayed on each component. Therefore, in this embodiment, the difference between the number of interface components in the first version and the second version and/or the difference between the display contents of the interface components with the same component name in the first version and the second version may be compared.
Then, the difference degree of the layout configuration between the first version and the second version can be obtained by quantifying the difference of the number of the interface components or the difference of the display content between the first version and the second version, or quantifying the difference of the number of the interface components and the difference of the display content between the first version and the second version and performing weight calculation.
In this way, in this embodiment, the number difference and/or the display content difference between the interface components of the first version and the second version is obtained by comparing the layout configuration file in the update package of the first version with the layout configuration file in the installation package of the second version, and the difference degree between the layout configuration of the first version and the layout configuration of the second version is determined according to the number difference and/or the display content difference between the interface components of the first version and the second version, so that the difference degree between the first version and the second version can be compared from the perspective of more details and conforming to the usage habits of users, and further the user experience is improved.
In this embodiment, on the basis of the embodiment shown in fig. 1, the step of comparing the content of the update package of the first version with the content of the installation package of the second version to obtain the difference degree between the first version and the second version is refined, so that the comparison manner between the content of the update package of the first version and the content of the installation package of the second version is more clear and specific. In addition, in this embodiment, various optional embodiments are added on the basis of the embodiment shown in fig. 1, and these optional embodiments may be implemented in combination with each other or individually, and all that is achieved is that the user does not need to search and download the installation package of the second version of the target object, but the generated update package may be directly used to restore the target object from the first version to the second version, thereby having the technical effect of being simple and convenient to operate.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 4, the mobile terminal 400 includes:
an obtaining module 401, configured to obtain an update package of a first version of a target object and obtain an installation package of a second version of the target object, where the target object includes an operating system or an application program, the first version is higher than the second version, and the second version is a version of the target object currently installed by the mobile terminal;
a comparison module 402, configured to compare the content of the update package of the first version with the content of the installation package of the second version to obtain a difference degree between the first version and the second version;
a first generating module 403, configured to generate an update package for restoring from the first version of the target object to the second version of the target object if a degree of difference between the first version and the second version is greater than a preset threshold.
Optionally, the comparing module 402 is configured to compare the content of the target module in the update package of the first version with the content of the module with the same name as the target module in the installation package of the second version, respectively, to obtain the difference degree between the target module and the module with the same name as the target module in the installation package of the second version, where the target module is a module that is updated in the update package of the first version compared with the second version.
The first generating module 403 is configured to generate an update package for restoring a first version of a first target module to a second version of the first target module if a difference degree between a first target module in the update package of the first version and a module in the installation package of the second version, which has a same name as the first target module, is greater than a preset threshold.
Optionally, as shown in fig. 5, the mobile terminal 400 further includes:
an identifying module 404, configured to identify at least two modules having a calling relationship in the first version of the update package;
a second generating module 405, configured to generate an update package for restoring the first version of the second target module to the second version of the second target module if a second target module having a calling relationship with the first target module exists in the update package of the first version.
Optionally, as shown in fig. 6a and 6b, the comparing module 402 includes:
a first comparing unit 4021, configured to compare a layout configuration file in the update package of the first version with a layout configuration file in the installation package of the second version, to obtain a difference degree between the first version and the second version in layout configuration; or
A second comparing unit 4022, configured to compare a source code in the update package of the first version with a source code of the installation package of the second version, to obtain a difference between interface jump operation values of the first version and the second version and/or a difference between target jump interfaces;
a determining unit 4023, configured to determine a difference degree between the first version and the second version in interface skip according to a difference between interface skip operation values of the first version and the second version and/or a difference between target skip interfaces;
the first generating module 403 is configured to generate an update package for restoring the first version of the target object to the second version of the target object when the degree of difference between the first version and the second version in the layout configuration is greater than a preset threshold; or
And the update package is used for generating an update package for restoring the first version of the target object to the second version of the target object under the condition that the difference degree of the first version and the second version in the interface jump is larger than a preset threshold value.
Optionally, as shown in fig. 7, the first comparing unit 4021 includes:
a comparison subunit 40211, configured to compare the layout configuration file in the update package of the first version with the layout configuration file in the installation package of the second version, so as to obtain a difference in the number of interface components and/or a difference in display content between the first version and the second version;
the determining subunit 40212 is configured to determine a degree of difference between the first version and the second version in the layout configuration according to the difference between the number of interface components and/or the difference between the display contents of the first version and the second version.
Optionally, as shown in fig. 8, the mobile terminal 400 further includes:
a creating and storing module 406, configured to create all the generated update packages into compressed packages, and store the compressed packages in the storage space of the mobile terminal 400.
The mobile terminal 400 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition. The mobile terminal 400 of the embodiment of the present invention may generate the update package for restoring the first version to the second version of the target object by acquiring the update package of the first version of the target object and the installation package of the second version of the target object, comparing the difference degree between the first version and the second version, and then generating the update package for restoring the first version to the second version of the target object when the difference degree between the first version and the second version exceeds a preset threshold. In this way, if the target object needs to be restored from the first version to the second version, the user does not need to search and download the installation package of the second version of the target object, and the generated update package can be directly used to restore the target object from the first version to the second version, thereby providing an advantage of easy operation.
Fig. 9 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 9 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 910 is configured to obtain an update package of a first version of a target object, and obtain an installation package of a second version of the target object, where the target object includes an operating system or an application program, the first version is higher than the second version, and the second version is a version of the target object currently installed by the mobile terminal;
comparing the content of the update package of the first version with the content of the installation package of the second version to obtain the difference degree between the first version and the second version;
and generating an update package for restoring the first version of the target object to the second version of the target object when the degree of difference between the first version and the second version is greater than a preset threshold.
Optionally, the processor 910 is further configured to: respectively comparing the content of a target module in the update package of the first version with the content of a module with the same name as the target module in the installation package of the second version to obtain the difference degree between the target module and the module with the same name as the target module in the installation package of the second version, wherein the target module is a module which is updated in the update package of the first version compared with the second version;
if the difference degree between the first target module and the module with the same name as the first target module in the installation package of the second version in the update package of the first version is larger than a preset threshold value, generating an update package for restoring the first version of the first target module to the second version of the first target module.
Optionally, the processor 910 is further configured to: identifying at least two modules having a calling relationship in the first version of the update package;
and if a second target module having a calling relationship with the first target module exists in the update package of the first version, generating an update package for restoring the first version of the second target module to a second version of the second target module.
Optionally, the processor 910 is further configured to: comparing the layout configuration file in the update package of the first version with the layout configuration file in the installation package of the second version to obtain the difference degree of the first version and the second version in layout configuration; or
Comparing a source code in the update package of the first version with a source code of the installation package of the second version to obtain a difference of interface jump operation values and/or a difference of target jump interfaces of the first version and the second version;
determining the difference degree of the first version and the second version on interface jump according to the difference of the interface jump operation values of the first version and the second version and/or the difference of a target jump interface;
generating an update package for reducing the first version of the target object to the second version of the target object when the difference degree between the first version and the second version in the layout configuration is greater than a preset threshold value; or
And under the condition that the difference degree of the first version and the second version in interface jump is larger than a preset threshold value, generating an update package for restoring the first version of the target object to the second version of the target object.
Optionally, the processor 910 is further configured to: comparing the layout configuration files in the update package of the first version with the layout configuration files in the installation package of the second version to obtain the quantity difference and/or display content difference of the interface components of the first version and the second version;
and determining the difference degree of the first version and the second version in the layout configuration according to the difference of the number of the interface components and/or the difference of the display contents of the first version and the second version.
Optionally, the processor 910 is further configured to: and making all the generated update packages into compressed packages and storing the compressed packages into a storage space of the mobile terminal.
The mobile terminal 900 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the details are not described here. The mobile terminal 900 of the embodiment of the present invention may generate an update package for restoring from the first version to the second version of the target object by acquiring an update package of the first version of the target object and an installation package of the second version of the target object, comparing the difference degree between the first version and the second version, and then generating the update package for restoring from the first version to the second version of the target object when the difference degree between the first version and the second version exceeds a preset threshold. In this way, if the target object needs to be restored from the first version to the second version, the user does not need to search and download the installation package of the second version of the target object, and the generated update package can be directly used to restore the target object from the first version to the second version, thereby providing an advantage of easy operation.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 910; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 901 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 902, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may also provide audio output related to a specific function performed by the mobile terminal 900 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive audio or video signals. The input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 906. The image frames processed by the graphic processor 9041 may be stored in the memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 can receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 901 in case of the phone call mode.
The mobile terminal 900 also includes at least one sensor 905, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 9061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 9061 and/or backlight when the mobile terminal 900 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 905 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described in detail herein.
The display unit 906 is used to display information input by the user or information provided to the user. The Display unit 906 may include a Display panel 9061, and the Display panel 9061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 907 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 9071 (e.g., operations by a user on or near the touch panel 9071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 9071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 910, receives a command from the processor 910, and executes the command. In addition, the touch panel 9071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 907 may include other input devices 9072 in addition to the touch panel 9071. Specifically, the other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, and the like), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation on or near the touch panel 9071, the touch panel is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of the touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 908 is an interface through which an external device is connected to the mobile terminal 900. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 908 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the mobile terminal 900 or may be used to transmit data between the mobile terminal 900 and external devices.
The memory 909 may be used to store software programs as well as various data. The memory 909 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 909 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 910 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 909 and calling data stored in the memory 909, thereby performing overall monitoring of the mobile terminal. Processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The mobile terminal 900 may also include a power supply 911 (e.g., a battery) for powering the various components, and preferably, the power supply 911 is logically connected to the processor 910 through a power management system that provides power management functions to manage charging, discharging, and power consumption.
In addition, the mobile terminal 900 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 910, a memory 909, and a computer program stored in the memory 909 and capable of running on the processor 910, where the computer program, when executed by the processor 910, implements each process of the update package generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the update package generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. An update package generation method applied to a mobile terminal, the method comprising:
the method comprises the steps of obtaining an update package of a first version of a target object, and obtaining an installation package of a second version of the target object, wherein the target object comprises an operating system or an application program, the first version is higher than the second version, and the second version is the version of the target object currently installed by the mobile terminal;
comparing the content of the update package of the first version with the content of the installation package of the second version to obtain the difference degree between the first version and the second version;
and generating an update package for restoring the first version of the target object to the second version of the target object when the degree of difference between the first version and the second version is greater than a preset threshold.
2. The method according to claim 1, wherein the step of comparing the content of the first version of the update package with the content of the second version of the installation package to obtain the degree of difference between the first version and the second version comprises:
respectively comparing the content of a target module in the update package of the first version with the content of a module with the same name as the target module in the installation package of the second version to obtain the difference degree between the target module and the module with the same name as the target module in the installation package of the second version, wherein the target module is a module which is updated in the update package of the first version compared with the second version;
the step of generating an update package for restoring from the first version of the target object to the second version of the target object when the degree of difference between the first version and the second version is greater than a preset threshold includes:
if the difference degree between the first target module and the module with the same name as the first target module in the installation package of the second version in the update package of the first version is larger than a preset threshold value, generating an update package for restoring the first version of the first target module to the second version of the first target module.
3. The method according to claim 2, wherein after the step of obtaining the update package of the first version of the target object, before the step of comparing the content of the target module in the update package of the first version with the content of the module with the same name as the target module in the installation package of the second version, respectively, to obtain the degree of difference between the target module and the module with the same name as the target module in the installation package of the second version, the method further comprises:
identifying at least two modules having a calling relationship in the first version of the update package;
after the step of generating, if there is a difference degree between a first target module and a module having the same name as the first target module in the installation package of the second version in the update package of the first version, which is greater than a preset threshold, an update package for restoring from the first version of the first target module to the second version of the first target module, the method further includes:
and if a second target module having a calling relationship with the first target module exists in the update package of the first version, generating an update package for restoring the first version of the second target module to a second version of the second target module.
4. The method according to claim 1, wherein the step of comparing the content of the first version of the update package with the content of the second version of the installation package to obtain the degree of difference between the first version and the second version comprises:
comparing the layout configuration file in the update package of the first version with the layout configuration file in the installation package of the second version to obtain the difference degree of the first version and the second version in layout configuration; or
Comparing a source code in the update package of the first version with a source code of the installation package of the second version to obtain a difference of interface jump operation values and/or a difference of target jump interfaces of the first version and the second version;
determining the difference degree of the first version and the second version on interface jump according to the difference of the interface jump operation values of the first version and the second version and/or the difference of a target jump interface;
the step of generating an update package for restoring the first version of the target object to the second version of the target object when the degree of difference between the first version and the second version is greater than a preset threshold includes:
generating an update package for reducing the first version of the target object to the second version of the target object when the difference degree between the first version and the second version in the layout configuration is greater than a preset threshold value; or
And under the condition that the difference degree of the first version and the second version in interface jump is larger than a preset threshold value, generating an update package for restoring the first version of the target object to the second version of the target object.
5. The method according to claim 4, wherein the step of comparing the layout configuration file in the first version of the update package with the layout configuration file in the second version of the installation package to obtain the difference degree between the layout configuration of the first version and the layout configuration of the second version comprises:
comparing the layout configuration files in the update package of the first version with the layout configuration files in the installation package of the second version to obtain the quantity difference and/or display content difference of the interface components of the first version and the second version;
and determining the difference degree of the first version and the second version in the layout configuration according to the difference of the number of the interface components and/or the difference of the display contents of the first version and the second version.
6. A mobile terminal, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring an update package of a first version of a target object and acquiring an installation package of a second version of the target object, the target object comprises an operating system or an application program, the first version is higher than the second version, and the second version is the version of the target object currently installed by the mobile terminal;
the comparison module is used for comparing the content of the update package of the first version with the content of the installation package of the second version to obtain the difference degree between the first version and the second version;
a first generation module, configured to generate an update package for restoring the first version of the target object to the second version of the target object when a degree of difference between the first version and the second version is greater than a preset threshold.
7. The mobile terminal according to claim 6, wherein the comparison module is configured to compare content of a target module in the update package of the first version with content of a module in the installation package of the second version having a same name as the target module, respectively, to obtain a difference degree between the target module and the module in the installation package of the second version having a same name as the target module, where the target module is a module in the update package of the first version that is updated compared with the second version;
the first generation module is used for generating an update package for restoring the first version of the first target module to the second version of the first target module if the difference degree of the modules with the same name as the first target module in the installation package of the first version and the installation package of the second version is larger than a preset threshold value.
8. The mobile terminal of claim 7, wherein the mobile terminal further comprises:
the identification module is used for identifying at least two modules with calling relations in the update package of the first version;
a second generating module, configured to generate, if a second target module having a call relationship with the first target module exists in the update package of the first version, an update package for restoring the first version of the second target module to a second version of the second target module.
9. The mobile terminal of claim 6, wherein the comparing module comprises:
the first comparison unit is used for comparing the layout configuration file in the update package of the first version with the layout configuration file in the installation package of the second version to obtain the difference degree of the first version and the second version in the layout configuration; or
The second comparison unit is used for comparing a source code in the update package of the first version with a source code of the installation package of the second version to obtain the difference of interface jump operation values and/or the difference of a target jump interface between the first version and the second version;
the determining unit is used for determining the difference degree of the first version and the second version in interface jumping according to the difference of the interface jumping operation values of the first version and the second version and/or the difference of a target jumping interface;
the first generation module is used for generating an update package for reducing the first version of the target object to the second version of the target object under the condition that the difference degree of the first version and the second version in the layout configuration is larger than a preset threshold value; or
And the update package is used for generating an update package for restoring the first version of the target object to the second version of the target object under the condition that the difference degree of the first version and the second version in the interface jump is larger than a preset threshold value.
10. The mobile terminal according to claim 9, wherein the first comparing unit comprises:
the comparison subunit is configured to compare the layout configuration file in the update package of the first version with the layout configuration file in the installation package of the second version, so as to obtain a difference in the number of interface components and/or a difference in display content between the first version and the second version;
the determining subunit is configured to determine, according to the difference in number of interface components and/or the difference in display content between the first version and the second version, a degree of difference in layout configuration between the first version and the second version.
11. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps in the update package generation method according to any one of claims 1 to 5.
CN201810213089.8A 2018-03-15 2018-03-15 Update package generation method and mobile terminal Active CN108491225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810213089.8A CN108491225B (en) 2018-03-15 2018-03-15 Update package generation method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810213089.8A CN108491225B (en) 2018-03-15 2018-03-15 Update package generation method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108491225A CN108491225A (en) 2018-09-04
CN108491225B true CN108491225B (en) 2021-10-12

Family

ID=63339335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810213089.8A Active CN108491225B (en) 2018-03-15 2018-03-15 Update package generation method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108491225B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112068870A (en) * 2020-08-11 2020-12-11 广州点云科技有限公司 Method for upgrading program difference increment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569844A (en) * 2016-09-23 2017-04-19 北京五八信息技术有限公司 Processing method, processing device and equipment for program code update

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2014253675A1 (en) * 2013-04-15 2015-12-03 Contextual Systems Pty Ltd Methods and systems for improved document comparison
CN104932909A (en) * 2014-03-17 2015-09-23 中兴通讯股份有限公司 Terminal software upgrading method and device
CN106325892A (en) * 2015-06-15 2017-01-11 中兴通讯股份有限公司 Method and device for difference backspacing upgrade
CN107566720B (en) * 2017-08-25 2019-09-27 维沃移动通信有限公司 A kind of method and mobile terminal of the calibration value updating mobile terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569844A (en) * 2016-09-23 2017-04-19 北京五八信息技术有限公司 Processing method, processing device and equipment for program code update

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
函数抽取重构的自动检测方法;刘阳等;《计算机科学》;20151231;第42卷(第12期);第105-107页 *

Also Published As

Publication number Publication date
CN108491225A (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN109768926B (en) Data processing method, terminal equipment and computer readable storage medium
CN110196667B (en) Notification message processing method and terminal
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN109828705B (en) Icon display method and terminal equipment
CN110837327B (en) Message viewing method and terminal
CN109857297B (en) Information processing method and terminal equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN108270870B (en) Prompt message pushing method and device
CN109522278B (en) File storage method and terminal equipment
CN107967153B (en) Application program management method and mobile terminal
CN110308834B (en) Setting method of application icon display mode and terminal
CN110780940A (en) Application program loading method, electronic device and storage medium
CN108491148B (en) Application sharing method and terminal
CN108920040B (en) Application icon sorting method and mobile terminal
JP7324949B2 (en) Application sharing method, first electronic device and computer readable storage medium
CN108509141B (en) Control generation method and mobile terminal
CN111522575B (en) Application program upgrading method and electronic equipment
CN107765954B (en) Application icon updating method, mobile terminal and server
CN108009031B (en) Application program control method and mobile terminal
CN110796438B (en) Message sending method and mobile terminal
CN111562959A (en) Icon management method and electronic equipment
CN109284146B (en) Light application starting method and mobile terminal
CN107704287B (en) Installation-free method for program application, mobile terminal and computer-readable storage medium

Legal Events

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