CN104462954B - control method and device - Google Patents

control method and device Download PDF

Info

Publication number
CN104462954B
CN104462954B CN201410798562.5A CN201410798562A CN104462954B CN 104462954 B CN104462954 B CN 104462954B CN 201410798562 A CN201410798562 A CN 201410798562A CN 104462954 B CN104462954 B CN 104462954B
Authority
CN
China
Prior art keywords
resource
mode
electronic equipment
input
access
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
CN201410798562.5A
Other languages
Chinese (zh)
Other versions
CN104462954A (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 CN201410798562.5A priority Critical patent/CN104462954B/en
Publication of CN104462954A publication Critical patent/CN104462954A/en
Application granted granted Critical
Publication of CN104462954B publication Critical patent/CN104462954B/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/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present application provides a kind of control method and device, and methods described includes:When being in the first mode of operation in electronic equipment, and there is at least three accessible resources in the electronic equipment, detect whether the first input for meeting the first predetermined condition be present;When the first input for meeting first predetermined condition be present, the electronic equipment switches to the second mode of operation from first mode of operation;Wherein, in this first operative mode, the resource that can be accessed is more than the resource that can not be accessed;Under second mode of operation, a resource can be at least accessed, and the resource that can be accessed is less than the resource that can not be accessed.The embodiment of the present application improves electronic equipments safety.

Description

Control method and device
Technical field
The application is related to electronic technology field, more particularly to a kind of control method and device.
Background technology
With the development of electronic technology, the function that electronic equipment can be realized is more and more, and the information of storage is also increasingly More, therefore, security turns into the subject matter that electronic equipment future development needs to face.
The content of the invention
In view of this, this application provides a kind of control method and device, to improve the security of electronic equipment.
To achieve the above object, the application provides following technical scheme:
A kind of control method, methods described include:
When being in the first mode of operation in electronic equipment, and there is at least three accessible resources in the electronic equipment, Detect whether the first input for meeting the first predetermined condition be present;
When the first input for meeting first predetermined condition be present, the electronic equipment is from first mode of operation Switch to the second mode of operation;
Wherein, in this first operative mode, the resource that can be accessed is more than the resource that can not be accessed;
Under second mode of operation, a resource can be at least accessed, and the resource that can be accessed is less than what can not be accessed Resource.
Preferably, in second mode of operation, single resource can only be accessed;
The single resource includes a content of an application, an interface or particular range.
Preferably, the single resource be the electronic equipment under second mode of operation, first of access money Source;
After first mode of operation switches to the second mode of operation, methods described also includes the electronic equipment:
Receive access request;
Judge whether the resource that the access request accesses is that the electronic equipment switches to second from the first mode of operation After mode of operation, the resource of the first access request access received;
If it is, respond the access request;
If not, refuse the access request.
Preferably, the single resource be the electronic equipment from the first mode of operation switch to the second mode of operation it Before, and switch to after second mode of operation, the same resource of access;
After first mode of operation switches to the second mode of operation, methods described also includes the electronic equipment:
Receive access request;
Judge resource that the access request accesses whether be the electronic equipment current accessed resource;
If it is, respond the access request;
If not, refuse the access request.
Preferably, the electronic equipment is after first mode of operation switches to the second mode of operation, methods described Also include:
Detect whether the second input for meeting the second predetermined condition be present;
When the second input for meeting the second predetermined condition be present, output switching prompt message, the switch prompting information For prompting the input of user's input the 3rd, the electronic equipment is switched into first Working mould from second mode of operation Formula.
Preferably, it is described to detect whether that the second input for meeting the second predetermined condition be present includes:
When the electronic equipment accesses first resource, input operation is obtained;
Detect whether the input operation is that in this first operative mode, when accessing the first resource, can cut Change the second input for accessing Secondary resource;
The switch prompting information is specifically used for the input of prompting user input the 3rd, accesses the Secondary resource.
A kind of control device, applied in electronic equipment, described device includes:
First detection module, for being in the first mode of operation in the electronic equipment, and have in the electronic equipment During at least three accessible resources, detect whether the first input for meeting the first predetermined condition be present;
Handover module, for when the first input for meeting first predetermined condition be present, the electronic equipment to be from institute State the first mode of operation and switch to the second mode of operation;
Wherein, in this first operative mode, the resource that can be accessed is more than the resource that can not be accessed;
Under second mode of operation, a resource can be at least accessed, and the resource that can be accessed is less than what can not be accessed Resource.
Preferably, in second mode of operation, single resource can only be accessed;
The single resource includes a content of an application, an interface or particular range.
Preferably, the single resource be the electronic equipment under second mode of operation, first of access money Source;
Described device also includes:
First receiving module, for receiving access request;
First judge module, for judging whether resource that the access request accesses is the electronic equipment from the first work Operation mode is switched to after the second mode of operation, the resource that first received access request accesses;
First respond module, for when the first judge module result is to be, responding the access request;Described When first judge module result is no, refuse the access request.
Preferably, the single resource be the electronic equipment from the first mode of operation switch to the second mode of operation it Before, and switch to after second mode of operation, the same resource of access;
Described device also includes:
Second receiving module, for receiving access request;
Second judge module, for judging whether the resource that the access request accesses is the electronic equipment current accessed Resource;
Second respond module, for when the second judge module result is to be, responding the access request;Described When second judge module result is no, refuse the access request.
Preferably, described device also includes:
Second detection module, for detecting whether the second input for meeting the second predetermined condition be present;
Reminding module, for when the second detection module result is to be, output switching prompt message, the switching to carry Show that information is used to prompt the input of user's input the 3rd, the electronic equipment is switched to described first from second mode of operation Mode of operation.
Preferably, second detection module includes:
Acquiring unit, for when the electronic equipment accesses first resource under second mode of operation, obtaining defeated Enter operation;
Detection unit, for detecting whether the input operation is in this first operative mode, to access described first During resource, the second input for accessing Secondary resource is allowed hand over;
The switch prompting information is specifically used for the input of prompting user input the 3rd, to access the Secondary resource.
Understood via above-mentioned technical scheme, compared with prior art, this application provides a kind of control method and device, When being in the first mode of operation in electronic equipment, and there is at least three accessible resources in the electronic equipment, detect whether In the presence of the first input for meeting the first predetermined condition;When the first input for meeting first predetermined condition be present, the electricity Sub- equipment switches to the second mode of operation from first mode of operation;Wherein, in this first operative mode, can access Resource is more than the resource that can not be accessed;Under second mode of operation, a resource, and the resource that can be accessed can be at least accessed Less than the resource that can not be accessed.By under the first mode of operation and the second mode of operation, to the restriction for the resource that can be accessed, So that being more than the first mode of operation of the resource that can not be accessed in the resource that can be accessed in electronic equipment, can be switched to access Resource be less than the second mode of operation of resource that can not be accessed, so as to ensure the safety of electronic equipment to a certain extent Property.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of application, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of flow chart of control method one embodiment that the embodiment of the present application provides;
Fig. 2 is a kind of flow chart for another embodiment of control method that the embodiment of the present application provides;
Fig. 3 is a kind of flow chart for another embodiment of control method that the embodiment of the present application provides;
Fig. 4 is a kind of flow chart for another embodiment of control method that the embodiment of the present application provides;
Fig. 5 is a kind of flow chart for another embodiment of control method that the embodiment of the present application provides;
Fig. 6 is a kind of structural representation of control device one embodiment that the embodiment of the present application provides;
Fig. 7 is a kind of structural representation for another embodiment of control device that the embodiment of the present application provides;
Fig. 8 is a kind of structural representation for another embodiment of control device that the embodiment of the present application provides;
Fig. 9 is a kind of structural representation for another embodiment of control device that the embodiment of the present application provides;
Figure 10 is a kind of structural representation for another embodiment of control device that the embodiment of the present application provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of the application protection.
In the embodiment of the present application, electronic equipment at least has the first mode of operation and the second mode of operation, and electronics Equipment has at least three can access resource.By under the first mode of operation and the second mode of operation, to the money that can be accessed The restriction in source so that be more than the first mode of operation of the resource that can not be accessed in the resource that can be accessed in electronic equipment, can cut The resource that changing to access is less than the second mode of operation of the resource that can not be accessed, so as to ensure electronics to a certain extent The security of equipment.
Below in conjunction with the accompanying drawings, the application embodiment is described in detail.
Fig. 1 be the embodiment of the present application provide a kind of control method one embodiment flow chart, method can include with Under several steps:
101:The first mode of operation is in electronic equipment, and there are at least three accessible resources in the electronic equipment When, detect whether the first input for meeting the first predetermined condition be present.
102:When the first input for meeting first predetermined condition be present, the electronic equipment works from described first Pattern switching is to the second mode of operation.
Wherein, in this first operative mode, the resource that can be accessed is more than the resource that can not be accessed;
Under second mode of operation, a resource can be at least accessed, and the resource that can be accessed is less than what can not be accessed Resource.
Electronic equipment in the embodiment of the present application at least has the first mode of operation and the second mode of operation, and electronics is set It is standby to have at least three access resource.
By under the first mode of operation and the second mode of operation, to the restriction for the resource that can be accessed so that in electronics Equipment is more than the first mode of operation of the resource that can not be accessed in the resource that can be accessed, and the resource that can be switched to access is less than Second mode of operation of the resource that can not be accessed, so as to ensure the security of electronic equipment to a certain extent.
For example, in the first operation mode, when the first user can operate electronic equipment, can trigger electronic equipment can visit The resource asked, which is less than, can not access resource.And in order to avoid the leakage of information, ensure the security of information, if second user is wanted When operating electronic equipment, the first user can perform the first input, and triggering electronic equipment switches to the second mode of operation so that the Two users can only operate electronic equipment in the second operation mode, and the resource that can be accessed by electronic equipment will be less than and can not access Resource.
In the first mode of operation, the resource that can be accessed is more than the resource that can not be accessed, wherein, it is impossible to the resource of access can Think 0, namely in the first operation mode, whole resources in electronic equipment can be accessed.
Wherein, in the second operation mode, resource and the resource that can not be accessed can be accessed, can preset or adopt Determined with other modes, can be introduced in detail in embodiment below.
Meet that the first input of the first predetermined condition can refer to grasp for the triggering of specific keys in the embodiment of the present application Input operation make, inputted target text or figure etc. etc..
Resource described in the embodiment of the present application can refer to apply, the content in interface or particular range.This is specific In the range of content, the partial content in applying, the assigned catalogue file in file or special time, specific can be referred to Content etc. corresponding to place and specific label.
Wherein, in order to further improve electronic equipments safety, in this second mode of operation, electronic equipment can only access Single resource, namely in the second operation mode, electronic equipment can only access a resource.
The single resource can include a content of an application, an interface or particular range.
One content of the particular range can refer to a given content, such as special time, locality or specific mark Sign corresponding content;The content under a file directory in file;Or the Content of Communication of an object, a such as contact person Message registration, short message etc..
The single resource can be the default resource that can be accessed in the second operation mode of electronic equipment, Huo Zhe In alternatively possible implementation:
The single resource can refer to that electronic equipment is switched to after the second mode of operation, first resource of access.
In electronic equipment after the first mode of operation switches to the second mode of operation, access request is received;
If the resource that the access request accesses is switched to after the second mode of operation for the electronic equipment, the of access One resource, then can respond the access request, otherwise refuse the access request.
Certainly, in another possible implementation, the single resource can refer to that electronic equipment switches to the second work After pattern, the resource of the first access request access received.Namely electronic equipment is in the second operation mode, Zhi Nengfang One is asked, and a resource can only be accessed once.
As shown in Fig. 2 showing a kind of flow chart of another embodiment of control method of the embodiment of the present application, this method can With including:
101:The first mode of operation is in electronic equipment, and there are at least three accessible resources in the electronic equipment When, detect whether the first input for meeting the first predetermined condition be present.
102:When the first input for meeting first predetermined condition be present, the electronic equipment works from described first Pattern switching is to the second mode of operation.
201:Receive access request.
202:Judge whether the access request is that the electronic equipment switches to the second Working mould from the first mode of operation After formula, first access request receiving;If not, perform step 204.
203:Judge whether the resource that the access request accesses is that the electronic equipment switches to from the first mode of operation After second mode of operation, the resource of first access request access, if it is, step 204 is performed, if not, performing step 205。
204:Respond the access request.
205:Refuse the access request.
Namely after electronic equipment switches to the second mode of operation, when receiving the access request to first resource, Respond the access request, first resource that access request accesses;And if it is not access to first resource to receive Request, then refuse the access request, can not access request access resource.First resource refers to electronic equipment second In mode of operation, the resource accessed is asked in first access request received.
If electronic equipment receives n-th access request, N is more than or equal to 2, as long as asking to visit in n-th access request The resource asked is first resource, and electronic equipment can respond the access request, otherwise refuses the access request.
In the present embodiment, electronic equipment in the second operation mode, can only access single resource, and the single resource can be with It is that electronic equipment enters under the second mode of operation first resource accessed;The security of electronic equipment is thereby may be ensured that, when Need to information in electronic equipment or most information secrecy, and single resource is able to access that, can be full by performing First input of the first predetermined condition of foot, switches to the second mode of operation, to improve electricity by electronic equipment from the first mode of operation The security of sub- equipment, it is inconvenient for use caused by electronic equipment can be avoided can not to access completely again.
In actual applications, when other people borrow the electronic equipment of oneself, it is desirable to some content in electronic equipment is checked, or Person uses some application in electronic equipment, such as borrows mobile phone and check that shooting photo, borrow mobile phone are made a phone call, in order to avoid Other people make maloperation or check other privacy contents the electronic equipment to oneself, want to again so that other people can To want that it resource accessed conducts interviews.Using the technical scheme of the application, electronic equipment can be switched to the second work Pattern, then lend other people and use.Other people may only access the resource that first request accesses.
Such as the desired mobile phone of oneself that borrows of Xiao Ming is made a phone call to Xiao Zhang, in the second operation mode, if Xiao Ming triggers First resource accessed is " dialing application ", then Xiao Ming can perform the operation made a phone call under dialing application, and if small First resource that bright triggering accesses be " short message application ", then Xiao Ming is in the second operation mode, it is impossible to triggering access its His resource such as " dialing application ", so in the case where other people are made an excuse using oneself mobile phone, can avoid more information Leakage.
In another possible implementation:
Before the single resource can refer to that the electronic equipment switches to the second mode of operation from the first mode of operation, with And switch to after second mode of operation, the same resource of access.
Such as assume electronic equipment in the first operation mode, when accessing first resource, detect and meet the first predetermined bar During the first input of part, then the second mode of operation is switched to, now, in the second operation mode, still can continue to access and be somebody's turn to do First resource, and any one resource of non-first resource can not be accessed.
For example, electronic equipment is in the first operation mode, can in the display interface of first resource when accessing first resource To provide toggle control, user is by triggering the toggle control, you can so that electronic equipment to be switched in the second operation mode, or Person user can export corresponding switch prompting information by triggering the toggle control, and user holds according to the switch prompting information The corresponding operation of row, such as input specific cryptosystem etc., you can during accessing first resource in electronic equipment, from the first work Operation mode switches to the second mode of operation.
As shown in figure 3, showing a kind of flow chart of another embodiment of control method of the embodiment of the present application, this method can With including following steps:
101:The first mode of operation is in electronic equipment, and there are at least three accessible resources in the electronic equipment When, detect whether the first input for meeting the first predetermined condition be present.
102:When the first input for meeting first predetermined condition be present, the electronic equipment works from described first Pattern switching is to the second mode of operation.
301:Receive access request;
302:Judge resource that the access request accesses whether be the electronic equipment current accessed resource;If It is to perform step 303, if not, performing step 304.
303:Respond the access request.
304:Refuse the access request.
The resource of electronic equipment current accessed, represent that electronic equipment switches to before the second mode of operation and switched to the After two mode of operations, access always and do not terminate the resource of access, at this point it is possible to continue to access the resource, and if request The resource of access is not that the electronic equipment switches to the second mode of operation before and switched to after the second mode of operation, always When accessing and not terminating the resource of access, then refuse the access request.
In the present embodiment, electronic equipment in the second operation mode, can only access single resource, and the single resource is described Before electronic equipment switches to the second mode of operation from the first mode of operation, and switch to after second mode of operation, The same resource accessed;The security of electronic equipment is thereby may be ensured that, information or big portion in needing to electronic equipment Divide information privacy, and single resource is able to access that, the first input of the first predetermined condition can be met by performing, by electricity Sub- equipment switches to the second mode of operation from the first mode of operation, to improve the security of electronic equipment, can avoid electronics again Equipment is inconvenient for use caused by can not accessing completely.
In actual applications, when other people borrow the electronic equipment of oneself, it is desirable to some content in electronic equipment is checked, or Person uses some application in electronic equipment, such as borrows mobile phone and check that shooting photo, borrow mobile phone are made a phone call, in order to avoid Other people make maloperation or check other privacy contents the electronic equipment to oneself, want to again so that other people can To want that it resource accessed conducts interviews.Using the technical scheme of the application, it oneself can start other people first and ask to visit The resource asked, then electronic equipment is switched into the second mode of operation, now, other people can only just access electronic equipment and switch to Before two mode of operations, initiate self other people ask access resource.So as to ensure that security and privacy, improve and use Experience at family.
For example, still so that the desired borrow mobile phone of oneself of Xiao Ming is made a phone call to Xiao Zhang as an example, oneself can start mobile phone first In " dialing application ", then in the display interface of dialing application triggering meet predetermined condition first input, mobile phone is cut Shift to the second mode of operation;Second mode of operation at this moment, Xiao Ming can only perform the behaviour that dialing is made a phone call in " dialing application " Make, and resource can not be accessed such as " short message application ", so it is possible to prevente effectively from other people make an excuse the situation using oneself mobile phone Under, prevent the leakage of information, privacy is stronger.And other people subjective feeling can be lifted, to avoid other people maloperations, by In the limitation of the second mode of operation, lead to not access the resource oneself desired access to.
In the embodiment of the present application, the first mode of operation can refer to the normal mode of operation of electronic equipment or can access money Source, which is more than, can not access any mode of operation of resource etc..
, can also be by electronics in order to recover the use of electronic equipment after electronic equipment switches to the second mode of operation Equipment switches to the first mode of operation from the second mode of operation, because the second mode of operation is the mode of operation with confidentiality, The first mode of operation is switched to from the second mode of operation with electronic equipment can be triggered per family in order to avoid any, and the application can be with The first mode of operation is switched to from the second mode of operation to electronic equipment and carries out security setting.Such as user triggers switching and pressed again After key, it can be inputted and prompted with output password, be only provided with correct password, switching could be realized.
As shown in figure 4, in another embodiment of the application, when electronic equipment switches to from first mode of operation After second mode of operation, methods described can also include following steps:
401:Detect whether the second input for meeting the second predetermined condition be present, if it is, performing step 402.
402:Output switching prompt message.
The switch prompting information is used to prompt the input of user's input the 3rd, and the electronic equipment is worked from described second Pattern switching is to first mode of operation.
In the second operation mode, if detecting the second input for meeting the second predetermined condition, output switching prompting Information, to prompt the input of user's input the 3rd, realize that electronic equipment switches to the first mode of operation from the second mode of operation.
The switch prompting information can be Password Input prompt message, then the 3rd input is grasped to carry the input of password Make, if password is correct, can realize that electronic equipment switches to the first mode of operation from the second mode of operation.
Wherein, electronic equipment switches to the second mode of operation from the first mode of operation, and switches from the second mode of operation To the first mode of operation, identical means can be used, namely the first input and the 3rd input are identical input operation.Touch Send out toggle control same, input identical specific cryptosystem etc..
Wherein, the second input of the predetermined condition of satisfaction second can be that electronic equipment accesses list in the second operation mode During one resource, the input operation of user's execution.
As shown in figure 5, in another embodiment of the application, when electronic equipment switches to from first mode of operation After second mode of operation, methods described can also include following steps:
501:When the electronic equipment accesses first resource, input operation is obtained;
502:Detect the input operation whether be in this first operative mode, when accessing the first resource, energy Second input of enough handover access Secondary resources, if it is, performing step 503.
503:Output switching prompt message.
Wherein, the switch prompting information is specifically used for the input of prompting user input the 3rd, accesses the Secondary resource.
The first resource can be the single resource that electronic equipment can access in the second mode of operation, because electronic equipment exists Second mode of operation can only access the first resource.If detecting the second input, second input is in the in electronic equipment When first resource is accessed under one mode of operation, electronic equipment handover access Secondary resource can be triggered, now can outputting cutting Change prompt message.
Namely if detect the Secondary resource for accessing non-first resource second input when, due in the first mode of operation Under, second input can trigger electronic equipment handover access Secondary resource, but in the second operation mode, electronic equipment is only Single resource can be accessed, therefore can now prompt to prompt the input of user's input the 3rd, realizes the access of Secondary resource.Meanwhile 3rd input can be realized switches to the first mode of operation by electronic equipment from the second mode of operation.
Wherein, the second input of the predetermined condition of satisfaction second can also be the trigger action of access request, and the access Request be not electronic equipment in the second operation mode, first access request received;Or it is not that request accesses electronics The access request of equipment current accessed resource.In actual applications, it is assumed for example that electronic equipment in the second operation mode, accesses First resource be " in short message application contact person Zhang San send message content ".And electronic equipment is in the first mode of operation Under, when " message content that contact person Zhang San sends in short message application " is somebody's turn to do in access, the second input can also be triggered, request accesses Secondary resource, it is assumed that the Secondary resource is " message content that contact person Li Si sends in short message application ".So in the second work When under operation mode, accessing " message content that contact person Zhang San sends in short message application ", if it is " short to disappear to detect that request accesses Second input of the message content that contact person Li Si sends in breath application ", then can be with output switching prompt message.
Under the switch prompting information alert, if the input of user's input the 3rd, can access Secondary resource, show " message content that contact person Li Si sends in short message application ".
Wherein, in order to avoid information caused by maloperation exports, when the electronic equipment accesses first resource, get During n-th identical input operation, then detect whether the input operation is in this first operative mode, to access described the During one resource, the second input for accessing Secondary resource is allowed hand over.
Wherein, N is the positive integer more than 1, and N can be specially 2.
If detect N-1 identical input operation, electronic equipment is only detecting N without response During secondary identical input operation, then judge whether the input operation is the second input, if it is, output switching prompt message.
For example, user performs once in this first operative mode, when accessing the first resource, access is allowed hand over Second input of Secondary resource, then to second input without response.
If user continues executing with second input, and reaches preset times, then second input is responded, exported Switch prompting information.
When electronic equipment in the second operation mode, when can only access single resource, the single resource if one application Or a content in an application, what now electronic equipment can only access in an application interior is perhaps only capable of accessing this The short message of a contact person in a content, such as short message application in, and other resources can not be accessed, such as move back Go out the application, check the other guide of the application, when user performs other resources for accessing non-single resource, you can to touch Output switching prompt message is sent out, if user can input the 3rd input, non-single resource its can be enabled access to His resource, mode of operation switching mode conveniently, safely is provided by the embodiment of the present application.
For foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but It is that those skilled in the art should know, the application is not limited by described sequence of movement, because according to the application, certain A little steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know, be retouched in specification The embodiment stated belongs to preferred embodiment, necessary to involved action and module not necessarily the application.
Fig. 6 is a kind of structural representation of control device one embodiment that the embodiment of the present application provides, and the device is specific Applied in electronic equipment, its One function that be able to can be realized as the processor of electronic equipment, or it is used as independent mould The processor of block and electronic equipment connects.
The device can include:
First detection module 601, for being in the first mode of operation in the electronic equipment, and have in the electronic equipment When having at least three accessible resources, detect whether the first input for meeting the first predetermined condition be present;
Handover module 602, for when exist meet first predetermined condition first input when, the electronic equipment from First mode of operation switches to the second mode of operation;
Wherein, in this first operative mode, the resource that can be accessed is more than the resource that can not be accessed;
Under second mode of operation, a resource can be at least accessed, and the resource that can be accessed is less than what can not be accessed Resource.
Electronic equipment in the embodiment of the present application at least has the first mode of operation and the second mode of operation, and electronics is set It is standby to have at least three access resource.By under the first mode of operation and the second mode of operation, to the resource that can be accessed Restriction so that be more than the first mode of operation of resource that can not be accessed in the resource that can be accessed in electronic equipment, can switch The second mode of operation of the resource that can not be accessed is less than to the resource that can be accessed, so as to ensure that electronics is set to a certain extent Standby security.
Wherein, in order to further improve electronic equipments safety, in this second mode of operation, electronic equipment can only access Single resource, namely in the second operation mode, electronic equipment can only access a resource.
The single resource can include a content of an application, an interface or particular range.
One content of the particular range can refer to a given content, such as special time, locality or specific mark Sign corresponding content;The content under a file directory in file;Or the Content of Communication of an object, a such as contact person Message registration, short message etc..
The single resource can be the default resource that can be accessed in the second operation mode of electronic equipment, Huo Zhe In alternatively possible implementation:
The single resource can refer to electronic equipment in the second operation mode, first resource of access.
As shown in fig. 7, a kind of structural representation of another embodiment of control device provided for the embodiment of the present application, should Device can include:
First detection module 601, for being in the first mode of operation in the electronic equipment, and have in the electronic equipment When having at least three accessible resources, detect whether the first input for meeting the first predetermined condition be present;
Handover module 602, for when exist meet first predetermined condition first input when, the electronic equipment from First mode of operation switches to the second mode of operation.
First receiving module 701, for receiving access request.
First judge module 702, for judging whether resource that the access request accesses is the electronic equipment from the One mode of operation is switched to after the second mode of operation, the resource that first received access request accesses.
First respond module 703, for when the first judge module result is to be, responding the access request; When the first judge module result is no, refuse the access request.
Namely after electronic equipment switches to the second mode of operation, when receiving first access request, i.e. response should Access request, the resource that access request accesses;And if it is not first access request to receive, then refuse the access request, Can not access request access resource.
In another possible implementation:
Before the single resource can refer to that the electronic equipment switches to the second mode of operation from the first mode of operation, with And switch to after second mode of operation, the same resource of access.
As shown in figure 8, a kind of structural representation of another embodiment of control device provided for the embodiment of the present application, should Device can include:
First detection module 601, for being in the first mode of operation in the electronic equipment, and have in the electronic equipment When having at least three accessible resources, detect whether the first input for meeting the first predetermined condition be present;
Handover module 602, for when exist meet first predetermined condition first input when, the electronic equipment from First mode of operation switches to the second mode of operation.
Second receiving module 801, for receiving access request;
Second judge module 802, for judging whether the resource that the access request accesses is that the electronic equipment is current The resource of access;
Second respond module 803, for when the second judge module result is to be, responding the access request; When the second judge module result is no, refuse the access request.
The resource of electronic equipment current accessed, represent that electronic equipment switches to before the second mode of operation and switched to the After two mode of operations, access always and do not terminate the resource of access, at this point it is possible to continue to access the resource, and if request The resource of access is not that the electronic equipment switches to the second mode of operation before and switched to after the second mode of operation, always When accessing and not terminating the resource of access, then refuse the access request.
, can also be by electronics in order to recover the use of electronic equipment after electronic equipment switches to the second mode of operation Equipment switches to the first mode of operation from the second mode of operation, because the second mode of operation is the Working mould with security properties Formula, the first mode of operation, the application are switched to from the second mode of operation with electronic equipment can be triggered per family in order to avoid any The first mode of operation can be switched to from the second mode of operation to electronic equipment carry out security setting.
As shown in figure 9, a kind of structural representation of another embodiment of control device provided for the embodiment of the present application, should Device can include:
First detection module 601, for being in the first mode of operation in the electronic equipment, and have in the electronic equipment When having at least three accessible resources, detect whether the first input for meeting the first predetermined condition be present;
Handover module 602, for when exist meet first predetermined condition first input when, the electronic equipment from First mode of operation switches to the second mode of operation.
Second detection module 901, for detecting whether the second input for meeting the second predetermined condition be present;
Reminding module 902, for when the second detection module result is to be, output switching prompt message to be described to cut Change prompt message to be used to prompt the input of user's input the 3rd, the electronic equipment is switched to from second mode of operation described First mode of operation.
Wherein, In yet another embodiment, as described in Figure 10, second detection module 901 can include;
Acquiring unit 9011, for when the electronic equipment accesses first resource under second mode of operation, obtaining Take input operation;
Detection unit 9012, for detecting whether the input operation is in this first operative mode, described in access During first resource, the second input for accessing Secondary resource is allowed hand over;
The switch prompting information is specifically used for the input of prompting user input the 3rd, to access the Secondary resource.
The first resource can be the single resource that electronic equipment can access in the second mode of operation, because electronic equipment exists Second mode of operation can only access the first resource.If detecting the second input, second input is in the in electronic equipment When first resource is accessed under one mode of operation, electronic equipment handover access Secondary resource can be triggered, now can outputting cutting Change prompt message.
The security of electronic equipment is ensure that by the embodiment of the present application, effectively protects privacy of user, prevents letting out for information Dew, and mode of operation switching mode conveniently, safely is provided, it is convenient for the user to operate.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part It is bright.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the application. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments in the case where not departing from spirit herein or scope.Therefore, the application The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (12)

1. a kind of control method, it is characterised in that methods described includes:
When being in the first mode of operation in electronic equipment, and there is at least three accessible resources in the electronic equipment, detection With the presence or absence of the first input for meeting the first predetermined condition;
When the first input for meeting first predetermined condition be present, the electronic equipment switches from first mode of operation To the second mode of operation;
Wherein, in this first operative mode, the resource that can be accessed is more than the resource that can not be accessed;
Under second mode of operation, a resource can be at least accessed, and the resource that can be accessed is less than the resource that can not be accessed;
If the resource being able to access that under second mode of operation is single resource, according to right before mode of operation switching Required resource accesses the pattern switching control operation in resource process needed for operation and access to determine the second mode of operation Under the single resource that is able to access that;Or according to the access operation after mode of operation switching to required resource, to determine second The single resource being able to access that under mode of operation.
2. according to the method for claim 1, it is characterised in that in second mode of operation, single resource can only be accessed;
The single resource includes a content of an application, an interface or particular range.
3. according to the method for claim 2, it is characterised in that the single resource is the electronic equipment described second Under mode of operation, first resource of access;
After first mode of operation switches to the second mode of operation, methods described also includes the electronic equipment:
Receive access request;
Judge whether the resource that the access request accesses is that the electronic equipment switches to the second work from the first mode of operation After pattern, the resource of the first access request access received;
If it is, respond the access request;
If not, refuse the access request.
4. according to the method for claim 2, it is characterised in that the single resource is that the electronic equipment works from first Before pattern switching to the second mode of operation, and switch to after second mode of operation, the same resource of access;
After first mode of operation switches to the second mode of operation, methods described also includes the electronic equipment:
Receive access request;
Judge resource that the access request accesses whether be the electronic equipment current accessed resource;
If it is, respond the access request;
If not, refuse the access request.
5. according to the method described in any one of Claims 1 to 4, it is characterised in that the electronic equipment works from described first After pattern switching to the second mode of operation, methods described also includes:
Detect whether the second input for meeting the second predetermined condition be present;
When the second input for meeting the second predetermined condition be present, output switching prompt message, the switch prompting information is used for The input of user's input the 3rd is prompted, the electronic equipment is switched into first mode of operation from second mode of operation.
6. according to the method for claim 5, it is characterised in that described to detect whether meet the second predetermined condition the be present Two inputs include:
When the electronic equipment accesses first resource, input operation is obtained;
Detect whether the input operation is in this first operative mode, when accessing the first resource, to allow hand over visit Ask the second input of Secondary resource;
The switch prompting information is specifically used for the input of prompting user input the 3rd, accesses the Secondary resource.
7. a kind of control device, it is characterised in that applied in electronic equipment, described device includes:
First detection module, for being in the first mode of operation in the electronic equipment, and have at least in the electronic equipment During three accessible resources, detect whether the first input for meeting the first predetermined condition be present;
Handover module, for when the first input for meeting first predetermined condition be present, the electronic equipment is from described the One mode of operation switches to the second mode of operation;
Wherein, in this first operative mode, the resource that can be accessed is more than the resource that can not be accessed;
Under second mode of operation, a resource can be at least accessed, and the resource that can be accessed is less than the resource that can not be accessed;
If the resource being able to access that under second mode of operation is single resource, according to right before mode of operation switching Required resource accesses the pattern switching control operation in resource process needed for operation and access to determine the second mode of operation Under the single resource that is able to access that;Or according to the access operation after mode of operation switching to required resource, to determine second The single resource being able to access that under mode of operation.
8. device according to claim 7, it is characterised in that in second mode of operation, single resource can only be accessed;
The single resource includes a content of an application, an interface or particular range.
9. device according to claim 8, it is characterised in that the single resource is the electronic equipment described second Under mode of operation, first resource of access;
Described device also includes:
First receiving module, for receiving access request;
First judge module, for judging whether resource that the access request accesses is the electronic equipment from the first Working mould Formula is switched to after the second mode of operation, the resource that first received access request accesses;
First respond module, for when the first judge module result is to be, responding the access request;Described first When judge module result is no, refuse the access request.
10. device according to claim 8, it is characterised in that the single resource is the electronic equipment from the first work Operation mode is switched to before the second mode of operation, and is switched to after second mode of operation, the same resource of access;
Described device also includes:
Second receiving module, for receiving access request;
Second judge module, for judge resource that the access request accesses whether be the electronic equipment current accessed money Source;
Second respond module, for when the second judge module result is to be, responding the access request;Described second When judge module result is no, refuse the access request.
11. according to the device described in any one of claim 7~10, it is characterised in that described device also includes:
Second detection module, for detecting whether the second input for meeting the second predetermined condition be present;
Reminding module, for when the second detection module result is to be, output switching prompt message, the switch prompting to be believed Cease for prompting the input of user's input the 3rd, the electronic equipment is switched into first work from second mode of operation Pattern.
12. device according to claim 11, it is characterised in that second detection module includes:
Acquiring unit, for when the electronic equipment accesses first resource under second mode of operation, obtaining input behaviour Make;
Detection unit, for detecting whether the input operation is in this first operative mode, to access the first resource When, allow hand over the second input for accessing Secondary resource;
The switch prompting information is specifically used for the input of prompting user input the 3rd, to access the Secondary resource.
CN201410798562.5A 2014-12-18 2014-12-18 control method and device Active CN104462954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410798562.5A CN104462954B (en) 2014-12-18 2014-12-18 control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410798562.5A CN104462954B (en) 2014-12-18 2014-12-18 control method and device

Publications (2)

Publication Number Publication Date
CN104462954A CN104462954A (en) 2015-03-25
CN104462954B true CN104462954B (en) 2018-02-27

Family

ID=52908979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410798562.5A Active CN104462954B (en) 2014-12-18 2014-12-18 control method and device

Country Status (1)

Country Link
CN (1) CN104462954B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546922A (en) * 2010-12-21 2012-07-04 Lg电子株式会社 Mobile terminal and method of controlling a mode switching therein
CN103324893A (en) * 2013-05-31 2013-09-25 华为技术有限公司 Privacy protection method and device
WO2014077611A1 (en) * 2012-11-19 2014-05-22 Samsung Electronics Co., Ltd. A device and method of controlling the device
CN104036195A (en) * 2013-03-07 2014-09-10 联想(北京)有限公司 Information processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546922A (en) * 2010-12-21 2012-07-04 Lg电子株式会社 Mobile terminal and method of controlling a mode switching therein
WO2014077611A1 (en) * 2012-11-19 2014-05-22 Samsung Electronics Co., Ltd. A device and method of controlling the device
CN104036195A (en) * 2013-03-07 2014-09-10 联想(北京)有限公司 Information processing method and device
CN103324893A (en) * 2013-05-31 2013-09-25 华为技术有限公司 Privacy protection method and device

Also Published As

Publication number Publication date
CN104462954A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104346050B (en) A kind of information processing method and electronic equipment
US9760201B2 (en) Operation control method for touchscreen terminal, and mobile terminal
RU2637466C2 (en) Method, device and system for obtaining access to network
US20120286925A1 (en) Method and device for implementing screen locking
CN104797003B (en) A kind of method and device for switching intelligent terminal user
CN104007903B (en) Interface invoking method, interface invoking device, and electronic device
CN105631279B (en) A kind of data card method for handover control, device and terminal device
CN109923544A (en) Method for authenticating and electronic equipment
CN103761201B (en) Terminal applies event-handling method and device
CN105450405B (en) A kind of setting of password and authentication method and system
CN106228085B (en) The method for secret protection and mobile terminal of application program
CN104751035A (en) Unlocking method and device of intelligent terminal
CN105912911A (en) Method and system for managing application programs of mobile equipment
CN107743112A (en) A kind of auth method, device and system
CN103324881A (en) System and method for wireless locking and unlocking
US20130141353A1 (en) Method for unlocking electronic device and electronic device using the same
JP6742641B2 (en) Log-in method and device of account for which damage was reported
CN106156555B (en) Method and device for intersystem switching under multi-system terminal and multi-system terminal
CN104462954B (en) control method and device
CA3061711A1 (en) Accessible secure data entry
CN105512526B (en) The quick release method and device of terminal device
JP2017014736A (en) Transmission method for unlocking signal for electronic lock, and transmission device
CN105740677B (en) A kind of method for start-up and shutdown, system and intelligent mobile terminal
CN106874096A (en) Application management method and mobile terminal based on dual system
CN106940770A (en) A kind of screen locking method, device and terminal

Legal Events

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