Disclosure of Invention
The invention mainly aims to solve the technical problem that the awakening process of an application program is complicated when the lock screen interface is awakened.
The invention provides a method for awakening an application for unlocking a lock screen, which comprises the following steps:
receiving a screen locking and unlocking instruction, and activating a preset awakening screening algorithm according to the screen locking and unlocking instruction;
according to the awakening screening algorithm, analyzing and screening the use frequency and use time of the application program to obtain a primary screening application set;
according to a preset resource analysis algorithm, performing resource use analysis processing on the application programs in the preliminary screening application set, marking the application program with the least resource use in the preliminary screening application set as a low-resource application program, and transferring the unmarked application programs in the preliminary screening application set into a new set to generate a background running application set;
and awakening the low-resource application program, and operating the application programs in the background operation application set in the background so as to facilitate interface jump switching.
Optionally, in a first implementation manner of the first aspect of the present invention, the analyzing, screening, and processing the use frequency and the use time of the application program according to the wakeup screening algorithm to obtain a preliminary screening application set includes:
acquiring an unlocking moment corresponding to the screen locking and unlocking instruction;
according to a preset time interval division table, matching a time interval corresponding to the unlocking time;
counting the use times of all the application programs based on the time interval and the preset date range to generate the use times corresponding to all the application programs;
and grabbing the N application programs with the largest use times to generate a preliminary screening application set, wherein N is a positive integer.
Optionally, in a second implementation manner of the first aspect of the present invention, the capturing N application programs with the largest number of times of use, and generating a preliminary screening application set includes:
inquiring N application programs with the maximum use times;
screening M application programs with the use times larger than a preset time threshold value corresponding to the N application programs, wherein M is a positive integer smaller than N;
and generating a preliminary screening application set based on the M application programs.
Optionally, in a third implementation manner of the first aspect of the present invention, the performing, according to a preset resource analysis algorithm, resource usage analysis processing on the application programs in the preliminary screening application set, and marking the application program with the least resource usage in the preliminary screening application set as a low-resource application program includes:
analyzing the electric quantity consumption value corresponding to the application program in the primary screening application set;
and based on the size of the electric quantity consumption value, marking the application program corresponding to the minimum electric quantity consumption value as a low-resource application program.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the performing, according to a preset resource analysis algorithm, resource usage analysis processing on the application programs in the preliminary screening application set, and marking the application program with the least resource usage in the preliminary screening application set as a low-resource application program further includes:
analyzing the average historical memory occupation value of the application programs in the primary screening application set;
judging whether the average occupancy value of the historical memory is larger than a preset occupancy threshold value or not;
if so, moving out the application program corresponding to the average historical memory occupation value in the primary screening application set to generate a new primary screening application set;
and according to the average occupancy value of the historical memory, marking the application program corresponding to the minimum average occupancy value of the historical memory as a low-resource application program.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after waking up the low-resource application and running the application programs in the background running application set, the method further includes:
opening a split screen interface on the virtual interface of the low-resource application program;
and displaying the icon of the application program in the background running application set on the split-screen interface.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the activating a preset wakeup screening algorithm according to the lock screen unlock instruction includes:
sending information to inquire whether to start an application awakening process or not according to the screen locking and unlocking instruction;
and receiving a starting confirmation instruction, and activating a preset awakening screening algorithm.
The second aspect of the present invention provides an application wake-up apparatus for locking and unlocking a screen, including:
the activation module is used for receiving a screen locking and unlocking instruction and activating a preset awakening screening algorithm according to the screen locking and unlocking instruction;
the screening module is used for analyzing and screening the use frequency and the use time of the application program according to the awakening screening algorithm to obtain a primary screening application set;
the mark generation module is used for performing resource use analysis processing on the application programs in the preliminary screening application set according to a preset resource analysis algorithm, marking the application program with the least resource use in the preliminary screening application set as a low-resource application program, and moving the unmarked application programs in the preliminary screening application set into a new set to generate a background running application set;
and the awakening module is used for awakening the low-resource application program and operating the application programs in the background operation application set in the background so as to facilitate interface jump switching.
A third aspect of the present invention provides an application wake-up device for unlocking a lock screen, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor calls the instruction in the memory to enable the application awakening device unlocked by the lock screen to execute the application awakening method unlocked by the lock screen.
A fourth aspect of the present invention provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the above-mentioned lock screen unlocking application wakeup method.
In the embodiment of the invention, the application program opening awakening times in the preset time range are counted, the resource and electric quantity use analysis is carried out, the application programs with higher opening frequency are subjected to priority setting sequencing, and the application programs with the priorities are awakened, so that the effect of convenient opening of the application programs during unlocking is realized, and the interference of redundant application programs on convenient operation is avoided.
Detailed Description
The embodiment of the invention provides a method, a device, equipment and a storage medium for awakening an application for locking and unlocking a screen.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of an application wake-up method for unlocking a lock screen in the embodiment of the present invention includes:
101. receiving a screen locking and unlocking instruction, and activating a preset awakening screening algorithm according to the screen locking and unlocking instruction;
in this embodiment, the screen locking and unlocking instruction may be a series of data such as face recognition unlocking, fingerprint unlocking, sliding gesture, and the like, and triggers a screen locking and unlocking process of the terminal device, and awakens the whole interface based on the unlocking process. In the awakening process, the desktop interface or the application program interface is not directly accessed, but the whole interface is analyzed to perform calculation analysis in the screening process.
Preferably, the step 101 may perform the following steps:
1011. sending information to inquire whether to start an application awakening process or not according to a screen locking and unlocking instruction;
1012. and receiving a starting confirmation instruction, and activating a preset awakening screening algorithm.
In steps 1011 and 1012, in the unlocking process, an inquiry information box is popped up to inquire the user whether to enter the screening application program, that is, the screening algorithm needs to be activated to screen the application program, and when the user determines that the screening needs to be performed, the awakening screening algorithm is activated according to the instruction of the user.
102. According to the awakening screening algorithm, analyzing and screening the use frequency and use time of the application program to obtain a primary screening application set;
in this embodiment, the screening is mainly based on the number of times of program usage by the user in a predetermined time, for example, in the case of a new device, the number of times of opening the same software in the same time period every day is calculated by taking every 1 hour or 2 hours as a calculation dimension in a week or a month. For example, in 30 days, if the user opens app a in a time period of 11-12 points in 29 days, 29/30>0.9, it can be determined that the probability that the user opens app a in the time period is greater than 90%, and software with the probability of opening other software exceeding 1% is also calculated to be opened. For example, a certain user unlocks a mobile phone at 11 am and often opens APP a first time, and unlocks a mobile phone at 9 pm and often opens APP B first time for a trip. Then, in the time period of 10:30-11:30 in the morning, the APP No. A is automatically called up after the mobile phone is unlocked; and in the time period of 8:30-9:30 at night, the mobile phone is unlocked, and then the number B trip APP is automatically called.
Further, step 102 may further execute step 1021, obtaining an unlocking time corresponding to the screen locking and unlocking instruction;
1022. dividing the table according to a preset time interval, and matching a time interval corresponding to the unlocking time;
1023. counting the use times of all the application programs based on the time interval and the preset date range to generate the use times corresponding to all the application programs;
1024. and grabbing the N application programs with the largest use times to generate a preliminary screening application set, wherein N is a positive integer.
In 1021-: 00-12: 00, at 11: 00 and 12: the number of times all applications were opened within one month between time 00 was counted, for example, opening No. a 80 times, opening No. B20 times, opening No. C12 times, opening No. F1 times, and opening No. E23 times. And if 3 capture analysis applications are designed, A, B, E programs will be captured, and if 4 capture analysis applications are set, A, B, C, E programs will be captured, and a preliminary screening application set is generated.
Preferably, the following scheme may be performed in step 1024:
10241. inquiring N application programs with the maximum use times;
10242. screening M application programs with the use times larger than a preset time threshold value corresponding to the N application programs, wherein M is a positive integer smaller than N;
10243. based on the M application programs, a preliminary screening application set is generated.
In the 10241-10243 step, the query results in that: 00 and 12: and counting the opening times of all applications within one month between the time points 00, wherein the number A is opened for 80 times, the number B is opened for 20 times, the number C is opened for 12 times, the number F is opened for 1 time, the number E is opened for 23 times, the 5 application programs are set to be grabbed, the application programs with too low frequency are filtered, the threshold value of the times is set to be 15, the number C and the number F need to be filtered, the A, B, E programs are left, and a preliminary screening application set { A, B, E } is generated.
103. According to a preset resource analysis algorithm, performing resource use analysis processing on the application programs in the primary screening application set, marking the application program with the least resource use in the primary screening application set as a low-resource application program, and transferring the unmarked application programs in the primary screening application set into a new set to generate a background running application set;
in this embodiment, the resource analysis bases may be traffic usage, power consumption, memory occupancy, and the like of the application programs, the average usage in 20 days is used as a screening base, and the screening base is sorted from small to large, the minimum program is marked, for example, the average power consumption of the E program in { A, B, E } is minimum, the E program is marked as a low-resource application program, and a { A, B } application set running in the background is generated.
Preferably, in step 103, "performing resource usage analysis processing on the application programs in the preliminary screening application set according to a preset resource analysis algorithm, and marking the application program with the least resource usage in the preliminary screening application set as a low-resource application program" may perform the following steps:
1031. analyzing the electric quantity consumption value corresponding to the application program in the primary screening application set;
1032. and based on the size of the power consumption value, marking the application program corresponding to the minimum power consumption value as a low-resource application program.
In steps 1031 and 1032, in the application set { a, B, C, D, E, F } which is preliminarily screened, the percentage of power consumption of A, B, C, D, E, F programs is analyzed to be 17%, 21%, 3%, 7%, 8%, and 6%, it is determined that the program C is a low-resource application program, and a process of marking the low-resource application program according to the power size is realized.
Preferably, in step 103, "performing resource usage analysis processing on the application programs in the preliminary screening application set according to a preset resource analysis algorithm, and marking the application program with the least resource usage in the preliminary screening application set as a low-resource application program" may further perform the following steps:
1033. analyzing the average historical memory occupation value of the application programs in the primary screening application set;
1034. judging whether the average occupancy value of the historical memory is larger than a preset occupancy threshold value or not;
1035. if so, moving out the application program corresponding to the average occupancy value of the historical memory in the primary screening application set to generate a new primary screening application set;
1036. and according to the average occupancy value of the historical memory, marking the application program corresponding to the minimum average occupancy value of the historical memory as a low-resource application program.
In the step 1033-1034, the statistical memory occupation size in 15 days is taken as an average basis, the a with the memory occupation larger than 900M in A, B, E is moved out, the average memory occupation amounts of the remaining B and E are both smaller than 900M, the determination is made as { B, E } as a new preliminary screening set, and the E with the minimum memory average value is determined as a low-resource application program, so that the screening basis is realized according to the memory occupation data.
104. And awakening the low-resource application program, and running the application program in the background running application set in the background so as to facilitate interface jump switching.
In this embodiment, the application program with the lowest resource consumption in various applications is activated, and in order to improve the accuracy of convenience, the programs concentrated in the background application program are also run, and only the application program is run in the background without displaying, so that the user can conveniently and accurately switch the applications when the user wakes up for the first time, and the user experience is improved.
Further, after step 104, the following steps may be performed:
1041. opening a split screen interface on a virtual interface of a low-resource application program;
1042. and displaying the icon of the application program in the background running application set on the split-screen interface.
In the steps 1041 and 1042, mainly for convenience of a jump application, an application icon considered to be highly possible is displayed in a split screen by using a split screen technology, it should be noted that this is greatly different from the current split screen application, and the current distribution display application is a user-set application that cannot be switched in real time according to time and practical frequency.
In the embodiment of the invention, the application program opening awakening times in the preset time range are counted, the resource and electric quantity use analysis is carried out, the application programs with higher opening frequency are subjected to priority setting sequencing, and the application programs with the priorities are awakened, so that the effect of convenient opening of the application programs during unlocking is realized, and the interference of redundant application programs on convenient operation is avoided.
The above description of the method for waking up an application for unlocking a lock screen according to an embodiment of the present invention, and the following description of the device for waking up an application for unlocking a lock screen according to an embodiment of the present invention refer to fig. 2, where an embodiment of the device for waking up an application for unlocking a lock screen according to an embodiment of the present invention includes:
the activation module 201 is configured to receive a screen locking and unlocking instruction, and activate a preset wakeup screening algorithm according to the screen locking and unlocking instruction;
the screening module 202 is configured to perform analysis and screening processing on the use frequency and the use time of the application program according to the wakeup screening algorithm to obtain a primary screening application set;
the mark generation module 203 is configured to perform resource usage analysis processing on the application programs in the preliminary screening application set according to a preset resource analysis algorithm, mark an application program with the least resource usage in the preliminary screening application set as a low-resource application program, and move an unmarked application program in the preliminary screening application set into a new set to generate a background running application set;
and the awakening module 204 is configured to awaken the low-resource application program and run the application program in the background running application set in the background, so as to facilitate interface jump switching.
In the embodiment of the invention, the application program opening awakening times in the preset time range are counted, the resource and electric quantity use analysis is carried out, the application programs with higher opening frequency are subjected to priority setting sequencing, and the application programs with the priorities are awakened, so that the effect of convenient opening of the application programs during unlocking is realized, and the interference of redundant application programs on convenient operation is avoided.
Referring to fig. 3, another embodiment of the application wakeup device for unlocking a lock screen according to the embodiment of the present invention includes:
the activation module 201 is configured to receive a screen locking and unlocking instruction, and activate a preset wakeup screening algorithm according to the screen locking and unlocking instruction;
the screening module 202 is configured to perform analysis and screening processing on the use frequency and the use time of the application program according to the wakeup screening algorithm to obtain a primary screening application set;
the mark generation module 203 is configured to perform resource usage analysis processing on the application programs in the preliminary screening application set according to a preset resource analysis algorithm, mark an application program with the least resource usage in the preliminary screening application set as a low-resource application program, and move an unmarked application program in the preliminary screening application set into a new set to generate a background running application set;
and the awakening module 204 is configured to awaken the low-resource application program and run the application program in the background running application set in the background, so as to facilitate interface jump switching.
Wherein the activation module 201 is specifically configured to:
sending information to inquire whether to start an application awakening process or not according to the screen locking and unlocking instruction;
and receiving a starting confirmation instruction, and activating a preset awakening screening algorithm.
Wherein the screening module 202 comprises:
the obtaining unit 2021 is configured to obtain an unlocking time corresponding to the screen locking and unlocking instruction;
the matching unit 2022 is configured to divide a table according to a preset time interval, and match a time interval corresponding to the unlocking time;
the counting unit 2023 is configured to count the number of times of use of all the application programs based on the time interval and the preset date range, and generate the number of times of use corresponding to all the application programs;
the crawling generation unit 2024 is configured to crawl the N application programs that are used the most times, and generate a preliminary screening application set, where N is a positive integer.
The capture generation unit 2024 is specifically configured to:
inquiring N application programs with the maximum use times;
screening M application programs with the use times larger than a preset time threshold value corresponding to the N application programs, wherein M is a positive integer smaller than N;
and generating a preliminary screening application set based on the M application programs.
Wherein the mark generating module 203 is specifically configured to:
analyzing the electric quantity consumption value corresponding to the application program in the primary screening application set;
and based on the size of the electric quantity consumption value, marking the application program corresponding to the minimum electric quantity consumption value as a low-resource application program.
The mark generating module 203 may be further specifically configured to:
analyzing the average historical memory occupation value of the application programs in the primary screening application set;
judging whether the average occupancy value of the historical memory is larger than a preset occupancy threshold value or not;
if so, moving out the application program corresponding to the average historical memory occupation value in the primary screening application set to generate a new primary screening application set;
and according to the average occupancy value of the historical memory, marking the application program corresponding to the minimum average occupancy value of the historical memory as a low-resource application program.
The application awakening device for locking and unlocking the screen further comprises a screen splitting module 205, wherein the screen splitting module 205 is specifically configured to:
opening a split screen interface on the virtual interface of the low-resource application program;
and displaying the icon of the application program in the background running application set on the split-screen interface.
In the embodiment of the invention, the application program opening awakening times in the preset time range are counted, the resource and electric quantity use analysis is carried out, the application programs with higher opening frequency are subjected to priority setting sequencing, and the application programs with the priorities are awakened, so that the effect of convenient opening of the application programs during unlocking is realized, and the interference of redundant application programs on convenient operation is avoided.
Fig. 2 and fig. 3 describe the application wakeup apparatus for unlocking a lock screen in the embodiment of the present invention in detail from the perspective of a modular functional entity, and the application wakeup device for unlocking a lock screen in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 4 is a schematic structural diagram of a lock screen unlocked app wakeup device according to an embodiment of the present invention, where the lock screen unlocked app wakeup device 400 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 410 (e.g., one or more processors) and a memory 420, and one or more storage media 430 (e.g., one or more mass storage devices) storing an application program 433 or data 432. Memory 420 and storage medium 430 may be, among other things, transient or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations in the application wake-up device 400 to unlock the lock screen. Still further, the processor 410 may be configured to communicate with the storage medium 430 to execute a series of instruction operations in the storage medium 430 on the lock screen unlocked app wake device 400.
The lock screen unlock-based application wakeup device 400 may also include one or more power supplies 440, one or more wired or wireless network interfaces 450, one or more input output interfaces 460, and/or one or more operating systems 431, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the lock screen unlocked app wake device configuration shown in fig. 4 does not constitute a limitation to lock screen unlocked app wake devices and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and may also be a volatile computer-readable storage medium, where instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute the steps of the application wake-up method for unlocking the lock screen.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.