CN106203015A - The collocation method of application program, device and terminal unit - Google Patents
The collocation method of application program, device and terminal unit Download PDFInfo
- Publication number
- CN106203015A CN106203015A CN201610515344.5A CN201610515344A CN106203015A CN 106203015 A CN106203015 A CN 106203015A CN 201610515344 A CN201610515344 A CN 201610515344A CN 106203015 A CN106203015 A CN 106203015A
- Authority
- CN
- China
- Prior art keywords
- account
- application program
- application
- configuration
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/629—Protecting access to data via a platform, e.g. using keys or access control rules to features or functions of an application
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2141—Access rights, e.g. capability lists, access control lists, access tables, access matrices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Stored Programmes (AREA)
Abstract
本发明涉及终端控制技术领域,具体涉及应用程序的配置方法、装置及终端设备,所述方法具体包括步骤:响应于用户操作指令,启动配置单元并确定需要进行所述配置的应用程序;基于安卓系统的相应权限,生成所述应用程序的至少一个镜像;在用户界面上对镜像进行显示,所述镜像使用区别于第一账户的第二账户应用程序图标。通过配置、创建新的应用程序的账户空间,实现双开应用程序的目的,满足用户对于同一个应用需要实现多个账号使用的需求,为工作和生活带来极大的方便。
The present invention relates to the technical field of terminal control, in particular to an application program configuration method, device, and terminal equipment. The method specifically includes the steps of: responding to a user operation instruction, starting a configuration unit and determining the application program that needs to be configured; The corresponding authority of the system generates at least one mirror image of the application program; the mirror image is displayed on the user interface, and the mirror image uses a second account application program icon different from the first account. By configuring and creating a new application account space, the purpose of dual-opening applications can be realized, which can meet the user's needs for using multiple accounts for the same application, and bring great convenience to work and life.
Description
【技术领域】【Technical field】
本发明涉及终端控制技术领域,具体涉及一种应用程序的配置方法、装置及终端设备。The present invention relates to the technical field of terminal control, in particular to an application program configuration method, device and terminal equipment.
【背景技术】【Background technique】
随着智能设备的不断普及,智能设备已经成为了我们生活和工作的一部分,智能设备中的诸多应用程序更为生活和工作添加了色彩,随着社交网络的普及,应用程序往往需要具有生活和工作两重角色,例如:通讯录、邮箱、社交软件等。With the continuous popularization of smart devices, smart devices have become a part of our life and work. Many applications in smart devices add color to life and work. With the popularity of social networks, applications often need to have life and Work with dual roles, such as: address book, email, social software, etc.
现有的解决同一个应用程序需要多个账号进行切换的方法主要有:在一个应用程序中进行注销和登录,在各个账号之间切换时重新输入不同账号跟密码进行账号切换或者应用程序存储了所有的账号跟密码,用户可以在程序的用户界面中通过选择对应账号进行账号切换。但是这些方法存在切换账号流程繁琐、遗漏其它账号的信息还有无法对不同账号登录的应用程序选择不同设置等问题。Existing methods to solve the need for switching between multiple accounts for the same application mainly include: logging out and logging in in one application, re-entering different account numbers and passwords to switch accounts when switching between accounts, or the application stores the For all accounts and passwords, the user can switch accounts by selecting the corresponding account in the user interface of the program. However, these methods have the problems of cumbersome account switching process, omission of information of other accounts, and inability to select different settings for applications logged in with different accounts.
总而言之,目前的单应用多账号切换无法满足用户日益增长的差异化需求。All in all, the current single-app multi-account switching cannot meet the growing and differentiated needs of users.
【发明内容】【Content of invention】
本发明的目的旨在解决上述至少一个问题,提供一种应用程序双开方法、装置及终端设备,从而实现用户对于同一个应用程序进行多个账号切换的差异化需求。The purpose of the present invention is to solve at least one of the above-mentioned problems, and provide a method, device and terminal device for dual opening of applications, so as to realize the user's differentiated requirements for switching between multiple accounts for the same application.
为实现该目的,本发明采用如下技术方案:To achieve this goal, the present invention adopts following technical scheme:
一种应用程序的配置方法,其特征在于,包括如下步骤:A method for configuring an application program, comprising the steps of:
响应于用户操作指令,启动配置单元并确定需要进行所述配置的应用程序;In response to a user operation instruction, start the configuration unit and determine the application program that needs to be configured;
基于安卓系统的相应权限,生成所述应用程序的至少一个镜像;Generate at least one image of the application program based on the corresponding permissions of the Android system;
在用户界面上对镜像进行显示,所述镜像使用区别于第一账户的第二账户应用程序图标。The mirror image is displayed on the user interface, and the mirror image uses an application program icon of the second account different from that of the first account.
进一步地,在在启动配置单元之前,还包括步骤:Further, before starting the configuration unit, steps are also included:
获取系统当前已设置的加密保护或为配置单元设置加密保护。Get the encryption protection currently set on the system or set encryption protection for the hive.
进一步的,在启动配置单元之后,确定应用程序之前,配置单元基于安卓系统的相应权限,在安卓系统中为所述应用程序创建区别于第一账户的至少一个第二账户,生成相应的配置文件及第二账户空间。Further, after starting the configuration unit and before determining the application program, the configuration unit creates at least one second account different from the first account for the application program in the Android system based on the corresponding permissions of the Android system, and generates a corresponding configuration file and the second account space.
具体的,所述安卓系统的相应权限为安卓系统的system权限。Specifically, the corresponding authority of the Android system is the system authority of the Android system.
具体的,所述第一账户为所述应用程序的默认账户。Specifically, the first account is a default account of the application program.
进一步的,在创建第二账户之前,还包括步骤:Further, before creating the second account, further steps are included:
检查当前系统的多账户环境是否达到预设的多账户数量限制;Check whether the multi-account environment of the current system has reached the preset multi-account limit;
若多账户环境达到预设数量限制,则返回创建第二账户失败的提示信息,否则继续执行所述配置方法的步骤。If the multi-account environment reaches the preset quantity limit, return the prompt message that the creation of the second account fails, otherwise continue to execute the steps of the configuration method.
优选的,所述第二账户受控于第一账户,所述第一账户可以为第二账户设置相关权限和删除所创建的第二账户。Preferably, the second account is controlled by the first account, and the first account can set relevant permissions for the second account and delete the created second account.
进一步的,所述基于安卓系统的相应权限,生成所述应用程序的至少一个镜像的步骤中,具体包括:Further, the step of generating at least one image of the application based on the corresponding permissions of the Android system specifically includes:
在所述第二账户空间配置所述应用程序的镜像,建立所述应用程序的镜像与所述第二账户的关联。The image of the application is configured in the second account space, and an association between the image of the application and the second account is established.
优选的,所述第二账户可以为其账户空间设置相应的权限,所述账户空间的权限针对于关联于该账户空间下的所有应用程序。Preferably, the second account can set corresponding permissions for its account space, and the permissions of the account space are for all applications associated with the account space.
具体的,所述应用程序包括已安装的系统预置的应用程序和用户安装的应用程序。Specifically, the application programs include installed system preset application programs and user-installed application programs.
具体的,所述系统预置的应用程序为安装在/data/system/目录下的应用程序,所述用户安装的应用程序为安装在/data/data/目录下的应用程序。Specifically, the application programs preset by the system are the application programs installed in the directory /data/system/, and the application programs installed by the user are the application programs installed in the directory /data/data/.
进一步的,所述方法还包括步骤:Further, the method also includes the steps of:
在用户界面上同时显示配置完成的应用程序镜像的快捷图标和其原应用程序的快捷图标。Simultaneously display the shortcut icon of the configured application mirroring and the shortcut icon of its original application on the user interface.
进一步的,所述方法还包括步骤:Further, the method also includes the steps of:
响应作用于配置完成产生的应用程序的镜像的快捷图标的运行指令,运行该应用程序。In response to the execution instruction acting on the shortcut icon of the mirror image of the application program generated by the configuration completion, the application program is run.
相应地,本发明还提供一种应用程序双开装置,其特征在于,包括:Correspondingly, the present invention also provides an application dual-opening device, which is characterized in that it includes:
响应模块:用于响应于用户操作指令,启动配置单元并确定需要进行所述配置的应用程序;Response module: used to respond to user operation instructions, start the configuration unit and determine the application program that needs to be configured;
生成模块:用于基于安卓系统的相应权限,生成所述应用程序的至少一个镜像;Generating module: used to generate at least one image of the application program based on the corresponding permissions of the Android system;
显示模块:用于在用户界面上对镜像进行显示,所述镜像使用区别于第一账户的第二账户应用程序图标。Display module: used to display the mirror image on the user interface, and the mirror image uses a second account application icon different from that of the first account.
进一步地,所述装置还包括:Further, the device also includes:
加密模块:用于获取系统当前已设置的加密保护或为配置单元设置加密保护。Encryption module: used to obtain the encryption protection currently set by the system or set encryption protection for the configuration unit.
进一步的,所述配置单元还包括:Further, the configuration unit also includes:
创建子单元:用于基于安卓系统的相应权限,在安卓系统中为所述应用程序创建区别于第一账户的至少一个第二账户,生成相应的配置文件及第二账户空间。The creating subunit is used to create at least one second account different from the first account for the application program in the Android system based on the corresponding permissions of the Android system, and generate a corresponding configuration file and a second account space.
具体的,所述安卓系统的相应权限为安卓系统的system权限。Specifically, the corresponding authority of the Android system is the system authority of the Android system.
具体的,所述第一账户为所述应用程序的默认账户。Specifically, the first account is a default account of the application program.
进一步的,所述配置单元还包括:Further, the configuration unit also includes:
检查子单元:用于检查当前系统的多账户环境是否达到预设的多账户数量限制。若多账户环境达到预设数量限制,则返回创建工作账户失败的提示信息,否则继续执行所述配置装置的功能。Check subunit: used to check whether the multi-account environment of the current system has reached the preset multi-account limit. If the multi-account environment reaches the preset quantity limit, return a prompt message indicating failure to create a work account; otherwise, continue to execute the function of configuring the device.
优选的,所述第二账户受控于第一账户,所述第一账户可以为第二账户设置相关权限和删除所创建的第二账户。Preferably, the second account is controlled by the first account, and the first account can set relevant permissions for the second account and delete the created second account.
进一步的,所述生成模块还包括:Further, the generating module also includes:
关联单元:用于在所述第二账户空间配置所述应用程序的镜像,建立所述应用程序的镜像与所述第二账户的关联。An associating unit: configured to configure the image of the application program in the space of the second account, and establish an association between the image of the application program and the second account.
优选的,所述第二账户可以为其账户空间设置相应的权限,所述账户空间的权限针对于关联于该账户空间下的所有应用程序。Preferably, the second account can set corresponding permissions for its account space, and the permissions of the account space are for all applications associated with the account space.
具体的,所述应用程序包括已安装的系统预置的应用程序和用户安装的应用程序。Specifically, the application programs include installed system preset application programs and user-installed application programs.
具体的,所述系统预置的应用程序为安装在/data/system/目录下的应用程序,所述用户安装的应用程序为安装在/data/data/目录下的应用程序。Specifically, the application programs preset by the system are the application programs installed in the directory /data/system/, and the application programs installed by the user are the application programs installed in the directory /data/data/.
进一步的,所述显示模块包括:Further, the display module includes:
显示单元:用于在用户界面上同时显示应用程序的镜像的快捷图标和其原应用程序的快捷图标。A display unit: used to simultaneously display the shortcut icon of the mirror image of the application program and the shortcut icon of the original application program on the user interface.
进一步的,所述装置还包括:Further, the device also includes:
运行模块:用于响应作用于配置完成产生的应用程序的镜像的快捷图标的运行指令,运行该应用程序。The running module is used for running the application program in response to the running instruction acting on the shortcut icon of the image of the application program generated after the configuration is completed.
另外,本发明还提供一种终端设备,用于实现所述配置应用程序,包括:In addition, the present invention also provides a terminal device for implementing the configuration application program, including:
响应模块:用于响应于用户操作指令,启动配置单元并确定需要进行所述配置的应用程序;Response module: used to respond to user operation instructions, start the configuration unit and determine the application program that needs to be configured;
生成模块:用于基于安卓系统的相应权限,生成所述应用程序的至少一个镜像;Generating module: used to generate at least one image of the application program based on the corresponding permissions of the Android system;
显示模块:用于在用户界面上对镜像进行显示,所述镜像使用区别于第一账户的第二账户应用程序图标;Display module: used to display the image on the user interface, and the image uses a second account application icon different from the first account;
加密模块:用于获取系统当前已设置的加密保护或为配置单元设置加密保护;Encryption module: used to obtain the encryption protection currently set by the system or set encryption protection for the configuration unit;
运行模块:用于响应作用于配置完成产生的应用程序的镜像的快捷图标的运行指令,运行该应用程序;Running module: used to run the application in response to the running instruction acting on the shortcut icon of the image of the application generated after the configuration is completed;
配置单元。hive.
与现有技术相比,本发明具备如下优点:Compared with the prior art, the present invention has the following advantages:
相比于安装不同版本的应用程序的方案,本发明可以实现双开的应用程序为同一个版本,保证应用程序在功能和操作上的一致性,减少用户为了使用同一个应用程序而去学习不同版本的应用程序所浪费的时间。相比于其他进行账号切换的方案,本发明直接将所需的应用程序双开,并分配了与系统账户隔离的第二账户空间的数据目录,将需双开的应用程序安装在该账户空间下,相对于系统而言是两个各自独立的应用程序,并且用户可以分别为每一个应用程序设置对应不同账号的设置,尤其对于社交软件而言,本发明的方法可以实现多个账号同时接收信息,避免了信息的遗漏。Compared with the solution of installing different versions of the application program, the present invention can realize the same version of the dual-open application program, ensure the consistency of the application program in function and operation, and reduce the need for users to learn different versions in order to use the same application program time wasted by the application. Compared with other schemes for account switching, the present invention directly double-opens the required applications, and allocates the data directory of the second account space isolated from the system account, and installs the applications that need to be double-opened under the account space. Compared with the system, there are two independent application programs, and the user can set settings corresponding to different accounts for each application program, especially for social software, the method of the present invention can realize multiple accounts to receive information at the same time, The omission of information is avoided.
总而言之,本发明可以满足用户对于单应用多账号切换的差异化需求。In a word, the present invention can satisfy users' differentiated requirements for switching between multiple accounts in a single application.
【附图说明】【Description of drawings】
图1为本发明应用程序的配置方法的一个实施例流程示意图;Fig. 1 is a schematic flow chart of an embodiment of the configuration method of the application program of the present invention;
图2为本发明应用程序的配置装置的一个实施例示意图;FIG. 2 is a schematic diagram of an embodiment of an application configuration device of the present invention;
图3为本发明的配置单元执行操作的一个实施例流程流程图;Fig. 3 is a flow chart of an embodiment of the operation performed by the configuration unit of the present invention;
图4为本发明的组成配置单元的一个实施例示意图;Fig. 4 is a schematic diagram of an embodiment of the composition configuration unit of the present invention;
图5为本发明用于实现应用程序的配置的终端设备模块的一个实施例示意图;FIG. 5 is a schematic diagram of an embodiment of a terminal device module for implementing application program configuration in the present invention;
图6为一个实施例配置完成的应用程序Gmail镜像与其原应用程序的图标;Fig. 6 is the icon of the application program Gmail mirror image that an embodiment configures and its former application program;
图7为一个实施例在用户界面上同时显示的配置完成的应用程序镜像与其原应用程序的图标。Fig. 7 is an embodiment of an embodiment showing the configured application program image and the icon of the original application program displayed on the user interface at the same time.
【具体实施方式】【detailed description】
下面结合附图和示例性实施例对本发明作进一步地描述,其中附图中相同的标号全部指的是相同的部件。此外,如果已知技术的详细描述对于示出本发明的特征是不必要的,则将其省略。The present invention will be further described below with reference to the accompanying drawings and exemplary embodiments, wherein the same reference numerals in the accompanying drawings all refer to the same components. Also, detailed descriptions of known arts will be omitted if they are unnecessary to illustrate the features of the present invention.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Additionally, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The expression "and/or" used herein includes all or any elements and all combinations of one or more associated listed items.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with their meaning in the context of the prior art, and unless specifically defined as herein, are not intended to be idealized or overly Formal meaning to explain.
本技术领域技术人员可以理解,这里所使用的“终端”、“终端设备”既包括无线信号接收器的设备,其仅具备无发射能力的无线信号接收器的设备,又包括接收和发射硬件的设备,其具有能够在双向通信链路上,执行双向通信的接收和发射硬件的设备。这种设备可以包括:蜂窝或其他通信设备,其具有单线路显示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备;PCS(Personal Communications Service,个人通信系统),其可以组合语音、数据处理、传真和/或数据通信能力;PDA(Personal Digital Assistant,个人数字助理),其可以包括射频接收器、寻呼机、互联网/内联网访问、网络浏览器、记事本、日历和/或GPS(Global Positioning System,全球定位系统)接收器;常规膝上型和/或掌上型计算机或其他设备,其具有和/或包括射频接收器的常规膝上型和/或掌上型计算机或其他设备。这里所使用的“终端”、“终端设备”可以是便携式、可运输、安装在交通工具(航空、海运和/或陆地)中的,或者适合于和/或配置为在本地运行,和/或以分布形式,运行在地球和/或空间的任何其他位置运行。这里所使用的“终端”、“终端设备”还可以是通信终端、上网终端、音乐/视频播放终端,例如可以是PDA、MID(Mobile Internet Device,移动互联网设备)和/或具有音乐/视频播放功能的移动电话,也可以是智能电视、机顶盒等设备。Those skilled in the art can understand that the "terminal" and "terminal equipment" used here not only include wireless signal receiver equipment, which only has wireless signal receiver equipment without transmission capabilities, but also include receiving and transmitting hardware. A device having receiving and transmitting hardware capable of performing bi-directional communication over a bi-directional communication link. Such equipment may include: cellular or other communication equipment, which has a single-line display or a multi-line display or a cellular or other communication equipment without a multi-line display; PCS (Personal Communications Service, personal communication system), which can combine voice, data Processing, facsimile and/or data communication capabilities; PDA (Personal Digital Assistant, Personal Digital Assistant), which may include radio frequency receiver, pager, Internet/Intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal", "terminal device" may be portable, transportable, installed in a vehicle (air, sea, and/or land), or adapted and/or configured to operate locally, and/or In distributed form, the operation operates at any other location on Earth and/or in space. The "terminal" and "terminal equipment" used here can also be communication terminals, Internet terminals, music/video playback terminals, such as PDAs, MIDs (Mobile Internet Devices, mobile Internet devices) and/or with music/video playback terminals. Functional mobile phones, smart TVs, set-top boxes and other devices.
本技术领域技术人员可以理解,这里所使用的远端网络设备,其包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云。在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。本发明的实施例中,远端网络设备、终端设备与WNS服务器之间可通过任何通信方式实现通信,包括但不限于,基于3GPP、LTE、WIMAX的移动通信、基于TCP/IP、UDP协议的计算机网络通信以及基于蓝牙、红外传输标准的近距无线传输方式。Those skilled in the art can understand that the remote network device used here includes, but is not limited to, a computer, a network host, a single network server, a set of multiple network servers, or a cloud formed by multiple servers. Here, the cloud is composed of a large number of computers or network servers based on cloud computing (Cloud Computing), wherein cloud computing is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets. In the embodiment of the present invention, the communication between the remote network equipment, the terminal equipment and the WNS server can be realized through any communication method, including but not limited to, mobile communication based on 3GPP, LTE, WIMAX, based on TCP/IP, UDP protocol Computer network communication and short-distance wireless transmission methods based on Bluetooth and infrared transmission standards.
用户界面泛指能够用于向智能终端发送所述控制指令的显示界面,例如,可以为Android系统的设置页面中的一个选项(或按键,由所述应用程序添加其中,下同),也可以是从桌面呼出的通知栏或者交互页面中的一个选项,还可以是所述应用程序的一个活动组件所构造的页面中的一个选项。The user interface generally refers to the display interface that can be used to send the control command to the smart terminal, for example, it can be an option (or button, added by the application program, the same below) in the setting page of the Android system, or It is an option in a notification bar or an interactive page called out from the desktop, or an option in a page constructed by an active component of the application program.
以下描述的Android系统中应用程序的配置方法,可应用于蜂窝式通信设备,例如应用于移动电话、平板电脑、智能可穿戴设备等等。在以下的描述中,以终端设备为例进行说明。The method for configuring application programs in the Android system described below can be applied to cellular communication devices, such as mobile phones, tablet computers, smart wearable devices, and the like. In the following description, a terminal device is taken as an example for illustration.
如图1所示,本发明一实施例应用程序的配置方法的流程示意图,包括以下步骤:As shown in Figure 1, the schematic flow chart of the configuration method of application program of an embodiment of the present invention, comprises the following steps:
步骤S100:响应于用户操作指令,启动配置单元并确定需要进行所述配置的应用程序。Step S100: In response to a user operation instruction, start the configuration unit and determine the application programs that need to be configured.
本发明的实现,适用于为Android系统提供并安装一个应用程序,所述配置单元即为所述应用程序,由其响应于用户在操作界面上的操作指令启动并向系统提供交互功能,完成本发明所述的方法。The realization of the present invention is suitable for providing and installing an application program for the Android system, and the configuration unit is the application program, which is started in response to the user's operation instruction on the operation interface and provides interactive functions to the system, completing the present invention invented the method described.
所述配置单元为基于Android for work功能的开发的应用程序,Androidforwork是谷歌推出的一项解决方案,旨在增加Android智能机对企业的吸引力。在启动配置单元之前,需要先获取系统当前已设置的加密保护或为配置单元设置加密保护。谷歌的Android for work功能只能应用于加密设备上,对于配置和数据都进行了加密并分开存放,若终端设备已设置密码保护,则输入该密码,所述密码保护特指在设备锁屏时进入设备进行操作所需的密码保护,可以是锁屏时的数字密码锁、图案密码锁、指纹密码锁等;若终端设备目前暂时没有设置任何的加密保护,需为配置单元设置加密保护,该加密保护可以只应用于启动配置单元时的密码保护,所述加密保护亦可以是数字密码锁、图案密码锁、指纹密码锁等。The configuration unit is an application program developed based on the function of Android for work. Android for work is a solution launched by Google, which aims to increase the attractiveness of Android smartphones to enterprises. Before starting the hive, you need to obtain the encryption protection currently set by the system or set the encryption protection for the hive. Google's Android for work function can only be applied to encrypted devices. The configuration and data are encrypted and stored separately. If the terminal device has been set for password protection, enter the password. The password protection refers to when the device is locked. The password protection required to enter the device for operation can be a digital password lock, a pattern password lock, a fingerprint password lock, etc. when the screen is locked; The encryption protection can only be applied to the password protection when the configuration unit is started, and the encryption protection can also be a digital code lock, a pattern code lock, a fingerprint code lock, and the like.
在启动配置单元之后,执行步骤S200。After the configuration unit is started, step S200 is executed.
步骤S200:基于安卓系统的相应权限,在安卓系统中为所述应用程序创建区别于第一账户的至少一个第二账户,生成相应的配置文件及第二账户空间。Step S200: Based on the corresponding permissions of the Android system, create at least one second account different from the first account for the application program in the Android system, and generate a corresponding configuration file and a second account space.
所述安卓系统的相应权限特指安卓系统的system权限,配置单元首次启动之后就进行配置,通过配置获取安卓系统的system权限。优选地,在完成第一次配置之后,若之后再次启动配置单元,配置单元只需检查是否已经获取到system权限,如果已获取到system权限则不用再进行配置,直接进行后续的处理,为应用程序创建区别于第一账户的至少一个第二账户,充分地利用有限的资源。其中,第一账户特指安卓系统中应用程序的默认账户,第二账户亦可以看作是第一账户的子账户。在创建第二账户之前,需要检查当前系统的多账户环境是否达到预设的多账户数量限制。升级到Android 5.0以上的终端设备,都全面支持Android的多账户模式,而每台终端设备的多账户数量限制会由于出厂厂家的更改而有所不同,所以需要检查当前系统的多账户环境是否达到预设的多账户数量限制。配置单元判断当前设备系统是否支持多账户模式的依据是配置文件config.xml中的config_multiuserMaximumUsers配置项,其取值为整型,决定着当前设备支持的最大账户上限,如果值为1,即不支持多账户,只能应用默认账户,如果值大于1,则表示该设备支持的最大账户数。The corresponding authority of the Android system specifically refers to the system authority of the Android system. After the configuration unit is started for the first time, it is configured, and the system authority of the Android system is obtained through configuration. Preferably, after the first configuration is completed, if the configuration unit is started again later, the configuration unit only needs to check whether the system permission has been obtained, and if the system permission has been obtained, no further configuration is required, and subsequent processing is directly performed for the application The program creates at least one second account different from the first account, making full use of limited resources. Wherein, the first account specifically refers to the default account of the application program in the Android system, and the second account can also be regarded as a sub-account of the first account. Before creating a second account, it is necessary to check whether the multi-account environment of the current system reaches the preset multi-account limit. The terminal devices upgraded to Android 5.0 or above fully support the multi-account mode of Android, and the multi-account limit of each terminal device will be different due to the change of the factory, so it is necessary to check whether the multi-account environment of the current system has reached Preset multi-account limit. The basis for the configuration unit to judge whether the current device system supports multi-account mode is the config_multiuserMaximumUsers configuration item in the configuration file config. For multiple accounts, only the default account can be applied. If the value is greater than 1, it means the maximum number of accounts supported by the device.
一种实施例中,在用户界面设有“添加新用户”的操作控件,用于接收用户创建第二账户的指令,响应于该指令检查系统当前的多账户环境,若多账户环境达到预设数量限制,则在用户界面上显示创建第二账户失败的提示信息,否则继续进行后续处理,生成第二账户相应的配置文件及第二账户空间。用户创建后,首先在/data/system/users/userlist.xml文件中保存新增加用户的id,并将用户信息保存至其下的用户id.xml文件中,比如默认账户id是00,所创建的第二账户的id是01,然后创建该账户的账户空间,账户空间是针对于每个账户的数据存储目录,每个账户都有独立的存储空间,上述第二账户的账户空间存储目录为/data/system/01/。另外,第一账户可以为第二账户设置相关权限,比如设置第二账户没有删除文件的权限,一种实施例中,若要卸载第二账户下的应用程序则需获取第一账户的许可,即需获取第一账户下的密码保护,再者,第一账户可以删除其所创建的第二账户,连并删除该账户的数据目录。In one embodiment, the user interface is provided with an "add new user" operation control, which is used to receive an instruction from the user to create a second account, and check the current multi-account environment of the system in response to the instruction. If the multi-account environment reaches the preset If the number is limited, a prompt message indicating that the creation of the second account failed will be displayed on the user interface; otherwise, follow-up processing will be continued to generate the corresponding configuration file and second account space for the second account. After the user is created, first save the id of the newly added user in the /data/system/users/userlist.xml file, and save the user information in the user id.xml file under it. For example, the default account id is 00, and the created The id of the second account is 01, and then create the account space of the account. The account space is the data storage directory for each account. Each account has an independent storage space. The account space storage directory of the second account is /data/system/01/. In addition, the first account can set relevant permissions for the second account, such as setting the second account without permission to delete files. In one embodiment, if you want to uninstall the application program under the second account, you need to obtain the permission of the first account. That is, it is necessary to obtain the password protection under the first account. Furthermore, the first account can delete the second account created by it, and delete the data directory of the account.
在创建完第二账户空间后,确定需要进行所述配置的应用程序。一种实施例中,在界面上显示上述已创建的新账户,用户点击该账户进入其操作界面,在操作界面上设有一个“配置应用程序”的按钮,用于接收选择需要进行配置的已安装的应用程序,用户点击该按钮,配置单元获取系统当前已安装的应用程序的信息,并通过弹窗列表形式将应用程序概况展现出来,其中已安装的应用程序分为系统预置的应用程序和用户安装的第三方应用程序,优选地,在弹窗列表中系统预置的应用程序和用户安装的第三方应用程序设有各自显示的区域,并且每一个应用都有一个相应的选择按钮,用户可以通过点击选择按钮选定某一个需要进行所述配置的应用程序,其中系统预置的应用程序特指安装在目录/data/system/下的应用程序,用户安装的第三方应用程序特指安装在目录/data/data/下的应用程序。然后执行步骤S300。After creating the second account space, determine the application programs that need to be configured. In one embodiment, the above-mentioned created new account is displayed on the interface, and the user clicks on the account to enter its operation interface. There is a button "configure application program" on the operation interface, which is used to receive and select the existing account that needs to be configured. Installed applications, the user clicks this button, and the configuration unit obtains the information of the currently installed applications in the system, and displays the application overview in the form of a pop-up window list, among which the installed applications are divided into system preset applications and third-party applications installed by the user, preferably, in the pop-up list, the system preset applications and the third-party applications installed by the user have respective display areas, and each application has a corresponding selection button, The user can select an application program that needs to be configured by clicking the selection button. The system preset application program refers to the application program installed in the directory /data/system/, and the third-party application program installed by the user refers to the Applications installed under the directory /data/data/. Then step S300 is executed.
步骤S300:基于安卓系统的相应权限,生成所述应用程序的至少一个镜像。Step S300: Generate at least one image of the application program based on the corresponding permissions of the Android system.
在选定了需要进行所述配置的应用程序后,配置单元基于安卓系统的相应权限,生成所述应用程序的至少一个镜像,即获取所选定的应用程序的安装包信息并将安装包信息进行复制,生成该应用程序的镜像。然后执行步骤S400。After selecting the application program that needs to be configured, the configuration unit generates at least one mirror image of the application program based on the corresponding permissions of the Android system, that is, obtains the installation package information of the selected application program and converts the installation package information Make a copy to generate a mirror image of the application. Then step S400 is executed.
步骤S400:在所述第二账户空间配置所述应用程序的镜像,建立所述应用程序的镜像与所述第二账户的关联。Step S400: configure the image of the application program in the space of the second account, and establish an association between the image of the application program and the second account.
一种实施例中,若用户选择了已安装的应用程序Facebook,其原安装路径为/data/data/com.facebook.katana/,对应着系统的默认账户,将其配置并关联到第二账户空间之后,其安装路径为/data/system/01/com.facebook.katana/,选择系统预置应用程序其原理亦相同,另一种实施例中若用户选择了应用程序Gmail,其原安装路径为/data/system/com.google.android.gm/,对应着系统的默认账户,将其配置并关联到第二账户空间之后,其安装路径为/data/system/01/com.google.android.gm/。In one embodiment, if the user selects the installed application program Facebook, its original installation path is /data/data/com.facebook.katana/, which corresponds to the default account of the system, and it is configured and associated with the second account After the space, its installation path is /data/system/01/com.facebook.katana/, and the principle of selecting the system preset application program is the same. In another embodiment, if the user selects the application program Gmail, its original installation path It is /data/system/com.google.android.gm/, which corresponds to the default account of the system. After it is configured and associated with the second account space, its installation path is /data/system/01/com.google.android .gm/.
另外,第二账户可以为其账户空间设置相关权限,该权限针对关联于该账户空间下的所有应用程序,一种实施例中,设置该账户空间没有发送短信的权限,则该账户空间下的所有应用程序均无法进行发送短信,避免了在某些场合下触发应用程序误发短信的情况。然后执行步骤S500。In addition, the second account can set relevant permissions for its account space, and the permissions are for all applications associated with the account space. All applications are unable to send text messages, which avoids triggering applications to send text messages by mistake in some occasions. Then execute step S500.
步骤S500:在用户界面上对镜像进行显示,所述镜像使用区别于第一账户的第二账户应用程序图标。Step S500: Display the mirror image on the user interface, and the mirror image uses a second account application icon different from that of the first account.
完成上述步骤之后,如图7所示,在用户界面上同时显示配置完成的应用程序镜像的快捷图标和其原应用程序的快捷图标,并且所述镜像使用区别于第一账户的第二账户应用程序图标。例如在应用程序镜像的快捷图标右下角显示有一个公文包的LOGO,表示该应用程序镜像对应于所创建的第二账户,并且该账户下的应用程序是在工作上使用的,如图6所示,配置完成的应用程序Gmail镜像与其原应用程序的快捷图标在右下角有区别于第一账户的特征标识,方便用户快速地分辨并使用所需的应用程序。然后执行步骤S600。After the above steps are completed, as shown in Figure 7, the shortcut icon of the configured application mirroring and the shortcut icon of its original application are simultaneously displayed on the user interface, and the mirroring uses a second account application that is different from the first account. program icon. For example, a logo of a briefcase is displayed in the lower right corner of the shortcut icon of the application image, indicating that the application image corresponds to the created second account, and the application under this account is used for work, as shown in Figure 6 It shows that the configured application Gmail image and the shortcut icon of the original application have a characteristic identification in the lower right corner that is different from that of the first account, which is convenient for users to quickly identify and use the required application. Then step S600 is executed.
步骤S600:响应作用于配置完成产生的应用程序的镜像的快捷图标的运行指令,运行该应用程序。Step S600: Run the application program in response to the running instruction acting on the shortcut icon of the mirror image of the application program generated after the configuration is completed.
用户在操作界面上运行应用程序的镜像,该应用程序镜像与原应用程序的版本相同,运行后用户可登陆不同于原应用程序账号的其它账号,并且可设置与原应用程序不同的设置,满足用户的差异化需求。The user runs the mirror image of the application program on the operation interface. The version of the application program mirror image is the same as that of the original application program. Differentiated needs of users.
相比于安装不同版本的应用程序的方案,本发明可以实现双开的应用程序为同一个版本,保证应用程序在功能和操作上的一致性,减少用户为了使用同一个应用程序而去学习不同版本的应用程序所浪费的时间。相比于其他进行账号切换的方案,本发明直接将所需的应用程序双开,并分配了与系统账户隔离的第二账户空间的数据目录,将需双开的应用程序安装在该账户空间下,相对于系统而言是两个各自独立的应用程序,并且用户可以分别为每一个应用程序设置对应不同账号的设置,尤其对于社交软件而言,本发明的方法可以实现多个账号同时接收信息,避免了信息的遗漏。Compared with the solution of installing different versions of the application program, the present invention can realize the same version of the dual-open application program, ensure the consistency of the application program in function and operation, and reduce the need for users to learn different versions in order to use the same application program time wasted by the application. Compared with other schemes for account switching, the present invention directly double-opens the required applications, and allocates the data directory of the second account space isolated from the system account, and installs the applications that need to be double-opened under the account space. Compared with the system, there are two independent application programs, and the user can set settings corresponding to different accounts for each application program, especially for social software, the method of the present invention can realize multiple accounts to receive information at the same time, The omission of information is avoided.
相应地,如图2所示,本发明还提供一种应用程序的配置装置,包括:Correspondingly, as shown in FIG. 2, the present invention also provides an application configuration device, including:
响应模块100:用于响应于用户操作指令,启动配置单元并确定需要进行所述配置的应用程序。Response module 100: configured to respond to user operation instructions, start the configuration unit and determine the application programs that need to be configured.
本发明的实现,适用于为Android系统提供并安装一个应用程序,所述配置单元即为所述应用程序,由其响应于用户在操作界面上的操作指令启动并向系统提供交互功能,完成本发明所述的装置的功能。The realization of the present invention is suitable for providing and installing an application program for the Android system, and the configuration unit is the application program, which is started in response to the user's operation instruction on the operation interface and provides interactive functions to the system, completing the present invention function of the device described in the invention.
所述配置单元为基于Android for work功能的开发的应用程序,Android forwork是谷歌推出的一项解决方案,旨在增加Android智能机对企业的吸引力。在启动配置单元之前,装置中的加密模块先获取系统当前已设置的加密保护或为配置单元设置加密保护。谷歌的Android for work功能只能应用于加密设备上,对于配置和数据都进行了加密并分开存放,若终端设备已设置密码保护,则输入该密码,所述密码保护特指在设备锁屏时进入设备进行操作所需的密码保护,可以是锁屏时的数字密码锁、图案密码锁、指纹密码锁等;若终端设备目前暂时没有设置任何的加密保护,需为配置单元设置加密保护,该加密保护可以只应用于启动配置单元时的密码保护,所述加密保护亦可以是数字密码锁、图案密码锁、指纹密码锁等。The configuration unit is an application program developed based on the function of Android for work. Android for work is a solution launched by Google, which aims to increase the attractiveness of Android smartphones to enterprises. Before starting the configuration unit, the encryption module in the device first obtains the encryption protection currently set by the system or sets the encryption protection for the configuration unit. Google's Android for work function can only be applied to encrypted devices. The configuration and data are encrypted and stored separately. If the terminal device has been set for password protection, enter the password. The password protection refers to when the device is locked. The password protection required to enter the device for operation can be a digital password lock, a pattern password lock, a fingerprint password lock, etc. when the screen is locked; The encryption protection can only be applied to the password protection when the configuration unit is started, and the encryption protection can also be a digital code lock, a pattern code lock, a fingerprint code lock, and the like.
在启动配置单元之后,首先配置单元基于安卓系统的相应权限,其创建子单元在安卓系统中为所述应用程序创建区别于第一账户的至少一个第二账户,生成相应的配置文件及第二账户空间。After starting the configuration unit, first the configuration unit is based on the corresponding permissions of the Android system, and its creation subunit creates at least one second account different from the first account for the application program in the Android system, and generates the corresponding configuration file and the second account. account space.
所述安卓系统的相应权限特指安卓系统的system权限,配置单元首次启动之后就进行配置,通过配置获取安卓系统的system权限。优选地,在完成第一次配置之后,若之后再次启动配置单元,配置单元只需检查是否已经获取到system权限,如果已获取到system权限则不用再进行配置,直接进行后续的处理,为应用程序创建区别于第一账户的至少一个第二账户,充分地利用有限的资源。其中,第一账户特指安卓系统中应用程序的默认账户,第二账户亦可以看作是第一账户的子账户,在创建第二账户之前,需要检查当前系统的多账户环境是否达到预设的多账户数量限制,升级到Android 5.0以上的终端设备,都全面支持Android的多账户模式,而每台终端设备的多账户数量限制会由于出厂厂家的更改而有所不同,所以需要检查当前系统的多账户环境是否达到预设的多账户数量限制。配置单元判断当前设备系统是否支持多账户模式的依据是配置文件config.xml中的config_multiuserMaximumUsers配置项,其取值为整型,决定着当前设备支持的最大账户上限,如果值为1,即不支持多账户,只能应用默认账户,如果值大于1,则表示该设备支持的最大账户数。The corresponding authority of the Android system specifically refers to the system authority of the Android system. After the configuration unit is started for the first time, it is configured, and the system authority of the Android system is obtained through configuration. Preferably, after the first configuration is completed, if the configuration unit is started again later, the configuration unit only needs to check whether the system permission has been obtained, and if the system permission has been obtained, no further configuration is required, and subsequent processing is directly performed for the application The program creates at least one second account different from the first account, making full use of limited resources. Among them, the first account specifically refers to the default account of the application program in the Android system, and the second account can also be regarded as a sub-account of the first account. Before creating the second account, it is necessary to check whether the multi-account environment of the current system reaches the default The multi-account limit of each terminal device, the terminal device upgraded to Android 5.0 or above, fully supports the multi-account mode of Android, and the multi-account limit of each terminal device will be different due to the change of the factory, so you need to check the current system Whether your multi-account environment has reached the preset limit on the number of multi-accounts. The basis for the configuration unit to judge whether the current device system supports multi-account mode is the config_multiuserMaximumUsers configuration item in the configuration file config. For multiple accounts, only the default account can be applied. If the value is greater than 1, it means the maximum number of accounts supported by the device.
一种实施例中,配置单元的检查子单元在其用户界面上设有“添加新用户”的操作控件,用于接收用户创建第二账户的指令,响应于该指令检查系统当前的多账户环境,若多账户环境达到预设数量限制,则在用户界面上显示创建第二账户失败的提示信息,否则继续进行后续处理,生成第二账户相应的配置文件及第二账户空间。用户创建后,首先在/data/system/users/userlist.xml文件中保存新增加用户的id,并将用户信息保存至其下的用户id.xml文件中,比如默认账户id是00,所创建的第二账户的id是01。然后创建该账户的账户空间,账户空间是针对于每个账户的数据存储目录,每个账户都有独立的存储空间,上述第二账户的账户空间存储目录为/data/system/01/。另外,第一账户可以为第二账户设置相关权限,比如设置第二账户没有删除文件的权限,一种实施例中,若要卸载第二账户下的应用程序则需获取第一账户的许可,即需获取第一账户下的密码保护,再者,第一账户可以删除其所创建的第二账户,连并删除该账户的数据目录。In one embodiment, the check subunit of the configuration unit is provided with an operation control of "add new user" on its user interface, which is used to receive an instruction from the user to create a second account, and check the current multi-account environment of the system in response to the instruction , if the multi-account environment reaches the preset quantity limit, a prompt message of failure to create the second account will be displayed on the user interface; otherwise, follow-up processing will be continued to generate the configuration file and the second account space corresponding to the second account. After the user is created, first save the id of the newly added user in the /data/system/users/userlist.xml file, and save the user information in the user id.xml file under it. For example, the default account id is 00, and the created The id of the second account is 01. Then create the account space of the account. The account space is the data storage directory for each account. Each account has an independent storage space. The account space storage directory of the second account is /data/system/01/. In addition, the first account can set relevant permissions for the second account, such as setting the second account without permission to delete files. In one embodiment, if you want to uninstall the application program under the second account, you need to obtain the permission of the first account. That is, it is necessary to obtain the password protection under the first account. Furthermore, the first account can delete the second account created by it, and delete the data directory of the account.
在创建完第二账户空间后,确定需要进行所述配置的应用程序。一种实施例中,在界面上显示上述已创建的新账户,用户点击该账户进入其操作界面,在操作界面上设有一个“配置应用程序”的按钮,用于接收选择需要进行配置的已安装的应用程序,用户点击该按钮,配置单元获取系统当前已安装的应用程序的信息,并通过弹窗列表形式将应用程序概况展现出来,其中已安装的应用程序分为系统预置的应用程序和用户安装的第三方应用程序,优选地,在弹窗列表中系统预置的应用程序和用户安装的第三方应用程序设有各自显示的区域,并且每一个应用都有一个相应的选择按钮,用户可以通过点击选择按钮选定某一个需要进行所述配置的应用程序,其中系统预置的应用程序特指安装在目录/data/system/下的应用程序,用户安装的第三方应用程序特指安装在目录/data/data/下的应用程序。然后由生成模块200执行操作。After creating the second account space, determine the application programs that need to be configured. In one embodiment, the above-mentioned created new account is displayed on the interface, and the user clicks on the account to enter its operation interface. There is a button "configure application program" on the operation interface, which is used to receive and select the existing account that needs to be configured. Installed applications, the user clicks this button, and the configuration unit obtains the information of the currently installed applications in the system, and displays the application overview in the form of a pop-up window list, among which the installed applications are divided into system preset applications and third-party applications installed by the user, preferably, in the pop-up list, the system preset applications and the third-party applications installed by the user have respective display areas, and each application has a corresponding selection button, The user can select an application program that needs to be configured by clicking the selection button. The system preset application program refers to the application program installed in the directory /data/system/, and the third-party application program installed by the user refers to the Applications installed under the directory /data/data/. Operations are then performed by the generation module 200 .
生成模块200:用于基于安卓系统的相应权限,生成所述应用程序的至少一个镜像。Generating module 200: for generating at least one image of the application program based on the corresponding permissions of the Android system.
在选定了需要进行所述配置的应用程序后,配置单元基于安卓系统的相应权限,生成所述应用程序的至少一个镜像,并且生成模块200中的关联单元执行在所述第二账户空间配置所述应用程序的镜像,建立所述应用程序的镜像与所述第二账户的关联。一种实施例中,若用户选择了已安装的应用程序Facebook,其原安装路径为/data/data/com.facebook.katana/,对应着系统应用程序的默认账户,将其配置并关联到第二账户空间之后,其安装路径为/data/system/01/com.facebook.katana/;选择系统预置应用程序其原理亦相同,另一种实施例中,若用户选择了配置应用程序Gmail,其原安装路径为/data/system/com.google.android.gm/,对应着系统应用程序的默认账户,将其配置并关联到第二账户空间之后,其安装路径为/data/system/01/com.google.android.gm/。After the application program that needs to be configured is selected, the configuration unit generates at least one mirror image of the application program based on the corresponding permissions of the Android system, and the association unit in the generation module 200 performs configuration in the second account space. For the mirror image of the application program, establish an association between the mirror image of the application program and the second account. In one embodiment, if the user selects the installed application program Facebook, its original installation path is /data/data/com.facebook.katana/, corresponding to the default account of the system application program, which is configured and associated with the first After the second account space, its installation path is /data/system/01/com.facebook.katana/; the principle of selecting the system preset application program is also the same. In another embodiment, if the user selects the configuration application program Gmail, Its original installation path is /data/system/com.google.android.gm/, which corresponds to the default account of the system application. After it is configured and associated with the second account space, its installation path is /data/system/01 /com.google.android.gm/.
另外,第二账户可以为其账户空间设置相关权限,该权限针对关联于该账户空间下的所有应用程序,一种实施例中,设置该账户空间没有发送短信的权限,则该账户空间下的所有应用程序均无法进行发送短信,避免了在某些场合下触发应用程序误发短信的情况。然后由显示模块300执行操作。In addition, the second account can set relevant permissions for its account space, and the permissions are for all applications associated with the account space. All applications are unable to send text messages, which avoids triggering applications to send text messages by mistake in some occasions. Operations are then performed by the display module 300 .
显示模块300:用于在用户界面上对镜像进行显示,所述镜像使用区别于第一账户的第二账户应用程序图标。Display module 300: configured to display the mirror image on the user interface, and the mirror image uses a second account application icon different from that of the first account.
所述装置完成上述处理之后,如图7所示,在用户界面上同时显示配置完成的应用程序镜像的快捷图标和其原应用程序的快捷图标,并且所述镜像使用区别于第一账户的第二账户应用程序图标,例如在应用程序镜像的快捷图标右下角显示有一个公文包的LOGO,表示该应用程序镜像对应于所创建的第二账户,并且该账户下的应用程序是在工作上使用的。如图6所示,配置完成的应用程序Gmail镜像与其原应用程序的快捷图标在右下角有区别于第一账户的特征标识,方便用户快速地分辨并使用所需的应用程序。然后由运行模块400执行操作。After the device completes the above processing, as shown in FIG. 7 , the shortcut icon of the configured application program image and the shortcut icon of its original application program are displayed on the user interface at the same time, and the mirror image uses the first account that is different from the first account. The application icon of the second account, for example, a briefcase logo is displayed in the lower right corner of the shortcut icon of the application image, indicating that the application image corresponds to the created second account, and the application under this account is used for work of. As shown in Figure 6, the configured application Gmail mirror image and the shortcut icon of the original application program have a characteristic identification different from the first account in the lower right corner, which is convenient for the user to quickly identify and use the required application program. Operations are then performed by the execution module 400 .
运行模块400:响应作用于配置完成产生的应用程序的镜像的快捷图标的运行指令,运行该应用程序。The running module 400: responding to the running instruction acting on the shortcut icon of the mirror image of the application program generated after the configuration is completed, and running the application program.
用户在操作界面上运行应用程序的镜像,该应用程序镜像与原应用程序的版本相同,运行后用户可登陆不同于原应用程序账号的其它账号,并且可设置与原应用程序不同的设置,满足用户的差异化需求。The user runs the mirror image of the application program on the operation interface. The version of the application program mirror image is the same as that of the original application program. Differentiated needs of users.
相比于安装不同版本的应用程序的方案,本发明可以实现双开的应用程序为同一个版本,保证应用程序在功能和操作上的一致性,减少用户为了使用同一个应用程序而去学习不同版本的应用程序所浪费的时间。相比于其他进行账号切换的方案,本发明直接将所需的应用程序双开,并分配了与系统账户隔离的第二账户空间的数据目录,将需双开的应用程序安装在该账户空间下,相对于系统而言是两个各自独立的应用程序,并且用户可以分别为每一个应用程序设置对应不同账号的设置,尤其对于社交软件而言,本发明的方法可以实现多个账号同时接收信息,避免了信息的遗漏。Compared with the solution of installing different versions of the application program, the present invention can realize the same version of the dual-open application program, ensure the consistency of the application program in function and operation, and reduce the need for users to learn different versions in order to use the same application program time wasted by the application. Compared with other schemes for account switching, the present invention directly double-opens the required applications, and allocates the data directory of the second account space isolated from the system account, and installs the applications that need to be double-opened under the account space. Compared with the system, there are two independent application programs, and the user can set settings corresponding to different accounts for each application program, especially for social software, the method of the present invention can realize multiple accounts to receive information at the same time, The omission of information is avoided.
总而言之,本发明可以满足用户对于单应用多账号切换的差异化需求。In a word, the present invention can satisfy users' differentiated requirements for switching between multiple accounts in a single application.
相应地,本发明还提供一种实现应用程序配置的终端设备,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:Correspondingly, the present invention also provides a terminal device for implementing application program configuration, as shown in FIG. 5 , for the convenience of description, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to this Invention Examples Methods Section. The terminal can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the terminal as a mobile phone as an example:
图5示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图5,手机包括:基带处理模块510、存储器520、输入单元530、显示单元540、传感器550、音频电路560、无线保真(wireless fidelity,WiFi)模块570、处理器580、以及电源590等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 shows a block diagram of a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to FIG. 5 , the mobile phone includes: a baseband processing module 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (wireless fidelity, WiFi) module 570, a processor 580, and a power supply 590, etc. part. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 is not limited to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
下面结合图5对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 5:
基带处理模块510可用于合成即将发射的基带信号,或对接收到的基带信号进行解码。具体地说,就是发射时把音频信号编译成用来发射的基带码;接收时,把收到的基带码解译为音频信号。同时,也负责地址信息(手机号、网站地址)、文字信息(短讯文字、网站文字)、图片信息(彩信)的编译。The baseband processing module 510 can be used to synthesize the baseband signal to be transmitted, or decode the received baseband signal. Specifically, when transmitting, the audio signal is compiled into a baseband code for transmission; when receiving, the received baseband code is interpreted as an audio signal. At the same time, it is also responsible for the compilation of address information (mobile phone number, website address), text information (SMS text, website text), and picture information (MMS).
存储器520可用于存储软件程序以及模块,处理器580通过运行存储在存储器520的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 520 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 520 . The memory 520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元530可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元530可包括触控面板531以及其他输入设备532。触控面板531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上或在触控面板531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。除了触控面板531,输入单元530还可以包括其他输入设备532。具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 530 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532 . The touch panel 531, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 531 or near the touch panel 531). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 531 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 531 , the input unit 530 may also include other input devices 532 . Specifically, other input devices 532 may include but not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and the like.
显示单元540可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元540可包括显示面板541,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板541。进一步的,触控面板531可覆盖显示面板541,当触控面板531检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板541上提供相应的视觉输出。虽然在图5中,触控面板531与显示面板541是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板531与显示面板541集成而实现手机的输入和输出功能。The display unit 540 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 540 may include a display panel 541. Optionally, the display panel 541 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near it, it transmits to the processor 580 to determine the type of the touch event, and then the processor 580 determines the type of the touch event according to the touch event. The type provides a corresponding visual output on the display panel 541 . Although in FIG. 5 , the touch panel 531 and the display panel 541 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.
手机还可包括至少一种传感器550,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板541的亮度,接近传感器可在手机移动到耳边时,关闭显示面板541和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 541 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.
音频电路560、扬声器561,传声器562可提供用户与手机之间的音频接口。音频电路560可将接收到的音频数据转换后的电信号,传输到扬声器561,由扬声器561转换为声音信号输出;另一方面,传声器562将收集的声音信号转换为电信号,由音频电路560接收后转换为音频数据,再将音频数据输出处理器580处理后,经RF电路510以发送给比如另一手机,或者将音频数据输出至存储器520以便进一步处理。The audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the mobile phone. The audio circuit 560 can transmit the electrical signal converted from the received audio data to the loudspeaker 561, and the loudspeaker 561 converts it into an audio signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 580, and then sent to another mobile phone through the RF circuit 510, or the audio data is output to the memory 520 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块570,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 570, which provides users with wireless broadband Internet access. Although Fig. 5 shows a WiFi module 570, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.
处理器580是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器520内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器580可包括一个或多个处理单元;优选的,处理器580可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器580中。The processor 580 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 520, and calling data stored in the memory 520, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 580 .
手机还包括给各个部件供电的电源590(比如电池),优选的,电源可以通过电源管理系统与处理器580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 590 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 580 through the power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.
在本发明实施例中,该终端所包括的处理器580还具有以下功能:In the embodiment of the present invention, the processor 580 included in the terminal also has the following functions:
响应于用户操作指令,启动配置单元并确定需要进行所述配置的应用程序。本发明的实现,适用于为Android系统提供并安装一个应用程序,所述配置单元即为所述应用程序,由其响应于用户在操作界面上的操作指令启动并向系统提供交互功能。所述配置单元为基于Android for work功能的开发的应用程序。在启动配置单元之前,需要先获取系统当前已设置的加密保护或为配置单元设置加密保护,若终端设备已设置密码保护,则输入该密码,所述密码保护特指在设备锁屏时进入设备进行操作所需的密码保护,可以是锁屏时的数字密码锁、图案密码锁、指纹密码锁等;若终端设备目前暂时没有设置任何的加密保护,需为配置单元设置加密保护,该加密保护可以只应用于启动配置单元时的密码保护,所述加密保护亦可以是数字密码锁、图案密码锁、指纹密码锁等。In response to the user's operation instruction, start the configuration unit and determine the application programs that need to be configured. The implementation of the present invention is suitable for providing and installing an application program for the Android system, and the configuration unit is the application program, which is started in response to a user's operation instruction on the operation interface and provides interactive functions to the system. The configuration unit is an application developed based on the Android for work function. Before starting the configuration unit, you need to obtain the encryption protection currently set by the system or set encryption protection for the configuration unit. If the terminal device has password protection, enter the password. The password protection refers to entering the device when the device is locked. The password protection required for operation can be a digital password lock, a pattern password lock, a fingerprint password lock, etc. when the screen is locked; It can only be applied to the password protection when the configuration unit is started, and the encryption protection can also be a digital password lock, a pattern password lock, a fingerprint password lock, and the like.
基于安卓系统的相应权限,在安卓系统中为所述应用程序创建区别于第一账户的至少一个第二账户,生成相应的配置文件及第二账户空间。所述安卓系统的相应权限特指安卓系统的system权限,配置单元首次启动之后就进行配置,通过配置获取安卓系统的system权限。优选地,在完成第一次配置之后,若之后再次启动配置单元,配置单元只需检查是否已经获取到system权限,如果已获取到system权限则不用再进行配置,直接进行后续的处理,为应用程序创建区别于第一账户的至少一个第二账户,充分利用有限的资源。其中,第一账户特指安卓系统中应用程序的默认账户,第二账户亦可以看作是第一账户的子账户,在创建第二账户之前,需要检查当前系统的多账户环境是否达到预设的多账户数量限制,升级到Android 5.0以上的终端设备,都全面支持Android的多账户模式,而每台终端设备的多账户数量限制会由于出厂厂家的更改而有所不同,所以需要检查当前系统的多账户环境是否达到预设的多账户数量限制。配置单元判断当前设备系统是否支持多账户模式的依据是配置文件config.xml中的config_multiuserMaximumUsers配置项,其取值为整型,决定着当前设备支持的最大账户上限,如果值为1,即不支持多账户,只能应用默认账户,如果值大于1,则表示该设备支持的最大账户数。一种实施例中,在用户界面设有“添加新用户”的操作控件,用于接收用户创建第二账户的指令,响应于该指令检查系统当前的多账户环境,若多账户环境达到预设数量限制,则在用户界面上显示创建第二账户失败的提示信息,否则继续进行后续处理,生成第二账户相应的配置文件及第二账户空间。用户创建后,首先在/data/system/users/userlist.xml文件中保存新增加用户的id,并将用户信息保存至其下的用户id.xml文件中,比如默认账户id是00,所创建的第二账户的id是01。然后创建该账户的账户空间,账户空间是针对于每个账户的数据存储目录,每个账户都有独立的存储空间,上述第二账户的账户空间存储目录为/data/system/01/。另外,第一账户可以为第二账户设置相关权限,比如设置第二账户没有删除文件的权限,一种实施例中,若要卸载第二账户下的应用程序则需获取第一账户的许可,即需获取第一账户下的密码保护,,再者,第一账户可以删除其所创建的第二账户,连并删除该账户的数据目录。在创建完第二账户空间后,确定需要进行所述配置的应用程序。一种实施例中,在界面上显示上述已创建的新账户,用户点击该账户进入其操作界面,在操作界面上设有一个“配置应用程序”的按钮,用于接收选择需要进行配置的已安装的应用程序,用户点击该按钮,配置单元获取系统当前已安装的应用程序的信息,并通过弹窗列表形式将应用程序概况展现出来,其中已安装的应用程序分为系统预置的应用程序和用户安装的第三方应用程序,优选地,在弹窗列表中系统预置的应用程序和用户安装的第三方应用程序设有各自显示的区域,并且每一个应用都有一个相应的选择按钮,用户可以通过点击选择按钮选定某一个需要进行所述配置的应用程序,其中系统预置的应用程序特指安装在目录/data/system/下的应用程序,用户安装的第三方应用程序特指安装在目录/data/data/下的应用程序。Based on the corresponding permissions of the Android system, at least one second account different from the first account is created for the application program in the Android system, and a corresponding configuration file and a second account space are generated. The corresponding authority of the Android system specifically refers to the system authority of the Android system. After the configuration unit is started for the first time, it is configured, and the system authority of the Android system is obtained through configuration. Preferably, after the first configuration is completed, if the configuration unit is started again later, the configuration unit only needs to check whether the system permission has been obtained, and if the system permission has been obtained, no further configuration is required, and subsequent processing is directly performed for the application The program creates at least one second account different from the first account, making full use of limited resources. Among them, the first account specifically refers to the default account of the application program in the Android system, and the second account can also be regarded as a sub-account of the first account. Before creating the second account, it is necessary to check whether the multi-account environment of the current system reaches the default The multi-account limit of each terminal device, the terminal device upgraded to Android 5.0 or above, fully supports the multi-account mode of Android, and the multi-account limit of each terminal device will be different due to the change of the factory, so you need to check the current system Whether your multi-account environment has reached the preset limit on the number of multi-accounts. The basis for the configuration unit to judge whether the current device system supports multi-account mode is the config_multiuserMaximumUsers configuration item in the configuration file config. For multiple accounts, only the default account can be applied. If the value is greater than 1, it means the maximum number of accounts supported by the device. In one embodiment, the user interface is provided with an "add new user" operation control, which is used to receive an instruction from the user to create a second account, and check the current multi-account environment of the system in response to the instruction. If the multi-account environment reaches the preset If the number is limited, a prompt message indicating that the creation of the second account failed will be displayed on the user interface; otherwise, follow-up processing will be continued to generate the corresponding configuration file and second account space for the second account. After the user is created, first save the id of the newly added user in the /data/system/users/userlist.xml file, and save the user information in the user id.xml file under it. For example, the default account id is 00, and the created The id of the second account is 01. Then create the account space of the account. The account space is the data storage directory for each account. Each account has an independent storage space. The account space storage directory of the second account is /data/system/01/. In addition, the first account can set relevant permissions for the second account, such as setting the second account without permission to delete files. In one embodiment, if you want to uninstall the application program under the second account, you need to obtain the permission of the first account. That is, it is necessary to obtain the password protection under the first account. Furthermore, the first account can delete the second account created by it, and delete the data directory of the account. After creating the second account space, determine the application programs that need to be configured. In one embodiment, the above-mentioned created new account is displayed on the interface, and the user clicks on the account to enter its operation interface. There is a button "configure application program" on the operation interface, which is used to receive and select the existing account that needs to be configured. Installed applications, the user clicks this button, and the configuration unit obtains the information of the currently installed applications in the system, and displays the application overview in the form of a pop-up window list, among which the installed applications are divided into system preset applications and third-party applications installed by the user, preferably, in the pop-up list, the system preset applications and the third-party applications installed by the user have respective display areas, and each application has a corresponding selection button, The user can select an application program that needs to be configured by clicking the selection button. The system preset application program refers to the application program installed in the directory /data/system/, and the third-party application program installed by the user refers to the Applications installed under the directory /data/data/.
基于安卓系统的相应权限,生成所述应用程序的至少一个镜像。在选定了需要进行所述配置的应用程序后,配置单元基于安卓系统的相应权限,生成所述应用程序的至少一个镜像,即获取所选定的应用程序的安装包信息并将安装包信息进行复制,生成该应用程序的镜像。Based on the corresponding permissions of the Android system, at least one image of the application program is generated. After selecting the application program that needs to be configured, the configuration unit generates at least one mirror image of the application program based on the corresponding permissions of the Android system, that is, obtains the installation package information of the selected application program and converts the installation package information Make a copy to generate a mirror image of the application.
在所述第二账户空间配置所述应用程序的镜像,建立所述应用程序的镜像与所述第二账户的关联。一种实施例中,若用户选择了已安装的应用程序Facebook,其原安装路径为/data/data/com.facebook.katana/,对应着系统应用程序的默认账户,将其配置并关联到第二账户空间之后,其安装路径为/data/system/01/com.facebook.katana/,选择系统预置应用程序其原理亦相同,另一种实施例中若用户选择了配置应用程序Gmail,其原安装路径为/data/system/com.google.android.gm/,对应着系统应用程序的默认账户,将其配置并关联到第二账户空间之后,其安装路径为/data/system/01/com.google.android.gm/。另外,第二账户可以为其账户空间设置相关权限,该权限针对关联于该账户空间下的所有应用程序,一种实施例中,设置该账户空间没有发送短信的权限,则该账户空间下的所有应用程序均无法进行发送短信,避免了在某些场合下触发应用程序误发短信的情况。The image of the application is configured in the second account space, and an association between the image of the application and the second account is established. In one embodiment, if the user selects the installed application program Facebook, its original installation path is /data/data/com.facebook.katana/, corresponding to the default account of the system application program, which is configured and associated with the first After the second account space, its installation path is /data/system/01/com.facebook.katana/, and the principle of selecting the system preset application program is the same. In another embodiment, if the user selects the configuration application program Gmail, its The original installation path is /data/system/com.google.android.gm/, which corresponds to the default account of the system application. After it is configured and associated with the second account space, its installation path is /data/system/01/ com.google.android.gm/. In addition, the second account can set relevant permissions for its account space, and the permissions are for all applications associated with the account space. All applications are unable to send text messages, which avoids triggering applications to send text messages by mistake in some occasions.
在用户界面上对镜像进行显示,所述镜像使用区别于第一账户的第二账户应用程序图标。完成上述步骤之后,如图7所示,在用户界面上同时显示配置完成的应用程序镜像的快捷图标和其原应用程序的快捷图标,并且所述镜像使用区别于第一账户的第二账户应用程序图标,例如在应用程序镜像的快捷图标右下角显示有一个公文包的LOGO,表示该应用程序镜像对应于所创建的第二账户,并且该账户下的应用程序是在工作上使用的,如图6所示,配置完成的应用程序Gmail镜像与其原应用程序的快捷图标在右下角有区别于第一账户的特征标识,方便用户快速地分辨并使用所需的应用程序。The mirror image is displayed on the user interface, and the mirror image uses an application program icon of the second account different from that of the first account. After the above steps are completed, as shown in Figure 7, the shortcut icon of the configured application mirroring and the shortcut icon of its original application are simultaneously displayed on the user interface, and the mirroring uses a second account application that is different from the first account. The program icon, for example, a briefcase logo is displayed in the lower right corner of the shortcut icon of the application image, indicating that the application image corresponds to the created second account, and the application under this account is used for work, such as As shown in Figure 6, the configured application Gmail mirror image and the shortcut icon of the original application program have a characteristic identification different from the first account in the lower right corner, which is convenient for the user to quickly identify and use the required application program.
响应作用于配置完成产生的应用程序的镜像的快捷图标的运行指令,运行该应用程序。用户在操作界面上运行应用程序的镜像,该应用程序镜像与原应用程序的版本相同,运行后用户可登陆不同于原应用程序账号的其它账号,并且可设置与原应用程序不同的设置,满足用户的差异化需求。In response to the execution instruction acting on the shortcut icon of the mirror image of the application program generated by the configuration completion, the application program is run. The user runs the mirror image of the application program on the operation interface. The version of the application program mirror image is the same as that of the original application program. Differentiated needs of users.
相比于安装不同版本的应用程序的方案,本发明可以实现双开的应用程序为同一个版本,保证应用程序在功能和操作上的一致性,减少用户为了使用同一个应用程序而去学习不同版本的应用程序所浪费的时间。相比于其他进行账号切换的方案,本发明直接将所需的应用程序双开,并分配了与系统账户隔离的第二账户空间的数据目录,将需双开的应用程序安装在该账户空间下,相对于系统而言是两个各自独立的应用程序,并且用户可以分别为每一个应用程序设置对应不同账号的设置,尤其对于社交软件而言,本发明的方法可以实现多个账号同时接收信息,避免了信息的遗漏。Compared with the solution of installing different versions of the application program, the present invention can realize the same version of the dual-open application program, ensure the consistency of the application program in function and operation, and reduce the need for users to learn different versions in order to use the same application program time wasted by the application. Compared with other schemes for account switching, the present invention directly double-opens the required applications, and allocates the data directory of the second account space isolated from the system account, and installs the applications that need to be double-opened under the account space. Compared with the system, there are two independent application programs, and the user can set settings corresponding to different accounts for each application program, especially for social software, the method of the present invention can realize multiple accounts to receive information at the same time, The omission of information is avoided.
总而言之,本发明可以满足用户对于单应用多账号切换的差异化需求All in all, the present invention can meet the differentiated needs of users for switching between multiple accounts in a single application
虽然上面已经示出了本发明的一些示例性实施例,但是本领域的技术人员将理解,在不脱离本发明的原理或精神的情况下,可以对这些示例性实施例做出改变,本发明的范围由权利要求及其等同物限定。Although some exemplary embodiments of the present invention have been shown above, those skilled in the art will appreciate that changes can be made to these exemplary embodiments without departing from the principle or spirit of the present invention. The scope is defined by the claims and their equivalents.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610515344.5A CN106203015A (en) | 2016-06-30 | 2016-06-30 | The collocation method of application program, device and terminal unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610515344.5A CN106203015A (en) | 2016-06-30 | 2016-06-30 | The collocation method of application program, device and terminal unit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106203015A true CN106203015A (en) | 2016-12-07 |
Family
ID=57465065
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610515344.5A Pending CN106203015A (en) | 2016-06-30 | 2016-06-30 | The collocation method of application program, device and terminal unit |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106203015A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107102881A (en) * | 2017-05-19 | 2017-08-29 | 上海青橙实业有限公司 | Configuring management method and device for end application |
| CN108304108A (en) * | 2018-01-22 | 2018-07-20 | 维沃移动通信有限公司 | A kind of icon display method and mobile terminal of application program |
| CN110933035A (en) * | 2019-10-29 | 2020-03-27 | 杭州涂鸦信息技术有限公司 | Configuration information transmission method, transmission system and storage device |
| CN111459358A (en) * | 2020-03-31 | 2020-07-28 | 维沃移动通信有限公司 | Application control method and electronic device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104199734A (en) * | 2014-09-12 | 2014-12-10 | 上海斐讯数据通信技术有限公司 | Android smart terminal based application multi-run management method and system |
| CN104866342A (en) * | 2015-05-07 | 2015-08-26 | 北京数字天域科技有限责任公司 | Method and device for simultaneously starting multiple same applications on intelligent terminal |
-
2016
- 2016-06-30 CN CN201610515344.5A patent/CN106203015A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104199734A (en) * | 2014-09-12 | 2014-12-10 | 上海斐讯数据通信技术有限公司 | Android smart terminal based application multi-run management method and system |
| CN104866342A (en) * | 2015-05-07 | 2015-08-26 | 北京数字天域科技有限责任公司 | Method and device for simultaneously starting multiple same applications on intelligent terminal |
Non-Patent Citations (2)
| Title |
|---|
| WANG: "LEB平行空间常见问题有哪些", 《洁分手游网》 * |
| 百度: "如何上平行空间APP创建应用快捷方式", 《百度经验》 * |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107102881A (en) * | 2017-05-19 | 2017-08-29 | 上海青橙实业有限公司 | Configuring management method and device for end application |
| CN108304108A (en) * | 2018-01-22 | 2018-07-20 | 维沃移动通信有限公司 | A kind of icon display method and mobile terminal of application program |
| CN108304108B (en) * | 2018-01-22 | 2020-06-02 | 维沃移动通信有限公司 | Method for displaying icon of application program and mobile terminal |
| CN110933035A (en) * | 2019-10-29 | 2020-03-27 | 杭州涂鸦信息技术有限公司 | Configuration information transmission method, transmission system and storage device |
| CN111459358A (en) * | 2020-03-31 | 2020-07-28 | 维沃移动通信有限公司 | Application control method and electronic device |
| CN111459358B (en) * | 2020-03-31 | 2021-08-17 | 维沃移动通信有限公司 | Application control method and electronic device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12147661B2 (en) | Content sharing method and electronic device | |
| CN108021305B (en) | Application association starting method and device and mobile terminal | |
| CN106201484A (en) | The collocation method of application program, device and terminal unit | |
| CN110837327B (en) | A message viewing method and terminal | |
| CN108646958B (en) | Application program starting method and terminal | |
| WO2020258929A1 (en) | Folder interface switching method and terminal device | |
| CN108345425B (en) | Application management method and mobile terminal | |
| CN109032468B (en) | Method and terminal for adjusting equipment parameters | |
| US20180316745A1 (en) | Terminal apparatus and server and method of controlling the same | |
| CN112347048B (en) | Electronic device and method for sharing data thereof | |
| CN109739407B (en) | Information processing method and terminal equipment | |
| CN111049980A (en) | Application sharing method, electronic device and computer-readable storage medium | |
| CN108491148B (en) | Application sharing method and terminal | |
| CN111338530A (en) | Application icon control method and electronic device | |
| CN109684825B (en) | A rights management method and terminal equipment | |
| CN108595201A (en) | A kind of application program update method and mobile terminal | |
| WO2020156123A1 (en) | Information processing method and terminal device | |
| CN106168901A (en) | Application program font customizing method and control method and related device | |
| CN106598389A (en) | Application program starting method and device and mobile terminal | |
| CN110764845A (en) | Application setting method and electronic device | |
| CN108681427B (en) | Access right control method and terminal equipment | |
| WO2020199783A1 (en) | Interface display method and terminal device | |
| CN106203015A (en) | The collocation method of application program, device and terminal unit | |
| WO2020215969A1 (en) | Content input method and terminal device | |
| CN109981442A (en) | Method for sending information and terminal device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |
|
| RJ01 | Rejection of invention patent application after publication |