CN106649495B - Data deletion method and device for multi-open application and mobile terminal - Google Patents

Data deletion method and device for multi-open application and mobile terminal Download PDF

Info

Publication number
CN106649495B
CN106649495B CN201610885226.3A CN201610885226A CN106649495B CN 106649495 B CN106649495 B CN 106649495B CN 201610885226 A CN201610885226 A CN 201610885226A CN 106649495 B CN106649495 B CN 106649495B
Authority
CN
China
Prior art keywords
application
data
target
subdirectory
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610885226.3A
Other languages
Chinese (zh)
Other versions
CN106649495A (en
Inventor
林志泳
付亮晶
乔家栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610885226.3A priority Critical patent/CN106649495B/en
Publication of CN106649495A publication Critical patent/CN106649495A/en
Application granted granted Critical
Publication of CN106649495B publication Critical patent/CN106649495B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a data deleting method, a device and a mobile terminal for multi-open application, wherein the method comprises the following steps: detecting operation events of each multi-open application set in real time, wherein the multi-open application set comprises a main application and a body-splitting application corresponding to the main application; when a data deletion event of a target application in an open-loop application set is detected, determining a related application of the target application, wherein the related application is an application corresponding to the target application in the open-loop application set; and deleting the target data corresponding to the data deletion event in the target application and the associated application. The invention solves the problem of complicated operation for deleting multi-open application data, and can conveniently and quickly delete the data of the main application and the corresponding personal application.

Description

一种多开应用的数据删除方法装置、和移动终端A kind of data deletion method device for multi-open application, and mobile terminal

技术领域technical field

本发明涉及移动终端技术领域,尤其涉及一种多开应用的数据删除方法装置、和移动终端。The present invention relates to the technical field of mobile terminals, and in particular, to a method and device for deleting data of multiple applications, and a mobile terminal.

背景技术Background technique

随着移动通信技术的越来越成熟,移动终端,如智能手机和平板电脑等已经成为了人们日常生活的必备品。并且,智能手机的应用系统中,安卓系统的使用比较广泛。As the mobile communication technology becomes more and more mature, mobile terminals, such as smart phones and tablet computers, have become the necessities of people's daily life. Moreover, among the application systems of smart phones, the Android system is widely used.

目前,市场上安卓系统的智能手机或平板电脑,通常一个应用程序只能启动一个实例并运行,然而,针对某个聊天工具或微博,用户可能具有多个账号,却无法同时登陆使用;或者针对某款游戏,用户具有多个账号,也无法同时登陆以满足切换、交易等方便操作。由此,智能手机或平板电脑受限于安卓系统的特性,用户在安卓系统下只能开启一个应用程序的实例,当需要登录另一个账号时,只能在当前运行的实例中注销当前账号以达到切换的目的,这就带来了诸多的不便。At present, on Android-based smartphones or tablets on the market, usually only one instance of an application can be started and run. However, for a chat tool or Weibo, users may have multiple accounts, but they cannot log in and use them at the same time; or For a certain game, the user has multiple accounts, and cannot log in at the same time to facilitate convenient operations such as switching and trading. Therefore, the smartphone or tablet is limited by the characteristics of the Android system, and the user can only open one instance of the application under the Android system. To achieve the purpose of switching, this brings a lot of inconvenience.

因此,安卓爱好者研究了一些可以使某些应用程序实现多开的方法,例如,基于安卓系统的多用户机制,可以在从用户下安装与主用户中的某个主应用相同的分身应用,在各用户下启动各自安装的同一应用,实现同时登陆多个账号。但每个账号产生的数据会存储到对应用户的应用存储路径下,用户对垃圾数据进行删除时,需要切换到不同的用户下逐一删除,操作繁琐。Therefore, Android enthusiasts have studied some methods that can enable some applications to open multiple times. For example, based on the multi-user mechanism of the Android system, the same avatar application as a main application in the main user can be installed under the slave user. Start the same application installed under each user to log in to multiple accounts at the same time. However, the data generated by each account will be stored in the application storage path of the corresponding user. When users delete junk data, they need to switch to different users to delete one by one, which is cumbersome.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的是提出一种多开应用的数据删除方法装置、和移动终端,以方便快捷地删除主应用和对应分身应用的数据。In view of this, the purpose of the present invention is to provide a method and device for deleting data of multiple open applications, and a mobile terminal, so as to delete the data of the main application and the corresponding sub-application conveniently and quickly.

为实现上述目的,本发明采用如下技术方案:To achieve the above object, the present invention adopts the following technical solutions:

第一方面,本发明实施例提供了一种多开应用的数据删除方法,包括:In a first aspect, an embodiment of the present invention provides a data deletion method for multiple open applications, including:

实时检测对各多开应用集合的操作事件,其中,所述多开应用集合包括主应用和所述主应用对应的分身应用;Detecting in real time operation events on each multi-open application set, wherein the multi-open application set includes a main application and a clone application corresponding to the main application;

当检测到多开应用集合中的目标应用的数据删除事件时,确定所述目标应用的关联应用,其中,所述关联应用为所述多开应用集合中与所述目标应用对应的应用;When detecting the data deletion event of the target application in the multi-open application set, determine the associated application of the target application, wherein the associated application is the application corresponding to the target application in the multi-open application set;

删除所述目标应用和所述关联应用中与所述数据删除事件对应的目标数据。Delete the target application and the target data corresponding to the data deletion event in the associated application.

第二方面,本发明实施例提供了一种多开应用的数据删除装置,包括:In a second aspect, an embodiment of the present invention provides a data deletion device for multiple applications, including:

操作事件检测模块,用于实时检测对各多开应用集合的操作事件,其中,所述多开应用集合包括主应用和所述主应用对应的分身应用;an operation event detection module, used for real-time detection of operation events for each multi-open application set, wherein the multi-open application set includes a main application and a clone application corresponding to the main application;

关联应用确定模块,用于当检测到多开应用集合中的目标应用的数据删除事件时,确定所述目标应用的关联应用,其中,所述关联应用为所述多开应用集合中与所述目标应用对应的应用;An associated application determination module, configured to determine an associated application of the target application when a data deletion event of a target application in the multi-open application set is detected, wherein the associated application is the same as the multi-open application set in the multi-open application set. The application corresponding to the target application;

目标数据删除模块,用于删除所述目标应用和所述关联应用中与所述数据删除事件对应的目标数据。A target data deletion module, configured to delete target data corresponding to the data deletion event in the target application and the associated application.

第三方面,本发明实施例提供了一种移动终端,其特征在于,所述移动终端集成了如上述第二方面所述的多开应用的数据删除装置。In a third aspect, an embodiment of the present invention provides a mobile terminal, characterized in that, the mobile terminal integrates the device for deleting data of multiple open applications as described in the second aspect above.

本发明在检测到对多开应用中系统当前用户下的目标应用的数据删除事件时,通过删除该目标应用的目标数据,便可同时删除系统其他各用户下的关联应用对应的目标数据,不必切换到不同的用户下对目标数据逐一删除,解决了删除多开应用数据操作繁琐的问题,可方便快捷地删除主应用和对应分身应用的数据。When the invention detects the data deletion event of the target application under the current user of the system in the multi-open application, by deleting the target data of the target application, the target data corresponding to the associated applications under other users of the system can be deleted at the same time. Switch to different users to delete the target data one by one, which solves the problem of cumbersome operation of deleting multi-open application data, and can easily and quickly delete the data of the main application and the corresponding avatar application.

附图说明Description of drawings

下面将通过参照附图详细描述本发明的示例性实施例,使本领域的普通技术人员更清楚本发明的上述及其他特征和优点,附图中:The above and other features and advantages of the present invention will be more apparent to those of ordinary skill in the art by describing in detail exemplary embodiments of the present invention with reference to the accompanying drawings, in which:

图1是本发明实施例提供的一种多开应用的数据删除方法的流程示意图;1 is a schematic flowchart of a data deletion method for multiple open applications provided by an embodiment of the present invention;

图2是本发明实施例提供的另一种多开应用的数据删除方法的流程示意图;FIG. 2 is a schematic flowchart of another data deletion method for multi-open applications provided by an embodiment of the present invention;

图3是本发明实施例提供的多开应用的数据删除装置的结构框图;3 is a structural block diagram of a data deletion device for multiple open applications provided by an embodiment of the present invention;

图4是本发明实施例提供的移动终端的结构示意图。FIG. 4 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The technical solutions of the present invention are further described below with reference to the accompanying drawings and through specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.

图1是本发明实施例提供的一种多开应用的数据删除方法的流程示意图。该方法适用于同时删除同一多开应用集合中各应用的缓冲数据、垃圾短信和垃圾邮件等垃圾数据的情况,该方法可以由多开应用的数据删除装置或移动终端来执行。上述多开应用的数据删除装置可以由软件和/或硬件的方式来实现,该装置可配置于移动终端中。FIG. 1 is a schematic flowchart of a data deletion method for a multi-open application provided by an embodiment of the present invention. The method is suitable for simultaneously deleting junk data such as buffer data, spam short messages and spam emails of each application in the same multi-open application set, and the method can be executed by a data deletion device or a mobile terminal of the multi-open application. The above-mentioned apparatus for deleting data of multiple open applications may be implemented by means of software and/or hardware, and the apparatus may be configured in a mobile terminal.

如图1所示,本实施例的方法包括:As shown in Figure 1, the method of this embodiment includes:

步骤110、实时检测对各多开应用集合的操作事件。Step 110: Detect in real time an operation event on each multi-open application set.

其中,多开应用集合包括主应用和主应用对应的分身应用;操作事件包括对多开应用集合中主应用进行分身应用的创建事件、对多开应用集合中任一应用的启动/关闭事件、对多开应用集合中任一应用的卸载删除事件和对多开应用集合中任一应用的数据删除事件等。Among them, the multi-open application set includes the main application and the avatar application corresponding to the main application; the operation event includes the creation event of the main application in the multi-open application set, the start/close event of any application in the multi-open application set, Uninstall and delete events for any application in the multi-open application set, and data deletion events for any application in the multi-open application set.

步骤120、当检测到多开应用集合中的目标应用的数据删除事件时,确定目标应用的关联应用。Step 120: When detecting the data deletion event of the target application in the multi-open application set, determine the associated application of the target application.

其中,关联应用为多开应用集合中与目标应用对应的应用。The associated application is an application corresponding to the target application in the multi-open application set.

本实施例中,多开应用集合的实现方式可以有很多种,本实施例不做具体限定。例如,可分别安装不同版本的应用,将一种版本作为主应用,将其他版本作为分身应用,其中,可通过反编译修改应用的安装包(APK)文件,再安装修改后的APK文件来实现安装不同版本的同款应用;又如,可通过应用模拟用户空间及动态加载技术的第三方多开助手软件来实现;再如,可通过修改系统机制来实现。In this embodiment, there may be many ways to implement the multi-open application set, which is not specifically limited in this embodiment. For example, different versions of applications can be installed separately, one version is used as the main application, and the other versions are used as separate applications, wherein, the installation package (APK) file of the application can be modified by decompilation, and then the modified APK file can be installed. Install different versions of the same application; another example, it can be implemented by applying a third-party multi-open assistant software that simulates user space and dynamic loading technology; another example, it can be implemented by modifying the system mechanism.

优选的,本实施例中多开应用集合基于多用户机制来实现,其中多用户机制具体可包括智能终端中的操作系统所支持的多用户机制,如安卓(Android)系统的多用户机制以及手机窗口(Windows Phone,WP)操作系统的多用户机制等。Preferably, in this embodiment, the multi-open application set is implemented based on a multi-user mechanism, wherein the multi-user mechanism may specifically include a multi-user mechanism supported by the operating system in the smart terminal, such as the multi-user mechanism of the Android system and the mobile phone. Window (Windows Phone, WP) operating system's multi-user mechanism, etc.

示例性的,目标应用的数据删除事件可以为用户对目标应用的数据删除指令,或者目标数据的数据量达到预设存储阈值。示例性的,用户可选择性地随时删除目标应用的数据,当移动终端检测到用户删除目标应用的目标数据的指令时,确定目标应用的关联应用;或者,移动终端实时检测当前用户下的目标应用的目标数据的数据量,在目标数据的数据量达到预设存储阈值时,确定目标应用的关联应用,其中,预设存储阈值以各多开应用的稳定运行而设置。Exemplarily, the data deletion event of the target application may be a user's data deletion instruction to the target application, or the data volume of the target data reaches a preset storage threshold. Exemplarily, the user can selectively delete the data of the target application at any time, and when the mobile terminal detects the user's instruction to delete the target data of the target application, the associated application of the target application is determined; or, the mobile terminal detects the target under the current user in real time. The data volume of the target data of the application is determined when the data volume of the target data reaches a preset storage threshold, wherein the preset storage threshold is set based on the stable operation of each multi-open application.

另外,本实施中,确定目标应用的关联应用可包括:In addition, in this implementation, determining the associated application of the target application may include:

A、获取目标应用的应用标识。A. Obtain the application ID of the target application.

其中,应用标识包括应用名称。为区分不同的多开应用,主应用和分身应用可以具有相同的应用名称,同时为区分主应用和分身应用,可以在应用名称前设置识别符。例如,主应用为微信,应用名称可以为weixin,此时,一个分身应用的应用名称可以为*weixin。The application identifier includes an application name. In order to distinguish different multi-open applications, the main application and the secondary application may have the same application name, and to distinguish the main application and the secondary application, an identifier may be set before the application name. For example, if the main application is WeChat, and the application name can be weixin, in this case, the application name of a clone application can be *weixin.

B、将具有目标应用应用名称的应用标识对应的应用,确定为目标应用的关联应用。B. Determine the application corresponding to the application identifier with the application name of the target application as the associated application of the target application.

步骤130、删除目标应用和关联应用中与数据删除事件对应的目标数据。Step 130 , delete the target data corresponding to the data deletion event in the target application and the associated application.

本实施例基于安卓系统的多用户机制,针对用户数据管理,本实施例的移动终端可执行以下操作:This embodiment is based on the multi-user mechanism of the Android system, and for user data management, the mobile terminal of this embodiment can perform the following operations:

1.应用分身管理模块会在新用户空间下创建分身应用,在创建分身应用时,会在新用户路径下为分身应用创建数据文件路径。1. The application avatar management module will create a avatar application in the new user space. When creating a avatar application, it will create a data file path for the avatar application under the new user path.

示例性的,当创建第一个分身应用时,应用分身管理模块通过多用户服务UserManagerServcie创建一个新用户,基于上述多用户机制,新用户会自动分配userId为u10,并为其创建数据文件路径data/user/u10,例如,若此应用为微信,则应用分身管理模块会为该分身应用创建数据文件路径data/user/u10/weixin,用来保存分身应用在运行时的操作数据。Exemplarily, when the first avatar application is created, the application avatar management module creates a new user through the multi-user service UserManagerServcie. Based on the above multi-user mechanism, the new user is automatically assigned userId as u10, and creates a data file path data for it. /user/u10, for example, if the application is WeChat, the application avatar management module will create a data file path data/user/u10/weixin for the avatar application, which is used to save the operation data of the avatar application at runtime.

2.当用户在主应用进行操作时,应用分身管理模块会将所产生的数据保存在主用户的主应用路径下;当用户操作分身应用时,应用分身管理模块会将所产生的数据保存在从用户的分身应用路径下。2. When the user operates in the main application, the application avatar management module will save the generated data in the main application path of the main user; when the user operates the avatar application, the application avatar management module will save the generated data in the main application path. From the user's avatar application path.

3.应用分身管理模块能够跨用户对分身应用的数据进行删除或修改,以实现对分身应用数据的控制。3. The application avatar management module can delete or modify the data of the avatar application across users, so as to realize the control of the avatar application data.

示例性的,当主应用及其分身应用有相关的数据需要保存时,应用分身管理模块可以将数据保存在分身应用的路径下;当用户使用主应用时进行了某种设置,此数据也可以通过应用分身管理模块将数据修改到分身应用路径下,从而实现在分身应用中也具备该设置;应用分身管理模块可以通过对主应用及分身应用的数据管理,实现登录不同账号时,可以根据账号,自由地访问不同用户下数据文件路径中的数据。Exemplarily, when the main application and its avatar application have related data that needs to be saved, the application avatar management module can save the data in the path of the avatar application; The application avatar management module modifies the data to the avatar application path, so that this setting is also available in the avatar application; the application avatar management module can log in to different accounts by managing the data of the main application and the avatar application. Freely access data in data file paths under different users.

4.当分身应用被卸载时,应用分身管理模块会将该分身应用路径下的数据清除。4. When the avatar application is uninstalled, the application avatar management module will clear the data under the avatar application path.

5.应用分身管理模块能够监听数据文件的变化,如数据的增添、删除和修改等操作,并对这些操作进行响应。5. The application avatar management module can monitor the changes of data files, such as data addition, deletion and modification operations, and respond to these operations.

示例性的,当主应用有数据发生变化时,经过应用分身管理模块判断需要同步的分身应用也要对数据做出相应变化。Exemplarily, when the data of the main application changes, the avatar application that needs to be synchronized will also make corresponding changes to the data according to the application avatar management module.

本实施例的步骤130中,目标数据可以为缓存数据、垃圾短信和垃圾邮件等垃圾数据。根据数据删除事件监听到目标应用删除的目标数据,应用分身管理模块根据各用户下关联应用的路径,对关联应用相应的目标数据进行删除。In step 130 of this embodiment, the target data may be junk data such as cached data, junk short messages and junk mails. The target data deleted by the target application is monitored according to the data deletion event, and the application avatar management module deletes the corresponding target data of the associated application according to the path of the associated application under each user.

本发明实施例提供的多开应用的数据删除方法,在检测到对多开应用集合中的目标应用的数据删除事件时,通过删除该目标应用的目标数据,便可同时删除关联应用对应的目标数据,不必切换到不同的用户下对目标数据逐一删除,解决了删除多开应用数据操作繁琐的问题,可方便快捷地删除主应用和对应分身应用的数据。The data deletion method for a multi-open application provided by the embodiment of the present invention, when a data deletion event for a target application in a multi-open application set is detected, by deleting the target data of the target application, the target corresponding to the associated application can be deleted at the same time. It is not necessary to switch to a different user to delete the target data one by one, which solves the problem of cumbersome operation of deleting multi-open application data, and can delete the data of the main application and the corresponding avatar application conveniently and quickly.

图2是本发明实施例提供的另一种多开应用的数据删除方法的流程示意图。本实施例在上述实施例的基础上,预设目标数据的存储路径,并将步骤删除目标应用和关联应用中与数据删除事件对应的目标数据优化为:根据预设的缓存文件子目录、垃圾短信子目录和垃圾邮件子目录的优先级,按优先级由高到低的顺序删除子目录下的目标数据;当删除任一子目录下的目标数据后,询问是否继续删除目标数据。由此,优先删除占用存储空间最大或使用频率为0的垃圾数据。FIG. 2 is a schematic flowchart of another method for deleting data of a multi-open application provided by an embodiment of the present invention. In this embodiment, on the basis of the above-mentioned embodiment, the storage path of the target data is preset, and the target data corresponding to the data deletion event in the step deletion target application and the associated application is optimized as follows: according to the preset cache file subdirectory, garbage The priority of the SMS sub-directory and the spam sub-directory, delete the target data in the sub-directories in descending order of priority; after deleting the target data in any sub-directory, ask whether to continue to delete the target data. As a result, junk data that occupies the largest storage space or is used with zero frequency is preferentially deleted.

具体的,如图2所示,本实施例的多开应用的数据删除方法包括如下步骤:Specifically, as shown in FIG. 2 , the data deletion method of the multi-open application of this embodiment includes the following steps:

步骤210、实时检测对各多开应用集合的操作事件。Step 210: Detect in real time an operation event on each multi-open application set.

步骤220、当检测到多开应用集合中的目标应用的数据删除事件时,确定目标应用的关联应用。Step 220: When a data deletion event of the target application in the multi-open application set is detected, determine the associated application of the target application.

其中,多开应用集合基于多用户机制来实现,包括主应用和与主应用对应的所有分身应用。The multi-open application set is implemented based on the multi-user mechanism, including the main application and all the sub-applications corresponding to the main application.

具体的,多开应用集合基于多用户机制来实现可包括如下内容:主应用安装于主用户下,分身应用安装于从用户下,主用户中包含用于对分身应用进行操作的接入口。Specifically, the implementation of the multi-open application set based on the multi-user mechanism may include the following contents: the main application is installed under the main user, the secondary application is installed under the secondary user, and the main user includes an access port for operating the secondary application.

在一个实施例中,本申请的多用户实现机制包括了以下逻辑:In one embodiment, the multi-user implementation mechanism of the present application includes the following logic:

1.多用户管理1. Multi-user management

a)系统默认有一个主用户,主用户可以创建其它的多个新用户(从用户),并可以删除与管理它们;a) The system has a master user by default, the master user can create other multiple new users (slave users), and can delete and manage them;

b)普通用户(非主用户)与访客用户,可统称为从用户;b) Ordinary users (non-master users) and guest users can be collectively referred to as slave users;

c)默认主用户id(身份标识,Identification)为0,其它新增用户id从10开始,逐个增加;c) The default main user id (identification, Identification) is 0, and other new user ids start from 10 and increase one by one;

d)切换用户时,会重新加载桌面等一系列界面切换;d) When switching users, a series of interface switching such as the desktop will be reloaded;

e)主用户可以限制其它用户是否能够接打电话及收发短信等权限。e) The main user can restrict whether other users can make and receive calls and send and receive text messages.

对于多用户管理,能够通过主用户对从用户进行管理,包括从用户的创建、删除及权限设置等,ID设置从主用户开始,新增从用户ID顺序叠加,各用户间切换时,重新加载对应用户的桌面等一系列界面。For multi-user management, the master user can manage the slave users, including the creation, deletion and permission setting of slave users. The ID setting starts from the master user, and the IDs of the new slave users are added sequentially. When switching between users, reload Corresponding to a series of interfaces such as the user's desktop.

2.多用户安装、卸载应用2. Multi-user installation and uninstallation of applications

a)默认安装的应用,会安装到所有己创建的用户,在其它用户桌面上都可见应用图标;a) The application installed by default will be installed to all created users, and the application icon will be visible on the desktop of other users;

b)在主用户通过文件管理安装的应用,不会安装到其它用户,在其它用户桌面上不可见应用图标;b) The application installed by the main user through the file management will not be installed to other users, and the application icon will not be visible on the desktop of other users;

c)系统在安装、卸载应用时可指定userid(用户身份标识),指定应用安装到某个指定用户,或在某个指定用户卸载该应用。也可以对所有用户都安装应用,或卸载应用。c) The system can specify a userid (user ID) when installing or uninstalling an application, install the specified application to a specified user, or uninstall the application from a specified user. The app can also be installed or uninstalled for all users.

对于多用户安装、卸载应用,默认安装的应用会安装到所有已创建的用户(包括主用户和从用户),并在各用户桌面上生成应用图标;而在主用户下通过文件管理安装的应用,只安装到主用户下,在主用户桌面生成应用图标,不安装到从用户下;应用的安装/卸载还可基于使用者对用户的指定,使用者通过指定用户身份标识,在主用户和从用户中指定应用的安装/卸载在某个用户、某些用户或所有用户下进行。For multi-user installation and uninstallation of applications, the applications installed by default will be installed to all created users (including master users and slave users), and application icons will be generated on the desktops of each user; applications installed under the master user through file management , it is only installed under the master user, and the application icon is generated on the master user's desktop, not under the slave user; the installation/uninstallation of the application can also be based on the user's designation of the user. Installation/uninstallation of apps from users specified under a certain user, some users or all users.

3.用户数据管理3. User data management

a)与系统数据相关的用户id目录:存放了用户对应的各种系统数据存储,例如:桌面widget(组件)列表,设置数据库,默认应用启动策略等等。a) User id directory related to system data: stores various system data stores corresponding to users, such as: desktop widget (component) list, setting database, default application startup strategy, etc.

b)与应用包数据相关的用户id目录:存放了用户对应安装的应用包目录,如果应用操作产生了数据,则应用数据也存放于此目录。b) User id directory related to application package data: stores the application package directory correspondingly installed by the user. If data is generated by the application operation, the application data is also stored in this directory.

c)系统SD卡(Secure Digital Memory Card,安全数码卡)目录:每个用户看到自己的sdcard目录都是不一样的,只能看到自己的sdcard目录。c) System SD card (Secure Digital Memory Card, Secure Digital Memory Card) directory: each user sees his own sdcard directory is different, and can only see his own sdcard directory.

对于用户数据管理,在多用户实现机制下,各用户下系统数据和应用相关数据分别存放于不同的数据存放路径下,如,某用户下各种系统数据存放于指定的第一数据存放路径下,而安装的应用包目录及应用操作产生的应用数据这些应用相关数据存放于指定的第二数据存放路径下;各用户下数据存储相互独立,各用户只能查看自身的存储数据,如自身的sdcard目录。For user data management, under the multi-user implementation mechanism, system data and application-related data under each user are stored in different data storage paths. For example, various system data under a user are stored under a designated first data storage path. , and the application-related data such as the installed application package directory and the application data generated by the application operation are stored in the specified second data storage path; the data storage under each user is independent of each other, and each user can only view their own storage data, such as their own storage data. sdcard directory.

4.用户权限管理4. User rights management

a)应用在安装以后,应用申请的各种权限(例如:读取存储目录权限,读写短信权限,打开相机权限等),会分为两部分,一部分不敏感的权限,在应用安装时,系统直接允许应用获得权限;一部分比较敏感的危险权限,例如读写短信权限,会在应用使用时,系统提示用户是否允许应用获得权限。a) After the application is installed, the various permissions applied by the application (for example: permission to read the storage directory, permission to read and write SMS messages, permission to open the camera, etc.) will be divided into two parts, one part is insensitive permission, when the application is installed, The system directly allows the app to obtain permissions; for some sensitive and dangerous permissions, such as the permission to read and write SMS messages, the system prompts the user whether to allow the app to obtain permissions when the app is in use.

b)系统在不同的用户,对同一个应用的权限是独立且隔离的,一个应用获得的基本不敏感权限,在安装后,在每个用户中都是直接获得的,而部分比较敏感的危险权限,是独立的。例如:在用户0打开微信时,如果获取了读写短信权限,切换到用户10时,第一次打开微信时,系统还是会提示用户是否允许,不会因为微信在用户0获得了权限而不提醒。同理,在其它用户也一样。b) Different users of the system have independent and isolated permissions for the same application. The basic insensitive permissions obtained by an application are directly obtained by each user after installation, and some are more sensitive. Permissions are independent. For example: when user 0 opens WeChat, if the permission to read and write SMS is obtained, when switching to user 10, the system will still prompt the user whether to allow or not when opening WeChat for the first time. remind. The same is true for other users.

对于用户权限管理,某一用户下应用安装时,不敏感权限会直接获得允许,敏感权限需经使用者许可获得;在不同的用户下,对同一应用的权限配置互相独立且隔离,在用户切换时,对于初次使用的应用的敏感权限,均需提示使用者是否赋权。For user rights management, when an application is installed by a user, insensitive rights will be allowed directly, and sensitive rights must be obtained with the user's permission; under different users, the rights configuration of the same application is independent and isolated from each other, and when the user switches When the application is used for the first time, the user needs to be prompted whether to authorize the sensitive permissions.

在一个实施例中,多开应用集合基于多用户机制来实现的过程可描述如下:In one embodiment, the process of implementing the multi-open application set based on the multi-user mechanism can be described as follows:

假设智能终端的默认用户为主用户,用户在主用户下通过从应用商店下载或者从其他来源拷贝等方式将应用ABC的安装包(package,APK)文件例如ABC.apk存入智能终端中,系统在主用户下安装ABC.apk后,主用户桌面会生成一个主应用ABC的图标。当在主用户下检测到针对主应用ABC的分身创建请求时,在从用户(若当前不存在从用户,则可创建一个从用户,该创建过程是在用户无法察觉的情况下完成的,也无需用户设置账户和密码)下安装ABC.apk得到分身应用,为了对主应用和分身应用加以区分,可为新安装的分身应用添加一个标识(假设为*),分身应用可被记为ABC*。当ABC*安装成功后,可指定将“安装成功”的通知(在该通知中也添加标识*)发送给主用户,主用户下的桌面接收到该通知后,生成一个带有标识*的图标,以与主应用ABC的图标进行区分,该图标可作为主用户中对分身应用进行操作的接入口,当该图标被点击后,系统将指定ABC*在从用户下启动,与ABC*对应的相关进程也在从用户下运行,并将ABC*的人机交互界面(简称界面)显示于主用户下,此时ABC*的界面也可作为主用户中对分身应用进行操作的接入口。Assuming that the default user of the smart terminal is the main user, the user saves the installation package (package, APK) file of the application ABC, such as ABC.apk, into the smart terminal by downloading from the application store or copying it from other sources under the main user. After installing ABC.apk under the main user, an icon of the main application ABC will be generated on the desktop of the main user. When the avatar creation request for the main application ABC is detected under the master user, a slave user can be created in the slave user (if there is no slave user currently, the creation process is completed without the user's awareness, or Install ABC.apk under the user's account and password without the need to set up the avatar application. In order to distinguish the main application from the avatar application, you can add an identifier (assuming *) to the newly installed avatar application, and the avatar application can be recorded as ABC* . When ABC* is successfully installed, you can specify to send a notification of "installation successful" (with the mark * added to the notification) to the main user. After receiving the notification, the desktop under the main user will generate an icon with the mark * , to distinguish it from the icon of the main application ABC, which can be used as the access port for operating the avatar application in the main user. When the icon is clicked, the system will specify ABC* to start under the slave user, and the corresponding ABC* Relevant processes are also running under the slave user, and the human-computer interaction interface (referred to as the interface) of ABC* is displayed under the master user. At this time, the interface of ABC* can also be used as the access port for operating the clone application in the master user.

对于分身应用来说,其在主用户中的接入口的存在形式可以是多种多样的,本实施例不做具体限定,例如,可以是包含应用标识的桌面图标,该应用标识用以将当前分身应用与主应用以及其他分身应用区分开来;还可以是附加于主应用图标上的应用标识;还可以是以浮窗形式存在的包含应用标识的图标;还可以是存在于通知中心等位置的项目。For a clone application, its access port in the primary user may have various forms, which are not specifically limited in this embodiment. For example, it may be a desktop icon containing an application identifier, which is used to identify the current The avatar application is distinguished from the main application and other avatar applications; it can also be an application logo attached to the main application icon; it can also be an icon containing the application logo in the form of a floating window; it can also exist in the notification center and other locations s project.

智能终端用户在主用户中可实现对主应用的操作,同时还可在主用户中通过接入口对相应的分身应用进行操作。可以理解的是,同一个主应用可对应多个分身应用,每个分身应用均被安装于一个不同的从用户中,使各分身应用分别运行于不同的从用户中,在运行过程中互不干扰。The intelligent terminal user can operate the main application in the main user, and can also operate the corresponding avatar application through the access port in the main user. It can be understood that the same main application can correspond to multiple sub-applications, and each sub-application is installed in a different slave user, so that each sub-application runs in different sub-users, and they are different from each other during the running process. interference.

基于多用户机制来实现多开应用的好处在于,相比于第三方多开助手软件来说,避免第三方软件推送广告以及窃取用户隐私数据等行为的发生,安全性更高;相比与应用主体和应用分身均运行于同一用户下的方案来说,减少同一用户下不同应用分身或应用主体之间的进程干扰,以及避免复杂运行环境所带来的功能缺失现象的发生。The advantage of implementing multiple applications based on the multi-user mechanism is that, compared with third-party multiple-open assistant software, it is more secure to avoid third-party software from pushing advertisements and stealing user privacy data, etc.; For the solution in which the main body and the application avatar both run under the same user, it reduces the process interference between different application avatars or application main bodies under the same user, and avoids the occurrence of functional loss caused by the complex operating environment.

步骤230、根据预设的缓存文件子目录、垃圾短信子目录和垃圾邮件子目录的优先级,按优先级由高到低的顺序删除子目录下的目标数据。Step 230 , according to the preset priorities of the cache file subdirectory, the spam message subdirectory and the spam subdirectory, delete the target data in the subdirectories in descending order of priority.

本实施例中,目标应用和关联应用的目标数据分别存储于各自存储路径下的预设文件目录中,其中,预设文件目录可包括缓存文件子目录、垃圾短信子目录和垃圾邮件子目录,缓存文件子目录用于存储缓存数据,垃圾短信子目录用于存储垃圾短信,垃圾邮件子目录用于存储垃圾邮件。In this embodiment, the target data of the target application and the associated application are respectively stored in preset file directories under their respective storage paths, wherein the preset file directories may include a cache file subdirectory, a spam message subdirectory, and a spam subdirectory, The cache file subdirectory is used to store cached data, the spam message subdirectory is used to store spam text messages, and the spam subdirectory is used to store spam emails.

在系统存储空间不足时,可对目标数据进行删除。示例性的,可设定上述各子目录的优先级,优先级高的子目录中的数据优先删除,若在子目录下对文件进一步分类,还可对分类后的文件设置优先级。例如缓存文件子目录可包括视频文件、音频文件和图片文件,可根据文件的大小设置优先级,如视频文件优先级最高,图片文件优先级最小,在优先删除缓存文件子目录中的数据时,先删除视频文件中的数据。本实施例还可根据数据的使用频率设置子目录的优先级,为使用频率为0(如垃圾短信或垃圾邮件)的数据对应的子目录设置最高优先级。When the system storage space is insufficient, the target data can be deleted. Exemplarily, the priority of each of the above subdirectories can be set, and the data in the subdirectory with higher priority can be deleted first. For example, the cache file subdirectory can include video files, audio files and picture files. The priority can be set according to the size of the file. For example, the video file has the highest priority and the picture file has the lowest priority. When deleting the data in the cache file subdirectory first, Delete the data in the video file first. In this embodiment, the priority of the subdirectory can also be set according to the frequency of data usage, and the highest priority is set for the subdirectory corresponding to the data whose usage frequency is 0 (eg, spam short message or spam).

步骤240、当删除任一子目录下的目标数据后,询问是否继续删除目标数据。Step 240: After deleting the target data in any subdirectory, ask whether to continue to delete the target data.

在上述技术方案的基础上,每删除一个子目录下的目标数据,移动终端会询问用户是否继续删除目标数据,用户可根据剩余存储空间的大小选择是或否,若用户选择是,则移动终端仍按优先级由高到低的顺序继续删除下一个子目录中的目标数据。由此,在移动终端剩余空间足够的情况下,可保留一些用户想要或者觉得还可用的数据。On the basis of the above technical solution, each time the target data in a subdirectory is deleted, the mobile terminal will ask the user whether to continue to delete the target data, and the user can choose Yes or No according to the size of the remaining storage space. Continue to delete the target data in the next subdirectory in descending priority order. Therefore, if the remaining space of the mobile terminal is sufficient, some data that the user wants or thinks are still available can be reserved.

本发明实施例提供的多开应用的数据删除方法,通过对存储目标数据的子目录设置优先级,在删除目标数据时,按子目录优先级由高到低的顺序删除子目录中的目标数据,可优先删除占用存储空间最大或使用频率为0的垃圾数据,同时在移动终端剩余空间足够的情况下,可保留一些用户想要或者觉得还可用的数据。In the data deletion method for multi-open applications provided by the embodiment of the present invention, by setting priorities for subdirectories storing target data, when the target data is deleted, the target data in the subdirectories are deleted in descending order of priority of the subdirectories , the junk data that occupies the largest storage space or the usage frequency is 0 can be preferentially deleted, and at the same time, when the remaining space of the mobile terminal is sufficient, some data that the user wants or thinks are still available can be retained.

图3是本发明实施例提供的多开应用的数据删除装置的结构框图。如图3所示,该装置包括:关联应用确定模块31和目标数据删除模块32。FIG. 3 is a structural block diagram of a data deletion apparatus for multi-open applications provided by an embodiment of the present invention. As shown in FIG. 3 , the apparatus includes: an associated application determination module 31 and a target data deletion module 32 .

其中,操作事件检测模块31,用于实时检测对各多开应用集合的操作事件,其中,所述多开应用集合包括主应用和所述主应用对应的分身应用;关联应用确定模块32用于当检测到多开应用集合中的目标应用的数据删除事件时,确定目标应用的关联应用,其中,多开应用集合包括主应用和主应用对应的分身应用,关联应用为多开应用集合中与目标应用对应的应用;目标数据删除模块33用于删除目标应用和关联应用中与数据删除事件对应的目标数据。The operation event detection module 31 is used for real-time detection of operation events for each multi-open application set, wherein the multi-open application set includes the main application and the avatar application corresponding to the main application; the associated application determination module 32 is used for When a data deletion event of the target application in the multi-open application set is detected, the associated application of the target application is determined, wherein the multi-open application set includes the main application and the avatar application corresponding to the main application, and the associated application is the multi-open application set with the The application corresponding to the target application; the target data deletion module 33 is used to delete the target data corresponding to the data deletion event in the target application and the associated application.

上述技术方案中,目标应用的数据删除事件包括用户对目标应用的数据删除指令;或者,目标数据的数据量达到预设存储阈值。In the above technical solution, the data deletion event of the target application includes a user's data deletion instruction to the target application; or, the data volume of the target data reaches a preset storage threshold.

基于上述技术方案,关联应用确定模块32包括:Based on the above technical solutions, the associated application determination module 32 includes:

应用标识获取单元,用于获取目标应用的应用标识,其中,应用标识包括应用名称;an application identifier acquiring unit, configured to acquire an application identifier of a target application, wherein the application identifier includes an application name;

关联应用确定单元,用于将具有目标应用应用名称的应用标识对应的应用,确定为目标应用的关联应用。The associated application determining unit is configured to determine the application corresponding to the application identifier with the application name of the target application as the associated application of the target application.

本实施例中,目标应用和关联应用的目标数据分别存储于各自存储路径下的预设文件目录中;In this embodiment, the target data of the target application and the associated application are respectively stored in preset file directories under their respective storage paths;

其中,预设文件目录可包括缓存文件子目录、垃圾短信子目录和垃圾邮件子目录。The preset file directory may include a cache file subdirectory, a spam short message subdirectory, and a spam subdirectory.

基于上述技术方案,目标数据删除模块33包括:Based on the above technical solution, the target data deletion module 33 includes:

目标数据删除单元,用于根据预设的缓存文件子目录、垃圾短信子目录和垃圾邮件子目录的优先级,按优先级由高到低的顺序删除子目录下的目标数据;The target data deletion unit is used to delete the target data in the subdirectories in descending order of priority according to the preset priority of the cache file subdirectory, the junk short message subdirectory and the spam subdirectory;

删除询问单元,用于当删除任一子目录下的目标数据后,询问是否继续删除目标数据。The deletion query unit is used to inquire whether to continue deleting the target data after deleting the target data in any subdirectory.

优选的,本实施例的多开应用集合基于多用户机制来实现。具体的,主应用安装于主用户下,分身应用安装于从用户下,所述主用户中包含用于对所述分身应用进行操作的接入口。Preferably, the multi-open application set in this embodiment is implemented based on a multi-user mechanism. Specifically, the main application is installed under the main user, the secondary application is installed under the secondary user, and the main user includes an access port for operating the secondary application.

本实施例提供的多开应用的数据删除装置,与本发明任意实施例所提供的多开应用的数据删除方法属于同一发明构思,可执行本发明任意实施例所提供的多开应用的数据删除方法,具备相应的功能和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明任意实施例提供的多开应用的数据删除方法。The data deletion device for multi-open applications provided in this embodiment belongs to the same inventive concept as the data deletion method for multi-open applications provided by any embodiment of the present invention, and can perform the data deletion of multi-open applications provided by any embodiment of the present invention The method has corresponding functions and beneficial effects. For technical details not described in detail in this embodiment, reference may be made to the data deletion method for multi-open applications provided by any embodiment of the present invention.

本发明实施例还提供了一种移动终端,包括本发明实施例提供的多开应用的数据删除装置。该移动终端可通过本发明提供的多开应用的数据删除装置,采用相应的多开应用的数据删除方法同时删除同一多开应用集合中各应用的缓冲数据、垃圾短信和垃圾邮件等垃圾数据。An embodiment of the present invention further provides a mobile terminal, including the apparatus for deleting data of multiple applications provided by the embodiment of the present invention. The mobile terminal can simultaneously delete junk data such as buffer data, junk short messages and spam emails of each application in the same multi-open application set through the multi-open application data deletion device provided by the present invention, using the corresponding multi-open application data deletion method .

其中,移动终端可以为智能手机、平板电脑或个人数字助理等。The mobile terminal may be a smart phone, a tablet computer, a personal digital assistant, or the like.

图4为本发明实施例提供的一种移动终端的结构示意图,如图4所示,该移动终端400可以包括:存储器401、中央处理器(Central Processing Unit,CPU)402、外设接口403、RF(Radio Frequency,射频)电路405、音频电路406、扬声器411、电源管理芯片408、输入/输出(I/O)子系统409、触摸屏412、其他输入/控制设备410以及外部端口404,这些部件通过一个或多个通信总线或信号线407来通信。FIG. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 4, the mobile terminal 400 may include: a memory 401, a central processing unit (Central Processing Unit, CPU) 402, a peripheral interface 403, RF (Radio Frequency) circuit 405, audio circuit 406, speaker 411, power management chip 408, input/output (I/O) subsystem 409, touch screen 412, other input/control devices 410, and external ports 404, these components Communication is via one or more communication buses or signal lines 407 .

应该理解的是,图示移动终端400仅仅是移动终端的一个范例,并且移动终端400可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 400 is only an example of a mobile terminal, and that the mobile terminal 400 may have more or fewer components than those shown in the figures, two or more components may be combined, Or can have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.

下面就本实施例提供的用于控制应用进程的移动终端进行详细的描述,该移动终端以智能手机为例。The following describes the mobile terminal provided in this embodiment for controlling the application process in detail, and the mobile terminal takes a smart phone as an example.

存储器401,存储器401可以被CPU402、外设接口403等访问,存储器401可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 401, which can be accessed by CPU 402, peripheral interface 403, etc., memory 401 can include high-speed random access memory, and can also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other volatile solid-state memory devices.

外设接口403,外设接口403可以将设备的输入和输出外设连接到CPU402和存储器401。Peripheral interface 403 , which can connect input and output peripherals of the device to CPU 402 and memory 401 .

I/O子系统409,I/O子系统409可以将设备上的输入输出外设,例如触摸屏412和其他输入/控制设备410,连接到外设接口403。I/O子系统409可以包括显示控制器4091和用于控制其他输入/控制设备410的一个或多个输入控制器4092。其中,一个或多个输入控制器4092从其他输入/控制设备410接收电信号或者向其他输入/控制设备410发送电信号,其他输入/控制设备410可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器4092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 409 , which may connect input and output peripherals on the device, such as touch screen 412 and other input/control devices 410 , to peripheral interface 403 . The I/O subsystem 409 may include a display controller 4091 and one or more input controllers 4092 for controlling other input/control devices 410 . Among them, one or more input controllers 4092 receive electrical signals from or send electrical signals to other input/control devices 410, which may include physical buttons (push buttons, rocker buttons, etc. ), dial pad, slide switch, joystick, click wheel. Notably, the input controller 4092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触摸屏412,触摸屏412是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 412, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.

I/O子系统409中的显示控制器4091从触摸屏412接收电信号或者向触摸屏412发送电信号。触摸屏412检测触摸屏上的接触,显示控制器4091将检测到的接触转换为与显示在触摸屏412上的用户界面对象的交互,即实现人机交互,显示在触摸屏412上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。Display controller 4091 in I/O subsystem 409 receives electrical signals from touch screen 412 or sends electrical signals to touch screen 412 . The touch screen 412 detects the contact on the touch screen, and the display controller 4091 converts the detected contact into interaction with the user interface objects displayed on the touch screen 412, that is, to realize human-computer interaction, and the user interface objects displayed on the touch screen 412 can be run. Icons for games, icons for connecting to the corresponding network, etc. It is worth noting that the device may also include a light mouse, which is a touch-sensitive surface that does not display visual output, or an extension of the touch-sensitive surface formed by a touch screen.

RF电路405,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路405接收并发送RF信号,RF信号也称为电磁信号,RF电路405将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路405可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 405 is mainly used to establish the communication between the mobile phone and the wireless network (ie, the network side), so as to realize the data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving text messages, e-mails, etc. Specifically, the RF circuit 405 receives and transmits RF signals, also known as electromagnetic signals, the RF circuit 405 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 405 may include known circuitry for performing these functions including, but not limited to, antenna systems, RF transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, CODECs ( COder-DECoder, codec) chip set, subscriber identity module (Subscriber Identity Module, SIM) and so on.

音频电路406,主要用于从外设接口403接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器411。The audio circuit 406 is mainly used for receiving audio data from the peripheral interface 403 , converting the audio data into an electrical signal, and sending the electrical signal to the speaker 411 .

扬声器411,用于将手机通过RF电路405从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 411 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 405 to sound and play the sound to the user.

电源管理芯片408,用于为CPU402、I/O子系统及外设接口403所连接的硬件进行供电及电源管理。The power management chip 408 is used for power supply and power management for the hardware connected to the CPU 402 , the I/O subsystem and the peripheral interface 403 .

本发明实施例提供的CPU402可执行如下操作:The CPU 402 provided in the embodiment of the present invention can perform the following operations:

实时检测对各多开应用集合的操作事件,其中,所述多开应用集合包括主应用和所述主应用对应的分身应用;Detecting in real time operation events on each multi-open application set, wherein the multi-open application set includes a main application and a clone application corresponding to the main application;

当检测到多开应用集合中的目标应用的数据删除事件时,确定目标应用的关联应用,其中,关联应用为多开应用集合中与目标应用对应的应用;When detecting the data deletion event of the target application in the multi-open application set, determine the associated application of the target application, wherein the associated application is the application corresponding to the target application in the multi-open application set;

删除目标应用和关联应用中与数据删除事件对应的目标数据。Deletes the target data corresponding to the data deletion event in the target app and the associated app.

其中,主应用安装在主用户下,分身应用安装在从用户下。Among them, the main application is installed under the master user, and the avatar application is installed under the slave user.

本实施例所提供的移动终端,包括本发明实施例所提供的多开应用的数据删除装置,具备相应的功能和有益效果。The mobile terminal provided in this embodiment includes the data deletion device for multiple applications provided by the embodiment of the present invention, and has corresponding functions and beneficial effects.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (11)

1. A data deleting method for multi-open application is characterized by comprising the following steps:
detecting operation events of each multi-open application set in real time, wherein the multi-open application set comprises a main application and a body-splitting application corresponding to the main application;
when a data deletion event of a target application in an open-loop application set is detected, determining a related application of the target application, wherein the related application is an application corresponding to the target application in the open-loop application set;
deleting target data corresponding to the data deletion event in the target application and the associated application;
target data of the target application and the associated application are respectively stored in preset file targets under respective storage paths;
the preset file target comprises a cache file subdirectory, a spam message subdirectory and a spam mail subdirectory;
the deleting the target data corresponding to the data deletion event in the target application and the associated application includes:
deleting target data in the subdirectory from high to low according to the priority of the preset cache file subdirectory, the preset spam message subdirectory and the preset spam mail subdirectory; the priority of the subdirectory is determined by the use frequency of data in the subdirectory or the storage space occupied by the data in the subdirectory;
and after the target data in any subdirectory is deleted, inquiring whether to continuously delete the target data.
2. The method of claim 1, wherein the data deletion event for the target application comprises:
a data deleting instruction of the target application is sent by the user; or,
and the data volume of the target data reaches a preset storage threshold value.
3. The method of claim 1, wherein the determining the associated application of the target application comprises:
acquiring an application identifier of the target application, wherein the application identifier comprises an application name;
and determining the application corresponding to the application identifier with the target application name as the associated application of the target application.
4. The method according to any of claims 1-3, wherein the set of multiple open applications is implemented based on a multi-user mechanism.
5. The method of claim 4, wherein the multi-open application set is implemented based on a multi-user mechanism, comprising:
the main application is installed under a main user, the sub-body application is installed under a sub-user, and the main user comprises an access port used for operating the sub-body application.
6. A data deleting apparatus for a multi-open application, comprising:
the system comprises an operation event detection module, a multi-open application collection and a multi-open application collection processing module, wherein the operation event detection module is used for detecting operation events of each multi-open application collection in real time, and the multi-open application collection comprises a main application and an individual application corresponding to the main application;
the system comprises a related application determining module, a data deleting module and a data deleting module, wherein the related application determining module is used for determining related applications of a target application in a multi-open application set when a data deleting event of the target application is detected, and the related applications are applications corresponding to the target application in the multi-open application set;
the target data deleting module is used for deleting the target data corresponding to the data deleting event in the target application and the associated application;
target data of the target application and the associated application are respectively stored in preset file directories under respective storage paths;
the preset file directory comprises a cache file subdirectory, a spam message subdirectory and a spam mail subdirectory;
the target data deletion module comprises:
the target data deleting unit is used for deleting the target data in the subdirectory from high to low according to the priority of the preset cache file subdirectory, the preset spam message subdirectory and the preset spam mail subdirectory; the priority of the subdirectory is determined by the use frequency of data in the subdirectory or the storage space occupied by the data in the subdirectory;
and the deletion inquiry unit is used for inquiring whether to continuously delete the target data after deleting the target data in any subdirectory.
7. The apparatus of claim 6, wherein the data deletion event of the target application comprises:
a data deleting instruction of the target application is sent by the user; or,
and the data volume of the target data reaches a preset storage threshold value.
8. The apparatus of claim 6, wherein the associated application determining module comprises:
an application identifier obtaining unit, configured to obtain an application identifier of the target application, where the application identifier includes an application name;
and the associated application determining unit is used for determining the application corresponding to the application identifier with the target application name as the associated application of the target application.
9. The apparatus according to any of claims 6-8, wherein the multi-open application set is implemented based on a multi-user mechanism.
10. The apparatus of claim 9, wherein the multi-open application set is implemented based on a multi-user mechanism, comprising:
the main application is installed under a main user, the sub-body application is installed under a sub-user, and the main user comprises an access port used for operating the sub-body application.
11. A mobile terminal characterized in that it integrates the data deletion means of the multi-open application according to any of claims 6-10.
CN201610885226.3A 2016-10-10 2016-10-10 Data deletion method and device for multi-open application and mobile terminal Active CN106649495B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610885226.3A CN106649495B (en) 2016-10-10 2016-10-10 Data deletion method and device for multi-open application and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610885226.3A CN106649495B (en) 2016-10-10 2016-10-10 Data deletion method and device for multi-open application and mobile terminal

Publications (2)

Publication Number Publication Date
CN106649495A CN106649495A (en) 2017-05-10
CN106649495B true CN106649495B (en) 2019-10-15

Family

ID=58854861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610885226.3A Active CN106649495B (en) 2016-10-10 2016-10-10 Data deletion method and device for multi-open application and mobile terminal

Country Status (1)

Country Link
CN (1) CN106649495B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109869B (en) * 2018-01-22 2021-01-12 上海鹰信智能技术有限公司 Method for quickly positioning document of connecting equipment
CN111159734A (en) * 2019-12-20 2020-05-15 青岛海信移动通信技术股份有限公司 Communication terminal and multi-application data inter-access processing method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8838574B2 (en) * 2006-06-09 2014-09-16 International Business Machines Corporation Autonomic index creation, modification and deletion
CN104699773B (en) * 2015-03-05 2018-05-25 北京畅游天下网络技术有限公司 application software management method and device
CN104793978A (en) * 2015-05-08 2015-07-22 宁波萨瑞通讯有限公司 Application management system and method
CN105791581B (en) * 2016-03-25 2019-07-26 努比亚技术有限公司 Application operating method, device and mobile terminal

Also Published As

Publication number Publication date
CN106649495A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106357921B (en) Application data sharing method and device and mobile terminal
CN106484547B (en) A management method, device and terminal for multi-opening applications
CN106484479B (en) Multi-open application management method and device and intelligent terminal
CN107026933B (en) Multi-open application message management method and device and intelligent terminal
CN106484262A (en) Method, device and terminal for generating a clone application
CN106445647A (en) Multi-application data operation method, device and mobile terminal
CN106650324A (en) Application rights management method, device and mobile terminal
CN106445671B (en) Application program management method and device and terminal
CN106648736B (en) Application control method and device and mobile terminal
CN106648738B (en) A separate application management method, device and terminal
CN106445706A (en) Multi-application data transmission method, device and mobile terminal
CN106502732B (en) Application closing method and device and intelligent terminal
CN106383672B (en) Data deleting method and device for multi-open application and mobile terminal
CN106445670B (en) Multi-open application data management method and device and mobile terminal
CN106648962B (en) A management method, device and intelligent terminal for multi-opening applications
CN106484517A (en) A method, device and intelligent terminal for switching multiple applications
CN106488020B (en) Multi-open application operation management method and device and intelligent terminal
CN106484419A (en) Method, device and mobile terminal for searching information in application programs
CN106649495B (en) Data deletion method and device for multi-open application and mobile terminal
CN106485111B (en) Method, device and terminal for hiding self-service application
CN106650403B (en) Multi-open application permission management method and device and intelligent terminal
CN106502730B (en) Multi-open application association management method and device and terminal
CN106648459B (en) Application data management method and device and mobile terminal
CN106650402B (en) Permission configuration method and device of application program and mobile terminal
CN106484516B (en) Method, device and terminal for deleting multi-open application reference relationship

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant