Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
First embodiment
It is the flow chart of data permission control method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, as shown in Figure 1, packet
Include following steps:
First scene element of scene locating for step 101, detection terminal.
In the step, scene can be characteristic information, condition and the set of instruction, can be to including certain characteristic information
User, the under certain conditions permission of controlling 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, terminal acquires the user when user carries out touch operation at the terminal
Fingerprint;For another example, user's using terminal is taken pictures, terminal by photo store to it is local when, acquire photo in facial image.This
Sample is capable of the identity information of quick obtaining user, and can acquire different information according to the identity characteristic of different users, uses
Family operation is convenient.
Step 102 judges whether first scene element matches with default first scene referring to element, if described first
Scene element matches with default first scene referring to element, thens follow the steps 103.
In the step, it includes user that above-mentioned default first scene, which can be preset and be stored in terminal referring to element,
The information of identity characteristic, for example, facial image, audio, fingerprint or communication account etc..
The first scene element that can be will test when terminal detects the first scene element and default first scene ginseng
It is compared according to element.Judge whether the first scene element detected matches with default first scene referring to element, it can be understood as
Judge the first scene element detected degree whether same or similar with default first scene reference element in preset range
It is interior.For example, user's facial image that terminal will test is compared with default facial image, the user's face detected is judged
Whether the similarity of image and default facial image is in default range, if similarity is in preset range, determines
The user's facial image detected is matched with default facial image;For another example, if the telephone number of the user detected with it is preset
Telephone number is identical, then determines that the telephone number detected is matched with presetting number of cell phone.
Account can be set in terminal, while it is corresponding with account referring to element to can be set default first scene, for example, will adopt
Corresponding relationship is arranged in the finger print information and account first of the user's first collected, in this way, when detecting the fingerprint with the fingerprint matching of first
When information, it can determine that active user is user's first according to the above-mentioned corresponding relationship of setting.
In addition, can terminate to flow if the first scene element detected and default first scene are mismatched referring to element
Journey, the step of can also executing other, the end process in Fig. 1 is only a kind of citing.
Step 103 obtains target scene corresponding with the default first scene reference element.
In the step, one or more scenes can be created, include target scene in scene.It may include in target scene
Above-mentioned default first scene is referring to element, when the first scene recognized is matched with default first scene referring to element referring to element
When, it can be according to default first scene referring to element, determining target scene corresponding with default first scene reference element.
For example, creation tri- scenes of A, B, C, the finger print data of first is stored in scenario A, second is stored in scenario B
Finger print data, third finger print data is stored in scene C, when the finger print data detected 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.
Step 104 obtains the pre-stored and associated target data permission control instruction of the target scene.
In the step, above-mentioned target data permission control instruction be can be for controlling target data secrecy or not right to keep confidential
The instruction of limit, for example, control target data is in hidden state.Above-mentioned target data permission control instruction can be one or more
A instruction, it can control the permission of one or more data.
Above-mentioned data can be the number that file, document, application program or application program in terminal generate at runtime
According to etc..
Step 105, according to the target data permission control instruction, control and the target data permission control instruction pair
The permission for the target data answered.
In the step, above-mentioned target data can be one or more data, can using target data permission control instruction
To control the permission of one or more data, target data permission control instruction, which can be, controls target data permission
Instruction, for example, being hidden to data A.It can be controlled according to permission of the target data permission control instruction to target data.Example
Such as, it is to be encrypted to data A with the associated target data permission control instruction of target scene, data B is disclosed, terminal reads the mesh
After marking data permission control instruction, data A is encrypted, data B is disclosed.In this way, an account can be directed to, while controlling more
The permission of a data can protect the privacy of user.
The data permission control method of the embodiment of the present invention can be applied to terminal, such as: mobile phone, computer, plate electricity
Brain (Tablet Personal Computer), laptop 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 detects the first scene element of scene locating for terminal;Judge institute
State whether the first scene element matches with default first scene referring to element;If first scene element and described default first
Scene matches referring to element, then obtains target scene corresponding with the default first scene reference element;Acquisition is deposited in advance
Storage with the associated target data permission control instruction of the target scene;According to the target data permission control instruction, control
Make the permission of target data corresponding with the target data permission control instruction.In this way, when recognizing scene locating for terminal,
Data permission can be controlled according to the corresponding data permission control instruction of scene, can protect the privacy of user, and data mode
Control mode is simple, and user's operation is convenient, improves user 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, packet
Include following steps:
First scene element of scene locating for step 201, detection terminal.
In the step, scene can be characteristic information, condition and the set of instruction, can be to including certain characteristic information
User, the under certain conditions permission of controlling 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, terminal acquires the user when user carries out touch operation at the terminal
Fingerprint;For another example, user's using terminal is taken pictures, terminal by photo store to it is local when, acquire photo in facial image.This
Sample is capable of the identity information of quick obtaining user, and can acquire different information according to the identity characteristic of different users, uses
Family operation is convenient.
Optionally, before the step of the first scene element of the scene locating for the detection terminal, the method also includes:
Create at least one scene including the target scene;Determining data permission control instruction with each scene relating and the
Two scenes are referring to element;First corresponding relationship of first scene referring to element and account is established, the account includes at least target
Account;Establish the second corresponding relationship of scene and account.
In the step, one or more scenes can be created, preceding creation can used, be also possible to user and using
It is created in journey.If creating multiple scenes, when scene change, terminal can according to the scene of identification, switch to data permission into
Row control, in addition, scene can also be edited at any time to cope with the data changed at any time.
It may include in above-mentioned target scene and represent default first scene of account identity information referring to element, when receiving
When presetting scene element of first scene referring to element with this, it can identify and preset the first scene referring to the corresponding account of element with this
Family or identification target scene corresponding with default first scene reference element.It may include default in above-mentioned target scene
Two scenes are referring to element, which can be associated with referring to element with target data permission control instruction, in this way, terminal
When meeting condition of default second scene referring to element, the state of corresponding data permission control instruction control data is used.
Corresponding relationship is established referring to element and account by first, and scene and account are established into corresponding relationship, in this way, can
To determine scene and account referring to element according to collected first, the second scene reference with scene relating may thereby determine that
Element and data permission control instruction.
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 scenario A and scenario B are created, scene set A corresponding account A and account C, setting
Scenario B corresponding account D and account E and account F.Account E and account F can also be created into group G, scenario B is made to correspond to group G,
It still can be understood as scenario B corresponding account E and account F at this time.In addition the corresponding data permission control of scenario A can be set to refer to
Enabling is respectively to protect to data A, is disclosed data B and data C, the corresponding data permission control instruction of scenario B is respectively logarithm
It is disclosed according to A, data B and data C is protected.It can store the first scene element for determining account identity information in scene,
And the second scene element for limiting terminal condition, it can be collected before creating scene or when creating scene, and store
In terminal, the corresponding relationship of the first scene element and account can be set, the corresponding relationship of account and scene is set.In this way, eventually
End can identify scene according to above-mentioned corresponding relationship, to control data permission.For example, when user uses eventually
When end, terminal can according to the scene where the corresponding finger print information identification terminal of account A of acquisition be scenario A, terminal according to
Data A is protected with scenario A associated data permission control instruction, data B and data C are disclosed;If terminal acquires account at this time
The corresponding facial image of family B, scene where identification terminal are scenario B, and terminal can be controlled according to the associated data permission of scenario B
Instruction carries out disclosure to data A, protects to data B and C.
In this embodiment, the corresponding relationship and scene and account of setting account and the first scene referring to element
Corresponding relationship, in this way, target scene and target account can be determined according to the first scene element of acquisition, so that it is determined that and target
The data permission control instruction of scene relating, in this way, enabling the terminals to the transformation switch data permission according to scene.In addition, working as
When creating multiple scenes, for different users, the state that data are shown as different can control, user-friendly, protection
The privacy of user.
Optionally, default first scene includes: human face data, finger print data, communications account, audio number referring to element
At least one of 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, such as fingerprint lines;Above-mentioned communications account can be the social account of registration, example
Such as instant messaging account, telephone number;Audio data can be the voice messaging etc. in voice messaging or video.In addition,
It can also include iris feature.
When acquiring the first scene element, big data acquisition is can be used in terminal, is referred to for example, obtaining user using big data
Then line information carries out matching degree comparison referring to element with default first scene.
The first scene element detection mode in the embodiment is simple, can expand detection range, so that scene be answered
Use more accounts.
Step 202 judges whether first scene element matches with default first scene referring to element, if described first
Scene element matches with default first scene referring to element, thens follow the steps 203.
The first scene element that can be will test when terminal detects the first scene element and default first scene ginseng
It is compared according to element.Judge whether the first scene element detected matches with default first scene referring to element, it can be understood as
Judge the first scene element detected degree whether same or similar with default first scene reference element in preset range
It is interior.For example, user's facial image that terminal will test is compared with default facial image, the user's face detected is judged
Whether the similarity of image and default facial image is in default range, if similarity is in preset range, determines
The user's facial image detected is matched with default facial image;For another example, if the telephone number of the user detected with it is preset
Telephone number is identical, then determines that the telephone number detected is matched with presetting number of cell phone.
Account can be set in terminal, at the same can be set the first scene referring to element it is corresponding with account, for example, will collect
User's first finger print information and account first corresponding relationship is set, in this way, when detect finger print information with the fingerprint matching of first
When, it can determine that active user is user's first according to the above-mentioned corresponding relationship of setting.
In addition, can terminate to flow if the first scene element detected and default first scene are mismatched referring to element
Journey, the step of can also executing other, the end process in Fig. 2 is only a kind of citing.
Step 203 obtains target scene corresponding with the default first scene reference element.
In the step, one or more scenes can be created, include target scene in scene.It may include in target scene
Above-mentioned default first scene is referring to element, when the first scene recognized is matched with default first scene referring to element referring to element
When, it can be according to default first scene referring to element, determining target scene corresponding with default first scene reference element.
For example, creation tri- scenes of A, B, C, the finger print data of first is stored in scenario A, second is stored in scenario B
Finger print data, third finger print data is stored in scene C, when the finger print data detected 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 default first scene reference element target scene, comprising: root
According to first corresponding relationship pre-established, the determining target account corresponding with the default first scene reference element
Family;According to second corresponding relationship pre-established, target scene corresponding with target account group is obtained;Wherein, described
Target account is the account in the target account group, and the target account group includes at least one account.
In the step, it is corresponding with group to can be set scene, may include multiple accounts in group.When terminal detect with
When matched first scene element of default first scene element, account corresponding with default first scene element can be determined, and
According to the corresponding relationship of group and scene where the account, target scene is determined.For example, as shown in Figure 3, scenario B is corresponding
Group G, and group G includes account E and F.When detecting the first scene element corresponding with account E, since group G includes account
The corresponding scene of family E, account E is the corresponding scenario B of group G, hence, it can be determined that account E corresponds to scenario B.
In this way, when account and scene are established corresponding relationship, after multiple accounts being established group, by account group
Corresponding relationship is established with scene, user's operation is convenient, can save terminal energy consumption.
Second scene element of scene locating for step 204, the detection terminal.
In this step, above-mentioned second scene element can be understood as conditional parameter, for example, time, geographical location or end
Hold the application status etc. used within a preset period of time.Can according in terminal system time or network time determine
The current time of terminal;Geographical location locating for terminal being obtained according to positioning software;According to the fortune of application program in terminal
Row record can determine the application status that terminal uses within a preset period of time.
Second scene element of scene locating for detection terminal can be understood as the conditional parameter that detection terminal is presently in, example
Such as, the position that detection terminal is presently in.
Optionally, default second scene referring to element include: the period, geographical location, the target data fortune
At least one of in row state.
In the step, the period can be the restriction for the time, the i.e. preset time range of terminal, such as Beijing time
, when detecting the time of terminal, it can detecte terminal system time or network time at 7 points to 9 points, it is determined whether in above-mentioned
Preset time period.
Above-mentioned geographical location can be the restriction to position, the i.e. range in geographical location locating for terminal, for example, Henan
It saves.When detecting geographical location locating for terminal, geography position locating for terminal can be determined according to positioning software testing number geographical location
It sets, judges whether the range in preset geographical location.
The operating status of above-mentioned target data can be the restriction to the operating condition of target data, for example, according to operation
It records and determines that target data is in operating status at continuous two days recently, judge whether in preset operating status range.
In this way, controlling data permission when terminal is in specified conditions, being protected data, to protect user's
Privacy.
Step 205 judges whether second scene element matches with default second scene referring to element;If described second
Scene element matches with default second scene referring to element, 206 is thened follow the steps, if second scene element and institute
It states default second scene to mismatch referring to element, then terminates process.
Above-mentioned default second scene can be the condition for presetting and being stored in terminal referring to element, preset the second scene
It may include one or more condition referring to element, for multiple conditions, logical relation can be used multiple conditional parameters
It is combined, forms default second scene referring to element.
It is above-mentioned to judge whether the second scene element matches with default second scene referring to element and can be understood as judgement second
Whether scene element meets default second scene referring to the condition of element.In order to make it easy to understand, being wanted with default second scene reference
For element is is defined to time locating for terminal and geographical location.
For example, it is north that default second scene, which is geographical location locating for Beijing time 19:00 to 22:00 and terminal referring to element,
Capital, then, need to judge whether the time of current collected terminal is in the period of Beijing time 19:00 to 22:00, and
Judge whether the geographical location that terminal is presently in is Beijing, if the time of terminal be in Beijing time 19:00 to 22:00 it
Between, and geographical location locating for terminal is Beijing, thens follow the steps 206.
If the second scene element and default second scene are mismatched referring to element, other steps can be executed, it can also be with
Terminate process, end process shown in Fig. 2 is only a kind of citing.
In this way, in this embodiment, when terminal is collected with default first scene referring to the matched scene reference of element
Element, and when terminal is in condition of default second scene referring to element, the permission of data is controlled, the number in user terminal is made
According under given conditions be in guard mode without being leaked, to protect the privacy of user;And terminal is in non-above-mentioned specific
When condition, the data in terminal can be switched to visible state.And it is directed to different users, control data are shown as different shapes
State, it is user-friendly.Terminal be can be realized in this way in different scenes, to the different power of different account control data
Limit, while protecting privacy of user, user's operation is convenient, and user experience can be improved.
Step 206 obtains the pre-stored and associated target data permission control instruction of the target scene.
In the step, above-mentioned target data permission control instruction be can be for controlling target data secrecy or not right to keep confidential
The instruction of limit, for example, control target data is in hidden state.Above-mentioned target data permission control instruction can be one or more
A instruction, it can control the permission of one or more data.
Above-mentioned data can be the number that file, document, application program or application program in terminal generate at runtime
According to etc..
Step 207, according to the target data permission control instruction, control and the target data permission control instruction pair
The permission for the target data answered.
In the step, above-mentioned target data can be one or more data, can using target data permission control instruction
To control the permission of one or more data, target data permission control instruction, which can be, controls target data permission
Instruction, for example, being hidden to data A.It can be controlled according to permission of the target data permission control instruction to target data.Example
Such as, it is to be encrypted to data A with the associated target data permission control instruction of target scene, data B is disclosed, terminal reads the mesh
After marking data permission control instruction, data A is encrypted, data B is disclosed.In this way, an account can be directed to, while controlling more
The permission of a data can protect the privacy of user.
Optionally, the step of permission of control target data corresponding with the target data permission control instruction,
It includes at least one of the following: the permission of the target data of the first predetermined number corresponding with the target data permission control instruction
It is set as encrypting;Priority assignation by the target data of the second predetermined number corresponding with the target data permission control instruction is
It hides;It is open by the priority assignation of the target data of third predetermined number corresponding with the target data permission control instruction.
In the step, above-mentioned target scene can correspond to multiple data permission control instructions, and it is same that multiple instruction can be used
When control the permissions of multiple data.Control data permission may include being encrypted, being hidden or openly to data.Each instruction can
With the multiple data of correspondence, for example, data permission control instruction includes hiding to data A and data B, and to data C and data D
Encryption.
When to data encryption, when terminal needs to receive the password and correct verifying password of user's input, the number is just shown
According to.For example, encrypting to the file in terminal, and password is set.
When to image watermarking, the data information is not shown in terminal.For example, being carried out to the instant message applications in terminal hidden
Hiding can receive information at this point, the instant message applications may be at operating status, terminal not display reminding information.
When disclosing data, the data in terminal are visible state.
When terminal is by a scene switching to another 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, it can control target data and be switched to various states in different scenes, can control
Multiple data in target data are shown as different states, in this way, the data of privacy can be hidden or be encrypted,
To protect the privacy of user.
The data permission control method of the embodiment of the present invention detects the first scene element of scene locating for terminal;Judge institute
State whether the first scene element matches with default first scene referring to element;If first scene element and described default first
Scene matches referring to element, then obtains target scene corresponding with the default first scene reference element;Detect the end
Hold second scene element of locating scene;Judge second scene element whether with default second scene referring to element
Match;If second scene element matches with default second scene referring to element, obtain it is pre-stored with it is described
The associated target data permission control instruction of target scene;According to the target data permission control instruction, control and the mesh
Mark the permission of the corresponding target data of data permission control instruction.In this way, the present embodiment is on the basis of the corresponding embodiment of Fig. 1
On, when under the conditions of terminal being in specific, the permission of target data is controlled, can pointedly data be carried out in this way
Protection, and mode of operation is simple, user's operation is convenient.
3rd embodiment
Referring to fig. 4, Fig. 4 is the structure chart that the present invention implements the terminal provided, is able to achieve first embodiment to the second implementation
The details of data permission control method in example, and reach identical effect.The terminal can be smart phone, tablet computer etc.
Equipment.As shown in figure 4, terminal 400 includes: the first scene element detection module 401, the first scene element judgment module 402, mesh
It marks scene and obtains module 403, target data permission control instruction acquisition module 404 and control module 405, wherein the first scene
Element detection module 401 is connect with the first scene element judgment module 402, the first scene element judgment module 402 and target field
Scape obtains module 403 and connects, and target scene obtains module 403 and connect with target data permission control instruction acquisition module 404, mesh
Mark data permission control instruction obtains module 404 and connect with control module 405, in which:
First scene element detection module 401, for detecting the first scene element of scene locating for terminal;
First scene element judgment module 402, the institute detected for judging the first scene element detection module 401
State whether the first scene element matches with default first scene referring to element;
Target scene obtains module 403, if judging first scene for the first scene element judgment module 402
Element matches with default first scene referring to element, then obtains and preset the corresponding mesh of the first scene reference element with described
Mark scene;
Target data permission control instruction obtains module 404, pre-stored is associated with the target scene for obtaining
Target data permission control instruction;
Control module 405, for obtaining the target that module 404 obtains according to the target data permission control instruction
Data permission control instruction controls the permission of target data corresponding with the target data permission control instruction.
Optionally, as shown in figure 5, the target scene further includes the second scene element, the terminal 400 further include:
Second scene element detection module 406, for detecting second scene element of scene locating for the terminal;
Second scene element judgment module 407, the institute detected for judging the second scene element detection module 406
State whether the second scene element matches with default second scene referring to element;If second scene element and described default second
Scene matches referring to element, then the second scene element judgment module 407 is also used to control the target data permission control
Instruction acquisition module 404 processed executes pre-stored control with the associated target data permission of the target scene of the acquisition and refers to
The step of enabling.
Optionally, as shown in fig. 6, the terminal 400 further include:
Creation module 408, for creating at least one scene including the target scene;
Determining module 409, for the determining data permission control instruction with each scene relating of creation module creation
With the second scene referring to element;
First establishes module 410, for establishing first corresponding relationship of first scene referring to element and account, the account
Including at least target account;
Second establishes module 411, for establishing the second corresponding relationship of scene and account.
Optionally, as shown in fig. 7, the target scene obtains module 403, comprising:
Target account determination unit 4031, for according to the described first described first pair for establishing that module 410 pre-establishes
It should be related to, the determining target account corresponding with the default first scene reference element;
Target scene determination unit 4032, for according to the described second described second pair for establishing that module 411 pre-establishes
It 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 includes extremely
A few account.
Optionally, as shown in figure 8, the control module 405, includes at least one of the following:
Encryption unit 4051, for the number of targets that module obtains will to be obtained with the target data permission control instruction
Priority assignation according to the target data of corresponding first predetermined number of permission control instruction is encryption;
Hidden unit 4052, for the number of targets that module obtains will to be obtained with the target data permission control instruction
Priority assignation according to the target data of corresponding second predetermined number of permission control instruction is hiding;
Open unit 4053, for the number of targets that module obtains will to be obtained with the target data permission control instruction
It is open for corresponding to the priority assignation of the target data of third predetermined number according to permission control instruction.
Optionally, default first scene includes: human face data, finger print data, communications account, audio number referring to element
At least one of in.
Optionally, default second scene referring to element include: the period, geographical location, the target data fortune
At least one of in row state.
The terminal 400 of the embodiment of the present invention detects the first scene element of scene locating for terminal;Judge first scene
Whether element matches with default first scene referring to element;If first scene element is wanted with the default first scene reference
Element matches, then obtains target scene corresponding with the default first scene reference element;Obtain it is pre-stored with it is described
The associated target data permission control instruction of target scene;According to the target data permission control instruction, control and the mesh
Mark the permission of the corresponding target data of data permission control instruction.In this way, can be referred to according to the corresponding data permission control of scene
Control data permission is enabled, can protect the privacy of user, and data mode control mode is simple, user's operation is convenient, improves and uses
Family experience.
Fourth embodiment
It is the structure chart that the present invention implements the terminal provided referring to Fig. 9, Fig. 9, is able to achieve first embodiment to the second implementation
The details of 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.Various components in terminal 900 pass through
Bus system 905 is coupled.It is understood that bus system 905 is for realizing the connection communication between these components.Total linear system
System 905 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.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 may 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,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (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 programmable read-only memory (Electrically EP ROM, EEPROM)
Or flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as outside
Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(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 is intended to include but is not limited to these
With the memory of any other suitable type.
In some embodiments, memory 902 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 9021 and application program 9022.
Wherein, operating system 9021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 9022 includes 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 or instruction of calling memory 902 to store, specifically, can be application
The program or instruction stored in program 9022, processor 901 are used for: the first scene element of scene locating for detection terminal;Judgement
Whether first scene element matches with default first scene referring to element;If first scene element and described default the
One scene matches referring to element, then obtains target scene corresponding with the default first scene reference element;It obtains preparatory
Storage with the associated target data permission control instruction of the target scene;According to the target data permission control instruction,
Control the permission of target data corresponding with the target data permission control instruction.
The method that the embodiments of the present invention disclose can be applied in processor 901, or be realized by processor 901.
Processor 901 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 901 or the instruction of software form.Above-mentioned processing
Device 901 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 902, processor 901 reads the information in memory 902, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (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 executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, processor 901 is also used to: detecting second scene element of scene locating for the terminal;Judge institute
State whether the second scene element matches with default second scene referring to element;If second scene element and described default second
Scene matches referring to element, then execute it is described obtain it is pre-stored with the associated target data permission control of the target scene
The step of system instruction.
Optionally, processor 901 is also used to: at least one scene of creation including the target scene;Determine with
The data permission control instruction of each scene relating and the second scene are referring to element;The first scene is established referring to the of element and account
One corresponding relationship, the account include at least target account;Establish the second corresponding relationship of scene and account.
Optionally, processor 901 is also used to: determining to preset with described according to first corresponding relationship pre-established
First scene is referring to the corresponding target account of element;According to second corresponding relationship pre-established, acquisition 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 also used to: by the first predetermined number corresponding with the target data permission control instruction
The priority assignation of target data is encryption;By the number of targets of the second predetermined number corresponding with the target data permission control instruction
According to priority assignation be hiding;By the power of the target data of third predetermined number corresponding with the target data permission control instruction
Limit is set as open.
Optionally, default first scene includes: human face data, finger print data, communications account, audio number referring to element
At least one of in.
Optionally, default second scene referring to element include: the period, geographical location, the target data fortune
At least one of in row state.
The terminal 900 of the embodiment of the present invention detects the first scene element of scene locating for terminal;Judge first scene
Whether element matches with default first scene referring to element;If first scene element is wanted with the default first scene reference
Element matches, then obtains target scene corresponding with the default first scene reference element;Obtain it is pre-stored with it is described
The associated target data permission control instruction of target scene;According to the target data permission control instruction, control and the mesh
Mark the permission of the corresponding target data of data permission control instruction.In this way, can be referred to according to the corresponding data permission control of scene
Control data permission is enabled, can protect the privacy of user, and data mode control mode is simple, user's operation is convenient, improves and uses
Family experience.
5th embodiment
Referring to Fig. 10, Figure 10 is the structure chart that the present invention implements the terminal provided, first embodiment is able to achieve to second
The details of 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 unit 1030, display unit 1040, processor 1050,
Voicefrequency circuit 1060, communication module 1070, power supply 1080.
Wherein, input unit 1030 can be used for receiving the number or character information of user's input, and generation and terminal
The related signal input of 1000 user setting and function control.Specifically, in the embodiment of the present invention, the input unit 1030
It may include touch panel 1031.Touch panel 1031, also referred to as touch screen collect the touch behaviour of user on it or nearby
Make (for example user uses the operations of any suitable object or attachment on touch panel 1031 such as finger, stylus), and according to
Preset formula drives corresponding attachment device.Optionally, touch panel 1031 may include touch detecting apparatus and touch
Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected,
Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching
Point coordinate, then gives the processor 1050, and can receive order that processor 1050 is sent and be executed.Furthermore, it is possible to adopt
Touch panel 1031 is realized with multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1031, input unit 1030 can also include other input equipments 1032, other input equipments 1032 can include but is not limited to
One of physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are more
Kind.
Wherein, display unit 1040 can be used for showing information input by user 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 hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 1041.
It should be noted that touch panel 1031 can cover display panel 1041, touch display screen is formed, when the touch display screen
After detecting touch operation on it or nearby, processor 1050 is sent to determine the type of touch event, is followed by subsequent 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 common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
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 elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.The touch screen of the embodiment of the present invention is soft
Property screen, organic transparent conductive film of carbon nanotube is posted in two faces of flexible screen.
Wherein processor 1050 is the control centre of terminal 1000, utilizes each of various interfaces and connection whole mobile phone
A part by running or execute the software program and/or module that are stored in first memory 1021, and is called and is stored in
Data in second memory 1022 execute the various functions and processing data of terminal 1000, to carry out to terminal 1000 whole
Body monitoring.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 are used for: the first scene element of scene locating for detection terminal;Judgement
Whether first scene element matches with default first scene referring to element;If first scene element and described default the
One scene matches referring to element, then obtains target scene corresponding with the default first scene reference element;It obtains preparatory
Storage with the associated target data permission control instruction of the target scene;According to the target data permission control instruction,
Control the permission of target data corresponding with the target data permission control instruction.
Optionally, processor 1050 is also used to: detecting second scene element of scene locating for the terminal;Judge institute
State whether the second scene element matches with default second scene referring to element;If second scene element and described default second
Scene matches referring to element, then execute it is described obtain it is pre-stored with the associated target data permission control of the target scene
The step of system instruction.
Optionally, processor 1050 is also used to: at least one scene of creation including the target scene;Determine with
The data permission control instruction of each scene relating and the second scene are referring to element;The first scene is established referring to the of element and account
One corresponding relationship, the account include at least target account;Establish the second corresponding relationship of scene and account.
Optionally, processor 1050 is also used to: determining to preset with described according to first corresponding relationship pre-established
First scene is referring to the corresponding target account of element;According to second corresponding relationship pre-established, acquisition 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 also used to: will the first predetermined number corresponding with the target data permission control instruction
Target data priority assignation be encryption;By the target of the second predetermined number corresponding with the target data permission control instruction
The priority assignation of data is hiding;By the target data of third predetermined number corresponding with the target data permission control instruction
Priority assignation is open.
Optionally, default first scene includes: human face data, finger print data, communications account, audio number referring to element
At least one of in.
Optionally, default second scene referring to element include: the period, geographical location, the target data fortune
At least one of in row state.
The terminal 1000 of the embodiment of the present invention detects the first scene element of scene locating for terminal;Judge described first
Whether scape element matches with default first scene referring to element;If first scene element and the default first scene reference
Element matches, then obtains target scene corresponding with the default first scene reference element;Obtain pre-stored and institute
State the associated target data permission control instruction of target scene;According to the target data permission control instruction, control with it is described
The permission of the corresponding target data of target data permission control instruction.In this way, when recognizing scene locating for terminal, it can basis
The corresponding data permission control instruction of scene controls data permission, can protect the privacy of user, and data mode control mode
Simply, user's operation is convenient, improves user experience.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
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, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed terminal and method can pass through others
Mode is realized.For example, terminal embodiment described above is only schematical, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of terminal or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs
Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.