Nothing Special   »   [go: up one dir, main page]

CN103631785B - A kind of electronic equipment and the mode switching method applied to electronic equipment - Google Patents

A kind of electronic equipment and the mode switching method applied to electronic equipment Download PDF

Info

Publication number
CN103631785B
CN103631785B CN201210299575.9A CN201210299575A CN103631785B CN 103631785 B CN103631785 B CN 103631785B CN 201210299575 A CN201210299575 A CN 201210299575A CN 103631785 B CN103631785 B CN 103631785B
Authority
CN
China
Prior art keywords
database
mode
electronic equipment
application
switching command
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
CN201210299575.9A
Other languages
Chinese (zh)
Other versions
CN103631785A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210299575.9A priority Critical patent/CN103631785B/en
Priority to CN201711418684.7A priority patent/CN107944298A/en
Publication of CN103631785A publication Critical patent/CN103631785A/en
Application granted granted Critical
Publication of CN103631785B publication Critical patent/CN103631785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Storage Device Security (AREA)

Abstract

Mode switching method the invention discloses a kind of electronic equipment and applied to electronic equipment, electronic equipment has first mode and second mode, corresponding first database of first mode, corresponding second database of second mode, first database and the second database can load the first application, and methods described includes:The first switching command is obtained, the first switching command is used to indicate that electronic equipment is switched to second mode from first mode;According to the first switching command, the first database corresponding to first mode is removed into the second place from first position;According to the first switching command, second database corresponding to second mode is removed into first position from the 3rd position, and the first application is loaded into the second database, the incidence relation of the first application and the second database is established, so that user accesses the data of the second database preservation by the first application.Such technical scheme, the just simple and easy mode handover procedure for realizing electronic equipment of energy, and suitability is very strong.

Description

A kind of electronic equipment and the mode switching method applied to electronic equipment
Technical field
The present invention relates to communication technical field, is cut more particularly, to a kind of electronic equipment and applied to the pattern of electronic equipment Change method.
Background technology
Generally, can be stored in the electronic equipment that user holds it is a large amount of be related to personal information private data (such as Photo, contact person, short message, web page browsing record etc.), and in daily life, often occur that user lends electronic equipment The situation that friend uses, in this case, user will not mind that friend plays the game on electronic equipment, but are not intended to it and look into See the private data of electronic equipment memory storage.In order to protect privacy of user, existing electronic devices support guest mode, i.e., Before electronic equipment is lent into others, electronic equipment can be arranged to guest mode by user, would not want to others check it is hidden Private image watermarking gets up, and ensures the security of privacy of user data with this.
At present, the implementation of electronic equipment guest mode is:Transformation may be related to the application program of privacy of user, Switching function is made it have, and by way of closing or disconnecting switch, to control application program to read privacy of user data Authority.For example, the application code of modification short message makes it have switching function, if electronic equipment is arranged to visit by user The switch of objective pattern, i.e. closed application, then short message application program can be forbidden to go in corresponding database to read user Short message content, it is achieved thereby that hiding the purpose of this private data of short message for visitor;If user exits guest mode, The switch of application program is disconnected, then can recover short message application program and go corresponding database to read user's short message content Authority.Although this mode realizes the purpose for setting visitor's authority, but need using restoration and reuse program as cost, causes this The suitability for the guest mode that kind mode is realized is very poor.
The content of the invention
The present invention is intended to provide a kind of electronic equipment and the mode switching method applied to electronic equipment, simple and easy reality The handoff procedure between electronic equipment both of which is showed.
The present invention provides a kind of mode switching method, and methods described is applied in an electronic equipment, the electronic equipment tool There are first mode and second mode, corresponding first database of the first mode, corresponding second database of the second mode, institute The first application can be loaded by stating the first database and second database, and methods described includes:
The first switching command is obtained, first switching command is used to indicate that electronic equipment is switched to from the first mode The second mode;
According to first switching command, first database corresponding to the first mode is removed from first position To the second place;
According to first switching command, second database corresponding to the second mode is removed from the 3rd position Second database is loaded into the first position, and by the described first application, establishes first application and described the The incidence relation of two databases, so that user accesses the data of the second database preservation by the described first application.
Preferably, it is described that first database is removed into the second place from first position, specifically include:Call first Root authority channel service, first database is moved from the first position based on the first root authority channel service Except to the second place;Second database is removed into the first position from the 3rd position, specifically included:Call the Two root authority channel services, based on the second root authority channel service by second database from the 3rd position Remove to the first position.
Preferably, methods described also includes:
The second switching command is obtained, second switching command is used to indicate that electronic equipment is switched to from the second mode The first mode;
According to second switching command, first database is removed to described first from the second place Put, and the described first application is loaded into first database, establish first application and the pass of first database Connection relation, so that user accesses the data of the first database preservation by the described first application.
Preferably, it is described that first database is removed into the first position from the second place, specifically include:
The 3rd root authority channel service is called, based on the 3rd root authority channel service by first database The first position is removed to from the second place.
Preferably, after the second switching command of the acquisition, methods described also includes:
Judge whether to preserve the data of second database, produce the first judged result;
If first judged result represents to preserve the data of second database, by first database Before removing to the first position from the second place, second database is removed to the 3rd from the first position Position.
Correspondingly, the present invention also provides a kind of electronic equipment, and the electronic equipment has first mode and second mode, institute State corresponding first database of first mode, corresponding second database of the second mode, first database and described second Database can load the first application, and the electronic equipment includes:
First instruction obtaining unit, for obtaining the first switching command, first switching command is used to indicate that electronics is set It is standby to be switched to the second mode from the first mode;
First removes unit, for according to first switching command, corresponding to the first mode described first to be counted According to storehouse the second place is removed to from first position;
Second removes unit, for according to first switching command, corresponding to the second mode described second to be counted The first position is removed to from the 3rd position according to storehouse, and the described first application is loaded into second database, establishes institute The first application and the incidence relation of second database are stated, so that user accesses second data by the described first application The data that storehouse preserves.
Preferably, described first unit is removed, specifically for calling the first root authority channel service, based on described first First database is removed to the second place by root authority channel service from the first position;Described second removes Unit, specifically for calling the second root authority channel service, based on the second root authority channel service by described second Database removes to the first position from the 3rd position.
Preferably, the electronic equipment also includes:
Second instruction obtaining unit, for obtaining the second switching command, second switching command is used to indicate that electronics is set It is standby to be switched to the first mode from the second mode;
3rd removes unit, for according to second switching command, by first database from the second place The first position is removed to, and the described first application is loaded into first database, establishes first application and institute The incidence relation of the first database is stated, so that user accesses the data of the first database preservation by the described first application.
Preferably, the described 3rd unit is removed, specifically for calling the 3rd root authority channel service, based on the described 3rd First database is removed to the first position by root authority channel service from the second place.
Preferably, the electronic equipment also includes:
Judging unit, after obtaining second switching command in the described second instruction obtaining unit, judge whether The data of second database are preserved, produce the first judged result;
4th removes unit, for when first judged result represents to preserve the data of second database, Before first database is removed to the first position by the 3rd removal unit from the second place, by described the Two databases remove to the 3rd position from the first position.
Compared with prior art, the present invention has the advantages that:
Electronic equipment has both of which, and both patterns are corresponding with respective database respectively, is cut entering row mode When changing, the first database for being loaded with the first application is directly removed into the second place from current first position, then again will Second database moves on to first position, and the first application is loaded into the second database, establishes the second database and the first application Incidence relation, allow user by first application access the second database data, so far just complete electronic equipment mould Formula handoff procedure.This handoff procedure is simple and easy and suitability is very strong, while can also effectively limit user and access electronic equipment The authority of data, ensure the safety of electronic device data.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow chart of mode switching method embodiment 1 of the present invention;
Fig. 2 is the flow chart of mode switching method embodiment 2 of the present invention;
Fig. 3 is the flow chart of mode switching method embodiment 3 of the present invention;
Fig. 4 is the schematic diagram of electronic equipment embodiment 1 of the present invention;
Fig. 5 is the schematic diagram of electronic equipment embodiment 2 of the present invention;
Fig. 6 is the schematic diagram of electronic equipment embodiment 3 of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained, belong to what the present invention protected Scope.
The present invention provides a kind of electronic equipment and the mode switching method applied to electronic equipment, for simple and easy reality Switching between existing electronic equipment both of which, the technical scheme is that both of which sets a database respectively, and The two databases can load the application that electronic equipment has.When needing switching, the database that will be hidden (is not intended to The database being accessed by the user) from first position the second place is removed to, while the database that will also show (can be by user The database of access) first position is moved on to, and the application that electronic equipment has is loaded, this user's can should by loading With the database accessed on first position.While implementation pattern switches, moreover it is possible to effectively access of the limitation user to database Authority, protect the safety of electronic device data.
Referring to Fig. 1, the flow chart of mode switching method embodiment 1 of the present invention is shown, methods described is applied to an electronics In equipment, the electronic equipment has a first mode and second mode, corresponding first database of the first mode, and described second Corresponding second database of pattern, first database and second database can load the first application, methods described bag Include:
Step 101, the first switching command is obtained, first switching command is used to indicate electronic equipment from first mould Formula is switched to the second mode.
Operation of the monitoring user to electronic equipment in real time, when user has switching demand, i.e., can control startup electronic equipment Handoff functionality, such as user can by click on switching icon, operation switching key, the mode such as phonetic entry switching command to Electronic equipment sends the first switching command, and instruction electronic equipment carries out pattern switching.
Exemplified by setting guest mode, if first mode is owner's pattern, second mode is guest mode, when owner will , can be by electronic equipment slave for the safety of private data in protection equipment when electronic equipment is lent into friend's use Holotype is switched to guest mode, then the process that owner opens guest mode is to send the first switching command to electronic equipment Process.
Step 102, according to first switching command, by first database corresponding to the first mode from first Position removes to the second place.
Step 103, according to first switching command, by second database corresponding to the second mode from the 3rd Position removes to the first position, and the described first application is loaded into second database, establishes first application With the incidence relation of second database so that user passes through the described first application and accesses the number that second database preserves According to.
After step 101 obtains the first switching command, electronic equipment is triggered and proceeds by pattern switching, needs first It is noted that the both of which that electronic equipment has respectively is corresponding with a database, and each database can add Application is carried, therefore in different modes, user's can accesses the data preserved in database corresponding to the pattern by application, But be not in while access the situation of data in two databases, i.e., both of which selects a display, if electronics is set Standby current display first mode (user can access the data that the first database preserves by application), then second mode is then in Hidden state (user can not access the data of the second database preservation), vice versa.Based on this, when electronic equipment be triggered into When row mode switches, the addressable database of active user will be removed to the second place from first position, be hidden, prevented Only user accesses the data in the database;The database not being accessed by the user currently is also moved to first position simultaneously, It has been shown that, further, in order to realize that user accesses data this purpose in the database, it is also necessary to which loading is applied to this Database, establishes application and the incidence relation between the database, and such user could access the number in the database by application According to.
It should be noted that for changing at two data places for this operational motion of position, user is not weigh What limit was carried out, this just needs the root authority channel service by operating system, and normal user permission is converted into root user Authority (root user is unique super keepe in system, has the authority for being equal to operating system), so as to complete data Warehouse compartment, which is put, changes this operational motion.
Still exemplified by setting guest mode, when owner selects to hide owner's database corresponding to owner's pattern, display visitor (visitor's database can be that one created when electronic equipment dispatches from the factory and started shooting for the first time is empty to visitor's database corresponding to pattern Database) when, handoff procedure mainly includes following two aspects:
In a first aspect, hide owner's database.The first root authority channel service is called, the executor of action is converted to Root user, owner's database is removed into the second place from first position by the first root authority channel service, hide owner Database, prevent visitor from getting the data in owner's database.In addition, by owner's DB Backup to the second place, moreover it is possible to Guest mode is exited in owner's selection, when coming back to owner's pattern, owner can be still continued through using addressing machine master data Data in storehouse, avoid losing owner's data.
Second aspect, show visitor's database.The second root authority channel service is called, the executor of action is converted to Root user, visitor's database is removed into first position, covering first from the 3rd position by the second root authority channel service Owner's database on position, show visitor's database.Load the application of electronic equipment in visitor's database again simultaneously, with Exemplified by short message application, short message application is loaded into visitor's database, establishes short message using the visit with being currently located on first position Incidence relation between objective database, such visitor's can accesses the data in visitor's database by short message application, such as reads A short message is taken, but the short message in short message application reading machine primary database can not be passed through.
For the first root authority channel service and the second root authority channel service, it can be such as above-mentioned example It is described, two corresponding root authority channel services are set for two removing actions respectively, two can also be removed certainly dynamic It is fused in a root authority channel service and realizes, this present invention is not limited, as long as can be transformed into from domestic consumer Root user.
Set it should be noted that the database in the present invention can be directed to application, such as the short message for short message application Database, for message registration application message registration database, for contact database of contact application etc.;Can also Set for user identity, such as owner's database for owner, visitor's database for visitor, certainly whether owner Database or visitor's database be may continue to segment for different application, and this present invention is not limited.
Referring to Fig. 2, show the flow chart of mode switching method embodiment 2 of the present invention, according to method shown in Fig. 1 by electricity Sub- equipment can also be cut electronic equipment again by second mode according to the selection of user after first mode is switched to second mode First mode is gained, specifically may include following steps:
Step 201, the second switching command is obtained, second switching command is used to indicate electronic equipment from second mould Formula is switched to the first mode.
It is similar with step 101, operation of the user to electronic equipment is monitored in real time, when user has switching demand, equally The handoff functionality for starting electronic equipment can be controlled, such as user can be defeated by clicking on switching icon, operation switching key, voice Enter the modes such as switching command and send the second switching command to electronic equipment, instruction electronic equipment carries out pattern switching.
Exemplified by exiting guest mode, after electronic equipment is returned owner by friend, owner's can by electronic equipment from Guest mode switches back into owner's pattern, then the process that owner exits guest mode is to send the second switching command to electronic equipment Process.
Step 202, according to second switching command, first database is removed to from the second place described First position, and the described first application is loaded into first database, establish first application and first data The incidence relation in storehouse, so that user accesses the data of the first database preservation by the described first application.
After step 201 obtains the second switching command, electronic equipment is triggered and proceeds by pattern switching, will be moved Except the first database to the second place removes to first position again, i.e., the first database on the second place is backed up again Data are to first position, then again by way of loading and applying, the incidence relation established between the first database and application, finally Realize and pass through the purpose that application accesses the data that the first database preserves.
Similarly, the operational motion of the first database of removal also needs real by the root authority channel service of operating system It is existing.Still exemplified by exiting guest mode, when owner selects to show owner's database corresponding to owner's pattern, hiding guest mode pair During the visitor's database answered, the 3rd root authority channel service will be called, the executor of action is converted into root user, by First database is removed to first position by the 3rd root authority channel service from the second place, shows owner's database.Simultaneously Again the application of electronic equipment is loaded in owner's database, so that short message is applied as an example, short message application is reloaded into owner Database, short message is established using the incidence relation between owner's database with being currently located on first position, such owner can With again through the data in short message application addressing machine primary database, such as one short message of reading.
For the 3rd root authority channel service, with above-mentioned first root authority channel service and the second root authority Channel service is similar, can be set individually for this removing action, one can be also fused to above-mentioned two removing action Realize, this present invention is not also limited, as long as root user can be transformed into from domestic consumer i.e. in root authority channel service Can.
It should be noted that after the first database is removed into first position again, it can delete what is backed up on the second place The data of first database, it can also continue the data for retaining backup.For in the case of Backup Data is retained, carried out in next time During pattern switching, the data backed up before the data cover of the first new database can be utilized, ensure to back up on the second place Data be always newest data;In the case where electronic equipment internal memory allows, the first number can be also backed up on the second place According to the data of storehouse different times, thus different times to it can be presented according to the selection of owner caused by historical data, it is right This present invention does not limit.
Referring to Fig. 3, show the flow chart of mode switching method embodiment 3 of the present invention, according to method shown in Fig. 1 by electricity Sub- equipment can also be cut electronic equipment again by second mode according to the selection of user after first mode is switched to second mode First mode is gained, specifically may include following steps:
Step 301, the second switching command is obtained, second switching command is used to indicate electronic equipment from second mould Formula is switched to the first mode.
Step 301 is identical with step 201, and here is omitted.
Step 302, judge whether to preserve the data of second database, produce the first judged result.
Step 303, if first judged result represents to preserve the data of second database, by described second Database removes to the 3rd position from the first position.
After step 301 obtains the second switching command, first mode directly is not switched to from second mode, but first carry Show whether user preserves the data of the second database corresponding to second mode, according to the selection of user, if preserved, by the portion Divided data backups to the 3rd position, then performs the process for being switched to first mode again;Otherwise directly perform and be switched to the first mould The process of formula.
Still exemplified by exiting guest mode, when electronic equipment is returned owner by friend, it is possible to it is desirable that by oneself with visit The data that objective identity is stored in electronic equipment save, therefore, after owner's triggering electronic equipment exits guest mode, electricity Whether sub- equipment can inquiry owner preserves the data of visitor's database, if owner selects to preserve, by root passages This partial data is removed to the 3rd position by rights service, when avoiding the first database from being removed to first position again, this portion Divided data is capped to cause loss of data.
Step 304, according to second switching command, first database is removed to from the second place described First position, and the described first application is loaded into first database, establish first application and first data The incidence relation in storehouse, so that user accesses the data of the first database preservation by the described first application.
Step 304 is similar with step 202, and simply the two opportunity being triggered is different, and step 202 is obtaining the second switching After instruction, that is, it is triggered and removes the first database to first position, step 304 is then to handle second according to the selection of user After the data of database, the first database is just removed under the instruction of the second switching command to first position.
It should be noted that mode switching method provided by the invention is simple and easy, and without restoration and reuse program, adaptation Property it is very strong, in addition, while limitation user is realized to electronic device data access rights, also settable visit of the user to application Ask authority.For example, when setting guest mode, a certain application can be removed to by ad-hoc location according to the selection of owner, hiding should Item application, such visitor would not view the application that owner hides, and more will not apply addressing machine master data by this.Work as machine When guest mode is exited in main selection, electronic equipment can also show that this applies according to contrary operation.The corresponding operation for removing application For action, need also exist for realizing that here is omitted by root authority channel service.
Referring to Fig. 4, the schematic diagram of electronic equipment embodiment 1 of the present invention is shown, the electronic equipment has first mode And second mode, corresponding first database of the first mode, corresponding second database of the second mode, first data Storehouse and second database can load the first application, and the electronic equipment includes:
First instruction obtaining unit 401, for obtaining the first switching command, first switching command is used to indicate electronics Equipment is switched to the second mode from the first mode.
First removes unit 402, for according to first switching command, by corresponding to the first mode described first Database removes to the second place from first position;
Specifically, described first unit is removed for calling the first root authority channel service, based on the first root First database is removed to the second place by authority channel service from the first position.
Second removes unit 403, for according to first switching command, by corresponding to the second mode described second Database removes to the first position from the 3rd position, and the described first application is loaded into second database, establishes First application and the incidence relation of second database, so that user accesses second number by the described first application The data preserved according to storehouse;
Specifically, described second unit is removed for calling the second root authority channel service, based on the 2nd root Second database is removed to the first position by authority channel service from the 3rd position.
The electronic equipment of the present invention sets a database respectively for both of which, and the two databases can load electricity The application that sub- equipment has.When needing switching, the database (being not intended to the database being accessed by the user) that will hide from First position removes to the second place, while the database (database that can be accessed by the user) that will also show moves on to first Position, and the application that electronic equipment has is loaded, this user's can accesses the number on first position by the application of loading According to storehouse.While implementation pattern switches, moreover it is possible to which effectively limitation user protects electronic device data to the access rights of database Safety.
Referring to Fig. 5, the schematic diagram of electronic equipment embodiment 2 of the present invention is shown, electronic equipment is switched from first mode To after second mode, also electronic equipment can be switched back into first mode, the electricity again by second mode according to the selection of user Sub- equipment also includes:
Second instruction obtaining unit 501, for obtaining the second switching command, second switching command is used to indicate electronics Equipment is switched to the first mode from the second mode;
3rd removes unit 502, for according to second switching command, by first database from the second Put and remove to the first position, and by described first application be loaded into first database, establish it is described first application with The incidence relation of first database, so that user accesses the number of the first database preservation by the described first application According to;
Specifically, the described 3rd unit is removed for calling the 3rd root authority channel service, based on the 3rd root First database is removed to the first position by authority channel service from the second place.
Referring to Fig. 6, the schematic diagram of electronic equipment embodiment 3 of the present invention is shown, electronic equipment is switched from first mode To after second mode, also electronic equipment can be switched back into first mode, the electricity again by second mode according to the selection of user Sub- equipment also includes:
Second instruction obtaining unit 601, for obtaining the second switching command, second switching command is used to indicate electronics Equipment is switched to the first mode from the second mode;
Judging unit 602, after obtaining second switching command in the described second instruction obtaining unit, judgement is The no data for preserving second database, produce the first judged result;
4th removes unit 603, for when first judged result represents to preserve the data of second database, Second database is removed into the 3rd position from the first position.
3rd removes unit 604, for according to second switching command, by first database from the second Put and remove to the first position, and by described first application be loaded into first database, establish it is described first application with The incidence relation of first database, so that user accesses the number of the first database preservation by the described first application According to.
When electronic equipment is switched back into first mode from second mode, can also prompt the user whether to preserve second mode pair The data for the second database answered, and after handling under the instruction of user the data of the second database, then remove the first database To first position, the flexibility of electronic device mode switching of the present invention is improved with this.
A kind of mode switching method provided by the present invention is described above, specific case pair used herein The principle and embodiment of the present invention is set forth, and the explanation of above example is only intended to help the method for understanding the present invention And its core concept;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, in embodiment and There will be changes in application.In summary, this specification content should not be construed as limiting the invention.

Claims (10)

1. a kind of mode switching method, it is characterised in that methods described is applied in an electronic equipment, and the electronic equipment has First mode and second mode, corresponding first database of the first mode, corresponding second database of the second mode are described First database and second database can load the first application, and methods described includes:
Obtain the first switching command, first switching command is used to indicating that electronic equipment is switched to from the first mode described Second mode;The first mode is owner's pattern, and the second mode is guest mode;
According to first switching command, first database corresponding to the first mode is removed to from first position Two positions, first database is hidden, prevent user from accessing the data in first database;Wherein, described One database is the database for being not intended to be accessed by the user;
According to first switching command, second database corresponding to the second mode is removed into institute from the 3rd position First position is stated, and the described first application is loaded into second database, establishes first application and the described second number According to the incidence relation in storehouse, so that user accesses the data of the second database preservation by the described first application;Wherein, it is described Second database is the database that can be accessed by the user.
2. according to the method for claim 1, it is characterised in that
It is described that first database is removed into the second place from first position, specifically include:
The first root authority channel service is called, based on the first root authority channel service by first database from institute State first position and remove to the second place;
Second database is removed into the first position from the 3rd position, specifically included:
The second root authority channel service is called, based on the second root authority channel service by second database from institute State the 3rd position and remove to the first position.
3. method according to claim 1 or 2, it is characterised in that methods described also includes:
Obtain the second switching command, second switching command is used to indicating that electronic equipment is switched to from the second mode described First mode;
According to second switching command, first database is removed into the first position from the second place, and Described first application is loaded into first database, first application is established and is associated with first database System, so that user accesses the data of the first database preservation by the described first application.
4. according to the method for claim 3, it is characterised in that described to move first database from the second place Except to the first position, specifically including:
The 3rd root authority channel service is called, based on the 3rd root authority channel service by first database from institute State the second place and remove to the first position.
5. according to the method for claim 3, it is characterised in that after the second switching command of the acquisition, methods described Also include:
Judge whether to preserve the data of second database, produce the first judged result;
If first judged result represents to preserve the data of second database, by first database from institute State the second place to remove to before the first position, second database is removed to the 3rd from the first position Put.
6. a kind of electronic equipment, it is characterised in that the electronic equipment has first mode and second mode, the first mode Corresponding first database, corresponding second database of the second mode, first database and the equal energy of the second database The application of loading first, the electronic equipment include:
First instruction obtaining unit, for obtaining the first switching command, first switching command be used to indicating electronic equipment from The first mode is switched to the second mode;The first mode is owner's pattern, and the second mode is guest mode;
First removes unit, for according to first switching command, by first database corresponding to the first mode The second place is removed to from first position, first database is hidden, prevents user from accessing in first database Data;Wherein, first database is the database for being not intended to be accessed by the user;
Second removes unit, for according to first switching command, by second database corresponding to the second mode The first position is removed to from the 3rd position, and the described first application is loaded into second database, establishes described the One application and the incidence relation of second database, are protected so that user accesses second database by the described first application The data deposited;Wherein, second database is the database that can be accessed by the user.
7. electronic equipment according to claim 6, it is characterised in that
Described first removes unit, specifically for calling the first root authority channel service, is led to based on first root authority First database is removed to the second place by road service from the first position;
Described second removes unit, specifically for calling the second root authority channel service, is led to based on second root authority Second database is removed to the first position by road service from the 3rd position.
8. the electronic equipment according to claim 6 or 7, it is characterised in that the electronic equipment also includes:
Second instruction obtaining unit, for obtaining the second switching command, second switching command be used to indicating electronic equipment from The second mode is switched to the first mode;
3rd removes unit, for according to second switching command, first database to be removed from the second place First database is loaded into the first position, and by the described first application, establishes first application and described the The incidence relation of one database, so that user accesses the data of the first database preservation by the described first application.
9. electronic equipment according to claim 8, it is characterised in that
Described 3rd removes unit, specifically for calling the 3rd root authority channel service, is led to based on the 3rd root authority First database is removed to the first position by road service from the second place.
10. electronic equipment according to claim 8, it is characterised in that the electronic equipment also includes:
Judging unit, after obtaining second switching command in the described second instruction obtaining unit, judge whether to preserve The data of second database, produce the first judged result;
4th removes unit, for when first judged result represents to preserve the data of second database, described Before first database is removed to the first position by the 3rd removal unit from the second place, described second is counted According to storehouse the 3rd position is removed to from the first position.
CN201210299575.9A 2012-08-21 2012-08-21 A kind of electronic equipment and the mode switching method applied to electronic equipment Active CN103631785B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210299575.9A CN103631785B (en) 2012-08-21 2012-08-21 A kind of electronic equipment and the mode switching method applied to electronic equipment
CN201711418684.7A CN107944298A (en) 2012-08-21 2012-08-21 A kind of electronic equipment and the mode switching method applied to electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210299575.9A CN103631785B (en) 2012-08-21 2012-08-21 A kind of electronic equipment and the mode switching method applied to electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201711418684.7A Division CN107944298A (en) 2012-08-21 2012-08-21 A kind of electronic equipment and the mode switching method applied to electronic equipment

Publications (2)

Publication Number Publication Date
CN103631785A CN103631785A (en) 2014-03-12
CN103631785B true CN103631785B (en) 2017-12-29

Family

ID=50212860

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201210299575.9A Active CN103631785B (en) 2012-08-21 2012-08-21 A kind of electronic equipment and the mode switching method applied to electronic equipment
CN201711418684.7A Pending CN107944298A (en) 2012-08-21 2012-08-21 A kind of electronic equipment and the mode switching method applied to electronic equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201711418684.7A Pending CN107944298A (en) 2012-08-21 2012-08-21 A kind of electronic equipment and the mode switching method applied to electronic equipment

Country Status (1)

Country Link
CN (2) CN103631785B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927119B (en) * 2014-04-16 2017-06-16 广东欧珀移动通信有限公司 Switch to the method and system at account interface
CN106682485A (en) * 2016-11-29 2017-05-17 维沃移动通信有限公司 Method for processing verification code and mobile terminal
CN109462687A (en) * 2018-09-05 2019-03-12 深圳市万普拉斯科技有限公司 Control method, device, terminal device and the storage medium of terminal
CN111225111A (en) * 2020-01-03 2020-06-02 北京小米移动软件有限公司 Function control method, function control device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005661A (en) * 2006-11-15 2007-07-25 深圳凯虹移动通信有限公司 Mobile terminal with data and menu hidden function and its enciphering hiding method
CN101192158A (en) * 2006-11-28 2008-06-04 佛山市顺德区顺达电脑厂有限公司 Method for personal digital assistant machine accomplishing multi- human application
CN101616199A (en) * 2008-06-27 2009-12-30 深圳富泰宏精密工业有限公司 Multiple modes of operation switched system and method
US7792301B2 (en) * 2006-06-29 2010-09-07 Microsoft Corporation Access control and encryption in multi-user systems
CN102075618A (en) * 2010-12-14 2011-05-25 东莞宇龙通信科技有限公司 Personal information management method, system and mobile terminal
CN102087602A (en) * 2009-12-04 2011-06-08 纬创资通股份有限公司 Account management method and account management device for Android system
CN102415204A (en) * 2009-06-16 2012-04-11 英特尔公司 Multi-mode handheld wireless device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003518287A (en) * 1999-12-23 2003-06-03 ジェネラル・インスツルメント・コーポレイション Dual mode processor
DE10332700A1 (en) * 2003-06-24 2005-01-13 Robert Bosch Gmbh Method for switching between at least two operating modes of a processor unit and corresponding processor unit
JP4438048B2 (en) * 2003-08-08 2010-03-24 キヤノン株式会社 Peripheral device, firmware update method for the peripheral device, and program
CN101937363B (en) * 2009-07-01 2013-12-25 联想(北京)有限公司 Mobile terminal operating mode switching method and mobile terminal
AU2011202837B2 (en) * 2010-12-21 2013-08-22 Lg Electronics Inc. Mobile terminal and method of controlling a mode switching therein

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7792301B2 (en) * 2006-06-29 2010-09-07 Microsoft Corporation Access control and encryption in multi-user systems
CN101005661A (en) * 2006-11-15 2007-07-25 深圳凯虹移动通信有限公司 Mobile terminal with data and menu hidden function and its enciphering hiding method
CN101192158A (en) * 2006-11-28 2008-06-04 佛山市顺德区顺达电脑厂有限公司 Method for personal digital assistant machine accomplishing multi- human application
CN101616199A (en) * 2008-06-27 2009-12-30 深圳富泰宏精密工业有限公司 Multiple modes of operation switched system and method
CN102415204A (en) * 2009-06-16 2012-04-11 英特尔公司 Multi-mode handheld wireless device
CN102087602A (en) * 2009-12-04 2011-06-08 纬创资通股份有限公司 Account management method and account management device for Android system
CN102075618A (en) * 2010-12-14 2011-05-25 东莞宇龙通信科技有限公司 Personal information management method, system and mobile terminal

Also Published As

Publication number Publication date
CN107944298A (en) 2018-04-20
CN103631785A (en) 2014-03-12

Similar Documents

Publication Publication Date Title
CN103631785B (en) A kind of electronic equipment and the mode switching method applied to electronic equipment
CN103902862B (en) A kind of mobile device management method, apparatus and a kind of mobile equipment
CN104461749B (en) A kind of application program synchronous method, sychronisation and the terminal of multisystem terminal
CN103679007B (en) A kind of manage the method for application program authority, device and mobile device
CN103023649A (en) Method, device and equipment for protecting privacy information
CN103310149B (en) The method, apparatus and terminal of system function call
CN104008313A (en) Protecting method and device of privacy information
CN103391374A (en) Dual system terminal supporting seamless switching
CN104036202B (en) A kind of method and apparatus for isolating enterprise's application
CN105260664B (en) Method for security protection and terminal are applied between a kind of multisystem
CN106102068A (en) A kind of illegal wireless access point detection and attack method and device
JPH08307946A (en) Phs terminal invalidating system
CN104573541A (en) Terminal, and method and device for processing multiple users of terminal
CN104008345A (en) Method and device for protecting user privacy data of application program
CN107465662A (en) Mobile terminal policy management method, mobile terminal and computer-readable recording medium
CN106295284A (en) A kind of information protecting method and mobile terminal
CN103793313B (en) A kind of mobile terminal fault recording method and its system
CN108040335A (en) A kind of Internet of Things communication number management method and system based on smart card
CN104506563A (en) Process access control method, process access control system and terminal
CN103870755A (en) Method and device for transferring files between multiple users of same electronic device
CN103458394A (en) Mobile terminal, processing method and processing device for internal information of mobile terminal
CN105516500A (en) Method and system for selecting equipment mode
CN108307463A (en) mode switching method, system and access control system
CN103093529B (en) The method of dynamic refresh data
CN104412274A (en) Portable terminal, program, and control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant