CN106874038B - Application installation method and device and mobile terminal - Google Patents

Application installation method and device and mobile terminal Download PDF

Info

Publication number
CN106874038B
CN106874038B CN201710025478.3A CN201710025478A CN106874038B CN 106874038 B CN106874038 B CN 106874038B CN 201710025478 A CN201710025478 A CN 201710025478A CN 106874038 B CN106874038 B CN 106874038B
Authority
CN
China
Prior art keywords
application
user mode
configuration file
module
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
CN201710025478.3A
Other languages
Chinese (zh)
Other versions
CN106874038A (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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201710025478.3A priority Critical patent/CN106874038B/en
Publication of CN106874038A publication Critical patent/CN106874038A/en
Application granted granted Critical
Publication of CN106874038B publication Critical patent/CN106874038B/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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability

Abstract

The invention discloses a method, a device and a mobile terminal for installing an application, wherein the method for installing the application comprises the steps of receiving an installation instruction for installing the application in a second user mode; judging whether the application is installed in a first user mode, if so, acquiring a configuration file of the application in the first user mode; copying the configuration file to a file directory of the second user mode, and installing the configuration file applied to the second user mode according to the configuration file. According to the method and the device, the mode of installing the application in the second user mode is realized by copying the configuration file of the application which is stored in the first user mode into the second user mode, so that the downloading and the decompressing of the source file in the second user mode are avoided, the steps of installing the same application in different user systems are simplified, and the user experience is improved.

Description

Application installation method and device and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for application installation, and a mobile terminal.
Background
With the rise of multi-user systems, people are more and more willing to use terminal devices with multi-user systems to complete work or life in a specific field, such as a payment domain designed for the payment security field and a child domain designed for a child usage scenario, but installation of applications in the multi-user systems on the market at present still stays in steps of independent installation according to a source file, namely downloading, decompressing and configuring, so that for users who need to install the same application in the multi-user systems, installation repeatability steps are more, and user experience is poor.
Disclosure of Invention
In view of the above problems, the present invention provides a method, an apparatus and a mobile terminal for application installation, to achieve the purpose, the present invention adopts the following technical solutions:
the first scheme is as follows:
a method of application installation is provided, comprising:
receiving an installation instruction for installing an application in a second user mode, wherein the second user mode is an operating system logged in by a second account;
judging whether the application is installed in a first user mode, if so, acquiring a configuration file of the application in the first user mode; the first user mode is an operating system logged in by adopting a first account, and the operating system management authority of the first account is greater than that of the second account;
copying the configuration file to a file directory of the second user mode, and installing the configuration file applied to the second user mode according to the configuration file.
Preferably, before determining whether the application is already installed in the first user mode, the method includes:
acquiring an application name of the application, and judging whether the application name of the application exists in a white list preset in the second user mode;
if yes, continuing to execute the step of judging whether the application is installed in the first user mode.
Preferably, after the determining whether the application name of the application exists in a white list preset in the second user mode, the method further includes:
if not, the application is terminated to be installed in the second user mode.
Preferably, the determining whether the name of the application exists in a white list preset in the second user mode includes:
and presetting a white list of preset types and application names based on the second user mode.
Preferably, the preset type of the second user mode is a financial payment type, and the presetting is based on a white list of the preset type and the application name of the second user mode, and includes:
acquiring an application name;
judging whether the application name belongs to a financial payment class;
and if the application name belongs to the financial payment class, adding the application name to a white list.
Preferably, the determining whether the application is already installed in the first user mode, and if so, acquiring a configuration file of the application in the first user mode includes:
acquiring an application list installed in a first user mode;
and judging whether the application exists in the application list, if so, acquiring a configuration file of the application in the first user mode.
Preferably, before the obtaining the configuration file of the application in the first user mode, the method includes:
downloading a source file of an application into the first user mode;
decompressing a source file of the application in the first user mode;
storing a source file of the decompressed application into a file directory shared by the first user mode and the second user mode;
configuring the application in the first user mode and generating a configuration file for the application.
Preferably, the obtaining the configuration file of the application in the first user mode includes:
obtaining a configuration file of the application in the first user mode through CGROUP.
Preferably, the installing the application in the second user mode according to the configuration file includes:
associating the configuration information with a source file of the application stored under a file directory shared by the first user mode and the second user mode in the second user mode, installing the application.
Preferably, the configuration file includes one or more of a package name of the application, an application name, a version number, access right information for accessing the address book, a third party information account for accessing third party data information, declaration information of the application module, and global variable information.
Preferably, after the installing the application in the second user mode according to the configuration file, the method includes:
receiving an uninstall instruction for uninstalling the application in the second user mode;
and deleting the configuration file of the application in the second user mode according to the uninstalling instruction.
Preferably, after the installing the application in the second user mode according to the configuration file, the method includes:
receiving an uninstalling instruction for uninstalling the application in the first user mode;
and deleting the configuration file in the first user mode and the source file of the application in the file directory shared by the first user mode and the second user mode according to the uninstalling instruction.
Preferably, after the installing the application in the second user mode according to the configuration file, the method includes:
receiving an upgrading instruction for upgrading the application;
upgrading the source file of the application in the file directory shared by the first user mode and the second user mode according to the upgrading instruction;
and synchronously upgrading the applications in the first user mode and the second user mode according to the upgraded source file.
Scheme II:
there is provided an apparatus for application installation, comprising:
the device comprises a first receiving module, a second receiving module and a control module, wherein the first receiving module is used for receiving an installation instruction for installing an application in a second user mode, and the second user mode is an operating system logged in by a second account;
the judging and obtaining module is used for judging whether the application is installed in a first user mode, and if so, obtaining a configuration file of the application in the first user mode; the first user mode is an operating system logged in by adopting a first account, and the operating system management authority of the first account is greater than that of the second account;
and the copying and installing module is used for copying the configuration file to a file directory of the second user mode and installing the configuration file applied to the second user mode according to the configuration file.
Preferably, the apparatus comprises:
the acquisition judging module is used for acquiring the application name of the application before judging whether the application is installed in the first user mode or not, and judging whether the application name of the application exists in a white list preset in the second user mode or not;
and the first execution module is used for continuously executing the step of judging whether the application is installed in the first user mode or not if the application name of the application exists in a preset white list in the second user mode.
Preferably, the apparatus comprises:
and the second execution module is used for terminating the installation of the application in the second user mode after the application name of the application does not exist in a preset white list in the second user mode.
Preferably, the apparatus comprises:
the preset module is used for presetting a white list based on the preset type of the second user mode and the application name before judging whether the name of the application exists in the preset white list in the second user mode.
Preferably, the second user mode preset type is a financial payment type, and the preset module includes:
a first obtaining unit configured to obtain an application name;
the application name judging unit is used for judging whether the application name belongs to a financial payment class or not;
and the adding unit is used for adding the application name into a white list if the application name belongs to the financial payment class.
Preferably, the judgment acquisition module includes:
an application list unit, configured to acquire an application list that has been installed in the first user mode;
and the application judging unit is used for judging whether the application exists in the application list or not, and if so, acquiring the configuration file of the application in the first user mode.
Preferably, the apparatus comprises:
a download module for downloading a source file of the application into the first user mode before obtaining the configuration file of the application in the first user mode;
a decompression module to decompress a source file of the application in the first user mode;
a storage module, configured to store a source file of the decompressed application into a file directory shared by the first user mode and the second user mode;
a configuration generation module configured to configure the application in the first user mode and generate a configuration file of the application.
Preferably, the judgment acquisition module includes:
an obtaining subunit, configured to obtain, through CGROUP, a configuration file of the application in the first user mode.
Preferably, the duplication installation module includes:
an associating unit, configured to associate the configuration information with a source file of the application stored in a file directory shared by the first user mode and the second user mode in the second user mode, and install the application.
Preferably, the configuration file includes one or more of a package name of the application, an application name, a version number, access right information for accessing the address book, a third party information account for accessing third party data information, declaration information of the application module, and global variable information.
Preferably, the apparatus comprises:
a second receiving module, configured to receive an uninstall instruction for uninstalling the application in the second user mode after the application is installed in the second user mode according to the configuration file;
and the first deleting module is used for deleting the configuration file of the application in the second user mode according to the uninstalling instruction.
Preferably, the apparatus comprises:
a third receiving module, configured to receive an uninstall instruction for uninstalling the application in the first user mode after installing the application in the second user mode according to the configuration file;
and the second deleting module is used for deleting the configuration file in the first user mode and the source file of the application in the file directory shared by the first user mode and the second user mode according to the unloading instruction.
Preferably, the apparatus comprises:
a fourth receiving module, configured to receive an upgrade instruction for upgrading the application after the application is installed in the second user mode according to the configuration file;
the upgrading module is used for upgrading the applied source file in the file directory shared by the first user mode and the second user mode according to the upgrading instruction;
and the synchronization module is used for synchronously upgrading the application in the first user mode and the application in the second user mode according to the upgraded source file.
The third scheme is as follows:
there is provided a mobile terminal including:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform a method of application installation as recited in any of aspects.
Compared with the prior art, the application installation method, the application installation device and the mobile terminal have the following beneficial effects:
according to the method, the device and the mobile terminal for installing the application, the mode of installing the application in the second user mode is realized by copying the configuration file of the application which is stored in the first user mode into the second user mode, so that the downloading and the decompressing of the source file in the second user mode are avoided, the steps of installing the same application in different user systems are simplified, and the user experience is improved.
According to the method, the device and the mobile terminal for installing the application, the application which can be installed in the second user mode is screened through the white list preset in the second user mode, so that the safety of the second user mode is improved, meanwhile, the applicable scenes of the second user mode are enriched through the preset type of the second user mode, the popularization of a multi-user system technology is promoted to a certain extent, and the rapid development of the Internet industry is promoted.
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 creative efforts.
FIG. 1 is a flow chart illustrating a method for installing an application according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram of an apparatus for application installation according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a module structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions 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.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 102, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used to distinguish different messages, terminals, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
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, an embodiment of the present invention provides a method for installing an application, such as the flowchart of the method for installing an application shown in fig. 1, which includes the following steps:
step 101: receiving an installation instruction for installing an application in a second user mode, wherein the second user mode is an operating system logged in by a second account; the second account is a login account of one of the operating systems, for example, a win 7 operating system of microsoft corporation is taken as an example, the win 7 operating system is a multi-user system, one or more user accounts can be set on the system, and user data in the system logged in by different user accounts are independent of each other and are not influenced by each other; for another example, taking a mobile terminal adopting an android operating system as an example, the maximum user upper limit supported by the current mobile terminal can be determined by performing integer value taking on a config _ multiuser maximums configuration item in a configuration file. It should be noted that the default value of the configuration item is 1, i.e. multi-user is not supported, but if multi-user is required to be enabled, the value is set to be a value greater than 1; consistent with the win 7 operating system, the storage spaces of the multi-user mode of the android operating system are mutually independent, and each user has an independent storage space.
In some embodiments, receiving an installation instruction to install the application in the second user mode is implemented by a pre-created instruction reception class.
Step 103: judging whether the application is installed in a first user mode, if so, acquiring a configuration file of the application in the first user mode; the first user mode is an operating system logged in by adopting a first account, and the operating system management authority of the first account is greater than that of the second account; the first account is the same as the second account and is a login account of one of the operating systems, and the difference is that the management authority of the first account for the operating system is larger than that of the second account for the operating system; it can be understood that the first account is an administrator account, and the second account is a first account, that is, an administrator account, an account created in the first user mode; the configuration file comprises one or more of package name, application name, version number, compatible first user mode version number, access authority information for accessing the address book, third party information account number for accessing third party data information, declaration information of the application module and global variable information.
In some embodiments, considering that the system privilege of the second user mode is relatively low, the following steps may be included before step 103 is performed:
acquiring an application name of the application, and judging whether the application name of the application exists in a white list preset in the second user mode;
if yes, continuing to execute the step of judging whether the application is installed in the first user mode;
if not, the application is terminated to be installed in the second user mode.
Specifically, the preset white list in the second user mode includes a preset white list based on the preset type and the application name of the second user mode before determining whether the application name exists in the preset white list in the second user mode, that is, before determining whether the application name exists in the preset white list in the second user mode; the preset type of the second user mode is based on the user setting or the default setting of an operating system, such as financial payment, children and the like; when the preset type of the second user mode is a financial payment type, presetting a white list based on the preset type of the second user mode and the application name comprises the following steps:
acquiring an application name;
judging whether the application name belongs to a financial payment class;
if the application name belongs to the financial payment class, the application name is added to a white list.
Illustratively, for example, if the application name is "Paibao", it belongs to the financial payment class and is also added to the white list, it is of course also possible to install the application in the second user mode, but if the application name is "American show", it does not belong to the financial payment class and is not added to the white list, nor is it possible to install the application in the second user mode of which the preset type is the financial payment class.
In some embodiments, considering that there are often more applications installed in the first user mode, the following steps may be taken in determining whether the application is already installed in the first user mode:
acquiring an application list installed in a first user mode;
and judging whether the application exists in the application list, if so, acquiring a configuration file applied in the first user mode.
And judging whether the application exists in the application list or not, comparing the package name of the application with the package name of the application in the application list, if so, judging that the application exists in the application list, and then acquiring a configuration file applied in the first user mode.
It is worth mentioning that the configuration file is a configuration file installed by the application in the first user mode, and therefore before acquiring the configuration file of the application in the first user mode, the method includes:
downloading a source file of an application into a first user mode;
decompressing a source file of an application in a first user mode;
storing a source file of the decompressed application into a file directory shared by the first user mode and the second user mode;
an application is configured in a first user mode and a configuration file for the application is generated.
In the android system, the source file is an android application package with the suffix name apk created and signed based on compiled resources, such as text, pictures, and DALVIK byte codes.
In some embodiments, obtaining the configuration file applied in the first user mode may be obtained through CGROUP (CONTROL group), where CGROUP is a mechanism provided by the LINUX kernel that can limit, record, and isolate physical resources used by a process group, such as a central processing unit, a memory, and an input/output port.
Step 105: copying the configuration file to a file directory of the second user mode, and installing the configuration file applied to the second user mode according to the configuration file.
Specifically, before copying the configuration file into the file directory of the second user mode in the android system, the relevant acquisition authority needs to be written in android manifest.
In detail, installing the application to the second user mode according to the configuration file includes:
and associating the configuration information with a source file of the application stored in a file directory shared by the first user mode and the second user mode in the second user mode, and installing the application.
Considering the difference between the second user mode and the first user mode, it may also be involved in uninstalling the application in the second user mode and the first user mode after step 105, which may be referred to as follows:
the first case: when the application needs to be uninstalled in the second user mode, the method comprises the following steps:
receiving an uninstalling instruction for uninstalling the application in the second user mode;
deleting the configuration file applied in the second user mode according to the unloading instruction;
the second case: when the application needs to be uninstalled in the first user mode, the method comprises the following steps:
receiving an uninstalling instruction for uninstalling the application in the first user mode;
and deleting the configuration file in the first user mode and the application source file in the file directory shared by the first user mode and the second user mode according to the uninstalling instruction.
Although the source files of the applications in the file directory shared by the first user mode and the second user mode are shared, the unloading of the applications in the second user mode is not exactly the same as the unloading of the applications in the first user mode, in particular, the unloading in the second user mode does not affect the applications in the first user mode, but the unloading of the applications in the second user mode is done at the same night when the unloading in the first user mode. The reason for such design is that the installation and the uninstallation of the user are convenient, the source file does not need to be obtained in the second user mode during the installation, and the source file does not need to be deleted during the uninstallation, so that the method is convenient and fast, time-saving and efficient, and has better user experience.
Similarly, when an application is upgraded, it may include the following steps:
receiving an upgrading instruction of upgrading an application;
upgrading the source file of the application in the file directory shared by the first user mode and the second user mode according to the upgrading instruction;
and synchronously upgrading the application in the first user mode and the application in the second user mode according to the upgraded source file.
Compared with the prior art, the method for installing the application realizes the mode of installing the application in the second user mode by copying the configuration file of the application which is stored in the first user mode into the second user mode, avoids downloading and decompressing the source file in the second user mode, simplifies the step of installing the same application in different user systems, and improves the user experience.
The application installation method screens the applications capable of being installed in the second user mode through the white list preset in the second user mode, improves the safety of the second user mode, enriches the applicable scenes of the second user mode through the preset type of the second user mode, promotes the popularization of a multi-user system technology to a certain extent, and promotes the rapid development of the Internet industry.
Referring to fig. 2, based on the same inventive concept of the same application installation method, an embodiment of the invention provides an apparatus for application installation, which includes a first receiving module 2002, a judgment obtaining module 2004, and a copy installation module 2006, wherein,
a first receiving module 2002, configured to receive an installation instruction for installing an application in a second user mode, where the second user mode is an operating system logged in by using a second account;
a judging and obtaining module 2004, configured to judge whether the application has been installed in the first user mode, and if yes, obtain a configuration file applied in the first user mode; the first user mode is an operating system logged in by adopting a first account, and the operating system management authority of the first account is greater than that of a second account;
and the copying and installing module 2006 is used for copying the configuration file to the file directory of the second user mode and installing and applying the configuration file to the second user mode according to the configuration file.
The configuration file comprises one or more of a package name, an application name, a version number, access authority information for accessing the address book, a third party information account for accessing third party data information, statement information of an application module and global variable information of the application.
In some embodiments, the application-installed apparatus comprises:
the acquisition judging module is used for acquiring the application name of the application before judging whether the application is installed in the first user mode, and judging whether the application name of the application exists in a white list preset in the second user mode;
and the first execution module is used for continuously executing the step of judging whether the application is installed in the first user mode or not if the application name of the application exists in a preset white list in the second user mode.
And the second execution module is used for terminating the installation of the application in the second user mode after the application name of the application does not exist in a white list preset in the second user mode.
The device for installing the application comprises a preset module, which is used for presetting a white list based on the preset type of the second user mode and the application name before judging whether the name of the application exists in the white list preset in the second user mode.
In a matching manner, the second user mode preset type is a financial payment type, and the preset module comprises:
a first obtaining unit configured to obtain an application name;
an application name judging unit for judging whether the application name belongs to the financial payment class;
and the adding unit is used for adding the application name into the white list if the application name belongs to the financial payment class.
Preferably, the judgment acquisition module 2004 includes:
an application list unit, configured to acquire an application list that has been installed in the first user mode;
and the application judging unit is used for judging whether the application exists in the application list or not, and if so, acquiring the configuration file of the application in the first user mode.
In some embodiments, the application-installed apparatus comprises:
a download module for downloading a source file of an application into a first user mode before obtaining a configuration file of the application in the first user mode;
a decompression module to decompress a source file of an application in a first user mode;
the storage module is used for storing the decompressed application source file into a file directory shared by the first user mode and the second user mode;
and the configuration generation module is used for configuring the application in the first user mode and generating a configuration file of the application.
Preferably, the judgment acquisition module 2004 includes:
an obtaining subunit, configured to obtain, through CGROUP, a configuration file applied in the first user mode.
Preferably, the duplicate installation module 2006 comprises:
and the association unit is used for associating the configuration information with a source file of the application stored in a file directory shared by the first user mode and the second user mode in the second user mode and installing the application.
In some embodiments, the application-installed apparatus comprises:
the second receiving module is used for receiving an uninstalling instruction for uninstalling the application in the second user mode after the installation application in the second user mode is carried out according to the configuration file;
and the first deleting module is used for deleting the configuration file applied in the second user mode according to the unloading instruction.
In some embodiments, the application-installed apparatus comprises:
the third receiving module is used for receiving an uninstalling instruction for uninstalling the application in the first user mode after the installation application in the second user mode according to the configuration file;
and the second deleting module is used for deleting the configuration file in the first user mode and the application source file in the file directory shared by the first user mode and the second user mode according to the unloading instruction.
In some embodiments, the application-installed apparatus comprises:
the fourth receiving module is used for receiving an upgrading instruction of the upgrading application after the upgrading instruction is installed and applied to the second user mode according to the configuration file;
the upgrading module is used for upgrading the applied source file in the file directory shared by the first user mode and the second user mode according to the upgrading instruction;
and the synchronization module is used for synchronously upgrading the application in the first user mode and the application in the second user mode according to the upgraded source file.
Compared with the prior art, the application installation device avoids downloading and decompressing the source file in the second user mode through the arrangement of the first receiving module 2002, the judgment acquisition module 2004 and the copy installation module 2006, simplifies the installation steps of the same application in different user systems, and improves the user experience.
Referring to fig. 3, based on the same inventive concept as the same application installation method, an embodiment of the present invention further provides a mobile terminal, as shown in fig. 3, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part of the embodiment of the present invention. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 3 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 3, the cellular phone includes: radio Frequency (RF) circuitry 1510, memory 1520, input unit 1530, display unit 1540, sensor 1550, audio circuitry 1560, wireless fidelity (WiFi) module 1570, processor 1580, and power supply 1590. Those skilled in the art will appreciate that the handset configuration shown in fig. 3 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 3:
the RF circuit 1510 may be configured to receive and transmit signals during information transmission and reception or during a call, and in particular, receive downlink information of a base station and then process the received downlink information to the processor 1580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 1510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1520 may be used to store software programs and modules, and the processor 1580 performs various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 1520. The memory 1520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1520 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 1530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on or near the touch panel 1531 using any suitable object or accessory such as a finger or a stylus) and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1580, and can receive and execute commands sent by the processor 1580. In addition, the touch panel 1531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1530 may include other input devices 1532 in addition to the touch panel 1531. In particular, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 1540 may include a Display panel 1541, and optionally, the Display panel 1541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1531 may cover the display panel 1541, and when the touch panel 1531 detects a touch operation on or near the touch panel 1531, the touch operation is transmitted to the processor 1580 to determine the type of the touch event, and then the processor 1580 provides a corresponding visual output on the display panel 1541 according to the type of the touch event. Although in fig. 3, the touch panel 1531 and the display panel 1541 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1531 and the display panel 1541 may be integrated to implement the input and output functions of the mobile phone.
The handset can also include at least one sensor 1550, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1541 according to the brightness of ambient light and a proximity sensor that turns off the display panel 1541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1560, speakers 1561, and microphone 1562 may provide an audio interface between a user and a cell phone. The audio circuit 1560 may transmit the electrical signal converted from the received audio data to the speaker 1561, and convert the electrical signal into an audio signal by the speaker 1561 and output the audio signal; on the other hand, the microphone 1562 converts collected sound signals into electrical signals, which are received by the audio circuit 1560 and converted into audio data, which are processed by the audio data output processor 1580 and then passed through the RF circuit 1510 for transmission to, for example, another cellular phone, or for output to the memory 1520 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a WiFi module 1570, and provides wireless broadband internet access for the user. Although fig. 3 shows WiFi module 1570, it is understood that it does not belong to the essential components of the handset and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1520 and calling data stored in the memory 1520, thereby integrally monitoring the mobile phone. Optionally, the processor 1580 may include one or more processing units; preferably, the processor 1580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, and the like, and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor may not be integrated into the processor 1580.
The handset also includes a power supply 1590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1580 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment of the present invention, the processor 1580 included in the mobile terminal further has the following functions:
receiving an installation instruction for installing the application in a second user mode, wherein the second user mode is an operating system logged in by a second account;
judging whether the application is installed in the first user mode, if so, acquiring a configuration file applied in the first user mode; the first user mode is an operating system logged in by adopting a first account, and the operating system management authority of the first account is greater than that of a second account;
and copying the configuration file to a file directory of the second user mode, and installing and applying the configuration file to the second user mode according to the configuration file.
The configuration file comprises one or more of a package name, an application name, a version number, access authority information for accessing the address book, a third party information account for accessing third party data information, statement information of an application module and global variable information of the application.
In some embodiments, determining whether the application has been installed in the first user mode comprises, prior to:
acquiring an application name of the application, and judging whether the application name of the application exists in a white list preset in the second user mode;
and if the application name of the application exists in a preset white list in the second user mode, continuing to execute the step of judging whether the application is installed in the first user mode.
And if the application name of the application does not exist in a preset white list in the second user mode, terminating the installation of the application in the second user mode.
Adaptively, whether the name of the application exists in a preset white list in the second user mode is judged, and the preset white list based on the second user mode and the application name is preset in the preset white list.
In a matching manner, the preset type of the second user mode is a financial payment type, and the presetting of the white list based on the preset type of the second user mode and the application name comprises the following steps:
acquiring an application name;
judging whether the application name belongs to a financial payment class;
if the application name belongs to the financial payment class, the application name is added to a white list.
Preferably, the determining whether the application is installed in the first user mode, and if so, acquiring the configuration file of the application in the first user mode includes:
acquiring an application list installed in a first user mode;
and judging whether the application exists in the application list, if so, acquiring a configuration file applied in the first user mode.
Preferably, the obtaining of the profile of the application in the first user mode comprises:
in downloading a source file of an application into a first user mode;
decompressing a source file of an application in a first user mode;
storing a source file of the decompressed application into a file directory shared by the first user mode and the second user mode;
an application is configured in a first user mode and a configuration file for the application is generated.
Preferably, the obtaining the configuration file of the application in the first user mode comprises obtaining the configuration file of the application in the first user mode through CGROUP.
Preferably, installing the application to the second user mode according to the profile comprises:
and associating the configuration information with a source file of the application stored in a file directory shared by the first user mode and the second user mode in the second user mode, and installing the application.
In some embodiments, installing the application in the second user mode according to the profile comprises, after:
receiving an uninstalling instruction for uninstalling the application in the second user mode;
and deleting the configuration file applied in the second user mode according to the uninstalling instruction.
In some embodiments, installing the application in the second user mode according to the profile comprises, after:
receiving an uninstalling instruction for uninstalling the application in the first user mode;
and deleting the configuration file in the first user mode and the application source file in the file directory shared by the first user mode and the second user mode according to the uninstalling instruction.
In some embodiments, installing the application in the second user mode according to the profile comprises, after:
receiving an upgrading instruction of upgrading an application;
upgrading the source file of the application in the file directory shared by the first user mode and the second user mode according to the upgrading instruction;
and synchronously upgrading the application in the first user mode and the application in the second user mode according to the upgraded source file.
Compared with the prior art, the mobile terminal realizes the mode of installing the application in the second user mode by copying the configuration file of the application which is stored in the first user mode into the second user mode, avoids downloading and decompressing the source file in the second user mode, simplifies the step of installing the same application in different user systems, and improves the user experience.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
While the method, the apparatus, and the mobile terminal for application installation provided by the present invention have been described in detail, for those skilled in the art, according to the idea of the embodiment of the present invention, the specific implementation manner and the application scope may be changed, and in summary, the content of the present description should not be construed as limiting the present invention.
In summary, the technical scheme of the invention is as follows:
A1. a method of application installation, comprising:
receiving an installation instruction for installing an application in a second user mode, wherein the second user mode is an operating system logged in by a second account;
judging whether the application is installed in a first user mode, if so, acquiring a configuration file of the application in the first user mode; the first user mode is an operating system logged in by adopting a first account, and the operating system management authority of the first account is greater than that of the second account;
copying the configuration file to a file directory of the second user mode, and installing the configuration file applied to the second user mode according to the configuration file.
A2. The method for installing an application according to a1, wherein before determining whether the application has been installed in the first user mode, the method comprises:
acquiring an application name of the application, and judging whether the application name of the application exists in a white list preset in the second user mode;
if yes, continuing to execute the step of judging whether the application is installed in the first user mode.
A3. The method for installing an application according to a2, wherein after determining whether the application name of the application exists in a whitelist preset in the second user mode, the method further includes:
if not, the application is terminated to be installed in the second user mode.
A4. The method for installing an application according to a2, wherein the determining whether the name of the application exists before a whitelist preset in the second user mode includes:
and presetting a white list of preset types and application names based on the second user mode.
A5. The method for application installation according to a4, wherein the second user mode preset type is a financial payment class, and the preset is based on the second user mode preset type and a white list of application names, and includes:
acquiring an application name;
judging whether the application name belongs to a financial payment class;
and if the application name belongs to the financial payment class, adding the application name to a white list.
A6. The method for installing an application according to a1, where the determining whether the application is already installed in the first user mode, and if so, acquiring the configuration file of the application in the first user mode includes:
acquiring an application list installed in a first user mode;
and judging whether the application exists in the application list, if so, acquiring a configuration file of the application in the first user mode.
A7. The method for installing an application according to a1, wherein the obtaining the configuration file of the application in the first user mode comprises:
downloading a source file of an application into the first user mode;
decompressing a source file of the application in the first user mode;
storing a source file of the decompressed application into a file directory shared by the first user mode and the second user mode;
configuring the application in the first user mode and generating a configuration file for the application.
A8. The method for application installation according to a1, wherein the obtaining the configuration file of the application in the first user mode includes:
obtaining a configuration file of the application in the first user mode through CGROUP.
A9. The method for application installation according to a1, wherein the installation of the application in the second user mode according to the configuration file comprises:
associating the configuration information with a source file of the application stored under a file directory shared by the first user mode and the second user mode in the second user mode, installing the application.
A10. The method for installing the application according to a1, wherein the configuration file includes one or more of a package name, an application name, a version number of the application, access right information for accessing the address book, a third party information account for accessing third party data information, declaration information of the application module, and global variable information.
A11. The method for application installation according to a1, comprising, after installing the application in the second user mode according to the configuration file:
receiving an uninstall instruction for uninstalling the application in the second user mode;
and deleting the configuration file of the application in the second user mode according to the uninstalling instruction.
A12. The method for application installation according to a1, comprising, after installing the application in the second user mode according to the configuration file:
receiving an uninstalling instruction for uninstalling the application in the first user mode;
and deleting the configuration file in the first user mode and the source file of the application in the file directory shared by the first user mode and the second user mode according to the uninstalling instruction.
A13. The method for application installation according to a1, comprising, after installing the application in the second user mode according to the configuration file:
receiving an upgrading instruction for upgrading the application;
upgrading the source file of the application in the file directory shared by the first user mode and the second user mode according to the upgrading instruction;
and synchronously upgrading the applications in the first user mode and the second user mode according to the upgraded source file.
B14. An apparatus for application installation, comprising:
the device comprises a first receiving module, a second receiving module and a control module, wherein the first receiving module is used for receiving an installation instruction for installing an application in a second user mode, and the second user mode is an operating system logged in by a second account;
the judging and obtaining module is used for judging whether the application is installed in a first user mode, and if so, obtaining a configuration file of the application in the first user mode; the first user mode is an operating system logged in by adopting a first account, and the operating system management authority of the first account is greater than that of the second account;
and the copying and installing module is used for copying the configuration file to a file directory of the second user mode and installing the configuration file applied to the second user mode according to the configuration file.
B15. The apparatus for application installation according to B14, the apparatus comprising:
the acquisition judging module is used for acquiring the application name of the application before judging whether the application is installed in the first user mode or not, and judging whether the application name of the application exists in a white list preset in the second user mode or not;
and the first execution module is used for continuously executing the step of judging whether the application is installed in the first user mode or not if the application name of the application exists in a preset white list in the second user mode.
B16. The apparatus for application installation according to B14, the apparatus comprising:
and the second execution module is used for terminating the installation of the application in the second user mode after the application name of the application does not exist in a preset white list in the second user mode.
B17. The apparatus for application installation according to B15, the apparatus comprising:
the preset module is used for presetting a white list based on the preset type of the second user mode and the application name before judging whether the name of the application exists in the preset white list in the second user mode.
B18. The apparatus for application installation according to B17, wherein the second user mode preset type is a financial payment type, and the preset module includes:
a first obtaining unit configured to obtain an application name;
the application name judging unit is used for judging whether the application name belongs to a financial payment class or not;
and the adding unit is used for adding the application name into a white list if the application name belongs to the financial payment class.
B19. The apparatus for application installation according to B14, wherein the determining and acquiring module includes:
an application list unit, configured to acquire an application list that has been installed in the first user mode;
and the application judging unit is used for judging whether the application exists in the application list or not, and if so, acquiring the configuration file of the application in the first user mode.
B20. The apparatus for application installation according to B14, the apparatus comprising:
a download module for downloading a source file of the application into the first user mode before obtaining the configuration file of the application in the first user mode;
a decompression module to decompress a source file of the application in the first user mode;
a storage module, configured to store a source file of the decompressed application into a file directory shared by the first user mode and the second user mode;
a configuration generation module configured to configure the application in the first user mode and generate a configuration file of the application.
B21. The apparatus for application installation according to B14, wherein the determining and acquiring module includes:
an obtaining subunit, configured to obtain, through CGROUP, a configuration file of the application in the first user mode.
B22. The apparatus for application installation according to B14, the copy installation module comprising:
an associating unit, configured to associate the configuration information with a source file of the application stored in a file directory shared by the first user mode and the second user mode in the second user mode, and install the application.
B23. The apparatus for installing an application according to B14, wherein the configuration file includes one or more of a package name, an application name, a version number of the application, access right information for accessing an address book, a third party information account for accessing third party data information, declaration information of an application module, and global variable information.
B24. The apparatus for application installation according to B14, the apparatus comprising:
a second receiving module, configured to receive an uninstall instruction for uninstalling the application in the second user mode after the application is installed in the second user mode according to the configuration file;
and the first deleting module is used for deleting the configuration file of the application in the second user mode according to the uninstalling instruction.
B25. The apparatus for application installation according to B14, the apparatus comprising:
a third receiving module, configured to receive an uninstall instruction for uninstalling the application in the first user mode after installing the application in the second user mode according to the configuration file;
and the second deleting module is used for deleting the configuration file in the first user mode and the source file of the application in the file directory shared by the first user mode and the second user mode according to the unloading instruction.
B26. The apparatus for application installation according to B14, the apparatus comprising:
a fourth receiving module, configured to receive an upgrade instruction for upgrading the application after the application is installed in the second user mode according to the configuration file;
the upgrading module is used for upgrading the applied source file in the file directory shared by the first user mode and the second user mode according to the upgrading instruction;
and the synchronization module is used for synchronously upgrading the application in the first user mode and the application in the second user mode according to the upgraded source file.
C27. A mobile terminal, comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform a method of application installation as described in any of A1-A13.

Claims (27)

1. A method of application installation, comprising:
receiving an installation instruction for installing an application in a second user mode, wherein the second user mode is an operating system logged in by a second account;
judging whether the application is installed in a first user mode, if so, acquiring a configuration file of the application in the first user mode; the first user mode is an operating system logged in by adopting a first account, the second account is an account created by the first account in the first user mode, and the operating system management authority of the first account is greater than that of the second account;
copying the configuration file to a file directory of the second user mode, and installing the configuration file applied to the second user mode according to the configuration file.
2. The method of application installation according to claim 1, wherein said determining whether the application has been installed in the first user mode comprises:
acquiring an application name of the application, and judging whether the application name of the application exists in a white list preset in the second user mode;
if yes, continuing to execute the step of judging whether the application is installed in the first user mode.
3. The method for installing an application according to claim 2, wherein after determining whether the application name of the application exists in a whitelist preset in the second user mode, the method further comprises:
if not, the application is terminated to be installed in the second user mode.
4. The method for installing an application according to claim 2, wherein the determining whether the name of the application exists in a white list preset in the second user mode comprises:
and presetting a white list of preset types and application names based on the second user mode.
5. The method of application installation according to claim 4, wherein the second user mode preset type is a financial payment class, and the presetting is based on a white list of application names and preset types of the second user mode includes:
acquiring an application name;
judging whether the application name belongs to a financial payment class;
and if the application name belongs to the financial payment class, adding the application name to a white list.
6. The method for installing an application according to claim 1, wherein the determining whether the application is already installed in the first user mode, and if so, acquiring a configuration file of the application in the first user mode includes:
acquiring an application list installed in a first user mode;
and judging whether the application exists in the application list, if so, acquiring a configuration file of the application in the first user mode.
7. The method of application installation according to claim 1, wherein said obtaining a configuration file for the application in the first user mode comprises:
downloading a source file of an application into the first user mode;
decompressing a source file of the application in the first user mode;
storing a source file of the decompressed application into a file directory shared by the first user mode and the second user mode;
configuring the application in the first user mode and generating a configuration file for the application.
8. The method of application installation according to claim 1, wherein said obtaining a configuration file for the application in the first user mode comprises:
obtaining a configuration file of the application in the first user mode through CGROUP.
9. The method of application installation according to claim 1, wherein said installing the application in the second user mode according to the configuration file comprises:
associating the configuration information with a source file of the application stored under a file directory shared by the first user mode and the second user mode in the second user mode, installing the application.
10. The method for installing the application according to claim 1, wherein the configuration file comprises one or more of a package name, an application name, a version number, access right information for accessing the address book, a third party information account for accessing third party data information, declaration information of the application module, and global variable information of the application.
11. The method of application installation according to claim 1, wherein after said installing the application in the second user mode according to the configuration file, comprising:
receiving an uninstall instruction for uninstalling the application in the second user mode;
and deleting the configuration file of the application in the second user mode according to the uninstalling instruction.
12. The method of application installation according to claim 1, wherein after said installing the application in the second user mode according to the configuration file, comprising:
receiving an uninstalling instruction for uninstalling the application in the first user mode;
and deleting the configuration file in the first user mode and the source file of the application in the file directory shared by the first user mode and the second user mode according to the uninstalling instruction.
13. The method of application installation according to claim 1, wherein after said installing the application in the second user mode according to the configuration file, comprising:
receiving an upgrading instruction for upgrading the application;
upgrading the source file of the application in the file directory shared by the first user mode and the second user mode according to the upgrading instruction;
and synchronously upgrading the applications in the first user mode and the second user mode according to the upgraded source file.
14. An application installation apparatus, comprising:
the device comprises a first receiving module, a second receiving module and a control module, wherein the first receiving module is used for receiving an installation instruction for installing an application in a second user mode, and the second user mode is an operating system logged in by a second account;
the judging and obtaining module is used for judging whether the application is installed in a first user mode, and if so, obtaining a configuration file of the application in the first user mode; the first user mode is an operating system logged in by adopting a first account, the second account is an account created by the first account in the first user mode, and the operating system management authority of the first account is greater than that of the second account;
and the copying and installing module is used for copying the configuration file to a file directory of the second user mode and installing the configuration file applied to the second user mode according to the configuration file.
15. The application installation apparatus of claim 14, wherein the apparatus comprises:
the acquisition judging module is used for acquiring the application name of the application before judging whether the application is installed in the first user mode or not, and judging whether the application name of the application exists in a white list preset in the second user mode or not;
and the first execution module is used for continuously executing the step of judging whether the application is installed in the first user mode or not if the application name of the application exists in a preset white list in the second user mode.
16. The application installation apparatus of claim 14, wherein the apparatus comprises:
and the second execution module is used for terminating the installation of the application in the second user mode after the application name of the application does not exist in a preset white list in the second user mode.
17. The application installation apparatus of claim 15, wherein the apparatus comprises:
the preset module is used for presetting a white list based on the preset type of the second user mode and the application name before judging whether the name of the application exists in the preset white list in the second user mode.
18. The application installation apparatus of claim 17, wherein the second user mode preset type is a financial payment class, and the preset module comprises:
a first obtaining unit configured to obtain an application name;
the application name judging unit is used for judging whether the application name belongs to a financial payment class or not;
and the adding unit is used for adding the application name into a white list if the application name belongs to the financial payment class.
19. The application installation apparatus of claim 14, wherein the determination acquisition module comprises:
an application list unit, configured to acquire an application list that has been installed in the first user mode;
and the application judging unit is used for judging whether the application exists in the application list or not, and if so, acquiring the configuration file of the application in the first user mode.
20. The application installation apparatus of claim 14, wherein the apparatus comprises:
a download module for downloading a source file of the application into the first user mode before obtaining the configuration file of the application in the first user mode;
a decompression module to decompress a source file of the application in the first user mode;
a storage module, configured to store a source file of the decompressed application into a file directory shared by the first user mode and the second user mode;
a configuration generation module configured to configure the application in the first user mode and generate a configuration file of the application.
21. The application installation apparatus of claim 14, wherein the determination acquisition module comprises:
an obtaining subunit, configured to obtain, through CGROUP, a configuration file of the application in the first user mode.
22. The apparatus for application installation according to claim 14, wherein the copy installation module comprises:
an associating unit, configured to associate the configuration information with a source file of the application stored in a file directory shared by the first user mode and the second user mode in the second user mode, and install the application.
23. The apparatus for installing an application according to claim 14, wherein the configuration file includes one or more of a package name, an application name, a version number, access right information for accessing an address book, a third party information account for accessing third party data information, declaration information of an application module, and global variable information of the application.
24. The application installation apparatus of claim 14, wherein the apparatus comprises:
a second receiving module, configured to receive an uninstall instruction for uninstalling the application in the second user mode after the application is installed in the second user mode according to the configuration file;
and the first deleting module is used for deleting the configuration file of the application in the second user mode according to the uninstalling instruction.
25. The application installation apparatus of claim 14, wherein the apparatus comprises:
a third receiving module, configured to receive an uninstall instruction for uninstalling the application in the first user mode after installing the application in the second user mode according to the configuration file;
and the second deleting module is used for deleting the configuration file in the first user mode and the source file of the application in the file directory shared by the first user mode and the second user mode according to the unloading instruction.
26. The application installation apparatus of claim 14, wherein the apparatus comprises:
a fourth receiving module, configured to receive an upgrade instruction for upgrading the application after the application is installed in the second user mode according to the configuration file;
the upgrading module is used for upgrading the applied source file in the file directory shared by the first user mode and the second user mode according to the upgrading instruction;
and the synchronization module is used for synchronously upgrading the application in the first user mode and the application in the second user mode according to the upgraded source file.
27. A mobile terminal, comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of application installation of any of claims 1-13.
CN201710025478.3A 2017-01-13 2017-01-13 Application installation method and device and mobile terminal Active CN106874038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710025478.3A CN106874038B (en) 2017-01-13 2017-01-13 Application installation method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710025478.3A CN106874038B (en) 2017-01-13 2017-01-13 Application installation method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106874038A CN106874038A (en) 2017-06-20
CN106874038B true CN106874038B (en) 2020-05-01

Family

ID=59157718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710025478.3A Active CN106874038B (en) 2017-01-13 2017-01-13 Application installation method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106874038B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597628A (en) * 2018-11-26 2019-04-09 广州微算互联信息技术有限公司 The method and cloud handset server of cloud mobile phone application copy
CN110471673A (en) * 2019-08-20 2019-11-19 深圳市沃特沃德股份有限公司 Application installation method, device, computer equipment and the storage medium of multi-card terminal
CN111522560A (en) * 2020-04-21 2020-08-11 北京三快在线科技有限公司 Software installation 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
CN103646215A (en) * 2013-12-23 2014-03-19 北京奇虎科技有限公司 Application installation control method, related system and related device
CN103914312A (en) * 2012-12-31 2014-07-09 联想(北京)有限公司 Application processing method, application processing device and electronic device
WO2016109610A1 (en) * 2014-12-30 2016-07-07 Microsoft Technology Licensing, Llc Application installation/uninstallation across multiple systems
CN105988848A (en) * 2015-03-06 2016-10-05 西安酷派软件科技有限公司 Application installation method of multi-system terminal, application installation apparatus of multi-system terminal and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914312A (en) * 2012-12-31 2014-07-09 联想(北京)有限公司 Application processing method, application processing device and electronic device
CN103646215A (en) * 2013-12-23 2014-03-19 北京奇虎科技有限公司 Application installation control method, related system and related device
WO2016109610A1 (en) * 2014-12-30 2016-07-07 Microsoft Technology Licensing, Llc Application installation/uninstallation across multiple systems
CN105988848A (en) * 2015-03-06 2016-10-05 西安酷派软件科技有限公司 Application installation method of multi-system terminal, application installation apparatus of multi-system terminal and terminal

Also Published As

Publication number Publication date
CN106874038A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106843868B (en) Multi-account login method and device and mobile terminal
CN107273160A (en) A kind of method and device of edition upgrading
US20160105418A1 (en) Method, system, device, and terminal for network initialization of multimedia playback device
EP3010262B1 (en) Method for realizing cellphone without card and cellphone
CN106775828B (en) Application program installation method and device and computer equipment
WO2017206899A1 (en) Information processing method and related device
CN107908407B (en) Compiling method and device and terminal equipment
CN108228230A (en) Upgrade method, terminal and the computer readable storage medium of UFS firmwares
WO2018049934A1 (en) Data migration method and terminals
CN106874038B (en) Application installation method and device and mobile terminal
CN106959859B (en) Calling method and device of system calling function
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN106933636B (en) Method and device for starting plug-in service and terminal equipment
CN107153792A (en) A kind of data safety processing method, device and mobile terminal
CN108431767A (en) A kind of method, user terminal and the storage medium of load software program
CN106713319B (en) Remote control method, device and system between terminals and mobile terminal
CN106095423B (en) Method, terminal and server for providing browsing service
CN106484563B (en) Data migration method and terminal equipment
CN110609694A (en) BUG repairing method and device, terminal equipment and storage medium
US20200310771A1 (en) Application Processing Method for Terminal Device, and Terminal Device
CN107463395B (en) Component calling method and device
CN106445594B (en) System application installation method and device and terminal equipment
CN106933626B (en) Application association method and device
CN106484481B (en) Configuration method and device for multi-open application and terminal
CN113542884A (en) Method for synchronizing JS patch files between smart television browser and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20170721

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

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