CN108205619B - Multi-user management method and device based on android system - Google Patents

Multi-user management method and device based on android system Download PDF

Info

Publication number
CN108205619B
CN108205619B CN201810050778.1A CN201810050778A CN108205619B CN 108205619 B CN108205619 B CN 108205619B CN 201810050778 A CN201810050778 A CN 201810050778A CN 108205619 B CN108205619 B CN 108205619B
Authority
CN
China
Prior art keywords
window
application
user
sub
data area
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
CN201810050778.1A
Other languages
Chinese (zh)
Other versions
CN108205619A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810050778.1A priority Critical patent/CN108205619B/en
Publication of CN108205619A publication Critical patent/CN108205619A/en
Application granted granted Critical
Publication of CN108205619B publication Critical patent/CN108205619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a multi-user management method and a multi-user management device based on an android system.A first application associated with a first user ID runs in a first sub-window of an android system terminal, and a second application associated with a second user ID runs in a second sub-window of the android system terminal; the method comprises the following steps: receiving an operation instruction sent by a user to a second application running in a second sub-window; determining a data area corresponding to second labeling information preset in Window management Service as a data area to be accessed according to the operation instruction; accessing the data area to be accessed; the second label information is used for indicating that the second sub-window corresponds to the second user ID. The device realizes multi-user management of the android system terminal by adopting the method, and can allow a user to simultaneously access data areas corresponding to two or more user IDs.

Description

Multi-user management method and device based on android system
Technical Field
The invention relates to the field of communication, in particular to a multi-user management method and a multi-user management device based on an android system.
Background
With the popularization of intelligent terminals loaded with Android systems and the arrival of the era of mobile internet, mobile phone terminals and tablet computers become personal information centers and entertainment centers more and more. In terms of the development trend of android intelligent terminals, large-screen, high-resolution, powerful processing capability and storage capability PC terminals are increasingly popular with more people, and large-screen mobile phones and tablet computers are taken as representatives in this respect.
In terms of the hardware configuration level of the current mobile phone, the processing capacity and the computing capacity are comparable to those of a personal PC, but the application management method provided by the android system cannot simultaneously run a plurality of applications or a plurality of task windows. In the using process, a user usually wants to group information of the android system terminal, store and use the information according to different groups, and set a specific authority for each group, for example, the information is divided into special information and general information related to security, privacy and the like; after classifying the information, the user will often wish to have access to one of the packets while the access to the other packets is restricted. However, in actual use, it is still possible for the user to use the information of different groups at the same time, for example: if the user divides the information of the android system terminal into general information and special information related to security and privacy, it is possible for the user to use the general information of the android system terminal and the special information related to security and privacy simultaneously when the user uses the Taobao application and the Paobao application simultaneously.
Disclosure of Invention
In view of this, the present invention provides a multi-user management method and apparatus based on the android system, which can allow a user to use information of different groups with permission restrictions at the android system terminal at the same time.
Based on the above purpose, in the multi-user management method based on the android system, a first application associated with a first user ID is run in a first sub-window of the android system terminal, and a second application associated with a second user ID is run in a second sub-window of the android system terminal; the method comprises the following steps:
receiving an operation instruction sent by a user to a second application running in a second sub-window;
determining a data area corresponding to second labeling information preset in Window management Service as a data area to be accessed according to the operation instruction;
accessing the data area to be accessed;
the second label information is used for indicating that the second sub-window corresponds to the second user ID.
Optionally, before receiving an operation instruction sent by a user to a second application running in a second sub-window, the method further includes:
receiving a second application starting instruction in a second sub-window sent by a user;
starting the second application in a second child window according to the second application starting instruction;
and marking the second marking information in a Window management Service (Window Manager Service).
Optionally, the second application is started in an Intent manner.
Optionally, before the second application is started in the second sub-window, the method further includes:
mounting the system file corresponding to the effective user ID;
logging in a second user ID on the corresponding second sub-window according to the received user ID login information;
acquiring an application package name and an icon resource associated with a second user ID;
and generating an application list corresponding to the second user ID in the second sub-window.
Optionally, the file systems mount corresponding to the valid user IDs as storage/estimator/ID/sdcard 0 and storage/estimator/ID/sdcard 1.
Optionally, before receiving a second application start instruction in the second sub-window sent by the user, the method further includes:
mapping at least two sub-windows including a first window and a second sub-window to corresponding virtual equipment;
virtually generating a management mechanism corresponding to each child window;
the virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
Optionally, after the second application is started in the second sub-window, the method further includes:
and maintaining the life cycle of the second application through the corresponding application management Service Activity manager Service, and independently managing and controlling the Window message queue of the second application through the corresponding Window management Service Window manager Service.
Further, the invention provides a multi-user management device based on an android system, wherein a first application associated with a first user ID is run in a first sub-window of an android system terminal, and a second application associated with a second user ID is run in a second sub-window of the android system terminal; the device comprises:
an operation instruction receiving module: the operation instruction is used for receiving an operation instruction sent by a user to a second application running in a second sub-window;
a to-be-accessed data area determination module: the data area corresponding to second labeling information preset in Window management Service is determined as a data area to be accessed according to the operation instruction;
an access module: the data area to be accessed is accessed;
the second label information is used for indicating that the second sub-window corresponds to the second user ID. Optionally, the apparatus further comprises:
the starting instruction receiving module: the application starting device is used for receiving a second application starting instruction sent by a user in a second sub-window;
an application start module: the second application is started in a second child window according to the second application starting instruction;
a labeling module: and the second annotation information is used for annotating the second annotation information in the Window management Service.
Optionally, the second application is started in an Intent manner.
Optionally, the apparatus further comprises:
mounting a module: the system file mount device is used for mounting the system file corresponding to the effective user ID;
a user login module: the login module is used for logging in a second user ID on the corresponding second sub-window according to the received user ID login information;
an application information acquisition module: the application package name and the icon resource associated with the second user ID are acquired;
an application list generation module: and the application list corresponding to the second user ID is generated in the second sub-window.
Optionally, the system files corresponding to the valid user IDs are mounted as storage/estimator/ID/sdcard 0 and storage/estimator/ID/sdcard 1.
Optionally, the apparatus further comprises:
a mapping module: the device comprises a first sub-window, a second sub-window and a virtual device, wherein the first sub-window and the second sub-window are arranged in a window;
a management mechanism virtual module: the management mechanism is used for virtually generating a management mechanism corresponding to each child window;
the virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
Optionally, the apparatus further comprises:
a life cycle maintenance module: a lifecycle for maintaining the second application through a corresponding application management Service;
the window message queue management and control module: and the Window message queue is used for independently controlling the second application through a corresponding Window management Service (Window manager Service).
As can be seen from the above, the multi-user management method and apparatus based on the android system provided by the embodiments of the present invention allow a first user ID and a second user ID to be respectively logged in a first sub-window and a second sub-window of an android terminal; under the condition that a first sub-window runs a first application associated with a first user ID and a second sub-window runs a second application associated with a second user ID, when an operation instruction sent by a user to the running application of one sub-window is received, a data area to be accessed by the operation instruction can be determined according to marking information preset in the window management service; when another operation instruction sent by the user to the running application of another sub-window is received, the data area to be accessed by the another operation instruction is determined according to the preset marking information in the window management service, so that the data areas of at least two user IDs can be operated by one user at the same time, and the requirement that the user uses the information corresponding to the user IDs in the process of actually using the android system is met.
Drawings
Fig. 1 is a schematic flow diagram of a multi-user management method based on an android system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps performed before receiving an operation instruction sent by a user to a second application running in a second sub-window according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps performed before the step of starting the second application in the second sub-window according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating steps performed before receiving a second application start instruction in a second sub-window sent by a user according to an embodiment of the present invention;
FIGS. 5A-5B are schematic diagrams of interfaces presented by the first sub-window and the second sub-window in accordance with embodiments of the present invention;
FIG. 6 is a flowchart of a multi-user management method based on the android system according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a multi-user management device based on an android system in an embodiment of the present invention.
Detailed Description
In order to provide an effective implementation scheme, the following embodiments are provided, and the embodiments of the present invention are described below with reference to the accompanying drawings.
The invention provides a multi-user management method based on an android system, which is characterized in that a first application associated with a first user ID runs in a first sub-window, and a second application associated with a second user ID runs in a second sub-window; the method comprises the following steps:
receiving an operation instruction sent by a user to a second application running in a second sub-window;
determining a data area corresponding to second labeling information preset in a Window management service (Window) as a data area to be accessed according to the operation instruction;
accessing the data area to be accessed;
the second label information is used for indicating that the second sub-window corresponds to the second user ID.
As can be seen from the above, in the multi-user management method based on the android system, the first application associated with the first user ID and the second application associated with the second user ID are respectively run in the first sub-window and the second sub-window, and a user can simultaneously access the data areas corresponding to at least two different user IDs on the android system terminal, and call and operate the data areas belonging to the different user IDs, so that the user can conveniently use the data of multiple user IDs in the process of actually using the android system terminal. In addition, the data areas corresponding to different user IDs are distinguished according to preset marking information, and the data areas are mutually independent, so that when a certain user ID is logged in, the corresponding data area can be accessed only in a sub-window where the user ID is logged in, and the abnormality caused by the fact that two user IDs access the same data area at the same time is avoided.
In one embodiment of the invention, a first application associated with a first user ID is run in a first sub-window of the android system terminal, and a second application associated with a second user ID is run in a second sub-window of the android system terminal; the multi-user management method based on the android system comprises the following steps as shown in figure 1:
step 101: and receiving an operation instruction sent by the user to a second application running in the second sub-window. The operation instruction may be an operation instruction input by a user through a touch screen or a keyboard input mechanism, and more specifically, the operation instruction may include a data reading operation instruction such as a folder information reading operation instruction, a contact information reading operation instruction, a call record reading operation instruction, and the like; the data writing operation instruction may also include a file information changing operation instruction, a short message editing operation instruction, another information input operation instruction, and the like.
Step 102: and determining a data area corresponding to second labeling information preset in a Window management Service (Window Manager Service) as a data area to be accessed according to the operation instruction. The second label information is used for indicating that the second sub-window corresponds to the second user ID.
And after the second application is started, marking the second sub-window in the window management service, and setting second marking information which represents the second sub-window and is associated with the second user ID. And according to the operation instruction of the user on the second application, determining that the data area corresponding to the second marking information preset in the window management service is the data area to be accessed.
Step 103: and accessing the data area to be accessed.
Specifically, an application management Service (Activity Manager Service) may be notified according to the second annotation information, so that the second application accesses the data area to which the second user ID belongs.
In step 103, the data area to be accessed is accessed, and the operation indicated by the operation instruction is executed, including data reading, data writing, and the like.
In some embodiments of the present invention, before receiving an operation instruction sent by a user to a second application running in a second sub-window, the method further includes the steps as shown in fig. 2:
step 201: and receiving a second application starting instruction in the second sub-window sent by the user.
Step 202: and starting the second application in a second sub-window according to the second application starting instruction.
Step 203: and marking the second marking information in the window management service.
In some embodiments, the second application is launched in an Intent (Intent) manner.
In some embodiments, the first application is also launched in an intended manner.
In some embodiments, the first application may also be launched using the principles illustrated in FIG. 2.
In some embodiments, referring to fig. 3, before the launching the second application in the second sub-window, the method further includes:
step 301: and mounting the system file corresponding to the effective user ID.
Step 302: and logging in a second user ID on the corresponding second sub-window according to the received user ID login information.
The user ID login information may be right authentication information input by the user, and the right authentication information may further be a password or an unlocking pattern.
Step 303: an application package name and an icon resource associated with the second user ID are obtained.
The application package name includes an application package name installed under a second user ID, and the icon resource includes an icon resource corresponding to the application package name. And the acquired application package name and the acquired icon resource are used for subsequent application starting and display.
Step 304: and generating an application list corresponding to the second user ID in the second sub-window.
The application list is used for displaying in the second sub-window.
In some embodiments, after step 301, the first user ID may also be logged in according to the principles described in step 302 and 304.
In some embodiments, the file systems mount corresponding to the valid user IDs are storage/estimator/ID/sdcard 0 and storage/estimator/ID/sdcard 1.
As a specific example, the storage/isolator/ID/sdcard 0 and the storage/isolator/ID/sdcard 1 mounted in the file system can be respectively referred to as storage/isolator/X/sdcard 0 and storage/isolator/X/sdcard 1, where X can be any integer.
Specifically, the file systems of the first user ID or the second user ID or other user IDs may be mounted as storage/organizer/0/sdcard 0 and storage/organizer/0/sdcard 1. When a user ID is newly added, the newly added user ID is sequentially mounted as a storage/estimator/1/sdcard 0, a storage/estimator/1/sdcard 1, a storage/estimator/2/sdcard 0, a storage/estimator/2/sdcard 1 … … and the like according to the newly added sequence, when a user is newly added, the X value in the storage/estimator/X/sdcard 0 and the storage/estimator/X/sdcard 1 is increased by 1, different user IDs are logically distinguished on storage paths through the difference of mounting paths, when only one user ID is logged in, file resources under the file system mounting path belonging to the user ID are accessed, all user IDs share the same storage space, but are logically separated, and the file system of each user ID is an independent file system mapping path, the corresponding data area has no logic coupling, each logged-in user ID monopolizes one system resource and a management mechanism, and system abnormity caused by resource preemption due to the fact that a plurality of user IDs are logged in the android system terminal at the same time can be avoided. When the data area is accessed, the corresponding data area can be accessed only when the corresponding user ID is logged in, so that the safety and the privacy of the user data are improved. The plurality of user IDs can be switched with each other.
In some embodiments, referring to fig. 4, before receiving a second application start instruction in a second sub-window sent by a user, the method further includes:
step 401: mapping at least one sub-window to the virtual equipment corresponding to the sub-window;
step 402: virtually generating a management mechanism corresponding to each child window;
the virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
Fig. 5A and 5B illustrate first and second sub-window presentation interfaces according to two embodiments of the present invention.
In some embodiments, the management mechanisms include management mechanisms of an application layer and an application framework layer.
In some embodiments, the management mechanism of the application framework layer at least includes a Display management Service (Display management Service), a window management Service, an application management Service, a sensing Service (Sensor Service), an Input management Service (Input management Service), an Input Method Service (Input Method Service), and an Audio Policy (Audio Policy) of the application framework layer.
In some embodiments, after the second application is started, a lifecycle of the second application is maintained by a corresponding application management service, and a window message queue of the second application is independently managed by a corresponding window management service.
Similarly, after the first application is started, the life cycle of the first application and the window message queue of the first application can be maintained and independently controlled through the corresponding application management service and the window management service.
In an embodiment of the present invention, the multi-user management method based on the android system includes the steps shown in fig. 6:
step 601: and logging in a second user ID on the corresponding second sub-window according to the received user ID login information.
Step 602: acquiring an application package name and an icon resource associated with a second user ID;
step 603: and generating an application list corresponding to the second user ID in the second sub-window.
Step 604: and receiving a second application starting instruction sent by the user.
Step 605: and starting the second application in the second sub-window.
Step 606: and marking the second marking information in a Window management Service (Window Manager Service).
Step 607: and logging in the first user ID in the corresponding first sub-window according to the received user ID logging in information.
Step 608: an app package name and an icon resource associated with the first user ID are obtained.
Step 609: and generating an application list corresponding to the first user ID in the first sub-window.
Step 610: and receiving a first application starting instruction sent by a user.
Step 611: the first application is launched in a first sub-window.
Step 612: and the first marking information is marked in a Window management Service (Window Manager Service).
Step 613: and receiving an operation instruction sent by the user to a second application running in the second sub-window.
Step 614: determining a data area corresponding to second labeling information preset in Window management Service as a data area to be accessed according to the operation instruction;
step 615: and accessing the data area to be accessed.
As can be seen from the above, in the multi-user management method based on the android system, the first user ID and the second user ID are respectively logged in the first sub-window and the second sub-window of the android system terminal, the first application associated with the first user ID is run in the first sub-window, and the second application associated with the second user ID is run in the second sub-window; when an operation instruction sent by a user to an application running in one of the sub-windows is received, determining a data area to be accessed by the operation instruction according to marking information preset in the window management service; when another operation instruction sent by the user to the running application of another sub-window is received, the data area to be accessed by the another operation instruction is determined according to the preset marking information in the window management service, so that the data areas of at least two user IDs can be operated by one user at the same time, and the requirement that the user uses the information corresponding to the user IDs in the process of actually using the android system is met.
Further, the present invention provides a multi-user management apparatus based on an android system, and the structure is as shown in fig. 7, where a first application associated with a first user ID is run in a first sub-window of an android system terminal, and a second application associated with a second user ID is run in a second sub-window of the android system terminal; the device structure is shown in fig. 7 and comprises:
an operation instruction receiving module: and the operation instruction sent by the user to the second application running in the second sub-window is received.
A to-be-accessed data area determination module: and the data area corresponding to the second marking information preset in the window management service is determined as the data area to be accessed according to the operation instruction.
An access module: for accessing the data area to be accessed.
The second label information is used for indicating that the second sub-window corresponds to the second user ID.
As can be seen from the above, in the multi-user management apparatus based on the android system, provided by the invention, under the condition that the first application associated with the first user ID and the second application associated with the second user ID are run in the first sub-window and the second sub-window, the user is allowed to simultaneously access the data areas corresponding to at least two different user IDs on the android system terminal, and the data areas belonging to the different user IDs are called and operated, so that the user can conveniently use the data of multiple user IDs in the process of actually using the android system terminal. In addition, the device distinguishes the data areas corresponding to different user IDs according to the preset marking information, and the data areas are mutually independent, so that when a certain user ID is logged in, the corresponding data area can be accessed only in a sub-window where the user ID is logged in, and the abnormality caused by the fact that two user IDs access the same data area at the same time is avoided.
In some embodiments, the apparatus further comprises:
the starting instruction receiving module: the application starting device is used for receiving a second application starting instruction sent by a user in a second sub-window;
an application start module: the second application is started in a second child window according to the second application starting instruction;
a labeling module: the second labeling information is used for labeling the window management service.
The starting instruction receiving module can be further used for receiving an instruction sent by a user to start the first application in the first sub-window. The application starting module can be further used for starting the second application in the first sub-window according to the first application starting instruction. The labeling module can be further used for labeling the second labeling information in the window management service.
In some embodiments, the second application is launched in an intended manner.
In some embodiments, the first application is also launched in an intended manner. In some embodiments, the apparatus further comprises:
mounting a module: the system file mount device is used for mounting the system file corresponding to the effective user ID;
a user login module: the login module is used for logging in a second user ID on the corresponding second sub-window according to the received user ID login information;
an application information acquisition module: the application package name and the icon resource associated with the second user ID are acquired;
an application list generation module: and the application list corresponding to the second user ID is generated in the second sub-window.
The user login module can also be used for logging in the first user ID in the corresponding first sub-window according to the received user ID login information. The application information acquisition module may also be configured to acquire an application package name and an icon resource associated with the first user ID. The application list generating module may be further configured to generate an application list corresponding to the first user ID in the first sub-window.
In some embodiments, the system files corresponding to the valid user IDs are mounted as storage/estimator/ID/sdcard 0 and storage/estimator/ID/sdcard 1.
In some embodiments, the apparatus further comprises:
a mapping module: the device comprises a first sub-window, a second sub-window and a virtual device, wherein the first sub-window and the second sub-window are arranged in a window;
a management mechanism virtual module: the management mechanism is used for virtually generating a management mechanism corresponding to each child window;
the virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
In some embodiments, the apparatus further comprises:
a life cycle maintenance module: maintaining a lifecycle of the second application by the respective application management service;
the window message queue management and control module: and the Window message queue is used for independently controlling the second application through a corresponding Window management Service (Window manager Service).
The lifecycle maintenance module is further operable to maintain a lifecycle of the first application through a corresponding application management service. The window message queue management and control module may be further configured to independently manage a window message queue of the first application through a corresponding window management service.
In an embodiment of the present invention, the multi-user management apparatus based on the android system includes the following structure:
mounting a module: and the system file mount module is used for mounting the system file corresponding to the valid user ID.
A mapping module: the device comprises a first sub-window, a second sub-window and a virtual device, wherein the first sub-window and the second sub-window are arranged in a window; a management mechanism virtual module: and virtually generating a management mechanism corresponding to each child window. A user login module: the system is used for logging in the second user ID in the corresponding second sub-window according to the received user ID logging-in information, and is used for logging in the first user ID in the corresponding first sub-window according to the received user ID logging-in information.
An application information acquisition module: for obtaining the app package name and icon resource associated with the second user ID, and for obtaining the app package name and icon resource associated with the first user ID.
An application list generation module: the method is used for generating an application list corresponding to the second user ID in the second sub-window and generating an application list corresponding to the first user ID in the first sub-window.
The starting instruction receiving module: the system comprises a first application starting instruction receiving module, a second application starting instruction receiving module and a first application starting instruction receiving module, wherein the second application starting instruction is used for receiving a second application starting instruction sent by a user, and the first application starting instruction is used for receiving a first application starting instruction sent by the user.
An application start module: for launching the second application in a second sub-window, and for launching the first application in a first sub-window.
A labeling module: the second annotation information is used for annotating the window management service, and the first annotation information is used for annotating the window management service.
An operation instruction receiving module: and the operation instruction sent by the user to the second application running in the second sub-window is received. The operation instruction receiving module can be further used for receiving an operation instruction sent by a user to a first application running in the first sub-window.
A to-be-accessed data area determination module: and the data area corresponding to the second marking information preset in the window management service is determined as the data area to be accessed according to the operation instruction. The module for determining the data area to be accessed may be further configured to determine, after receiving the corresponding operation instruction, the data area corresponding to the first label information preset in the window management service as the data area to be accessed.
An access module: for accessing the data area to be accessed.
A life cycle maintenance module: maintaining a lifecycle of the second application by the respective application management service;
the window message queue management and control module: a window message queue for independently governing the second application through the respective window management service.
As can be seen from the above, the multi-user management device based on the android system, provided by the invention, allows a user to log in a first user ID and a second user ID respectively in a first sub-window and a second sub-window of an android system terminal, and run a first application associated with the first user ID in the first sub-window, and run a second application associated with the second user ID in the second sub-window; when receiving an operation instruction sent by a user to an application running in one of the sub-windows, the device determines a data area to be accessed by the operation instruction according to marking information preset in the window management service; when another operation instruction sent by the user to the running application of another sub-window is received, the device determines the data area to be accessed by the other operation instruction according to the preset marking information in the window management service, so that the user can operate the data areas of at least two user IDs simultaneously, and the requirement that the user uses the information corresponding to the user IDs simultaneously in the process of actually using the android system is met.
It is to be understood that the various embodiments described herein are for purposes of illustration and explanation only and are not intended to be limiting. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (16)

1. A multi-user management method based on an android system is characterized in that a first application associated with a first user ID runs in a first sub-window of an android system terminal, and a second application associated with a second user ID runs in a second sub-window of the android system terminal; the method comprises the following steps:
the android system terminal receives a first operation instruction aiming at a first application, and/or the android system terminal receives a second operation instruction aiming at a second application;
the android system terminal determines a data area corresponding to first marking information preset in a window management service as a first data area to be accessed according to the first operation instruction and accesses the first data area, and/or the android system terminal determines a data area corresponding to second marking information preset in the window management service as a second data area to be accessed according to the second operation instruction and accesses the second data area, wherein the first data area and the second data area are independent; the first label information is used for indicating that the first sub-window corresponds to the first user ID; the second label information is used for indicating that the second sub-window corresponds to the second user ID.
2. The method of claim 1, wherein before the android system terminal receives the first operation instruction for the first application, the method further comprises:
receiving a first application starting instruction in a first sub-window;
starting the first application in a first sub-window according to the first application starting instruction;
the first marking information is marked in a Window management Service (Window Manager Service);
before the android system terminal receives a second operation instruction for a second application, the method further includes:
receiving a second application starting instruction in a second sub-window;
starting the second application in a second child window according to the second application starting instruction;
and marking the second marking information in a Window management Service (Window Manager Service).
3. The method of claim 2, wherein the first application is launched in an Intent-to-Intent manner; the second application is launched in an Intent manner.
4. The method of claim 2, prior to launching the first application in the first sub-window, further comprising:
mounting the system file corresponding to the effective user ID;
logging in a first user ID in a corresponding first sub-window according to the received user ID login information;
acquiring an application package name and an icon resource associated with a first user ID;
generating an application list corresponding to a first user ID in the first sub-window;
before the second application is started in the second sub-window, the method further comprises the following steps:
mounting the system file corresponding to the effective user ID;
logging in a second user ID on the corresponding second sub-window according to the received user ID login information;
acquiring an application package name and an icon resource associated with a second user ID;
and generating an application list corresponding to the second user ID in the second sub-window.
5. The method according to claim 4, wherein the file system mounts corresponding to the valid user IDs are storage/estimator/ID/sdcard 0 and storage/estimator/ID/sdcard 1.
6. The method of claim 4, wherein before the android system terminal receives the second operation instruction for the second application, the method further comprises:
mapping at least two sub-windows including a first window and a second sub-window to corresponding virtual equipment;
virtually generating a management mechanism corresponding to each child window;
the virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
7. The method of claim 6, after the launching of the first application in the first sub-window, further comprising:
maintaining the life cycle of the first application through a corresponding application management Service (Activity manager Service), and independently controlling a Window message queue of the first application through a corresponding Window management Service (Window manager Service);
after the second application is started in the second sub-window, the method further comprises the following steps:
and maintaining the life cycle of the second application through the corresponding application management Service Activity manager Service, and independently managing and controlling the Window message queue of the second application through the corresponding Window management Service Window manager Service.
8. The method according to any one of claims 1 to 7, wherein the first application and the second application are provided with different access rights.
9. A multi-user management device based on an android system is characterized in that a first application associated with a first user ID runs in a first sub-window of an android system terminal, and a second application associated with a second user ID runs in a second sub-window of the android system terminal; the device comprises:
an operation instruction receiving module: the android system terminal receives a first operation instruction aiming at a first application, and/or the android system terminal receives a second operation instruction aiming at a second application;
a to-be-accessed data area determination module: the android system terminal determines a data area corresponding to first marking information preset in the window management service as a first data area to be accessed according to the first operation instruction and accesses the first data area, and/or determines a data area corresponding to second marking information preset in the window management service as a second data area to be accessed according to the second operation instruction and accesses the second data area, wherein the first data area and the second data area are independent; the first label information is used for indicating that the first sub-window corresponds to the first user ID; the second label information is used for indicating that the second sub-window corresponds to the second user ID.
10. The apparatus of claim 9, further comprising:
the starting instruction receiving module: the first application starting instruction in the first sub-window and/or the second application starting instruction in the second sub-window are/is received and sent by a user;
an application start module: the first application is started in the first sub-window according to the first application starting instruction, and/or the second application is started in the second sub-window according to the second application starting instruction;
a labeling module: the server is used for marking the first marking information and/or the second marking information in the Window management Service.
11. The apparatus of claim 10, wherein the first application is launched in an Intent-to-Intent manner; the second application is launched in an Intent manner.
12. The apparatus of claim 10, further comprising:
mounting a module: the system file mount device is used for mounting the system file corresponding to the effective user ID;
a user login module: the system comprises a first sub-window and a second sub-window, wherein the first sub-window is used for receiving user ID login information;
an application information acquisition module: the system comprises a first user ID and a second user ID, and is used for acquiring an application package name and an icon resource associated with the first user ID and/or an application package name and an icon resource associated with the second user ID;
an application list generation module: the method and the device are used for generating an application list corresponding to a first user ID in the first sub-window and/or generating an application list corresponding to a second user ID in the second sub-window.
13. The apparatus according to claim 12, wherein the system file mounts corresponding to the valid user ID are storage/organizer/ID/sdcard 0 and storage/organizer/ID/sdcard 1.
14. The apparatus of claim 12, further comprising:
a mapping module: the device comprises a first sub-window, a second sub-window and a virtual device, wherein the first sub-window and the second sub-window are arranged in a window;
a management mechanism virtual module: the management mechanism is used for virtually generating a management mechanism corresponding to each child window;
the virtual device maintains at least one virtual device environment capable of providing an execution environment for foreground tasks running on the virtual device.
15. The apparatus of claim 14, further comprising:
a life cycle maintenance module: the Service manager is used for maintaining the life cycle of the first application and/or the second application through the corresponding application management Service;
the window message queue management and control module: and the Window message queue is used for independently managing and controlling the first application and/or the second application through a corresponding Window management Service (Window manager Service).
16. The apparatus according to any one of claims 9 to 15,
the first application and the second application are provided with different access rights.
CN201810050778.1A 2014-05-23 2014-05-23 Multi-user management method and device based on android system Active CN108205619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810050778.1A CN108205619B (en) 2014-05-23 2014-05-23 Multi-user management method and device based on android system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410223349.1A CN104091102B (en) 2014-05-23 2014-05-23 A kind of multi-user management method and its device based on Android system
CN201810050778.1A CN108205619B (en) 2014-05-23 2014-05-23 Multi-user management method and device based on android system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201410223349.1A Division CN104091102B (en) 2014-05-23 2014-05-23 A kind of multi-user management method and its device based on Android system

Publications (2)

Publication Number Publication Date
CN108205619A CN108205619A (en) 2018-06-26
CN108205619B true CN108205619B (en) 2022-01-28

Family

ID=51638818

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810050778.1A Active CN108205619B (en) 2014-05-23 2014-05-23 Multi-user management method and device based on android system
CN201410223349.1A Active CN104091102B (en) 2014-05-23 2014-05-23 A kind of multi-user management method and its device based on Android system

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201410223349.1A Active CN104091102B (en) 2014-05-23 2014-05-23 A kind of multi-user management method and its device based on Android system

Country Status (2)

Country Link
CN (2) CN108205619B (en)
WO (1) WO2015176359A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317941A (en) * 2014-10-31 2015-01-28 新华瑞德(北京)网络科技有限公司 Resource injection method and device of applications
CN106484501A (en) * 2015-08-26 2017-03-08 北京奇虎科技有限公司 A kind of application operation method and device
CN106873961B (en) * 2016-07-27 2021-09-28 创新先进技术有限公司 Method and device for awakening APP through mobile browser
CN108196899B (en) * 2017-12-07 2021-04-13 青岛海信移动通信技术股份有限公司 Method and device for creating multiple users
CN113642010B (en) * 2020-04-27 2024-04-26 青岛海信移动通信技术有限公司 Method for acquiring data of extended storage device and mobile terminal
CN113448873B (en) * 2021-07-22 2022-12-20 亿咖通(湖北)技术有限公司 Software testing method, device, storage medium and program product
CN113835857B (en) * 2021-09-18 2024-04-02 青岛海信移动通信技术有限公司 Mounting method, device, equipment and medium of external storage equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499354A (en) * 2002-11-11 2004-05-26 �ձ�������ʽ���� Multi-window displaying appts, and multi-window management method
CN103118197A (en) * 2013-02-05 2013-05-22 广东欧珀移动通信有限公司 Touch screen mobile terminal and short message display method thereof
CN103561159A (en) * 2013-10-09 2014-02-05 广东明创软件科技有限公司 Sub-screen display method of mobile phone e-mails
CN103593623A (en) * 2013-11-15 2014-02-19 深圳市中兴移动通信有限公司 Sub-screen display method and device
CN103605524A (en) * 2013-11-26 2014-02-26 广东欧珀移动通信有限公司 Method and device for running programs on mobile terminal in split-screen manner

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4453738B2 (en) * 2007-10-18 2010-04-21 ソニー株式会社 File transfer method, apparatus, and program
CN101840378B (en) * 2009-03-19 2011-11-02 成都市华为赛门铁克科技有限公司 Method for accessing solid-state hard disc, control device and solid-state hard disc
KR101651202B1 (en) * 2009-12-21 2016-08-26 삼성전자주식회사 Virtualization apparatus and method of operating thereof
KR101832761B1 (en) * 2011-05-26 2018-02-27 엘지전자 주식회사 Display device, method for remotely controlling display device
US8918853B2 (en) * 2011-06-29 2014-12-23 Sharp Laboratories Of America, Inc. Method and system for automatic recovery from lost security token on embedded device
CN102841804B (en) * 2012-06-27 2014-12-10 北京三星通信技术研究有限公司 Method and device for processing multiple foreground tasks on screen
CN103412713A (en) * 2013-06-28 2013-11-27 北京君正集成电路股份有限公司 Management method of intelligent device for having control over a plurality of windows simultaneously

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499354A (en) * 2002-11-11 2004-05-26 �ձ�������ʽ���� Multi-window displaying appts, and multi-window management method
CN103118197A (en) * 2013-02-05 2013-05-22 广东欧珀移动通信有限公司 Touch screen mobile terminal and short message display method thereof
CN103561159A (en) * 2013-10-09 2014-02-05 广东明创软件科技有限公司 Sub-screen display method of mobile phone e-mails
CN103593623A (en) * 2013-11-15 2014-02-19 深圳市中兴移动通信有限公司 Sub-screen display method and device
CN103605524A (en) * 2013-11-26 2014-02-26 广东欧珀移动通信有限公司 Method and device for running programs on mobile terminal in split-screen manner

Also Published As

Publication number Publication date
CN108205619A (en) 2018-06-26
CN104091102A (en) 2014-10-08
WO2015176359A1 (en) 2015-11-26
CN104091102B (en) 2018-02-06

Similar Documents

Publication Publication Date Title
CN108205619B (en) Multi-user management method and device based on android system
US9622068B2 (en) System, method and computer program product for connecting roaming mobile devices to a virtual device platform
US11089474B2 (en) Unified provisioning of applications on devices in an enterprise system
US11303719B2 (en) System, method and computer program product for capturing touch events for a virtual mobile device platform
US9380456B1 (en) System, method and computer program product for dynamically switching operating systems in a virtual mobile device platform
US9674171B2 (en) System, method and computer program product for providing notifications from a virtual device to a disconnected physical device
US10459772B2 (en) System, method and computer program product for capturing touch events for a virtual mobile device platform
US11596008B2 (en) System, method and computer program product for secure Bluetooth cryptography in a virtual mobile device platform
US9697629B1 (en) System, method and computer product for user performance and device resolution settings
US9172724B1 (en) Licensing and authentication with virtual desktop manager
US10848972B2 (en) Mobile device wireless restricted peripheral sessions
US11483221B2 (en) Launcher application with connectivity detection for shared mobile devices
US20190044788A1 (en) Using a mobile device to initiate management of a server

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