WO2018082289A1 - Method and device for managing application and computer storage medium - Google Patents

Method and device for managing application and computer storage medium Download PDF

Info

Publication number
WO2018082289A1
WO2018082289A1 PCT/CN2017/085992 CN2017085992W WO2018082289A1 WO 2018082289 A1 WO2018082289 A1 WO 2018082289A1 CN 2017085992 W CN2017085992 W CN 2017085992W WO 2018082289 A1 WO2018082289 A1 WO 2018082289A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
file system
virtual file
storage space
virtual
Prior art date
Application number
PCT/CN2017/085992
Other languages
French (fr)
Chinese (zh)
Inventor
葛安峰
Original Assignee
深圳市中兴微电子技术有限公司
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 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2018082289A1 publication Critical patent/WO2018082289A1/en

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/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
    • 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

Definitions

  • the present invention relates to the field of application of a mobile terminal, and in particular, to a method, an apparatus, and a computer storage medium for managing an application.
  • An embodiment of the present invention provides a method for managing an application, where the method includes:
  • the installer running the application installs the application in the virtual file system
  • the application After the application is installed, the application is started in the virtual file system, or the application is uninstalled and the virtual file system corresponding to the application is deleted.
  • the installer running the application installs the application in the virtual file system, including:
  • the installation information of the application is obtained, and the installation information is saved in the system storage space.
  • the installation information includes: storage location information of the virtual file system of the application, and the launching the application in the virtual file system includes:
  • the application is launched and executed within the virtual file system.
  • the starting and running the application in the virtual file system further includes:
  • An external file system is mounted to the virtual file system to provide the application with an interface to access the external file system.
  • the uninstalling the application and deleting the virtual file system corresponding to the application includes:
  • An embodiment of the present invention provides a management device for an application, where the device includes: a building module and an application management module;
  • the application management module is configured to detect an installer that launches an application; after installing the application, detecting a request to start the application or a request to uninstall the application;
  • the building module is configured to, after detecting an installer that launches an application, build a virtual file system, and install an installer running the application in the virtual file system An application; after installing the application, launching the application in the virtual file system, or uninstalling the application and deleting a virtual file system corresponding to the application.
  • the building module is 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;
  • the virtual file system of the application the virtual file system serving as a storage space of the application; and unmounting the file system of the formatted disk file itself.
  • the building module is further configured to: after detecting an installation program of the startup application, launch an installation program of the application in the virtual file system, install the application, and install the application
  • the generated program file is saved in the virtual file system; after the installation is completed, the installation information of the application is obtained, and the installation information is sent to the application management module;
  • the application management module is configured to: acquire the installation information, and save the installation information in the system storage space.
  • the installation information includes: storage location information of the virtual file system of the application;
  • the application management module is configured to: after detecting the request to start the application or the request to uninstall the application, query the installation of the application in the system storage space And acquiring information, according to the installation information, storage location information of the virtual file system of the application, and sending storage location information of the virtual file system of the application.
  • the building module is further configured to: mount an external file system to the virtual file system, and provide an interface for the application to access the external file system.
  • An application management method, apparatus, and computer storage medium provided by an embodiment of the present invention, after detecting an installation program of an application startup, constructing a virtual file system, and installing an installation program of the application program in the virtual file system Installing the application; after installing the application, launching the application in the virtual file system, or uninstalling the application and deleting a virtual file system corresponding to the application.
  • the embodiment of the present invention can limit the storage space size and location of the application by installing and starting the application in the virtual file system; when the application is uninstalled, the virtual file system corresponding to the deleted application is deleted, which is simple and convenient, and does not generate junk files, There will be an unclean uninstallation issue.
  • FIG. 1 is a schematic flowchart of a method for managing an application according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for managing an application according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method for installing an application according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for starting an application according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a method for uninstalling an application according to an embodiment of the present invention.
  • a virtual file system is built, an installer running the application installs the application in the virtual file system; and the application is installed After the program, the application is started in the virtual file system, or the application is uninstalled and the virtual file system corresponding to the application is deleted.
  • FIG. 1 is a schematic flowchart of a method for managing an application program according to an embodiment of the present invention; as shown in FIG. 1 , the method for managing the application program includes:
  • Step 001 After detecting the installation program of the startup application, construct a virtual file system, and the installer running the application installs the application in the virtual file system.
  • the constructing the virtual file system includes:
  • the mobile terminal creates a disk file in the system storage space, formats the disk file, and uses the formatted disk file as the virtual file system of the application;
  • the mobile terminal is mounted to the virtual file system, and the virtual file system can be used as a storage space private to the application.
  • the file system of the formatted disk file itself is the file system of the mobile terminal itself, and is represented by an external file system.
  • the mobile terminal uninstalls the file system of the formatted disk file itself, and can uninstall the permission of the application to access the external file system of the mobile terminal, thereby preventing the virtual file system and the external file system from accessing each other.
  • the virtual file system is: a logical file system established in the mobile terminal, and the logical file system is a file system private to its corresponding application.
  • the mobile terminal may include devices such as a mobile phone, a smart phone, a personal digital assistant (PDA), a tablet computer (PAD), a portable multimedia player (PMP), and the like, the mobile terminal being equipped with a basic Linux operating system.
  • PDA personal digital assistant
  • PAD tablet computer
  • PMP portable multimedia player
  • the mobile terminal can virtualize a common file into a disk file as a virtual file system for the user in the Linux system.
  • a storage space of an ordinary file in the system storage space is planned as a storage space of the application.
  • Each application's storage space corresponds to a disk file, and the disk file can be formatted.
  • a standard file system is obtained, and the mobile terminal uses the standard file system as a virtual file system of an application. After obtaining the virtual file system, the mobile terminal uninstalls the original file system on the standard file system, so that the application does not have access to other files in the mobile terminal, and all operations are restricted to the disk file, correspondingly The other files also cannot access the disk file.
  • the mobile terminal includes a desktop launcher, and the mobile terminal detects a user's operation and performs a corresponding operation by using the desktop launcher, and the operations include: installing an application, starting an application, and uninstalling the application.
  • the mobile terminal may further include: a central processing unit (CPU), a memory, an external memory, and the like; the memory may use a double rate synchronous dynamic random access memory (DDR), the outer Save large area scanning hardware (FLASH, Fast Large Area Scan Hardware).
  • DDR double rate synchronous dynamic random access memory
  • FLASH Flexible Large Area Scan Hardware
  • the installer running the application installs the application in the virtual file system, including:
  • the mobile terminal starts an installer of the application in the virtual file system, installs the application, and saves the program file generated after the installation into the virtual file system;
  • the mobile terminal After the application is installed, the mobile terminal acquires installation information of the application, and saves the installation information in the system storage space.
  • the mobile terminal constructs a virtual file system in the external file system, and needs to be switched from the external file system of the mobile terminal to the virtual file system after the construction, that is, the mobile terminal is mounted to the virtual file system; in the virtual file system After the application is installed, the program file generated after the application is installed is saved in the virtual file system.
  • the installation information includes: storage location information of the virtual file system of the application And related information of the application, the related information includes: access rights of the application, icon information, a developer of the application, a software size and a occupied space of the application, and the like.
  • the installation information may be saved in the system storage space in different manners, such as a document format.
  • the application is a third-party application; the third-party application is a software written by the non-mobile terminal itself for the purpose of achieving an application purpose, and can provide services such as office and entertainment for the user.
  • the third-party application is generally developed and distributed by a third-party operator, and the user downloads the installation program of the application to the mobile terminal, and the installation program is installed, and the format of the installation program of the application includes, for example, ipa. , pxl, deb, apk and other formats.
  • the mobile terminal After detecting the installer of the application, the mobile terminal constructs a virtual file system for each application to install the application and launch the application.
  • Step 002 After the application is installed, start the application in the virtual file system, or uninstall the application and delete a virtual file system corresponding to the application.
  • the launching the application in the virtual file system includes:
  • the mobile terminal detects a request to start the application, and after the user clicks the operation of the application, queries the installation information of the application in the system storage space, and acquires the application according to the installation information.
  • Storage location information of the virtual file system
  • the virtual file system when the mobile terminal mounts an external file system, the virtual file system may access other external files; when the mobile terminal is uninstalled
  • the external file system can be uninstalled to access the external Access to other files.
  • the mobile terminal After the mobile terminal detects the request to uninstall the application, such as the operation of the user to uninstall the application, querying the installation information of the application in the system storage space, and acquiring the application according to the installation information.
  • the mobile terminal deletes the virtual file system of the application and deletes the installation information of the application in the system storage space.
  • the mobile terminal deletes the disk file corresponding to the virtual file system, and the virtual file system can be deleted. At the same time, the mobile terminal also deletes the installation information saved in the system storage space, thereby ensuring that the application is uninstalled after the application is uninstalled. No related files of the application will remain, and the storage space of the mobile terminal will not be wasted.
  • the application program that the mobile terminal comes with runs in the external file system of the mobile terminal, and the related file is saved in the system storage space.
  • Each third-party application corresponds to construct a virtual file system
  • the third-party application runs in the corresponding virtual file system
  • the related program files are saved in the virtual file system.
  • the mobile terminal mounts the external file system to the virtual file.
  • an access interface is provided, which can implement an application that is provided by the mobile terminal. Mutual access between programs and third-party applications.
  • the mobile terminal comes with an application such as an album software, a third-party application such as a photographing software of any third party, and the like.
  • the application generates a corresponding file during the installation process, and the mobile terminal may still have a large number of cache files after being used for a long time, which may cause file access protection.
  • the method provided by the embodiment of the present invention constructs a virtual file system, installs and starts a third-party application, and provides a third-party application with its own independent storage space for storing its own internal files, and the applications cannot access each other.
  • the access rights of the application can be restricted to the greatest extent, and the internal information of the mobile terminal is protected; at the same time, the file generated by the application is saved in the disk file corresponding to the virtual file system;
  • the mobile terminal deletes the disk file and the installation information of the application corresponding to the virtual file system, thereby deleting all information related to the application in the system storage space, and limiting the residual file generated by the application.
  • the application management module 12 is configured to detect an installation program that launches an application; after installing the application, detecting a request to start the application or a request to uninstall the application;
  • the building module 11 is configured to, after the application management module 12 detects the installation program of the startup application, construct a virtual file system, and the installer running the application installs the application in the virtual file system And, after installing the application, launching the application in the virtual file system, or uninstalling the application and deleting a virtual file system corresponding to the application.
  • the building module 11 is configured to create a disk in the system storage space. a file, formatting the disk file, using the formatted disk file as a virtual file system of the application; mounting a virtual file system of the application, the virtual file system serving as a storage space of the application ; Unmount the file system of the formatted disk file itself.
  • the building module 11 is further configured to: after the application management module 12 detects the installation program of the startup application, start the installation program of the application in the virtual file system, and install The application saves the program file generated after the installation to the virtual file system; after the application is installed, the installation information of the application is obtained, and the installation information is sent to the application management module.
  • the building module 11 is further configured to: after the application management module 12 detects the request to uninstall the application, obtain the application according to the storage location information of the virtual file system of the application. a virtual file system; deleting the virtual file system of the application and deleting installation information of the application in the system storage space.
  • the building module 11 is further configured to: after the application management module 12 detects the request to start the application, obtain the application according to the storage location information of the virtual file system of the application. a virtual file system that mounts the virtual file system as a storage space for the application; the application is launched and executed within the virtual file system.
  • the application management module 12 is configured to: after the installation is completed, obtain the installation information from the building module 11 and save the installation information in the system storage space.
  • the installation information includes: storage location information of the virtual file system of the application and related information of the application, the related information includes: permission information of the application, icon information, and developer of the application , the software size and footprint of the application.
  • the application management module 12 is further configured to uninstall the application and delete the application. In addition to the virtual file system corresponding to the application.
  • the application management module 12 is configured to: after detecting the request to uninstall the application, query the installation information of the application in the system storage space, and obtain the information according to the installation information.
  • the building module deletes the disk file corresponding to the virtual file system, and the virtual file system of the application program may be deleted; the installation information saved in the system storage space may also be deleted, and at this time, the uninstallation of the application is completed, and Any other files about the application will remain, without wasting the storage space of the mobile terminal.
  • the application management module 12 is further configured to launch the application within the virtual file system.
  • the application management module 12 is configured to: after detecting the request to start the application, query the installation information of the application in the system storage space, and obtain the information according to the installation information.
  • the application management module 12 sends the storage location information of the virtual file system of the application
  • the application module 11 obtains the application according to the stored storage location information of the virtual file system of the application.
  • a virtual file system of the program the virtual file system being mounted as a storage space of the application; the application is launched and executed within the virtual file system.
  • the building module 11 is further configured to: hang an external file system Loading to the virtual file system to provide the application with an interface to access the external file system.
  • Step 102 The application management module starts, and the application management module determines that the opened program is an installation program of the application, and then calls the building module to install.
  • 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 them, it is determined that the opened file is an installer of the application.
  • Step 103 The building module initializes the running environment, including: determining an operating environment of the building module, where the running environment is an external file system of the mobile terminal, and the building module runs in the external file system.
  • Step 104 The building module creates a disk file in a system storage space of the mobile terminal.
  • Step 105 The building module formats the disk file into a standard file system, where the standard file system is used as a virtual file system of the application, and the virtual file system is used to install and start an application.
  • Step 106 The building module mounts the virtual file system and uses it as a storage space private to the application.
  • Step 107 The building module uninstalls the file system of the standard file system itself.
  • the building module has completely obtained the private storage space, and cannot access other spaces outside the mobile terminal. At this point, you can pass this access to the application.
  • Step 108 The building module starts the application installation program, and passes the access permission to the application. Use the program's installer.
  • Step 109 The installation program of the application is initialized, including: acquiring storage location information of the virtual file system, and determining a virtual file system that can be accessed.
  • Step 110 The installer of the application enters the installation process.
  • Step 111 The installer of the application saves the installed program file to the virtual file system.
  • Step 112 After the installation process completes the installation process, the installation module sends a notification message to complete the installation.
  • Step 113 The building module acquires installation information of the application, including: storage location information of the virtual file system of the application, related icons, access rights, and the like.
  • Step 114 The building module sends the installation information to the application management module.
  • Step 115 The application management module records a binding relationship between the application and the installation information, and stores the installation information in a system storage space for querying when the application is started.
  • Step 116 completing the installation of the application.
  • FIG. 4 is a schematic flowchart of a method for starting an application according to an embodiment of the present invention. As shown in FIG. 4, a method for a mobile terminal to start an application includes:
  • Step 201 After detecting, by the desktop startup manager, the request for starting the application, the mobile terminal starts the application and the application management module according to the request of the startup application.
  • Step 202 The application management module queries the installation information of the application.
  • Step 203 After the application management module acquires the installation information of the application, the installation information is sent to the building module.
  • Step 204 The building module initializes the running environment, including: determining an operating environment of the building module, where the operating environment is an external file system of the mobile terminal, and the building module runs in the external file system.
  • Step 205 The building module searches for a disk file corresponding to the virtual file system of the application.
  • Step 206 The building module mounts the virtual file system of the application.
  • Step 207 The building module mounts an external file system, and the application can access other external files.
  • Step 208 The building module uninstalls the original file system, that is, uninstalls the permissions of accessing other external files.
  • step 207 the application can access other files of the mobile terminal, and in step 208, the application is prohibited from accessing other files of the mobile terminal, thereby implementing management of the access rights of the application; and completing the configuration of the operating environment through steps 207 and 208.
  • Step 209 After the building module running environment is ready, start the application.
  • Step 210 The application inherits the file system last mounted by the build module and initializes it.
  • Step 211 The application starts running the application and enters the running state.
  • Step 212 After the building module starts the application, it returns immediately, and sends a notification message that the startup is completed to the building module.
  • Step 213 The application management module receives the notification message and completes the startup of the application.
  • FIG. 5 is a schematic flowchart of a method for uninstalling an application program according to an embodiment of the present invention. As shown in FIG. 5, a method for uninstalling an application program by a mobile terminal includes:
  • Step 301 After the mobile terminal detects the request to uninstall the application by using the desktop launcher, the application management module is started.
  • Step 302 The application management module queries the installation information of the application.
  • Step 303 After the application management module obtains the installation information of the application, the installation information is sent to the building module, and the building module is started.
  • Step 304 The building module starts initialization and is mounted to the external file system of the mobile terminal.
  • Step 305 The building module searches the storage location information of the virtual file system of the application according to the installation information, that is, the storage location information of the disk file corresponding to the virtual file system, and obtains the virtual file system according to the storage location information.
  • Step 306 The building module deletes the disk file corresponding to the virtual file system of the application, that is, deletes the virtual file system of the application.
  • Step 307 After the completion, the building module notifies the application management module.
  • Step 308 Complete the uninstallation of the application.
  • the application management module in the first embodiment, the second embodiment, and the third embodiment is used to manage all applications of the system, and is responsible for monitoring installation, operation, and uninstallation of the application.
  • the application management module can be embedded in the desktop launcher of the mobile terminal.
  • the actions of the third-party application are monitored by an application management module that manages installation information for all applications, including icons, storage locations, and the like. The above information is stored in the system storage space, and the building module can obtain relevant information.
  • the building module is configured to set a running environment of the third-party application, that is, a virtual file system of the application, and set a private storage space for the application that is only visible to the application and cannot be accessed by other spaces.
  • the application accesses this virtual file system, no difference from accessing the external file system. If the application needs to access other address spaces, it can be set by the building module.
  • the building module can mount the external file system to the application's virtual file system, and then the application can be reserved to access the external file system.
  • the application's own independent address space can also access the external address space.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the management method of the application program according to the embodiment of the invention.
  • the disclosed method and apparatus may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined, or Can be integrated into another system, Or some features can be ignored or not executed.
  • the communication connections between the various components shown or discussed may be indirect coupling or communication connections through some interfaces, devices or modules, and may be electrical, mechanical or otherwise.
  • the modules described above as separate components may or may not be physically separated.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place or distributed to multiple network modules; Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may be separately used as one module, or two or more modules may be integrated into one module;
  • the module can be implemented in the form of hardware or in the form of hardware plus software function modules.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a removable storage device, a read-only memory (ROM), a magnetic disk or an optical disk, and the like, which can store program codes.
  • ROM read-only memory
  • the above-described integrated module of the embodiment of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a stand-alone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a magnetic disk, or an optical disk.
  • the technical solution of the embodiment of the present invention can limit the storage space size and location of the application by installing and starting the application in the virtual file system; when the application is uninstalled, the virtual file system corresponding to the deleted application is deleted, which is simple and convenient, and does not generate garbage. The file does not appear to be unclean and unclean.

Abstract

A method and device for managing an application and a computer storage medium, comprising: when the startup of an installation program for an application is detected, constructing a virtual file system, running the installation program for the application to install the application in the virtual file system (001); when the application is installed, starting up the application in the virtual file system, or uninstalling the application and deleting the virtual file system corresponding to the application (002).

Description

一种应用程序的管理方法、装置和计算机存储介质Application management method, device and computer storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201610942927.6、申请日为2016年11月01日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is filed on the basis of the Chinese Patent Application No. No. No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本发明涉及移动终端的应用程序领域,尤其涉及一种应用程序的管理方法、装置和计算机存储介质。The present invention relates to the field of application of a mobile terminal, and in particular, to a method, an apparatus, and a computer storage medium for managing an application.
背景技术Background technique
移动终端的产生,给人们带来了极大生活便捷和极好的娱乐体验。通过移动终端可以下载安装丰富多彩的第三方应用程序。用户根据自己的需求和喜好,可自由选择安装和卸载应用程序,但这种高度自由的应用程序管理方式,也造成一系列问题,主要包括以下两点:The generation of mobile terminals has brought great convenience and excellent entertainment experience to people. A variety of third-party applications can be downloaded and installed through the mobile terminal. Users can choose to install and uninstall applications according to their own needs and preferences. However, this highly free application management method also causes a series of problems, including the following two points:
1、存储空间不够用。由于第三方应用程序未经过严格审核验证,在安装和卸载过程中,有大量残留文件占用系统存储空间。对于非专业用户来说,无法区分哪些文件是系统文件,哪些文件是无用文件,也不清楚这些残留文件是否能够删除。时间长久之后,系统可用存储空间越来越少,系统越来越慢。1, storage space is not enough. Because third-party applications are not rigorously audited, a large number of residual files occupy system storage during the installation and uninstallation process. For non-professional users, it is impossible to distinguish which files are system files, which files are useless files, and whether these residual files can be deleted. After a long time, the available storage space of the system is getting less and less, and the system is getting slower and slower.
2、无法确定应用程序是否泄漏个人私密文件。由于第三方应用程序可以访问文件系统内的任意文件,没有很好的权限管理;对于一些恶意应用程序,可以很简单的获得用户的私密文件。对于个人的移动终端,存在很大的安全隐患。 2. It is not possible to determine if the application leaks personal privacy files. Because third-party applications can access any file in the file system, there is no good rights management; for some malicious applications, the user's private files can be easily obtained. For personal mobile terminals, there are great security risks.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例提供一种应用程序的管理方法、装置和计算机存储介质,可以限制应用程序所需存储空间的大小、存储空间的位置和访问权限。In order to solve the existing technical problems, the embodiments of the present invention provide a method, an apparatus, and a computer storage medium for managing an application, which can limit the size of the storage space required by the application, the location of the storage space, and the access rights.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明实施例提供了一种应用程序的管理方法,所述方法包括:An embodiment of the present invention provides a method for managing an application, where the method includes:
检测到启动应用程序的安装程序后,构建虚拟文件系统,运行所述应用程序的安装程序在所述虚拟文件系统中安装所述应用程序;After detecting the installer of the launch application, building a virtual file system, the installer running the application installs the application in the virtual file system;
安装所述应用程序后,在所述虚拟文件系统内启动所述应用程序,或卸载所述应用程序并删除所述应用程序对应的虚拟文件系统。After the application is installed, the application is started in the virtual file system, or the application is uninstalled and the virtual file system corresponding to the application is deleted.
在一实施例中,所述构建虚拟文件系统,包括:In an embodiment, the constructing the virtual file system comprises:
在系统存储空间内创建磁盘文件,格式化所述磁盘文件,将格式化后的磁盘文件作为所述应用程序的虚拟文件系统;Creating a disk file in the system storage space, formatting the disk file, and using the formatted disk file as the virtual file system of the application;
挂载所述应用程序的虚拟文件系统,所述虚拟文件系统作为所述应用程序的存储空间;Mounting a virtual file system of the application, the virtual file system serving as a storage space of the application;
卸载所述格式化后的磁盘文件自身的文件系统。Unmount the file system of the formatted disk file itself.
在一实施例中,所述运行所述应用程序的安装程序在所述虚拟文件系统中安装所述应用程序,包括:In an embodiment, the installer running the application installs the application in the virtual file system, including:
在所述虚拟文件系统中启动所述应用程序的安装程序,安装所述应用程序,将安装后生成的程序文件保存到所述虚拟文件系统中;Launching an installer of the application in the virtual file system, installing the application, and saving the program file generated after the installation into the virtual file system;
安装完成后,获取所述应用程序的安装信息,并将所述安装信息保存在所述系统存储空间内。After the installation is completed, the installation information of the application is obtained, and the installation information is saved in the system storage space.
在一实施例中,所述安装信息包括:所述应用程序的虚拟文件系统的存储位置信息,所述在虚拟文件系统内启动所述应用程序,包括:In an embodiment, the installation information includes: storage location information of the virtual file system of the application, and the launching the application in the virtual file system includes:
检测到启动所述应用程序的请求后,在所述系统存储空间中查询应用 程序的安装信息,根据所述安装信息获取所述应用程序的虚拟文件系统的存储位置信息;After detecting the request to start the application, querying the application in the system storage space The installation information of the program, acquiring storage location information of the virtual file system of the application according to the installation information;
根据所述应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统;Obtaining a virtual file system of the application according to storage location information of the virtual file system of the application;
挂载到所述虚拟文件系统作为所述应用程序的存储空间,在所述虚拟文件系统内启动并运行所述应用程序。Mounted to the virtual file system as a storage space for the application, the application is launched and executed within the virtual file system.
在一实施例中,所述在所述虚拟文件系统内启动并运行所述应用程序,还包括:In an embodiment, the starting and running the application in the virtual file system further includes:
将外部文件系统挂载到所述虚拟文件系统,为所述应用程序提供访问所述外部文件系统的接口。An external file system is mounted to the virtual file system to provide the application with an interface to access the external file system.
在一实施例中,所述卸载所述应用程序并删除所述应用程序对应的虚拟文件系统,包括:In an embodiment, the uninstalling the application and deleting the virtual file system corresponding to the application includes:
检测到卸载所述应用程序的请求后,在所述系统存储空间中查询应用程序的安装信息,根据所述安装信息获取所述应用程序的虚拟文件系统的存储位置信息;After detecting the request to uninstall the application, querying installation information of the application in the system storage space, and acquiring storage location information of the virtual file system of the application according to the installation information;
根据所述应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统;Obtaining a virtual file system of the application according to storage location information of the virtual file system of the application;
删除所述应用程序的虚拟文件系统,并删除所述系统存储空间中的所述应用程序的安装信息。Deleting the virtual file system of the application and deleting installation information of the application in the system storage space.
本发明实施例提供了一种应用程序的管理装置,所述装置包括:构建模块和应用管理模块;其中,An embodiment of the present invention provides a management device for an application, where the device includes: a building module and an application management module;
所述应用管理模块,配置为检测启动应用程序的安装程序;在安装所述应用程序后,检测启动所述应用程序的请求或卸载所述应用程序的请求;The application management module is configured to detect an installer that launches an application; after installing the application, detecting a request to start the application or a request to uninstall the application;
所述构建模块,配置为在检测到启动应用程序的安装程序后,构建虚拟文件系统,运行所述应用程序的安装程序在所述虚拟文件系统中安装所 述应用程序;在安装所述应用程序后,在所述虚拟文件系统内启动所述应用程序,或卸载所述应用程序并删除所述应用程序对应的虚拟文件系统。The building module is configured to, after detecting an installer that launches an application, build a virtual file system, and install an installer running the application in the virtual file system An application; after installing the application, launching the application in the virtual file system, or uninstalling the application and deleting a virtual file system corresponding to the application.
在一实施例中,所述构建模块,配置为,在系统存储空间内创建磁盘文件,格式化所述磁盘文件,将格式化后的磁盘文件作为所述应用程序的虚拟文件系统;挂载所述应用程序的虚拟文件系统,所述虚拟文件系统作为所述应用程序的存储空间;卸载所述格式化后的磁盘文件自身的文件系统。In an embodiment, the building module is 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; The virtual file system of the application, the virtual file system serving as a storage space of the application; and unmounting the file system of the formatted disk file itself.
在一实施例中,所述构建模块,还配置为,检测到启动应用程序的安装程序后,在所述虚拟文件系统中启动所述应用程序的安装程序,安装所述应用程序,将安装后生成的程序文件保存到所述虚拟文件系统中;安装完成后,获取应用程序的安装信息,并将所述安装信息发送给所述应用管理模块;In an embodiment, the building module is further configured to: after detecting an installation program of the startup application, launch an installation program of the application in the virtual file system, install the application, and install the application The generated program file is saved in the virtual file system; after the installation is completed, the installation information of the application is obtained, and the installation information is sent to the application management module;
检测到卸载所述应用程序的请求后,根据应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统;删除所述应用程序的虚拟文件系统,并删除所述系统存储空间中的所述应用程序的安装信息;及,After detecting the request to uninstall the application, obtaining a virtual file system of the application according to storage location information of the virtual file system of the application; deleting the virtual file system of the application, and deleting the system storage space The installation information of the application; and,
检测到启动所述应用程序的请求后,根据应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统,挂载所述虚拟文件系统作为所述应用程序的存储空间;在所述虚拟文件系统内启动并运行所述应用程序。After detecting the request to start the application, obtaining a virtual file system of the application according to storage location information of the virtual file system of the application, and mounting the virtual file system as a storage space of the application; The application is launched and run within the virtual file system.
在一实施例中,所述应用管理模块,配置为:获取所述安装信息,并将所述安装信息保存在所述系统存储空间内。In an embodiment, the application management module is configured to: acquire the installation information, and save the installation information in the system storage space.
在一实施例中,所述安装信息包括:所述应用程序的虚拟文件系统的存储位置信息;In an embodiment, the installation information includes: storage location information of the virtual file system of the application;
所述应用管理模块,配置为:检测到启动所述应用程序的请求或卸载所述应用程序的请求后,在所述系统存储空间中查询所述应用程序的安装 信息,根据所述安装信息获取所述应用程序的虚拟文件系统的存储位置信息,发送所述应用程序的虚拟文件系统的存储位置信息。The application management module is configured to: after detecting the request to start the application or the request to uninstall the application, query the installation of the application in the system storage space And acquiring information, according to the installation information, storage location information of the virtual file system of the application, and sending storage location information of the virtual file system of the application.
在一实施例中,所述构建模块,还配置为:将外部文件系统挂载到所述虚拟文件系统,为所述应用程序提供访问所述外部文件系统的接口。In an embodiment, the building module is further configured to: mount an external file system to the virtual file system, and provide an interface for the application to access the external file system.
本发明实施例提供的一种应用程序的管理方法、装置和计算机存储介质,检测到启动应用程序的安装程序后,构建虚拟文件系统,运行所述应用程序的安装程序在所述虚拟文件系统中安装所述应用程序;安装所述应用程序后,在所述虚拟文件系统内启动所述应用程序,或卸载所述应用程序并删除所述应用程序对应的虚拟文件系统。本发明实施例通过在虚拟文件系统中安装和启动应用程序,可限制应用程序的存储空间大小以及位置;卸载应用程序时对应删除应用程序的虚拟文件系统,简洁方便,不会产生垃圾文件,不会出现卸载不干净问题。An application management method, apparatus, and computer storage medium provided by an embodiment of the present invention, after detecting an installation program of an application startup, constructing a virtual file system, and installing an installation program of the application program in the virtual file system Installing the application; after installing the application, launching the application in the virtual file system, or uninstalling the application and deleting a virtual file system corresponding to the application. The embodiment of the present invention can limit the storage space size and location of the application by installing and starting the application in the virtual file system; when the application is uninstalled, the virtual file system corresponding to the deleted application is deleted, which is simple and convenient, and does not generate junk files, There will be an unclean uninstallation issue.
附图说明DRAWINGS
图1为本发明实施例提供的一种应用程序的管理方法的流程示意图;FIG. 1 is a schematic flowchart of a method for managing an application according to an embodiment of the present invention;
图2为本发明实施例提供的一种应用程序的管理装置的结构示意图;2 is a schematic structural diagram of an apparatus for managing an application according to an embodiment of the present invention;
图3为本发明实施例提供的一种安装应用程序的方法流程示意图;3 is a schematic flowchart of a method for installing an application according to an embodiment of the present invention;
图4为本发明实施例提供的一种启动应用程序的方法流程示意图;4 is a schematic flowchart of a method for starting an application according to an embodiment of the present invention;
图5为本发明实施例提供的一种卸载应用程序的方法流程示意图。FIG. 5 is a schematic flowchart of 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 that launches an application, a virtual file system is built, an installer running the application installs the application in the virtual file system; and the application is installed After the program, the application is started in the virtual file system, or the application is uninstalled and the virtual file system corresponding to the application is deleted.
下面结合实施例对本发明再作进一步详细的说明。 The present invention will be further described in detail below with reference to the embodiments.
图1为本发明实施例提供的一种应用程序的管理方法的流程示意图;如图1所示,所述应用程序的管理方法,包括:FIG. 1 is a schematic flowchart of a method for managing an application program according to an embodiment of the present invention; as shown in FIG. 1 , the method for managing the application program includes:
步骤001,检测到启动应用程序的安装程序后,构建虚拟文件系统,运行所述应用程序的安装程序在所述虚拟文件系统中安装应用程序。Step 001: After detecting the installation program of the startup application, construct a virtual file system, and the installer running the application installs the application in the virtual file system.
具体地,所述构建虚拟文件系统,包括:Specifically, the constructing the virtual file system includes:
移动终端在系统存储空间内创建磁盘文件,格式化所述磁盘文件,将格式化后的磁盘文件作为所述应用程序的虚拟文件系统;The mobile terminal creates a disk file in the system storage space, formats the disk file, and uses the formatted disk file as the virtual file system of the application;
挂载所述应用程序的虚拟文件系统,所述虚拟文件系统作为所述应用程序的存储空间;Mounting a virtual file system of the application, the virtual file system serving as a storage space of the application;
卸载所述格式化后的磁盘文件自身的文件系统。Unmount the file system of the formatted disk file itself.
这里,所述移动终端挂载到所述虚拟文件系统,所述虚拟文件系统即可作为所述应用程序私有的存储空间使用。Here, the mobile terminal is mounted to the virtual file system, and the virtual file system can be used as a storage space private to the application.
格式化后的磁盘文件自身的文件系统为移动终端自身的文件系统,用外部文件系统表示。所述移动终端卸载掉格式化后的磁盘文件自身的文件系统,即可卸载掉所述应用程序访问移动终端的外部文件系统的权限,可以防止虚拟文件系统和外部文件系统相互访问。The file system of the formatted disk file itself is the file system of the mobile terminal itself, and is represented by an external file system. The mobile terminal uninstalls the file system of the formatted disk file itself, and can uninstall the permission of the application to access the external file system of the mobile terminal, thereby preventing the virtual file system and the external file system from accessing each other.
所述虚拟文件系统为:在移动终端内建立的一个逻辑文件系统,该逻辑文件系统作为其对应的应用程序私有的文件系统。The virtual file system is: a logical file system established in the mobile terminal, and the logical file system is a file system private to its corresponding application.
所述移动终端可以包括:诸如移动电话、智能电话、个人数字助理(PDA)、平板电脑(PAD)、便携式多媒体播放器(PMP)等设备,所述移动终端搭载基础的Linux操作系统。The mobile terminal may include devices such as a mobile phone, a smart phone, a personal digital assistant (PDA), a tablet computer (PAD), a portable multimedia player (PMP), and the like, the mobile terminal being equipped with a basic Linux operating system.
需要说明的是,移动终端在Linux系统中,可以将一个普通文件虚拟成一个磁盘文件作为虚拟文件系统给用户使用。本实施例中,将系统存储空间中的一个普通文件的存储空间规划为所述应用程序的一个存储空间。每一个应用程序的存储空间对应一个磁盘文件,格式化所述磁盘文件后即可 获得一个标准文件系统,移动终端将所述标准文件系统作为一个应用程序的虚拟文件系统使用。获得虚拟文件系统后,移动终端通过卸载掉所述标准文件系统上原有的文件系统,使得所述应用程序没有访问移动终端中其他文件的权限,其所有的操作都限制在该磁盘文件中,相应的,其他文件也无法访问该磁盘文件。It should be noted that the mobile terminal can virtualize a common file into a disk file as a virtual file system for the user in the Linux system. In this embodiment, a storage space of an ordinary file in the system storage space is planned as a storage space of the application. Each application's storage space corresponds to a disk file, and the disk file can be formatted. A standard file system is obtained, and the mobile terminal uses the standard file system as a virtual file system of an application. After obtaining the virtual file system, the mobile terminal uninstalls the original file system on the standard file system, so that the application does not have access to other files in the mobile terminal, and all operations are restricted to the disk file, correspondingly The other files also cannot access the disk file.
所述移动终端,包括:桌面启动器,移动终端通过所述桌面启动器检测到用户的操作并执行相应的操作,所述操作包括:安装应用程序、启动应用程序、卸载应用程序。The mobile terminal includes a desktop launcher, and the mobile terminal detects a user's operation and performs a corresponding operation by using the desktop launcher, and the operations include: installing an application, starting an application, and uninstalling the application.
所述移动终端,还可以包括:中央处理器(CPU,Central Processing Unit)、内存、外存等器件;所述内存可以采用双倍速率同步动态随机存储器(DDR,Double Data Rate)、所述外存可以采用快速大面积扫描硬件(FLASH,Fast Large Area Scan Hardware)。移动终端的应用程序包括的文件存储在所述外存等器件中,在安装应用程序和卸载应用程序时,通过增加或删除外存中对应的文件来实现。The mobile terminal may further include: a central processing unit (CPU), a memory, an external memory, and the like; the memory may use a double rate synchronous dynamic random access memory (DDR), the outer Save large area scanning hardware (FLASH, Fast Large Area Scan Hardware). The file included in the application of the mobile terminal is stored in the external storage device, and is implemented by adding or deleting a corresponding file in the external storage when the application is installed and the application is uninstalled.
具体地,所述运行所述应用程序的安装程序在所述虚拟文件系统中安装所述应用程序,包括:Specifically, the installer running the application installs the application in the virtual file system, including:
移动终端在所述虚拟文件系统中启动所述应用程序的安装程序,安装所述应用程序,将安装后生成的程序文件保存到所述虚拟文件系统中;The mobile terminal starts an installer of the application in the virtual file system, installs the application, and saves the program file generated after the installation into the virtual file system;
所述应用程序安装完成后,移动终端获取应用程序的安装信息,并将所述安装信息保存在所述系统存储空间内。After the application is installed, the mobile terminal acquires installation information of the application, and saves 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 needs to be switched from the external file system of the mobile terminal to the virtual file system after the construction, that is, the mobile terminal is mounted to the virtual file system; in the virtual file system After the application is installed, the program file generated after the application is installed is saved in the virtual file system.
所述安装信息,包括:所述应用程序的虚拟文件系统的存储位置信息 和所述应用程序的相关信息,所述相关信息包括:所述应用程序的访问权限、图标信息、应用程序的开发商、应用程序的软件大小和占用空间等。The installation information includes: storage location information of the virtual file system of the application And related information of the application, the related information includes: access rights of the application, icon information, a developer of the application, a software size and a occupied space of the application, and the like.
所述安装信息可以通过不同的方式,如文档格式,保存在所述系统存储空间中。The installation information may be saved in the system storage space in different manners, such as a document format.
所述应用程序为第三方应用程序;所述第三方应用程序为针对用户的、非移动终端自身携带的、为实现某种应用目的所编写的软体,可以为用户提供办公、娱乐等服务。The application is a third-party application; the third-party application is a software written by the non-mobile terminal itself for the purpose of achieving an application purpose, and can provide services such as office and entertainment for the user.
所述第三方应用程序一般由第三方运营商开发并发布,用户下载应用程序的安装程序到移动终端,安装所述安装程序后即可使用,所述应用程序的安装程序的格式包括了如ipa、pxl、deb、apk等格式。The third-party application is generally developed and distributed by a third-party operator, and the user downloads the installation program of the application to the mobile terminal, and the installation program is installed, and the format of the installation program of the application includes, for example, ipa. , pxl, deb, apk and other formats.
所述移动终端在检测到应用程序的安装程序后,针对每一个应用程序构建一个虚拟文件系统,用于安装应用程序、启动应用程序。After detecting the installer of the application, the mobile terminal constructs a virtual file system for each application to install the application and launch the application.
步骤002,安装所述应用程序后,在所述虚拟文件系统内启动所述应用程序,或卸载所述应用程序并删除所述应用程序对应的虚拟文件系统。Step 002: After the application is installed, start the application in the virtual file system, or uninstall the application and delete a virtual file system corresponding to the application.
具体地,所述在虚拟文件系统内启动所述应用程序,包括:Specifically, the launching the application in the virtual file system includes:
移动终端检测到启动所述应用程序的请求、如用户点击所述应用程序的操作后,在所述系统存储空间中查询所述应用程序的安装信息,根据所述安装信息获取所述应用程序的虚拟文件系统的存储位置信息;The mobile terminal detects a request to start the application, and after the user clicks the operation of the application, queries the installation information of the application in the system storage space, and acquires the application according to the installation information. Storage location information of the virtual file system;
根据所述应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统;Obtaining a virtual file system of the application according to storage location information of the virtual file system of the application;
挂载所述虚拟文件系统作为所述应用程序的存储空间;在所述虚拟文件系统内启动并运行所述应用程序。Mounting the virtual file system as a storage space of the application; launching and running the application within the virtual file system.
这里,挂载所述虚拟文件系统作为所述应用程序的存储空间之后,当所述移动终端挂载外部文件系统时,所述虚拟文件系统可以访问外部的其他文件;当所述移动终端卸载掉所述外部文件系统,即可卸载掉访问外部 的其他文件的访问权限。Here, after the virtual file system is mounted as the storage space of the application, when the mobile terminal mounts an external file system, the virtual file system may access other external files; when the mobile terminal is uninstalled The external file system can be uninstalled to access the external Access to other files.
若所述应用程序需访问所述系统存储空间中的其他文件,移动终端将需要访问的其他文件的文件系统挂载到所述应用程序的虚拟文件系统,所述应用程序可以访问所述系统存储空间中的该文件。If the application needs to access other files in the system storage space, the mobile terminal mounts a file system of other files that need to be accessed to the virtual file system of the application, and the application can access the system storage. The file in space.
具体地,所述卸载所述应用程序并删除所述应用程序对应的虚拟文件系统,包括:Specifically, the uninstalling the application and deleting the virtual file system corresponding to the application includes:
移动终端检测到卸载所述应用程序的请求、如用户输入的卸载所述应用程序的操作后,在所述系统存储空间中查询所述应用程序的安装信息,根据所述安装信息获取所述应用程序的虚拟文件系统的存储位置信息;After the mobile terminal detects the request to uninstall the application, such as the operation of the user to uninstall the application, querying the installation information of the application in the system storage space, and acquiring the application according to the installation information. Storage location information of the program's virtual file system;
根据所述应用程序的虚拟文件系统的存储位置信息获得所述应用程序的所述虚拟文件系统;Obtaining the virtual file system of the application according to storage location information of the virtual file system of the application;
移动终端删除所述应用程序的虚拟文件系统,并删除所述系统存储空间中的所述应用程序的安装信息。The mobile terminal deletes the virtual file system of the application and deletes the installation information of the application in the system storage space.
这里,移动终端删除所述虚拟文件系统对应的磁盘文件,即可删除所述虚拟文件系统,同时,移动终端还对应删除系统存储空间中保存的安装信息,从而保证卸载掉应用程序后移动终端内不会残留任何应用程序的相关文件,不会浪费移动终端的存储空间。Here, the mobile terminal deletes the disk file corresponding to the virtual file system, and the virtual file system can be deleted. At the same time, the mobile terminal also deletes the installation information saved in the system storage space, thereby ensuring that the application is uninstalled after the application is uninstalled. No related files of the application will remain, and the storage space of the mobile terminal will not be wasted.
针对虚拟文件系统和移动终端的外部文件系统进一步说明:Further explanation of the external file system of the virtual file system and the mobile terminal:
本发明实施例中,移动终端自带的应用程序在移动终端的外部文件系统中运行,相关文件保存在系统存储空间中。每一个第三方应用程序对应构建一个虚拟文件系统,所述第三方应用程序在对应的虚拟文件系统中运行,相关的程序文件保存在虚拟文件系统中。当移动终端自带的应用程序需要访问第三方应用程序对应的虚拟文件系统内的文件,或者第三方应用程序需要访问外部文件系统的文件时,移动终端将外部文件系统挂载到所述虚拟文件系统中,即提供一个访问接口,可以实现移动终端自带的应用 程序和第三方应用程序的相互访问。In the embodiment of the present invention, the application program that the mobile terminal comes with runs in the external file system of the mobile terminal, and the related file is saved in the system storage space. Each third-party application corresponds to construct a virtual file system, the third-party application runs in the corresponding virtual file system, and the related program files are saved in the virtual file system. When the application that comes with the mobile terminal needs to access a file in the virtual file system corresponding to the third-party application, or the third-party application needs to access the file of the external file system, the mobile terminal mounts the external file system to the virtual file. In the system, an access interface is provided, which can implement an application that is provided by the mobile terminal. Mutual access between programs and third-party applications.
这里,移动终端自带的应用程序如:相册软件,第三方应用程序如:任一第三方的拍照软件等。Here, the mobile terminal comes with an application such as an album software, a third-party application such as a photographing software of any third party, and the like.
现有技术中,应用程序在安装过程中会产生相应的文件,运用长久之后移动终端还会存在大量缓存文件,从而会造成文件访问保护的问题。通过本发明实施例提供的方法,构建虚拟文件系统,安装、启动第三方应用程序,并为第三方应用程序提供自己独立的存储空间用于存储自己的内部文件,且应用程序之间互相不能访问;在保证应用程序的正常运行的基础上,可最大程度的限制所述应用程序的访问权限,保护移动终端的内部信息;同时,由于应用程序产生的文件保存在虚拟文件系统对应的磁盘文件中,卸载所述应用程序时移动终端会删除虚拟文件系统对应的磁盘文件和应用程序的安装信息,从而在系统存储空间中删除与应用程序相关的所有信息,限制了应用程序产生的残留文件。In the prior art, the application generates a corresponding file during the installation process, and the mobile terminal may still have a large number of cache files after being used for a long time, which may cause file access protection. The method provided by the embodiment of the present invention constructs a virtual file system, installs and starts a third-party application, and provides a third-party application with its own independent storage space for storing its own internal files, and the applications cannot access each other. On the basis of ensuring the normal operation of the application, the access rights of the application can be restricted to the greatest extent, and the internal information of the mobile terminal is protected; at the same time, the file generated by the application is saved in the disk file corresponding to the virtual file system; When the application is uninstalled, the mobile terminal deletes the disk file and the installation information of the application corresponding to the virtual file system, thereby deleting all information related to the application in the system storage space, and limiting the residual file generated by the application.
图2为本发明实施例提供的一种应用程序的管理装置的结构示意图,如图2所示,所述应用程序的管理装置包括:构建模块11和应用管理模块12;其中,2 is a schematic structural diagram of an apparatus for managing an application program according to an embodiment of the present invention. As shown in FIG. 2, the management apparatus of the application program includes: a building module 11 and an application management module 12;
所述应用管理模块12,配置为检测启动应用程序的安装程序;在安装所述应用程序后,检测启动所述应用程序的请求或卸载所述应用程序的请求;The application management module 12 is configured to detect an installation program that launches an application; after installing the application, detecting a request to start the application or a request to uninstall the application;
所述构建模块11,配置为在所述应用管理模块12检测到启动应用程序的安装程序后,构建虚拟文件系统,运行所述应用程序的安装程序在所述虚拟文件系统中安装所述应用程序;及,在安装所述应用程序后,在所述虚拟文件系统内启动所述应用程序,或卸载所述应用程序并删除所述应用程序对应的虚拟文件系统。The building module 11 is configured to, after the application management module 12 detects the installation program of the startup application, construct a virtual file system, and the installer running the application installs the application in the virtual file system And, after installing the application, launching the application in the virtual file system, or uninstalling the application and deleting a virtual file system corresponding to the application.
本实施例中,所述构建模块11,配置为,在系统存储空间内创建磁盘 文件,格式化所述磁盘文件,将格式化后的磁盘文件作为所述应用程序的虚拟文件系统;挂载所述应用程序的虚拟文件系统,所述虚拟文件系统作为所述应用程序的存储空间;卸载所述格式化后的磁盘文件自身的文件系统。In this embodiment, the building module 11 is configured to create a disk in the system storage space. a file, formatting the disk file, using the formatted disk file as a virtual file system of the application; mounting a virtual file system of the application, the virtual file system serving as a storage space of the application ; Unmount the file system of the formatted disk file itself.
作为一种实施方式,所述构建模块11,还配置为:在所述应用管理模块12检测到启动应用程序的安装程序后,在所述虚拟文件系统中启动所述应用程序的安装程序,安装所述应用程序,将安装后生成的程序文件保存到所述虚拟文件系统中;所述应用程序安装完成后,获取应用程序的安装信息,并将所述安装信息发送给所述应用管理模块。As an implementation manner, the building module 11 is further configured to: after the application management module 12 detects the installation program of the startup application, start the installation program of the application in the virtual file system, and install The application saves the program file generated after the installation to the virtual file system; after the application is installed, the installation information of the application is obtained, and the installation information is sent to the application management module.
作为一种实施方式,所述构建模块11,还配置为:在所述应用管理模块12检测到卸载所述应用程序的请求后,根据应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统;删除所述应用程序的虚拟文件系统,并删除所述系统存储空间中的所述应用程序的安装信息。As an implementation manner, the building module 11 is further configured to: after the application management module 12 detects the request to uninstall the application, obtain the application according to the storage location information of the virtual file system of the application. a virtual file system; deleting the virtual file system of the application and deleting installation information of the application in the system storage space.
作为一种实施方式,所述构建模块11,还配置为:在所述应用管理模块12检测到启动所述应用程序的请求后,根据应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统,挂载所述虚拟文件系统作为所述应用程序的存储空间;在所述虚拟文件系统内启动并运行所述应用程序。As an implementation manner, the building module 11 is further configured to: after the application management module 12 detects the request to start the application, obtain the application according to the storage location information of the virtual file system of the application. a virtual file system that mounts the virtual file system as a storage space for the application; the application is launched and executed within the virtual file system.
本实施例中,所述应用管理模块12,配置为:安装完成后,从所述构建模块11中获取所述安装信息,并将所述安装信息保存在所述系统存储空间内。In this embodiment, the application management module 12 is configured to: after the installation is completed, obtain the installation information from the building module 11 and save the installation information in the system storage space.
所述安装信息,包括:所述应用程序的虚拟文件系统的存储位置信息和所述应用程序的相关信息,所述相关信息包括:所述应用程序的权限信息、图标信息、应用程序的开发商、应用程序的软件大小和占用空间等。The installation information includes: storage location information of the virtual file system of the application and related information of the application, the related information includes: permission information of the application, icon information, and developer of the application , the software size and footprint of the application.
本实施例中,所述应用管理模块12,还配置为卸载所述应用程序并删 除所述应用程序对应的虚拟文件系统。In this embodiment, the application management module 12 is further configured to uninstall the application and delete the application. In addition to the virtual file system corresponding to the application.
本实施例中,所述应用管理模块12,配置为:检测到卸载所述应用程序的请求后,在所述系统存储空间中查询所述应用程序的安装信息,根据所述安装信息获取所述应用程序的虚拟文件系统的存储位置信息,发送所述应用程序的虚拟文件系统的存储位置信息。In this embodiment, the application management module 12 is configured to: after detecting the request to uninstall the application, query the installation information of the application in the system storage space, and obtain the information according to the installation information. The storage location information of the virtual file system of the application, and the storage location information of the virtual file system of the application.
这里,所述应用管理模块12在发送所述应用程序的虚拟文件系统的存储位置信息之后,由构建模块11根据接收的所述应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统,删除所述应用程序对应的所述虚拟文件系统;完成后构建模块通知应用管理模块12。Here, after the application management module 12 sends the storage location information of the virtual file system of the application, the building module 11 obtains the virtuality of the application according to the stored storage location information of the virtual file system of the application. The file system deletes the virtual file system corresponding to the application; after completion, the building module notifies the application management module 12.
这里,所述构建模块删除虚拟文件系统对应的磁盘文件,即可删除所述应用程序的虚拟文件系统;还可以删除系统存储空间中保存的安装信息,此时,完成应用程序的卸载,且不会残留任何关于应用程序的其他文件,不会浪费移动终端的存储空间。Here, the building module deletes the disk file corresponding to the virtual file system, and the virtual file system of the application program may be deleted; the installation information saved in the system storage space may also be deleted, and at this time, the uninstallation of the application is completed, and Any other files about the application will remain, without wasting the storage space of the mobile terminal.
作为一种实施方式,所述应用管理模块12,还配置为在虚拟文件系统内启动所述应用程序。As an implementation manner, the application management module 12 is further configured to launch the application within the virtual file system.
本实施例中,所述应用管理模块12,配置为:检测到启动所述应用程序的请求后,在所述系统存储空间中查询所述应用程序的安装信息,根据所述安装信息获取所述应用程序的虚拟文件系统的存储位置信息,发送所述应用程序的虚拟文件系统的存储位置信息。In this embodiment, the application management module 12 is configured to: after detecting the request to start the application, query the installation information of the application in the system storage space, and obtain the information according to the installation information. The storage location information of the virtual file system of the application, and the storage location information of the virtual file system of the application.
这里,应用管理模块12在发送所述应用程序的虚拟文件系统的存储位置信息之后,启动应用程序之前,由构建模块11根据接收的所述应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统,挂载所述虚拟文件系统作为所述应用程序的存储空间;在所述虚拟文件系统内启动并运行所述应用程序。Here, after the application management module 12 sends the storage location information of the virtual file system of the application, before the application is started, the application module 11 obtains the application according to the stored storage location information of the virtual file system of the application. a virtual file system of the program, the virtual file system being mounted as a storage space of the application; the application is launched and executed within the virtual file system.
作为一种实施方式,所述构建模块11,还配置为:将外部文件系统挂 载到所述虚拟文件系统,为所述应用程序提供访问所述外部文件系统的接口。As an implementation manner, the building module 11 is further configured to: hang an external file system Loading to the virtual file system to provide the application with an interface to access the external file system.
图3为本发明实施例提供的一种安装应用程序的方法的流程示意图;如图3所示,移动终端安装应用程序的方法,包括:FIG. 3 is a schematic flowchart of a method for installing an application according to an embodiment of the present invention; as shown in FIG. 3, a method for installing an application by a mobile terminal includes:
步骤101、移动终端通过桌面启动器检测到用户输入,根据所述用户输入启动所述应用程序的安装程序。Step 101: The mobile terminal detects a user input through a desktop launcher, and starts an installer of the application according to the user input.
步骤102、应用管理模块启动,所述应用管理模块确定打开的程序是应用程序的安装程序后,调用构建模块进行安装。Step 102: The application management module starts, and the application management module determines that the opened program is an installation program of the application, and then calls the building module to install.
这里,应用管理模块判断打开的文件的格式是否为ipa、pxl、deb、apk中的任意一种;若打开的文件的格式为其中任意一种,则确定打开的文件是应用程序的安装程序。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 them, it is determined that the opened file is an installer of the application.
步骤103、构建模块初始化运行环境,包括:确定所述构建模块的运行环境,此时运行环境为移动终端的外部文件系统,所述构建模块在所述外部文件系统中运行。Step 103: The building module initializes the running environment, including: determining an operating environment of the building module, where the running environment is an external file system of the mobile terminal, and the building module runs in the external file system.
步骤104、构建模块在移动终端的系统存储空间中创建一个磁盘文件。Step 104: The building module creates a disk file in a system storage space of the mobile terminal.
步骤105、构建模块格式化所述磁盘文件为标准文件系统,该标准文件系统作为所述应用程序的虚拟文件系统,所述虚拟文件系统用于安装、启动应用程序。Step 105: The building module formats the disk file into a standard file system, where the standard file system is used as a virtual file system of the application, and the virtual file system is used to install and start an application.
步骤106、构建模块挂载虚拟文件系统,作为应用程序私有的存储空间使用。Step 106: The building module mounts the virtual file system and uses it as a storage space private to the application.
步骤107、构建模块卸载所述标准文件系统自身的文件系统。Step 107: The building module uninstalls the file system of the standard file system itself.
这里,完成步骤107后,所述构建模块已完全获得私有的存储空间,且不能访问移动终端的外部其他空间。此时,可将此访问权限传递给应用程序。Here, after the 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, you can pass this access to the application.
步骤108、构建模块启动应用程序的安装程序,并将访问权限传递给应 用程序的安装程序。Step 108: The building module starts the application installation program, and passes the access permission to the application. Use the program's installer.
步骤109、所述应用程序的安装程序初始化,包括:获取虚拟文件系统的存储位置信息,确定可以访问的虚拟文件系统。Step 109: The installation program of the application is initialized, including: acquiring storage location information of the virtual file system, and determining a virtual file system that can be accessed.
步骤110、应用程序的安装程序进入安装流程。Step 110: The installer of the application enters the installation process.
步骤111、应用程序的安装程序将安装后的程序文件保存到所述虚拟文件系统中。Step 111: The installer of the application saves the installed program file to the virtual file system.
步骤112、安装程序完成安装流程后,向构建模块发送完成安装的通知消息。Step 112: After the installation process completes the installation process, the installation module sends a notification message to complete the installation.
步骤113、所述构建模块获取应用程序的安装信息,包括:应用程序的虚拟文件系统的存储位置信息、相关图标、访问权限等。Step 113: The building module acquires installation information of the application, including: storage location information of the virtual file system of the application, related icons, access rights, and the like.
步骤114、所述构建模块将安装信息发送给应用管理模块。Step 114: The building module sends the installation information to the application management module.
步骤115、所述应用管理模块记录应用程序和安装信息的绑定关系,并将安装信息存储到系统存储空间中,用于在启动应用程序时查询。Step 115: The application management module records a binding relationship between the application and the installation information, and stores the installation information in a system storage space for querying when the application is started.
步骤116、完成应用程序的安装。 Step 116, completing the installation of the application.
图4为本发明实施例提供的一种启动应用程序的方法流程示意图;如图4所示,移动终端启动应用程序的方法,包括:4 is a schematic flowchart of a method for starting an application according to an embodiment of the present invention; as shown in FIG. 4, a method for a mobile terminal to start an application includes:
步骤201:移动终端通过桌面启动管理器检测到启动应用程序的请求后,根据所述启动应用程序的请求启动所述应用程序和应用管理模块。Step 201: After detecting, by the desktop startup manager, the request for starting the application, the mobile terminal starts the application and the application management module according to the request of the startup application.
步骤202:应用管理模块查询应用程序的安装信息。Step 202: The application management module queries the installation information of the application.
步骤203:应用管理模块获取所述应用程序的安装信息后,将安装信息发送给构建模块。Step 203: After the application management module acquires the installation information of the application, the installation information is sent to the building module.
步骤204:构建模块初始化运行环境,包括:确定所述构建模块的运行环境,此时运行环境为移动终端的外部文件系统,所述构建模块在所述外部文件系统中运行。Step 204: The building module initializes the running environment, including: determining an operating environment of the building module, where the operating environment is an external file system of the mobile terminal, and the building module runs in the external file system.
步骤205:构建模块查找应用程序的虚拟文件系统对应的磁盘文件。 Step 205: The building module searches for a disk file corresponding to the virtual file system of the application.
步骤206:构建模块挂载应用程序的虚拟文件系统。Step 206: The building module mounts the virtual file system of the application.
步骤207:构建模块挂载外部文件系统,应用程序可以访问外部的其他文件。Step 207: The building module mounts an external file system, and the application can access other external files.
步骤208:构建模块卸载原有的文件系统,即卸载掉访问外部的其他文件的权限。Step 208: The building module uninstalls the original file system, that is, uninstalls the permissions of accessing other external files.
这里,通过步骤207应用程序可以访问移动终端的其他文件,通过步骤208禁止应用程序访问移动终端的其他文件,从而实现应用程序的访问权限的管理;通过步骤207和步骤208完成运行环境的配置。Here, in step 207, the application can access other files of the mobile terminal, and in step 208, the application is prohibited from accessing other files of the mobile terminal, thereby implementing management of the access rights of the application; and completing the configuration of the operating environment through steps 207 and 208.
步骤209:构建模块运行环境准备完成后,启动应用程序。Step 209: After the building module running environment is ready, start the application.
步骤210:应用程序继承构建模块最后挂载的文件系统,并进行初始化。Step 210: The application inherits the file system last mounted by the build module and initializes it.
步骤211:应用程序开始运行应用程序,进入运行状态。Step 211: The application starts running the application and enters the running state.
步骤212:构建模块启动应用程序后,立即返回,并向构建模块发送启动完毕的通知消息。Step 212: After the building module starts the application, it returns immediately, and sends a notification message that the startup is completed to the building module.
步骤213:应用管理模块接收到通知消息,完成应用程序的启动。Step 213: The application management module receives the notification message and completes the startup of the application.
图5为本发明实施例提供的一种卸载应用程序的方法流程示意图;如图5所示,移动终端卸载应用程序的方法,包括:FIG. 5 is a schematic flowchart of a method for uninstalling an application program according to an embodiment of the present invention; as shown in FIG. 5, a method for uninstalling an application program by a mobile terminal includes:
步骤301:移动终端通过桌面启动器检测到卸载应用程序的请求后,开启应用管理模块。Step 301: After the mobile terminal detects the request to uninstall the application by using the desktop launcher, the application management module is started.
步骤302:应用管理模块查询应用程序的安装信息。Step 302: The application management module queries the installation information of the application.
步骤303:应用管理模块获取应用程序的安装信息后,将安装信息发送给构建模块,并启动构建模块。Step 303: After the application management module obtains the installation information of the application, the installation information is sent to the building module, and the building module is started.
步骤304:构建模块开始初始化,挂载到移动终端的外部文件系统。Step 304: The building module starts initialization and is mounted to the external file system of the mobile terminal.
步骤305:构建模块根据安装信息查找应用程序的虚拟文件系统的存储位置信息,即虚拟文件系统对应的磁盘文件的存储位置信息,根据所述存储位置信息获得所述虚拟文件系统。 Step 305: The building module searches the storage location information of the virtual file system of the application according to the installation information, that is, the storage location information of the disk file corresponding to the virtual file system, and obtains the virtual file system according to the storage location information.
步骤306:构建模块删除应用程序的虚拟文件系统对应的磁盘文件,即删除应用程序的虚拟文件系统。Step 306: The building module deletes the disk file corresponding to the virtual file system of the application, that is, deletes the virtual file system of the application.
步骤307:完成后构建模块通知应用管理模块。Step 307: After the completion, the building module notifies the application management module.
步骤308:完成应用程序的卸载。Step 308: Complete the uninstallation of the application.
以上实施例一、实施例二、实施例三中的所述应用管理模块,用于管理系统所有的应用程序,负责监控应用程序的安装、运行和卸载。实际运用中,安装、运行和卸载应用程序需通过移动终端的桌面启动器进行时,所述应用管理模块可以嵌入到移动终端的桌面启动器中。第三方应用程序的动作受到应用管理模块的监控,所述应用管理模块管理所有应用程序的安装信息,包括图标、存储位置等信息。上述信息存储在系统存储空间中,构建模块可以获得相关的信息。The application management module in the first embodiment, the second embodiment, and the third embodiment is used to manage all applications of the system, and is responsible for monitoring installation, operation, and uninstallation of the application. In actual use, when the application is installed, run, and uninstalled through the desktop launcher of the mobile terminal, the application management module can be embedded in the desktop launcher of the mobile terminal. The actions of the third-party application are monitored by an application management module that manages installation information for all applications, including icons, storage locations, and the like. The above information is stored in the system storage space, and the building module can obtain relevant information.
所述构建模块,用于设置第三方应用程序的运行环境即应用程序的虚拟文件系统,为应用程序设置仅应用程序可见、其他空间无法访问的私有的存储空间。应用程序访问此虚拟文件系统,与访问外部文件系统无差异。如果应用程序需要访问其他地址空间,可以通过构建模块进行设置,例如构建模块将外部文件系统挂载到应用程序的虚拟文件系统中,即可给应用程序保留访问外部文件系统的接口,达到既保护了应用程序自己独立的地址空间,也可访问外部地址空间的目的。The building module is configured to set a running environment of the third-party application, that is, a virtual file system of the application, and set a private storage space for the application that is only visible to the application and cannot be accessed by other spaces. The application accesses this virtual file system, no difference from accessing the external file system. If the application needs to access other address spaces, it can be set by the building module. For example, the building module can mount the external file system to the application's virtual file system, and then the application can be reserved to access the external file system. The application's own independent address space can also access the external address space.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的应用程序的管理方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the management method of the application program according to the embodiment of the invention.
在本发明所提供的几个实施例中,应该理解到,所揭露的方法及装置,可以通过其他的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个模块或组件可以结合,或可以集成到另一个系统, 或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的通信连接可以是通过一些接口,设备或模块的间接耦合或通信连接,可以是电性的、机械的或其他形式的。In the several embodiments provided by the present invention, it should be understood that the disclosed method and apparatus may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be another division manner, for example, multiple modules or components may be combined, or Can be integrated into another system, Or some features can be ignored or not executed. In addition, the communication connections between the various components shown or discussed may be indirect coupling or communication connections through some interfaces, devices or modules, and may be electrical, mechanical or otherwise.
上述作为分离部件说明的模块可以是、或也可以不是物理上分开的,作为模块显示的部件可以是、或也可以不是物理模块,即可以位于一个地方,也可以分布到多个网络模块上;可以根据实际的需要选择其中的部分或全部模块来实现本实施例方案的目的。The modules described above as separate components may or may not be physically separated. The components displayed as modules may or may not be physical modules, that is, may be located in one place or distributed to multiple network modules; Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各实施例中的各功能模块可以全部集成在一个处理模块中,也可以是各模块分别单独作为一个模块,也可以两个或两个以上模块集成在一个模块中;上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may be separately used as one module, or two or more modules may be integrated into one module; The module can be implemented in the form of hardware or in the form of hardware plus software function modules.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。It will be understood by those skilled in the art that all or part of the steps of implementing the foregoing method embodiments may be performed by hardware related to program instructions. The foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a removable storage device, a read-only memory (ROM), a magnetic disk or an optical disk, and the like, which can store program codes.
或者,本发明实施例上述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, the above-described integrated module of the embodiment of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a stand-alone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a magnetic disk, or an optical disk.
本发明实施例中记载的存储器切换方法、装置只以上述实施例为例, 但不仅限于此,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。The memory switching method and apparatus described in the embodiments of the present invention are only exemplified by the above embodiments. However, it is not limited thereto, and those skilled in the art should understand that the technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or replacements are not The essence of the corresponding technical solutions is deviated from the scope of the technical solutions of the embodiments of the present invention.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例的技术方案通过在虚拟文件系统中安装和启动应用程序,可限制应用程序的存储空间大小以及位置;卸载应用程序时对应删除应用程序的虚拟文件系统,简洁方便,不会产生垃圾文件,不会出现卸载不干净问题。 The technical solution of the embodiment of the present invention can limit the storage space size and location of the application by installing and starting the application in the virtual file system; when the application is uninstalled, the virtual file system corresponding to the deleted application is deleted, which is simple and convenient, and does not generate garbage. The file does not appear to be unclean and unclean.

Claims (13)

  1. 一种应用程序的管理方法,所述方法包括:An application management method, the method comprising:
    检测到启动应用程序的安装程序后,构建虚拟文件系统,运行所述应用程序的安装程序在所述虚拟文件系统中安装所述应用程序;After detecting the installer of the launch application, building a virtual file system, the installer running the application installs the application in the virtual file system;
    安装所述应用程序后,在所述虚拟文件系统内启动所述应用程序,或卸载所述应用程序并删除所述应用程序对应的虚拟文件系统。After the application is installed, the application is started in the virtual file system, or the application is uninstalled and the virtual file system corresponding to the application is deleted.
  2. 根据权利要求1所述的方法,其中,所述构建虚拟文件系统,包括:The method of claim 1 wherein said constructing a virtual file system comprises:
    在系统存储空间内创建磁盘文件,格式化所述磁盘文件,将格式化后的磁盘文件作为所述应用程序的虚拟文件系统;Creating a disk file in the system storage space, formatting the disk file, and using the formatted disk file as the virtual file system of the application;
    挂载所述应用程序的虚拟文件系统,所述虚拟文件系统作为所述应用程序的存储空间;Mounting a virtual file system of the application, the virtual file system serving as a storage space of the application;
    卸载所述格式化后的磁盘文件自身的文件系统。Unmount the file system of the formatted disk file itself.
  3. 根据权利要求2所述的方法,其中,所述运行所述应用程序的安装程序在所述虚拟文件系统中安装所述应用程序,包括:The method of claim 2, wherein the installer running the application installs the application in the virtual file system, comprising:
    在所述虚拟文件系统中启动所述应用程序的安装程序,安装所述应用程序,将安装后生成的程序文件保存到所述虚拟文件系统中;Launching an installer of the application in the virtual file system, installing the application, and saving the program file generated after the installation into the virtual file system;
    所述应用程序安装完成后,获取所述应用程序的安装信息,并将所述安装信息保存在所述系统存储空间内。After the application is installed, the installation information of the application is obtained, and the installation information is saved in the system storage space.
  4. 根据权利要求3所述的方法,其中,所述安装信息包括:所述应用程序的虚拟文件系统的存储位置信息,所述在虚拟文件系统内启动所述应用程序,包括:The method of claim 3, wherein the installation information comprises: storage location information of the virtual file system of the application, the launching the application in the virtual file system, comprising:
    检测到启动所述应用程序的请求后,在所述系统存储空间中查询所述应用程序的安装信息,根据所述安装信息获取所述应用程序的虚拟文件系统的存储位置信息;After detecting the request to start the application, querying installation information of the application in the system storage space, and acquiring storage location information of the virtual file system of the application according to the installation information;
    根据所述应用程序的虚拟文件系统的存储位置信息获得所述应用程序 的虚拟文件系统;Obtaining the application according to storage location information of the virtual file system of the application Virtual file system;
    挂载到所述虚拟文件系统作为所述应用程序的存储空间,在所述虚拟文件系统内启动并运行所述应用程序。Mounted to the virtual file system as a storage space for the application, the application is launched and executed within the virtual file system.
  5. 根据权利要求4所述的方法,其中,所述在所述虚拟文件系统内启动并运行所述应用程序,还包括:The method of claim 4, wherein the launching and running the application within the virtual file system further comprises:
    将外部文件系统挂载到所述虚拟文件系统,为所述应用程序提供访问所述外部文件系统的接口。An external file system is mounted to the virtual file system to provide the application with an interface to access the external file system.
  6. 根据权利要求3所述的方法,其中,所述卸载所述应用程序并删除所述应用程序对应的虚拟文件系统,包括:The method of claim 3, wherein the uninstalling the application and deleting the virtual file system corresponding to the application comprises:
    检测到卸载所述应用程序的请求后,在所述系统存储空间中查询所述应用程序的安装信息,根据所述安装信息获取所述应用程序的虚拟文件系统的存储位置信息;After detecting the request to uninstall the application, querying installation information of the application in the system storage space, and acquiring storage location information of the virtual file system of the application according to the installation information;
    根据所述应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统;Obtaining a virtual file system of the application according to storage location information of the virtual file system of the application;
    删除所述应用程序的虚拟文件系统,并删除所述系统存储空间中的所述应用程序的安装信息。Deleting the virtual file system of the application and deleting installation information of the application in the system storage space.
  7. 一种应用程序的管理装置,所述装置包括:构建模块和应用管理模块;其中,An application management device, the device comprising: a building module and an application management module; wherein
    所述应用管理模块,配置为检测启动应用程序的安装程序;在安装所述应用程序后,检测启动所述应用程序的请求或卸载所述应用程序的请求;The application management module is configured to detect an installer that launches an application; after installing the application, detecting a request to start the application or a request to uninstall the application;
    所述构建模块,配置为在所述应用管理模块检测到启动应用程序的安装程序后,构建虚拟文件系统,运行所述应用程序的安装程序在所述虚拟文件系统中安装所述应用程序;及,在安装所述应用程序后,在所述虚拟文件系统内启动所述应用程序,或卸载所述应用程序并删除所述应用程序对应的虚拟文件系统。 The building module is configured to, after the application management module detects an installer that launches an application, build a virtual file system, and install an application that runs the application to install the application in the virtual file system; After installing the application, launching the application in the virtual file system, or uninstalling the application and deleting a virtual file system corresponding to the application.
  8. 根据权利要求7所述的装置,其中,所述构建模块,配置为,在系统存储空间内创建磁盘文件,格式化所述磁盘文件,将格式化后的磁盘文件作为所述应用程序的虚拟文件系统;挂载所述应用程序的虚拟文件系统,所述虚拟文件系统作为所述应用程序的存储空间;卸载所述格式化后的磁盘文件自身的文件系统。The apparatus according to claim 7, wherein the building module is 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 of the application. a system; mounting a virtual file system of the application, the virtual file system as a storage space of the application; and unmounting the file system of the formatted disk file itself.
  9. 根据权利要求8所述的装置,其中,所述构建模块,还配置为,所述应用管理模块检测到启动应用程序的安装程序后,在所述虚拟文件系统中启动所述应用程序的安装程序,安装所述应用程序,将安装后生成的程序文件保存到所述虚拟文件系统中;所述应用程序安装完成后,获取应用程序的安装信息,并将所述安装信息发送给所述应用管理模块;The apparatus according to claim 8, wherein the building module is further configured to: after the application management module detects an installer that launches an application, launch an installer of the application in the virtual file system And installing the application, saving the program file generated after the installation into the virtual file system; after the application is installed, acquiring installation information of the application, and sending the installation information to the application management Module
    所述应用管理模块检测到卸载所述应用程序的请求后,根据应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统;删除所述应用程序的虚拟文件系统,并删除所述系统存储空间中的所述应用程序的安装信息;After detecting the request for uninstalling the application, the application management module obtains a virtual file system of the application according to storage location information of the virtual file system of the application; deletes the virtual file system of the application, and deletes the The installation information of the application in the system storage space;
    所述应用管理模块检测到启动所述应用程序的请求后,根据应用程序的虚拟文件系统的存储位置信息获得所述应用程序的虚拟文件系统,挂载所述虚拟文件系统作为所述应用程序的存储空间;在所述虚拟文件系统内启动并运行所述应用程序。After detecting the request for starting the application, the application management module obtains a virtual file system of the application according to storage location information of the virtual file system of the application, and mounts the virtual file system as the application. Storage space; the application is launched and executed within the virtual file system.
  10. 根据权利要求9所述的装置,其中,所述应用管理模块,配置为:获取所述安装信息,并将所述安装信息保存在所述系统存储空间内。The apparatus according to claim 9, wherein the application management module is configured to: acquire the installation information, and save the installation information in the system storage space.
  11. 根据权利要求10所述的装置,其中,所述安装信息包括:所述应用程序的虚拟文件系统的存储位置信息;The apparatus according to claim 10, wherein said installation information comprises: storage location information of a virtual file system of said application;
    所述应用管理模块,配置为:检测到启动所述应用程序的请求或卸载所述应用程序的请求后,在所述系统存储空间中查询所述应用程序的安装信息,根据所述安装信息获取所述应用程序的虚拟文件系统的存储位置信 息,发送所述应用程序的虚拟文件系统的存储位置信息。The application management module is configured to: after detecting the request to start the application or the request to uninstall the application, query the installation information of the application in the system storage space, and obtain the installation information according to the installation information. Storage location letter of the virtual file system of the application Information, the storage location information of the virtual file system of the application is sent.
  12. 根据权利要求10所述的装置,其中,所述构建模块,还配置为:将外部文件系统挂载到所述虚拟文件系统,为所述应用程序提供访问所述外部文件系统的接口。The apparatus of claim 10, wherein the building block is further configured to: mount an external file system to the virtual file system to provide the application with an interface to access the external file system.
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至6任一项所述的应用程序的管理方法。 A computer storage medium storing computer executable instructions for executing the management method of the application according to any one of claims 1 to 6.
PCT/CN2017/085992 2016-11-01 2017-05-25 Method and device for managing application and computer storage medium WO2018082289A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610942927.6 2016-11-01
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
WO2018082289A1 true WO2018082289A1 (en) 2018-05-11

Family

ID=62070633

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/085992 WO2018082289A1 (en) 2016-11-01 2017-05-25 Method and device for managing application and computer storage medium

Country Status (2)

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

Cited By (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
CN113296758A (en) * 2021-03-15 2021-08-24 上海爱数信息技术股份有限公司 Front-end component library construction method and device and storage medium

Families Citing this family (3)

* 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
CN112073812B (en) * 2019-06-10 2022-08-19 聚好看科技股份有限公司 Application management method on smart television and display device
CN112035119B (en) * 2020-08-28 2024-03-08 北京奇艺世纪科技有限公司 Data deleting method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101965553A (en) * 2008-01-04 2011-02-02 密刻爱你有限公司 Virtual application program system, storing device, method for executing virtual application program and method for protecting virtual environment
US20120144182A1 (en) * 2010-12-07 2012-06-07 Korea Institute Of Science And Technology Apparatus and method for fast booting based on virtualization technique
CN105607869A (en) * 2015-12-15 2016-05-25 国云科技股份有限公司 Method for quickly formatting and using virtual machine disk

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9323778B2 (en) * 2011-04-06 2016-04-26 Dell Products L.P. Virtual disk utility
CN102402446B (en) * 2011-11-22 2014-12-17 华为数字技术(成都)有限公司 Method and device for installing application software
CN103530162B (en) * 2013-10-22 2016-05-11 中国科学院信息工程研究所 The method and system that the on-line automatic software of a kind of virtual machine is installed
CN105677393B (en) * 2015-12-30 2019-02-05 中科创达软件股份有限公司 A kind of software packet processing method, apparatus and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101965553A (en) * 2008-01-04 2011-02-02 密刻爱你有限公司 Virtual application program system, storing device, method for executing virtual application program and method for protecting virtual environment
US20120144182A1 (en) * 2010-12-07 2012-06-07 Korea Institute Of Science And Technology Apparatus and method for fast booting based on virtualization technique
CN105607869A (en) * 2015-12-15 2016-05-25 国云科技股份有限公司 Method for quickly formatting and using virtual machine disk

Cited By (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
CN113296758A (en) * 2021-03-15 2021-08-24 上海爱数信息技术股份有限公司 Front-end component library construction method and device and storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2018082289A1 (en) Method and device for managing application and computer storage medium
KR101169085B1 (en) Portable application
US11243792B2 (en) Image file conversion method and apparatus
CN107870968B (en) Performing real-time updates to a file system volume
US8694981B2 (en) Shared resource dependencies
CN102662741B (en) Method, device and system for realizing virtual desktop
WO2015062389A1 (en) Method and apparatus for uninstalling system application on terminal device
KR101748000B1 (en) Dynamically redirecting boot to another operating system
JPWO2010100769A1 (en) Security management apparatus and method, and program
CN110457894B (en) root authority distribution method and device, storage medium and terminal equipment
US8572741B2 (en) Providing security for a virtual machine by selectively triggering a host security scan
JP2013518342A (en) System and method for sharing the results of computing operations between related computing systems
US20060265756A1 (en) Disk protection using enhanced write filter
US20170351507A1 (en) Silent upgrade of software with dependencies
CN111782416A (en) Data reporting method, device, system, terminal and computer readable storage medium
US8353044B1 (en) Methods and systems for computing device remediation
US10318272B1 (en) Systems and methods for managing application updates
WO2018108051A1 (en) Method and device for system administration, and storage medium
US8881140B1 (en) Systems and methods for virtualizing software associated with external computer hardware devices
US8612994B1 (en) Methods and systems for activating and deactivating virtualization layers
US10303486B2 (en) Capturing pre-fetch blocks of an operating system to improve boot performance in a cloud environment
US10127029B1 (en) Operating system installation using logical volumes
US9910662B2 (en) Selectively migrating applications during an operating system upgrade
KR100733742B1 (en) Portable information processing terminal and communication system thereof
US10061653B1 (en) Method to expose files on top of a virtual volume

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17867616

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17867616

Country of ref document: EP

Kind code of ref document: A1