CN109508198B - Application program installation method and device, storage medium and terminal - Google Patents

Application program installation method and device, storage medium and terminal Download PDF

Info

Publication number
CN109508198B
CN109508198B CN201811333859.9A CN201811333859A CN109508198B CN 109508198 B CN109508198 B CN 109508198B CN 201811333859 A CN201811333859 A CN 201811333859A CN 109508198 B CN109508198 B CN 109508198B
Authority
CN
China
Prior art keywords
target
installation
application program
terminal
file
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
CN201811333859.9A
Other languages
Chinese (zh)
Other versions
CN109508198A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811333859.9A priority Critical patent/CN109508198B/en
Publication of CN109508198A publication Critical patent/CN109508198A/en
Application granted granted Critical
Publication of CN109508198B publication Critical patent/CN109508198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The embodiment of the application discloses an application program installation method, an application program installation device, a storage medium and a terminal. The method comprises the following steps: when detecting that an installation event of a preinstalled application program is triggered, acquiring a preset file in a terminal, wherein the preset file corresponds to a target channel of the terminal; determining a target installation package of a target preinstalled application program matched with the target channel according to the preset file, wherein the installation package of the preinstalled application program matched with at least two channels is stored in the terminal; and installing the target preinstalled application program based on the target installation package. By adopting the technical scheme, the installation package of the preinstalled application programs matched with different channels can be stored in the terminal, selective installation is carried out according to the channels corresponding to the terminal when the installation is carried out, a large number of terminals with different versions do not need to be maintained, and the factory leaving efficiency of the terminal is improved.

Description

Application program installation method and device, storage medium and terminal
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to an application program installation method, an application program installation device, a storage medium and a terminal.
Background
At present, intelligent terminals become necessary electronic equipment in daily life of most users. An operating system is installed in the intelligent terminal, and application programs can be installed. Before the terminal leaves the factory, an application program which needs to be installed in advance is generally configured in the terminal, and such an application program may be referred to as a pre-installed application program or a built-in application program.
For terminal manufacturers, there may be multiple channels for terminal shipment, such as shipment to different countries or shipment to different operators, and different pre-installed applications are generally provided for terminals according to the built-in requirements of different channels. In the existing scheme, an installation package of a required preinstalled application program is usually directly stored in a terminal and is installed when the terminal is started for the first time, however, the scheme requires a large number of terminals with different versions to be maintained, factory efficiency is affected, and improvement is needed.
Disclosure of Invention
The embodiment of the application program installation method and device, the storage medium and the terminal can optimize an installation scheme of a preinstalled application program in the terminal.
In a first aspect, an embodiment of the present application provides an application program installation method, including:
when detecting that an installation event of a preinstalled application program is triggered, acquiring a preset file in a terminal, wherein the preset file corresponds to a target channel of the terminal;
determining a target installation package of a target preinstalled application program matched with the target channel according to the preset file, wherein the installation package of the preinstalled application program matched with at least two channels is stored in the terminal;
and installing the target preinstalled application program based on the target installation package.
In a second aspect, an embodiment of the present application provides an application installation apparatus, including:
the system comprises a preset file acquisition module, a preset file acquisition module and a preset file processing module, wherein the preset file acquisition module is used for acquiring a preset file in a terminal when detecting that an installation event of a preinstalled application program is triggered, and the preset file corresponds to a target channel of the terminal;
the target installation package determining module is used for determining a target installation package of a target preinstalled application program matched with the target channel according to the preset file, wherein the installation package of the preinstalled application program matched with at least two channels is stored in the terminal;
and the application installation module is used for installing the target preinstalled application program based on the target installation package.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements an application installation method according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the application installation method according to the embodiment of the present application.
According to the application program installation scheme provided by the embodiment of the application program installation method and the application program installation device, the installation package and the preset files of the pre-installed application program which are matched with at least two channels are stored in the terminal, when the installation event of the pre-installed application program is triggered, the preset files corresponding to the target channel in the terminal are obtained, the target installation package of the target pre-installed application program which is matched with the target channel is determined according to the preset files, and the target pre-installed application program is installed based on the target installation package. By adopting the technical scheme, the installation package of the pre-installed application programs matched with different channels can be stored in the terminal, selective installation is carried out according to the channels corresponding to the terminal when the installation is carried out, a large number of terminals with different versions do not need to be maintained, and the factory leaving efficiency of the terminal is improved.
Drawings
Fig. 1 is a schematic flowchart of an application installation method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another application installation method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another application installation method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another application installation method according to an embodiment of the present application;
fig. 5 is a block diagram illustrating an application installation apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another terminal provided in the embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart illustrating an application installation method according to an embodiment of the present application, where the method may be performed by an application installation apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a terminal. As shown in fig. 1, the method includes:
step 101, when detecting that an installation event of a preinstalled application program is triggered, acquiring a preset file in a terminal, wherein the preset file corresponds to a target channel of the terminal.
For example, the terminal in the embodiment of the present application may include a device such as a mobile phone, a tablet computer, and a notebook computer.
In the embodiment of the application, detecting that the installation event of the pre-installed application is triggered may include determining that the installation event of the pre-installed application is triggered when it is detected that the terminal is started for the first time after leaving a factory. The installation event of the preinstalled application program may be triggered in other manners, and the embodiment of the present application is not limited.
Generally, an installation package of a pre-installed application program is stored in a system space or a data space or the like before the terminal leaves a factory, and when the terminal is started for the first time after leaving the factory, the pre-installed application program is installed based on the stored installation package. Stored in the system space are typically system applications that support normal operation of the terminal, which cannot be uninstalled by the user, such as a phonebook, browser, camera, and dials, etc.; stored in the data space are typically extended function applications of the terminal, including applications that have a collaboration with application developers, etc., that the user can choose to uninstall, such as office software, instant messaging software, games, etc.
For the terminal manufacturer, there may be multiple channels for the terminal to deliver, such as different countries for delivery or different operators for delivery, and the channels in the embodiment of the present application may include delivery channels. Generally, different channels have different built-in requirements, for example, different countries for shipping need to have different built-in browsers, different operators for shipping need to have different versions of dials built-in, etc. In the related art, generally, an installation package of a pre-installed application required by a current shipment channel is directly stored in a terminal, and when there are many channels, a large number of terminal versions need to be maintained, which affects shipment efficiency.
In the embodiment of the application, the installation package of the pre-installed application program matched with at least two channels is stored in the terminal, and the number of the channels can be determined according to the total number of the delivery channels of the terminal. For example, 3 countries need to be shipped, with 1 country requiring shipment to 3 operators, and the total number of shipping channels is 5. The method can integrate a plurality of application programs and different versions of the same application program and store the integrated application programs in the same software, namely, for terminals of different channels, all pre-installed application programs can be stored, including different versions of the same pre-installed application program, and the pre-installed application programs are selectively installed when the pre-installed application programs need to be installed. The preset file is a file added in the terminal in the embodiment of the application, and the file may include information related to a target channel corresponding to the current terminal, such as an identifier of a pre-installed application that needs to be installed in the target channel, version information of the pre-installed application that needs to be installed, a storage path of an installation package for installation, and the like.
And 102, determining a target installation package of a target preinstalled application program matched with the target channel according to the preset file.
The terminal stores an installation package of pre-installed application programs matched with at least two channels.
For example, the information included in the preset file may be read, so as to determine which preinstalled applications (i.e., target applications) need to be installed in the target channel of the current terminal, and which version of the target preinstalled applications is installed, thereby determining the corresponding target installation package.
And 103, installing the target preinstalled application program based on the target installation package.
For example, after the terminal is first powered on, an installation Package of the preinstalled application program may be loaded by a Package Management Service (PMS). In the embodiment of the application, after the target installation package is determined, the package management service can load the target installation package, so that the target preinstalled application program is installed.
According to the application program installation method provided by the embodiment of the application program installation method, the installation package and the preset files of the pre-installed application program matched with at least two channels are stored in the terminal, when the installation event of the pre-installed application program is triggered, the preset file corresponding to the target channel in the terminal is obtained, the target installation package of the target pre-installed application program matched with the target channel is determined according to the preset file, and the target pre-installed application program is installed based on the target installation package. By adopting the technical scheme, the installation package of the pre-installed application programs matched with different channels can be stored in the terminal, selective installation is carried out according to the channels corresponding to the terminal when the installation is carried out, a large number of terminals with different versions do not need to be maintained, and the factory leaving efficiency of the terminal is improved.
In some embodiments, the installation packages of the pre-installed applications matched with the at least two channels are stored in a separate storage space in the terminal. The advantage of this arrangement is that it can be distinguished from the storage area of the original file of the system, and the stability of the system is ensured. In addition, because the number of the preinstalled applications in the terminal is generally large, and not all the preinstalled applications are different due to different channels, that is, a certain number of completely identical preinstalled applications can exist in different channels, only the preinstalled applications which are different due to different channels can be stored in the independent storage space, and management is facilitated. For example, for terminals shipping different operators in the same country, the built-in browsers may be identical, and the dial versions are different, so that the installation packages of the two different dial versions can be stored in separate storage spaces, and the installation packages of the browsers can be stored in the storage space where the original files of the system are located. Optionally, the preset file may also be stored in the independent storage space. An independent storage space can be divided in the terminal, a preinstalled application program storage area (used for storing the installation package) and a preset file storage area are distributed, and corresponding files are stored in the corresponding storage areas.
Optionally, when the package management service performs installation of the target pre-installed application, the package management service may also perform installation of the common pre-installed application together with the target pre-installed application when the package management service further includes other pre-installed applications, that is, the same pre-installed application (may be referred to as a common pre-installed application) that needs to be configured in different channels, besides the independent storage space.
In some embodiments, the preset file comprises a configuration file containing a storage path of the target installation package. The determining of the target installation package of the target preinstalled application program matched with the target channel according to the preset file comprises the following steps: generating a soft link according to the preset file; and linking the file directory of the target installation package of the target pre-installed application program matched with the target channel to a pre-installed application program installation directory by using the soft link. The advantage of this arrangement is that the target installation package can be accurately determined and subsequent installation can be achieved. When the content stored in the user data block of one file is pointed to by the path name of another file, the file can be called a soft link, the soft link is also a file, and after the soft link is generated, the soft link also has an index node (inode) number of the soft link and the user data block. In the soft link generated in the embodiment of the present application, the stored content is the direction of the path name of the target installation package.
In some embodiments, the generating a soft link according to the preset file includes: and generating a soft link according to the preset file by using a preset module, wherein the preset module is started in preference to the package management service after the terminal is started. The soft link is generated before the package management service is started, so that the package management service can be ensured to load the installation package as soon as possible, and the installation efficiency of the preinstalled application program during initial startup is improved. The starting time of the preset module is early, and the authority needs to be enough to complete the operation of the operation link, such as having root authority.
In some embodiments, the preset file comprises a mount script comprising a storage path of the target installation package. The determining of the target installation package of the target preinstalled application program matched with the target channel according to the preset file comprises the following steps: and mounting the file directory of the target installation package of the target preinstalled application program matched with the target channel to the preinstalled application program installation directory by using the preset file. The method has the advantages that the application catalog to be built in is directly linked to the catalog of the system installation application without additionally generating a soft link or by means of a preset module, and the installation efficiency of the preinstalled application program during initial startup is further improved.
In some embodiments, before detecting that the installation event of the pre-installed application is triggered, the method further comprises: receiving a file imported by external equipment through a preset import interface in the terminal; and analyzing the file to obtain a preset file. The method has the advantages that the content in the preset file can be edited in the external equipment, the edited content is directly imported into the terminal, and no difference exists between the terminals before importing, so that production management is facilitated. The external device may be a Personal Computer (PC) or the like.
In some embodiments, the preset file may also be directly generated in the external device. Before detecting that the installation event of the pre-installed application is triggered, the method further comprises the following steps: and receiving a preset file imported by external equipment through a preset import interface in the terminal. The method has the advantages of saving analysis steps and improving the file import efficiency.
In some embodiments, after obtaining the preset file, the method further includes: and judging whether a preset file is stored in the terminal or not, if so, replacing the stored preset file with the obtained preset file. The method has the advantages that when the built-in plan needs to be changed, the file can be modified and is re-introduced into the terminal, the original preset file is replaced by the analyzed new preset file, and the flexibility of the configuration scheme of the pre-installed application program before delivery is enhanced.
In some embodiments, after installing the target pre-installed application based on the target installation package, the method may further include: and deleting the installation packages of the pre-installed application programs, except the target installation package, stored in the terminal. This has the advantage that memory space of the terminal can be saved.
Fig. 2 is a schematic flowchart of another application installation method provided in an embodiment of the present application, and as shown in fig. 2, the method includes:
step 201, detecting that the terminal is started for the first time after leaving a factory.
Step 202, acquiring a preset configuration file in the terminal.
The preset configuration file corresponds to a target channel of the terminal, and the file contains a storage path of a target installation package of a target preinstalled application program matched with the target channel. And an installation package of pre-installed application programs matched with all channels is stored in the independent storage space in the terminal.
Illustratively, the preset configuration file includes a name, a code number or a package name of the target pre-installed application program matched with the target channel, a target version of the target pre-installed application program matched with the target channel, and a storage path of the target installation package corresponding to the target version.
And 203, generating a soft link according to a preset configuration file by using a preset module.
The preset module is started prior to the package management service after the terminal is started and has root authority.
Optionally, the preset module is an installd module. The generating of the soft link according to the preset file by utilizing the preset module comprises the following steps: and executing a symlink (sourcePath, targetPath) code according to the preset file by using an installd module to generate a soft link. That is, the install module executes symlink (sourcePath, targetPath) code according to a preset configuration file to generate a soft link.
And step 204, linking the file directory of the target installation package of the target pre-installation application program matched with the target channel to the pre-installation application program installation directory by using the soft link.
And step 205, installing the target pre-installed application to the pre-installed application installation catalog through the package management service based on the target installation package.
According to the application program installation method provided by the embodiment of the application program installation method, the installation package of the pre-installed application programs matched with all channels and the preset configuration file corresponding to the target channel of the current terminal are stored in the terminal, when the terminal is detected to be started up and activated for the first time, the preset configuration file is obtained, the preset module is used for generating the soft link according to the preset configuration file, the file directory of the target installation package of the target pre-installed application programs matched with the target channel is linked to the pre-installed application program installation directory through the soft link, the target pre-installed application programs are installed on the basis of the target installation package through the package management service, the maintenance of the terminals of different delivery channels before delivery is facilitated, and the installation of the built-in applications required by the current channel is quickly realized when the terminal is started up and activated for the first time after delivery.
Fig. 3 is a schematic flowchart of another application installation method provided in an embodiment of the present application, where the method includes the following steps:
step 301, detecting that the terminal is started for the first time after leaving the factory.
And step 302, acquiring a preset mounting script file in the terminal.
The preset mounting script file corresponds to a target channel of the terminal, and the file contains a storage path of a target installation package of a target preinstalled application program matched with the target channel. And an installation package of pre-installed application programs matched with all channels is stored in the independent storage space in the terminal.
For example, the preset mount script file is a run script running command (rc) file, and a symlink sourcePath targetPath statement or a mount targetPath statement may be added to the rc file.
And step 303, mounting the file directory of the target installation package of the target preinstalled application program matched with the target channel to the preinstalled application program installation directory by using the preset mounting script file.
And step 304, installing the target pre-installed application to the pre-installed application installation catalog through the package management service based on the target installation package.
And 305, after the target installation package is installed, deleting the installation packages of the pre-installed application programs, except the target installation package, stored in the terminal.
According to the application program installation method provided by the embodiment of the application program installation method, the installation packages of the pre-installed application programs matched with all channels and the preset mounting script files corresponding to the target channel of the current terminal are stored in the terminal, when the terminal is detected to be started for the first time, the preset mounting script files are obtained, the file directories of the target installation packages of the target pre-installed application programs matched with the target channel are directly mounted to the pre-installed application program installation directories through the preset mounting script files, the target pre-installed application programs are installed on the basis of the target installation packages through package management services, the maintenance of the terminals of different delivery channels before delivery is facilitated, the installation efficiency of the pre-installed application programs during the first time of starting is improved, the installation packages irrelevant to the current channel are deleted after installation is finished, and the system space is saved.
Fig. 4 is a schematic flowchart of another application installation method provided in an embodiment of the present application, where a mobile phone is taken as an example, the method includes:
step 401, receiving a file imported by the PC through a preset import interface in the mobile phone.
Step 402, analyzing the file to obtain a preset configuration file.
Optionally, whether a preset configuration file is stored in the mobile phone is judged, and if yes, the stored preset configuration file is replaced by the newly analyzed preset configuration file; and if not, storing the preset configuration file obtained by analysis.
The preset configuration file can support external import, an import function can be added in the mobile phone, namely, a preset import interface is added, an import tool can be installed in the PC, and the preset configuration file is imported by using the import tool. The PC tool can transmit different configuration files to the mobile phone end according to different built-in plans of the mobile phone, and the mobile phone end analyzes the configuration files and then stores the configuration files in a configuration file storage space. Therefore, even if the built-in plan is temporarily changed, the configuration file is only required to be modified and the code is not required to be modified.
Step 403, detecting that an installation event of the pre-installed application is triggered.
For example, when it is detected that the mobile phone is first powered on after being shipped from a factory, it is determined that an installation event of a pre-installed application is detected to be triggered.
And step 404, acquiring a preset configuration file in the mobile phone.
The mobile phone comprises a mobile phone, a preset configuration file and an independent storage space, wherein the independent storage space in the mobile phone stores an installation package of a preinstalled application program matched with all channels, and the preset configuration file can also be stored in the independent storage space.
Illustratively, the preset configuration file includes a name, a code number or a package name of the target pre-installed application program matched with the target channel, a target version of the target pre-installed application program matched with the target channel, and a storage path of the target installation package corresponding to the target version.
And 405, generating a soft link according to a preset configuration file by using an installd module.
Illustratively, the install module is utilized to execute symlink (sourcePath, targetPath) code according to a preset configuration file to generate a soft link.
And 406, linking the file directory of the target installation package of the target pre-installed application program matched with the target channel to the pre-installed application program installation directory by using the soft link.
Step 407, the target pre-installed application is installed to the pre-installed application installation catalog by the package management service based on the target installation package.
According to the application program installation method provided by the embodiment of the application program, multiple applications and different versions of the same application are integrated into the same software of the mobile phone and stored in the independent storage area, the problem that the same software adapts to the built-in combination requirements of the multiple applications is solved by using the configuration file and the application soft link mode recording the complete storage path of the application, the rapid switching of different built-in application schemes can be realized by leading in the configuration file, the maintenance is convenient, and the new project and the new platform can be inherited and integrated rapidly.
Fig. 5 is a block diagram of an application installation apparatus according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and is generally integrated in a terminal, and the application installation apparatus may perform installation of a pre-installed application by executing an application installation method. As shown in fig. 5, the apparatus includes:
a preset file obtaining module 501, configured to obtain a preset file in a terminal when detecting that an installation event of a pre-installed application is triggered, where the preset file corresponds to a target channel of the terminal;
a target installation package determining module 502, configured to determine, according to the preset file, a target installation package of a target pre-installed application program that is matched with the target channel, where installation packages of pre-installed application programs that are matched with at least two channels are stored in the terminal;
an application installation module 503, configured to install the target pre-installed application based on the target installation package.
The application installation device provided in the embodiment of the application stores an installation package and preset files of a pre-installed application matched with at least two channels in a terminal, acquires the preset files corresponding to a target channel in the terminal when detecting that an installation event of the pre-installed application is triggered, determines a target installation package of the target pre-installed application matched with the target channel according to the preset files, and installs the target pre-installed application based on the target installation package. By adopting the technical scheme, the installation package of the pre-installed application programs matched with different channels can be stored in the terminal, selective installation is carried out according to the channels corresponding to the terminal when the installation is carried out, a large number of terminals with different versions do not need to be maintained, and the factory leaving efficiency of the terminal is improved.
Optionally, the installation package of the pre-installed application program matched with the at least two channels is stored in an independent storage space in the terminal.
Optionally, the preset file includes a configuration file including a storage path of the target installation package;
the determining of the target installation package of the target preinstalled application program matched with the target channel according to the preset file comprises the following steps:
generating a soft link according to the preset file;
and linking the file directory of the target installation package of the target pre-installed application program matched with the target channel to a pre-installed application program installation directory by using the soft link.
Optionally, the generating a soft link according to the preset file includes:
and generating a soft link according to the preset file by using a preset module, wherein the preset module is started in preference to the package management service after the terminal is started.
Optionally, the preset file includes a mount script including a storage path of the target installation package;
the determining of the target installation package of the target preinstalled application program matched with the target channel according to the preset file comprises the following steps:
and mounting the file directory of the target installation package of the target preinstalled application program matched with the target channel to the preinstalled application program installation directory by using the preset file.
Optionally, the apparatus further comprises:
the file receiving module is used for receiving a file imported by an external device through a preset import interface in the terminal before detecting that an installation event of a preinstalled application program is triggered;
and the file analysis module is used for analyzing the file to obtain a preset file.
Optionally, the apparatus further comprises:
and the file replacement module is used for judging whether the preset file is stored in the terminal or not after the preset file is obtained, and if so, replacing the stored preset file with the obtained preset file.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform an application installation method, the method including:
when detecting that an installation event of a preinstalled application program is triggered, acquiring a preset file in a terminal, wherein the preset file corresponds to a target channel of the terminal;
determining a target installation package of a target preinstalled application program matched with the target channel according to the preset file, wherein the installation package of the preinstalled application program matched with at least two channels is stored in the terminal;
and installing the target preinstalled application program based on the target installation package.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the application installation operations described above, and may also perform related operations in the application installation method provided in any embodiment of the present application.
The embodiment of the application provides a terminal, and the terminal can be integrated with the application installation device provided by the embodiment of the application. Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 600 may include: the application program installation method comprises a memory 601, a processor 602 and a computer program stored on the memory 601 and capable of being executed by the processor 602, wherein the processor 602 executes the computer program to realize the application program installation method according to the embodiment of the application.
The terminal provided by the embodiment of the application can store the installation package of the pre-installed application programs matched with different channels in the terminal, selective installation is carried out according to the channels corresponding to the terminal when the installation is carried out, a large number of terminals with different versions do not need to be maintained, and the factory leaving efficiency of the terminal is improved.
Fig. 7 is a schematic structural diagram of another terminal provided in the embodiment of the present application, where the terminal may include: a housing (not shown), a memory 701, a Central Processing Unit (CPU) 702 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU702 and the memory 701 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 701 is used for storing executable program codes; the CPU702 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 701 to implement the steps of:
when detecting that an installation event of a preinstalled application program is triggered, acquiring a preset file in a terminal, wherein the preset file corresponds to a target channel of the terminal;
determining a target installation package of a target preinstalled application program matched with the target channel according to the preset file, wherein the installation package of the preinstalled application program matched with at least two channels is stored in the terminal;
and installing the target preinstalled application program based on the target installation package.
The terminal further comprises: peripheral interfaces 703, RF (Radio Frequency) circuitry 705, audio circuitry 706, speakers 711, power management chip 708, input/output (I/O) subsystems 709, other input/control devices 710, touch screen 712, other input/control devices 710, and external port 704, which communicate via one or more communication buses or signal lines 707.
It should be understood that the illustrated terminal 700 is merely one example of a terminal and that the terminal 700 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the terminal for application installation provided in this embodiment, which takes a mobile phone as an example.
A memory 701, the memory 701 being accessible by the CPU702, the peripheral interface 703, and the like, the memory 701 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 703, said peripheral interface 703 may connect input and output peripherals of the device to the CPU702 and the memory 701.
An I/O subsystem 709, which I/O subsystem 709 may connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710, to the peripheral interface 703. The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Where one or more input controllers 7092 receive electrical signals from or transmit electrical signals to other input/control devices 710, the other input/control devices 710 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 712, the touch screen 712 being an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or transmits electrical signals to the touch screen 712. The touch screen 712 detects a contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 712 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 705 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 705 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electric signal, and transmit the electric signal to the speaker 711.
The speaker 711 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 705 into sound and play the sound to the user.
And a power management chip 708 for supplying power and managing power to the hardware connected to the CPU702, the I/O subsystem, and the peripheral interface.
The application installation device, the storage medium and the terminal provided in the above embodiments can execute the application installation method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to an application installation method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (8)

1. An application installation method, comprising:
when detecting that an installation event of a preinstalled application program is triggered, acquiring a preset file in a terminal, wherein the preset file corresponds to a target channel of the terminal;
determining a target installation package of a target preinstalled application program matched with the target channel according to the preset file, wherein the installation package of the preinstalled application program matched with at least two channels is stored in an independent storage space in the terminal;
installing the target preinstalled application program based on the target installation package;
the preset file comprises a configuration file containing a storage path of the target installation package;
the determining of the target installation package of the target preinstalled application program matched with the target channel according to the preset file comprises the following steps:
generating a soft link according to the preset file;
and linking the file directory of the target installation package of the target pre-installed application program matched with the target channel to a pre-installed application program installation directory by using the soft link.
2. The method of claim 1, wherein the generating the soft link according to the preset file comprises:
and generating a soft link according to the preset file by using a preset module, wherein the preset module is started in preference to the package management service after the terminal is started.
3. The method of claim 1, wherein the preset file comprises a mount script comprising a storage path of the target installation package;
the determining of the target installation package of the target preinstalled application program matched with the target channel according to the preset file comprises the following steps:
and mounting the file directory of the target installation package of the target preinstalled application program matched with the target channel to the preinstalled application program installation directory by using the preset file.
4. The method of any of claims 1-3, further comprising, prior to detecting that an installation event of a pre-installed application is triggered:
receiving a file imported by external equipment through a preset import interface in the terminal;
and analyzing the file to obtain a preset file.
5. The method of claim 4, further comprising, after obtaining the preset file:
and judging whether a preset file is stored in the terminal or not, if so, replacing the stored preset file with the obtained preset file.
6. An application installation apparatus, comprising:
the system comprises a preset file acquisition module, a preset file acquisition module and a preset file processing module, wherein the preset file acquisition module is used for acquiring a preset file in a terminal when detecting that an installation event of a preinstalled application program is triggered, and the preset file corresponds to a target channel of the terminal;
the target installation package determining module is used for determining a target installation package of a target preinstalled application program matched with the target channel according to the preset file, wherein the installation package of the preinstalled application program matched with at least two channels is stored in an independent storage space in the terminal;
the application installation module is used for installing the target preinstalled application program based on the target installation package;
the preset file comprises a configuration file containing a storage path of the target installation package;
the determining of the target installation package of the target preinstalled application program matched with the target channel according to the preset file comprises the following steps:
generating a soft link according to the preset file;
and linking the file directory of the target installation package of the target pre-installed application program matched with the target channel to a pre-installed application program installation directory by using the soft link.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the application installation method of any one of claims 1 to 5.
8. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the application installation method according to any one of claims 1 to 5 when executing the computer program.
CN201811333859.9A 2018-11-09 2018-11-09 Application program installation method and device, storage medium and terminal Active CN109508198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811333859.9A CN109508198B (en) 2018-11-09 2018-11-09 Application program installation method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811333859.9A CN109508198B (en) 2018-11-09 2018-11-09 Application program installation method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN109508198A CN109508198A (en) 2019-03-22
CN109508198B true CN109508198B (en) 2022-01-18

Family

ID=65747940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811333859.9A Active CN109508198B (en) 2018-11-09 2018-11-09 Application program installation method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN109508198B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110147240B (en) * 2019-04-30 2023-09-05 广州微算互联信息技术有限公司 Cloud storage-based application program installation method, system and storage medium
CN110096306B (en) 2019-05-09 2021-10-15 京东方科技集团股份有限公司 Application version switching method and device, electronic equipment and storage medium
CN110825429A (en) * 2019-11-13 2020-02-21 中孚安全技术有限公司 Web project packaging method and system
CN111221544B (en) * 2020-01-09 2022-07-22 荣耀终端有限公司 Management method and terminal for pre-installed application software
CN113760306A (en) * 2020-10-26 2021-12-07 北京京东乾石科技有限公司 Method and device for installing software, electronic equipment and storage medium
CN112486510A (en) * 2020-11-04 2021-03-12 深圳市金百锐通信科技有限公司 Method and device for software installation, terminal equipment and storage medium
CN112527333A (en) * 2020-12-17 2021-03-19 深圳市欢太科技有限公司 Application program processing method and device, storage medium and electronic equipment
CN112765597A (en) * 2021-02-02 2021-05-07 腾讯科技(深圳)有限公司 Software installation package detection method and device
CN114640687A (en) * 2022-03-15 2022-06-17 北京中交兴路信息科技有限公司 Software upgrading method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6092189A (en) * 1998-04-30 2000-07-18 Compaq Computer Corporation Channel configuration program server architecture
CN101944168A (en) * 2009-07-09 2011-01-12 精品科技股份有限公司 Electronic file authority control and management system
CN105188048A (en) * 2015-07-31 2015-12-23 上海海漾软件技术有限公司 Method, device and terminal equipment for loading customized applications for mobile terminal
CN107959928A (en) * 2016-10-17 2018-04-24 北京奇虎科技有限公司 The method for down loading and download apparatus of ad data bag in mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6092189A (en) * 1998-04-30 2000-07-18 Compaq Computer Corporation Channel configuration program server architecture
CN101944168A (en) * 2009-07-09 2011-01-12 精品科技股份有限公司 Electronic file authority control and management system
CN105188048A (en) * 2015-07-31 2015-12-23 上海海漾软件技术有限公司 Method, device and terminal equipment for loading customized applications for mobile terminal
CN107959928A (en) * 2016-10-17 2018-04-24 北京奇虎科技有限公司 The method for down loading and download apparatus of ad data bag in mobile terminal

Also Published As

Publication number Publication date
CN109508198A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
CN109508198B (en) Application program installation method and device, storage medium and terminal
CN107402835B (en) Application program exception handling method and device, storage medium and mobile terminal
CN108710515B (en) Application preloading method and device, storage medium and terminal
CN109947449B (en) System upgrading method and device, storage medium and electronic equipment
US20110302347A1 (en) Class-Based Compatibility Testing and Notification
CN107026933B (en) Multi-open application message management method and device and intelligent terminal
CN106484547B (en) Multi-open application management method and device and terminal
US8990929B2 (en) Auditing application activities
KR20200140555A (en) Electronic device for switching between a dual standby mode and a single standby mode and method for the same
CN103544033A (en) Method, device and associated equipment for rolling back application program
CN108681474B (en) Application preloading method and device, storage medium and terminal
CN109408465B (en) File attribution information recording method, device, storage medium and terminal
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN106502732B (en) Application closing method and device and intelligent terminal
CN112256348A (en) Cloud service platform creation method and system, electronic equipment and storage medium
CN105430448A (en) Control processing method for video player and video player client
CN106484514B (en) Multi-open application operation management method and device and intelligent terminal
CN108427549B (en) Method and device for processing sound of notification message, storage medium and terminal
CN106484482B (en) Method and device for managing split application in multi-open application and intelligent terminal
US11604656B2 (en) Method and apparatus for managing application
CN106776847B (en) Method and device for deleting media file and mobile terminal
CN108153676B (en) Debugging management method and device, storage medium and terminal equipment
CN106648298B (en) Application control method and device and mobile terminal
CN109413714B (en) User agent information processing method, device, storage medium and terminal
CN107025058B (en) Information writing method and device of mobile terminal and mobile terminal

Legal Events

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