CN114035814A - Application installation method and device - Google Patents

Application installation method and device Download PDF

Info

Publication number
CN114035814A
CN114035814A CN202111362473.2A CN202111362473A CN114035814A CN 114035814 A CN114035814 A CN 114035814A CN 202111362473 A CN202111362473 A CN 202111362473A CN 114035814 A CN114035814 A CN 114035814A
Authority
CN
China
Prior art keywords
installation package
information
identification information
installation
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111362473.2A
Other languages
Chinese (zh)
Inventor
邓志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202111362473.2A priority Critical patent/CN114035814A/en
Publication of CN114035814A publication Critical patent/CN114035814A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/64Retargetable

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an application installation method and device, electronic equipment and a readable storage medium, and belongs to the technical field of electronics. Wherein the method comprises the following steps: receiving a download input for a first installation package, the first installation package corresponding to a target application; responding to the downloading input, and acquiring first identification information of the first installation package; under the condition that the first identification information is matched with second identification information of a second installation package in the electronic equipment, respectively acquiring first version information of the first installation package and second version information of the second installation package; installing the target application through the second installation package based on difference information between the first version information and the second version information.

Description

Application installation method and device
Technical Field
The application belongs to the technical field of electronics, and particularly relates to an application installation method and device.
Background
Currently, with the popularization of electronic devices and the prosperity of application ecology, users frequently perform input for downloading applications in electronic devices. Application scenarios are e.g. an application is used for a period of time and then unloaded by the user, and when used again, the application is re-downloaded again.
Generally, a user downloads an application in an application store through a preset input, so that an electronic device downloads an installation package of the application from the application store, and further, the application is installed to the electronic device through the downloaded installation package, so that the user can use the application normally in the electronic device.
It can be seen that, in the prior art, a user frequently downloads the same application in the electronic device, which results in more traffic consumption and time consumption.
Disclosure of Invention
An object of the embodiments of the present application is to provide an application installation method, which can solve the problem in the prior art that a user frequently downloads the same application in an electronic device, resulting in more traffic consumption and time consumption.
In a first aspect, an embodiment of the present application provides an application installation method, where the method includes: receiving a download input for a first installation package, the first installation package corresponding to a target application; responding to the downloading input, and acquiring first identification information of the first installation package; under the condition that the first identification information is matched with second identification information of a second installation package in the electronic equipment, respectively acquiring first version information of the first installation package and second version information of the second installation package; installing the target application through the second installation package based on difference information between the first version information and the second version information.
In a second aspect, an embodiment of the present application provides an application installation apparatus, including: a receiving module for receiving a download input for a first installation package, the first installation package corresponding to a target application; a first obtaining module, configured to obtain first identification information of the first installation package in response to the download input; the second obtaining module is used for respectively obtaining first version information of the first installation package and second version information of a second installation package under the condition that the first identification information is matched with second identification information of the second installation package in the electronic equipment; an installation module, configured to install the target application through the second installation package based on difference information between the first version information and the second version information.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In this way, in the embodiment of the present application, in the case where a download input of the target application by the user is received, in response to the download input, first, for the first installation package for installing the target application, the corresponding first identification information thereof is acquired from the application store, the website, or the like. The first identification information includes parameters related to application information corresponding to the installation package, such as package name information. Then, matching the acquired first identification information with identification information of an installation package prestored in the electronic equipment; and if the first identification information is matched with the second identification information of the pre-stored second installation package, respectively acquiring the first version information of the first installation package and the second version information of the second installation package, and finishing the installation of the target application through the second installation package by combining the difference of the two installation packages due to different versions. It can be seen that, in the embodiment of the application, before the downloading of the first installation package is completed, the identification information of the installation package of the target application is firstly matched in the electronic device, and after the matching is successful, the target application is installed in the electronic device through the existing installation package further based on the difference between the version information respectively corresponding to the two matched identification information, so that the step of downloading the installation package again is omitted, and the problems of more traffic consumption and time consumption caused by frequent downloading of the same application in the electronic device by a user in the prior art are effectively solved. In addition, the embodiment of the application relates to a matching process of the first identification information and a large amount of identification information, and compared with the matching process of the first identification information and a large amount of installation packages, the purpose of optimizing the processing process can be achieved, and the problems of high cost and the like caused by overlarge data processing amount are solved.
Drawings
FIG. 1 is a flow chart of an application installation method of an embodiment of the present application;
2-4 are schematic views of controls displayed in an electronic device according to an embodiment of the present application;
FIG. 5 is a block diagram of an application installation apparatus of an embodiment of the present application;
fig. 6 is one of the hardware configuration diagrams of the electronic device according to the embodiment of the present application;
fig. 7 is a second schematic diagram of a hardware structure of the electronic device according to the embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be described below clearly with reference to the drawings of the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments that can be derived from the embodiments of the present application by one of ordinary skill in the art are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The application installation method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 shows a flowchart of an application installation method according to an embodiment of the present application, which is applied to an electronic device, and includes:
step 110: a download input is received for a first installation package, the first installation package corresponding to a target application.
The download input comprises touch input performed by a user on a screen, and is not limited to input such as clicking, sliding and dragging; the download input may also be a blank input, a gesture action, a facial action, etc. of the user, and the download input further includes an input of a physical key on the device by the user, and is not limited to a press input, etc. Moreover, the download input includes one or more inputs, wherein the plurality of inputs may be continuous or intermittent.
The download input is used to download the target application in the electronic device.
For example, the user clicks a "download" control corresponding to the target application in an application store, an application market, or a website.
The form of the control in the present application is not limited to: character identification and image identification.
Step 120: in response to the download input, first identification information of the first installation package is acquired.
Optionally, in the process of downloading the first installation package, or before downloading the first installation package, the first identification information of the first installation package is acquired by analyzing the first installation package or by extracting information of the downloaded page.
The electronic equipment can acquire the first installation package from the server to download.
The first identification information includes a parameter related to the first installation package and is used for indicating application information corresponding to the first installation package, such as package name information and the like.
As can be appreciated, the first identification information corresponds to the target application.
Step 130: and under the condition that the first identification information is matched with the second identification information of the second installation package in the electronic equipment, respectively acquiring the first version information of the first installation package and the second version information of the second installation package.
Before this step, second identification information of the second installation package is stored in the electronic device in advance.
Correspondingly, the second identification information includes a parameter related to the second installation package for indicating application information corresponding thereto, such as package name information and the like.
Correspondingly, in the present embodiment, the second identification information corresponds to the target application.
The parameter type included in the first identification information is the same as the parameter type included in the second identification information, so that matching is facilitated.
And under the condition that the first identification information is matched with the second identification information, the probability that the installation package of the target application exists in the electronic equipment is high, and then the first version information of the first installation package and the second version information of the second installation package are further obtained.
Before this step, second version information of the second installation package is stored in the electronic device in advance.
In addition, in the process of downloading the first installation package, or before downloading the first installation package, the first version information of the first installation package is acquired by analyzing the first installation package or extracting the information of the downloaded page.
Wherein, for the explanation of matching, the identification information of the two installation packages can be the same; it is also possible that the identification information of the two installation packages are different, but both indicate the same application. The purpose of matching is: and judging whether the electronic equipment has an installation package of the target application.
Step 140: and installing the target application through the second installation package based on the difference information between the first version information and the second version information.
In this step, since the electronic device has a high probability of having the installation package of the target application, the target application may be installed in the electronic device by combining the difference content formed by the difference in version between the two installation packages through the second installation package existing in the electronic device without downloading the first installation package.
In this way, in the embodiment of the present application, in the case where a download input of the target application by the user is received, in response to the download input, first, for the first installation package for installing the target application, the corresponding first identification information thereof is acquired from the application store, the website, or the like. The first identification information includes parameters related to application information corresponding to the installation package, such as package name information. Then, matching the acquired first identification information with identification information of an installation package prestored in the electronic equipment; and if the first identification information is matched with the second identification information of the pre-stored second installation package, respectively acquiring the first version information of the first installation package and the second version information of the second installation package, and finishing the installation of the target application through the second installation package by combining the difference of the two installation packages due to different versions. It can be seen that, in the embodiment of the application, before the downloading of the first installation package is completed, the identification information of the installation package of the target application is firstly matched in the electronic device, and after the matching is successful, the target application is installed in the electronic device through the existing installation package further based on the difference between the version information respectively corresponding to the two matched identification information, so that the step of downloading the installation package again is omitted, and the problems of more traffic consumption and time consumption caused by frequent downloading of the same application in the electronic device by a user in the prior art are effectively solved. In addition, the embodiment of the application relates to a matching process of the first identification information and a large amount of identification information, and compared with the matching process of the first identification information and a large amount of installation packages, the purpose of optimizing the processing process can be achieved, and the problems of high cost and the like caused by overlarge data processing amount are solved.
In a flow of an application installation method according to another embodiment of the present application, the first identification information includes first package name information; the second identification information includes second packet name information.
In the present embodiment, the identification information of the installation package includes package name information (PackageName).
The package name information and the application information corresponding to the installation packages have a unique corresponding relation, and when the package name information of the two installation packages is the same, it can be determined that both the first installation package and the second installation package are used for installing the target application.
In this embodiment, the electronic device may pre-store the package name information of the installation package, so as to match the package name information of the installation package to be downloaded with the pre-stored package name information before completing downloading the installation package; if the matching is successful, the fact that the installation package of the same application exists in the electronic equipment is indicated, and therefore the installation task can be directly carried out without continuous downloading.
In the flow of the application installation method according to another embodiment of the present application, before step 140, the method further includes:
step A1: and acquiring storage path information corresponding to the second identification information.
In this step, the second identification information is prestored, and the storage path information corresponding to the second identification information is prestored.
The storage path information includes a storage path of the second installation package corresponding to the second identification information.
Step A2: and acquiring the second installation package under the condition that the second installation package is found in the electronic equipment based on the storage path information.
Typically, a user may simultaneously clean up the installation package when uninstalling an application. Therefore, in this step, the second installation package is searched according to the pre-stored storage path of the second installation package. If the second installation package is cleared, the second installation package cannot be found, and the first installation package can be continuously downloaded; if the second installation package is not cleared, the second installation package can be found in the electronic equipment.
Optionally, in this embodiment, the installation of the target application may be completed based on the search result and the user interaction manner.
Referring to fig. 2, if the second installation package is found in the electronic device, a control such as a window shown in fig. 2 pops up, and after the user clicks the "yes" option, the installation is performed directly based on the second installation package (i.e., a.apk in the drawing).
In addition, after the user clicks the "no" selection, the first installation package can continue to be downloaded.
In this embodiment, when the identification information of the two installation packages is successfully matched, the second installation package may be found in the electronic device based on a pre-stored storage path of the second installation package. As can be seen, the embodiment provides a specific implementation manner, so that after the matching is successful, the second installation package is quickly found in the electronic device based on the pre-stored storage path.
In the flow of the application installation method according to another embodiment of the present application, step 140 includes:
substep B1: and installing the target application through the second installation package under the condition that the first version information is lower than or equal to the second version information.
Optionally, the version information includes an application version number (AppVersion).
Generally, for any application, as the demand of a user increases and the technology is updated, new versions are continuously pushed out, each version corresponds to a version number, and the longer the version is from the current time, the lower the version number is.
For example, for a target application, including multiple versions 1.0, 2.0, 3.0, 4.0, etc., the larger the number, the higher the version number, and the closer the launch time of the version to the current time.
In this step, in a case where the first version information is lower than or equal to the second version information, the second installation package already existing in the electronic device is a higher (newer) version, so that the target application is installed directly through the second installation package to ensure that the installed target application is a newer version.
Optionally, in this embodiment, the installation of the target application may be completed in combination with a user interaction manner.
Referring to fig. 3, if the first version information is lower than the second version information, a control such as a window shown in fig. 3 pops up, and after the user clicks the "yes" option, the user directly installs the installation package based on the second installation package (i.e., a.apk in the drawing).
In addition, after the user clicks the "no" selection, the first installation package can continue to be downloaded.
Alternatively, sub-step B2: and under the condition that the first version information is higher than the second version information, acquiring a differential installation package based on the difference information, and installing the target application through the differential installation package and the second installation package.
Optionally, the differential installation package is downloaded from a server.
For example, the electronic device may upload the first version information and the second version information to the server, so that the server sends the differential installation package for downloading by the electronic device.
In this step, in the case where the first version information is higher than the second version information, the second installation package already existing in the electronic device is a lower (older) version, so that the differential installation package is downloaded based on the difference between the two versions; further, the differential installation package and the second installation package are combined and packaged, so that the target application is installed based on the combined and packaged installation package, and the target application is ensured to be installed to be a newer version.
Optionally, in this embodiment, the installation of the target application may be completed in combination with a user interaction manner.
Referring to fig. 4, if the first version information is higher than the second version information, a control such as a window shown in fig. 4 pops up, and after the user clicks the "yes" option, the differential installation package is downloaded, and installation is performed through the installation package in which the second installation package (i.e., a.apk in the drawing) and the differential installation package are combined.
In addition, after the user clicks the "no" selection, the first installation package can continue to be downloaded.
In this embodiment, before installing the target application, the comparison of versions is also involved. On the one hand, it can be ensured that the version of the installed target application is a higher version; on the other hand, by downloading the differential installation package instead of downloading the complete installation package, the consumption of flow and the consumption of time can be reduced.
In the flow of the application installation method according to another embodiment of the present application, before step 110, the method further includes:
step C1: and under the condition of downloading the second installation package, acquiring second identification information, second version information and storage path information of the second installation package.
In this step, when it is detected that the downloading of the installation package (e.g., the second installation package) in the electronic device is completed, the second installation package is parsed to obtain the second identification information and the second version information of the second installation package.
Further, a storage path (ApkPath) of the second installation package is acquired.
Optionally, in the downloading process, a storage path of the second installation package is obtained based on a storage location of the second installation package.
Step C2: and storing the second identification information, the second version information and the storage path information to the electronic equipment in an associated manner.
In this step, the second identification information, the second version information, and the storage path information are bound together and stored into a database of the electronic device for matching or the like.
In this embodiment, if the identification information is matched before the first installation package is downloaded, the relevant data may be recorded when the installation package downloading action is monitored. If the matching of the identification information is carried out in the process of downloading the first installation package, the relevant data can be recorded when the downloading action of the installation package is monitored to be completed.
In this embodiment, the electronic device may monitor whether the downloading of the installation package is completed in real time, and automatically record the identification information and the version information of the installation package and the storage path of the installation package in the database when the downloading of the installation package is completed; and then, before downloading the installation package or in the process of downloading the installation package, acquiring identification information, version information and the like of the installation package to be downloaded, matching in a database to combine a matching result, taking corresponding measures and reducing the downloading of repeated installation packages as much as possible, thereby reducing the flow waste and time waste caused by downloading the repeated installation packages.
In the flow of the application installation method according to another embodiment of the present application, after step 110, the method further includes:
step D1: in response to the download input, the first installation package is downloaded at a first download speed.
In this embodiment, the first installation package is downloaded while matching the first identification information of the first installation package.
Step D2: and downloading the first installation package at a second downloading speed under the condition that the first identification information of the first installation package is not matched with the identification information of any installation package in the electronic equipment.
Wherein the first download speed is less than the second download speed.
In the step, before the matching result is determined, downloading the first installation package at a lower speed, and if the matching fails, indicating that the installation package of the target application does not exist in the electronic equipment, so that the first installation package is continuously downloaded at a higher speed until the downloading is completed; further, the target application is installed based on the first installation package.
In this embodiment, the first download speed is lower than the second download speed, that is, the download speed is lower in the matching process, so as to reduce the waste of the traffic; and after the matching fails, the downloading speed is increased so as to reduce the waste of time.
Optionally, the first download speed is the limited download speed, and the second download speed is the resumed download speed.
And if the matching is successful, indicating that the target application installation package exists in the electronic equipment, and stopping downloading the first installation package. And because the first downloading speed is the downloading speed after limitation, too much flow waste cannot be caused.
Alternatively, after the download of the first installation package is stopped, the downloaded part of the first installation package may be automatically culled.
In this embodiment, in the case of downloading the target application, first, the first installation package is downloaded at a relatively low speed, and meanwhile, the first identification information of the analyzed first installation package is matched with an identification information database prestored in the electronic device. If the matching fails, recovering the higher speed to complete the downloading; and if the matching is successful, stopping downloading. Therefore, the embodiment is based on a conventional installation package downloading mode, and preferably downloads at a lower speed, so that the waste of traffic is reduced as much as possible; furthermore, after the matching fails, the method can restore the full downloading at a higher speed, and the waste of time is reduced as much as possible.
In summary, the application installation method is provided to intelligently judge whether the installation package of the same application exists in the electronic device when the user downloads the installation package. If the application installation package exists, the user is intelligently prompted to carry out differentiation processing aiming at the installation package to be downloaded (or being downloaded) and the two existing installation package versions, the situation that the user spends redundant flow and waiting time in the scene that the electronic equipment repeatedly downloads the same application installation package is avoided, the flow is saved on the premise that the user requirements are met, and the user experience is improved. The matching process, the download control process and the like related in the application can be completed by a global download management module in the electronic equipment.
In the application installation method provided in the embodiment of the present application, the execution main body may be an application installation apparatus, or a control module of the application installation apparatus for executing the application installation method. In the embodiment of the present application, an application installation apparatus executing an application installation method is taken as an example, and the application installation apparatus provided in the embodiment of the present application is described.
Fig. 5 shows a block diagram of an application installation apparatus according to another embodiment of the present application, the apparatus comprising:
a receiving module 10, configured to receive a download input for a first installation package, where the first installation package corresponds to a target application;
a first obtaining module 20, configured to obtain first identification information of the first installation package in response to a download input;
a second obtaining module 30, configured to obtain first version information of the first installation package and second version information of the second installation package respectively when the first identification information matches with second identification information of the second installation package in the electronic device;
and an installation module 40, configured to install the target application through the second installation package based on difference information between the first version information and the second version information.
In this way, in the embodiment of the present application, in the case where a download input of the target application by the user is received, in response to the download input, first, for the first installation package for installing the target application, the corresponding first identification information thereof is acquired from the application store, the website, or the like. The first identification information includes parameters related to application information corresponding to the installation package, such as package name information. Then, matching the acquired first identification information with identification information of an installation package prestored in the electronic equipment; and if the first identification information is matched with the second identification information of the pre-stored second installation package, respectively acquiring the first version information of the first installation package and the second version information of the second installation package, and finishing the installation of the target application through the second installation package by combining the difference of the two installation packages due to different versions. It can be seen that, in the embodiment of the application, before the downloading of the first installation package is completed, the identification information of the installation package of the target application is firstly matched in the electronic device, and after the matching is successful, the target application is installed in the electronic device through the existing installation package further based on the difference between the version information respectively corresponding to the two matched identification information, so that the step of downloading the installation package again is omitted, and the problems of more traffic consumption and time consumption caused by frequent downloading of the same application in the electronic device by a user in the prior art are effectively solved. In addition, the embodiment of the application relates to a matching process of the first identification information and a large amount of identification information, and compared with the matching process of the first identification information and a large amount of installation packages, the purpose of optimizing the processing process can be achieved, and the problems of high cost and the like caused by overlarge data processing amount are solved.
Optionally, the apparatus further comprises:
the third obtaining module is used for obtaining the storage path information corresponding to the second identification information;
and the fourth obtaining module is used for obtaining the second installation package under the condition that the second installation package is found in the electronic equipment based on the storage path information.
Optionally, the installation module 40 comprises:
a first installation unit configured to install the target application through the second installation package in a case where the first version information is lower than or equal to the second version information;
and the second installation unit is used for acquiring the differential installation package based on the difference information under the condition that the first version information is higher than the second version information, and installing the target application through the differential installation package and the second installation package.
Optionally, the apparatus further comprises:
a first download module for downloading the first installation package at a first download speed in response to a download input;
the second downloading module is used for downloading the first installation package at a second downloading speed under the condition that the first identification information of the first installation package is not matched with the identification information of any installation package in the electronic equipment;
wherein the first download speed is less than the second download speed.
Optionally, the first identification information includes first package name information; the second identification information includes second packet name information.
The application installation device of the embodiment of the present application may be a device, or may be a component of a terminal, an integrated circuit, or a chip. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The application installation device of the embodiment of the application can be a device with an action system. The action system may be an Android (Android) action system, an ios action system, or other possible action systems, and the embodiment of the present application is not particularly limited.
The application installation device provided by the embodiment of the application installation device can realize each process realized by the method embodiment, and is not repeated here to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 100 is further provided in this embodiment of the present application, and includes a processor 101, a memory 102, and a program or an instruction stored in the memory 102 and executable on the processor 101, where the program or the instruction is executed by the processor 101 to implement each process of any one of the foregoing application installation method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device according to the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 1010 is configured to control the user input unit 1007, and receive a download input for a first installation package, where the first installation package corresponds to a target application; responding to the downloading input, and acquiring first identification information of the first installation package; under the condition that the first identification information is matched with second identification information of a second installation package in the electronic equipment, respectively acquiring first version information of the first installation package and second version information of the second installation package; installing the target application through the second installation package based on difference information between the first version information and the second version information.
In this way, in the embodiment of the present application, in the case where a download input of the target application by the user is received, in response to the download input, first, for the first installation package for installing the target application, the corresponding first identification information thereof is acquired from the application store, the website, or the like. The first identification information includes parameters related to application information corresponding to the installation package, such as package name information. Then, matching the acquired first identification information with identification information of an installation package prestored in the electronic equipment; and if the first identification information is matched with the second identification information of the pre-stored second installation package, respectively acquiring the first version information of the first installation package and the second version information of the second installation package, and finishing the installation of the target application through the second installation package by combining the difference of the two installation packages due to different versions. It can be seen that, in the embodiment of the application, before the downloading of the first installation package is completed, the identification information of the installation package of the target application is firstly matched in the electronic device, and after the matching is successful, the target application is installed in the electronic device through the existing installation package further based on the difference between the version information respectively corresponding to the two matched identification information, so that the step of downloading the installation package again is omitted, and the problems of more traffic consumption and time consumption caused by frequent downloading of the same application in the electronic device by a user in the prior art are effectively solved. In addition, the embodiment of the application relates to a matching process of the first identification information and a large amount of identification information, and compared with the matching process of the first identification information and a large amount of installation packages, the purpose of optimizing the processing process can be achieved, and the problems of high cost and the like caused by overlarge data processing amount are solved. Optionally, the processor 1010 is further configured to obtain storage path information corresponding to the second identification information; and acquiring the second installation package under the condition that the second installation package is found in the electronic equipment based on the storage path information.
Optionally, the processor 1010 is further configured to install the target application through the second installation package if the first version information is lower than or equal to the second version information; or, when the first version information is higher than the second version information, obtaining a differential installation package based on the difference information, and installing the target application through the differential installation package and the second installation package.
Optionally, the processor 1010 is further configured to download the first installation package at a first download speed in response to the download input; downloading the first installation package at a second downloading speed under the condition that the first identification information of the first installation package is not matched with the identification information of any installation package in the electronic equipment; wherein the first download speed is less than the second download speed.
Optionally, the first identification information includes first package name information; the second identification information includes second packet name information.
In summary, the application installation method is provided to intelligently judge whether the installation package of the same application exists in the electronic device when the user downloads the installation package. If the application installation package exists, the user is intelligently prompted to carry out differentiation processing aiming at the installation package to be downloaded (or being downloaded) and the two existing installation package versions, the situation that the user spends redundant flow and waiting time in the scene that the electronic equipment repeatedly downloads the same application installation package is avoided, the flow is saved on the premise that the user requirements are met, and the user experience is improved. The matching process, the download control process and the like related in the application can be completed by a global download management module in the electronic equipment.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of a still picture or a video image obtained by an image capturing device (such as a camera) in a video image capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and an action stick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to applications and action systems. The processor 1010 may integrate an application processor, which primarily handles motion systems, user pages, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing application installation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Wherein, the processor is the processor of the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above embodiment of the application installation method, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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 application may be embodied in the form of a computer 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, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An application installation method, characterized in that the method comprises:
receiving a download input for a first installation package, the first installation package corresponding to a target application;
responding to the downloading input, and acquiring first identification information of the first installation package;
under the condition that the first identification information is matched with second identification information of a second installation package in the electronic equipment, respectively acquiring first version information of the first installation package and second version information of the second installation package;
installing the target application through the second installation package based on difference information between the first version information and the second version information.
2. The method of claim 1, wherein before installing the target application through the second installation package based on the difference information between the first version information and the second version information, the method further comprises:
acquiring storage path information corresponding to the second identification information;
and acquiring the second installation package under the condition that the second installation package is found in the electronic equipment based on the storage path information.
3. The method of claim 1, wherein installing the target application through the second installation package based on difference information between the first version information and the second version information comprises:
installing the target application through the second installation package under the condition that the first version information is lower than or equal to the second version information; alternatively, the first and second electrodes may be,
and under the condition that the first version information is higher than the second version information, acquiring a differential installation package based on the difference information, and installing the target application through the differential installation package and the second installation package.
4. The method of claim 1, wherein after receiving download input for the first installation package, the method further comprises:
downloading the first installation package at a first download speed in response to the download input;
downloading the first installation package at a second downloading speed under the condition that the first identification information of the first installation package is not matched with the identification information of any installation package in the electronic equipment;
wherein the first download speed is less than the second download speed.
5. The method according to claim 1, wherein the first identification information includes first packet name information; the second identification information includes second packet name information.
6. An application installation apparatus, comprising:
a receiving module for receiving a download input for a first installation package, the first installation package corresponding to a target application;
a first obtaining module, configured to obtain first identification information of the first installation package in response to the download input;
the second obtaining module is used for respectively obtaining first version information of the first installation package and second version information of a second installation package under the condition that the first identification information is matched with second identification information of the second installation package in the electronic equipment;
an installation module, configured to install the target application through the second installation package based on difference information between the first version information and the second version information.
7. The apparatus of claim 6, further comprising:
a third obtaining module, configured to obtain storage path information corresponding to the second identification information;
a fourth obtaining module, configured to obtain the second installation package when the second installation package is found in the electronic device based on the storage path information.
8. The apparatus of claim 6, wherein the mounting module comprises:
a first installation unit configured to install the target application through the second installation package if the first version information is lower than or equal to the second version information;
and the second installation unit is used for acquiring a differential installation package based on the difference information under the condition that the first version information is higher than the second version information, and installing the target application through the differential installation package and the second installation package.
9. The apparatus of claim 6, further comprising:
a first download module for downloading the first installation package at a first download speed in response to the download input;
the second downloading module is used for downloading the first installation package at a second downloading speed under the condition that the first identification information of the first installation package is not matched with the identification information of any installation package in the electronic equipment;
wherein the first download speed is less than the second download speed.
10. The apparatus according to claim 6, wherein the first identification information includes first packet name information; the second identification information includes second packet name information.
CN202111362473.2A 2021-11-17 2021-11-17 Application installation method and device Pending CN114035814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111362473.2A CN114035814A (en) 2021-11-17 2021-11-17 Application installation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111362473.2A CN114035814A (en) 2021-11-17 2021-11-17 Application installation method and device

Publications (1)

Publication Number Publication Date
CN114035814A true CN114035814A (en) 2022-02-11

Family

ID=80144771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111362473.2A Pending CN114035814A (en) 2021-11-17 2021-11-17 Application installation method and device

Country Status (1)

Country Link
CN (1) CN114035814A (en)

Similar Documents

Publication Publication Date Title
CN112099684A (en) Search display method and device and electronic equipment
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112231144A (en) Data processing method and device and electronic equipment
CN112463199A (en) System upgrading method and terminal
CN108563476B (en) Application program running method and device, storage medium and electronic equipment
CN112416212B (en) Program access method, apparatus, electronic device and readable storage medium
CN112905209A (en) Application program updating method and device
CN112016080A (en) Application authority management method and device and electronic equipment
CN114035814A (en) Application installation method and device
CN113282435B (en) Application exception processing method and electronic equipment
CN114860295A (en) Resource file updating method, device, equipment and readable storage medium
CN114489698A (en) Application program installation method and device
CN113962316A (en) Model training method and device and electronic equipment
CN113824830A (en) Application management method and device
CN113138785A (en) Application program updating method and device
CN112905072A (en) Application processing method and device and electronic equipment
CN112199237B (en) System service recovery method and device and electronic equipment
CN112732326B (en) Information display method and device
CN113691967B (en) Bluetooth scanning frequency adjusting method and device
CN113268300B (en) Information display method and device
CN114020998A (en) Resource loading method and device
CN117311723A (en) Method and device for validating compiling optimization file and electronic equipment
CN113032738A (en) Application authority management method and device and electronic equipment
CN113961231A (en) Application program control method and device
CN113760437A (en) Message prompting method and device and electronic equipment

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