CN112988195A - Application program updating method of terminal equipment - Google Patents

Application program updating method of terminal equipment Download PDF

Info

Publication number
CN112988195A
CN112988195A CN202110349529.4A CN202110349529A CN112988195A CN 112988195 A CN112988195 A CN 112988195A CN 202110349529 A CN202110349529 A CN 202110349529A CN 112988195 A CN112988195 A CN 112988195A
Authority
CN
China
Prior art keywords
application program
application
update package
list
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110349529.4A
Other languages
Chinese (zh)
Other versions
CN112988195B (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.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Hubei Ecarx Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hubei Ecarx Technology Co Ltd filed Critical Hubei Ecarx Technology Co Ltd
Priority to CN202110349529.4A priority Critical patent/CN112988195B/en
Publication of CN112988195A publication Critical patent/CN112988195A/en
Application granted granted Critical
Publication of CN112988195B publication Critical patent/CN112988195B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention provides an application program updating method of terminal equipment. The method comprises the following steps: acquiring update package information of a target application program; searching a related application program set of the target application program based on the update package information to obtain a first application list consisting of the related application program set; the first application list is sent to the client, and a second application list returned after the client screens and filters the installed application programs from the first application list is received; generating an update package according to the second application list; and sending the update package to the client side of the installed update package. According to the method and the device, when the target application program of the terminal equipment needs to be updated, the associated application program set of the target application program can be automatically searched, all application programs in the associated application program set are updated together, and the situations of abnormity, breakdown and the like of all application programs of a certain function associated with the target application program when the function is used are avoided.

Description

Application program updating method of terminal equipment
Technical Field
The present invention relates to the field of application update technologies, and in particular, to an application program update method for a terminal device.
Background
In the Android system, applications all exist in the form of APK (Android Package). At present, the updating of the application program on the terminal device generally uses the traditional updating method, which includes three types. The first is a method of updating an application program by using a tengtong ticker (tengtong hot update scheme), and an update patch of a single application program integrated with a certain update function can be updated by using the tengtong hot update scheme. The second is a mode of updating an application program through an ali Sophix (ali hot update scheme), and an update patch of a single application integrated with a certain update function can be updated through the ali hot update scheme. And the third is that through a mode of updating the application program by Android's own multitex replacement, the unloaded dex file is replaced by using the Android's dex file (the dex file is a program that the Android virtual machine can run) loading mechanism to realize the application program updating.
However, the above three updating methods can only update the application program itself needing to be updated, and cannot involve the updating of other application programs associated with the application program needing to be updated. Such a situation may arise with conventional update approaches: if the application program a updates a certain function a, but the function a is also supported in other application programs, at this time, since the application program a updates the function a, partial logic in the function a is changed, and finally, other applications using the function a generate an exception when calling the function a, so that the function a cannot be normally used. That is, the conventional updating method cannot update the associated applications related to the functions of the associated applications at the same time, which may cause the associated applications not to operate normally.
Disclosure of Invention
In view of the above technical problem, an application updating method of a terminal device is proposed that solves the above problems, or at least partially solves the above problems.
The invention aims to provide a method for updating a target application program and simultaneously updating related application programs related to functions of the target application program, so as to avoid the occurrence of scenes such as abnormity, crash and the like when all application programs related to a certain function of the application program use the function when the certain function is updated by a certain application program.
A further purpose of the invention is to comprehensively and accurately search the associated application program set, avoid omission and improve the updating accuracy.
Specifically, according to an aspect of the present invention, the present invention provides an application updating method for a terminal device, which is applied to a server connected to a client of the terminal device, the application updating method including:
acquiring update package information of a target application program;
searching a related application program set of the target application program based on the update package information of the target application program to obtain a first application list consisting of the related application program set, wherein the related application program set comprises the target application program;
the first application list is sent to the client, and a second application list returned after the client screens and filters the installed application programs from the first application list is received;
and generating an update package according to the second application list, and sending the update package to the client to install the update package.
Optionally, searching for an associated application set of the target application based on the update package information of the target application, and obtaining a first application list composed of the associated application set, where the method includes:
acquiring a first function set covered by the target application program according to the update package information;
taking the first function set as a screening function set, searching each function in the screening function set item by item, and screening out an application program related to any function in the screening function set as a related application program set;
acquiring a second function set according to the screened associated application program set, wherein the second function set covers the functions of all application programs in the associated application program set;
circularly executing the second function set as a new screening function set, searching each function in the screening function set item by item, screening out a new associated application program set, acquiring the new second function set according to the new associated application program set, wherein the new second function set covers the functions of each application program in the new associated application program set until the new second function set is the same as the second function set in the previous round;
counting the application programs in the obtained related application program set, and removing repeated application programs;
a first list of applications comprised of the set of deduplicated associated applications is generated.
Optionally, searching each function in the screening function set item by item, and screening out an application program related to any function in the screening function set as a related application program set, including:
respectively carrying out operation on the function set of each application program and the screening function set;
and if the operation result of the function set and the screening function set of a certain application program is true, determining that the application program is the associated application program set.
Optionally, when the target application of the terminal device needs to be updated, acquiring update package information of the target application, including:
when a server side puts forward an update request of a target application program, acquiring prestored update package information of the target application program from the server side; or
And when the client proposes an update request of the target application program, receiving update package information of the target application program uploaded by the client.
Optionally, generating an update package according to the second application list includes:
searching the update files of all the application programs in the second application list;
and packaging the update file into an update package.
Optionally, after packaging the update file into an update package, the application update method further includes: generating a first check code of an update package; and is
In the process of sending the update package to the client, the method further comprises the following steps: and issuing the first check code to the client along with the update package.
In particular, according to another aspect of the present invention, the present invention further provides an application updating method of a terminal device, applied to a client on the terminal device, the application updating method including:
when the target application program needs to be updated, receiving a first application list issued by a server, wherein the first application list is composed of a related application program set of the target application program, and the related application program set comprises the target application program;
screening and filtering out installed application programs from the first application list to obtain a second application list, and uploading the second application list to a server;
and receiving an update package generated according to the second application list and issued by the server side, and installing the update package.
Optionally, the step of filtering out the installed applications from the first application list to obtain a second application list includes:
acquiring an installed application list of a client;
matching the version number and the function of the first application list with the installed application list, and screening and filtering application programs installed on the client side in the first application list;
and forming a second application list based on the filtered first application list.
Optionally, installing an update package, comprising:
reading all application program related class loaders, address loaders and dex loaders related to the update package;
acquiring a dex address list of all application programs related in the update package through an address loader;
determining the dex file position corresponding to each application program according to the dex address list;
and loading the dex file of each application program through a dex loader according to the position of the dex file, and updating a dex address list.
Optionally, before installing the update package, the application update method further includes:
and checking the correctness of the update package.
According to the method and the device, when the target application program of the terminal equipment needs to be updated, the update package information of the target application program is obtained, the associated application program set of the target application program is searched based on the update package of the target application program, the first application list consisting of the associated application program set is obtained, the first application list is issued to the client, the second application list returned after the client filters the installed application programs from the first application list is received, the update package is generated according to the second application list, and the update package is issued to the client to install the update package. Based on the scheme provided by the invention, when a certain target application program is updated, the associated application program set of the target application program can be automatically searched, so that the associated application programs related to the functions of the target application program are also updated, and the situations of abnormity, crash and the like when all application programs related to a certain function of the application program use the function are avoided when the certain application program updates the certain function.
Furthermore, the invention searches the screening function set item by item to comprehensively and accurately search the associated application program set of the target application program, thereby avoiding omission and improving the updating accuracy.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter, by way of illustration and not limitation, with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
fig. 1 is a schematic flow chart diagram of an application update method of a terminal device according to one embodiment of the present invention;
fig. 2 is a schematic flowchart of an application updating method of a terminal device according to another embodiment of the present invention;
fig. 3 is a schematic detailed flowchart of an application update method of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic detailed flowchart of an application updating method of a terminal device according to another embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The application program updating method of the terminal equipment provided by the embodiment of the invention mainly relates to two execution main bodies: a server and a client. The server is used for searching the associated application program set of the target application program when the target application program is triggered to be updated. The client is used for carrying out updating and installation on the application programs which are left after the installed application programs are filtered and filtered in a centralized mode for the associated application programs of the target application program. The embodiment of the invention realizes the combined update of the target application program and the application program related to the target application program through the communication and the cooperation of the server and the client. The following describes an application updating method of a terminal device according to an embodiment of the present invention from different execution subject perspectives.
Service terminal
Fig. 1 is a schematic flowchart of an application update method of a terminal device according to one embodiment of the present invention. Referring to fig. 1, in an embodiment of the present invention, the method for updating an application program of a terminal device may include steps S102 to S108.
Step S102, update package information of the target application program is obtained.
Step S104, searching a related application program set of the target application program based on the update package information of the target application program to obtain a first application list consisting of the related application program set. The set of associated applications includes a target application.
And step S106, sending the first application list to the client, and receiving a second application list returned by the client after the client filters the installed application programs from the first application list.
And step S108, generating an update package according to the second application list, and sending the update package to the client to install the update package.
According to the embodiment of the invention, when the target application program of the terminal equipment needs to be updated, the update package information of the target application program is obtained, the associated application program set of the target application program is searched based on the update package of the target application program, the first application list consisting of the associated application program set is obtained, the associated application program set comprises the target application program, then the first application list is issued to the client, the second application list returned after the client filters the installed application program from the first application list is received, the update package is generated according to the second application list, and the update package is issued to the client to install the update package. Based on the scheme provided by the invention, when a certain target application program is updated, the associated application program set of the target application program can be automatically searched, so that the associated application programs related to the functions of the target application program are also updated, and the situations of abnormity, crash and the like when all application programs related to a certain function of the application program use the function are avoided when the certain application program updates the certain function. And the application programs installed on the client can be filtered out by filtering the first application list, so that repeated updating of the installed application programs on the mobile terminal is effectively avoided, and the updating efficiency is further improved.
The update package information mentioned in step S102 may be version information of the target application update. For example, may include a version number of an updated version of the application, included functionality, associated application, and/or file storage location, etc.
The update request of the target application program can be provided through a server side or a client side. In an embodiment of the present invention, when an update request for updating the target application is made through the server, the update package information of the target application, which is stored in advance, may be obtained from the server. In other embodiments of the present invention, when an update request of a target application is made through a client, update package information of the target application uploaded by the client may be received.
In some embodiments of the present invention, step S104 may further include the steps of:
step 1: and acquiring a first function set covered by the target application program according to the update package information.
A function set is a collection of all function names and corresponding function descriptions supported by an application, and may be stored in a database in advance. The first set of functions in this step may be defined as an enum enumeration type to ensure that the order of functions is incremented.
Step 2: and taking the first function set as a screening function set, searching each function in the screening function set item by item, and screening out an application program related to any function in the screening function set as a related application program set.
And step 3: and acquiring a second function set according to the screened associated application program set. Wherein the second set of functions covers the functions of each application in the set of associated applications. It is to be understood that the first set of functions corresponds to a subset of the second set of functions.
The second set of functions in this step may be defined as an enum enumeration type to ensure that the order of functions is incremented.
And 4, step 4: and circularly executing to take the second function set as a new screening function set, searching each function in the screening function set item by item, screening out a new associated application program set, acquiring the new second function set according to the new associated application program set, wherein the new second function set covers the functions of each application program in the new associated application program set until the new second function set is the same as the second function set in the previous round.
And 5: and counting the application programs in the finally obtained associated application program set, and removing repeated application programs.
Step 6: a first list of applications comprised of the set of deduplicated associated applications is generated.
In the embodiment, the target application program and all application programs related to the target application program can be screened out by searching each function in the screening function set item by item, so that a more comprehensive related application program set is obtained, and the searching efficiency of the related application program set is improved.
In some further embodiments, when searching items of functions in the screening function set one by one, and screening out an application program related to any function in the screening function set as an associated application program set, the function set of each application program may be first obtained, and then the function set of each application program is respectively subjected to and operation with the screening function set, if the function set of a certain application program and the screening function set are subjected to and the operation result is true, the application program is determined to be an application program associated with the target application program, and all application programs associated with the target application program are counted to form the associated application program set. Therefore, the application program associated with the target application program can be conveniently and quickly determined through the operation of the function set of each application program and the screening function set, so that the associated application program set is obtained, and the updating efficiency is improved.
Illustratively, assume that the first set of functions corresponding to the target application is the screening function set a. The functions covered by the screening function set a are function a, function B and function C, if the functions covered by the function set B of one application program are function a, function d and function e, and the functions covered by the function set C of another application program are function f, function g and function h. At this time, when the function set B and the function set C are respectively operated and compared with the screening function set a, it can be obtained that the operation result of the function set B and the screening function set a is true, and the operation result of the function set C and the screening function set a is false. That is, in this case, the application corresponding to the function set B is a related application that needs to be updated together with the target application and needs to be screened, and the application corresponding to the function set C is an application that does not need to be updated together with the target application and does not need to be screened.
In addition, to facilitate statistics of the applications associated with the target application, after determining that the application is the application associated with the target application, identification information may be added to the application associated with the target application (for example, a tag may be added to the application associated with the target application), and then all the applications associated with the target application are obtained according to the identification information statistics.
In some embodiments of the invention, generating the update package from the second application list may include: searching the update files of all the application programs in the second application list; and packaging the update file into an update package. By searching and packaging the update files of the application programs in the second application list, the update files can be quickly transmitted, and the update efficiency is improved.
In the data transmission process, illegal data can be transmitted due to illegal tampering, and potential safety hazards are caused. For this case, the first check code of the update package may be further generated after the update file is packaged into the update package. Specifically, the first check code may be generated according to a preset calculation manner. And then, the first check code and the update package are issued to the client together, so that the client checks the update package to determine the correctness of the update package, and the safety of data transmission is ensured. The preset calculation mode may be set according to an actual application requirement, for example, an MD5 Message Digest Algorithm (MD5 Message-Digest Algorithm, MD5 Algorithm for short), that is, the server may generate the first check code through the MD5 Algorithm. The MD5 algorithm is a widely used cryptographic hash function that generates a 128-bit hash value to ensure the integrity of the message transmission.
In addition, after step S108, the server may also receive an update result returned by the client, so as to know the update condition of the application program in time.
Client terminal
Fig. 2 is a schematic flowchart of an application updating method of a terminal device according to another embodiment of the present invention. Referring to fig. 2, in an embodiment of the present invention, the method for updating an application program of a terminal device may include steps S202 to S206.
Step S202, when the target application program needs to be updated, a first application list issued by the server is received. The first application list is composed of a set of associated applications of the target application, the set of associated applications including the target application.
And step S204, screening and filtering the installed application programs from the first application list to obtain a second application list, and uploading the second application list to the server.
And step S206, receiving the update package generated according to the second application list and issued by the server, and installing the update package.
In the embodiment of the invention, when the target application program needs to be updated, a first application list composed of an associated application program set of the target application program and transmitted by the server is received, the installed application program is further screened and filtered from the first application list to obtain a second application list, the second application list is uploaded to the server, then an update package generated according to the second application list and transmitted by the server is received, and the received update package is installed. By adopting the embodiment of the invention, the target application program and the application program associated with a certain function of the target application program can be updated together, so that the scenes of abnormity, crash and the like of all the application programs associated with the certain function of the target application program when the function is used are avoided, and the client can filter the application programs installed on the client in the first application list, so that the repeated updating of the installed application programs on the mobile terminal can be effectively avoided, and the updating efficiency is further improved.
In some embodiments of the present invention, the step of filtering out the installed applications from the first application list to obtain a second application list further may include: acquiring an installed application list of a client; matching the version number and the function of the first application list with the installed application list, and screening and filtering application programs installed on the client side in the first application list; and forming a second application list based on the filtered first application list. Here the list of installed applications consists of a set of installed applications on the client. The set of installed applications may include historical versions of the target application and historical versions of applications associated with the target application.
When the version numbers and functions of the first application list and the installed application list are matched, specifically, one application program in the first application list may be matched with the version numbers and functions of the application programs in the installed application list. If a certain application program in the first application list is consistent with the version number and the function of the application program in the installed application list, it is indicated that the application program is an application program installed on the client, and the application program needs to be filtered from the first application list, so that a second application list is generated based on the application programs left in the filtered first application list.
The present invention provides an alternative installation for installation of update packages. For example, the class loader, the address loader and the dex loader of all the application programs related to the update package can be read first, then the dex address lists of all the application programs related to the update package are obtained through the address loader, then the dex file positions corresponding to all the application programs are determined according to the dex address lists, finally the dex files of all the application programs are loaded through the dex loader according to the dex file positions, the dex address lists are updated, and therefore the updating and installation of all the application programs in the update package can be completed.
After the client finishes the updating and installation of each application program in the updating package, the client can also return an updating result to the server, so that the server can know the updating and installation condition in time.
In consideration of the security of data transmission, the update package may also be checked before being installed to determine the correctness of the update package. Specifically, a first check code of an update package issued by a server can be received, wherein the first check code is generated by the server according to a preset calculation mode; the client calculates a second check code of the update package received by the client through the same preset calculation mode as that used by the server; comparing whether the first check code and the second check code are equal; if the first check code is equal to the second check code, the check is passed; and if the first check code and the second check code are not equal, the check is not passed. The preset calculation mode may be set according to actual application requirements, and may be, for example, an MD5 Message Digest Algorithm (MD5 Message-Digest Algorithm, MD5 Algorithm for short). That is, the server generates the first check code through the MD5 algorithm, the client generates the second check code through the MD5 algorithm that is the same as the server, and the correctness of the update package is checked through the comparison result between the first check code and the second check code. The MD5 algorithm is a widely used cryptographic hash function that generates a 128-bit hash value to ensure the integrity of the message transmission.
Wherein, when comparing whether the second check code and the first check code are equal, it is possible to determine whether the second check code and the first check code are equal by comparing the sizes of the character strings.
In some embodiments, after updating the dex address list, a restart command may also be sent to the application program that has updated the dex address list to trigger the application program to restart, thereby completing the update. And then, returning the updating result to the server so that the server can know the updating condition in time.
In order to make the technical means of the present invention more clearly understood, a detailed description is provided below of specific embodiments of an application program updating method of a terminal device in some alternative embodiments of the present invention.
Fig. 3 is a schematic detailed flowchart of an application updating method of a terminal device according to an embodiment of the present invention. Referring to fig. 3, the method for updating an application program of a terminal device of the present embodiment may include steps S302 to S334.
Step S302, the server stores the update package information of each application program.
Step S304, the server side pushes an update request of the target application program to the client side.
Step S306, the server receives the request result returned by the client in response to the update request.
Step S308, judging whether the request updating is successful according to the request result. If the request is successful, go to step S310; if the request fails to update, the process ends.
In step S310, the server obtains update package information of the target application program.
In step S312, the server searches for the associated application set of the target application to obtain a first application list. The first application list of this step is made up of a set of associated applications. The set of associated applications includes a target application.
In step S314, the server issues the first application list to the client.
In step S316, the client screens out the installed application programs from the first application list to obtain a second application list.
Step S318, the client uploads the second application list to the server.
In step S320, the server searches for the update file of each application program in the second application list.
In step S322, the server packages the update file into an update package, and generates a first check code of the update package.
In step S324, the server issues the update package and the first check code to the client.
In step S326, the client calculates a second check code of the update package.
In step S328, the client determines whether the first check code is equal to the second check code. If yes, go to step S330; if not, the process ends.
In step S330, the client pushes and installs the corresponding update file to the plurality of applications corresponding to the update package.
In step S332, the client issues a restart command to the application that has been updated and installed.
In step S334, the client returns the update result to the server.
In the method for updating an application program of a terminal device in this embodiment, when a certain target application program is updated, a server may submit an update request of the target application program, and then obtain update package information of the target application program through the server, so as to search for an associated application program set of the target application program. By adopting the scheme of the embodiment, when a certain target application program is updated, the associated application program set of the target application program can be automatically searched, so that the associated application programs related to the functions of the target application program are also updated, and the situations of abnormity, crash and the like when all application programs related to a certain function of the application program use the function when the certain application program updates the certain function are avoided. And the application programs installed on the client can be filtered out by filtering the first application list, so that repeated updating of the installed application programs on the mobile terminal is effectively avoided, and the updating efficiency is further improved.
Fig. 4 is a schematic detailed flowchart of an application updating method of a terminal device according to another embodiment of the present invention. Referring to fig. 4, the method for updating an application program of a terminal device of the present embodiment may include steps S402 to S430.
In step S402, the client makes a target application update request.
Step S404, the client acquires the update package information of the target application program
In step S406, the client uploads the update package information of the target application program to the server.
Step S408, the server side searches the associated application program set of the target application program to obtain a first application list. The first application list in the step consists of a set of associated applications. The set of associated applications includes a target application.
Step S410, the server issues the first application list to the client.
In step S412, the client selects and filters out the installed application programs from the first application list to obtain a second application list.
In step S414, the client uploads the second application list to the server.
In step S416, the server searches for the update file of each application program in the second application list.
Step S418, the server packages the update file into an update package, and generates a first check code of the update package.
In step S420, the server issues the update package and the first check code to the client.
In step S422, the client obtains the second check code of the update package according to the calculation.
In step S424, the client determines whether the first check code is equal to the second check code. If yes, go to step S426; if not, the flow is ended.
In step S426, the corresponding update file is pushed to the plurality of applications corresponding to the update package and installed.
In step S428, the client issues a restart command to the application that has been updated and installed.
Step S430, the client returns the update result to the server.
In the application updating method of the terminal device in this embodiment, when a certain target application is updated, the client may submit an update request of the target application, and then locally obtain update package information of the target application at the client and upload the update package information to the server, so as to search for the associated application set of the target application through the server. By adopting the scheme of the embodiment, when a certain target application program is updated, the associated application program set of the target application program can be automatically searched, so that the associated application programs related to the functions of the target application program are also updated, and the situations of abnormity, crash and the like when all application programs related to a certain function of the application program use the function when the certain application program updates the certain function are avoided. And the application programs installed on the client can be filtered out by filtering the first application list, so that repeated updating of the installed application programs on the mobile terminal is effectively avoided, and the updating efficiency is further improved.
According to any one embodiment or a combination of multiple embodiments, the embodiment of the invention can achieve the following beneficial effects:
according to the embodiment of the invention, when the target application program of the terminal equipment needs to be updated, the associated application program set of the target application program can be automatically searched, and all application programs in the associated application program set are updated together, so that the scenes of abnormity, collapse and the like of all application programs associated with a certain function of the target application program when the function is used are avoided. And the application programs installed on the client can be filtered out by filtering the first application list, so that repeated updating of the installed application programs on the mobile terminal is effectively avoided, and the updating efficiency is further improved. Meanwhile, the embodiment of the invention can screen the target application program and all the associated application programs of the target application program by searching each function in the screening function set item by item, so as to obtain a more comprehensive associated application program set and improve the searching efficiency of the associated application program set.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.

Claims (10)

1. An application program updating method of a terminal device, which is applied to a server connected with a client of the terminal device, comprises the following steps:
acquiring update package information of a target application program;
searching a related application program set of the target application program based on the update package information of the target application program to obtain a first application list consisting of the related application program set, wherein the related application program set comprises the target application program;
sending the first application list to the client, and receiving a second application list returned by the client after the client screens and filters the installed application programs from the first application list;
and generating an update package according to the second application list, and sending the update package to the client to install the update package.
2. The application program updating method according to claim 1, wherein the searching for the associated application program set of the target application program based on the update package information of the target application program to obtain the first application list consisting of the associated application program set comprises:
acquiring a first function set covered by the target application program according to the update package information;
taking the first function set as a screening function set, searching each function in the screening function set item by item, and screening out an application program related to any function in the screening function set as the associated application program set;
acquiring a second function set according to the screened associated application program set, wherein the second function set covers the functions of all application programs in the associated application program set;
circularly executing the second function set as a new screening function set, searching each function in the screening function set item by item, screening out a new associated application program set, and acquiring a new second function set according to the new associated application program set, wherein the new second function set covers the functions of each application program in the new associated application program set until the new second function set is the same as the second function set in the previous round;
counting the application programs in the obtained related application program set, and removing repeated application programs;
generating the first application list consisting of the set of associated applications after deduplication.
3. The method for updating the application program of the terminal device according to claim 2, wherein the searching the functions in the screening function set item by item to screen out the application program related to any function in the screening function set as the associated application program set comprises:
respectively carrying out operation on the function set of each application program and the screening function set;
if the operation result of the function set of a certain application program and the screening function set is true, determining that the application program is the application program associated with the target application program;
and counting all the application programs associated with the target application program to form the associated application program set.
4. The method for updating the application program of the terminal device according to claim 1, wherein acquiring the update package information of the target application program when the target application program of the terminal device needs to be updated comprises:
when the server side provides an update request of the target application program, obtaining prestored update package information of the target application program from the server side; or
And when the client side makes an update request of the target application program, receiving update package information of the target application program uploaded by the client side.
5. The method for updating the application program of the terminal device according to claim 1, wherein the generating an update package according to the second application list comprises:
searching the update files of all application programs in the second application list;
and packaging the update file into the update package.
6. The application updating method of the terminal device according to claim 5, wherein after packaging the update file into the update package, the method further comprises:
generating a first check code of the update package; and is
In the process of sending the update package to the client, the method further includes: and issuing the first check code to the client along with the update package.
7. An application program updating method of a terminal device, which is applied to a client on the terminal device, comprises the following steps:
when a target application program needs to be updated, receiving a first application list issued by a server, wherein the first application list is composed of a related application program set of the target application program, and the related application program set comprises the target application program;
screening and filtering out installed application programs from the first application list to obtain a second application list, and uploading the second application list to the server;
and receiving an update package generated according to the second application list and issued by the server side, and installing the update package.
8. The method for updating the application program of the terminal device according to claim 7, wherein the step of filtering out the installed application programs from the first application list to obtain a second application list comprises:
acquiring an installed application list of the client;
performing version number and function matching on the first application list and the installed application list, and screening and filtering application programs installed on the client side in the first application list;
forming the second application list based on the filtered first application list.
9. The application updating method of the terminal device according to claim 7, wherein the installing the update package includes:
reading all application program related class loaders, address loaders and dex loaders related to the update package;
acquiring a dex address list of all application programs related in the update package through the address loader;
determining a dex file position corresponding to each application program according to the dex address list;
and loading the dex files of the application programs through the dex loader according to the position of the dex file, and updating the dex address list.
10. The application updating method of a terminal device according to claim 7, wherein before installing the update package, the method further comprises:
and checking the correctness of the update package.
CN202110349529.4A 2021-03-31 2021-03-31 Application program updating method of terminal equipment Active CN112988195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110349529.4A CN112988195B (en) 2021-03-31 2021-03-31 Application program updating method of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110349529.4A CN112988195B (en) 2021-03-31 2021-03-31 Application program updating method of terminal equipment

Publications (2)

Publication Number Publication Date
CN112988195A true CN112988195A (en) 2021-06-18
CN112988195B CN112988195B (en) 2023-03-14

Family

ID=76338709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110349529.4A Active CN112988195B (en) 2021-03-31 2021-03-31 Application program updating method of terminal equipment

Country Status (1)

Country Link
CN (1) CN112988195B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1124934A (en) * 1997-06-30 1999-01-29 Hitachi Software Eng Co Ltd Distribution management method for client program in client server system
CN102523268A (en) * 2011-12-08 2012-06-27 北京新媒传信科技有限公司 Client side upgrading method and system
CN105653262A (en) * 2015-12-21 2016-06-08 Tcl集团股份有限公司 Application program upgrade method, device and system
CN105677392A (en) * 2015-12-29 2016-06-15 小米科技有限责任公司 Method and apparatus for recommending applications
CN105989122A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Application recommendation method and device
CN106649588A (en) * 2016-11-15 2017-05-10 北京奇虎科技有限公司 Way, device, system of obtaining installed Apps list
CN108037941A (en) * 2017-12-27 2018-05-15 掌阅科技股份有限公司 Application program update method, electronic equipment based on public plug-in unit, storage medium
CN108111330A (en) * 2017-11-06 2018-06-01 北京趣拿软件科技有限公司 The acquisition of updated data package, the update method of application component and device
CN109871217A (en) * 2017-12-01 2019-06-11 龙芯中科技术有限公司 Application program installation method and device based on application shop
JP2020023314A (en) * 2018-07-25 2020-02-13 株式会社デンソー Vehicle electronic control system, method and program for determining whether program update is accepted
CN111736864A (en) * 2020-05-27 2020-10-02 杭州易现先进科技有限公司 Application software content distribution method, device and system and computer equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1124934A (en) * 1997-06-30 1999-01-29 Hitachi Software Eng Co Ltd Distribution management method for client program in client server system
CN102523268A (en) * 2011-12-08 2012-06-27 北京新媒传信科技有限公司 Client side upgrading method and system
CN105989122A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Application recommendation method and device
CN105653262A (en) * 2015-12-21 2016-06-08 Tcl集团股份有限公司 Application program upgrade method, device and system
CN105677392A (en) * 2015-12-29 2016-06-15 小米科技有限责任公司 Method and apparatus for recommending applications
CN106649588A (en) * 2016-11-15 2017-05-10 北京奇虎科技有限公司 Way, device, system of obtaining installed Apps list
CN108111330A (en) * 2017-11-06 2018-06-01 北京趣拿软件科技有限公司 The acquisition of updated data package, the update method of application component and device
CN109871217A (en) * 2017-12-01 2019-06-11 龙芯中科技术有限公司 Application program installation method and device based on application shop
CN108037941A (en) * 2017-12-27 2018-05-15 掌阅科技股份有限公司 Application program update method, electronic equipment based on public plug-in unit, storage medium
JP2020023314A (en) * 2018-07-25 2020-02-13 株式会社デンソー Vehicle electronic control system, method and program for determining whether program update is accepted
CN111736864A (en) * 2020-05-27 2020-10-02 杭州易现先进科技有限公司 Application software content distribution method, device and system and computer equipment

Also Published As

Publication number Publication date
CN112988195B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN108196878B (en) Method and device for generating application program installation package, electronic equipment and storage medium
US8291402B2 (en) Using system fingerprints to accelerate package dependency resolution
US20160267270A1 (en) Method and system for fast inspection of android malwares
US10387652B2 (en) Firmware map data
KR101582601B1 (en) Method for detecting malignant code of android by activity string analysis
CN103559065A (en) Method and system for OTA (Over-the-Air Technology) upgrade
CN111897846A (en) Cache data verification method, device, equipment and storage medium
CN109815697B (en) Method and device for processing false alarm behavior
CN109324821B (en) Self-service terminal system version management method
CN106843947B (en) Method and device for processing code defects
CN111538523A (en) Differential upgrading method, device and storage medium
CN112988195B (en) Application program updating method of terminal equipment
CN111385613B (en) Television system repairing method, storage medium and application server
CN115543429A (en) Project environment building method, electronic equipment and computer readable storage medium
CN111931161B (en) RISC-V processor based chip verification method, apparatus and storage medium
US20030014744A1 (en) Method of checking at least one software application installed on a data processing sytstem
CN113904955A (en) Detection method, device and system of data transmission link
CN113434139A (en) Image packaging processing method and device, server and storage medium
CN112685304A (en) Front-end information standard checking method, system, device and storage medium
CN111142965A (en) Language configuration method and device, electronic equipment and storage medium
CN114647870A (en) Electronic device and data integrity checking method
CN111443934B (en) Gray scale user determination method, device, equipment and storage medium
CN114490346A (en) Multi-bin patch verification method and device, code server and readable storage medium
CN106021367B (en) Method and terminal for searching backup data
CN111427607A (en) Configuration file repair method, device 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
TA01 Transfer of patent application right

Effective date of registration: 20220317

Address after: 430051 No. b1336, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province

Applicant after: Yikatong (Hubei) Technology Co.,Ltd.

Address before: 430056 building B (qdxx-f7b), No.7 building, qiedixiexin science and Technology Innovation Park, South taizihu innovation Valley, Wuhan Economic and Technological Development Zone, Hubei Province

Applicant before: HUBEI ECARX TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant