CN106383637A - Screen locking method and device, and terminal equipment - Google Patents

Screen locking method and device, and terminal equipment Download PDF

Info

Publication number
CN106383637A
CN106383637A CN201610943968.7A CN201610943968A CN106383637A CN 106383637 A CN106383637 A CN 106383637A CN 201610943968 A CN201610943968 A CN 201610943968A CN 106383637 A CN106383637 A CN 106383637A
Authority
CN
China
Prior art keywords
screen locking
window
independent
independent screen
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610943968.7A
Other languages
Chinese (zh)
Inventor
李嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610943968.7A priority Critical patent/CN106383637A/en
Publication of CN106383637A publication Critical patent/CN106383637A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a screen locking method, a screen locking device, and terminal equipment. The screen locking method comprises the steps of calling a screen locking service agent during a system boot process of the terminal equipment; reading configuration information that comprises configuration information corresponding to an independent screen locking service; acquiring the screen locking service corresponding to the read configuration information; binding the acquired screen locking service to the screen locking service agent; and running the screen locking service bound to the screen locking service agent to complete display of a screen locking window in the terminal equipment. According to the method and the device provided by the invention, the locking of a screen is high in system performance and security performance, and also has the advantages of any screen locking application developed by a third party; the locking of the screen of the terminal equipment provided by the invention is high in system performance and security performance, and also has the advantages of any screen locking application developed by the third party.

Description

Screen lock method and device, terminal device
Technical field
The present invention relates to computer applied algorithm field, particularly to a kind of screen lock method and device, terminal device.
Background technology
With the continuous development of computer technology, the such as terminal device such as mobile phone, panel computer is more and more diversified, terminal The interface of equipment and user mutual also increasingly close friendization.
In order to avoid the maloperation in non-working condition for the user, most of terminal device all has the function of screen locking, with The use safety of protection user.At present, mainly there are two kinds of screen locking modes, a kind of is to be based on system by the platform vendor of terminal device Safety and performance consider and the system screen locking of employing, another kind is the application program screen locking of third party manufacturer exploitation.
System screen locking security performance is high, ease for use is good, but single function, and interface is simple.Application program screen locking function is rich Rich, beautiful interface, but, poor performance.For example start application program it is impossible to load before the system boot of terminal device completes The process of screen locking, therefore, before showing its screen locking window, user can also operate the boundary of terminal device for application program screen locking Face;And system screen locking has just loaded activation system screen locking process when system not yet completes start, completely complete when starting shooting Cheng Hou, system screen locking has shown that and finishes, and user needs unblock could enter system.
Platform vendor fail development function enrich, the main cause of the system screen locking of beautiful interface be:One is due to system Other modules of the function of screen locking, code etc. and system couple seriously, often adjust function and the interface of some system screen lockings, are required for Consider the impact to other modules, these interactional modules are all the basic modules of system, and security stability is very heavy Will be it is impossible to frequently, change on a large scale;Two be due to platform vendor energy preferential it is ensured that the stable and ease for use of whole system Through being difficult, it is difficult to separate extensive reconstruct, the exploitation of energy guarantee system screen locking again.Therefore, there is extension difficulty in system screen locking Problem.
Therefore, for the screen locking of current terminal device, on the one hand, the function of system screen locking and interface are simple, and extend tired Difficult;On the other hand although the application program screen locking feature richness of third party's exploitation, beautiful interface, but application program screen locking is Independent of system development, do not account for the bottom layer realization safety-related with system, security is not high, and the friendship with system Mutually existing defects.
Content of the invention
Based on this, the present invention provides a kind of screen lock method, and the method can make screen lock possess higher system Performance and security performance, and have the advantage of the application program screen locking of third party's exploitation concurrently.
Based on this, the present invention provides a kind of screen lock device, and this device can make screen lock possess higher system Performance and security performance, and have the advantage of the application program screen locking of third party's exploitation concurrently.
Based on this, the present invention provides a kind of terminal device, and the screen lock of described terminal device possesses higher systematicness Energy and security performance, and have the advantage of the application program screen locking of third party's exploitation concurrently.
The present invention provides a kind of screen lock method, including:
In the system boot process of terminal device, call screen locking service broker;
Read configuration information, described configuration information includes the configuration information corresponding to independent screen locking service;
The configuration information corresponding screen locking service obtaining and reading;
By the screen locking service binding obtaining to described screen locking service broker;
Run the screen locking service of described screen locking service broker binding, to complete the aobvious of screen locking window in described terminal device Show.
Optionally, also include the configuration information corresponding to system screen locking service in described configuration information;
The described step reading configuration information includes:
Obtain chosen Configuration Values;
Judge whether described Configuration Values are more than predetermined threshold value;
If so, then read the configuration information corresponding to independent screen locking service;
If it is not, then reading the configuration information corresponding to system screen locking service.
Optionally, when described Configuration Values are more than predetermined threshold value, the screen locking of described operation described screen locking service broker binding Service, to complete the display of screen locking window in described terminal device, including:
Detection window type attribute in window object;
Judge whether the corresponding window type of window type attribute detecting is independent screen locking window type;
If so, obtain the independent screen locking window object being pre-configured with;
Independent screen locking window is generated according to described independent screen locking window object;
Described independent screen locking window is shown in described terminal device.
Optionally, show described independent screen locking window in described terminal device, including:
According to the corresponding window type attribute of described independent screen locking window type, the corresponding window class to independent screen locking window Type variable carries out assignment;
Obtain the DISPLAY ORDER of described independent screen locking window according to the assignment of described window type variable;
According to the DISPLAY ORDER of described independent screen locking window, described terminal device shows described independent screen locking window.
Optionally, methods described also includes:
The independent screen locking window object obtaining is preserved to Window state variable.
Optionally, after the described independent screen locking window object by acquisition preserves the step to Window state variable, institute Method of stating also includes:
Determine whether that the correlation window of described application program is shown in independent screen locking window to system request by application program On mouthful;
If so, independent screen locking window is regenerated according to the independent screen locking window object being saved in described Window state variable Mouthful;
The independent screen locking window regenerating is shown under the correlation window of described application program.
The present invention separately provides a kind of screen lock device, including:
Calling module, for, in the system boot process of terminal device, calling screen locking service broker;
Read module, for reading configuration information, described configuration information includes the configuration corresponding to independent screen locking service Information;
Acquisition module, for the configuration information corresponding screen locking service obtaining with read;
Binding module, for the screen locking service binding extremely described screen locking service broker that will obtain;
Run module, for running the screen locking service of described screen locking service broker binding, with complete in described terminal device Become the display of screen locking window.
Optionally, also include the configuration information corresponding to system screen locking service in described configuration information;
Described read module includes Configuration Values acquiring unit, judging unit, the first reading unit and the second reading unit, its In:
Described Configuration Values acquiring unit is used for obtaining chosen Configuration Values;
Described judging unit is used for judging whether described Configuration Values are more than predetermined threshold value, if so, then runs first and reads list Unit, and run described second reading unit in a case of no;
Described first reading unit is used for reading the configuration information corresponding to independent screen locking service;
Second reading unit is used for reading the configuration information corresponding to system screen locking service.
Optionally, when described Configuration Values are more than predetermined threshold value, described operation module includes detector unit, type judges list Unit, acquiring unit, signal generating unit and display unit, wherein:
Described detector unit is used for detection window type attribute in window object;
Described type judging unit is used for judging whether the corresponding window type of window type attribute detecting is independent Screen locking window type, if run acquiring unit in a case of yes;
Acquiring unit is used for obtaining the independent screen locking window object being pre-configured with;
Signal generating unit is used for generating independent screen locking window according to described independent screen locking window object;
Display unit is used for showing described independent screen locking window in described terminal device.
Optionally, described display unit includes:
Assignment subelement, for according to the corresponding window type attribute of described independent screen locking window type, to described independence The window type variable of screen locking window carries out assignment;
DISPLAY ORDER obtains subelement, for obtaining described independent screen locking window according to the assignment of described window type variable DISPLAY ORDER;
Independent screen locking window shows subelement, for the DISPLAY ORDER according to described independent screen locking window, in described terminal Described independent screen locking window is shown in equipment.
Optionally, described device also includes:
Independent screen locking window object preserving module, becomes to Window state for preserving the independent screen locking window object obtaining In amount.
Optionally, described device also includes judge module, window regenerates module and independent screen locking window display module, Wherein:
Judge module is used for determining whether that the correlation window of described application program is shown by application program to system request On independent screen locking window, and human window regenerates module in a case of yes;
Described window regenerates module for according to the independent screen locking window pair that is saved in described Window state variable As regenerating independent screen locking window;
Independent screen locking window display module, for being shown in described application program by the independent screen locking window regenerating Under correlation window.
The present invention provides a kind of terminal device, including screen lock device described above.
The technical scheme that embodiments of the invention provide can include following beneficial effect:
The screen lock method of the present invention, by calling screen locking service broker, reads configuration information, wraps in this configuration information Include the configuration information corresponding to independent screen locking service, obtain screen locking service corresponding with configuration information, and clothes are acted on behalf of by screen locking Business binding screen locking service, realizes initialization screen locking service, and then the screen locking service of operation binding, realizes the lock to terminal device Screen, because this configuration information includes the configuration information corresponding to independent screen locking service, therefore, should be corresponding to independent screen locking when reading Service configuration information when, screen locking agency service binding be independent screen locking service, and then run be independent screen locking service.Mat This, can connect independent screen locking service by calling screen locking service broker and reading configuration information, join because configuration information is stored in Put in item, configuration item is newly-increased safe interface in systems so that independent screen locking service can pass through this interface of configuration item Well with the system integration, with response system, screen locking is controlled, improves the security performance of system, also make independent simultaneously Screen locking service is not in the defect interacting with system, and independent screen locking service has feature richness concurrently and picture is attractive in appearance Feature.
It should be appreciated that above general description and detailed description hereinafter are only exemplary, can not be limited this Invention.
Brief description
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the enforcement meeting the present invention Example, and be used for together explaining the principle of the present invention in specification.
Fig. 1 is the flow chart of the screen lock method in one embodiment of the invention;
Fig. 2 is the method flow diagram reading configuration information in one embodiment of the invention;
Fig. 3 is the screen locking service running screen locking service broker binding, to complete screen locking window in described terminal device The method flow diagram of display;
Fig. 4 is the method partial process view showing independent screen locking window in terminal device;
Fig. 5 is the partial process view of the screen lock method in another embodiment of the present invention;
Fig. 6 is the partial process view of the screen lock method in another embodiment of the present invention;
Fig. 7 is the structured flowchart of the screen lock device in one embodiment of the invention;
Fig. 8 is the structured flowchart of read module;
Fig. 9 is the structured flowchart running module;
Figure 10 is the structured flowchart of display unit;
Figure 11 is the part-structure block diagram of the screen lock device in another embodiment of the present invention;
Figure 12 is the part-structure block diagram of the screen lock device in another embodiment of the present invention;And
Figure 13 is a kind of structured flowchart of terminal device provided in an embodiment of the present invention.
Specific embodiment
Here in detail explanation will be executed to exemplary embodiment, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they be only with such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, the present invention.
As it was previously stated, either system screen locking or third-party application program screen locking all has in current terminal device Fixed defect, on the one hand, the function of system screen locking and interface are simple, simultaneously because other modules of system screen locking and system have coupling Close serious problem, and lead to extension difficult;On the other hand, the application program screen locking security performance of third party's exploitation is low, and With system interaction existing defects.
Based on this, in order that screen lock possesses higher systematic function and security performance, and have third party's exploitation concurrently The advantage of application program screen locking, the present invention is special to propose a kind of screen lock method, and this screen lock method is real by computer program Existing, corresponding, constructed screen lock plant running is in the such as terminal device such as mobile phone, panel computer.
In one embodiment, as shown in figure 1, the screen lock method of the present invention includes:
Step 110, in the system boot process of terminal device, calls screen locking service broker.
Screen locking service broker (KeyguardServiceDelegate class) acts on behalf of to screen locking service, is screen locking service Entrance.
Calling of screen locking service broker can be executed by window manager.
Window manager (PhoneWindowManager class) is the interface that screen locking externally interacts, and for example, application program is led to Cross window manager and access screen locking service.Terminal device after shut down, when the start key of terminal device or power key are triggered, The system of terminal device will enter start process, can load a large amount of classes and resource, also can carry out screen locking service in start process Load.When start completes, the screen locking corresponding screen locking window of service displays that and finishes.
When carrying out the loading to screen locking service in system boot process, window manager is by calling screen locking service broker To connect screen locking service.
Step 120, reads configuration information, and configuration information includes the configuration information corresponding to independent screen locking service.
Configuration information includes the configuration information corresponding to independent screen locking service, and specifically, this configuration information can be only Vertical screen locking service name.
Configuration information is stored in configuration item, and configuration item is the safe interface that system increases newly, by this interface of configuration item, Enable screen locking service well with the system integration.This configuration item can open to user, and user passes through the configuration in configuration item Information is set to correspond to the configuration information of independent screen locking service, makes system start independent screen locking service.
By reading the configuration information corresponding to independent screen locking service, obtain the information related to independent screen locking service.
Step 130, obtains and the configuration information corresponding screen locking service read.
When reading the configuration information that this corresponds to independent screen locking service, the screen locking service of acquisition is independent screen locking service.
Step 140, by the screen locking service binding obtaining to screen locking service broker.
The screen locking service of binding is the screen locking service corresponding to configuration information read.It is independent screen locking service when obtain When, this screen locking service broker binding is independent screen locking service.Wherein, independent screen locking service is that the function of being developed by third party is rich Rich, the screen locking service of beautiful interface.
By by independent screen locking service binding to screen locking service broker it is achieved that to independent screen locking service initialization.
Step 150, runs the screen locking service of screen locking service broker binding, to complete the aobvious of screen locking window in terminal device Show.
By the screen locking service binding obtaining to screen locking service broker, the screen locking service of the binding that brings into operation, with to terminal Equipment carries out screen locking, and shows screen locking window.
Screen locking window is that the screen locking of binding services corresponding screen locking window, for example, if the screen locking service of binding is independent lock Screen service, then the as independent screen locking of screen locking window services corresponding independent screen locking window.
The screen lock method of the present invention, by calling screen locking service broker, reads configuration information, wraps in this configuration information Include the configuration information corresponding to independent screen locking service, obtain screen locking service corresponding with configuration information, and clothes are acted on behalf of by screen locking Business binding screen locking service, and initialize screen locking service, and then run the screen locking service of binding, realize the screen locking to terminal device, Because this configuration information includes the configuration information corresponding to independent screen locking service, therefore, when reading should be corresponding to independent screen locking clothes Business configuration information when, screen locking agency service binding be independent screen locking service, and then run be independent screen locking service.Mat This, can connect independent screen locking service by calling screen locking service broker and reading configuration information, join because configuration information is stored in Put in item, configuration item is newly-increased safe interface in systems so that independent screen locking service can pass through this interface of configuration item Well with the system integration, response system is controlled to screen locking, improves the security performance of system, also makes independent lock simultaneously Screen service is not in the defect interacting with system, and independent screen locking service has feature richness and picture spy attractive in appearance concurrently Point.
In one embodiment, also include the configuration information corresponding to system screen locking service in configuration information, as Fig. 2 institute State, step 120 includes:
Step 121, obtains chosen Configuration Values.
In this embodiment, configuration information is included corresponding to the configuration information of independent screen locking service with corresponding to system lock The configuration information of screen service, determines according to the Configuration Values of reading and reads from configuration information corresponding to which kind screen locking service Configuration information.
Configuration Values are the configuration numerical value of setting for the screen locking service of acquisition corresponding types.Different Configuration Values correspond to The configuration information of different types of screen locking service.For example, Configuration Values 2 correspond to the configuration information of system screen locking service, Configuration Values 4 Configuration information corresponding to independent screen locking service.
This Configuration Values is stored in configuration item, and configuration item opens to user, and user, by selecting different Configuration Values, makes System starts different types of screen locking service.For example, Configuration Values 4 are in chosen state because of the selected operation of user, then Whether system after power-up, is more than default threshold value by the Configuration Values 4 judging chosen, to read the screen locking of corresponding types Service.
Step 123, judges whether Configuration Values are more than predetermined threshold value.If so, then execution step 125, if it is not, then execution step 127.
Predetermined threshold value is for selecting to read corresponding to certain from the multiple configuration informations servicing corresponding to dissimilar screen locking One screen locking service and the threshold value that sets.
Step 125, reads the configuration information corresponding to independent screen locking service.
Configuration information corresponding to independent screen locking service is to refer to obtain the related information of independent screen locking service, for example, This configuration information can be independent screen locking service name, can obtain system screen locking service according to independent screen locking service name.
Step 127, reads the configuration information corresponding to system screen locking service.
Configuration information corresponding to system screen locking service is to refer to the related information of acquisition system screen locking service, for example, This configuration information can be system screen locking service name, can obtain system screen locking service according to system screen locking service name.
When reading when corresponding to the configuration information that system screen locking services, the screen locking of screen locking service broker binding services To be system screen locking service, accordingly, the screen locking service of operation also will be system screen locking service.
In the present embodiment, by obtaining the Configuration Values in chosen state, and according between Configuration Values and predetermined threshold value Relation, to read the configuration information of corresponding with the Configuration Values in chosen state screen locking service, to take this, obtain with selected Determine the corresponding screen locking service of Configuration Values in state, bind this screen locking service, and run this screen locking service, additionally, because of configuration Value is stored in configuration item, and configuration item opens to user, can obtain different Configuration Values by the selected operation of user, according to Different Configuration Values and the relation of predetermined threshold value, can obtain different types of screen locking service, thereby, by configuration item to configuration Selecting of value, may be selected to run different types of screen locking service.
Additionally, because the method for the present invention can be selected different Configuration Values and be bound different locks by the selected operation of user Screen service, takes this, the screen locking service of the feature richness of third party's stand-alone development can also be applied to the screen locking method of the present invention.
In one embodiment, when Configuration Values are more than predetermined threshold value, as shown in figure 3, step 150 includes:
Step 151, detection window type attribute in window object.
Window type attribute is for identification window type.Wherein, window type can be independent screen locking window type (TYPE-KEYGUARD), system screen locking window type (TYPE-KEYGUARD-SCRIM), drop-down informing window type (TYPE-STATUS-BAR) etc..Independent screen locking window type (TYPE-KEYGUARD) is that the present invention increases newly with respect to prior art It is added in the window type in window manager.
All types of windows corresponding window type attribute is comprised, for example, independent screen locking window type corresponds in window object Window type attribute, system screen locking window type corresponding window type attribute, the corresponding window of drop-down informing window type Mouth type attribute etc..
When independent screen locking service binding is to screen locking service broker it is achieved that initialization to independent screen locking service, and open Begin run independent screen locking service, when independent screen locking service operation to carry out the program showing independent screen locking window when, window management Device detects all types of windows corresponding window type attribute in window object, to detect the corresponding window of independent screen locking window Type.
Wherein, it should be noted that, when running independent screen locking service, the window type attribute master that window manager detects There is other window types corresponding window type attribute such as drop-down informing window type, independent screen locking window type, but not The corresponding window type attribute of system screen locking window type can be detected, because system screen locking services and not actuated.
Step 153, judges whether the corresponding window type of window type attribute detecting is independent screen locking window type, If so, execution step 155, if it is not, then execution step 151, continue detection window type attribute in window object.
Because window type attribute is for identification window type, therefore, according to the window type attribute detecting, you can Judge whether the corresponding window type of window type attribute detecting is independent screen locking window type.For example, if detecting Window type attribute be A, and A corresponding be independent screen locking window type, then can judge that the window type that detects belongs to The corresponding window type of property is independent screen locking window type.
Step 155, obtains the independent screen locking window object being pre-configured with.
The independent screen locking window type judged according to step 153, obtains corresponding independent screen locking window object.Wherein, Independent screen locking window object includes the parameters such as the size of independent screen locking window, color, pattern.
Step 157, generates independent screen locking window according to independent screen locking window object.
Step 159, shows independent screen locking window in terminal device.
In the present embodiment, by obtaining and showing independent screen locking window, screen lock can be made to have feature richness, interface Function attractive in appearance.
In one embodiment, as shown in figure 4, step 159 includes:
Step 1591, according to the corresponding window type attribute of independent screen locking window type, the window to independent screen locking window Categorical variable carries out assignment.
Window type variable is the weighted value for storing the window of a certain type in all window types.For example, solely The corresponding window type variable of vertical screen locking window is for storing independent screen locking window type weighted value in all window types; System screen locking window corresponding window type variable be for storage system screen locking window type in all window types weight Value.
Window type variable is carried out with assignment is window manager according to the corresponding window type of independent screen locking window type Attribute carries out assignment, and for example, the corresponding window type of independent screen locking window is independent screen locking window type, according to independent screen locking Window type corresponding window type attribute, window manager is assigned for the corresponding window type variable of independent screen locking window Value, for example, be entered as 15, between system screen locking window type (value of window type variable is 14) and drop-down informing window class Between type (value of window type variable is 16).
Step 1593, obtains the DISPLAY ORDER of independent screen locking window according to the assignment of window type variable.
The assignment of window type variable is used for representing weight in all window types for the window of a certain type, is carrying out During window display, according to the size of weight, determine the DISPLAY ORDER of the window of the type.For example, the window of independent screen locking window Categorical variable be entered as 15, the amplitude of drop-down informing window is the value of window type variable is 16, independent screen locking window Before weight comes drop-down informing window, therefore, the DISPLAY ORDER of independent screen locking window is also before drop-down informing window.
In addition although all assignment has been carried out to each window type, but when running screen locking service, do not need all of window Mouth type all shows.For example, when running independent screen locking service, system screen locking window does not show, the display of independent screen locking window Before order is located at drop-down informing window.
Step 1595, according to the DISPLAY ORDER of independent screen locking window, shows independent screen locking window in terminal device.
By step 1591 and step 1595, it is possible to achieve the orderly display of independent screen locking window.
In one embodiment, after step 155, said method also includes:
The independent screen locking window object obtaining is preserved to Window state variable.
Window state variable is the local variable adding in window manager, for preserving independent screen locking window object. Independent screen locking window object is enable to be assigned to certain memory space, so that when generating independent screen locking window again, can Directly invoke in Window state variable from window manager.Additionally, independent screen locking window is directly invoked by window manager Mouthful object, can respond the calling of system of terminal device, without as the application program screen locking that third party develops it is impossible to The calling of response system.
In one embodiment, as shown in figure 5, the independent screen locking window object obtaining is being preserved to Window state variable In after, said method also includes:
Step 210, determines whether that the correlation window of described application program is shown in solely by application program to system request On vertical screen locking window, if so, then execution step 230, if it is not, then repeat step 210.
In independent screen locking service operation, system by window manager learn application program whether to system request by institute The correlation window stating application program is shown on independent screen locking window.For example, when social networking application program to system request by its When receiving the reply window of fresh information and being shown on independent screen locking window, window manager responds this request, that is, judging should The correlation window of this application program is shown on independent screen locking window in Request System with program.
Step 230, the independent screen locking window object according to being saved in described Window state variable regenerates independent lock Screen window.
The corresponding window type variable of independent screen locking window type is attached with independent screen locking window object, by changing window The assignment of mouth categorical variable can change the window display sequence of independent screen locking window.
After DISPLAY ORDER changes, the independent screen locking window object according to being saved in Window state variable regenerates independence Screen locking window.
Step 250, the independent screen locking window regenerating is shown under the correlation window of application program.
In the present embodiment, by window manager determine whether application program to system request by the phase of application program Close window to be shown on independent screen locking window, and by the independent screen locking window object being stored in Window state variable The independent screen locking window regenerating is shown, that is, pass through to the independent screen locking window object being stored in Window state variable Carry out specific aim process, for example, state change is carried out to independent screen locking window object, to add on independent screen locking window object Being modified etc. of window type variable is processed so that independent screen locking service can timely respond to calling of system, and then makes Independent screen locking service can as system screen locking, application call system reserve control independent screen locking interface when, Can be controlled by system.
In one embodiment, as shown in fig. 6, after step 150, said method also includes:
Step 310, when receiving when carrying out the instruction that independent screen locking Window state changes of system trigger, responds this and refers to Order, and notify this independent screen locking service to carry out the change of independent screen locking Window state.
Independent screen locking service is by the screen locking service broker binding in window manager, and system screen locking service is also Bound by screen locking service broker, therefore, independent screen locking service has and system screen locking identical interface, takes this, system energy Enough independent screen locking service is controlled by window manager.
System can notify independent screen locking service to carry out independent screen locking Window state change by window manager, for example, will lock Screen state is changed to released state, or the independent screen locking window of display is hidden.
Step 330, independent screen locking service, according to the notice that independent screen locking Window state is changed, executes independent screen locking window The change of state.
Independent screen locking service can carry out independent screen locking Window state with demand system by window manager and change.
In one embodiment, as shown in fig. 7, the screen lock device of the present invention, including calling module 410, read mould Block 420, acquisition module 430, binding module 440 and operation module 450, wherein:
Calling module 410 is used in the system boot process of terminal device, calls screen locking service broker;
Read module 420 is used for reading configuration information, and described configuration information includes joining corresponding to independent screen locking service Confidence ceases;
Acquisition module 430 is used for the configuration information corresponding screen locking service obtaining with reading;
Binding module 440 is used for the screen locking service binding obtaining to described screen locking service broker;
Run module 450 to be used for running the screen locking service of described screen locking service broker binding, with described terminal device Complete the display of screen locking window.
In one embodiment, the configuration information corresponding to system screen locking service, such as Fig. 8 are also included in described configuration information Shown, described read module 420 includes Configuration Values acquiring unit 421, judging unit 423, the first reading unit 425 and the second reading Take unit 427, wherein:
Configuration Values acquiring unit 421 is used for obtaining chosen Configuration Values;
Judging unit 423 is used for judging whether described Configuration Values are more than predetermined threshold value, if so, then runs the first reading unit 425, and run the second reading unit 427 in a case of no;
First reading unit 425 is used for reading the configuration information corresponding to independent screen locking service;
Second reading unit 427 is used for reading the configuration information corresponding to system screen locking service.
In another embodiment, as shown in figure 9, when described Configuration Values be more than predetermined threshold value when, described operation module bag Include detector unit 451, type judging unit 453, acquiring unit 455, signal generating unit 457 and display unit 459, wherein:
Detector unit 451 is used for detection window type attribute in window object;
Type judging unit 453 is used for judging whether the corresponding window type of window type attribute detecting is independent lock Screen window type, and run acquiring unit 455 in a case of yes;
Acquiring unit 455 is used for obtaining the independent screen locking window object being pre-configured with;
Signal generating unit 457 is used for generating independent screen locking window according to described independent screen locking window object,
Display unit 459 is used for carrying out the display of independent screen locking window in described terminal device.
In one embodiment, as shown in Figure 10, display unit 459 includes assignment subelement 4591, DISPLAY ORDER obtains Subelement 4593 and independent screen locking window display subelement 4595, wherein:
Assignment subelement 4591 is used for according to the corresponding window type attribute of described independent screen locking window type, to described solely The corresponding window type variable of vertical screen locking window carries out assignment;
DISPLAY ORDER obtains subelement 4593 for obtaining described independent screen locking according to the assignment of described window type variable The DISPLAY ORDER of window;
Independent screen locking window shows that subelement 4595 is used for the DISPLAY ORDER according to described independent screen locking window, at described end Described independent screen locking window is shown in end equipment.
In one embodiment, said apparatus also include independent screen locking window object preserving module, for only by obtain Vertical screen locking window object preserves to Window state variable
In one embodiment, as shown in figure 11, said apparatus also include, and judge module 510, window regenerate module 530 and independent screen locking window display module 550, wherein:
Judge module 510 is used for determining whether that the correlation window of described application program is shown by application program to system request Show on independent screen locking window, and human window regenerates module 530 in a case of yes;
Window regenerates module 530 for according to the independent screen locking window object that is saved in described Window state variable Regenerate independent screen locking window;
Independent screen locking window display module 550, for being shown in described application journey by the independent screen locking window regenerating Under the correlation window of sequence.
In one embodiment, as shown in figure 12, said apparatus also include notification module 610 and independent screen locking Window state Change module 630, wherein:
Notification module 610, for when receiving when carrying out the instruction that independent screen locking Window state changes of system trigger, ringing Answer described instruction, and notify described independent screen locking service to carry out the change of independent screen locking Window state;
Independent screen locking Window state changes module 630, services according to independent screen locking window-like for described independent screen locking The notice that state changes, executes the change of described independent screen locking Window state.
In one embodiment, the present invention separately provides a kind of terminal device, including the screen described in any of the above-described embodiment Screen locking device.
Figure 13 is a kind of block diagram of terminal device 100 provided in an embodiment of the present invention.Terminal device 100 can be such as intelligence Can mobile phone, panel computer etc..The all or part of step of the arbitrary shown screen lock method of above-mentioned Fig. 1 to Fig. 6 is by terminal Equipment 100 executes, and in above-mentioned Fig. 7 to Figure 12, arbitrary shown device is included in this terminal device 100.
Terminal device 100 can include following one or more assemblies:Process assembly 101, memory 102, power supply module 103, multimedia groupware 104, audio-frequency assembly 105 and communication component 106.
The integrated operation of the usual control terminal equipment 100 of process assembly 101, such as with display, speech play, data communication And record operates associated operation etc..Process assembly 101 can include one or more processors 1011 and carry out execute instruction, To complete all or part of step of the categorizing songs method of the present invention.Additionally, process assembly 101 can include one or more Module, is easy to the interaction between process assembly 101 and other assemblies.For example, process assembly 101 can include multi-media module, To facilitate the interaction between multimedia groupware 104 and process assembly 101.
Memory 102 is configured to store various types of data to support the operation in terminal device 100.These data Example include on terminal device 100 operation any application programs or method instruction.Memory 102 is permissible Realized by any kind of volatibility or non-volatile memory device or combinations thereof, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable Read-only storage (PROM), read-only storage (ROM), magnetic memory, flash memory, disk or CD.In memory 102 also Be stored with one or more modules, and this one or more module is configured to be executed by this one or more processors 1101, with Complete all or part of step of the arbitrary shown screen lock method of above-mentioned Fig. 1 to Fig. 5.
Power supply module 103 provides electric power for the various assemblies of terminal device 100.Power supply module 103 can include power supply pipe Reason system, one or more power supplys, and other generate, manage and distribute, with for terminal device 100, the assembly that electric power is associated.
Multimedia groupware 104 includes the screen of one output interface of offer between terminal device 100 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sensing touch or sliding action Border, but also detection and described touch or slide related duration and pressure.
Audio-frequency assembly 105 is configured to output and/or input audio signal.For example, audio-frequency assembly 105 includes a Mike Wind (MIC), microphone is configured to receive external audio signal.The audio signal being received can be further stored in storage Device 102 or send via communication component 106.In certain embodiments, audio-frequency assembly 105 also includes a loudspeaker, for defeated Go out the audio signals such as phone sound.
Communication component 106 is configured to facilitate the communication of wired or wireless way between terminal device 100 and other equipment. Terminal device 100 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Show at one In example property embodiment, communication component 106 receives broadcast singal or the broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, described communication component 106 also includes near-field communication (NFC) module, short to promote Cheng Tongxin.For example, RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, terminal device 100 can be by one or more application-specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing said method.
It is described above and precision architecture illustrated in the accompanying drawings it should be appreciated that the invention is not limited in, and And various modifications and changes can executed without departing from the scope.The scope of the present invention only to be limited by appended claim.

Claims (13)

1. a kind of screen lock method is it is characterised in that include:
In the system boot process of terminal device, call screen locking service broker;
Read configuration information, described configuration information includes the configuration information corresponding to independent screen locking service;
The configuration information corresponding screen locking service obtaining and reading;
By the screen locking service binding obtaining to described screen locking service broker;
Run the screen locking service of described screen locking service broker binding, to complete the display of screen locking window in described terminal device.
2. method according to claim 1 is it is characterised in that also include in described configuration information taking corresponding to system screen locking The configuration information of business;
The described step reading configuration information includes:
Obtain chosen Configuration Values;
Judge whether described Configuration Values are more than predetermined threshold value;
If so, then read the configuration information corresponding to independent screen locking service;
If it is not, then reading the configuration information corresponding to system screen locking service.
3. method according to claim 2 it is characterised in that when described Configuration Values be more than predetermined threshold value when, described operation The screen locking service of described screen locking service broker binding, to complete the display of screen locking window in described terminal device, including:
Detection window type attribute in window object;
Judge whether the corresponding window type of window type attribute detecting is independent screen locking window type;
If so, obtain the independent screen locking window object being pre-configured with;
Independent screen locking window is generated according to described independent screen locking window object;
Described independent screen locking window is shown in described terminal device.
4. method according to claim 3 is it is characterised in that described show described independent screen locking in described terminal device Window, including:
According to the corresponding window type attribute of described independent screen locking window type, the window type of described independent screen locking window is become Amount carries out assignment;
Obtain the DISPLAY ORDER of described independent screen locking window according to the assignment of described window type variable;
According to the DISPLAY ORDER of described independent screen locking window, described terminal device shows described independent screen locking window.
5. method according to claim 3 is it is characterised in that methods described also includes:
The independent screen locking window object obtaining is preserved to Window state variable.
6. method according to claim 5 is it is characterised in that described preserve the independent screen locking window object obtaining to window After step in mouth state variable, methods described also includes:
Determine whether application program to system request by the correlation window of described application program be shown in independent screen locking window it On;
If so, independent screen locking window is regenerated according to the independent screen locking window object being saved in described Window state variable;
The independent screen locking window regenerating is shown under the correlation window of described application program.
7. a kind of screen lock device is it is characterised in that include:
Calling module, for, in the system boot process of terminal device, calling screen locking service broker;
Read module, for reading configuration information, described configuration information includes the configuration information corresponding to independent screen locking service;
Acquisition module, for the configuration information corresponding screen locking service obtaining with read;
Binding module, for the screen locking service binding extremely described screen locking service broker that will obtain;
Run module, for running the screen locking service of described screen locking service broker binding, to complete to lock in described terminal device The display of screen window.
8. device according to claim 7 is it is characterised in that also include in described configuration information taking corresponding to system screen locking The configuration information of business;
Described read module includes Configuration Values acquiring unit, judging unit, the first reading unit and the second reading unit, wherein:
Described Configuration Values acquiring unit is used for obtaining chosen Configuration Values;
Described judging unit is used for judging whether described Configuration Values are more than predetermined threshold value, if so, then runs described first and reads list Unit, and run described second reading unit in a case of no;
Described first reading unit is used for reading the configuration information corresponding to independent screen locking service;
Described second reading unit is used for reading the configuration information corresponding to system screen locking service.
9. device according to claim 8 it is characterised in that when described Configuration Values be more than predetermined threshold value when, described operation Module includes detector unit, type judging unit, acquiring unit, signal generating unit and display unit, wherein:
Described detector unit is used for detection window type attribute in window object;
Described type judging unit is used for judging whether the corresponding window type of window type attribute detecting is independent screen locking Window type, and run described acquiring unit in a case of yes;
Described acquiring unit is used for obtaining the independent screen locking window object being pre-configured with;
Described signal generating unit is used for generating independent screen locking window according to described independent screen locking window object;
Described display unit is used for showing described independent screen locking window in described terminal device.
10. device according to claim 9 is it is characterised in that described display unit includes:
Assignment subelement, for according to the corresponding window type attribute of described independent screen locking window type, to described independent screen locking The window type variable of window carries out assignment;
DISPLAY ORDER obtains subelement, for obtaining the aobvious of described independent screen locking window according to the assignment of described window type variable Show order;
Independent screen locking window shows subelement, for the DISPLAY ORDER according to described independent screen locking window, in described terminal device The described independent screen locking window of middle display.
11. devices according to claim 9 are it is characterised in that described device also includes:
Independent screen locking window object preserving module, for preserving the independent screen locking window object obtaining to Window state variable In.
12. devices according to claim 11 are it is characterised in that described device also includes judge module, window is given birth to again Become module and independent screen locking window display module, wherein:
Described judge module is used for determining whether that the correlation window of described application program is shown by application program to system request On independent screen locking window, and run described window in a case of yes and regenerate module;
Described window regenerates module for according to the independent screen locking window object weight that is saved in described Window state variable Newly-generated independent screen locking window;
Described independent screen locking window display module is used for for the independent screen locking window regenerating being shown in described application program Under correlation window.
A kind of 13. terminal devices are it is characterised in that include the screen lock device described in any one of claim 7 to 12.
CN201610943968.7A 2016-11-02 2016-11-02 Screen locking method and device, and terminal equipment Pending CN106383637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610943968.7A CN106383637A (en) 2016-11-02 2016-11-02 Screen locking method and device, and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610943968.7A CN106383637A (en) 2016-11-02 2016-11-02 Screen locking method and device, and terminal equipment

Publications (1)

Publication Number Publication Date
CN106383637A true CN106383637A (en) 2017-02-08

Family

ID=57957132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610943968.7A Pending CN106383637A (en) 2016-11-02 2016-11-02 Screen locking method and device, and terminal equipment

Country Status (1)

Country Link
CN (1) CN106383637A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933576A (en) * 2017-02-28 2017-07-07 广东欧珀移动通信有限公司 A kind of terminal unlock method, device and computer equipment
CN107402688A (en) * 2017-06-14 2017-11-28 努比亚技术有限公司 A kind of screen locking control method, terminal and computer-readable recording medium
CN109002340A (en) * 2018-07-12 2018-12-14 维沃移动通信有限公司 A kind of screen locking method and electronic equipment
CN109101289B (en) * 2018-06-21 2021-09-10 海信视像科技股份有限公司 Data processing method and device for terminal equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959349A (en) * 2005-10-31 2007-05-09 株式会社电装 Displaying device
EP2148497A1 (en) * 2008-07-23 2010-01-27 Lg Electronics Inc. Mobile terminal and event control method thereof
CN103118179A (en) * 2013-01-17 2013-05-22 深圳凯虹移动通信有限公司 Weather forecast method and system based on mobile terminal equipment
CN103500101A (en) * 2013-10-14 2014-01-08 北京奇虎科技有限公司 Method and device for locking screen and terminal
CN103530178A (en) * 2013-09-24 2014-01-22 广东欧珀移动通信有限公司 Screen locking method and device of Android system intelligent device
CN105117138A (en) * 2015-09-28 2015-12-02 北京金山安全软件有限公司 Method and device for shielding screen locking of operating system and mobile terminal
US20150371034A1 (en) * 2014-06-23 2015-12-24 Google Inc. Trust Agents

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959349A (en) * 2005-10-31 2007-05-09 株式会社电装 Displaying device
EP2148497A1 (en) * 2008-07-23 2010-01-27 Lg Electronics Inc. Mobile terminal and event control method thereof
CN103118179A (en) * 2013-01-17 2013-05-22 深圳凯虹移动通信有限公司 Weather forecast method and system based on mobile terminal equipment
CN103530178A (en) * 2013-09-24 2014-01-22 广东欧珀移动通信有限公司 Screen locking method and device of Android system intelligent device
CN103500101A (en) * 2013-10-14 2014-01-08 北京奇虎科技有限公司 Method and device for locking screen and terminal
US20150371034A1 (en) * 2014-06-23 2015-12-24 Google Inc. Trust Agents
CN105117138A (en) * 2015-09-28 2015-12-02 北京金山安全软件有限公司 Method and device for shielding screen locking of operating system and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
465453112: "https://www.docin.com/p-1151822873.html", 《豆丁》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933576A (en) * 2017-02-28 2017-07-07 广东欧珀移动通信有限公司 A kind of terminal unlock method, device and computer equipment
CN107402688A (en) * 2017-06-14 2017-11-28 努比亚技术有限公司 A kind of screen locking control method, terminal and computer-readable recording medium
CN109101289B (en) * 2018-06-21 2021-09-10 海信视像科技股份有限公司 Data processing method and device for terminal equipment
CN109002340A (en) * 2018-07-12 2018-12-14 维沃移动通信有限公司 A kind of screen locking method and electronic equipment
CN109002340B (en) * 2018-07-12 2021-05-28 维沃移动通信有限公司 Screen locking method and electronic equipment

Similar Documents

Publication Publication Date Title
CN104484200B (en) The method and device upgraded to firmware
CN110276177B (en) Login method of intelligent terminal and electronic equipment
US8494486B2 (en) System and method for securely managing data stored on mobile devices, such as enterprise mobility data
WO2021147948A1 (en) Control display method and electronic device
CN106383637A (en) Screen locking method and device, and terminal equipment
CN104067525B (en) The method unlocked in each stage in the terminal and mobile terminal thereof
CN104020990B (en) Date selects control display methods and device
CN108614689A (en) Generation method, device and the terminal device of scene service
CN106775298A (en) The processing method and processing device of sectional drawing
CN107948231A (en) Service providing method, system and operating system based on scene
CN106484547A (en) A kind of management method, device and terminal for opening application more
CN106528735A (en) Method and device for controlling browser to play media resources
CN109271211A (en) Method, apparatus of attending to anything else, equipment and the medium of application program
CN104714826B (en) Using the loading method and device of theme
CN106462835A (en) Calendar event creation method and device
CN107463372A (en) The method for updating pages and device of a kind of data-driven
CN106537288A (en) Application autostart control method and device
CN113836540A (en) Method, apparatus, storage medium, and program product for managing application rights
CN104765646B (en) Component call method and device
CN106445670B (en) A kind of data managing method, device and mobile terminal for opening application more
CN107506496A (en) Scrap cleaning method, device and computer-readable recording medium
CN105512050B (en) EMS memory management process and device
CN107948393A (en) Application operating method, apparatus, terminal device and operating system based on scene
CN107436782A (en) Application program silence installation method and device
CN116048648B (en) Application preloading method, application starting method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170208

RJ01 Rejection of invention patent application after publication