CN112051944B - Method and device for mutually switching personal space and working space on android device - Google Patents

Method and device for mutually switching personal space and working space on android device Download PDF

Info

Publication number
CN112051944B
CN112051944B CN201910491634.4A CN201910491634A CN112051944B CN 112051944 B CN112051944 B CN 112051944B CN 201910491634 A CN201910491634 A CN 201910491634A CN 112051944 B CN112051944 B CN 112051944B
Authority
CN
China
Prior art keywords
user
space
switching
working space
current
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
CN201910491634.4A
Other languages
Chinese (zh)
Other versions
CN112051944A (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.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN201910491634.4A priority Critical patent/CN112051944B/en
Publication of CN112051944A publication Critical patent/CN112051944A/en
Application granted granted Critical
Publication of CN112051944B publication Critical patent/CN112051944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a method and a device for switching between a personal space and a working space on an android device, which comprise the following steps: when the terminal equipment using the android operating system detects a user switching instruction in an unlocked state, determining a target user to be switched according to the user type of the current using system; the user types include individual users and workspace users; and switching the current user space into a space corresponding to the target user. By adopting the invention, the working space user and the individual user can be used independently without mutual influence on the premise of ensuring the safety of the terminal equipment.

Description

Method and device for mutually switching personal space and working space on android device
Technical Field
The invention relates to a mobile communication technology, in particular to a method and a device for mutually switching a personal space and a working space on an android device.
Background
At present, to meet the management and configuration requirements from a mobile phone of an Enterprise user to a cloud, google provides a solution of an Android Enterprise edition (AE). With the AE, a work user can be created on a terminal device using an android operating system, and the work user performs management configuration of an enterprise.
In carrying out the present invention, applicants have discovered that: the above AE solution has the potential safety hazard problem of user personal data. The specific analysis is as follows:
in the scheme, the working space user on the terminal equipment is attached to the default master user, and the personal application and the working application share the same desktop, so that after the working space user logs in, the personal space and the working space on the terminal equipment are visible to the working user, and the safety of the personal space cannot be guaranteed.
For this reason, it is necessary to control that a workspace user can access only a workspace, in order to secure a personal space. However, since the terminal device needs to support both the usage of the workspace user and the usage of the individual user, a mechanism for switching between the workspace and the workspace on the android device needs to be provided, so that when the device user managed by the affiliated unit switches between the workspace user and the individual user, the corresponding application configuration can also be switched between the workspace and the workspace, so that the workspace user and the individual user can use independently without mutual influence on each other on the premise of ensuring the security of the terminal device.
Disclosure of Invention
In view of this, the main object of the present invention is to provide a method and an apparatus for switching between a personal space and a working space on an android device, where a working space user and a personal user can use the methods independently and without affecting each other on the premise of ensuring the security of a terminal device.
In order to achieve the purpose, the technical scheme provided by the invention is as follows:
a method for switching between a personal space and a working space on an android device comprises the following steps:
when the terminal equipment using the android operating system detects a user switching instruction in an unlocked state, determining a target user to be switched according to the user type of the current using system; the user types include individual users and workspace users;
and switching the current user space into a space corresponding to the target user.
Preferably, the detecting of the user switching instruction comprises:
and if the fact that a user switching shortcut icon preset on the desktop of the android operating system or a user switching icon preset in a system pull-down notification bar quick starting area is clicked is detected, judging that the user switching instruction is triggered.
Preferably, the determining the target user for handover includes:
and if the user type of the current using system is a personal user, judging that the switched target user is a working space user, and if the user type of the current using system is a working space user, judging that the switched target user is a personal user.
Preferably, when the target user to be switched is a workspace user, the switching the current user space to the space corresponding to the target user includes:
and judging whether a working space is created currently, if so, switching the current user space to the working space, otherwise, switching the current user space to the working space after the working space is created.
Preferably, the determining whether the workspace has been created currently comprises:
if the current system configuration has a working space user FLAG _ TD _ PROFILESSPACE, judging that a working space is created currently; otherwise, it is determined that no workspace is currently created.
Preferably, the method further comprises:
when the terminal device detects an unlocking instruction of a user in a screen locking state, determining the currently unlocked user according to user password information carried by the unlocking instruction, and taking a corresponding application space as a target space to which unlocking is switched according to the user type of the user.
The application also provides a device for realizing mutual switching between the personal space and the working space, which is arranged on the android device and comprises: a processor to:
when the terminal equipment using the android operating system detects a user switching instruction in an unlocked state, determining a target user to be switched according to the user type of the current using system; the user types include individual users and workspace users;
and switching the current user space into a space corresponding to the target user.
Preferably, the processor is specifically configured to:
and if the fact that a user switching shortcut icon preset on the desktop of the android operating system or a user switching icon preset in a system pull-down notification bar quick starting area is clicked is detected, judging that the user switching instruction is triggered.
Preferably, the processor is specifically configured to:
and if the user type of the current using system is a personal user, judging that the switched target user is a working space user, and if the user type of the current using system is a working space user, judging that the switched target user is a personal user.
Preferably, the processor is specifically configured to: when the switched target user is a working space user, switching the current user space to a space corresponding to the target user, including:
and judging whether a working space is created currently, if so, switching the current user space to the working space, otherwise, switching the current user space to the working space after the working space is created.
Preferably, the processor is specifically configured to: if the current system configuration has a working space user FLAG _ TD _ PROFILESSPACE, judging that a working space is created currently; otherwise, it is determined that no workspace is currently created.
Preferably, the processor is further configured to:
when the terminal device detects an unlocking instruction of a user in a screen locking state, determining the currently unlocked user according to user password information carried by the unlocking instruction, and taking a corresponding application space as a target space to which unlocking is switched according to the user type of the user.
The present application further provides a non-transitory computer-readable storage medium storing instructions, which when executed by a processor, cause the processor to perform the steps of the method for switching between a personal space and a workspace on an android device as described above.
In addition, the present application also provides an electronic device comprising the non-volatile computer-readable storage medium as described above, and the processor having access to the non-volatile computer-readable storage medium.
In summary, according to the method and the device for switching between the personal space and the working space on the android device, when the terminal device using the android operating system is in the unlocked state, the target user to be switched can be determined according to the user switching instruction initiated by the user and by combining the user type of the currently used system, and then the current user space is switched to the space corresponding to the target user, so that the mutual switching between the personal space and the working space can be realized during user switching, and further the working space user and the personal user can be used independently without mutual influence on each other on the premise of ensuring the safety of the terminal device.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flow diagram of a method according to an embodiment of the present invention, and as shown in fig. 1, the method for switching between a personal space and a working space on an android device according to the embodiment mainly includes:
step 101, when a terminal device using an android operating system detects a user switching instruction in an unlocked state, determining a target user to be switched according to a user type of a currently used system; the user types include individual users and workspace users.
In this step, when the terminal device is in the unlocked state, the switching between the individual user and the working space user can be initiated by receiving a user switching instruction of the user, and then the switching between the corresponding spaces is executed, so that the working space user and the individual user are respectively bound with the respective corresponding spaces for use, and therefore the working space user and the individual user can respectively and independently use the terminal device on the premise of ensuring the safety of the terminal device, and the terminal device and the working space user are not mutually influenced.
Preferably, a user switching shortcut icon (such as a bottom right corner icon in a desktop Dock area) can be preset on an android operating system desktop used by each of the individual user and the workspace user and/or a user switching icon can be preset in a system pull-down notification bar quick start area, so that the user can send a user switching instruction by clicking the user switching shortcut icon or the user switching icon on the current desktop. Accordingly, whether the user issues the user switching instruction can be detected in the following way:
and if the fact that a user switching shortcut icon preset on the desktop of the android operating system or a user switching icon preset in a system pull-down notification bar quick starting area is clicked is detected, judging that the user switching instruction is triggered.
Preferably, the target user of the handover may be determined by the following method:
and if the user type of the current using system is a personal user, judging that the switched target user is a working space user, and if the user type of the current using system is a working space user, judging that the switched target user is a personal user.
Preferably, when the target user to be switched is a workspace user, the following method may be adopted to switch the current user space to the space corresponding to the target user:
and judging whether a working space is created currently, if so, switching the current user space to the working space, otherwise, switching the current user space to the working space after the working space is created.
Further, the method may adopt the following method to determine whether the workspace has been created currently:
if the current system configuration has a working space user FLAG _ TD _ PROFILESSPACE, judging that a working space is created currently; otherwise, it is determined that no workspace is currently created.
In practical application, in order to improve system compatibility, the method for judging whether the working space is created currently can be implemented by modifying a user switching function of an existing system, that is, the method comprises the following steps: modifying a judgment flow for starting a user switching function startUser in an android native UserController, when the user type is management configuration, judging whether the user has a FLAG _ TD _ PROFILEPASCEE (working space user) mark, if so, indicating that the working space is created currently, allowing a system to switch the user, otherwise, indicating that the working space is not created currently.
And 102, switching the current user space to a space corresponding to the target user.
Further, when the terminal device detects an unlocking instruction of a user in a screen locking state, a target space to which the terminal device is switched after unlocking can be determined according to a user type corresponding to password information (such as a user password or a fingerprint) input during unlocking of the user, so that after the terminal device is unlocked, a working space user and an individual user can independently use the terminal device on the premise of ensuring the safety of the terminal device, and the working space user and the individual user are not affected by each other. The above object is achieved in particular by the following method:
when the terminal device detects an unlocking instruction of a user in a screen locking state, determining the currently unlocked user according to user password information carried by the unlocking instruction, and taking a corresponding application space as a target space to which unlocking is switched according to the user type of the user.
The application also provides a device for realizing mutual switching between the personal space and the working space, which is arranged on the android device and comprises: a processor to:
when the terminal equipment using the android operating system detects a user switching instruction in an unlocked state, determining a target user to be switched according to the user type of the current using system; the user types include individual users and workspace users;
and switching the current user space into a space corresponding to the target user.
Preferably, the processor is specifically configured to:
and if the fact that a user switching shortcut icon preset on the desktop of the android operating system or a user switching icon preset in a system pull-down notification bar quick starting area is clicked is detected, judging that the user switching instruction is triggered.
Preferably, the processor is specifically configured to:
and if the user type of the current using system is a personal user, judging that the switched target user is a working space user, and if the user type of the current using system is a working space user, judging that the switched target user is a personal user.
Preferably, the processor is specifically configured to: when the switched target user is a working space user, switching the current user space to a space corresponding to the target user, including:
and judging whether a working space is created currently, if so, switching the current user space to the working space, otherwise, switching the current user space to the working space after the working space is created.
Preferably, the processor is specifically configured to: if the current system configuration has a working space user FLAG _ TD _ PROFILESSPACE, judging that a working space is created currently; otherwise, it is determined that no workspace is currently created.
Preferably, the processor is further configured to:
when the terminal device detects an unlocking instruction of a user in a screen locking state, determining the currently unlocked user according to user password information carried by the unlocking instruction, and taking a corresponding application space as a target space to which unlocking is switched according to the user type of the user.
The present application further provides a non-transitory computer-readable storage medium storing instructions, which when executed by a processor, cause the processor to perform the steps of the method for switching between a personal space and a workspace on an android device as described above.
In addition, the present application also provides an electronic device comprising the non-volatile computer-readable storage medium as described above, and the processor having access to the non-volatile computer-readable storage medium.
According to the technical scheme, the method and the device for switching the personal space and the working space on the android device can be used by the working space user and the personal user independently on the premise of ensuring the safety of the terminal device, and the working space user and the personal user do not influence each other.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for switching between a personal space and a working space on an android device is characterized by comprising the following steps:
when the terminal equipment using the android operating system detects a user switching instruction in an unlocked state, determining a target user to be switched according to the user type of the current using system; the user types include individual users and workspace users;
switching the current user space into a space corresponding to the target user;
when the terminal device detects an unlocking instruction of a user in a screen locking state, determining the currently unlocked user according to user password information carried by the unlocking instruction, and taking a corresponding application space as a target space to which unlocking is switched according to the user type of the user;
wherein the determining the target user of handover comprises: and if the user type of the current using system is a personal user, judging that the switched target user is a working space user, and if the user type of the current using system is a working space user, judging that the switched target user is a personal user.
2. The method of claim 1, wherein the detecting of the user switching instruction comprises:
and if the fact that a user switching shortcut icon preset on the desktop of the android operating system or a user switching icon preset in a system pull-down notification bar quick starting area is clicked is detected, judging that the user switching instruction is triggered.
3. The method according to claim 1, wherein when the target user of the switching is a workspace user, the switching the current user space to the space corresponding to the target user comprises:
and judging whether a working space is created currently, if so, switching the current user space to the working space, otherwise, switching the current user space to the working space after the working space is created.
4. The method of claim 3, wherein determining whether a workspace has currently been created comprises:
if the current system configuration has a working space user FLAG _ TD _ PROFILESSPACE, judging that a working space is created currently; otherwise, it is determined that no workspace is currently created.
5. The utility model provides a realize device that personal space and workspace switched each other, locates on android device, its characterized in that includes: a processor to:
when the terminal equipment using the android operating system detects a user switching instruction in an unlocked state, determining a target user to be switched according to the user type of the current using system; the user types include individual users and workspace users;
switching the current user space into a space corresponding to the target user;
when the terminal device detects an unlocking instruction of a user in a screen locking state, determining the currently unlocked user according to user password information carried by the unlocking instruction, and taking a corresponding application space as a target space to which unlocking is switched according to the user type of the user;
wherein the determining the target user of handover comprises: and if the user type of the current using system is a personal user, judging that the target user to be switched is a working space user, and if the user type of the current using system is a working space user, judging that the target user to be switched is the personal user.
6. The apparatus of claim 5, wherein the processor is specifically configured to:
and if a user switching shortcut icon preset on the desktop of the android operating system or a user switching icon preset in a system pull-down notification bar quick start area is clicked, judging that the user switching instruction is triggered.
7. The apparatus of claim 5, wherein the processor is specifically configured to: when the switched target user is a working space user, switching the current user space to a space corresponding to the target user, including:
and judging whether a working space is created currently, if so, switching the current user space to the working space, otherwise, switching the current user space to the working space after the working space is created.
8. The apparatus of claim 7, wherein the processor is specifically configured to: if the current system configuration has a working space user FLAG _ TD _ profile space, judging that a working space is created currently; otherwise, it is determined that no workspace is currently created.
9. A non-transitory computer readable storage medium storing instructions which, when executed by a processor, cause the processor to perform the steps of the method of personal space and workspace switching between on an android device of any of claims 1 to 4.
10. An electronic device comprising the non-volatile computer-readable storage medium of claim 9, and the processor having access to the non-volatile computer-readable storage medium.
CN201910491634.4A 2019-06-06 2019-06-06 Method and device for mutually switching personal space and working space on android device Active CN112051944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910491634.4A CN112051944B (en) 2019-06-06 2019-06-06 Method and device for mutually switching personal space and working space on android device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910491634.4A CN112051944B (en) 2019-06-06 2019-06-06 Method and device for mutually switching personal space and working space on android device

Publications (2)

Publication Number Publication Date
CN112051944A CN112051944A (en) 2020-12-08
CN112051944B true CN112051944B (en) 2022-05-24

Family

ID=73609543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910491634.4A Active CN112051944B (en) 2019-06-06 2019-06-06 Method and device for mutually switching personal space and working space on android device

Country Status (1)

Country Link
CN (1) CN112051944B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114867026A (en) * 2022-07-05 2022-08-05 杭州天宽科技有限公司 Security isolation system and method, electronic device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630592A (en) * 2015-08-12 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Identity verification based space switching method and apparatus as well as terminal
CN105930707A (en) * 2016-04-14 2016-09-07 北京小米移动软件有限公司 Method and device for switching systems
CN107612888A (en) * 2017-08-23 2018-01-19 北京小米移动软件有限公司 Enterprise customer space creation method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100175104A1 (en) * 2008-03-03 2010-07-08 Khalid Atm Shafiqul Safe and secure program execution framework with guest application space
CN104008345B (en) * 2013-02-27 2018-09-04 腾讯科技(深圳)有限公司 Guard method to the privacy of user data of application program and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630592A (en) * 2015-08-12 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Identity verification based space switching method and apparatus as well as terminal
CN105930707A (en) * 2016-04-14 2016-09-07 北京小米移动软件有限公司 Method and device for switching systems
CN107612888A (en) * 2017-08-23 2018-01-19 北京小米移动软件有限公司 Enterprise customer space creation method and device

Also Published As

Publication number Publication date
CN112051944A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN108196759B (en) Icon control method and terminal
US20170161507A1 (en) Dual-system Electronic Apparatus and Terminal
US9639256B2 (en) Method for starting activity of mobile terminal and the mobile terminal
CN104601529B (en) Terminal account management method and device
US11096177B2 (en) Operation mode switching method and user equipment
CN104797003B (en) A kind of method and device for switching intelligent terminal user
CN109104412A (en) Account right management method, management system and computer readable storage medium
US20150052604A1 (en) Method and device for protecting user private data of application program
CN108090345B (en) Linux system external command execution method and device
CN104870068A (en) Method and router for access network
US20180034962A1 (en) Call Forwarding Method, Terminal, and Portable Electronic Device
CN112051944B (en) Method and device for mutually switching personal space and working space on android device
CN104680089B (en) A kind of electronic equipment and system switching method
CN105447384B (en) A kind of anti-method monitored, system and mobile terminal
US20150293679A1 (en) Method and Device for Controlling Switching of Virtual Navigation Bar
CN107045610B (en) Data migration method, terminal device and computer readable storage medium
CN104217158A (en) Method for detecting system state of intelligent terminal and intelligent terminal
CA2983094C (en) Notification control device, notification control method, and notification control program
CN104714626A (en) Information processing method and electronic device
CN104267894A (en) Mobile terminal split screen control method and system
KR101208776B1 (en) System for Providing Virtual Machine and Server and Method used in the System
CN103729130A (en) Unlocking method of touch sensitive equipment and touch sensitive equipment
CN112580095B (en) Data display method, device, computer equipment and storage medium
CN108334794A (en) A kind of information input encryption method and system for information input equipment
US20150180874A1 (en) Electronic device, method, and computer program product

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
GR01 Patent grant
GR01 Patent grant