CN104391685A - Method for creating multiple user spaces for APP (Application) on intelligent equipment - Google Patents

Method for creating multiple user spaces for APP (Application) on intelligent equipment Download PDF

Info

Publication number
CN104391685A
CN104391685A CN201410489497.8A CN201410489497A CN104391685A CN 104391685 A CN104391685 A CN 104391685A CN 201410489497 A CN201410489497 A CN 201410489497A CN 104391685 A CN104391685 A CN 104391685A
Authority
CN
China
Prior art keywords
user
space
app
starter
information
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
Application number
CN201410489497.8A
Other languages
Chinese (zh)
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.)
JRD Communication Technology Shanghai Ltd
Original Assignee
JRD Communication Technology Shanghai 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 JRD Communication Technology Shanghai Ltd filed Critical JRD Communication Technology Shanghai Ltd
Priority to CN201410489497.8A priority Critical patent/CN104391685A/en
Publication of CN104391685A publication Critical patent/CN104391685A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for creating multiple user spaces for an APP (Application) on intelligent equipment. A starter and an underlying backup switching unit are arranged on the intelligent equipment, wherein the method for creating the multiple user spaces comprises the following steps: pressing an APP icon in the starter by a user for a long time so that an option of creating a second user space pops up; if the user confirms the selection, sending information about creating a user space and an APP package name to the underlying backup switching unit; receiving the information about creating the user space and the package name by using the underlying backup switching unit; checking the currently existing user space sequence number and creating a catalogue by using the underlying backup switching unit under a user data catalogue, wherein the name of the catalogue is the package name and the creating sequence number; acquiring the current user space sequence number of the APP and returning information about creation completion by using the underlying backup switching unit; establishing an icon which represents the second user space on the interface of the starter after the information about creation completion is received by the starter.

Description

Smart machine creates APP the method for multiple user's space
[technical field]
The invention belongs to electronic technology field, refer to especially and create and manage the method for multiple user's space on smart machine.
[background technology]
Take Android as the smart mobile phone of representative, more and more life entering common people, various APP has brought great convenience.But, the APP (such as QQ) that some APP, particularly internet in existing android system are relevant, they can only use an account number to log in, if need the account number using other, then need to exit current account number, re-use other account numbers and log in.Such Consumer's Experience, and before people the PC use habit be familiar with there is certain difference.
For the problems referred to above, industry has two kinds of solution routes at present: the first uses Google official " multi-user " mechanism, but can bring a kind of consequence like this, all APP namely in user mobile phone have multiple separate user data (comprising APP setting, data buffer storage etc.).And most of APP of general user does not need use two account numbers or two kinds of configurations, therefore applicability is not strong.The second is the method using mobile phone development person or mobile phone fan suggestion " amendment APP bag name ".The shortcoming of this method is, general user does not have so high technical capability on the one hand, if the edition upgrading of another aspect APP own, that just needs again to revise bag name, and workload is larger.
[summary of the invention]
The object of the present invention is to provide and a kind ofly on smart machine, create and manage the method for multiple user's space, in order to solve the problem of the strong and complicated operation of applicability that existing scheme exists.
For achieving the above object, implement method APP being created to multiple user's space on smart machine of the present invention, be applied on smart machine, this smart machine is located at starter and bottom backs up switch unit, wherein the method comprises the steps:
User is in starter, and length presses APP icon, ejects the option of " newly-built second user's space ";
If user confirms to select, transmission " newly-built user's space " information and APP bag name back up switch unit to bottom;
Bottom backup switch unit receives " newly-built user's space " information and bag name;
Layer backup switch unit is under directories of user data, and check current existing user's space sequence number, a newly-built catalogue, its name is that bag name adds establishment sequence number;
Layer backup switch unit obtains APP active user space sequence number and returns " newly-built complete " information;
Starter after " newly-built complete " information, sets up at starter interface the icon that represents the second user's space receiving.
According to above-mentioned principal character, starter and bottom are backed up switch unit and are communicated by socket.
According to above-mentioned principal character, second space icon copies APP icon, and add " the second user's space " sign at subscript type.
For achieving the above object, the invention provides a kind of method of multiple user's spaces that switchover operation is set up according to said method on smart machine, wherein the method comprises the steps:
When user clicks APP icon, if the user's space sequence number corresponding to icon clicked is identical with the current user's space sequence number run recorded in database, directly run APP;
If different, starter then points out user to be about to switch user's space;
After user determines to switch user's space, the API of starter calling system stops all processes run of APP;
Starter sends " switching user's space " information and backs up switch unit to bottom;
Bottom backup switch unit receives " switching user's space " information, obtains current sequence number and the sequence number needing to be switched to;
Bottom backup switch unit, under directories of user data, finds the catalogue of the current user's space run, changes its name into bag name and add sequence number, forwarded the current user's space run to stand-by state;
Bottom backup switch unit, under directories of user data, finds the catalogue needing the user's space be switched to, changes its name into bag name, and send " switching completes " information to starter;
After information that starter receives " switching completes ", run APP and in self lane database record APP active user space sequence number;
Starter runs APP by system API.
For achieving the above object, the invention provides a kind of method of deleting multiple user's spaces that said method is set up on smart machine, wherein the method comprises the steps:
As pressed the second icon with the head of a household, then starter ejects the option of " deleting the second user's space ";
If user confirms, and if the second user's space runs, the API of starter calling system stops all processes run of APP, is 0 in the lane database record APP active user space sequence number of self;
Starter sends " deleting the second user's space " information and backs up switch unit to bottom;
Bottom backup switch unit receives " deleting the second user's space " information, obtains needing to delete the sequence number arrived;
Bottom backup switch unit, under directories of user data, finds the catalogue needing the user's space deleted, is deleted, and issue starter " deletion completes " information;
After information that starter receives " deletion completes ", delete the second icon.
Compared with prior art, the present invention be can be implemented in smart machine being arranged multiple user's space by easy mode, thus the use of person easy to use.
[accompanying drawing explanation]
Fig. 1 implements the schematic flow sheet creating the method for multiple user's space on smart machine of the present invention.
Fig. 2 implements the schematic flow sheet switching the method for multiple user's space on smart machine of the present invention.
Fig. 3 implements the schematic flow sheet deleting the method for multiple user's space on smart machine of the present invention.
Fig. 4 is the schematic flow sheet that user deletes whole APP on smart machine.
[embodiment]
Existing android system can by all storage of subscriber data at/data subregion.And the catalogue corresponding to the user data of APP, all can using bag name as directory name.As corresponding in APP chrome is /data/data/com.android.chrome/ for depositing the catalogue of user data.
According to above-mentioned set-up mode, the present invention, by setting up several catalogues under/data/data/ catalogue, deposits different user data.Simultaneously by amendment system starter (Android Launcher), and increase the function that bottom backup switch unit realizes " multiple user's space coexist and changeable ".
Only be described with the example of " two user's space coexist and changeable " to describe in easy to be clear, following description, the implementation method of " multiple user's space coexist and changeable " simply can be analogized by the implementation method of " two " and draws.
For ease of understanding, being defined in this and being described below to some terms related in describing below.
Primary user space---refer to when installation APP, system can /data partition creating some using the bag name of APP as the catalogue of directory name when APP runs afterwards, the user data of APP is placed in above-mentioned catalogue by system, and these catalogues are referred to as primary user space in the present invention.
Primary user's data---refer to the data in primary user space.
Master map mark---refer to that notifications starter " has newly installed program ", and starter obtains APP icon then when installation APP, and in starter interface display out.This icon, the present invention is referred to as APP master map mark.
Second user's space---referring to that user initiates the extra user's space set up, being different from second part of user data for placing.If namely as user establishes the second user's space, so equipment will there be two parts of user data simultaneously.
Second user data---refer to the data in the second user's space.
Second icon---be master map target one copy, for indicating the second user's space in starter interface display.In order to distinguish, in the APP title of the present invention under APP icon, add the printed words of " the second user's space ".
Starter---refer to for showing/start/unload the special APP of set up applications APP.Starter can by all icon shows of having installed APP out, and user clicks certain APP in starter, and this APP will be dispatched to front stage operation by android system.By the popup menu of starter, user can also perform the operations such as unloading APP.
Bottom backup switch unit---refer to the c program for sub-directory under operation/data/data/ catalogue.
In addition, the present invention in the specific implementation, need add following additional step at the system start-up phase of electronic installation:
(1), when starter starts, initialization is used for the socket communicated with bottom backup switch unit;
(2) bottom is backed up switch unit startup by system initialization routine, at running background, ensures that bottom backup switch unit has the authority of operation directories of user data simultaneously.
In the specific implementation, the present invention has 3 large application scenarioss, is respectively newly-built second user's space, selection/switching user's space, deletes the second user's space, be described respectively below to the implementation method of each scene.
Refer to shown in Fig. 1, for implementing the process flow diagram creating the method for multiple user's space on smart machine of the present invention, the method comprises the steps:
User is in starter, and length presses APP icon, ejects the option of " newly-built second user's space ";
If user confirms to select, send " newly-built user's space " information by socket and back up switch unit to bottom;
Layer backup switch unit receives " newly-built user's space " information, obtains bag name by resolving socket information;
Layer backup switch unit is under directories of user data, and check current existing user's space sequence number, then a newly-built catalogue, its name is that bag name adds establishment sequence number;
Layer backup switch unit obtains APP active user space sequence number and returns success;
Starter is after receiving " newly-built complete " information that bottom backup switch unit sent by socket, the icon that one represents the second user's space is set up at starter interface, second space icon copies APP icon, and add " the second user's space " sign at subscript type.
For convenience of understanding, for chrome, above-mentioned creation method is described below, specific as follows:
User selects the option of " newly-built second user's space ";
Starter can send and comprise bag name com.android.chrome " newly-built user's space " information and back up changeover program to bottom;
Bottom backup changeover program obtains above-mentioned information and bag name, under/data/data/ catalogue, checking the catalogue of com.android.chrome beginning, by checking the catalogue of com.android.chrome-x (x is numeral) form, determining present existing user's space sequence number.In this instance, because only have a com.android.chrome catalogue, so a newly-built catalogue com.android.chrome-1;
The user's space sequence number (being 0, i.e. primary user space) of current chrome is sent to starter by bottom backup changeover program;
Starter is in the lane database record chrome active user space sequence number 0 of self.
Refer to shown in Fig. 2, for implementing the process flow diagram of the method for selection of the present invention/switching user's space, the method comprises the steps:
When user clicks APP icon (comprising master map mark and the second icon), if the user's space sequence number corresponding to icon clicked is identical with the current user's space sequence number run recorded in database, directly run APP;
If different, then eject dialog box " you want to be switched to the second user's space? ", prompting user is about to switch user's space;
After user determines to switch user's space, the API calling android system stops all processes run of APP;
Send " switching user's space " information by socket and back up switch unit to bottom;
Bottom backup switch unit receives " switching user's space " information, obtains current sequence number and the sequence number needing to be switched to by resolving socket information;
Bottom backup switch unit, under/data/data/ catalogue, finds the catalogue of the current user's space run, changes its name into bag name and add sequence number, forwarded the current user's space run to stand-by state;
Bottom backup switch unit, under/data/data/ catalogue, finds the catalogue needing the user's space be switched to, changes its name into bag name, and send " switching completes " information by socket to starter;
Starter, after receiving " switching completes " information of being sent by socket of bottom backup changeover program, runs APP and in self lane database record APP active user space sequence number;
Starter runs APP by system API.
Below still for chrome, when user selects the option of " switching the second user's space ";
Starter can check user's space, and sequence number is 0, and user's selection is sequence number 1, so when guaranteeing that APP stops, " switching user's space " information of transmission backs up changeover program to bottom.
Bottom backup changeover program obtains above-mentioned sequence number 0 and 1, under/data/data/ catalogue, by com.android.chrome catalogue, RNTO com.android.chrome-0, and by com.android.chrome-1 catalogue, RNTO com.android.chrome
Bottom backup changeover program sends successful information to launcher
Starter is in the lane database record chrome active user space sequence number 1 of self.
Starter runs APP by system API.
Refer to shown in Fig. 3, for deleting the process flow diagram of the method for the second user's space, the method comprises the steps:
With the head of a household by the second icon, eject the option of " deleting the second user's space ";
If user confirms, and if the second user's space runs, the API of calling system stops all processes run of APP, is 0 in the lane database record APP active user space sequence number of self, if do not run, continues;
Starter sends " deleting the second user's space " information by socket and backs up switch unit to bottom;
Bottom backup switch unit receives " deleting the second user's space " information, obtains needing to delete the sequence number arrived by resolving socket information;
Bottom backup switch unit, under/data/data/ catalogue, finds the catalogue needing the user's space deleted, is deleted, and issue starter " deletion completes " information by socket;
Starter, after receiving " deletion completes " information of being sent by socket of bottom backup switch unit, deletes the second icon.
(note, long do not have this option by master map mark, and primary user's space requirement uses the mode of unloading APP to delete)
For chrome, when the option that user selects " deleting the second user's space ", then run following steps successively:
1, starter can check user's space, and what user selected is sequence number 1, and sequence number 1 is being run, and so first stops APP, then " deletion user's space " information that sends backs up changeover program to bottom;
2, starter is 0 (i.e. primary user space) in the lane database record APP active user space sequence number of self;
3, bottom backup switch unit obtains above-mentioned sequence number 1, under/data/data/ catalogue, by com.android.chrome-1 directory delete;
4, bottom backup switch unit issues starter " deletion completes " information, and starter, after receiving " deletion completes " information of being sent by socket of bottom backup switch unit, deletes the second icon.
Whole APP need be unloaded if be used in, then also need the step called in the method for above-mentioned deletion second user's space, idiographic flow with reference to shown in figure 4, no longer can describe in detail herein.
The present invention is an optimization method to existing APP user's space, can ensure that user uses multiple user's space.Although multiple user's space can not run in the present invention simultaneously, also significantly increase convenience and the playability of smart machine.Particularly can continue the PC custom of certain degree on mobile phone, such as can be convenient to use multiple No. QQ, Taobao's account etc.
Be understandable that, for those of ordinary skills, can be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, and all these change or replace the protection domain that all should belong to the claim appended by the present invention.

Claims (5)

1. APP is created to a method for multiple user's space on smart machine, be applied on smart machine, this smart machine is located at starter and bottom backs up switch unit, it is characterized in that the method comprises the steps:
User is in starter, and length presses APP icon, ejects the option of " newly-built second user's space ";
If user confirms to select, transmission " newly-built user's space " information and APP bag name back up switch unit to bottom;
Bottom backup switch unit receives " newly-built user's space " information and bag name;
Layer backup switch unit is under directories of user data, and check current existing user's space sequence number, a newly-built catalogue, its name is that bag name adds establishment sequence number;
Layer backup switch unit obtains APP active user space sequence number and returns " newly-built complete " information;
Starter after " newly-built complete " information, sets up at starter interface the icon that represents the second user's space receiving.
2. APP is created to the method for multiple user's space as claimed in claim 1 on smart machine, it is characterized in that: starter and bottom are backed up switch unit and communicated by socket.
3. APP is created to the method for multiple user's space as claimed in claim 1 on smart machine, it is characterized in that: second space icon copies APP icon, and add " the second user's space " sign at subscript type.
4. the method for multiple user's spaces that switchover operation is set up according to claim 1 on smart machine, is characterized in that the method comprises the steps:
When user clicks APP icon, if the user's space sequence number corresponding to icon clicked is identical with the current user's space sequence number run recorded in database, directly run APP;
If different, starter then points out user to be about to switch user's space;
After user determines to switch user's space, the API of starter calling system stops all processes run of APP;
Starter sends " switching user's space " information and backs up switch unit to bottom;
Bottom backup switch unit receives " switching user's space " information, obtains current sequence number and the sequence number needing to be switched to;
Bottom backup switch unit, under directories of user data, finds the catalogue of the current user's space run, changes its name into bag name and add sequence number, forwarded the current user's space run to stand-by state;
Bottom backup switch unit, under directories of user data, finds the catalogue needing the user's space be switched to, changes its name into bag name, and send " switching completes " information to starter;
After information that starter receives " switching completes ", run APP and in self lane database record APP active user space sequence number;
Starter runs APP by system API.
5. on smart machine, delete a method for the multiple user's spaces set up according to claim 1, it is characterized in that the method comprises the steps:
As pressed the second icon with the head of a household, then starter ejects the option of " deleting the second user's space ";
If user confirms, and if the second user's space runs, the API of starter calling system stops all processes run of APP, is 0 in the lane database record APP active user space sequence number of self;
Starter sends " deleting the second user's space " information and backs up switch unit to bottom;
Bottom backup switch unit receives " deleting the second user's space " information, obtains needing to delete the sequence number arrived;
Bottom backup switch unit, under directories of user data, finds the catalogue needing the user's space deleted, is deleted, and issue starter " deletion completes " information;
After information that starter receives " deletion completes ", delete the second icon.
CN201410489497.8A 2014-09-22 2014-09-22 Method for creating multiple user spaces for APP (Application) on intelligent equipment Pending CN104391685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410489497.8A CN104391685A (en) 2014-09-22 2014-09-22 Method for creating multiple user spaces for APP (Application) on intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410489497.8A CN104391685A (en) 2014-09-22 2014-09-22 Method for creating multiple user spaces for APP (Application) on intelligent equipment

Publications (1)

Publication Number Publication Date
CN104391685A true CN104391685A (en) 2015-03-04

Family

ID=52609593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410489497.8A Pending CN104391685A (en) 2014-09-22 2014-09-22 Method for creating multiple user spaces for APP (Application) on intelligent equipment

Country Status (1)

Country Link
CN (1) CN104391685A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484516A (en) * 2016-10-10 2017-03-08 广东欧珀移动通信有限公司 A kind of delet method for opening application adduction relationship, device and terminal more
CN106990980A (en) * 2017-03-08 2017-07-28 北京小米移动软件有限公司 User's space creation method and device
TWI710251B (en) * 2019-03-29 2020-11-11 展雋創意股份有限公司 One-touch-switch multi-user tv user interface and system thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760060A (en) * 2012-05-21 2012-10-31 张伟明 Design method of multi-user system and main interface thereof, and application to intelligent television
CN102938030A (en) * 2012-09-29 2013-02-20 周万荣 Method and terminal for setting permission of application and controlling restricted region
CN103019812A (en) * 2012-11-20 2013-04-03 广东欧珀移动通信有限公司 Application deployment method and device for multi-user terminal and terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760060A (en) * 2012-05-21 2012-10-31 张伟明 Design method of multi-user system and main interface thereof, and application to intelligent television
CN102938030A (en) * 2012-09-29 2013-02-20 周万荣 Method and terminal for setting permission of application and controlling restricted region
CN103019812A (en) * 2012-11-20 2013-04-03 广东欧珀移动通信有限公司 Application deployment method and device for multi-user terminal and terminal equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FOR1233: "《百度经验,http://jingyan.baidu.com/article/afd8f4de53389a34e286e9c6.html》", 27 June 2013 *
MSZEFOTHT: "《360问答》", 8 March 2013 *
ROVIOTIME: "《百度经验,http://jingyan.baidu.com/article/574c521932c6e56c8d9dc199.html》", 14 August 2014 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484516A (en) * 2016-10-10 2017-03-08 广东欧珀移动通信有限公司 A kind of delet method for opening application adduction relationship, device and terminal more
CN106484516B (en) * 2016-10-10 2019-09-03 Oppo广东移动通信有限公司 A kind of delet method, device and terminal opened using adduction relationship more
CN106990980A (en) * 2017-03-08 2017-07-28 北京小米移动软件有限公司 User's space creation method and device
CN106990980B (en) * 2017-03-08 2020-07-31 北京小米移动软件有限公司 User space creation method and device
TWI710251B (en) * 2019-03-29 2020-11-11 展雋創意股份有限公司 One-touch-switch multi-user tv user interface and system thereof

Similar Documents

Publication Publication Date Title
CN105893084B (en) Version upgrading method and terminal device
CN104156414B (en) A kind of method for cleaning of garbage files, device and terminal
CN104020991B (en) The multi-language switching method and device of application program
CN103500116A (en) Method and system for clearing data generated by application program
CN107992355B (en) Method and device for deploying application software and virtual machine
CN104699423B (en) The method and apparatus that drive is bound in linux system
CN105930436A (en) File recovery method and device for mobile terminal equipment
CN104915257A (en) Method and device for replacing theme based on Android system application
CN104636026A (en) File saving method and device and mobile terminal
CN104899049B (en) File deletion method and device
CN102801786A (en) Method, device and system for transmitting file
CN105573587B (en) A kind of method and device of management of icons
CN106533719A (en) Method and system for realizing cluster deployment
CN107832113A (en) A kind of interface display method and device of android system application program
CN106155789A (en) A kind of application freezing method and mobile terminal
CN103838843A (en) File processing method and electronic equipment
CN103605464A (en) Desktop application icon across-screen combination method
CN105354097A (en) Data operation method and device based on clipboard and electronic equipment
CN106547486A (en) A kind of data migration method and device
CN104391685A (en) Method for creating multiple user spaces for APP (Application) on intelligent equipment
CN105956132A (en) Junk data clearing method and system
CN105867962A (en) System upgrading method and device
CN103179153B (en) Mobile terminal and mobile terminal data backup method based on cloud server
CN105988776A (en) Information card processing method and device
CN107766488A (en) A kind of information query method, terminal, computer-readable recording medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20150304