CN108021372A - The management method and device of a kind of application program - Google Patents

The management method and device of a kind of application program Download PDF

Info

Publication number
CN108021372A
CN108021372A CN201610942927.6A CN201610942927A CN108021372A CN 108021372 A CN108021372 A CN 108021372A CN 201610942927 A CN201610942927 A CN 201610942927A CN 108021372 A CN108021372 A CN 108021372A
Authority
CN
China
Prior art keywords
application program
file system
virtual file
application
installation
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.)
Withdrawn
Application number
CN201610942927.6A
Other languages
Chinese (zh)
Inventor
葛安峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics 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 Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201610942927.6A priority Critical patent/CN108021372A/en
Priority to PCT/CN2017/085992 priority patent/WO2018082289A1/en
Publication of CN108021372A publication Critical patent/CN108021372A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • 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/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • 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

Landscapes

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

Abstract

The invention discloses a kind of management method of application program, including:After detecting the installation procedure for starting application program, Virtual File System is built, the installation procedure for running the application program installs the application program in the Virtual File System;After the application program is installed, start the application program in the Virtual File System, or unload the application program and delete the corresponding Virtual File System of the application program.The invention also discloses a kind of managing device of application program.

Description

Application program management method and device
Technical Field
The present invention relates to the field of application programs of mobile terminals, and in particular, to a method and an apparatus for managing application programs.
Background
The mobile terminal brings great convenience and excellent entertainment experience to people. And the colorful third-party application program can be downloaded and installed through the mobile terminal. The user can freely choose to install and uninstall the application program according to the needs and preferences of the user, but the highly free application program management mode also causes a series of problems, mainly including the following two points:
1. the storage space is not sufficient. Because the third-party application program is not strictly checked and verified, a large amount of residual files occupy the storage space of the system in the installation and uninstallation processes. For a non-professional user, it is not clear which files are system files and which files are useless files, and whether these residual files can be deleted or not. After a long time, the available storage space of the system is less and less, and the system is slower and slower.
2. There is no way to determine whether an application leaks out personal, private files. Because the third-party application program can access any file in the file system, the authority management is not good; for some malicious applications, the private file of the user can be obtained simply. For personal mobile terminals, there are significant safety concerns.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a method and an apparatus for managing an application program, which can limit the size of a storage space, the location of the storage space, and the access right required by the application program.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a management method of an application program, which comprises the following steps:
after detecting an installation program for starting an application program, constructing a virtual file system, and operating the installation program of the application program to install the application program in the virtual file system;
and after the application program is installed, starting the application program in the virtual file system, or uninstalling the application program and deleting the virtual file system corresponding to the application program.
In the foregoing solution, the constructing a virtual file system includes:
creating a disk file in a system storage space, formatting the disk file, and taking the formatted disk file as a virtual file system of the application program;
mounting a virtual file system of the application program, wherein the virtual file system is used as a storage space of the application program;
and unloading the file system of the formatted disk file.
In the above solution, the installing the application program in the virtual file system by the installer that runs the application program includes:
starting an installation program of the application program in the virtual file system, installing the application program, and storing a program file generated after installation into the virtual file system;
and after the installation is finished, acquiring the installation information of the application program, and storing the installation information in the system storage space.
In the above scheme, the installation information includes: the information of the storage location of the virtual file system of the application program, wherein the starting of the application program in the virtual file system, comprises:
after a request for starting the application program is detected, inquiring the installation information of the application program in the system storage space, and acquiring the storage position information of the virtual file system of the application program according to the installation information;
acquiring the virtual file system of the application program according to the storage position information of the virtual file system of the application program;
and mounting the application program to the virtual file system to serve as a storage space of the application program, and starting and operating the application program in the virtual file system.
In the foregoing solution, the starting and running the application program in the virtual file system further includes:
and mounting an external file system to the virtual file system, and providing an interface for the application program to access the external file system.
In the foregoing solution, the uninstalling the application program and deleting the virtual file system corresponding to the application program includes:
after a request for uninstalling the application program is detected, inquiring the installation information of the application program in the system storage space, and acquiring the storage position information of the virtual file system of the application program according to the installation information;
acquiring the virtual file system of the application program according to the storage position information of the virtual file system of the application program;
and deleting the virtual file system of the application program, and deleting the installation information of the application program in the system storage space.
The embodiment of the invention provides a management device of an application program, which comprises: the system comprises a construction module and an application management module; wherein,
the application management module is used for detecting an installation program for starting the application program; after the application program is installed, detecting a request for starting the application program or a request for uninstalling the application program;
the building module is used for building a virtual file system after detecting an installation program for starting the application program, and operating the installation program of the application program to install the application program in the virtual file system; after the application program is installed, the application program is started in the virtual file system, or the application program is uninstalled and the virtual file system corresponding to the application program is deleted.
In the above scheme, the building module is specifically configured to create a disk file in a system storage space, format the disk file, and use the formatted disk file as a virtual file system of the application program; mounting a virtual file system of the application program, wherein the virtual file system is used as a storage space of the application program; and unloading the file system of the formatted disk file.
In the above scheme, the building module is further configured to, after detecting that an installer of an application program is started, start the installer of the application program in the virtual file system, install the application program, and store a program file generated after installation in the virtual file system; after the installation is finished, acquiring installation information of an application program, and sending the installation information to the application management module;
after a request for uninstalling the application program is detected, acquiring a virtual file system of the application program according to the storage position information of the virtual file system of the application program; deleting the virtual file system of the application program, and deleting the installation information of the application program in the system storage space; and a process for the preparation of a coating,
after a request for starting the application program is detected, acquiring a virtual file system of the application program according to storage position information of the virtual file system of the application program, and mounting the virtual file system as a storage space of the application program; and starting and running the application program in the virtual file system.
In the foregoing solution, the application management module is specifically configured to: and acquiring the installation information and storing the installation information in the system storage space.
In the above scheme, the installation information includes: storage location information of a virtual file system of the application;
the application management module is specifically configured to: after detecting a request for starting the application program or a request for uninstalling the application program, inquiring the installation information of the application program in the system storage space, acquiring the storage location information of the virtual file system of the application program according to the installation information, and sending the storage location information of the virtual file system of the application program.
In the foregoing solution, the building module is further configured to: and mounting an external file system to the virtual file system, and providing an interface for the application program to access the external file system.
According to the method and the device for managing the application program, provided by the embodiment of the invention, after an installation program for starting the application program is detected, a virtual file system is constructed, and the installation program for running the application program installs the application program in the virtual file system; and after the application program is installed, starting the application program in the virtual file system, or uninstalling the application program and deleting the virtual file system corresponding to the application program. According to the embodiment of the invention, the size and the position of the storage space of the application program can be limited by installing and starting the application program in the virtual file system; when the application program is unloaded, the virtual file system of the application program is correspondingly deleted, the method is simple and convenient, no junk file is generated, and the problem of incomplete unloading is avoided.
Drawings
Fig. 1 is a flowchart illustrating a method for managing an application according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an application management apparatus according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for installing an application according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for starting an application according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for uninstalling an application according to an embodiment of the present invention.
Detailed Description
In various embodiments of the present invention, after detecting an installer of an application program, a virtual file system is constructed, and the installer of the application program is operated to install the application program in the virtual file system; and after the application program is installed, starting the application program in the virtual file system, or uninstalling the application program and deleting the virtual file system corresponding to the application program.
The present invention will be described in further detail with reference to examples.
Fig. 1 is a flowchart illustrating a method for managing an application according to an embodiment of the present invention; as shown in fig. 1, the method for managing an application includes:
step 001, after detecting that an installation program of an application program is started, constructing a virtual file system, and operating the installation program of the application program to install the application program in the virtual file system;
specifically, the building of the virtual file system includes:
the mobile terminal creates a disk file in a system storage space, formats the disk file, and takes the formatted disk file as a virtual file system of the application program;
mounting a virtual file system of the application program, wherein the virtual file system is used as a storage space of the application program;
and unloading the file system of the formatted disk file.
Here, the mobile terminal mounts to the virtual file system, and the virtual file system can be used as a private storage space of the application program.
The file system of the formatted disk file is the file system of the mobile terminal and is represented by an external file system. The mobile terminal unloads the file system of the formatted disk file, namely the permission of the application program for accessing the external file system of the mobile terminal can be unloaded, and the virtual file system and the external file system can be prevented from being accessed mutually.
The virtual file system is as follows: and a logic file system is established in the mobile terminal and serves as a file system private to the corresponding application program.
The mobile terminal may include: such as mobile phones, smart phones, Personal Digital Assistants (PDAs), tablet computers (PADs), Portable Multimedia Players (PMPs), etc., which carry the underlying Linux operating system.
It should be noted that, in the Linux system, the mobile terminal may virtualize a general file into a disk file as a virtual file system for a user to use. In this embodiment, the storage space of a common file in the system storage space is planned as a storage space of the application program. The storage space of each application program corresponds to a disk file, a standard file system can be obtained after the disk file is formatted, and the standard file system is used as a virtual file system of the application program by the mobile terminal. After the virtual file system is obtained, the mobile terminal unloads the original file system on the standard file system, so that the application program has no authority to access other files in the mobile terminal, all the operations of the application program are limited in the disk file, and correspondingly, other files cannot access the disk file.
The mobile terminal includes: the mobile terminal detects the operation of a user through the desktop starter and executes corresponding operation, and the operation comprises the following steps: installing an application program, starting the application program and uninstalling the application program.
The mobile terminal may further include: devices such as a Central Processing Unit (CPU), an internal memory, and an external memory; the internal memory can adopt a Double Data Rate (DDR), and the external memory can adopt a FLASH Large Area Scan Hardware (FLASH). The files included in the application program of the mobile terminal are stored in the device such as the external memory, and the corresponding files in the external memory are added or deleted when the application program is installed and uninstalled.
Specifically, the installing program for running the application program installs the application program in the virtual file system, including:
the mobile terminal starts an installation program of the application program in the virtual file system, installs the application program and stores a program file generated after installation into the virtual file system;
and after the installation is finished, the mobile terminal acquires the installation information of the application program and stores the installation information in the system storage space.
It should be noted that the mobile terminal constructs a virtual file system in the external file system, and after the construction, the external file system of the mobile terminal needs to be switched into the virtual file system, that is, the mobile terminal is mounted to the virtual file system; and after the application program is installed in the virtual file system, saving a program file generated after the application program is installed in the virtual file system.
The installation information includes: the storage location information of the virtual file system of the application program and the related information of the application program comprise: the access right of the application program, the icon information, the developer of the application program, the software size and the occupied space of the application program and the like.
The installation information may be stored in the system memory space in different ways, such as in a document format.
The application program is a third party application program; the third party application program is software which is carried by a user and a non-mobile terminal and is written for realizing a certain application purpose, and can provide services such as office and entertainment for the user.
The third-party application program is generally developed and issued by a third-party operator, a user downloads an installation program of the application program to the mobile terminal, and the installation program can be used after being installed, and the format of the installation program of the application program comprises ipa, pxl, deb, apk and other formats.
After detecting the installation program of the application program, the mobile terminal constructs a virtual file system for each application program, and the virtual file system is used for installing the application program and starting the application program.
Step 002, after the application program is installed, the application program is started in the virtual file system, or the application program is uninstalled and the virtual file system corresponding to the application program is deleted.
Specifically, the starting the application program in the virtual file system includes:
after detecting a request for starting the application program, such as an operation of clicking the application program by a user, the mobile terminal inquires installation information of the application program in the system storage space and acquires storage position information of a virtual file system of the application program according to the installation information;
acquiring the virtual file system of the application program according to the storage position information of the virtual file system of the application program;
mounting the virtual file system as a storage space of the application program; and starting and running the application program in the virtual file system.
Here, after the virtual file system is mounted as a storage space of the application program, when the mobile terminal mounts an external file system, the virtual file system may access other external files; and when the external file system is uninstalled, the mobile terminal can uninstall the access authority for accessing other external files.
If the application program needs to access other files in the system storage space, the mobile terminal mounts the file system of the other files needing to be accessed to the virtual file system of the application program, and the application program can access the file in the system storage space.
Specifically, the uninstalling the application program and deleting the virtual file system corresponding to the application program includes:
after detecting a request for uninstalling the application program, such as an operation of uninstalling the application program input by a user, the mobile terminal inquires installation information of the application program in the system storage space, and acquires storage location information of a virtual file system of the application program according to the installation information;
obtaining the virtual file system of the application program according to the storage position information of the virtual file system of the application program;
and the mobile terminal deletes the virtual file system of the application program and deletes the installation information of the application program in the system storage space.
The mobile terminal deletes the disk file corresponding to the virtual file system, namely, deletes the virtual file system, and simultaneously, the mobile terminal also deletes the installation information stored in the system storage space correspondingly, so that the relevant files of any application program cannot be left in the mobile terminal after the application program is unloaded, and the storage space of the mobile terminal cannot be wasted.
The following is further explained for the virtual file system and the external file system of the mobile terminal:
in the embodiment of the invention, the application program carried by the mobile terminal runs in an external file system of the mobile terminal, and the related file is stored in a system storage space. And each third-party application program correspondingly constructs a virtual file system, the third-party application program runs in the corresponding virtual file system, and related program files are stored in the virtual file system. When the application program of the mobile terminal needs to access the file in the virtual file system corresponding to the third-party application program, or the third-party application program needs to access the file of the external file system, the mobile terminal mounts the external file system into the virtual file system, namely, an access interface is provided, so that the mutual access between the application program of the mobile terminal and the third-party application program can be realized.
Here, the mobile terminal has its own applications such as: album software, third party applications such as: any third party's photographing software, etc.
In the prior art, an application program can generate corresponding files in the installation process, and after the application is used for a long time, a large number of cache files still exist in the mobile terminal, so that the problem of file access protection can be caused. By the method provided by the embodiment of the invention, a virtual file system is constructed, the third-party application program is installed and started, and the independent storage space is provided for the third-party application program for storing the internal file of the third-party application program, and the application programs cannot access each other; on the basis of ensuring the normal operation of the application program, the access authority of the application program can be limited to the maximum extent, and the internal information of the mobile terminal is protected; meanwhile, because the file generated by the application program is stored in the disk file corresponding to the virtual file system, the mobile terminal deletes the disk file corresponding to the virtual file system and the installation information of the application program when the application program is uninstalled, so that all information related to the application program is deleted in the system storage space, and the residual file generated by the application program is limited.
Fig. 2 is a schematic structural diagram of an application management apparatus according to an embodiment of the present invention, and as shown in fig. 2, the application management apparatus includes: the system comprises a construction module and an application management module; wherein,
the building module is used for building a virtual file system after detecting an installation program for starting the application program, and operating the installation program of the application program to install the application program in the virtual file system; after the application program is installed, starting the application program in the virtual file system, or uninstalling the application program and deleting the virtual file system corresponding to the application program;
the application management module is used for detecting an installation program for starting the application program; after the application is installed, a request to start the application or a request to uninstall the application is detected.
Specifically, the building module is specifically configured to create a disk file in a system storage space, format the disk file, and use the formatted disk file as a virtual file system of the application program; mounting a virtual file system of the application program, wherein the virtual file system is used as a storage space of the application program; and unloading the file system of the formatted disk file.
The building module is further configured to: after detecting an installation program for starting an application program, starting the installation program of the application program in the virtual file system, installing the application program, and storing a program file generated after installation into the virtual file system; and after the installation is finished, acquiring installation information of the application program, and sending the installation information to the application management module.
The building module is further configured to: after a request for uninstalling the application program is detected, acquiring a virtual file system of the application program according to the storage position information of the virtual file system of the application program;
and deleting the virtual file system of the application program, and deleting the installation information of the application program in the system storage space.
The building module is further configured to: after a request for starting the application program is detected, acquiring a virtual file system of the application program according to storage position information of the virtual file system of the application program, and mounting the virtual file system as a storage space of the application program; and starting and running the application program in the virtual file system.
Specifically, the application management module is specifically configured to: and after the installation is finished, acquiring the installation information from the construction module, and storing the installation information in the system storage space.
The installation information includes: the storage location information of the virtual file system of the application program and the related information of the application program comprise: the authority information and the icon information of the application program, the developer of the application program, the software size and the occupied space of the application program and the like.
Specifically, the application management module is further configured to uninstall the application program and delete the virtual file system corresponding to the application program.
Specifically, the application management module is specifically configured to: after the request for uninstalling the application program is detected, the installation information of the application program is inquired in the system storage space, the storage position information of the virtual file system of the application program is obtained according to the installation information, and the storage position information of the virtual file system of the application program is sent.
After the application management module sends the storage location information of the virtual file system of the application program, the construction module obtains the virtual file system of the application program according to the received storage location information of the virtual file system of the application program, and deletes the virtual file system corresponding to the application program; and after the completion, the construction module informs the application management module.
Here, the building module deletes the disk file corresponding to the virtual file system, that is, deletes the virtual file system of the application program; the installation information stored in the system storage space can be deleted, at this time, the uninstallation of the application program is completed, any other files related to the application program are not left, and the storage space of the mobile terminal is not wasted.
Specifically, the application management module is further configured to start the application program in the virtual file system.
Specifically, the application management module is specifically configured to: after a request for starting the application program is detected, the installation information of the application program is inquired in the system storage space, the storage position information of the virtual file system of the application program is obtained according to the installation information, and the storage position information of the virtual file system of the application program is sent.
After the application management module sends the storage location information of the virtual file system of the application program and before the application program is started, the construction module obtains the virtual file system of the application program according to the received storage location information of the virtual file system of the application program, and mounts the virtual file system as the storage space of the application program; and starting and running the application program in the virtual file system.
Specifically, the building module is further configured to: and mounting an external file system to the virtual file system, and providing an interface for the application program to access the external file system.
Fig. 3 is a flowchart illustrating a method for installing an application according to an embodiment of the present invention; as shown in fig. 3, the method for installing an application program in a mobile terminal includes:
step 101, the mobile terminal detects an installation program for opening the application program input by a user through a desktop starter;
102, starting an application management module, and calling a construction module to install after the application management module determines that the opened program is an installation program of the application program;
here, the application management module determines whether the format of the opened file is any one of ipa, pxl, deb, and apk; if the format of the opened file is any one of the formats, determining that the opened file is an installation program of the application program;
step 103, constructing a module initialization operation environment, including: determining the operation environment of the construction module, wherein the operation environment is an external file system of the mobile terminal, and the construction module operates in the external file system;
104, a construction module creates a disk file in a system storage space of the mobile terminal;
step 105, a building module formats the disk file into a standard file system, wherein the standard file system is used as a virtual file system of the application program, and the virtual file system is used for installing and starting the application program;
106, constructing a module mount virtual file system which is used as a private storage space of an application program;
step 107, the construction module unloads the file system of the standard file system;
here, after step 107 is completed, the building module has completely obtained the private storage space and cannot access other spaces outside the mobile terminal. At this point, this access right may be passed to the application.
Step 108, the construction module starts an installation program of the application program and transmits the access authority to the installation program of the application program;
step 109, initializing the installation program of the application program, including: acquiring storage position information of a virtual file system, and determining the accessible virtual file system;
step 110, entering an installation flow by an installation program of the application program;
step 111, the installation program of the application program saves the installed program file into the virtual file system;
step 112, after the installation program completes the installation process, sending a notification message for completing installation to the building module;
step 113, the building module obtains installation information of the application program, including: storage location information, related icons, access rights, etc. of the virtual file system of the application;
step 114, the building module sends the installation information to the application management module;
step 115, the application management module records the binding relationship between the application program and the installation information, and stores the installation information into a system storage space for inquiring when the application program is started;
and step 116, completing the installation of the application program.
Fig. 4 is a flowchart illustrating a method for starting an application according to an embodiment of the present invention; as shown in fig. 4, the method for starting an application program by a mobile terminal includes:
step 201: after detecting a request for starting an application program through a desktop starting manager, the mobile terminal starts the application program and an application management module according to the request for starting the application program;
step 202: the application management module inquires the installation information of the application program;
step 203: after acquiring the installation information of the application program, the application management module sends the installation information to the construction module;
step 204: the building module initializes the operating environment, including: determining the operation environment of the construction module, wherein the operation environment is an external file system of the mobile terminal, and the construction module operates in the external file system;
step 205: the construction module searches a disk file corresponding to a virtual file system of the application program;
step 206: constructing a virtual file system of a module mounting application program;
step 207: the building module mounts an external file system, and an application program can access other external files;
step 208: the construction module unloads the original file system, namely unloads the authority of accessing other external files;
here, the application may access other files of the mobile terminal through step 207, and the application is prohibited from accessing other files of the mobile terminal through step 208, thereby implementing management of access rights of the application; completing the configuration of the operating environment through step 207 and step 208;
step 209: after the preparation of the operation environment of the building module is finished, starting an application program;
step 210: the application program inherits the file system mounted at the last time by the construction module and initializes the file system;
step 211: the application program starts to run the application program and enters a running state;
step 212: after the construction module starts the application program, returning immediately and sending a notification message of finishing starting to the construction module;
step 213: and the application management module receives the notification message and finishes the starting of the application program.
Fig. 5 is a flowchart illustrating a method for uninstalling an application according to an embodiment of the present invention; as shown in fig. 5, the method for uninstalling an application program by a mobile terminal includes:
step 301: after detecting a request for uninstalling an application program through a desktop starter, the mobile terminal starts an application management module;
step 302: the application management module inquires the installation information of the application program;
step 303: after acquiring the installation information of the application program, the application management module sends the installation information to the construction module and starts the construction module;
step 304: the building module starts initialization and mounts the initialization to an external file system of the mobile terminal;
step 305: the construction module searches storage position information of a virtual file system of an application program according to the installation information, namely the storage position information of a disk file corresponding to the virtual file system, and obtains the virtual file system according to the storage position information;
step 306: the construction module deletes the disk file corresponding to the virtual file system of the application program, namely deletes the virtual file system of the application program;
step 307: after the completion, the construction module notifies the application management module;
step 308: the uninstalling of the application is completed.
The application management module in the first, second, and third embodiments is configured to manage all the application programs of the system, and is responsible for monitoring installation, operation, and uninstallation of the application programs. In practical application, when the installation, the running and the uninstallation of the application program need to be performed through a desktop starter of the mobile terminal, the application management module can be embedded into the desktop starter of the mobile terminal. The actions of the third party application are monitored by an application management module, which manages the installation information of all applications, including icons, storage locations, and the like. The information is stored in the system storage space, and the construction module can obtain the related information.
The building module is used for setting the running environment of the third-party application program, namely the virtual file system of the application program, and setting a private storage space which is only visible for the application program and cannot be accessed by other spaces for the application program. The application accesses this virtual file system, no different from accessing the external file system. If the application program needs to access other address spaces, the setting can be carried out through the construction module, for example, the construction module mounts the external file system into the virtual file system of the application program, namely, an interface for accessing the external file system can be reserved for the application program, and the purposes of protecting the independent address space of the application program and accessing the external address space are achieved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (12)

1. A method for managing an application, the method comprising:
after detecting an installation program for starting an application program, constructing a virtual file system, and operating the installation program of the application program to install the application program in the virtual file system;
and after the application program is installed, starting the application program in the virtual file system, or uninstalling the application program and deleting the virtual file system corresponding to the application program.
2. The method of claim 1, wherein the constructing a virtual file system comprises:
creating a disk file in a system storage space, formatting the disk file, and taking the formatted disk file as a virtual file system of the application program;
mounting a virtual file system of the application program, wherein the virtual file system is used as a storage space of the application program;
and unloading the file system of the formatted disk file.
3. The method of claim 2, wherein the installer that runs the application installs the application in the virtual file system, comprising:
starting an installation program of the application program in the virtual file system, installing the application program, and storing a program file generated after installation into the virtual file system;
and after the installation is finished, acquiring the installation information of the application program, and storing the installation information in the system storage space.
4. The method of claim 3, wherein the installation information comprises: the information of the storage location of the virtual file system of the application program, wherein the starting of the application program in the virtual file system, comprises:
after a request for starting the application program is detected, inquiring the installation information of the application program in the system storage space, and acquiring the storage position information of the virtual file system of the application program according to the installation information;
acquiring the virtual file system of the application program according to the storage position information of the virtual file system of the application program;
and mounting the application program to the virtual file system to serve as a storage space of the application program, and starting and operating the application program in the virtual file system.
5. The method of claim 4, wherein the launching and running the application within the virtual file system further comprises:
and mounting an external file system to the virtual file system, and providing an interface for the application program to access the external file system.
6. The method of claim 3, wherein uninstalling the application and deleting the virtual file system corresponding to the application comprises:
after a request for uninstalling the application program is detected, inquiring the installation information of the application program in the system storage space, and acquiring the storage position information of the virtual file system of the application program according to the installation information;
acquiring the virtual file system of the application program according to the storage position information of the virtual file system of the application program;
and deleting the virtual file system of the application program, and deleting the installation information of the application program in the system storage space.
7. An apparatus for managing an application, the apparatus comprising: the system comprises a construction module and an application management module; wherein,
the application management module is used for detecting an installation program for starting the application program; after the application program is installed, detecting a request for starting the application program or a request for uninstalling the application program;
the building module is used for building a virtual file system after detecting an installation program for starting the application program, and operating the installation program of the application program to install the application program in the virtual file system; and after the application program is installed, starting the application program in the virtual file system, or uninstalling the application program and deleting the virtual file system corresponding to the application program.
8. The apparatus according to claim 7, wherein the building module is specifically configured to create a disk file in a system storage space, format the disk file, and use the formatted disk file as a virtual file system of the application program; mounting a virtual file system of the application program, wherein the virtual file system is used as a storage space of the application program; and unloading the file system of the formatted disk file.
9. The apparatus according to claim 8, wherein the building module is further configured to, after detecting an installer of the application program, start an installer of the application program in the virtual file system, install the application program, and save the program file generated after installation into the virtual file system; after the installation is finished, acquiring installation information of an application program, and sending the installation information to the application management module;
after a request for uninstalling the application program is detected, acquiring a virtual file system of the application program according to the storage position information of the virtual file system of the application program; deleting the virtual file system of the application program, and deleting the installation information of the application program in the system storage space;
after a request for starting the application program is detected, acquiring a virtual file system of the application program according to storage position information of the virtual file system of the application program, and mounting the virtual file system as a storage space of the application program; and starting and running the application program in the virtual file system.
10. The apparatus of claim 9, wherein the application management module is specifically configured to: and acquiring the installation information and storing the installation information in the system storage space.
11. The apparatus of claim 10, wherein the installation information comprises: storage location information of a virtual file system of the application;
the application management module is specifically configured to: after detecting a request for starting the application program or a request for uninstalling the application program, inquiring the installation information of the application program in the system storage space, acquiring the storage location information of the virtual file system of the application program according to the installation information, and sending the storage location information of the virtual file system of the application program.
12. The apparatus of claim 10, wherein the build module is further configured to: and mounting an external file system to the virtual file system, and providing an interface for the application program to access the external file system.
CN201610942927.6A 2016-11-01 2016-11-01 The management method and device of a kind of application program Withdrawn CN108021372A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610942927.6A CN108021372A (en) 2016-11-01 2016-11-01 The management method and device of a kind of application program
PCT/CN2017/085992 WO2018082289A1 (en) 2016-11-01 2017-05-25 Method and device for managing application and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610942927.6A CN108021372A (en) 2016-11-01 2016-11-01 The management method and device of a kind of application program

Publications (1)

Publication Number Publication Date
CN108021372A true CN108021372A (en) 2018-05-11

Family

ID=62070633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610942927.6A Withdrawn CN108021372A (en) 2016-11-01 2016-11-01 The management method and device of a kind of application program

Country Status (2)

Country Link
CN (1) CN108021372A (en)
WO (1) WO2018082289A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035119A (en) * 2020-08-28 2020-12-04 北京奇艺世纪科技有限公司 Data deleting method and device
CN112052128A (en) * 2019-06-06 2020-12-08 北京字节跳动网络技术有限公司 Disaster recovery method and device and electronic equipment
CN112073812A (en) * 2019-06-10 2020-12-11 聚好看科技股份有限公司 Application management method on smart television and display device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817596A (en) * 2019-10-31 2021-05-18 深圳市万普拉斯科技有限公司 Method and device for quickly acquiring file information and electronic equipment
CN113296758B (en) * 2021-03-15 2022-11-25 上海爱数信息技术股份有限公司 Front-end component library construction method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402446A (en) * 2011-11-22 2012-04-04 成都市华为赛门铁克科技有限公司 Application software installation method and application software installation device
US20120259900A1 (en) * 2011-04-06 2012-10-11 Dell Products L.P. Virtual Disk Utility
CN103530162A (en) * 2013-10-22 2014-01-22 中国科学院信息工程研究所 Automatic online virtual machine software installing method and system
CN105677393A (en) * 2015-12-30 2016-06-15 中科创达软件股份有限公司 Software package processing method, apparatus and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101013509B1 (en) * 2008-01-04 2011-02-11 주식회사 마크애니 Virtual Application Program System, Storing Device, Method for Executing Virtual Application Program and Method for Protecting Virtual Environment
KR101212273B1 (en) * 2010-12-07 2012-12-13 한국과학기술연구원 Apparatus and method for fast booting based on virtualization technique
CN105607869B (en) * 2015-12-15 2019-02-01 国云科技股份有限公司 A kind of quick formatting and the method using magnetic disk of virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120259900A1 (en) * 2011-04-06 2012-10-11 Dell Products L.P. Virtual Disk Utility
CN102402446A (en) * 2011-11-22 2012-04-04 成都市华为赛门铁克科技有限公司 Application software installation method and application software installation device
CN103530162A (en) * 2013-10-22 2014-01-22 中国科学院信息工程研究所 Automatic online virtual machine software installing method and system
CN105677393A (en) * 2015-12-30 2016-06-15 中科创达软件股份有限公司 Software package processing method, apparatus and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052128A (en) * 2019-06-06 2020-12-08 北京字节跳动网络技术有限公司 Disaster recovery method and device and electronic equipment
CN112073812A (en) * 2019-06-10 2020-12-11 聚好看科技股份有限公司 Application management method on smart television and display device
CN112073812B (en) * 2019-06-10 2022-08-19 聚好看科技股份有限公司 Application management method on smart television and display device
CN112035119A (en) * 2020-08-28 2020-12-04 北京奇艺世纪科技有限公司 Data deleting method and device
CN112035119B (en) * 2020-08-28 2024-03-08 北京奇艺世纪科技有限公司 Data deleting method and device

Also Published As

Publication number Publication date
WO2018082289A1 (en) 2018-05-11

Similar Documents

Publication Publication Date Title
WO2015062389A1 (en) Method and apparatus for uninstalling system application on terminal device
KR101690845B1 (en) File system access for one or more sandboxed applications
CN109964227B (en) Method and terminal for updating SELinux security policy
US8849717B2 (en) Methods and systems for upgrade and synchronization of securely installed applications on a computing device
US11221838B2 (en) Hot update method, operating system, terminal device, system, and computer-readable storage medium for a system process
US9110679B1 (en) Pre-boot management of drivers and programs
CN110032413B (en) Desktop virtualization method, related equipment and computer storage medium
CN110457894B (en) root authority distribution method and device, storage medium and terminal equipment
CN108021372A (en) The management method and device of a kind of application program
WO2019047571A1 (en) Request processing method, system on chip, and public cloud management component
US20160232374A1 (en) Permission control method and apparatus
EP3399408B1 (en) Information processing apparatus and computer readable storage medium
EP2631795A1 (en) Terminal and method for assigning permission to application
CN111782416A (en) Data reporting method, device, system, terminal and computer readable storage medium
JP2004530201A (en) Methods for loading and running applications in embedded environments
WO2018233668A1 (en) Android system-based abnormality recovery method and apparatus, smart device and storage medium
US10803167B1 (en) Systems and methods for executing application launchers
WO2014180427A1 (en) Application program management method and device
CN112219202B (en) Memory allocation for guest operating systems
US7657716B2 (en) Save and restore of a protected area
CN116166570A (en) Garbage recycling method and device
CN110955885B (en) Data writing method and device
CN104915266A (en) Application program protection method and application program protection device
JP7355876B2 (en) Program startup method, equipment, and storage medium
CN111125723A (en) Encryption card identification method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20180511

WW01 Invention patent application withdrawn after publication