CN107944298A - 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
CN107944298A
CN107944298A CN201711418684.7A CN201711418684A CN107944298A CN 107944298 A CN107944298 A CN 107944298A CN 201711418684 A CN201711418684 A CN 201711418684A CN 107944298 A CN107944298 A CN 107944298A
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.)
Pending
Application number
CN201711418684.7A
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.)
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 CN201711418684.7A priority Critical patent/CN107944298A/en
Publication of CN107944298A publication Critical patent/CN107944298A/en
Pending legal-status Critical Current

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, first database and the second database can load the first application, when electronic equipment is in first mode, first application is loaded into first database, and method 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 application is loaded into the second database, the first application and the incidence relation of the second database are established, so that the data that user is preserved by first the second database of application access.Such technical solution, the just simple and practicable 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
It is on 08 21st, 2012 the applying date that the application, which is, Application No.:It is 201210299575.9 entitled:One The divisional application of kind electronic equipment and the mode switching method applied to electronic equipment.
Technical field
The present invention relates to field of communication technology, is cut more particularly, to a kind of electronic equipment and applied to the pattern of electronic equipment Change method.
Background technology
Under normal circumstances, 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 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 can forbid short message application program 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 practicable reality The handoff procedure between electronic equipment both of which is showed.
The present invention provides one mode switching method, and the method is applied in an electronic equipment, the electronic equipment tool There are first mode and second mode, the first mode corresponds to first database, and the second mode corresponds to the second database, institute The first application can be loaded by stating first database and second database, the described method 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, the corresponding first database of the first mode is removed from first position To the second place;
According to first switching command, corresponding second database of the second mode is removed from the third place 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 the data that user is preserved by the second database described in first application access.
Preferably, it is described that the first database is removed into the second place from first position, specifically include:Call first Root authority channel service, is moved the first database 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 third place, is specifically included:Call the Two root authority channel services, based on the second root authority channel service by second database from the third place Remove to the first position.
Preferably, the method further 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, the first database is removed to described first from the second place Put, and the described first application is loaded into the first database, establish first application and the pass of the first database Connection relation, so that the data that user is preserved by first database described in first application access.
Preferably, it is described that the 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 the first database The first position is removed to from the second place.
Preferably, after the second switching command of the acquisition, the method further includes:
Judge whether to preserve the data of second database, produce the first judging result;
If first judging result represents to preserve the data of second database, by the 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, the electronic equipment to have first mode and second mode, institute State first mode and correspond to first database, the second mode corresponds to the second database, the 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, the first mode corresponding 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, the second mode corresponding described second to be counted The first position is removed to from the third place 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 passes through the second data described in first application access The data that storehouse preserves.
Preferably, described first unit is removed, specifically for calling the first root authority channel service, based on described first The 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 third place.
Preferably, the electronic equipment further 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 the first database from the second place The first position is removed to, and the described first application is loaded into the first database, establishes first application and institute The incidence relation of first database is stated, so that the data that user is preserved by first database described in first application access.
Preferably, the described 3rd unit is removed, specifically for calling the 3rd root authority channel service, based on the described 3rd The first database is removed to the first position by root authority channel service from the second place.
Preferably, the electronic equipment further includes:
Judging unit, after obtaining second switching command in the described second instruction obtaining unit, judges whether The data of second database are preserved, produce the first judging result;
4th removes unit, for when first judging result represents to preserve the data of second database, Before the 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 third place 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, are cut into 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 data of the user by first the second database of application access, so far just complete electronic equipment mould Formula handoff procedure.This handoff procedure is simple and practicable and suitability is very strong, while can also effectively limit user and access electronic equipment The authority of data, ensures 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 Attached drawing to be used is needed to be 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, without creative efforts, can also obtain according to these attached drawings Obtain other attached 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 attached drawing in the embodiment of the present invention, the technical solution 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, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art's all other embodiments 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 practicable 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 also (can be by user by database to be shown The database of access) first position is moved on to, and the application that electronic equipment has is loaded, what this user can be by loading should 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, protects 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, the method is applied to an electronics In equipment, the electronic equipment has first mode and a second mode, and the first mode corresponds to first database, and described second Pattern corresponds to the second database, and the first database and second database can load the first application, the method 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 in order to protect the safety of private data in equipment when electronic equipment is lent 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 the corresponding first database of the first mode from first Position removes to the second place.
Step 103, according to first switching command, by corresponding second database of 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 by described in first application access the second database preserve number 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 Carry application, therefore in different modes, user can by the data that are preserved in the corresponding database of the application access pattern, 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 (data that user can be preserved by application access first database), then second mode is then in Hidden state (user cannot 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 at the same time, 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 pass through the number in the application access database 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 carried out, this just needs the root authority channel service by operating system, and normal user permission is converted to 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 the corresponding owner's database of owner's pattern, display visitor (visitor's database can be that one created when electronic equipment dispatches from the factory and starts shooting for the first time is empty to the corresponding visitor's database of 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, the second place is removed to by the first root authority channel service by owner's database from first position, hides owner Database, prevents 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 still continue through application access owner's data Data in storehouse, avoid losing owner's data.
Second aspect, shows visitor's database.The second root authority channel service is called, the executor of action is converted to Root user, first position, covering first are removed to by the second root authority channel service by visitor's database from the third place Owner's database on position, shows visitor's database.Load the application of electronic equipment in visitor's database again at the same time, 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 can be by the data in short message application access visitor's database, such as read 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 ordinary user 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 may continue to segment for different application, 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 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, the first database is removed to from the second place described First position, and the described first application is loaded into the first database, establish first application and first data The incidence relation in storehouse, so that the data that user is preserved by first database described in first application access.
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., first database on the second place is backed up again Data then again by way of loading and applying, establish the incidence relation between first database and application, finally to first position Realize the purpose of the data preserved by application access first database.
Similarly, remove the operational motion of first database also need it is real by the root authority channel service of operating system It is existing.Still exemplified by exiting guest mode, when owner selects to show the corresponding owner's database of 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.At the same time Again the application of electronic equipment is loaded in owner's database, by taking short message is applied as an example, short message application is reloaded into owner Database, establishes short message 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 access owner's 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 ordinary user i.e. in root authority channel service Can.
It should be noted that after first database is removed to first position again, it can delete what is backed up on the second place The data of first database, 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 new first database can be utilized, ensure to back up on the second place Data be always newest data;In the case where electronic equipment memory allows, the first number can be also backed up on the second place According to the data of storehouse different times, the historical data that different times produce can thus be presented to it according to the selection of owner, 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 details are not described herein again.
Step 302, judge whether to preserve the data of second database, produce the first judging result.
Step 303, if first judging result represents to preserve the data of second database, by described second Database removes to the third place 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 corresponding second database of second mode, according to the selection of user, if preserved, by the portion Divided data backups to the third place, 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 Sub- equipment can inquire whether owner preserves the data of visitor's database, if owner selects to preserve, by root passages This partial data is removed to the third place by rights service, when avoiding the first database from being removed to first position again, this portion Divided data, which is capped, causes loss of data.
Step 304, according to second switching command, the first database is removed to from the second place described First position, and the described first application is loaded into the first database, establish first application and first data The incidence relation in storehouse, so that the data that user is preserved by first database described in first application access.
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 first database to first position, step 304 is then to handle second according to the selection of user After the data of database, 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 practicable, and without restoration and reuse program, adaptation Property it is very strong, in addition, realize limitation user to electronic device data access rights while, visit of the user to application can be also set Ask authority.For example, when setting guest mode, a certain application can be removed to by specific location according to the selection of owner, hiding should Item application, such visitor would not view the application that owner hides, will not more pass through this application access owner's data.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, also need to realize that details are not described herein again 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, the first mode correspond to first database, the second mode corresponds to the second database, 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 the first mode corresponding 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 The 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 the second mode corresponding described second Database removes to the first position from the third place, and the described first application is loaded into second database, establishes First application and the incidence relation of second database, so that user passes through the second number described in first application access 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 third place.
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 database to be shown (database that can be accessed by the user) also is moved on to first Position, and the application that electronic equipment has is loaded, this user can pass through the number on the application access first position 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, show the schematic diagram of electronic equipment embodiment 2 of the present invention, 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 further 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 the first database from the second Put and remove to the first position, and by described first application be loaded into the first database, establish it is described first application with The incidence relation of the first database, so that the number that user is preserved by first database described in first application access According to;
Specifically, the described 3rd unit is removed for calling the 3rd root authority channel service, based on the 3rd root The first database is removed to the first position by authority channel service from the second place.
Referring to Fig. 6, show the schematic diagram of electronic equipment embodiment 3 of the present invention, 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 further 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 judging result;
4th removes unit 603, for when first judging result represents to preserve the data of second database, Second database is removed into the third place from the first position.
3rd removes unit 604, for according to second switching command, by the first database from the second Put and remove to the first position, and by described first application be loaded into the first database, establish it is described first application with The incidence relation of the first database, so that the number that user is preserved by first database described in first application access 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 first database To first position, the flexibility of electronic device mode switching of the present invention is improved with this.
One mode switching method provided by the present invention is described above, specific case pair used herein The principle of the present invention and embodiment are set forth, and the explanation of above example is only intended to help to understand method of the 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 range.In conclusion this specification content should not be construed as limiting the invention.

Claims (10)

1. one mode switching method, it is characterised in that the method is applied in an electronic equipment, and the electronic equipment has First mode and second mode, the first database and second database can load the first application, the method bag Include:
When the electronic equipment is in the first mode, first application is loaded into the first database;
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;
According to first switching command, the described first application is loaded into second database, establishes first application With the incidence relation of second database so that user by described in first application access the second database preserve number According to.
2. according to the method described in claim 1, it is characterized in that, described according to first switching command, by described first Using being loaded into second database, including:
According to first switching command, the corresponding first database of the first mode is removed to from first position Two positions, remove to the first position, by described in by corresponding second database of the second mode from the third place First application is loaded into second database;
The first database is removed into the second place from first position, is specifically included:
The first root authority channel service is called, based on the first root authority channel service by the first database from institute State first position and remove to the second place;
Second database is removed into the first position from the third place, is 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 third place and remove to the first position.
3. method according to claim 1 or 2, it is characterised in that the method further 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, the described first application is loaded into the first database, establishes first application With the incidence relation of the first database so that user by described in first application access first database preserve number According to.
4. according to the method described in claim 3, it is characterized in that, described be loaded into first data by the described first application Storehouse, including:
The first database is removed into the first position from the second place, the described first application is loaded into described First database;
It is described that the 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 the first database from institute State the second place and remove to the first position.
5. according to the method described in claim 4, it is characterized in that, it is described acquisition the second switching command after, the method Further include:
Judge whether to preserve the data of second database, produce the first judging result;
If first judging result represents to preserve the data of second database, by the 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, first data Storehouse and second database can load the first application, and when the electronic equipment is in the first mode, described first should With being loaded into the first database;
The electronic equipment includes:
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;
First processing units, for according to first switching command, the described first application to be loaded into second database, The incidence relation of first application and second database is established, so that user passes through described in first application access the The data that two databases preserve.
7. electronic equipment according to claim 6, it is characterised in that the first processing units, specifically for according to institute The first switching command is stated, the corresponding first database of the first mode is removed into the second place, root from first position According to first switching command, corresponding second database of the second mode is removed to described first from the third place Position, and the described first application is loaded into second database;
The first processing units include:First, which removes unit and second, removes unit;
Described first removes unit, specifically for calling the first root authority channel service, is led to based on first root authority The 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 third place.
8. the electronic equipment according to claim 6 or 7, it is characterised in that the electronic equipment further 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;
Second processing unit, for according to second switching command, the described first application to be loaded into the first database, The incidence relation of first application and the first database is established, so that user passes through described in first application access the The data that one database preserves.
9. electronic equipment according to claim 8, it is characterised in that the second processing unit, specifically for according to institute The second switching command is stated, the first database is removed into the first position from the second place, and by described first Using being loaded into the first database;
The second processing unit includes:3rd removes unit;
Described 3rd removes unit, specifically for calling the 3rd root authority channel service, is led to based on the 3rd root authority The first database is removed to the first position by road service from the second place.
10. electronic equipment according to claim 9, it is characterised in that the electronic equipment further includes:
Judging unit, after obtaining second switching command in the described second instruction obtaining unit, judges whether to preserve The data of second database, produce the first judging result;
4th removes unit, for when first judging result represents to preserve the data of second database, described Before the 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 third place is removed to from the first position.
CN201711418684.7A 2012-08-21 2012-08-21 A kind of electronic equipment and the mode switching method applied to electronic equipment Pending CN107944298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
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 (2)

Application Number Priority Date Filing Date Title
CN201711418684.7A CN107944298A (en) 2012-08-21 2012-08-21 A kind of electronic equipment and the mode switching method applied to electronic equipment
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 Parent Applications (1)

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

Publications (1)

Publication Number Publication Date
CN107944298A true CN107944298A (en) 2018-04-20

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 Before (1)

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

Country Status (1)

Country Link
CN (2) CN103631785B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225111A (en) * 2020-01-03 2020-06-02 北京小米移动软件有限公司 Function control method, function control device, and storage medium

Families Citing this family (3)

* 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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1425157A (en) * 1999-12-23 2003-06-18 通用仪器公司 Dual-mode processor
US20050036348A1 (en) * 2003-08-08 2005-02-17 Canon Kabushiki Kaisha Peripheral apparatus, firmware updating method thereof, and program
CN1842763A (en) * 2003-06-24 2006-10-04 罗伯特·博世有限公司 Method for switching between at least two operating modes of a processor unit and corresponding processor unit
CN101937363A (en) * 2009-07-01 2011-01-05 联想(北京)有限公司 Mobile terminal operating mode switching method and mobile terminal
CN102566884A (en) * 2010-12-21 2012-07-11 Lg电子株式会社 Mobile terminal and method of controlling a mode switching therein

Family Cites Families (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
CN101005661B (en) * 2006-11-15 2010-11-03 深圳凯虹移动通信有限公司 Mobile terminal with data and menu hidden function and its enciphering hiding method
CN100530095C (en) * 2006-11-28 2009-08-19 佛山市顺德区顺达电脑厂有限公司 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
EP2437213A1 (en) * 2009-06-16 2012-04-04 Intel Corporation Camera applications in a handheld device
CN102087602B (en) * 2009-12-04 2015-02-18 纬创资通股份有限公司 Account management method and account management device for Android system
CN102075618B (en) * 2010-12-14 2013-07-03 东莞宇龙通信科技有限公司 Personal information management method, system and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1425157A (en) * 1999-12-23 2003-06-18 通用仪器公司 Dual-mode processor
CN1842763A (en) * 2003-06-24 2006-10-04 罗伯特·博世有限公司 Method for switching between at least two operating modes of a processor unit and corresponding processor unit
US20050036348A1 (en) * 2003-08-08 2005-02-17 Canon Kabushiki Kaisha Peripheral apparatus, firmware updating method thereof, and program
CN101937363A (en) * 2009-07-01 2011-01-05 联想(北京)有限公司 Mobile terminal operating mode switching method and mobile terminal
CN102566884A (en) * 2010-12-21 2012-07-11 Lg电子株式会社 Mobile terminal and method of controlling a mode switching therein

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225111A (en) * 2020-01-03 2020-06-02 北京小米移动软件有限公司 Function control method, function control device, and storage medium
EP3846063A1 (en) * 2020-01-03 2021-07-07 Beijing Xiaomi Mobile Software Co., Ltd. Function controlling method, function controlling device and storage medium
US11665778B2 (en) 2020-01-03 2023-05-30 Beijing Xiaomi Mobile Software Co., Ltd. Function controlling method, function controlling device and storage medium

Also Published As

Publication number Publication date
CN103631785B (en) 2017-12-29
CN103631785A (en) 2014-03-12

Similar Documents

Publication Publication Date Title
CN104008313B (en) The guard method of privacy information and device
CN103902862B (en) A kind of mobile device management method, apparatus and a kind of mobile equipment
CN103631785B (en) A kind of electronic equipment and the mode switching method applied to electronic equipment
CN103391374B (en) Dual system terminal supporting seamless switching
CN105120047B (en) The display methods and terminal of a kind of caller id information
JPH08307946A (en) Phs terminal invalidating system
CN103023649A (en) Method, device and equipment for protecting privacy information
CN105260664B (en) Method for security protection and terminal are applied between a kind of multisystem
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
CN103020553A (en) Anti-theft protection method for mobile terminal
CN106203011A (en) The method and apparatus entering operating system desktop
CN105376711A (en) Position prompting method and apparatus of wearable device, and wearable device
CN105843708A (en) Data processing method and device
CN106250152B (en) Mobile terminal control method and device and mobile terminal
CN103793313B (en) A kind of mobile terminal fault recording method and its system
CN103870755A (en) Method and device for transferring files between multiple users of same electronic device
CN102402651B (en) Information protection device and method and portable terminal
CN103458394A (en) Mobile terminal, processing method and processing device for internal information of mobile terminal
CN104468695A (en) System and methods for managing applications in multiple devices
JP4372034B2 (en) Mobile phone terminal system, mobile phone terminal unauthorized use prevention method, and mobile phone terminal unauthorized use prevention program
CN106068013A (en) Monitoring method and apparatus and mobile terminal
CN107545155A (en) A kind of information processing method and device
CN110389789A (en) A kind of application control method, equipment and computer readable storage medium
CN104735239A (en) Status switching method and device for mobile terminal

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

Application publication date: 20180420