Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
First embodiment
Referring to Fig. 1, Fig. 1 is the flow chart of data permission control method provided in an embodiment of the present invention, as shown in figure 1, bag
Include following steps:
First scene element of step 101, scene residing for detection terminal.
In the step, scene can be the set of characteristic information, condition and instruction, can be to comprising certain characteristic information
User, the under certain conditions authority of control terminal data.
Above-mentioned first scene element can be understood as the information comprising user identity feature, and the first scene element can be people
Face image, audio, fingerprint or communication account etc..For example, when user carries out touch operation in terminal, terminal gathers the user
Fingerprint;For another example, user's using terminal is taken pictures, terminal by photo store to it is local when, collection photo in facial image.This
Sample, is capable of the identity information of quick obtaining user, and can gather different information according to the identity characteristic of different users, uses
Family simple operation.
Step 102, judge whether first scene element matches with default first scene with reference to key element, if described first
Scene element matches with default first scene with reference to key element, then perform step 103.
In the step, above-mentioned default first scene can preset and store to include user in terminal with reference to key element
The information of identity characteristic, for example, facial image, audio, fingerprint or communication account etc..
When terminal detects the first scene element, the first scene element that will can be detected is joined with default first scene
According to key element contrast.Whether the first scene element that judgement is detected matches with default first scene with reference to key element, it can be understood as
Whether the first scene element that judgement is detected is same or similar with default first scene reference key element to be spent in default scope
It is interior.For example, user's facial image that terminal will be detected is contrasted with default facial image, user's face that judgement is detected
Whether image is in default scope with the similarity of default facial image, if similarity is in default scope, is judged
The user's facial image for detecting is matched with default facial image;For another example, if the telephone number of the user for detecting with it is default
Telephone number is identical, then judge that the telephone number for detecting is matched with presetting number of cell phone.
Terminal can set account, while it is corresponding with account with reference to key element to set default first scene, for example, will adopt
The finger print information of the user's first for collecting sets corresponding relation with account first, so, when detecting the fingerprint with the fingerprint matching of first
During information, can determine that active user is user's first according to the above-mentioned corresponding relation for setting.
If in addition, the first scene element for detecting is mismatched with default first scene with reference to key element, stream can be terminated
Journey, it is also possible to the step of performing other, the end flow in Fig. 1 is only a kind of citing.
Step 103, obtain with default first scene with reference to the corresponding target scene of key element.
In the step, one or more scenes can be created, target scene is included in scene.Can be included in target scene
Above-mentioned default first scene reference key element, when the first scene for recognizing is matched with default first scene with reference to key element with reference to key element
When, can be according to default first scene with reference to key element, it is determined that target scene corresponding with default first scene reference key element.
For example, tri- scenes of A, B, C are created, and the finger print data of the first that is stored with scenario A, be stored with second in scenario B
Finger print data, be stored with scene C third finger print data, when the finger print data for detecting is matched with the finger print data of first,
Then determine that terminal is in scenario A corresponding with the finger print data of first.
The target data control of authority associated with the target scene instruction that step 104, acquisition are prestored.
In the step, above-mentioned target data control of authority instruction can be for control targe data confidentiality or not right to keep confidential
The instruction of limit, for example, control targe data are in hidden state.Above-mentioned target data control of authority instruction can be one or many
Individual instruction, you can to control the authority of one or more data.
Above-mentioned data can be the number that file in terminal, document, application program or application program are operationally produced
According to etc..
Step 105, according to the target data control of authority instruct, control with the target data control of authority instruct it is right
The authority of the target data answered.
In the step, above-mentioned target data can be one or more data, and being instructed using target data control of authority can
To control the authority of one or more data, target data control of authority instruction can be controlled to target data authority
Instruction, for example, being hidden to data A.The authority of target data can be controlled according to target data control of authority instruction.Example
Such as, the target data control of authority instruction for being associated with target scene is that data A is encrypted, and data B is disclosed, and terminal reads the mesh
After mark data permission control instruction, data A is encrypted, data B is disclosed.So, an account can be directed to, while control is more
The authority of individual data, can protect the privacy of user.
The data permission control method of the embodiment of the present invention can apply to terminal, for example:Mobile phone, computer, flat board electricity
Brain (Tablet Personal Computer), kneetop computer (Laptop Computer), personal digital assistant
(personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID)
Or Wearable device (Wearable Device) etc..
The data permission control method of the embodiment of the present invention, the first scene element of scene residing for detection terminal;Judge institute
State whether the first scene element matches with default first scene with reference to key element;If first scene element and described default first
Scene matches with reference to key element, then obtain with default first scene with reference to the corresponding target scene of key element;Acquisition is deposited in advance
The target data control of authority associated with the target scene instruction of storage;Instructed according to the target data control of authority, control
Make the authority with the corresponding target data of the target data control of authority instruction.So, when scene residing for terminal is recognized,
The privacy of user, and data mode can be protected according to the corresponding data permission control instruction control data authority of scene
Control mode is simple, user's simple operation, improves Consumer's Experience.
Second embodiment
Referring to Fig. 2, Fig. 2 is the flow chart of data permission control method provided in an embodiment of the present invention, as shown in Fig. 2 bag
Include following steps:
First scene element of step 201, scene residing for detection terminal.
In the step, scene can be the set of characteristic information, condition and instruction, can be to comprising certain characteristic information
User, the under certain conditions authority of control terminal data.
Above-mentioned first scene element can be understood as the information comprising user identity feature, and the first scene element can be people
Face image, audio, fingerprint or communication account etc..For example, when user carries out touch operation in terminal, terminal gathers the user
Fingerprint;For another example, user's using terminal is taken pictures, terminal by photo store to it is local when, collection photo in facial image.This
Sample, is capable of the identity information of quick obtaining user, and can gather different information according to the identity characteristic of different users, uses
Family simple operation.
Optionally, before the step of the first scene element of scene residing for the detection terminal, methods described also includes:
Create including at least one scene including the target scene;It is determined that with the data permission control instruction of each scene relating and
Two scenes are with reference to key element;The first scene is set up with reference to key element and the first corresponding relation of account, the account at least includes target
Account;Set up the second corresponding relation of scene and account.
In the step, one or more scenes can be created, can used using preceding establishment, or user
Created in journey.If creating multiple scenes, when scene change, terminal can be entered according to the scene of identification, switching to data permission
Row control, in addition, scene can also edit to tackle the data for changing at any time at any time.
Can be included in above-mentioned target scene and represent default first scene of account identity information with reference to key element, when receiving
With default first scene with reference to key element scene element when, can recognize with default first scene with reference to the corresponding account of key element
Family or identification target scene corresponding with default first scene reference key element.Can be comprising default the in above-mentioned target scene
With reference to key element, default second scene can be associated two scenes with reference to key element with target data control of authority instruction, so, terminal
When the condition of default second scene reference key element is met, the state of corresponding data permission control instruction control data is used.
Corresponding relation is set up with reference to key element and account by first, and scene and account are set up into corresponding relation, so, can
Determine scene and account with reference to key element with according to collect first, may thereby determine that the second scene reference with scene relating
Key element and data control of authority are instructed.
Fig. 3 is scene creation schematic diagram provided in an embodiment of the present invention.Terminal can create multiple accounts, account A, account
B, account C, account D, account E, account F, while creating scenario A and scenario B, scene set A corresponding accounts A and account C are set
Scenario B corresponding account D and account E and account F.Account E and account F can also be created group G, make scenario B correspondence group G,
Now still can be understood as scenario B corresponding account E and account F.Can be referred to the corresponding data permission controls of scene set A in addition
Order is respectively to be protected to data A, and data B and data C are disclosed, and the corresponding data permission control instruction of scenario B is respectively logarithm
Disclosed according to A, data B and data C is protected.The first scene element for determining account identity information can be stored in scene,
And for limiting the second scene element of terminal condition, can be collected before creating scene or when creating scene, and store
In terminal, the corresponding relation of the first scene element and account can be set, the corresponding relation of account and scene is set.So, eventually
End can be identified according to above-mentioned corresponding relation to scene, so as to be controlled to data permission.For example, when user uses eventually
During end, terminal can according to collection the corresponding finger print information identification terminals of account A where scene be scenario A, terminal according to
The data permission control instruction associated with scenario A is protected to data A, and data B and data C are disclosed;If now terminal collection account
Scene where the corresponding facial images of family B, identification terminal is scenario B, the data permission control that terminal can be associated according to scenario B
Instruction carries out disclosure to data A, and data B and C are protected.
In this embodiment, the corresponding relation of account and the first scene reference key element, and scene and account are set
Corresponding relation, so, can determine target scene and target account, so that it is determined that and target according to the first scene element of collection
The data permission control instruction of scene relating, so, enables the terminals to the conversion switch data authority according to scene.In addition, working as
When creating multiple scenes, for different users, different states can be shown as with control data, user-friendly, protection
The privacy of user.
Optionally, default first scene includes with reference to key element:Human face data, finger print data, communications account, audio number
At least one in.
In the step, above-mentioned human face data can be face image data, for example, the photo comprising facial image;Fingerprint
Data can be the data comprising finger print information, for example fingerprint lines;Above-mentioned communications account can be the social account of registration, example
Such as instant messaging account, telephone number;Voice data can be voice messaging in voice messaging or video etc..In addition,
Iris feature can also be included.
When the first scene element is gathered, terminal can be obtained using big data, for example, obtain user using big data referring to
Line information, then carries out matching degree contrast with default first scene with reference to key element.
The first scene element detection mode in the implementation method is simple, can expand detection range, so as to scene be answered
Use more accounts.
Step 202, judge whether first scene element matches with default first scene with reference to key element, if described first
Scene element matches with default first scene with reference to key element, then perform step 203.
When terminal detects the first scene element, the first scene element that will can be detected is joined with default first scene
According to key element contrast.Whether the first scene element that judgement is detected matches with default first scene with reference to key element, it can be understood as
Whether the first scene element that judgement is detected is same or similar with default first scene reference key element to be spent in default scope
It is interior.For example, user's facial image that terminal will be detected is contrasted with default facial image, user's face that judgement is detected
Whether image is in default scope with the similarity of default facial image, if similarity is in default scope, is judged
The user's facial image for detecting is matched with default facial image;For another example, if the telephone number of the user for detecting with it is default
Telephone number is identical, then judge that the telephone number for detecting is matched with presetting number of cell phone.
Terminal can set account, at the same can set the first scene with reference to key element it is corresponding with account, for example, will collect
Finger print information and the account first of user's first corresponding relation is set, so, when detecting the finger print information with the fingerprint matching of first
When, can determine that active user is user's first according to the above-mentioned corresponding relation for setting.
If in addition, the first scene element for detecting is mismatched with default first scene with reference to key element, stream can be terminated
Journey, it is also possible to the step of performing other, the end flow in Fig. 2 is only a kind of citing.
Step 203, obtain with default first scene with reference to the corresponding target scene of key element.
In the step, one or more scenes can be created, target scene is included in scene.Can be included in target scene
Above-mentioned default first scene reference key element, when the first scene for recognizing is matched with default first scene with reference to key element with reference to key element
When, can be according to default first scene with reference to key element, it is determined that target scene corresponding with default first scene reference key element.
For example, tri- scenes of A, B, C are created, and the finger print data of the first that is stored with scenario A, be stored with second in scenario B
Finger print data, be stored with scene C third finger print data, when the finger print data for detecting is matched with the finger print data of first,
Then determine that terminal is in scenario A corresponding with the finger print data of first.
Optionally, the step of acquisition corresponding with reference to key element with default first scene target scene, including:Root
According to first corresponding relation for pre-building, it is determined that with default first scene with reference to the corresponding target account of key element
Family;According to second corresponding relation for pre-building, target scene corresponding with target account group is obtained;Wherein, it is described
Target account is the account in the target account group, and the target account group includes at least one account.
In the step, can be corresponding with group with scene set, can be comprising multiple accounts in group.When terminal detect with
During the first scene element of default first scene element matching, it may be determined that account corresponding with default first scene element, and
Group and the corresponding relation of scene according to where the account, determine target scene.For example, as shown in Figure 3, scenario B correspondence
Group G, and group G includes account E and F.When the first scene element corresponding with account E is detected, because group G includes account
The corresponding scene of family E, account E is the corresponding scenario Bs of group G, hence, it can be determined that account E correspondence scenario Bs.
So, when account and scene are set up into corresponding relation, after multiple accounts being set up into group, by account group
Corresponding relation is set up with scene, user's simple operation can save terminal energy consumption.
Step 204, second scene element for detecting scene residing for the terminal.
In this step, above-mentioned second scene element can be understood as conditional parameter, for example, time, geographical position or end
Application status that end uses in preset time period etc..Can be determined according to the system time in terminal or network time
The current time of terminal;Can be according to the geographical position residing for positioning software acquisition terminal;According to the fortune of application program in terminal
Row record can determine the application status that terminal is used in preset time period.
The second scene element of scene can be understood as detecting the conditional parameter that terminal is presently in, example residing for detection terminal
Such as, the position that detection terminal is presently in.
Optionally, default second scene includes with reference to key element:Time period, geographical position, the fortune of the target data
At least one in row state.
In the step, the time period can be the default time range of the restriction for the time, i.e. terminal, such as Beijing time
, when the time of terminal is detected, terminal system time or network time can be detected, it is determined whether in above-mentioned at 7 points to 9 points
Preset time period.
Above-mentioned geographical position can be the scope in the geographical position residing for the restriction to position, i.e. terminal, for example, Henan
Save.When geographical position residing for terminal is detected, number geographical position can be detected according to positioning software, determine geographical position residing for terminal
Put, judge whether the scope in default geographical position.
The running status of above-mentioned target data can be the restriction to the ruuning situation of target data, for example, according to operation
Record determines that target data was in running status at continuous two days recently, judges whether in default running status scope.
So, when terminal is in specified conditions, control data authority is protected data, so as to protect user's
Privacy.
Step 205, judge whether second scene element matches with default second scene with reference to key element;If described second
Scene element matches with default second scene with reference to key element, then step 206 is performed, if second scene element and institute
State default second scene to be mismatched with reference to key element, then terminate flow.
Above-mentioned default second scene can pre-set and store the condition in terminal with reference to key element, preset the second scene
One or more condition can be included with reference to key element, for multiple conditions, logical relation can be used by multiple conditional parameters
It is combined, forms default second scene with reference to key element.
It is above-mentioned to judge whether the second scene element matches with default second scene with reference to key element and can be understood as judgement second
Whether scene element meets condition of default second scene with reference to key element.In order to make it easy to understand, will with default second scene reference
Element is as a example by being defined to time residing for terminal and geographical position.
For example, default second scene is Beijing time 19 with reference to key element:00 to 22:00 and geographical position residing for terminal for north
Capital, then, it is necessary to judge the time of the terminal for currently collecting whether in Beijing time 19:00 to 22:00 time period, and
Judge whether the geographical position that terminal is presently in is Beijing, if the time of terminal is in Beijing time 19:00 to 22:00 it
Between, and geographical position residing for terminal is Beijing, then perform step 206.
If the second scene element is mismatched with default second scene with reference to key element, other steps can be performed, it is also possible to
Terminate flow, the end flow shown in Fig. 2 is only a kind of citing.
So, in this embodiment, when terminal collects the scene reference matched with reference to key element with default first scene
Key element, and when terminal is in the condition of default second scene reference key element, the authority of control data makes the number in user terminal
According to guard mode is under given conditions without compromised, so as to protect the privacy of user;And terminal is in non-above-mentioned specific
During condition, the data in terminal can switch to visible state.And for different users, control data is shown as different shapes
State, it is user-friendly.Terminal can so be realized in different scenes, to the different power of different account control datas
Limit, while protection privacy of user, user's simple operation can improve Consumer's Experience sense.
The target data control of authority associated with the target scene instruction that step 206, acquisition are prestored.
In the step, above-mentioned target data control of authority instruction can be for control targe data confidentiality or not right to keep confidential
The instruction of limit, for example, control targe data are in hidden state.Above-mentioned target data control of authority instruction can be one or many
Individual instruction, you can to control the authority of one or more data.
Above-mentioned data can be the number that file in terminal, document, application program or application program are operationally produced
According to etc..
Step 207, according to the target data control of authority instruct, control with the target data control of authority instruct it is right
The authority of the target data answered.
In the step, above-mentioned target data can be one or more data, and being instructed using target data control of authority can
To control the authority of one or more data, target data control of authority instruction can be controlled to target data authority
Instruction, for example, being hidden to data A.The authority of target data can be controlled according to target data control of authority instruction.Example
Such as, the target data control of authority instruction for being associated with target scene is that data A is encrypted, and data B is disclosed, and terminal reads the mesh
After mark data permission control instruction, data A is encrypted, data B is disclosed.So, an account can be directed to, while control is more
The authority of individual data, can protect the privacy of user.
Optionally, the step of control is with the authority of the target data control of authority instruction corresponding target data,
Including it is following at least one:By the authority of the target data of the first predetermined number corresponding with the target data control of authority instruction
It is set to encryption;Priority assignation by the target data of the second predetermined number corresponding with the target data control of authority instruction is
Hide;It is open by the priority assignation of the target data of the 3rd predetermined number corresponding with the target data control of authority instruction.
In the step, above-mentioned target scene can correspond to multiple data permission control instructions, it is possible to use multiple instruction is same
When the multiple data of control authority.Control data authority can include being encrypted data, hide or open.Each instruction can
With correspondence multiple data, for example, data permission control instruction is included data A and data B is hidden, and to data C and data D
Encryption.
When to data encryption, when terminal needs to receive the password of user input and correct checking password, the number is just shown
According to.For example, being encrypted to the file in terminal, and password is set.
During to image watermarking, the data message is not shown in terminal.For example, being carried out to the MSN in terminal hidden
Hide, now, the MSN may be at running status, can be with receive information, terminal not display reminding information.
When disclosing data, the data in terminal are visible state.
When terminal switches to another scene by a scene, the state of data can switch, for example, when scene is by A
When switching to B, the state of data A switches to encryption by open.
In this embodiment, various states can be switched in different scenes with control targe data, can be controlled
Multiple data displays in target data are different states, so, can be hidden or encrypt for the data of privacy,
So as to protect the privacy of user.
The data permission control method of the embodiment of the present invention, the first scene element of scene residing for detection terminal;Judge institute
State whether the first scene element matches with default first scene with reference to key element;If first scene element and described default first
Scene matches with reference to key element, then obtain with default first scene with reference to the corresponding target scene of key element;Detect the end
Second scene element of the residing scene in end;Judge second scene element whether with default second scene with reference to key element
Match somebody with somebody;If second scene element matches with default second scene with reference to key element, obtain prestore with it is described
The target data control of authority instruction of target scene association;Instructed according to the target data control of authority, controlled and the mesh
The authority of the corresponding target data of mark data permission control instruction.So, the present embodiment is on the basis of the corresponding embodiments of Fig. 1
On, when under the conditions of terminal is in specifically, the authority to target data is controlled, and pointedly data can so carry out
Protection, and mode of operation is simple, user's simple operation.
3rd embodiment
Referring to Fig. 4, Fig. 4 is the structure chart of the terminal that the present invention implements offer, can realize first embodiment to the second implementation
The details of the data permission control method in example, and reach identical effect.The terminal can be smart mobile phone, panel computer etc.
Equipment.As shown in figure 4, terminal 400 includes:First scene element detection module 401, the first scene element judge module 402, mesh
Mark scene acquisition module 403, target data control of authority instruction acquisition module 404 and control module 405, wherein, the first scene
Key element detection module 401 is connected with the first scene element judge module 402, the first scene element judge module 402 and target field
Scape acquisition module 403 is connected, and target scene acquisition module 403 is connected with target data control of authority instruction acquisition module 404, mesh
Mark data permission control instruction acquisition module 404 is connected with control module 405, wherein:
First scene element detection module 401, the first scene element for detecting scene residing for terminal;
First scene element judge module 402, for judging the institute that the first scene element detection module 401 is detected
State whether the first scene element matches with default first scene with reference to key element;
Target scene acquisition module 403, if judging first scene for the first scene element judge module 402
Key element matches with default first scene with reference to key element, then obtain mesh corresponding with the default first scene reference key element
Mark scene;
Target data control of authority instruction acquisition module 404, associates for what acquisition was prestored with the target scene
Target data control of authority instruction;
Control module 405, for the target obtained according to the target data control of authority instruction acquisition module 404
Data permission control instruction, controls the authority with the corresponding target data of the target data control of authority instruction.
Optionally, as shown in figure 5, the target scene also includes the second scene element, the terminal 400 also includes:
Second scene element detection module 406, second scene element for detecting scene residing for the terminal;
Second scene element judge module 407, for judging the institute that the second scene element detection module 406 is detected
State whether the second scene element matches with default second scene with reference to key element;If second scene element and described default second
Scene matches with reference to key element, then the second scene element judge module 407 is additionally operable to control the target data authority control
Instruction acquisition module processed 404 performs and described obtain the target data control of authority associated with the target scene that prestores and refer to
The step of making.
Optionally, as shown in fig. 6, the terminal 400 also includes:
Creation module 408, for creating including at least one scene including the target scene;
Determining module 409, the data permission control instruction of each scene relating for determining to be created with the creation module
With the second scene with reference to key element;
First sets up module 410, for setting up the first scene with reference to key element and the first corresponding relation of account, the account
At least include target account;
Second sets up module 411, the second corresponding relation for setting up scene and account.
Optionally, as shown in fig. 7, the target scene acquisition module 403, including:
Target account determining unit 4031, for setting up described first pair that module 410 pre-builds according to described first
Should be related to, it is determined that with default first scene with reference to the corresponding target account of key element;
Target scene determining unit 4032, for setting up described second pair that module 411 pre-builds according to described second
Should be related to, obtain target scene corresponding with target account group;
Wherein, the target account is the account in the target account group, and the target account group is included extremely
A few account.
Optionally, as shown in figure 8, the control module 405, including it is following at least one:
Ciphering unit 4051, for the number of targets that will be obtained with the target data control of authority instruction acquisition module
It is encryption according to the priority assignation of the target data of control of authority instruction the first predetermined number of correspondence;
Hidden unit 4052, for the number of targets that will be obtained with the target data control of authority instruction acquisition module
It is hiding according to the priority assignation of the target data of control of authority instruction the second predetermined number of correspondence;
Open unit 4053, for the number of targets that will be obtained with the target data control of authority instruction acquisition module
It is open according to the priority assignation of the target data of control of authority instruction the 3rd predetermined number of correspondence.
Optionally, default first scene includes with reference to key element:Human face data, finger print data, communications account, audio number
At least one in.
Optionally, default second scene includes with reference to key element:Time period, geographical position, the fortune of the target data
At least one in row state.
The terminal 400 of the embodiment of the present invention, the first scene element of scene residing for detection terminal;Judge first scene
Whether key element matches with default first scene with reference to key element;If first scene element will with the default first scene reference
Element matches, then obtain with default first scene with reference to the corresponding target scene of key element;Acquisition prestore with it is described
The target data control of authority instruction of target scene association;Instructed according to the target data control of authority, controlled and the mesh
The authority of the corresponding target data of mark data permission control instruction.So, can be referred to according to the corresponding data permission control of scene
Control data authority is made, the privacy of user can be protected, and data mode control mode is simple, user's simple operation, improves and uses
Experience at family.
Fourth embodiment
Referring to Fig. 9, Fig. 9 is the structure chart of the terminal that the present invention implements offer, can realize first embodiment to the second implementation
The details of the data permission control method in example, and reach identical effect.As shown in figure 9, terminal 900 includes:At least one
Processor 901, memory 902, at least one network interface 904 and user interface 903.Each component in terminal 900 passes through
Bus system 905 is coupled.It is understood that bus system 905 is used to realize the connection communication between these components.Total linear system
905 are united in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But for clear theory
For the sake of bright, various buses are all designated as bus system 905 in fig .9.
Wherein, user interface 903 can include display, keyboard or pointing device (for example, mouse, trace ball
(track ball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 902 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable P ROM, EPROM), Electrically Erasable Read Only Memory (Electrically EP ROM, EEPROM)
Or flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside
Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous D RAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SD RAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SD RAM, ESDRAM), synchronous connect
Connect dynamic random access memory (Synch link D RAM, SLDRAM) and direct rambus random access memory
(Direct Rambus RAM, DRRAM).The memory 902 of system and method described herein be intended to including but not limited to these
With the memory of any other suitable type.
In some embodiments, memory 902 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 9021 and application program 9022.
Wherein, operating system 9021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for
Realize various basic businesses and process hardware based task.Application program 9022, comprising various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 9022.
In embodiments of the present invention, by the program for calling memory 902 to store or instruction, specifically, can be application
The program stored in program 9022 or instruction, processor 901 are used for:First scene element of scene residing for detection terminal;Judge
Whether first scene element matches with default first scene with reference to key element;If first scene element and described default the
One scene matches with reference to key element, then obtain with default first scene with reference to the corresponding target scene of key element;Obtain advance
The target data control of authority associated with the target scene instruction of storage;Instructed according to the target data control of authority,
Control the authority with the corresponding target data of the target data control of authority instruction.
The method that the embodiments of the present invention are disclosed can apply in processor 901, or be realized by processor 901.
Processor 901 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 901 or software form.Above-mentioned treatment
Device 901 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 902, processor 901 reads the information in memory 902, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realize processor outside.
Optionally, processor 901 is additionally operable to:Detect second scene element of scene residing for the terminal;Judge institute
State whether the second scene element matches with default second scene with reference to key element;If second scene element and described default second
Scene matches with reference to key element, then perform the target data authority control associated with the target scene for obtaining and prestoring
The step of system instruction.
Optionally, processor 901 is additionally operable to:Create including at least one scene including the target scene;It is determined that with
The data permission control instruction of each scene relating and the second scene are with reference to key element;The first scene is set up with reference to the of key element and account
One corresponding relation, the account at least includes target account;Set up the second corresponding relation of scene and account.
Optionally, processor 901 is additionally operable to:According to first corresponding relation for pre-building, it is determined that default with described
First scene is with reference to the corresponding target account of key element;According to second corresponding relation for pre-building, obtain and target
The corresponding target scene of account group;Wherein, the target account is the account in the target account group, the target
Account group includes at least one account.
Optionally, processor 901 is additionally operable to:By the first predetermined number corresponding with the target data control of authority instruction
The priority assignation of target data is encryption;By the number of targets of the second predetermined number corresponding with the target data control of authority instruction
According to priority assignation be hiding;By the power of the target data of the 3rd predetermined number corresponding with the target data control of authority instruction
Limit is set to disclosure.
Optionally, default first scene includes with reference to key element:Human face data, finger print data, communications account, audio number
At least one in.
Optionally, default second scene includes with reference to key element:Time period, geographical position, the fortune of the target data
At least one in row state.
The terminal 900 of the embodiment of the present invention, the first scene element of scene residing for detection terminal;Judge first scene
Whether key element matches with default first scene with reference to key element;If first scene element will with the default first scene reference
Element matches, then obtain with default first scene with reference to the corresponding target scene of key element;Acquisition prestore with it is described
The target data control of authority instruction of target scene association;Instructed according to the target data control of authority, controlled and the mesh
The authority of the corresponding target data of mark data permission control instruction.So, can be referred to according to the corresponding data permission control of scene
Control data authority is made, the privacy of user can be protected, and data mode control mode is simple, user's simple operation, improves and uses
Experience at family.
5th embodiment
Figure 10 is referred to, Figure 10 is the structure chart of the terminal that the present invention implements offer, can realize first embodiment to second
The details of the data permission control method in embodiment, and reach identical effect.As shown in Figure 10, terminal 1000 includes radio frequency
(Radio Frequency, RF) circuit 1010, memory 1020, input block 1030, display unit 1040, processor 1050,
Voicefrequency circuit 1060, communication module 1070, power supply 1080.
Wherein, input block 1030 can be used to receive the numeral or character information of user input, and produce and terminal
1000 user is set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 1030
Contact panel 1031 can be included.Contact panel 1031, also referred to as touch-screen, can collect user thereon or neighbouring touch behaviour
Make (such as user uses the operations of any suitable object or annex on contact panel 1031 such as finger, stylus), and according to
Formula set in advance drives corresponding attachment means.Optionally, contact panel 1031 may include touch detecting apparatus and touch
Two parts of controller.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings,
Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching
Point coordinates, then give the processor 1050, and the order sent of receiving processor 1050 and can be performed.Furthermore, it is possible to adopt
Contact panel 1031 is realized with polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1031, input block 1030 can also include other input equipments 1032, and other input equipments 1032 can be included but is not limited to
One kind or many in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Kind.
Wherein, display unit 1040 can be used for display by the information of user input or be supplied to the information and terminal of user
1000 various menu interfaces.Display unit 1040 may include display panel 1041, optionally, can use LCD or organic hairs
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 1041.
It should be noted that contact panel 1031 can cover display panel 1041, touch display screen is formed, when the touch display screen
Detect thereon or after neighbouring touch operation, processor 1050 is sent to determine the type of touch event, with post processing
Device 1050 provides corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..The touch-screen of the embodiment of the present invention is soft
Property screen, organic nesa coating of CNT is posted in two faces of flexible screen.
Wherein processor 1050 is the control centre of terminal 1000, using each of various interfaces and connection whole mobile phone
Individual part, by running or performing software program and/or module of the storage in first memory 1021, and calls storage to exist
Data in second memory 1022, perform the various functions and processing data of terminal 1000, whole so as to be carried out to terminal 1000
Body is monitored.Optionally, processor 1050 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 1021 in software program and/or module and/
Or the data in the second memory 1022, processor 1050 is used for:First scene element of scene residing for detection terminal;Judge
Whether first scene element matches with default first scene with reference to key element;If first scene element and described default the
One scene matches with reference to key element, then obtain with default first scene with reference to the corresponding target scene of key element;Obtain advance
The target data control of authority associated with the target scene instruction of storage;Instructed according to the target data control of authority,
Control the authority with the corresponding target data of the target data control of authority instruction.
Optionally, processor 1050 is additionally operable to:Detect second scene element of scene residing for the terminal;Judge institute
State whether the second scene element matches with default second scene with reference to key element;If second scene element and described default second
Scene matches with reference to key element, then perform the target data authority control associated with the target scene for obtaining and prestoring
The step of system instruction.
Optionally, processor 1050 is additionally operable to:Create including at least one scene including the target scene;It is determined that with
The data permission control instruction of each scene relating and the second scene are with reference to key element;The first scene is set up with reference to the of key element and account
One corresponding relation, the account at least includes target account;Set up the second corresponding relation of scene and account.
Optionally, processor 1050 is additionally operable to:According to first corresponding relation for pre-building, it is determined that default with described
First scene is with reference to the corresponding target account of key element;According to second corresponding relation for pre-building, obtain and target
The corresponding target scene of account group;Wherein, the target account is the account in the target account group, the target
Account group includes at least one account.
Optionally, processor 1050 is additionally operable to:Will the first predetermined number corresponding with the target data control of authority instruction
Target data priority assignation for encryption;By the target of the second predetermined number corresponding with the target data control of authority instruction
The priority assignation of data is hiding;By the target data of the 3rd predetermined number corresponding with the target data control of authority instruction
Priority assignation is open.
Optionally, default first scene includes with reference to key element:Human face data, finger print data, communications account, audio number
At least one in.
Optionally, default second scene includes with reference to key element:Time period, geographical position, the fortune of the target data
At least one in row state.
The terminal 1000 of the embodiment of the present invention, the first scene element of scene residing for detection terminal;Judge described first
Whether scape key element matches with default first scene with reference to key element;If first scene element and the default first scene reference
Key element matches, then obtain with default first scene with reference to the corresponding target scene of key element;Acquisition prestore with institute
State the target data control of authority instruction of target scene association;According to the target data control of authority instruct, control with it is described
Target data control of authority instructs the authority of corresponding target data.So, when scene residing for terminal is recognized, can basis
The corresponding data permission control instruction control data authority of scene, can protect the privacy of user, and data mode control mode
Simply, user's simple operation, improves Consumer's Experience.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of terminal and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed terminal and method, can be by other
Mode is realized.For example, terminal embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of terminal or unit by some interfaces
Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize embodiment of the present invention scheme
Purpose.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.