[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104182266B - A kind of application installation method and device - Google Patents

A kind of application installation method and device Download PDF

Info

Publication number
CN104182266B
CN104182266B CN201410469413.4A CN201410469413A CN104182266B CN 104182266 B CN104182266 B CN 104182266B CN 201410469413 A CN201410469413 A CN 201410469413A CN 104182266 B CN104182266 B CN 104182266B
Authority
CN
China
Prior art keywords
configuration information
installation
installation file
information
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410469413.4A
Other languages
Chinese (zh)
Other versions
CN104182266A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410469413.4A priority Critical patent/CN104182266B/en
Publication of CN104182266A publication Critical patent/CN104182266A/en
Application granted granted Critical
Publication of CN104182266B publication Critical patent/CN104182266B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of application installation method and device, one of which application installation method include:Installation file to be installed in electronic equipment is obtained, the installation file includes various configurations information;Obtain the parameter information of electronic equipment;The first configuration information that the parameter information with electronic equipment matches is determined from installation file;In the installation process of installation file, matched first configuration information of only installation institute.Installation method is applied using provided in an embodiment of the present invention, electronic equipment is when installing some installation file, the first configuration information to match with the parameter information of electronic equipment can be determined from installation file, in this way in the installation process of installation file, matched first configuration information of institute can be only installed, the information content of the configuration information of installation on an electronic device is reduced, saves the memory space of electronic equipment.When running the corresponding application program of the installation file, the configuration information reduction that loads and search, so as to improve the speed of service.

Description

Application installation method and device
Technical Field
The invention relates to the technical field of application programs, in particular to an application installation method and device.
Background
With the popularization of electronic devices and the emergence of various applications, the number of applications that a user can install on a used electronic device tends to rise straight. However, when an operator develops an application, in order to improve the universality of the application, configuration information under different operating systems, such as picture resources and language resources used by an application a under a windows operating system and an android operating system, is configured for the application in the development process of the application.
Configuration information under different operating systems configured for an application system is stored in the same installation file, so when the electronic device installs the installation file, configuration information under other operating systems can be installed in addition to configuration information under the operating system operated by the electronic device, which can increase the amount of installation information on the electronic device, lead to insufficient free storage space of the electronic device, and lead to slow operation of the operating system.
Disclosure of Invention
In view of this, embodiments of the present invention provide an application installation method and apparatus, which are used to solve the problems that an idle storage space of an electronic device is insufficient and an operating system runs slowly due to installation of an application program by an existing electronic device. The technical scheme is as follows:
the embodiment of the invention provides an application installation method, which comprises the following steps:
acquiring an installation file to be installed in electronic equipment, wherein the installation file comprises various configuration information;
acquiring parameter information of the electronic equipment;
determining first configuration information matched with the parameter information of the electronic equipment from the installation file;
and in the installation process of the installation file, only the matched first configuration information is installed.
Preferably, the method further comprises:
determining second configuration information which is not matched with the parameter information of the electronic equipment from the installation file;
and deleting the second configuration information.
Preferably, the method further comprises:
acquiring a resource mapping list in the installation file, wherein the resource mapping list is used for recording an installation directory of each configuration information;
searching the installation catalog of the matched first configuration information from the resource mapping list;
and only reserving the searched installation directory in the resource mapping list.
Preferably, the determining, from the installation file, first configuration information that matches parameter information of the electronic device includes:
and according to the parameter information of the electronic equipment, only decompressing first configuration information matched with the parameter information in the installation file to determine the first configuration information.
Preferably, the parameter information includes: the resolution of the screen and the size of the screen.
Preferably, the method further comprises:
acquiring language types supported by the electronic equipment;
reserving first language configuration information corresponding to the supported language types in the installation file, and deleting second language configuration information not corresponding to the supported language types;
and installing the first language configuration information in the installation process of the installation file.
An embodiment of the present invention further provides an application installation apparatus, where the apparatus includes:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring an installation file to be installed in the electronic equipment, and the installation file comprises various kinds of configuration information;
the second acquisition unit is used for acquiring the parameter information of the electronic equipment;
a first determining unit, configured to determine, from the installation file, first configuration information that matches parameter information of the electronic device;
and the first information processing unit is used for installing only the matched first configuration information in the installation process of the installation file.
Preferably, the apparatus further comprises:
a second determining unit, configured to determine, from the installation file, second configuration information that does not match parameter information of the electronic device;
and the second information processing unit is used for deleting the second configuration information.
Preferably, the apparatus further comprises:
a third obtaining unit, configured to obtain a resource mapping list in the installation file, where the resource mapping list is used to record an installation directory of each type of configuration information;
the first determining unit is further used for searching the installation catalog of the matched first configuration information from the resource mapping list;
the first information processing unit is further configured to reserve only the found installation directory in the resource mapping list.
Preferably, the determining, by the first determining unit, first configuration information that matches parameter information of the electronic device from the installation file includes:
and according to the parameter information of the electronic equipment, only decompressing first configuration information matched with the parameter information in the installation file to determine the first configuration information.
Preferably, the parameter information includes: the resolution of the screen and the size of the screen.
Preferably, the apparatus further comprises:
a fourth acquiring unit, configured to acquire language categories supported by the electronic device;
a third determining unit configured to retain first language configuration information corresponding to the supported language category in the installation file, and delete second language configuration information not corresponding to the supported language category;
and the third information processing unit is used for installing the first language configuration information in the installation process of the installation file.
Compared with the prior art, the invention has the following advantages:
by applying the application installation method provided by the embodiment of the invention, when the electronic equipment installs a certain installation file, the first configuration information matched with the parameter information of the electronic equipment can be determined from the installation file, so that only the matched first configuration information can be installed in the installation process of the installation file, the information quantity of the configuration information installed on the electronic equipment is reduced, and the storage space of the electronic equipment is saved. When the application program corresponding to the installation file is operated, the loaded and searched configuration information is reduced, so that the operation speed is increased.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a first flowchart of an application installation method according to an embodiment of the present invention;
fig. 2 is a second flowchart of an application installation method according to an embodiment of the present invention;
FIG. 3 is a third flowchart of an application installation method provided by an embodiment of the present invention;
fig. 4 is a fourth flowchart of an application installation method according to an embodiment of the present invention;
fig. 5 is a fifth flowchart of an application installation method according to an embodiment of the present invention;
fig. 6 is a schematic view of a first structure of an application installation device provided by the embodiment of the invention;
fig. 7 is a schematic structural diagram of a second application installation device provided in the embodiment of the present invention;
FIG. 8 is a schematic diagram of a third structure of an application installation device provided in the embodiment of the present invention;
fig. 9 is a schematic diagram of a fourth structure of an application installation device according to an embodiment of the present invention.
Detailed Description
The application installation methods and apparatus provided by embodiments of the present invention may be utilized in numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
In order to make the embodiment of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of an application installation method according to an embodiment of the present invention is shown, where the method includes the following steps:
101: the method comprises the steps of obtaining an installation file to be installed in the electronic equipment, wherein the installation file comprises various configuration information. In the embodiment of the present invention, the installation file is an Android Package (APK), and the installation file may include various configuration information, where the configuration information is used to configure the electronic device in an installation process of the installation file.
The configuration information may include a plurality of configuration resources such as picture configuration resources, network configuration resources, and printer configuration resources, and each configuration resource includes a plurality of sets of resources to be suitable for different electronic devices. For example, for the picture a in the picture configuration resource, at least 9.7 inches of the picture a and 5.5 inches of the picture a are included, so that the 9.7 inches of the picture a can be installed in an electronic device with a screen size of 9.7 inches, and the 5.5 inches of the picture a can be installed in an electronic device with a screen size of 5.5 inches, when the application installation method provided by the embodiment of the present invention is used, after the installation file to be installed is acquired, step 102 needs to be further executed to acquire parameter information of the electronic device.
102: parameter information of the electronic equipment is acquired.
103: first configuration information matching the parameter information of the electronic device is determined from the installation file.
In the embodiment of the present invention, the parameter information may include hardware parameter information and software parameter information, where the hardware parameter information is used to indicate a hardware device used by the electronic device, such as a size of a screen, a resolution of the screen, a model of a processor, and the like. The corresponding software parameter information is used to indicate the software programs used by the electronic device, such as the operating system version and the running application version.
The parameter information of the electronic device may be used as a matching reference, and first configuration information that matches the parameter information of the electronic device is determined from the installation file, that is, first configuration information that is applicable to the electronic device is determined from the installation file, for example, a picture resource that is consistent with the size of the screen of the electronic device is determined from the installation file. In the embodiment of the present invention, the manner of determining the first configuration information matched with the parameter information of the electronic device may include, but is not limited to, the following manners:
the first mode is as follows: in the decompression process of the installation file, all the configuration information in the installation file is decompressed into the electronic equipment, and then first configuration information matched with the parameter information of the electronic equipment is extracted from the decompressed configuration information, so that the first configuration information matched with the parameter information can be determined.
The second mode is as follows: and changing the decompression process of the installation file, and only decompressing the first configuration information matched with the parameter information in the installation file according to the parameter information of the electronic equipment in the decompression process to determine the first configuration information, so that the decompression time of the installation file can be saved, and the installation efficiency is improved.
104: and in the installation process of the installation file, only the matched first configuration information is installed.
After the electronic equipment determines the first configuration information matched with the parameter information of the electronic equipment, only the matched first configuration information can be installed in the installation process of the installation file, so that the information quantity of the configuration information installed on the electronic equipment is reduced, and the storage space of the electronic equipment is saved. When the application program corresponding to the installation file is operated, the loaded and searched configuration information is reduced, so that the operation speed is increased.
As mentioned above, the configuration information of the installation file includes a plurality of configuration resources, and each configuration resource includes a plurality of sets of resources to be suitable for different electronic devices, so that when each electronic device installs a certain installation file, the second configuration information that is not matched with the electronic device can be deleted to further save the storage space, as shown in fig. 2, on the basis of fig. 1, the application installation method provided in the embodiment of the present invention further includes the following steps:
105: and determining second configuration information which is not matched with the parameter information of the electronic equipment from the installation file.
106: and deleting the second configuration information.
In the embodiment of the present invention, one possible way to determine the second configuration information is: in the decompression process of the installation file, all the configuration information in the installation file is decompressed into the electronic equipment, and then second configuration information which is not matched with the parameter information of the electronic equipment is extracted from the decompressed configuration information, so that the second configuration information can be determined.
Another possibility is: and decompressing the installation file according to the parameter information of the electronic device, for example, first decompressing first configuration information matched with the parameter information from the installation file according to the parameter information of the electronic device, and then decompressing second configuration information unmatched with the parameter information from the installation file according to the parameter information of the electronic device.
And after the second configuration information is determined, deleting the second configuration information from the storage space of the electronic equipment, so that the storage space of the electronic equipment can be saved, and when the application program corresponding to the installation file is operated, the used memory for searching the configuration information is reduced, so that the operation speed is increased.
After the second configuration information is deleted, the electronic device may further obtain the size of the saved capacity of the storage space, and display the size on a display interface of the electronic device to feed back the size of the saved capacity and the size of the current remaining capacity of the user.
The points to be explained are: in the embodiment of the present invention, the determining of the first configuration information and the second configuration information may be performed simultaneously, and the corresponding processes of installing the first configuration information and deleting the second configuration information may also be performed simultaneously, where the execution order is not limited in the embodiment of the present invention.
Referring to fig. 3, a third flowchart of an application installation method according to an embodiment of the present invention is shown, where the third flowchart may include the following steps:
301: the method comprises the steps of obtaining an installation file to be installed in the electronic equipment, wherein the installation file comprises various configuration information.
302: parameter information of the electronic equipment is acquired.
303: first configuration information matching the parameter information of the electronic device is determined from the installation file.
304: and in the installation process of the installation file, only the matched first configuration information is installed.
Wherein, steps 301 to 304: this embodiment of the present invention is not described as the same as steps 101 to 104 in fig. 1.
305: and acquiring a resource mapping list in the installation file, wherein the resource mapping list is used for recording an installation directory of each configuration information. The installation directory is used for recording a storage path of the configuration information in the electronic equipment, and when the electronic equipment runs an application program corresponding to the installation file, the required configuration information can be found through the installation directory.
306: and searching the installation directory of the matched first configuration information from the resource mapping list.
307: and only the searched installation directory is reserved in the resource mapping list.
In the embodiment of the invention, only the first configuration information is installed in the installation process of the installation file, and when the second configuration information is searched through the installation directory in the resource mapping list, the electronic equipment prompts a user to search for errors, so that the resource mapping list needs to be updated after the resource mapping list is obtained in order to avoid the electronic equipment from searching for the second configuration information irrelevant to the electronic equipment.
In the updating process of the resource mapping list, firstly, the matched installation directory of the first configuration information is searched from the resource mapping list, then, only the searched installation directory is reserved in the resource mapping list, compared with the resource mapping list before updating, the updated resource mapping list deletes the installation directory of the second configuration information, and only the installation directory of the first configuration information is reserved, so that the storage space is further saved, when the application program corresponding to the installation file is operated, the used memory for searching the configuration information is reduced, and the operation speed is further improved.
Of course, in the application installation method shown in fig. 3, second configuration information that is not matched with the parameter information of the electronic device may be further determined from the installation file, and the second configuration information is deleted, and a specific execution process may refer to the related description in the embodiment shown in fig. 2.
In the embodiment of the present invention, the configuration information of the installation file may include language configuration information in addition to the picture configuration resource, the network configuration resource, and the printer configuration resource, and the language configuration information includes multiple kinds of language configuration information, such as chinese, english, and french, and different language configuration information is applicable to electronic devices supporting different language categories, so on the basis of all the embodiments described above, the application installation method provided in the embodiment of the present invention may further include a language configuration information matching process, as shown in fig. 4, on the basis of the flowchart shown in fig. 1, and may further include the following steps:
107: language categories supported by the electronic device are obtained.
108: first language configuration information corresponding to the supported language classes in the installation file is retained, and second language configuration information not corresponding to the supported language classes is deleted.
The language type supported by the electronic equipment is used for indicating which language is installed in the electronic equipment, the language configuration information is used as a base for matching the language configuration information and indicates which part of the language configuration information in the installation file is to be reserved, and the reserved first language configuration information is information in the same language as the language type supported by the electronic equipment.
For example, if the language category supported by the electronic device is chinese, the first configuration information retained in the electronic device is the language configuration information related to chinese, and the deleted second configuration information is the language configuration information other than chinese.
109: in the installation process of the installation file, the first language configuration information is installed.
When the electronic device installs any installation file, the electronic device may directly execute steps 103 and 104, and certainly, the electronic device may also execute steps 103 and 104 after receiving an instruction to change the installation mode of the installation file of the existing electronic device, which may specifically refer to fig. 5. Fig. 5 shows another flow of the application installation method provided in the embodiment of the present invention, which may include the following steps:
101: the method comprises the steps of obtaining an installation file to be installed in the electronic equipment, wherein the installation file comprises various configuration information.
102: parameter information of the electronic equipment is acquired.
110: the method comprises the steps of displaying prompt information on the electronic equipment, wherein the prompt information is used for providing installation modes of installation files, the installation modes comprise a first installation mode and a second installation mode, the first installation mode is a mode that all configuration information is determined from the installation files and installed, and the second installation mode is a mode that first configuration information matched with parameter information of the electronic equipment is determined from the installation files and only the first configuration information is installed.
That is, the first installation mode is a mode adopted by the existing electronic device to install any installation file, and the second installation mode is an improved installation mode of the embodiment of the present invention, which can reduce the information amount of the configuration information installed on the electronic device and save the storage space of the electronic device.
111: and receiving a feedback result obtained according to the prompt message. In the embodiment of the invention, the prompt message can be displayed on the electronic device in a dialog box manner, and the two installation manners provided by the prompt message can be distributed in the dialog box in a button manner.
When the operation body (the finger of the user) clicks any button in the dialog box, the electronic device may acquire a current click position according to the click operation of the operation body, and determine the currently operated button according to the click position, thereby obtaining a feedback result indicating the installation manner.
112: and when the feedback result shows that the installation mode of the installation file is the second installation mode, determining first configuration information matched with the parameter information of the electronic equipment from the installation file. In the embodiment of the present invention, the process of determining the first configuration information from the installation file is the same as step 103, and the description of the embodiment of the present invention is omitted.
104: and in the installation process of the installation file, only the matched first configuration information is installed.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an application installation apparatus, a schematic structural diagram of which is shown in fig. 6, and the application installation apparatus may include: a first acquisition unit 11, a second acquisition unit 12, a first determination unit 13, and a first information processing unit 14. Wherein,
the device comprises a first acquisition unit 11, which is used for acquiring an installation file to be installed in the electronic equipment, wherein the installation file comprises a plurality of kinds of configuration information. In the embodiment of the present invention, the installation file may be an APK, and the installation file may include a plurality of types of configuration information, where the configuration information is used to configure the electronic device during installation of the installation file.
The configuration information may include a plurality of configuration resources such as picture configuration resources, network configuration resources, and printer configuration resources, and each configuration resource includes a plurality of sets of resources to be suitable for different electronic devices. For example, for the picture a in the picture configuration resource, at least 9.7 inches of the picture a and 5.5 inches of the picture a are included, so that the 9.7 inches of the picture a can be installed in an electronic device with a screen size of 9.7 inches, and the 5.5 inches of the picture a can be installed in an electronic device with a screen size of 5.5 inches, when the application installation method provided by the embodiment of the present invention is used, after the installation file to be installed is acquired, step 102 needs to be further executed to acquire parameter information of the electronic device.
And a second obtaining unit 12, configured to obtain parameter information of the electronic device.
A first determining unit 13, configured to determine, from the installation file, first configuration information that matches parameter information of the electronic device.
In the embodiment of the present invention, the parameter information may include hardware parameter information and software parameter information, where the hardware parameter information is used to indicate a hardware device used by the electronic device, such as a size of a screen, a resolution of the screen, a model of a processor, and the like. The corresponding software parameter information is used to indicate the software programs used by the electronic device, such as the operating system version and the running application version.
The parameter information of the electronic device may be used as a matching reference, and the first determining unit 13 determines, from the installation file, first configuration information that matches the parameter information of the electronic device, that is, determines, from the installation file, first configuration information that is applicable to the electronic device, such as a picture resource that is consistent with the size of the screen of the electronic device. In the embodiment of the present invention, the manner in which the first determining unit 13 determines the first configuration information matching the parameter information of the electronic device from the installation file may include, but is not limited to, the following manners:
the first mode is as follows: in the decompression process of the installation file, all the configuration information in the installation file is decompressed into the electronic equipment, and then first configuration information matched with the parameter information of the electronic equipment is extracted from the decompressed configuration information, so that the first configuration information matched with the parameter information can be determined.
The second mode is as follows: and changing the decompression process of the installation file, and only decompressing the first configuration information matched with the parameter information in the installation file according to the parameter information of the electronic equipment in the decompression process to determine the first configuration information, so that the decompression time of the installation file can be saved, and the installation efficiency is improved.
And the first information processing unit 14 is used for installing only the matched first configuration information in the installation process of the installation file.
After the first determining unit 13 determines the first configuration information matched with the hungry parameter information of the electronic device, the first information processing unit 14 may only install the matched first configuration information during the installation process of the installation file, which reduces the information amount of the configuration information installed on the electronic device and saves the storage space of the electronic device. When the application program corresponding to the installation file is operated, the loaded and searched configuration information is reduced, so that the operation speed is increased.
The first determining unit 13, when determining the first configuration information matching the parameter information, may further determine second configuration information not matching the parameter information, and a schematic structural diagram of the application installation apparatus is shown in fig. 7, and on the basis of fig. 6, may further include: a second determination unit 15 and a second information processing unit 16. Wherein,
and a second determining unit 15 for determining second configuration information that does not match the parameter information of the electronic device from the installation file.
And a second information processing unit 16 for deleting the second configuration information.
In the embodiment of the present invention, one possible way for the second determining unit 15 to determine the second configuration information is: in the decompression process of the installation file, all the configuration information in the installation file is decompressed into the electronic equipment, and then second configuration information which is not matched with the parameter information of the electronic equipment is extracted from the decompressed configuration information, so that the second configuration information can be determined.
Another possibility is: and decompressing the installation file according to the parameter information of the electronic device, for example, first decompressing first configuration information matched with the parameter information from the installation file according to the parameter information of the electronic device, and then decompressing second configuration information unmatched with the parameter information from the installation file according to the parameter information of the electronic device.
When the second determining unit 15 determines the second configuration information, the second information processing unit 16 deletes the second configuration information from the storage space of the electronic device, so that the storage space of the electronic device can be saved, and when the application program corresponding to the installation file is run, the memory used for searching the configuration information is reduced, thereby increasing the running speed.
After the second configuration information is deleted, the electronic device may further obtain the size of the saved capacity of the storage space, and display the size on a display interface of the electronic device to feed back the size of the saved capacity and the size of the current remaining capacity of the user.
Referring to fig. 8, another structure of the application installation apparatus according to the embodiment of the present invention is shown, and on the basis of fig. 6, the application installation apparatus may further include: a third obtaining unit 17, configured to obtain a resource mapping list in the installation file, where the resource mapping list is used to record an installation directory of each configuration information. The installation directory is used for recording a storage path of the configuration information in the electronic equipment, and when the electronic equipment runs an application program corresponding to the installation file, the required configuration information can be found through the installation directory.
The first determining unit 13 is further configured to find the installation directory of the matched first configuration information from the resource mapping list.
The first information processing unit 14 is further configured to reserve only the found installation directory in the resource mapping list.
In the embodiment of the invention, only the first configuration information is installed in the installation process of the installation file, and when the second configuration information is searched through the installation directory in the resource mapping list, the electronic equipment prompts a user to search for errors, so that the resource mapping list needs to be updated after the resource mapping list is obtained in order to avoid the electronic equipment from searching for the second configuration information irrelevant to the electronic equipment.
In the updating process of the resource mapping list, the first determining unit 13 searches the matched installation directory of the first configuration information from the resource mapping list acquired by the third acquiring unit 17, then the first information processing unit 14 only reserves the searched installation directory in the resource mapping list, and compared with the resource mapping list before updating, the updated resource mapping list deletes the installation directory of the second configuration information and only reserves the installation directory of the first configuration information, so that the storage space is further saved, when the application program corresponding to the installation file is operated, the used memory for searching the configuration information is reduced, and the operation speed is further improved.
In this embodiment of the present invention, the configuration information of the installation file may include language configuration information in addition to the picture configuration resource, the network configuration resource, and the printer configuration resource, and the language configuration information includes multiple kinds of language configuration information, such as chinese, english, and french, and different language configuration information is suitable for supporting electronic devices of different language categories, so on the basis of all the embodiments described above, the application installation apparatus provided in this embodiment of the present invention may further include a structure for matching the language configuration information, as shown in fig. 9, on the basis of fig. 6, the application installation apparatus may further include: a fourth acquisition unit 18, a third determination unit 19, and a third information processing unit 20, wherein,
a fourth obtaining unit 18, configured to obtain language categories supported by the electronic device.
A third determining unit 19 for retaining the first language configuration information corresponding to the supported language category in the installation file and deleting the second language configuration information not corresponding to the supported language category.
The language type supported by the electronic equipment is used for indicating which language is installed in the electronic equipment, the language configuration information is used as a base for matching the language configuration information and indicates which part of the language configuration information in the installation file is to be reserved, and the reserved first language configuration information is information in the same language as the language type supported by the electronic equipment.
For example, if the language category supported by the electronic device is chinese, the third determining unit 19 retains the first configuration information as the language configuration information about chinese, and deletes the second configuration information as the language configuration information other than chinese.
A third information processing unit 20 for installing the first language configuration information in the installation process of the installation file.
It should be noted that, in the application installation apparatus, other units than the units in the schematic diagram shown in fig. 7 are optional units, and when the application installation apparatus is implemented, any one or any combination of the units may be added to the application installation apparatus as needed, and the various combinations are not described in detail in this specification.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The application installation method and the application installation device provided by the invention are described in detail, a specific example is applied in the description to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An application installation method, the method comprising:
acquiring an installation file to be installed in electronic equipment, wherein the installation file comprises various configuration information;
acquiring parameter information of the electronic equipment; the parameter information is software parameter information which is used for indicating a software program used by the electronic equipment;
determining first configuration information matched with the parameter information of the electronic equipment from the installation file;
in the installation process of the installation file, only installing the matched first configuration information;
acquiring a resource mapping list in the installation file, wherein the resource mapping list is used for recording an installation directory of each configuration information;
searching the installation catalog of the matched first configuration information from the resource mapping list;
and only reserving the searched installation directory in the resource mapping list.
2. The method of claim 1, further comprising:
determining second configuration information which is not matched with the parameter information of the electronic equipment from the installation file;
and deleting the second configuration information.
3. The method of claim 1, wherein determining, from the installation file, first configuration information that matches parameter information of the electronic device comprises:
and according to the parameter information of the electronic equipment, only decompressing first configuration information matched with the parameter information in the installation file to determine the first configuration information.
4. The method according to any one of claims 1 to 3, wherein the parameter information comprises: the resolution of the screen and the size of the screen.
5. The method of claim 4, further comprising:
acquiring language types supported by the electronic equipment;
reserving first language configuration information corresponding to the supported language types in the installation file, and deleting second language configuration information not corresponding to the supported language types;
and installing the first language configuration information in the installation process of the installation file.
6. An application installation apparatus, the apparatus comprising:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring an installation file to be installed in the electronic equipment, and the installation file comprises various kinds of configuration information;
the second acquisition unit is used for acquiring the parameter information of the electronic equipment; the parameter information is software parameter information which is used for indicating a software program used by the electronic equipment;
a first determining unit, configured to determine, from the installation file, first configuration information that matches parameter information of the electronic device;
a first information processing unit for installing only the matched first configuration information in the installation process of the installation file;
a third obtaining unit, configured to obtain a resource mapping list in the installation file, where the resource mapping list is used to record an installation directory of each type of configuration information;
the first determining unit is further used for searching the installation catalog of the matched first configuration information from the resource mapping list;
the first information processing unit is further configured to reserve only the found installation directory in the resource mapping list.
7. The apparatus of claim 6, further comprising:
a second determining unit, configured to determine, from the installation file, second configuration information that does not match parameter information of the electronic device;
and the second information processing unit is used for deleting the second configuration information.
8. The apparatus according to claim 6, wherein the first determining unit determines, from the installation file, first configuration information that matches parameter information of the electronic device, includes:
and according to the parameter information of the electronic equipment, only decompressing first configuration information matched with the parameter information in the installation file to determine the first configuration information.
9. The apparatus according to any one of claims 6 to 8, wherein the parameter information comprises: the resolution of the screen and the size of the screen.
10. The apparatus of claim 9, further comprising:
a fourth acquiring unit, configured to acquire language categories supported by the electronic device;
a third determining unit configured to retain first language configuration information corresponding to the supported language category in the installation file, and delete second language configuration information not corresponding to the supported language category;
and the third information processing unit is used for installing the first language configuration information in the installation process of the installation file.
CN201410469413.4A 2014-09-15 2014-09-15 A kind of application installation method and device Active CN104182266B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410469413.4A CN104182266B (en) 2014-09-15 2014-09-15 A kind of application installation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410469413.4A CN104182266B (en) 2014-09-15 2014-09-15 A kind of application installation method and device

Publications (2)

Publication Number Publication Date
CN104182266A CN104182266A (en) 2014-12-03
CN104182266B true CN104182266B (en) 2018-07-06

Family

ID=51963342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410469413.4A Active CN104182266B (en) 2014-09-15 2014-09-15 A kind of application installation method and device

Country Status (1)

Country Link
CN (1) CN104182266B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055375B (en) * 2016-07-13 2020-02-28 青岛海信移动通信技术股份有限公司 Application program installation method and device
CN109218054B (en) * 2017-07-03 2022-08-09 腾讯科技(深圳)有限公司 Terminal dynamic configuration, corresponding server implementation method, device and storage medium
CN109426509A (en) * 2017-09-04 2019-03-05 华为技术有限公司 Method for processing resource and equipment
CN108091338A (en) * 2017-12-29 2018-05-29 江苏惠通集团有限责任公司 The data processing method and device of voice telecontrol system and its host side
CN110209439A (en) * 2019-06-11 2019-09-06 北京无线电测量研究所 The parametrization configuration method of VxWorks

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101120339A (en) * 2005-02-16 2008-02-06 三星电子株式会社 Multiple language support system and method for application
CN102810066A (en) * 2011-06-03 2012-12-05 北京千橡网景科技发展有限公司 Terminal adapting method and terminal and server based on terminal characteristic configuration program
CN103019791A (en) * 2012-12-19 2013-04-03 中国电子科技集团公司第十五研究所 Software deploying method and system
CN103092663A (en) * 2013-02-04 2013-05-08 东莞宇龙通信科技有限公司 Method for installing application program in terminal and device
CN103136014A (en) * 2011-12-02 2013-06-05 北京市电力公司 Installation method and installation system of data base
CN103186397A (en) * 2011-12-31 2013-07-03 国民技术股份有限公司 Data installing method and data installing system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437107A (en) * 2002-02-09 2003-08-20 英业达股份有限公司 Method of providing multilingual installation program
WO2007072310A1 (en) * 2005-12-22 2007-06-28 Shapiro Alan J System and method for software delivery

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101120339A (en) * 2005-02-16 2008-02-06 三星电子株式会社 Multiple language support system and method for application
CN102810066A (en) * 2011-06-03 2012-12-05 北京千橡网景科技发展有限公司 Terminal adapting method and terminal and server based on terminal characteristic configuration program
CN103136014A (en) * 2011-12-02 2013-06-05 北京市电力公司 Installation method and installation system of data base
CN103186397A (en) * 2011-12-31 2013-07-03 国民技术股份有限公司 Data installing method and data installing system
CN103019791A (en) * 2012-12-19 2013-04-03 中国电子科技集团公司第十五研究所 Software deploying method and system
CN103092663A (en) * 2013-02-04 2013-05-08 东莞宇龙通信科技有限公司 Method for installing application program in terminal and device

Also Published As

Publication number Publication date
CN104182266A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
US9584612B2 (en) Systems and methods for pushing applications
KR101790190B1 (en) Application scenario identification method, power consumption management method, apparatus, and terminal device
CN104182266B (en) A kind of application installation method and device
US10268515B2 (en) Releasing resources from processes in a particular order to provide required resources to start an application
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
CN104375856A (en) Application updating method and device
CN107291481B (en) Component updating method, device and system
CN109324857B (en) User guide implementation method, device and storage medium
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
WO2017186066A1 (en) Software management method and apparatus
CN106528415A (en) Software compatibility test method, business platform and system
CN111666201A (en) Regression testing method, device, medium and electronic equipment
CN106843947B (en) Method and device for processing code defects
CN113760306B (en) Method and device for installing software, electronic equipment and storage medium
CN112615758B (en) Application identification method, device, equipment and storage medium
CN107918543B (en) Installation package generation method and device, computer equipment and storage medium
CN105354490B (en) Method and equipment for processing hijacked browser
CN106919597B (en) Information recommendation method and device
CN115145605A (en) Vehicle-mounted application software upgrading method and system, electronic equipment and storage medium
CN113010178B (en) Application program operation control method, device, equipment and medium
US10073852B2 (en) Computer-readable storage medium, file management apparatus, and file management method
US20150370450A1 (en) Display terminal and display method
CN109582347B (en) Method and device for acquiring front-end codes
US20230065440A1 (en) Method and apparatus for managing application
CN110955449A (en) Method and device for releasing gray scale of client

Legal Events

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