[go: up one dir, main page]

CN106648459B - Application data management method and device and mobile terminal - Google Patents

Application data management method and device and mobile terminal Download PDF

Info

Publication number
CN106648459B
CN106648459B CN201610887141.9A CN201610887141A CN106648459B CN 106648459 B CN106648459 B CN 106648459B CN 201610887141 A CN201610887141 A CN 201610887141A CN 106648459 B CN106648459 B CN 106648459B
Authority
CN
China
Prior art keywords
application
user
data
under
main
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
CN201610887141.9A
Other languages
Chinese (zh)
Other versions
CN106648459A (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 CN201610887141.9A priority Critical patent/CN106648459B/en
Publication of CN106648459A publication Critical patent/CN106648459A/en
Application granted granted Critical
Publication of CN106648459B publication Critical patent/CN106648459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0635Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a data management method and device of an application and a mobile terminal. The method comprises the following steps: acquiring a multi-open application set, wherein the multi-open application set comprises a main application and a body-separated application of the main application; receiving a data operation instruction of a user to a main application and/or a body-divided application of the main application under a main user of a current terminal; performing corresponding operation on the data under the corresponding data storage path according to the data operation instruction; the main application is installed under the main user and corresponds to a first data storage path under the main user; the self-body-separating application is installed under the slave user and corresponds to the second data storage path under the slave user. The technical scheme provided by the embodiment of the invention avoids the instability of the application data caused by storing the data of the main application and the personal application to the same user in the prior art, optimizes the data and management technology of the prior application and improves the stability of the application data.

Description

一种应用的数据管理方法、装置和移动终端Application data management method, device and mobile terminal

技术领域technical field

本发明实施例涉及终端技术领域,尤其涉及一种应用的数据管理方法、装置和移动终端。Embodiments of the present invention relate to the technical field of terminals, and in particular, to an application data management method, apparatus, and mobile terminal.

背景技术Background technique

随着终端技术的发展,移动终端上的应用的种类和形式越来多,很多应用已成为人们生活、工作和娱乐中不可或缺的一部分,为用户带来了较好的体验。用户对应用的各种需求也越来越多,例如,在同一个移动终端上启动多个相同的应用,具体的例如,在移动终端上启动两个微信应用,以登录两个微信账号。With the development of terminal technology, there are more and more types and forms of applications on mobile terminals, and many applications have become an indispensable part of people's life, work and entertainment, bringing users a better experience. Users have more and more various requirements for applications, for example, launching multiple identical applications on the same mobile terminal, specifically, launching two WeChat applications on the mobile terminal to log in to two WeChat accounts.

现有技术中,是通过在移动终端的一个用户下创建两个不同版本的微信应用,来实现移动终端中两个微信的运行,具体可以通过在桌面上建立两个微信图标来使用户登录两个微信账号,两个微信应用的数据都存储在该用户路径下,这样可能会造成对两个微信应用数据的操作会相互影响,导致应用数据的不稳定。In the prior art, two different versions of WeChat applications are created under one user of the mobile terminal to realize the operation of two WeChats in the mobile terminal. Specifically, two WeChat icons can be created on the desktop to enable the user to log in to the two WeChats. For a WeChat account, the data of the two WeChat applications are stored under the user path, which may cause the operations on the data of the two WeChat applications to affect each other, resulting in instability of the application data.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种应用的控制方法、装置和移动终端,以优化现有的应用的数据管理技术,提升应用数据的稳定性。Embodiments of the present invention provide an application control method, device and mobile terminal, so as to optimize the existing application data management technology and improve the stability of application data.

在第一方面,本发明实施例提供了一种应用的数据管理方法,包括:In a first aspect, an embodiment of the present invention provides an application data management method, including:

获取多开应用集合,其中,所述多开应用集合包括主应用和所述主应用的分身应用;Obtaining a multi-open application set, wherein the multi-open application set includes a main application and a sub-application of the main application;

接收用户在当前终端的主用户下对所述主应用和/或所述分身应用的数据操作指令;receiving a user's data operation instruction on the main application and/or the avatar application under the main user of the current terminal;

根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作;Perform corresponding operations on the data under the corresponding data storage paths according to the data operation instructions;

其中,所述主应用安装在所述主用户下,对应主用户下第一数据存储路径;所述分身应用安装在从用户下,对应从用户下第二数据存储路径。The main application is installed under the main user and corresponds to the first data storage path under the main user; the clone application is installed under the slave user and corresponds to the second data storage path under the slave user.

在第二方面,本发明实施例提供了一种应用的数据管理装置,包括:In a second aspect, an embodiment of the present invention provides an application data management device, including:

多开应用集合获取模块,用于获取多开应用集合,其中,所述多开应用集合包括主应用和所述主应用的分身应用;a multi-open application set acquisition module, configured to acquire a multi-open application set, wherein the multi-open application set includes a main application and an avatar application of the main application;

数据操作指令接收模块,用于接收用户在当前终端的主用户下对所述主应用和/或所述分身应用的数据操作指令;a data operation instruction receiving module, configured to receive a user's data operation instruction to the main application and/or the avatar application under the main user of the current terminal;

数据操作模块,用于根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作;a data operation module, configured to perform a corresponding operation on the data under the corresponding data storage path according to the data operation instruction;

其中,所述主应用安装在所述主用户下,对应主用户下第一数据存储路径;所述分身应用安装在从用户下,对应从用户下第二数据存储路径。The main application is installed under the main user and corresponds to the first data storage path under the main user; the clone application is installed under the slave user and corresponds to the second data storage path under the slave user.

在第三方面,本发明实施例提供了一种移动终端,所述移动终端集成了如第二方面所提供的装置。In a third aspect, an embodiment of the present invention provides a mobile terminal that integrates the apparatus provided in the second aspect.

本发明实施例通过对安装在主用户下的主应用创建主用户下的第一数据存储路径,对安装在从用户下的分身应用创建从用户下的第二数据存储路径,在接收到用户在当前终端的主用户下对主应用和/或所述主应用的分身应用的数据操作指令时,根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作,避免了现有技术中主应用和分身应用的数据存储到同一个用户下导致的应用数据的不稳定,优化了现有的应用的数据和管理技术,提升了应用数据的稳定性。In this embodiment of the present invention, a first data storage path under the master user is created for the master application installed under the master user, and a second data storage path under the slave user is created for the avatar application installed under the slave user. When the main user of the current terminal issues a data operation instruction for the main application and/or the avatar application of the main application, the corresponding operation is performed on the data under the corresponding data storage path according to the data operation instruction, which avoids the problem of the prior art. The data of the main application and the secondary application are stored in the same user, which leads to the instability of the application data, optimizes the existing application data and management technology, and improves the stability of the application data.

附图说明Description of drawings

图1是本发明实施例提供的一种应用的数据管理方法的流程图;1 is a flowchart of an applied data management method provided by an embodiment of the present invention;

图2是本发明实施例提供的另一种应用的数据管理方法的流程图;2 is a flowchart of another applied data management method provided by an embodiment of the present invention;

图3是本发明实施例提供的另一种应用的数据管理方法的流程图;3 is a flowchart of another applied data management method provided by an embodiment of the present invention;

图4是本发明实施例提供的另一种应用的数据管理方法的流程图;4 is a flowchart of another applied data management method provided by an embodiment of the present invention;

图5是本发明实施例提供的一种应用的数据管理装置的结构示意图;5 is a schematic structural diagram of a data management device for an application provided by an embodiment of the present invention;

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

具体实施方式Detailed ways

为了使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In order to make the objectives, technical solutions and advantages of the present invention clearer, the specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. 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 of the contents related to the present invention. Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts various operations (or steps) as a sequential process, many of the operations may be performed in parallel, concurrently, or concurrently. Additionally, the order of operations can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.

图1给出了本发明实施例提供的应用的数据管理方法的流程图,本实施例的方法可以由应用的数据管理装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为移动终端的一部分设置在所述移动终端内部。FIG. 1 shows a flowchart of an application data management method provided by an embodiment of the present invention. The method in this embodiment may be executed by an application data management device, and the device may be implemented by means of hardware and/or software. The device may be provided inside the mobile terminal as part of the mobile terminal.

如图1所示,本实施例提供的应用的数据管理方法具体包括以下步骤:As shown in FIG. 1 , the application data management method provided by this embodiment specifically includes the following steps:

步骤101、获取多开应用集合。Step 101: Obtain a multi-open application set.

其中,所述多开应用集合包括主应用和所述主应用的分身应用。Wherein, the multi-open application set includes a main application and a sub-application of the main application.

可选的,当用户为终端中的某一应用建立分身应用时,原始应用被称为主应用,建立的分身应用被称为主应用的分身应用。可根据一个主应用生成多个分身应用,同一个主应用的不同分身应用互为同胞应用。本实施例中所述的终端包括但不限定于手机、手表、平板电脑、以及智能电视等设备。Optionally, when the user establishes a secondary application for an application in the terminal, the original application is called the main application, and the established secondary application is called the secondary application of the main application. Multiple sub-applications can be generated according to a main application, and different sub-applications of the same main application are sibling applications of each other. The terminals described in this embodiment include but are not limited to devices such as mobile phones, watches, tablet computers, and smart TVs.

多开应用集合包括主应用以及至少一个主应用的分身应用。示例性的,在建立主应用A的第一个分身应用A1后,主应用A和分身应用A1构成多开应用集合。当根据主应用A或者分身应用A1建立主应用的第二个分身应用A2后,主应用A、分身应用A1和分身应用A2构成多开应用集合,其中分身应用A1与分身应用A2互为同胞应用。The multi-open application set includes a main application and at least one sub-application of the main application. Exemplarily, after the first sub-application A1 of the main application A is established, the main application A and the sub-application A1 constitute a multi-open application set. When the second avatar application A2 of the main application is established according to the main application A or the avatar application A1, the main application A, the avatar application A1 and the avatar application A2 form a multi-open application set, wherein the avatar application A1 and the avatar application A2 are sibling applications of each other .

优选的,本实施例中多开应用集合基于多用户机制来实现,其中多用户机制具体可包括移动终端中的操作系统所支持的多用户机制,如安卓(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 an operating system in a mobile terminal, such as the multi-user mechanism of the Android (Android) system and the mobile phone. Window (Windows Phone, WP) operating system's multi-user mechanism, etc.

其中,多开应用集合基于多用户机制来实现,包括主应用和与主应用对应的所有分身应用。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.

d)在用户A卸载了应用B,对其它用户来说,应用B还是存在的,桌面上都可见应用图标,在其它用户上,应用B可以正常使用。d) After user A uninstalls application B, for other users, application B still exists, and the application icon can be seen on the desktop. For other users, application B can be used normally.

对于多用户安装、卸载应用,默认安装的应用会安装到所有已创建的用户(包括主用户和从用户),并在各用户桌面上生成应用图标;而在主用户下通过文件管理安装的应用,只安装到主用户下,在主用户桌面生成应用图标,不安装到从用户下;应用的安装/卸载还可基于使用者对用户的指定,使用者通过指定用户身份标识,在主用户和从用户中指定应用的安装/卸载在某个用户、某些用户或所有用户下进行;同一应用的卸载在各用户下独立进行,对某一用户下的应用进行卸载,不影响其他用户下该应用的使用。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. The installation/uninstallation of the specified application from the user is carried out under a certain user, some users or all users; the uninstallation of the same application is carried out independently under each user, and the uninstallation of the application under a certain user does not affect other users. use of the application.

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.

移动终端用户在主用户中可实现对主应用的操作,同时还可在主用户中通过接入口对相应的分身应用进行操作。可以理解的是,同一个主应用可对应多个分身应用,每个分身应用均被安装于一个不同的从用户中,使各分身应用分别运行于不同的从用户中,在运行过程中互不干扰。The mobile 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 application control based on the multi-user mechanism is that, compared with third-party multi-open assistant software, it is more secure to avoid the occurrence of third-party software pushing advertisements and stealing user privacy data; compared with the main application Compared with the solution in which the avatar applications run under the same user, it reduces the process interference between different avatar applications or the main application under the same user, and avoids the occurrence of function loss caused by the complex operating environment.

步骤102、接收用户在当前终端的主用户下对多开应用集合中的主应用和/或分身应用的数据操作指令。Step 102: Receive a data operation instruction from the user on the main application and/or the secondary application in the multi-open application set under the main user of the current terminal.

其中,所述用户在当前终端的主用户下对主应用和/或所述主应用的分身应用的数据操作指令具体可以为:用户在当前终端的主用户下对主应用图标和/或分身应用图标的数据操作指令,或者,对主应用人机交互界面和/或分身应用人机交互界面的数据操作指令。Wherein, the data operation instruction of the user to the main application and/or the avatar application of the main application under the main user of the current terminal may specifically be: the user operates the main application icon and/or the avatar application under the main user of the current terminal. The data operation instruction of the icon, or the data operation instruction of the main application human-computer interaction interface and/or the avatar application human-computer interaction interface.

其中,所述操作包括保存、修改或者删除。Wherein, the operation includes saving, modifying or deleting.

步骤103、根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作。其中,所述主应用安装在所述主用户下,对应主用户下第一数据存储路径;所述分身应用安装在从用户下,对应从用户下第二数据存储路径。Step 103: Perform a corresponding operation on the data in the corresponding data storage path according to the data operation instruction. The main application is installed under the main user and corresponds to the first data storage path under the main user; the clone application is installed under the slave user and corresponds to the second data storage path under the slave user.

示例性的,当在终端创建第一个分身应用时,系统可以通过多用户服务UserManagerServcie创建一个新用户,并为其分配用户标识userId为u10,并在当前新用户下创建第二数据存储路径data/user/u10,假设所述应用为微信,则系统会为该分身创建第二数据存储路径data/user/u10/weixin,用来保存分身应用在运行时的操作数据。Exemplarily, when the first clone application is created on the terminal, the system can create a new user through the multi-user service UserManagerServcie, assign the user ID userId to it as u10, and create a second data storage path data under the current new user. /user/u10, assuming that the application is WeChat, the system will create a second data storage path data/user/u10/weixin for the avatar, which is used to save the operation data of the avatar application at runtime.

本实施例提供的应用的数据管理方法,通过对安装在主用户下的主应用创建主用户下的第一数据存储路径,对安装在从用户下的分身应用创建从用户下的第二数据存储路径,在接收到用户在当前终端的主用户下对主应用和/或所述主应用的分身应用的数据操作指令时,根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作,避免了现有技术中主应用和分身应用的数据存储到同一个用户下导致的应用数据的不稳定,优化了现有的应用的数据和管理技术,提升了应用数据的稳定性。In the application data management method provided by this embodiment, a first data storage path under the master user is created for the master application installed under the master user, and a second data storage path under the slave user is created for the avatar application installed under the slave user. path, when receiving a data operation instruction from the user to the main application and/or the avatar application of the main application under the main user of the current terminal, perform a corresponding operation on the data under the corresponding data storage path according to the data operation instruction , which avoids the instability of application data caused by storing the data of the main application and the avatar application under the same user in the prior art, optimizes the existing application data and management technology, and improves the stability of the application data.

另外,本发明实施例提供的技术方案,通过在主用户下对主应用和/或分身应用的数据进行操作和管理,无需切换用户,实现了在主用户下登录不同账户时(主应用下的账户或者分身应用下的账户),去自由访问不同用户空间数据存储路径下的数据。In addition, the technical solution provided by the embodiment of the present invention, by operating and managing the data of the main application and/or the avatar application under the main user, does not need to switch users, and realizes that when the main user logs in to different accounts (under the main application) account or account under the avatar application), to freely access data under different user space data storage paths.

在上述技术方案的基础上,还包括以下步骤:在主用户下生成分身应用的接入口,以在主用户下通过所述接入口接受用户对所述分身应用进行的操作。Based on the above technical solution, the method further includes the following steps: generating an access port of the avatar application under the main user, so as to accept the operation performed by the user on the avatar application through the access port under the main user.

进一步的,所述在主用户下生成分身应用的接入口,包括:通过主用户下的悬浮窗、弹框、任务管理器、应用列表、分享链接、通知中心或者新建分身应用图标的方式生成分身应用的接入口。Further, generating the access port of the avatar application under the main user includes: generating the avatar by means of a floating window, a pop-up box, a task manager, an application list, a sharing link, a notification center or a new avatar application icon under the main user. The access port of the application.

在上述技术方案的基础上,还可以包括:在检测到所述主应用的数据发生变化时,将所述分身应用的相关数据同步变化。Based on the above technical solution, the method may further include: when it is detected that the data of the main application changes, the related data of the secondary application is changed synchronously.

在上述实施例的基础上,还可以包括:在检测到所述主应用的删除指令时,将所述第一数据存储路径以及所述第二数据存储路径下的数据全部删除;在检测到所述分身应用的删除指令时,将所述第二数据存储路径下的数据全部删除。On the basis of the above-mentioned embodiment, the method may further include: when detecting the deletion instruction of the main application, deleting all the data in the first data storage path and the second data storage path; When the deletion instruction of the cloned application is executed, all the data in the second data storage path is deleted.

图2给出了本发明实施例提供的另一种应用的数据管理方法的流程图。本实施例以上述实施例为基础进行优化。在本实施例中,对“获取多开应用集合”进行优化。FIG. 2 is a flowchart of another application data management method provided by an embodiment of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiment. In this embodiment, "obtaining multiple open application sets" is optimized.

相应的,如图2所示,本实施例提供的方法包括以下步骤:Correspondingly, as shown in FIG. 2 , the method provided by this embodiment includes the following steps:

步骤201、在当前终端的主用户下安装多开应用集合中的主应用并创建主用户下的第一数据存储路径,同时在从用户下安装所述多开应用集合中的分身应用并创建从用户下的第二数据存储路径。其中,所述多开应用集合包括主应用和所述主应用的分身应用。Step 201: Install the main application in the multi-open application set under the main user of the current terminal and create a first data storage path under the main user, and simultaneously install the avatar application in the multi-open application set under the sub-user and create a subordinate application. The second data storage path under the user. Wherein, the multi-open application set includes a main application and a sub-application of the main application.

具体的,假设移动终端的默认用户为主用户,使用者在主用户下通过从应用商店下载或者从其他来源拷贝等方式将应用ABC的安装包(package,APK)文件ABC.apk存入移动终端中,系统在主用户下安装ABC.apk后,主用户桌面会生成一个主应用ABC的图标。同时在当前终端存在的从用户(若当前不存在从用户,则可创建一个从用户,该创建过程是在使用者无法察觉的情况下完成的,也无需使用者设置账户和密码)下安装ABC.apk得到分身应用,为了对主应用和分身应用加以区分,可为新安装的分身应用添加一个标识(假设为*),分身应用可被记为ABC*。当ABC*安装成功后,可指定将“安装成功”的通知(在该通知中也添加标识*)发送给主用户,主用户下的桌面接收到该通知后,生成一个带有标识*的图标,以与主应用ABC的图标进行区分,该图标可作为主用户中接受用户对分身应用进行操作的接入口,当该图标被点击后,系统将指定ABC*在从用户下启动,与ABC*对应的相关进程也在从用户下运行。Specifically, it is assumed that the default user of the mobile terminal is the main user, and the user saves the installation package (package, APK) file ABC.apk of the application ABC into the mobile terminal by downloading from the application store or copying from other sources under the main user. , after the system installs ABC.apk under the main user, the main user desktop will generate an icon of the main application ABC. At the same time, install ABC under the existing slave user in the current terminal (if there is no current slave user, you can create a slave user, the creation process is completed without the user's awareness, and the user does not need to set an account and password) under the installation of ABC .apk gets the avatar application. In order to distinguish the main application and the avatar application, an identification (assumed to be *) can be added 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 an access port for the main user to accept the user's operation of the clone application. When the icon is clicked, the system will specify ABC* to start under the slave user, and ABC* The corresponding related processes are also running from the user.

另外,可以根据需求在当前终端的一个从用户或者多个从用户下分别安装分身应用。In addition, separate applications can be installed under one slave user or multiple slave users of the current terminal according to requirements.

步骤202、接收用户在当前终端的主用户下对所述主应用和/或所述分身应用的数据操作指令。Step 202: Receive a user's data operation instruction on the main application and/or the secondary application under the main user of the current terminal.

步骤203、根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作。Step 203: Perform a corresponding operation on the data under the corresponding data storage path according to the data operation instruction.

本实施例提供的方法,通过在当前终端的主用户下安装主应用并创建主用户下的第一数据存储路径,同时在从用户下安装主应用的分身应用并创建从用户下的第二数据存储路径,在接收到用户在当前终端的主用户下对主应用和/或所述主应用的分身应用的数据操作指令时,根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作,避免了现有技术中主应用和分身应用的数据存储到同一个用户下导致的应用数据的不稳定,优化了现有的应用的数据和管理技术,提升了应用数据的稳定性。In the method provided by this embodiment, the main application is installed under the main user of the current terminal and the first data storage path under the main user is created, and the avatar application of the main application is installed under the slave user and the second data under the slave user is created at the same time. A storage path, when receiving a data operation instruction from the user to the main application and/or the avatar application of the main application under the main user of the current terminal, corresponding to the data in the corresponding data storage path according to the data operation instruction The operation avoids the instability of application data caused by storing the data of the main application and the secondary application in the same user in the prior art, optimizes the data and management technology of the existing application, and improves the stability of the application data.

图3给出了本发明实施例提供的另一种应用的数据管理方法的流程图。本实施例以上述实施例为基础进行优化,对“获取多开应用集合”进行优化。FIG. 3 is a flowchart of another application data management method provided by an embodiment of the present invention. This embodiment performs optimization on the basis of the foregoing embodiment, and optimizes "obtaining multiple open application sets".

相应的,如图3所示,本实施例提供的应用的控制方法包括以下步骤:Correspondingly, as shown in FIG. 3 , the application control method provided by this embodiment includes the following steps:

步骤301、在当前终端的主用户下安装多开应用集合中的主应用并创建主用户下的第一数据存储路径,以及在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,在所述从用户下安装所述分身应用并创建从用户下的第二数据存储路径。Step 301: Install the main application in the multi-open application set under the main user of the current terminal and create a first data storage path under the main user, and detect the clone application in the multi-open application set under the main user When creating the instruction, install the avatar application under the slave user and create a second data storage path under the slave user.

示例性的,在主用户下检测到用户按住主应用图标,并进行拖动而生成的分身应用创建指令时,在从用户下安装ABC.apk得到分身应用,进一步的,在主用户的桌面上创建一个区别于主应用图标的带有标识*的分身应用图标。Exemplarily, when it is detected under the main user that the user presses the icon of the main application and drags the generated avatar application creation instruction, install the ABC.apk from the user to obtain the avatar application, and further, install the avatar application on the desktop of the main user. Create a separate application icon with the logo * that is different from the main application icon.

步骤302、接收用户在当前终端的主用户下对所述主应用和/或所述分身应用的数据操作指令。Step 302: Receive a user's data operation instruction on the main application and/or the secondary application under the main user of the current terminal.

步骤303、根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作。Step 303: Perform a corresponding operation on the data under the corresponding data storage path according to the data operation instruction.

本实施例提供的方法,通过在当前终端的主用户下安装主应用并创建主用户下的第一数据存储路径,以及在所述主用户下检测到所述主应用的分身应用的创建指令时,在所述从用户下安装所述分身应用并创建从用户下的第二数据存储路径,在接收到用户在当前终端的主用户下对主应用和/或所述主应用的分身应用的数据操作指令时,根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作,避免了现有技术中主应用和分身应用的数据存储到同一个用户下导致的应用数据的不稳定,优化了现有的应用的数据和管理技术,提升了应用数据的稳定性。In the method provided in this embodiment, the main application is installed under the main user of the current terminal and the first data storage path under the main user is created, and when the creation instruction of the avatar application of the main application is detected under the main user , install the avatar application under the secondary user and create a second data storage path under the secondary user, after receiving the data of the primary application and/or the avatar application of the primary application from the user under the primary user of the current terminal When the operation instruction is performed, corresponding operations are performed on the data under the corresponding data storage path according to the data operation instruction, so as to avoid the instability of the application data caused by the storage of the data of the main application and the avatar application to the same user in the prior art, Optimize the existing application data and management technology, and improve the stability of application data.

在上述技术方案的基础上,所述步骤301具体可以包括:在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,确定当前终端是否存在未安装所述分身应用的从用户;若存在,则在所述未安装所述分身应用的从用户下安装所述分身应用;若不存在,则建立新的从用户,并在所述新的从用户下安装所述分身应用。On the basis of the above technical solution, the step 301 may specifically include: when the primary user detects the creation instruction of the avatar application in the multi-open application set, determining whether the avatar application is not installed in the current terminal If it exists, install the avatar application under the secondary user who does not have the avatar application installed; if it does not exist, create a new secondary user and install the secondary user under the new secondary user Alternate application.

图4给出了本发明实施例提供的应用的数据管理方法的流程图。本实施例以上述实施例为基础进行优化,在本实施例中,将“根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作”优化为:根据用户在主用户下对主应用的数据操作指令,对所述第一数据存储路径下的数据进行对应操作;和/或,根据用户在主用户下对分身应用的数据操作指令,对所述第二数据存储路径下的数据进行对应操作。FIG. 4 is a flowchart of an application data management method provided by an embodiment of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiment. In this embodiment, "performing a corresponding operation on the data in the corresponding data storage path according to the data operation instruction" is optimized as: The data operation instruction of the application, to perform corresponding operations on the data under the first data storage path; and/or, according to the data operation instruction of the user's avatar application under the main user, to the data under the second data storage path. Perform corresponding operations.

相应的,如图4所示,本实施例提供的方法包括以下步骤:Correspondingly, as shown in FIG. 4 , the method provided by this embodiment includes the following steps:

步骤401、获取多开应用集合。Step 401: Obtain a multi-open application set.

其中,所述多开应用集合包括主应用和所述主应用的分身应用。Wherein, the multi-open application set includes a main application and a sub-application of the main application.

步骤402、接收用户在当前终端的主用户下对多开应用集合中的主应用和/或分身应用的数据操作指令。Step 402: Receive a data operation instruction from the user on the main application and/or the secondary application in the multi-open application set under the main user of the current terminal.

步骤403、根据用户在主用户下对主应用的数据操作指令,对所述第一数据存储路径下的数据进行对应操作;和/或,根据用户在主用户下对分身应用的数据操作指令,对所述第二数据存储路径下的数据进行对应操作。其中,所述主应用安装在所述主用户下,对应主用户下第一数据存储路径;所述分身应用安装在从用户下,对应从用户下第二数据存储路径。Step 403, according to the user's data operation instruction to the main application under the main user, perform corresponding operations on the data under the first data storage path; and/or, according to the user's data operation instruction to the avatar application under the main user, A corresponding operation is performed on the data under the second data storage path. The main application is installed under the main user and corresponds to the first data storage path under the main user; the clone application is installed under the slave user and corresponds to the second data storage path under the slave user.

本实施例实现了跨用户对分身应用的数据进行保存、删除或者修改的操作,使终端无需切换用户,在主用户下就可以实现对分身应用数据的管理,使得对应用数据的管理更加便捷和直观。This embodiment realizes the operation of saving, deleting or modifying the data of the avatar application across users, so that the terminal does not need to switch users, and the management of the avatar application data can be realized under the main user, which makes the management of the application data more convenient and efficient. Intuitive.

图5为本发明实施例提供的应用的数据管理装置的结构框图,该装置可由软件和/或硬件实现,一般集成在移动终端中。如图5所示,该装置包括多开应用集合获取模块51、数据操作指令接收模块52和数据操作模块53。FIG. 5 is a structural block diagram of a data management apparatus for an application provided by an embodiment of the present invention. The apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal. As shown in FIG. 5 , the apparatus includes a multi-open application set acquisition module 51 , a data operation instruction receiving module 52 and a data operation module 53 .

多开应用集合获取模块51,用于获取多开应用集合,其中,所述多开应用集合包括主应用和所述主应用的分身应用;A multi-open application set acquisition module 51, configured to acquire a multi-open application set, wherein the multi-open application set includes a main application and an avatar application of the main application;

所述数据操作指令接收模块52,用于接收用户在当前终端的主用户下对主应用和/或所述主应用的分身应用的数据操作指令;The data operation instruction receiving module 52 is used to receive the data operation instruction of the user to the main application and/or the avatar application of the main application under the main user of the current terminal;

所述数据操作模块53,用于根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作;The data operation module 53 is configured to perform corresponding operations on the data under the corresponding data storage paths according to the data operation instructions;

其中,所述主应用安装在所述主用户下,对应主用户下第一数据存储路径;所述分身应用安装在从用户下,对应从用户下第二数据存储路径。The main application is installed under the main user and corresponds to the first data storage path under the main user; the clone application is installed under the slave user and corresponds to the second data storage path under the slave user.

本实施例提供的技术方案,通过对安装在主用户下的主应用创建主用户下的第一数据存储路径,对安装在从用户下的分身应用创建从用户下的第二数据存储路径,在接收到用户在当前终端的主用户下对主应用和/或所述主应用的分身应用的数据操作指令时,根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作,避免了现有技术中主应用和分身应用的数据存储到同一个用户下导致的应用数据的不稳定,优化了现有的应用的数据和管理技术,提升了应用数据的稳定性。In the technical solution provided by this embodiment, a first data storage path under the master user is created for the master application installed under the master user, and a second data storage path under the slave user is created for the avatar application installed under the slave user. When receiving a data operation instruction from the user on the main application and/or the avatar application of the main application under the main user of the current terminal, the corresponding operation is performed on the data under the corresponding data storage path according to the data operation instruction, avoiding the need for In the prior art, the data of the main application and the secondary application are stored in the same user, resulting in the instability of the application data, which optimizes the existing application data and management technology, and improves the stability of the application data.

在上述实施例的基础上,所述多开应用集合获取模块具体用于:On the basis of the above embodiment, the multi-open application set acquisition module is specifically used for:

在当前终端的主用户下安装多开应用集合中的主应用,同时在从用户下安装所述多开应用集合中的分身应用;或者,Install the main application in the multi-open application set under the main user of the current terminal, and install the avatar application in the multi-open application set under the secondary user at the same time; or,

在当前终端的主用户下安装多开应用集合中的主应用,以及在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,在从用户下安装所述分身应用。Install the main application in the multi-open application set under the main user of the current terminal, and when the main user detects the creation instruction of the avatar application in the multi-open application set, install the avatar application under the secondary user .

在上述实施例的基础上,所述多开应用集合获取模块在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,在所述从用户下安装所述分身应用具体为:On the basis of the above embodiment, when the multi-open application set acquisition module detects the creation instruction of the avatar application in the multi-open application set under the primary user, installs the avatar application under the secondary user Specifically:

在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,确定当前终端是否存在未安装所述分身应用的从用户;When the creation instruction of the avatar application in the multi-open application set is detected under the primary user, determine whether there is a secondary user who does not have the avatar application installed on the current terminal;

若存在,则在所述未安装所述分身应用的从用户下安装分身应用;If it exists, install the avatar application under the slave user who does not have the avatar application installed;

若不存在,则建立新的从用户,并在所述新的从用户下安装分身应用。If it does not exist, a new slave user is established, and the avatar application is installed under the new slave user.

在上述实施例的基础上,所述数据操作模块具体用于:On the basis of the above embodiment, the data manipulation module is specifically used for:

根据用户在主用户下对所述主应用的数据操作指令,对所述第一数据存储路径下的数据进行对应操作;和/或,Perform corresponding operations on the data in the first data storage path according to the user's data operation instruction on the main application under the main user; and/or,

根据用户在主用户下对所述分身应用的数据操作指令,对所述第二数据存储路径下的数据进行对应操作。A corresponding operation is performed on the data in the second data storage path according to the user's data operation instruction on the secondary application under the primary user.

在上述实施例的基础上,所述操作包括保存、修改或者删除。Based on the above embodiments, the operations include saving, modifying or deleting.

在上述实施例的基础上,还包括:On the basis of the above embodiment, it also includes:

数据同步模块,用于在检测到所述主应用的数据发生变化时,将所述分身应用的相关数据同步变化。The data synchronization module is used for synchronizing and changing the relevant data of the secondary application when it is detected that the data of the main application changes.

在上述实施例的基础上,还包括应用删除模块,所述应用删除模块具体用于:On the basis of the above embodiment, an application deletion module is also included, and the application deletion module is specifically used for:

在检测到所述主应用的删除指令时,将所述第一数据存储路径以及所述第二数据存储路径下的数据全部删除;When detecting the deletion instruction of the main application, delete all the data under the first data storage path and the second data storage path;

在检测到所述分身应用的删除指令时,将所述第二数据存储路径下的数据全部删除。When the deletion instruction of the separate application is detected, all the data in the second data storage path is deleted.

本发明实施例提供的应用的数据管理装置可执行本发明实施例提供的应用的数据管理方法,具备执行方法相应的功能模块和有益效果。The application data management apparatus provided by the embodiment of the present invention can execute the data management method of the application provided by the embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

本实施例还提供了一种移动终端,该移动终端可以包括本发明实施例提供的应用的数据管理装置。图6为本发明实施例提供的一种移动终端的结构示意图,如图6所示,该移动终端可以包括:存储器601、中央处理器(Central Processing Unit,以下简称CPU)602、外设接口603、RF(Radio Frequency,射频)电路605、音频电路606、扬声器611、电源管理芯片608、输入/输出(I/O)子系统609、触摸屏612、其他输入/控制设备610以及外部端口604,这些部件通过一个或多个通信总线或信号线607来通信。This embodiment also provides a mobile terminal, where the mobile terminal may include the data management apparatus for the application provided by the embodiment of the present invention. FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 6 , the mobile terminal may include: a memory 601 , a central processing unit (Central Processing Unit, hereinafter referred to as CPU) 602 , and a peripheral interface 603 , RF (Radio Frequency, radio frequency) circuit 605, audio circuit 606, speaker 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other input/control devices 610 and external ports 604, these The components communicate through one or more communication buses or signal lines 607 .

应该理解的是,图示移动终端600仅仅是移动终端的一个范例,并且移动终端600可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 600 is only an example of a mobile terminal, and that the mobile terminal 600 may have more or fewer components than those shown in the figure, 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 will describe in detail the mobile terminal provided in this embodiment for managing application data, where a smart phone is used as an example for the mobile terminal.

存储器601,所述存储器601可以被CPU602、外设接口603等访问,所述存储器601可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 601, which can be accessed by CPU 602, peripheral interface 603, etc., said memory 601 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 storage devices.

外设接口603,所述外设接口603可以将设备的输入和输出外设连接到CPU502和存储器601。A peripheral interface 603 that can connect the input and output peripherals of the device to the CPU 502 and the memory 601 .

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

触摸屏612,所述触摸屏612是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 612, 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子系统609中的显示控制器6091从触摸屏612接收电信号或者向触摸屏612发送电信号。触摸屏612检测触摸屏上的接触,显示控制器6091将检测到的接触转换为与显示在触摸屏612上的用户界面对象的交互,即实现人机交互,显示在触摸屏612上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。Display controller 6091 in I/O subsystem 609 receives electrical signals from touch screen 612 or sends electrical signals to touch screen 612 . The touch screen 612 detects the contact on the touch screen, and the display controller 6091 converts the detected contact into interaction with the user interface object displayed on the touch screen 612, that is, to realize human-computer interaction, and the user interface object displayed on the touch screen 612 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电路605,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路605接收并发送RF信号,RF信号也称为电磁信号,RF电路605将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路605可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 605 is mainly used to establish the communication between the mobile phone and the wireless network (ie, the network side), and 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 605 receives and transmits RF signals, also known as electromagnetic signals, the RF circuit 605 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 605 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.

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

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

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

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

获取多开应用集合,其中,所述多开应用集合包括主应用和所述主应用的分身应用;Obtaining a multi-open application set, wherein the multi-open application set includes a main application and a sub-application of the main application;

接收用户在当前终端的主用户下对所述主应用和/或所述分身应用的数据操作指令;receiving a user's data operation instruction on the main application and/or the avatar application under the main user of the current terminal;

根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作;Perform corresponding operations on the data under the corresponding data storage paths according to the data operation instructions;

其中,所述主应用安装在所述主用户下,对应主用户下第一数据存储路径;所述分身应用安装在从用户下,对应从用户下第二数据存储路径。The main application is installed under the main user and corresponds to the first data storage path under the main user; the clone application is installed under the slave user and corresponds to the second data storage path under the slave user.

上述移动终端可执行本发明实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明实施例所提供的应用的数据管理方法。The above-mentioned mobile terminal can execute the method provided by the embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the foregoing embodiments, reference may be made to the data management method for applications provided by the embodiments of the present invention.

上述仅为本发明的较佳实施例及所运用的技术原理。本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行的各种明显变化、重新调整及替代均不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由权利要求的范围决定。The above are only the preferred embodiments of the present invention and the applied technical principles. 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 claims.

Claims (15)

1.一种应用的数据管理方法,其特征在于,包括:1. a data management method of application, is characterized in that, comprises: 获取多开应用集合,其中,所述多开应用集合包括主应用和所述主应用的分身应用;Obtaining a multi-open application set, wherein the multi-open application set includes a main application and a sub-application of the main application; 接收用户在当前终端的主用户下对所述主应用和/或所述分身应用的数据操作指令;receiving a user's data operation instruction on the main application and/or the avatar application under the main user of the current terminal; 根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作;Perform corresponding operations on the data under the corresponding data storage paths according to the data operation instructions; 其中,所述主应用安装在所述主用户下,对应主用户下第一数据存储路径;所述分身应用安装在从用户下,对应从用户下第二数据存储路径;Wherein, the main application is installed under the main user and corresponds to the first data storage path under the main user; the clone application is installed under the slave user and corresponds to the second data storage path under the slave user; 其中,主用户中包含用于对分身应用进行操作的接入口。Wherein, the main user includes an access port for operating the avatar application. 2.根据权利要求1所述的方法,其特征在于,所述获取多开应用集合包括:2. The method according to claim 1, wherein the acquiring the multi-open application set comprises: 在当前终端的主用户下安装多开应用集合中的主应用,同时在从用户下安装所述多开应用集合中的分身应用;或者,Install the main application in the multi-open application set under the main user of the current terminal, and install the avatar application in the multi-open application set under the secondary user at the same time; or, 在当前终端的主用户下安装多开应用集合中的主应用,以及在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,在从用户下安装所述分身应用。Install the main application in the multi-open application set under the main user of the current terminal, and when the main user detects the creation instruction of the avatar application in the multi-open application set, install the avatar application under the secondary user . 3.根据权利要求2所述的方法,其特征在于,在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,在所述从用户下安装所述分身应用包括:3 . The method according to claim 2 , wherein, when an instruction for creating a avatar application in the multi-open application set is detected under the primary user, installing the avatar application under the secondary user comprises: 4 . : 在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,确定当前终端是否存在未安装所述分身应用的从用户;When the creation instruction of the avatar application in the multi-open application set is detected under the primary user, determine whether there is a secondary user who does not have the avatar application installed on the current terminal; 若存在,则在所述未安装所述分身应用的从用户下安装分身应用;If it exists, install the avatar application under the slave user who does not install the avatar application; 若不存在,则建立新的从用户,并在所述新的从用户下安装分身应用。If it does not exist, a new slave user is established, and the avatar application is installed under the new slave user. 4.根据权利要求1所述的方法,其特征在于,所述根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作包括:4. The method according to claim 1, wherein the performing corresponding operations on the data under the corresponding data storage paths according to the data operation instructions comprises: 根据用户在主用户下对所述主应用的数据操作指令,对所述第一数据存储路径下的数据进行对应操作;和/或,Perform corresponding operations on the data in the first data storage path according to the user's data operation instruction on the main application under the main user; and/or, 根据用户在主用户下对所述分身应用的数据操作指令,对所述第二数据存储路径下的数据进行对应操作。A corresponding operation is performed on the data in the second data storage path according to the user's data operation instruction on the secondary application under the primary user. 5.根据权利要求1-4任一项所述的方法,其特征在于,所述操作包括保存、修改或者删除。5. The method according to any one of claims 1-4, wherein the operation comprises saving, modifying or deleting. 6.根据权利要求1所述的方法,其特征在于,还包括:6. The method of claim 1, further comprising: 在检测到所述主应用的数据发生变化时,将所述分身应用的相关数据同步变化。When it is detected that the data of the main application changes, the relevant data of the secondary application is changed synchronously. 7.根据权利要求1所述的方法,其特征在于,还包括:7. The method of claim 1, further comprising: 在检测到所述主应用的删除指令时,将所述第一数据存储路径以及所述第二数据存储路径下的数据全部删除;When detecting the deletion instruction of the main application, delete all the data under the first data storage path and the second data storage path; 在检测到所述分身应用的删除指令时,将所述第二数据存储路径下的数据全部删除。When the deletion instruction of the separate application is detected, all the data in the second data storage path is deleted. 8.一种应用的数据管理装置,其特征在于,包括:8. An applied data management device, comprising: 多开应用集合获取模块,用于获取多开应用集合,其中,所述多开应用集合包括主应用和所述主应用的分身应用;a multi-open application set acquisition module, configured to acquire a multi-open application set, wherein the multi-open application set includes a main application and an avatar application of the main application; 数据操作指令接收模块,用于接收用户在当前终端的主用户下对所述主应用和/或所述分身应用的数据操作指令;a data operation instruction receiving module, configured to receive a user's data operation instruction to the main application and/or the avatar application under the main user of the current terminal; 数据操作模块,用于根据所述数据操作指令对相应的数据存储路径下的数据进行对应操作;a data operation module, configured to perform a corresponding operation on the data under the corresponding data storage path according to the data operation instruction; 其中,所述主应用安装在所述主用户下,对应主用户下第一数据存储路径;所述分身应用安装在从用户下,对应从用户下第二数据存储路径;Wherein, the main application is installed under the main user and corresponds to the first data storage path under the main user; the clone application is installed under the slave user and corresponds to the second data storage path under the slave user; 其中,主用户中包含用于对分身应用进行操作的接入口。Wherein, the main user includes an access port for operating the avatar application. 9.根据权利要求8所述的装置,其特征在于,所述多开应用集合获取模块具体用于:9. The apparatus according to claim 8, wherein the multi-open application set acquisition module is specifically used for: 在当前终端的主用户下安装多开应用集合中的主应用,同时在从用户下安装所述多开应用集合中的分身应用;或者,Install the main application in the multi-open application set under the main user of the current terminal, and install the avatar application in the multi-open application set under the secondary user at the same time; or, 在当前终端的主用户下安装多开应用集合中的主应用,以及在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,在从用户下安装所述分身应用。Install the main application in the multi-open application set under the main user of the current terminal, and when the main user detects the creation instruction of the avatar application in the multi-open application set, install the avatar application under the secondary user . 10.根据权利要求9所述的装置,其特征在于,所述多开应用集合获取模块在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,在所述从用户下安装所述分身应用具体为:10 . The apparatus according to claim 9 , wherein, when the multi-open application set acquisition module detects an instruction for creating a clone application in the multi-open application set under the primary user, the slave application is executed. 11 . The specific application for installing the cloned application under the user is: 在所述主用户下检测到所述多开应用集合中的分身应用的创建指令时,确定当前终端是否存在未安装所述分身应用的从用户;When the creation instruction of the avatar application in the multi-open application set is detected under the primary user, determine whether there is a secondary user who does not have the avatar application installed on the current terminal; 若存在,则在所述未安装所述分身应用的从用户下安装分身应用;If it exists, install the avatar application under the slave user who does not install the avatar application; 若不存在,则建立新的从用户,并在所述新的从用户下安装分身应用。If it does not exist, a new slave user is established, and the avatar application is installed under the new slave user. 11.根据权利要求8所述的装置,其特征在于,所述数据操作模块具体用于:11. The apparatus according to claim 8, wherein the data operation module is specifically used for: 根据用户在主用户下对所述主应用的数据操作指令,对所述第一数据存储路径下的数据进行对应操作;和/或,Perform corresponding operations on the data in the first data storage path according to the user's data operation instruction on the main application under the main user; and/or, 根据用户在主用户下对所述分身应用的数据操作指令,对所述第二数据存储路径下的数据进行对应操作。A corresponding operation is performed on the data in the second data storage path according to the user's data operation instruction on the secondary application under the primary user. 12.根据权利要求8-11任一项所述的装置,其特征在于,所述操作包括保存、修改或者删除。12. The apparatus according to any one of claims 8-11, wherein the operation comprises saving, modifying or deleting. 13.根据权利要求8所述的装置,其特征在于,还包括:13. The apparatus of claim 8, further comprising: 数据同步模块,用于在检测到所述主应用的数据发生变化时,将所述分身应用的相关数据同步变化。The data synchronization module is used for synchronizing and changing the relevant data of the secondary application when it is detected that the data of the main application changes. 14.根据权利要求8所述的装置,其特征在于,还包括应用删除模块,所述应用删除模块具体用于:14. The device according to claim 8, further comprising an application deletion module, wherein the application deletion module is specifically used for: 在检测到所述主应用的删除指令时,将所述第一数据存储路径以及所述第二数据存储路径下的数据全部删除;When detecting the deletion instruction of the main application, delete all the data under the first data storage path and the second data storage path; 在检测到所述分身应用的删除指令时,将所述第二数据存储路径下的数据全部删除。When the deletion instruction of the separate application is detected, all the data in the second data storage path is deleted. 15.一种移动终端,其特征在于,所述移动终端集成了如权利要求8-14任一项所述的装置。15. A mobile terminal, characterized in that, the mobile terminal integrates the device according to any one of claims 8-14.
CN201610887141.9A 2016-10-10 2016-10-10 Application data management method and device and mobile terminal Active CN106648459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610887141.9A CN106648459B (en) 2016-10-10 2016-10-10 Application data management method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610887141.9A CN106648459B (en) 2016-10-10 2016-10-10 Application data management method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106648459A CN106648459A (en) 2017-05-10
CN106648459B true CN106648459B (en) 2019-09-24

Family

ID=58855228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610887141.9A Active CN106648459B (en) 2016-10-10 2016-10-10 Application data management method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106648459B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197273B (en) * 2018-01-08 2022-04-22 青岛海信移动通信技术股份有限公司 Method and device for multi-user data synchronization
CN108241515B (en) * 2018-01-10 2021-06-29 青岛海信移动通信技术股份有限公司 Application shortcut establishing method and terminal
CN111124569B (en) * 2019-12-05 2023-07-25 维沃移动通信有限公司 An application sharing method, electronic device and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760032A (en) * 2012-03-19 2012-10-31 联想(北京)有限公司 Information processing method and electronic device
CN104573541A (en) * 2013-10-22 2015-04-29 中兴通讯股份有限公司 Terminal, and method and device for processing multiple users of terminal
CN105468405A (en) * 2015-11-18 2016-04-06 深圳市创想天空科技股份有限公司 Installation processing method and device of application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760032A (en) * 2012-03-19 2012-10-31 联想(北京)有限公司 Information processing method and electronic device
CN104573541A (en) * 2013-10-22 2015-04-29 中兴通讯股份有限公司 Terminal, and method and device for processing multiple users of terminal
CN105468405A (en) * 2015-11-18 2016-04-06 深圳市创想天空科技股份有限公司 Installation processing method and device of application program

Also Published As

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

Similar Documents

Publication Publication Date Title
CN106357921B (en) Application data sharing method and device and mobile terminal
CN106445647B (en) Multi-open application data operation 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
CN106648736B (en) Application control method and device and mobile terminal
CN106648737B (en) Application control method and device and mobile terminal
CN106650324A (en) Application rights management method, device and mobile terminal
CN106445612A (en) Method, device and mobile terminal for opening applications
CN106445706B (en) Multi-open application data transmission method and device and mobile terminal
CN106445671B (en) Application program management method and device and terminal
CN106648738B (en) A separate application management method, device and terminal
CN106648459B (en) Application data management method and device and mobile terminal
CN106502732B (en) Application closing method and device and intelligent terminal
CN106650403B (en) Multi-open application permission management method and device and intelligent terminal
CN106485111B (en) Method, device and terminal for hiding self-service application
CN106502730B (en) Multi-open application association management method and device and terminal
CN106648962B (en) A management method, device and intelligent terminal for multi-opening applications
CN106650402B (en) Permission configuration method and device of application program and mobile terminal
CN106383672B (en) Data deleting method and device for multi-open application and mobile terminal
CN106488020B (en) Multi-open application operation management method and device and intelligent terminal
CN106648908A (en) Application process control method, device and mobile terminal
CN106648298B (en) Application control method and device and mobile terminal
CN106484476B (en) Method, device and intelligent terminal for deleting multi-open application
CN106445693B (en) Information synchronization method and device and terminal equipment

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