WO2019218886A1 - Application pre-loading management method, device, storage medium and smart terminal - Google Patents
Application pre-loading management method, device, storage medium and smart terminal Download PDFInfo
- Publication number
- WO2019218886A1 WO2019218886A1 PCT/CN2019/085669 CN2019085669W WO2019218886A1 WO 2019218886 A1 WO2019218886 A1 WO 2019218886A1 CN 2019085669 W CN2019085669 W CN 2019085669W WO 2019218886 A1 WO2019218886 A1 WO 2019218886A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- current user
- smart terminal
- preloading
- authentication
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the embodiment of the present application relates to an application loading technology, for example, to an application preloading management method, apparatus, storage medium, and intelligent terminal.
- terminals such as smart phones, tablets, notebook computers, and smart home appliances have become indispensable electronic devices in people's daily lives.
- terminal devices As terminal devices continue to be intelligent, most terminal devices are loaded with an operating system, enabling the terminal devices to install a wide variety of applications to meet different user needs.
- the application pre-loading scheme in the related art may trigger the pre-loading function by mistake, thereby loading some applications that cannot be started, and wasting the processing of the smart terminal. Resources and storage resources.
- the embodiment of the present application provides an application preloading management method, device, storage medium, and intelligent terminal, which can avoid false triggering of the preloading function, thereby saving processing resources of the intelligent terminal.
- an embodiment of the present application provides an application preload management method, including:
- the preloading function includes predicting at least one application to be started according to the historical usage record, and preloading the application.
- the embodiment of the present application further provides an application preloading management apparatus, including:
- An operation detecting module configured to detect a delivery operation of the smart terminal
- the user authentication module is configured to acquire identity information of the current user when the delivery operation is detected, and perform authentication processing on the current user according to the identity information;
- the state adjustment module is configured to adjust a state of the preloading function according to the authentication result, wherein the preloading function includes predicting at least one application to be started according to the historical usage record, and preloading the application.
- the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the computer program is executed by the processor, the application preload management method is implemented as described in the embodiment of the present application.
- an embodiment of the present application provides an intelligent terminal, including a memory, a processor, and a computer program stored on the memory and operable by the processor, where the processor executes the computer program to implement the implementation of the present application.
- the application preload management method described in the example.
- FIG. 1 is a schematic flowchart of an application preloading management method according to an embodiment of the present application
- FIG. 2 is a schematic diagram of a relative position relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application
- FIG. 3 is a schematic diagram of a relative positional relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application
- FIG. 4 is a schematic diagram of application interface migration according to an embodiment of the present application.
- FIG. 5 is a schematic flowchart of another application preload management method according to an embodiment of the present disclosure.
- FIG. 6 is a structural block diagram of an application preload management apparatus according to an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of still another intelligent terminal according to an embodiment of the present application.
- FIG. 1 is a schematic flowchart of an application preload management method according to an embodiment of the present disclosure.
- the method may be implemented by an application preload management device, where the device may be implemented by software and/or hardware, and may be integrated into an intelligent terminal. As shown in FIG. 1, the method includes steps 101 to 103.
- step 101 a delivery operation of the smart terminal is detected.
- the smart terminal in the embodiment of the present application may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and a smart home appliance.
- the operating system is preloaded in the smart terminal.
- the delivery operation of the smart terminal may refer to an operation in which the same smart terminal transmits between different users, for example, a certain user transfers the handheld smart terminal to another user.
- the embodiment may use, but is not limited to, the user's holding gesture and the acceleration information of the smart terminal to detect whether there is a delivery operation of the smart terminal.
- the step 101 includes: acquiring a grip gesture of the smart terminal by the user; acquiring acceleration information of the smart terminal; and determining the grip if the acceleration information meets the first preset condition a state change parameter of the gesture; if the state change parameter satisfies the second preset condition, determining that the delivery operation of the smart terminal is detected.
- the acceleration information preset in the smart terminal can be used to acquire the acceleration information of the smart terminal in real time.
- the acceleration information can be used to describe whether the smart terminal has movement and how fast the moving speed changes.
- the acceleration information may include the magnitude and direction of acceleration of the smart terminal movement.
- the first preset condition in this embodiment may refer to a condition for determining whether the acceleration information satisfies the delivery operation.
- the first preset condition may be that the acceleration magnitude of the smart terminal exceeds a preset acceleration threshold.
- the acceleration information of the smart terminal meets the first preset condition, it indicates that the smart terminal may have a transfer operation, and further determining whether there is a transfer operation according to the state change parameter of the user's grip gesture; the acceleration information of the smart terminal If the first preset condition is not met, it indicates that the smart terminal does not have a delivery operation.
- the holding gesture in this embodiment may refer to the finger position and the palm position of the user holding the smart terminal, such as the thumb of the user on one side of the smart terminal and the other four fingers on the other side of the smart terminal. Since each user uses a smart terminal with different habits and preferences, each user's holding gesture is also different. When the smart terminal is transferred from one user to another, it can be detected that the grip gesture of the smart terminal also changes.
- the state information of the holding gesture can be collected by setting a preset number of pressure sensors on the bezel or the back cover of the smart terminal.
- the state change parameter of the grip gesture in this embodiment may include, but is not limited to, a change amount of the grip pressure and a change amount of the grip area.
- the second preset condition may refer to a condition for determining whether the state change parameter of the grip gesture satisfies the transfer operation.
- determining that the delivery operation of the smart terminal is detected includes: acquiring, in a case where the holding manner of the holding gesture is changed, acquiring The amount of change in the grip pressure of the grip gesture is described; in the case where the amount of change exceeds the set pressure threshold, it is determined that the transfer operation of the smart terminal is detected.
- the setting may be configured to detect whether the change amount of the grip pressure of the obtained grip gesture exceeds a preset pressure threshold when the grip mode is changed.
- the change of the holding manner may be a change of the position of the finger when the user holds the hand, or a change of the direction of the screen of the smart terminal, for example, the smart terminal is changed from the vertical screen to the horizontal screen.
- step 102 in the case that the delivery operation is detected, the identity information of the current user is acquired, and the current user is authenticated according to the identity information.
- the current user in this embodiment refers to a user who is currently using the smart terminal after the transfer operation occurs.
- the authentication process may refer to determining whether the current user has the right to use the preload function according to the identity information of the current user.
- step 102 includes: acquiring a facial image of the current user when the transfer operation is detected; determining a facial feature according to the facial image, and matching the facial feature with a pre-stored feature template And determining that the current user passes the authentication if the facial feature is successfully matched with the pre-stored feature template.
- Such a setting can utilize the uniqueness of the current user's facial image to accurately determine whether the current user can pass the authentication.
- Facial features may include, but are not limited to, facial information and iris information.
- a feature template may refer to a facial feature corresponding to a user who uses the preload function permission.
- the feature template may include facial features of one or more different users, which may be pre-set according to the actual situation of the holder of the smart terminal.
- the facial features of the current user may be matched one by one with the facial features in the pre-stored feature templates, and it is determined whether there are facial features in the feature template that are the same as the current user facial features, and the same facial features are present in the feature template.
- the judgment result of the feature determines that the matching is successful.
- step 103 the state of the preloading function is adjusted according to the authentication result, wherein the preloading function includes predicting at least one application to be started according to the historical usage record, and preloading the application.
- the authentication result in this embodiment may include the authentication and the failing authentication, and the state of the preloading function may include an open state and a closed state.
- the state of the preloading function is adjusted to the enabled state; if the authentication result is that the current user fails to pass the authentication, the state of the preloading function is Adjust to the off state.
- the history usage record may refer to an operation record of the user having the authority to use the preload function on the smart terminal, that is, the order in which the application actually opened by the user is recorded, and the corresponding opening time.
- Preloading the application includes, but is not limited to, preloading the application interface, launching ads, and launching animations and other startup resources.
- the preloading function in this embodiment predicts an application to be launched according to the historical usage record of the authorized user, and preloads the startup resource of the application, so if the user without the permission uses the preloading function, the predicted soon is predicted The launched application is inaccurate. Users without permission may not open the predicted application. Therefore, if these applications are preloaded, only the processing resources and storage resources of the smart terminal will be wasted, and the startup cannot be improved. speed.
- the state of the preloading function is adjusted according to the authentication result, and only the preloading function is enabled for the user with the permission, and the startup speed is improved by preloading the application to be started, the user experience is improved, and the user is not provided with the permission.
- the user turns off the preloading function, thereby avoiding preloading some applications that cannot be started, wasting the processing resources and storage resources of the smart terminal.
- the application preloading management method provided in the embodiment of the present application, after detecting that the smart terminal has a delivery operation, performs authentication processing on the current user according to the identity information of the current user, and adjusts the state of the preloading function according to the authentication result.
- the preloading function includes predicting at least one application to be launched based on the historical usage record and preloading the application.
- step 103 may include detecting an application preload event if the current user is authenticated, and determining an application to be preloaded based on the pre-created when the application preload event is triggered. Preloading the active window stack preloading the application interface corresponding to the application, wherein the boundary coordinates corresponding to the preloaded active window stack are outside the coordinate range of the display screen; if the current user fails to pass the authentication, Abandon the operation of detecting an application preload event.
- the preloading function is turned on to detect whether the application preloading event is triggered.
- the triggering condition of the application pre-loading event may be set according to an actual situation, which is not specifically limited in this embodiment.
- the application preload event may be triggered when it is detected that the user's action satisfies a preset action (such as picking up the smart terminal, inputting a screen unlocking operation, or inputting a terminal unlocking operation, etc.); or may detect when the foreground application is changed.
- the system may detect that the application preloading event has been triggered by reading the flag bit or receiving the triggering instruction, and the specific detection manner is not limited in the embodiment of the present application.
- the application of the preload event detection is stopped to turn off the preload function.
- the application to be preloaded can be understood as an application that the user may open soon, or may be a fixed application that is preset, or an application that is predicted in a certain manner.
- the application to be preloaded can refer to an application that currently needs to be preloaded.
- the application to be preloaded may also include one or more. When there are multiple applications to be preloaded, multiple preloaded applications may be preloaded one by one, or two or more preloaded applications may be preloaded at the same time, thereby performing parallel operations. Preloading process.
- a predictive model can be used to predict the preloaded application.
- the prediction model may be a machine learning model, and the algorithms used may include Recurrent neural networks (RNN), Long Short-Term Memory (LSTM) networks, threshold loop units, simple loop units, and automatic coding. , decision tree, random forest, feature mean classification, classification regression tree, hidden Markov, K-Nearest Neighbor (KNN) algorithm, logistic regression model, Bayesian model, Gaussian model, and KL divergence (Kullback) Leibler divergence) and so on.
- RNN Recurrent neural networks
- LSTM Long Short-Term Memory
- KNN K-Nearest Neighbor
- KNN K-Nearest Neighbor
- logistic regression model Bayesian model
- Gaussian model Gaussian model
- KL divergence Kullback
- the training sample may be collected in the process of using the smart terminal by the user, and the preset initial model is trained by using the training sample, and finally obtained for predicting the preloading.
- the predictive model of the application may include a time series or sequence of sequences in which the application is opened; may include the time, location, and frequency of the application being opened; may include the operating state of the terminal, such as a switch of the mobile data network Status, connection status of the wireless hotspot, identity information of the connected wireless hotspot, currently running application, previous foreground application, duration of the current application staying in the background, time when the current application was last switched to the background,
- the plug-in status, charging status, battery power information, and screen display duration of the headphone jack, etc. may also include data collected by sensors integrated in the smart terminal, such as motion sensors, light sensors, temperature sensors, and humidity sensors.
- the appropriate sample elements can be selected according to the selected machine learning model, and the selected machine learning model can be determined according to the selected sample elements, and can also be combined with the requirements for prediction accuracy and preset speed.
- the selection of the model and the sample elements and the like are not limited in the embodiment of the present application.
- determining that the application to be preloaded may include determining an application to be preloaded according to an output result before the prediction model, or including using the prediction model to perform prediction, and using a current output result of the prediction model as a preloading s application.
- the active window can be understood as an independent interface that provides interaction and operation directly to the user, and different nouns may be used to name the interface in different operating systems.
- the following is an example of an Android operating system.
- the active window is called Activity.
- An Activity is a component responsible for interacting with a user, providing a screen (which can be understood as a screen interface rather than a physical display screen) for the user to interact with a task.
- an Activity is usually a separate screen that can display some controls and listen and handle user events.
- Task corresponds to an application
- Task is used to store Activity
- a Task can store one or more Activity, and these activities follow the principle of "advanced, last in, first out”.
- Stack is used to manage the Task. Usually, a Stack manages the Tasks to which each Activity needs to be displayed on a screen.
- a Stack can manage one or more Tasks.
- Stack also follows the basic management principles of the stack.
- the screen described here is not necessarily a completely separate display. Taking "two screens" as an example, these two screens may be just two areas in a complete display that independently display their respective display contents. Of course, if the terminal has two or even more than two independent displays, the "two screens" can also be two separate displays.
- multi-window mode is supported, which can include split screen mode, picture in picture mode, and free mode (FreeForm).
- the Stack on which the application resides can have its own size, which can include the top, bottom, left, and right coordinates in the coordinate system with the top left corner of the terminal screen as the origin.
- (a, b, c, d) generally describes the boundary of a rectangle, which can be represented by the coordinates of the upper left corner of the rectangle and the coordinates of the lower right corner, that is, the coordinates of the upper left corner of the rectangle are (a, b), right.
- the lower corner coordinates are (c, d), and such a rectangular area corresponds to the size of the Stack.
- the in-app layout in the Stack is based on the size of the Stack, which means that the application interface corresponding to the Activity is displayed within the bounds of the size.
- multiple applications can be allowed to be visible, both system and user visible and only system visible. Both the system and the user are visible to display on the display screen, and the user can see; only the system visible means that the operating system is visible, and the user is invisible, may be blocked by the application of the foreground or as implemented in the application. Display off-screen display.
- pre-loading the application interface of the application to be loaded outside the display screen may be implemented based on a multi-window mechanism of the operating system, and the size corresponding to the application is set outside the display screen through the multi-window mechanism, thereby The user is not visible and thus does not affect the display of the foreground application's display content on the display screen.
- the multi-window mode there may be multiple types of stacks, such as the Home Stack indicating the stack displayed by the desktop application, the App Stack indicating the Stack displayed by the third-party application, and other split screen stacks, etc., in the above three stacks.
- the included content can be displayed on the display screen, which is collectively referred to as an application active window stack in the embodiment of the present application.
- a preloaded active window stack (preloaded stack) is added, which is used to represent the stack displayed by the preloaded application, and the boundary coordinates of the preloaded stack are set outside the coordinate range of the display screen, and are to be preloaded.
- the app can be displayed on the stack.
- a new stack dedicated to displaying preloaded applications can be created based on the multi-window mechanism of the Android system.
- the new stack is created because the newly created preloaded stack can have its own size and visibility, so that it is preloaded outside the display screen.
- the creation time of the preloaded stack is not limited, and the preloaded stack is in the resident state by default, that is, the preloaded stack is always present; or the terminal is successfully unlocked when the terminal is powered on or the terminal is successfully unlocked.
- Post-create can also be created after the application preload event is triggered (can be determined before the target application is determined).
- preloading an application interface corresponding to the application based on a pre-created preloaded active window stack includes: creating a target process corresponding to the application; creating a pre-created preloaded active window stack a task stack corresponding to the application; starting an activity window corresponding to the application in the task stack based on the target process; and drawing and displaying an application interface corresponding to the application based on the activated activity window.
- This setting can draw and display the application interface of the application based on the preloaded active window stack outside the screen coordinate range, without interfering with the running and display of the foreground application, ensuring system stability, and effectively improving the application startup. speed.
- the creation process of the target process can also include the initialization process of the target process.
- the preloading of other resources may be involved, such as application service startup, memory allocation, file content reading, and network data acquisition.
- the preloading process of other resources is not limited in this embodiment of the present application.
- the method further includes: transmitting a forged focus notification to the application, and maintaining a continuous drawing and displaying an update of the application interface corresponding to the application for a preset time period based on the forged focus notification, wherein The length of the preset time period includes a play duration for starting an advertisement or starting an animation in the application.
- This setting can complete the drawing and display of the application interface when the application gets the focus and the system is visible, and improves the completion degree of the preload without affecting the focus of the foreground application.
- the focus in the embodiment of the present application is also referred to as an input focus, and the forged focus is independent of the focus corresponding to the foreground application. Generally, for the current Android system, the focus is unique.
- the input operation such as touch is only effective for the focus.
- the system side and the application end are consistent, and once the system side modifies the input focus information, Sending information that the input focus information changes to the application, so as to ensure that the input information of the system end and the application end are consistent.
- the application end can forge the focus.
- the pre-loading application forges the focus notification, so that the pre-loading application has the focus information, and the focus information of the system is still correct, so that the processing can enable the pre-loading application to draw normally and achieve full loading.
- the focus exists on the system side and the application side.
- the system side records the application with the focus, and the application saves the flag (flag) to identify whether it has focus.
- the timing of forging the input focus may be that when the window system of Android adds a window and needs to update the focus, a fake focus notification is generated and sent.
- the method of forging the focus may be a method of calling the client side of the window to change the focus of the window, so that the window acquires the focus.
- the transmission of the forged focus notification may be performed based on the Binder mechanism, which is the most common way of inter-process communication of the Android system, adopting the c/s architecture, that is, the client/service architecture.
- some applications usually play some advertisements or animations during the startup process, and the duration of the advertisement or animation is usually from 3 seconds to ten seconds.
- the advertisement or animation the user may not Any way to do anything, you can only wait for the playback to complete, wasting the user's precious time.
- the setting can enable the startup advertisement or the startup animation to be played out of the screen before the application is started.
- the application can directly enter the main page of the application or other user-operable interface, thereby applying the application.
- the operational time point is further advanced, reducing the waiting time.
- the method further includes: when the running instruction of the target application is received, stacking the preloaded active window
- the application interface corresponding to the target application included in the target is migrated to the display screen for display. This setting can be used when the target application really needs to be started, that is, when the user clicks on the target application, the application interface corresponding to the already-targeted application is directly migrated to the display screen for display, which can achieve fast switching of the application interface and improve startup. speed.
- migrating the application interface corresponding to the target application included in the preloaded active window stack to the display screen for display comprises: including the pre-loaded active window stack
- the task stack corresponding to the target application is migrated to the top of the application active window stack; the size information, the configuration information, and the visibility of the task stack are updated, so that the application interface corresponding to the target application is displayed on the display screen.
- This setting ensures the stability of the interface migration process and ensures that the recovery process does not cause a card screen, a black screen, or a slow migration speed.
- the display mode of the display screen usually includes vertical screen display and horizontal screen display, and many applications use the vertical screen mode for display by default. Some applications use horizontal screen display by default (such as some online games). During the use of smart terminals, some applications also switch between horizontal and vertical display as the user holds the direction of the terminal.
- the boundary coordinates corresponding to the preloaded active window stack are (H, 0, 2H, H)
- the coordinate system corresponding to the boundary coordinates is system coordinates
- the origin of the system coordinates is In the upper left corner of the display screen
- H is the length of the long side of the display area of the display screen.
- FIG. 2 is a schematic diagram of a relative position relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application.
- the display screen is in the vertical screen mode, and the origin of the terminal system coordinates is the left vertex (0, 0) of the display screen 201.
- the width direction of the display screen 201 is the X axis, and the height direction is the Y axis.
- the boundary coordinates of the loaded Stack 202 are (H, 0, 2H, H), H is the screen height, that is, the area within the solid line rectangle on the left side is the main screen display area, and the area within the rectangular area of the right dashed line is the preloaded display area.
- FIG. 3 is a schematic diagram of a relative positional relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application. As shown in FIG. 3, the display screen is in the horizontal screen mode, and the origin of the terminal system coordinates is the left vertex (0, 0) of the display screen 301.
- the height direction of the display screen 301 is the X axis, and the width direction is the Y axis.
- H is the screen height, that is, the area within the solid line rectangle on the left side is the main screen display area, and the area within the rectangular area of the right dashed line is the preloaded display area.
- the horizontal coordinate of the upper left corner is H, which is to prevent the display screen (also called the main screen) from being displayed to the interface of the preloaded application when the horizontal screen is used, because the main screen has the horizontal screen mode and the horizontal screen mode when the main screen is horizontal screen.
- the horizontal coordinate of the upper left corner of the rectangular area corresponding to the preloaded stack is set to the screen height.
- the ordinate of the upper left corner is 0, in order to preload the application to correctly calculate the status bar height.
- the Android application will customize the top status bar. If the corresponding ordinate of the upper side is not equal to 0, the height of the status bar may be wrong.
- the inventor sets the size of the preloaded stack to (H, 0, 2H, H).
- FIG. 4 is a schematic diagram of application interface migration according to an embodiment of the present application.
- an application corresponding to the target application included in the stack of the active window is preloaded.
- the interface 401 is migrated to the display screen 201 for display.
- the task to which the preloaded application interface belongs is migrated to the top of the application active window Stack, and the size information, configuration information, and visibility of the task are updated, thereby applying the interface. Can be displayed normally on the display screen.
- FIG. 5 is a schematic flowchart of another application preload management method according to an embodiment of the present disclosure, where the method includes steps 501 to 508.
- step 501 a delivery operation of the smart terminal is detected.
- step 502 in the case that the delivery operation is detected, the identity information of the current user is acquired, and the current user is authenticated according to the identity information.
- step 503 it is detected whether the current user passes the authentication, and if the current user does not pass the authentication, step 504 is performed; if the current user passes the authentication, step 505 is performed.
- step 504 the operation of detecting an application preload event is discarded.
- step 505 an application preloading event is detected, and when the application preloading event is triggered, an application to be preloaded is determined, and an application interface corresponding to the application is preloaded based on a pre-created preloading active window stack. And step 506 is performed.
- step 506 a forged focus notification is sent to the application, and based on the forged focus notification, the continuous drawing of the application interface corresponding to the application and the display update are maintained for a preset period of time.
- step 507 upon receiving the running instruction of the target application, the task stack corresponding to the target application included in the preloaded active window stack is migrated to the top of the application active window stack.
- moving the task to the App Stack may include: deleting the task from the list in the original stack (ie, preloading the Stack), in the new stack ( Add this task at the top of the App Stack).
- Each stack has a list for recording all the tasks contained in the stack; correspondingly, each task will also record the stack information of the task. Because the stack contains attributes such as size, configuration, visibility, and zorder that may be different from other stacks, simply adding the task to the list of new stacks can change the attributes of the task's zorder. The top of the new stack is added to make the task visible. .
- step 508 the size information, the configuration information, and the visibility of the task stack are updated, so that the current application interface corresponding to the target application is displayed on the display screen.
- the application interface corresponding to the application is in the process of continuous drawing and display updating, and the timing of the target application that the user actually starts is uncertain, and may be in the pre-loading process.
- the application interface currently displayed in the preloaded stack can be migrated to the display screen for display. If the user opens the target application after the preloading is completed, the last application interface when the preloading is completed can be migrated to the display screen for display.
- the size information and the configuration information of the task stack are updated to change the boundary of the application, and may include: actively updating the size and configuration information. Only using the above task migration operation can not change the size and configuration of the task immediately, so you can call the method of modifying the task size and configuration to ensure that the application is in the correct state and can work normally in the foreground.
- the update task is visible because, after updating the size and configuration, the target application may not be visible at this time, calling the method of updating the new stack visibility, and the application visible from the top to the bottom is set to be visible. And update the corresponding window surface to be visible.
- the visible application judging method may include: no occlusion by other applications on the zorder; no occlusion by the lock screen; the state of the top activity of the application is non-initializing or non-exiting.
- the application preloading management method provided by the embodiment of the present application can open the preloading function, determine the application to be preloaded, and based on the preloaded active window stack pair created outside the display screen, when the current user passes the authentication.
- the application interface of the preloaded application needs to be drawn and displayed, and the preparation work before the application is started is completed to a large extent, and the display content of the foreground application is not affected on the display screen, when the target application is When it is really started, the pre-loaded application interface is directly migrated to the display screen for display, thereby effectively improving the startup speed.
- FIG. 6 is a structural block diagram of an application preloading management apparatus according to an embodiment of the present disclosure.
- the apparatus may be implemented by software and/or hardware, and is generally integrated in a terminal, and may be preloaded by executing an application preloading management method. Features are managed.
- the device includes an operation detection module 601, a user authentication module 602, and a state adjustment module 603.
- the operation detecting module 601 is configured to detect a delivery operation of the smart terminal.
- the user authentication module 602 is configured to acquire the identity information of the current user when the delivery operation is detected, and perform an authentication process on the current user according to the identity information.
- the state adjustment module 603 is configured to adjust a state of the preloading function according to the authentication result, wherein the preloading function includes predicting at least one application to be started according to the historical usage record, and preloading the application.
- the application preloading management apparatus performs the authentication operation on the smart terminal, and performs the authentication operation on the current user according to the identity information of the current user, and according to the authentication result, according to the identity information of the current user. Adjusting the state of the preloading function, wherein the preloading function includes predicting at least one application to be launched based on the historical usage record and preloading the application.
- the operation detecting module 601 includes a grip gesture acquiring unit, an acceleration information acquiring unit, a change parameter determining unit, and a transfer operation determining unit.
- the gesture holding unit is configured to acquire a holding gesture of the user to the smart terminal.
- the acceleration information acquiring unit is configured to acquire acceleration information of the smart terminal.
- the change parameter determining unit is configured to determine a state change parameter of the grip gesture in a case where the acceleration information satisfies a first preset condition.
- the delivery operation determining unit is configured to determine that the delivery operation of the smart terminal is detected if the state change parameter satisfies the second preset condition.
- the transfer operation determining unit is configured to: obtain a change amount of the grip pressure of the grip gesture when the grip mode of the grip gesture is changed; In the case of a constant pressure threshold, it is determined that the delivery operation of the smart terminal is detected.
- the user authentication module 602 is configured to: acquire a facial image of the current user when the transfer operation is detected; determine a facial feature according to the facial image, and store the facial feature and pre-stored The feature template is matched; if the face feature is successfully matched with the pre-stored feature template, the current user is determined to pass the authentication.
- the state adjustment module 603 includes a first state adjustment unit and a second state adjustment unit.
- a first state adjusting unit configured to detect an application preloading event when the current user passes the authentication, and determine an application to be preloaded when the application preloading event is triggered, based on the pre-created preloading
- the active window stack preloads an application interface corresponding to the application, wherein the boundary coordinates corresponding to the preloaded active window stack are outside the coordinate range of the display screen.
- the second state adjustment unit is configured to, when the current user fails to pass the authentication, abandon the operation of detecting the application preload event.
- preloading the application interface corresponding to the application based on the pre-created preload active window stack includes: creating a target process corresponding to the application; creating a pre-created active window stack a task stack corresponding to the application; starting an activity window corresponding to the application in the task stack based on the target process; and drawing and displaying an application interface corresponding to the application based on the activated activity window.
- the apparatus further includes: a forged focus module configured to send a forged focus notification to the application, and to maintain the application interface corresponding to the application within a preset time period based on the forged focus notification Continuously drawing and displaying an update, wherein the length of the preset time period includes a play duration for starting an advertisement or starting an animation in the application.
- a forged focus module configured to send a forged focus notification to the application, and to maintain the application interface corresponding to the application within a preset time period based on the forged focus notification Continuously drawing and displaying an update, wherein the length of the preset time period includes a play duration for starting an advertisement or starting an animation in the application.
- the apparatus further includes: an interface migration module, configured to: after preloading the application interface corresponding to the application based on the pre-created preload active window stack, upon receiving the running instruction of the target application, The application interface corresponding to the target application included in the preloaded active window stack is migrated to the display screen for display.
- an interface migration module configured to: after preloading the application interface corresponding to the application based on the pre-created preload active window stack, upon receiving the running instruction of the target application, The application interface corresponding to the target application included in the preloaded active window stack is migrated to the display screen for display.
- migrating the application interface corresponding to the target application included in the preloaded active window stack to the display screen for display comprises: including the pre-loaded active window stack The task stack corresponding to the target application is migrated to the top of the application active window stack; the size information, the configuration information, and the visibility of the task stack are updated, so that the application interface corresponding to the target application is displayed on the display screen.
- the embodiment of the present application further provides a storage medium including computer executable instructions, which are set to execute an application preload management method when executed by a computer processor, the method comprising: detecting a delivery operation of the smart terminal; If the transfer operation is detected, the identity information of the current user is obtained, and the current user is authenticated according to the identity information; and the state of the preload function is adjusted according to the authentication result, where the preload function includes The history usage record predicts at least one application to be launched and preloads the application.
- Storage media any of a variety of types of memory devices or storage devices.
- the term "storage medium” is intended to include: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as a dynamic random access memory ( Dynamic Random Access Memory (DRAM), Double Data Rate Random Access Memory (DDR RAM), Static Random Access Memory (SRAM), Extended Data Output Random Access Memory (Extended Data) Output Random Access Memory (EDO RAM), Rambus RAM, etc.; non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, and the like.
- DRAM Dynamic Random Access Memory
- DDR RAM Double Data Rate Random Access Memory
- SRAM Static Random Access Memory
- EEO RAM Extended Data Output Random Access Memory
- Rambus RAM Rambus RAM
- the storage medium may also include other types of memory or a combination thereof. Additionally, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet. The second computer system can provide program instructions to the first computer for execution.
- the term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network).
- a storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
- the storage medium containing the computer executable instructions provided by the embodiment of the present application the computer executable instructions are not limited to the application preload management operation as described above, and may also perform the application prepayment provided by any embodiment of the present application. Load related operations in the management method.
- FIG. 7 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present disclosure.
- the smart terminal 700 can include a memory 701, a processor 702, and a computer program stored on the memory 701 and executable by the processor 702.
- the processor 702 executes the computer program to implement the application as described in the embodiment of the present application. Preload management method.
- the smart terminal provided by the embodiment of the present invention can detect whether the smart terminal has a transfer operation, and if the smart terminal generates a transfer operation, the current user is authenticated according to the identity information of the current user, and the preload is adjusted according to the authentication result.
- the status of the function enables the preloading function to be enabled when the current user has the right, thereby avoiding the false triggering of the preloading function, saving the processing resources and storage resources of the intelligent terminal, accelerating the running speed of the intelligent terminal, and improving the user experience.
- FIG. 8 is a schematic structural diagram of another smart terminal according to an embodiment of the present disclosure.
- the smart terminal may include: a casing (not shown), a memory 801, and a central processing unit (CPU) 802 (again
- the processor is referred to as a CPU, a circuit board (not shown), and a power supply circuit (not shown).
- the circuit board is disposed inside a space enclosed by the casing; the CPU 802 and the memory 801 are disposed on the circuit board; and the power circuit is configured to supply power to each circuit or device of the terminal;
- the memory 801 is configured to store executable program code; the CPU 802 runs a computer program corresponding to the executable program code by reading executable program code stored in the memory 801 to implement the following steps: detecting The delivery operation of the smart terminal; in the case that the transfer operation is detected, the identity information of the current user is obtained, and the current user is authenticated according to the identity information; and the state of the preload function is adjusted according to the authentication result, wherein
- the preloading function includes predicting at least one application to be launched based on the historical usage record and preloading the application.
- the smart terminal further includes: a peripheral interface 803, a radio frequency (RF) circuit 805, an audio circuit 806, a speaker 811, a power management chip 808, and an input/output (I/O) subsystem 809.
- RF radio frequency
- I/O input/output
- Other input/control devices 810, touch screen 812, other input/control devices 810, and external port 804 are communicated via one or more communication buses or signal lines 807.
- the illustrated smart terminal 800 is merely one example of a terminal, and that the smart terminal 800 may have more or fewer components than those shown in the figures, and two or more components may be combined. Or it can have different component configurations.
- the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
- the terminal for applying preload management provided in this embodiment is described in detail below.
- the terminal uses a mobile phone as an example.
- the memory 801 can be accessed by the CPU 802, the peripheral interface 803, etc., and the memory 801 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
- a non-volatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
- Peripheral interface 803, which can connect the input and output peripherals of the device to CPU 802 and memory 801.
- I/O subsystem 809 which can connect input and output peripherals on the device, such as touch screen 812 and other input/control devices 810, to peripheral interface 803.
- I/O subsystem 809 can include display controller 8091 and one or more input controllers 8092 that are configured to control other input/control devices 810.
- one or more input controllers 8092 receive electrical signals from other input/control devices 810 or transmit electrical signals to other input/control devices 810, and other input/control devices 810 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
- the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a Universal Serial Bus (USB) interface, and a pointing device such as a mouse.
- USB Universal Serial Bus
- the touch screen 812 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
- the visual output may include graphics, text, icons, videos, and the like.
- the camera 813 is connected to the CPU 802 and the memory 801 through the peripheral interface 803, and is configured to capture a facial image of the current user, and send the captured facial image to the memory 801 for storage, so that the CPU 802 reads the facial image from the memory 801. Right processing.
- Display controller 8091 in I/O subsystem 809 receives an electrical signal from touch screen 812 or an electrical signal to touch screen 812.
- the touch screen 812 detects the contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 812, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 812 may be running.
- the icon of the game, the icon of the network to the corresponding network, and the like.
- the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
- the RF circuit 805 is mainly configured to establish communication between the mobile phone and the wireless network (ie, the network side), and implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like.
- RF circuit 805 receives and transmits an RF signal, also referred to as an electromagnetic signal, and RF circuit 805 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network And other devices to communicate.
- RF circuitry 805 may include known circuitry configured to perform these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
- CDDEC codec CODER-DECoder
- the audio circuit 806 is primarily configured to receive audio data from the peripheral interface 803, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 811.
- the speaker 811 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 805 to sound and play the sound to the user.
- the power management chip 808 is configured to provide power and power management for the hardware connected to the CPU 802, the I/O subsystem, and the peripheral interface.
- the application preload management device, the storage medium, and the smart terminal provided in the foregoing embodiments may be configured to provide an application preload management method provided by any embodiment of the present application, and have a corresponding functional module for executing the method.
- an application preload management method provided by any embodiment of the present application, and have a corresponding functional module for executing the method.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- User Interface Of Digital Computer (AREA)
- Stored Programmes (AREA)
Abstract
Disclosed in the embodiments of the present application are an application pre-loading management method, device, storage medium and a smart terminal. The method comprises: detecting a transmission operation of a smart terminal; when the transmission operation is detected, acquiring identity information of a current user, and carrying out authentication processing for the current user according to the identity information; and according to an authentication result, adjusting the state of a pre-loading function, wherein the pre-loading function comprises predicting at least one application program which is about to be started up according to historical use records, and pre-loading said application program.
Description
本申请要求在2018年05月15日提交中国专利局、申请号为201810464030.6的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. PCT Application No. No. No. No. No. No. No. No. No. No. No.
本申请实施例涉及应用程序加载技术,例如涉及一种应用预加载管理方法、装置、存储介质及智能终端。The embodiment of the present application relates to an application loading technology, for example, to an application preloading management method, apparatus, storage medium, and intelligent terminal.
目前,诸如智能手机、平板电脑、笔记本电脑以及智能家电等终端已成为人们日常生活中必不可少的电子设备。随着终端设备不断地智能化,多数终端设备中都装载有操作系统,使得终端设备能够安装丰富多样的应用程序,满足用户不同的需求。At present, terminals such as smart phones, tablets, notebook computers, and smart home appliances have become indispensable electronic devices in people's daily lives. As terminal devices continue to be intelligent, most terminal devices are loaded with an operating system, enabling the terminal devices to install a wide variety of applications to meet different user needs.
随着终端设备的配置不断提升,多数终端设备中可以安装几十甚至上百个应用程序,而随着应用程序的功能日益丰富,应用程序运行时所需加载的资源也越来越多。为了提升用户体验,减少某些应用的启动时延,在一些场景下会进行应用的预加载。然而,由于不同用户使用智能终端时的使用习惯不尽相同,相关技术中的应用预加载方案可能出现误触发预加载功能的情况,从而加载一些不可能被启动的应用程序,浪费智能终端的处理资源及存储资源。As the configuration of terminal devices continues to increase, dozens or even hundreds of applications can be installed in most terminal devices, and as the functions of the applications become more and more abundant, the resources required for the applications to run are also increased. In order to improve the user experience and reduce the startup delay of some applications, in some scenarios, the application is preloaded. However, since the usage habits of different users when using the smart terminal are different, the application pre-loading scheme in the related art may trigger the pre-loading function by mistake, thereby loading some applications that cannot be started, and wasting the processing of the smart terminal. Resources and storage resources.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本申请实施例提供一种应用预加载管理方法、装置、存储介质及智能终端,可以避免误触发预加载功能,从而节省智能终端的处理资源。The embodiment of the present application provides an application preloading management method, device, storage medium, and intelligent terminal, which can avoid false triggering of the preloading function, thereby saving processing resources of the intelligent terminal.
第一方面,本申请实施例提供了一种应用预加载管理方法,包括:In a first aspect, an embodiment of the present application provides an application preload management method, including:
检测智能终端的传递操作;Detecting the delivery operation of the smart terminal;
在检测到所述传递操作的情况下,获取当前用户的身份信息,并根据所述身份信息对当前用户进行鉴权处理;When the delivery operation is detected, acquiring identity information of the current user, and performing authentication processing on the current user according to the identity information;
根据鉴权结果调整预加载功能的状态,其中,预加载功能包括根据历史使用记录预测即将启动的至少一个应用程序,并预加载所述应用程序。Adjusting the state of the preloading function according to the authentication result, wherein the preloading function includes predicting at least one application to be started according to the historical usage record, and preloading the application.
第二方面,本申请实施例还提供了一种应用预加载管理装置,包括:In a second aspect, the embodiment of the present application further provides an application preloading management apparatus, including:
操作检测模块,设置为检测智能终端的传递操作;An operation detecting module configured to detect a delivery operation of the smart terminal;
用户鉴权模块,设置为在检测到所述传递操作的情况下,获取当前用户的身份信息,并根据所述身份信息对当前用户进行鉴权处理;The user authentication module is configured to acquire identity information of the current user when the delivery operation is detected, and perform authentication processing on the current user according to the identity information;
状态调整模块,设置为根据鉴权结果调整预加载功能的状态,其中,预加载功能包括根据历史使用记录预测即将启动的至少一个应用程序,并预加载所述应用程序。The state adjustment module is configured to adjust a state of the preloading function according to the authentication result, wherein the preloading function includes predicting at least one application to be started according to the historical usage record, and preloading the application.
第三方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如本申请实施例所述的应用预加载管理方法。In a third aspect, the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the computer program is executed by the processor, the application preload management method is implemented as described in the embodiment of the present application.
第四方面,本申请实施例提供了一种智能终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的应用预加载管理方法。In a fourth aspect, an embodiment of the present application provides an intelligent terminal, including a memory, a processor, and a computer program stored on the memory and operable by the processor, where the processor executes the computer program to implement the implementation of the present application. The application preload management method described in the example.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
图1为本申请实施例提供的一种应用预加载管理方法的流程示意图;FIG. 1 is a schematic flowchart of an application preloading management method according to an embodiment of the present application;
图2为本申请实施例提供的一种预加载活动窗口堆栈与显示屏幕显示区域的相对位置关系示意图;2 is a schematic diagram of a relative position relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application;
图3为本申请实施例提供的又一种预加载活动窗口堆栈与显示屏幕显示区域的相对位置关系示意图;FIG. 3 is a schematic diagram of a relative positional relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application;
图4为本申请实施例提供的一种应用界面迁移示意图;FIG. 4 is a schematic diagram of application interface migration according to an embodiment of the present application;
图5为本申请实施例提供的另一种应用预加载管理方法的流程示意图;FIG. 5 is a schematic flowchart of another application preload management method according to an embodiment of the present disclosure;
图6为本申请实施例提供的一种应用预加载管理装置的结构框图;FIG. 6 is a structural block diagram of an application preload management apparatus according to an embodiment of the present application;
图7为本申请实施例提供的一种智能终端的结构示意图;FIG. 7 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present disclosure;
图8为本申请实施例提供的又一种智能终端的结构示意图。FIG. 8 is a schematic structural diagram of still another intelligent terminal according to an embodiment of the present application.
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting. In addition, it should be noted that, for the convenience of description, only some but not all of the structures related to the present application are shown in the drawings.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未 包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as a process or method depicted as a flowchart. Although the flowcharts describe the various steps as a sequential process, many of the steps can be implemented in parallel, concurrently, or concurrently. In addition, the order of the steps can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the figures. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
图1为本申请实施例提供的一种应用预加载管理方法的流程示意图,该方法可以由应用预加载管理装置执行,其中该装置可由软件和/或硬件实现,一般可集成在智能终端中。如图1所示,该方法包括步骤101至步骤103。FIG. 1 is a schematic flowchart of an application preload management method according to an embodiment of the present disclosure. The method may be implemented by an application preload management device, where the device may be implemented by software and/or hardware, and may be integrated into an intelligent terminal. As shown in FIG. 1, the method includes steps 101 to 103.
在步骤101中,检测智能终端的传递操作。In step 101, a delivery operation of the smart terminal is detected.
示例性的,本申请实施例中的智能终端可以包括但不限于智能手机、平板电脑、笔记本电脑、台式计算机和智能家电。智能终端中预先装载有操作系统。示例性的,智能终端的传递操作可以是指同一智能终端在不同用户之间进行传递的操作,比如某一用户将手持的智能终端传递至另一用户手中。Illustratively, the smart terminal in the embodiment of the present application may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and a smart home appliance. The operating system is preloaded in the smart terminal. Exemplarily, the delivery operation of the smart terminal may refer to an operation in which the same smart terminal transmits between different users, for example, a certain user transfers the handheld smart terminal to another user.
示例性的,本实施例可以利用但不限于用户的握持手势和智能终端的加速度信息来检测是否存在智能终端的传递操作。Exemplarily, the embodiment may use, but is not limited to, the user's holding gesture and the acceleration information of the smart terminal to detect whether there is a delivery operation of the smart terminal.
在一实施例中,步骤101包括:获取用户对所述智能终端的握持手势;获取所述智能终端的加速度信息;在所述加速度信息满足第一预设条件的情况下,确定所述握持手势的状态变化参数;在所述状态变化参数满足第二预设条件的情况下,确定检测到智能终端的传递操作。In an embodiment, the step 101 includes: acquiring a grip gesture of the smart terminal by the user; acquiring acceleration information of the smart terminal; and determining the grip if the acceleration information meets the first preset condition a state change parameter of the gesture; if the state change parameter satisfies the second preset condition, determining that the delivery operation of the smart terminal is detected.
其中,本实施例可以利用智能终端中预置的加速度传感器来实时获取智能终端的加速度信息。加速度信息可以用于描述智能终端是否存在移动以及移动速度变化的快慢。加速度信息可以包括智能终端移动的加速度大小和方向。本实施例中的第一预设条件可以是指用于判断加速度信息是否满足传递操作的条件。示例性的,第一预设条件可以是智能终端的加速度大小超过预设加速度阈值。在智能终端的加速度信息满足第一预设条件的情况下,表明该智能终端可能存在传递操作,此时需要进一步根据用户握持手势的状态变化参数确定是否存在传递操作;在智能终端的加速度信息不满足第一预设条件的情况下,表明该智能终端不存在传递操作。In this embodiment, the acceleration information preset in the smart terminal can be used to acquire the acceleration information of the smart terminal in real time. The acceleration information can be used to describe whether the smart terminal has movement and how fast the moving speed changes. The acceleration information may include the magnitude and direction of acceleration of the smart terminal movement. The first preset condition in this embodiment may refer to a condition for determining whether the acceleration information satisfies the delivery operation. Exemplarily, the first preset condition may be that the acceleration magnitude of the smart terminal exceeds a preset acceleration threshold. If the acceleration information of the smart terminal meets the first preset condition, it indicates that the smart terminal may have a transfer operation, and further determining whether there is a transfer operation according to the state change parameter of the user's grip gesture; the acceleration information of the smart terminal If the first preset condition is not met, it indicates that the smart terminal does not have a delivery operation.
本实施例中的握持手势可以是指用户握持智能终端的手指位置和手掌位置,比如用户的大拇指在智能终端的一个侧面,另外四根手指在智能终端的另一侧面。由于每个用户使用智能终端的习惯和喜好不同,从而使得每个用户的握持手势也不同。当智能终端从某一用户传递至另一用户时,可以检测到智能终端的握持手势也会发生改变。可以通过在智能终端的边框或后盖设置预设数量的压力传感器的方式采集握持手势的状态信息。本实施例中握持手势的状态变化参数可以包括但不限于握持压力的变化量和握持面积的变化量。第二预设条件可以是指用于判断握持手势的状态变化参数是否满足传递操作的条件。在一实施例中,在所述状态变化参数满足第二预设条件的情况下,确定检测到智能终 端的传递操作,包括:在所述握持手势的握持方式改变的情况下,获取所述握持手势的握持压力的变化量;在所述变化量超过设定压力阈值的情况下,确定检测到智能终端的传递操作。这样设置可以在握持方式发生改变时,检测获取的握持手势的握持压力的变化量是否超过预设压力阈值,若握持压力的变化量超过预设压力阈值,确定检测到智能终端的传递操作,若握持压力的变化量没有超过预设压力阈值,确定未检测到智能终端的传递操作,使得检测更加便捷,提高检测效率和准确度。示例性的,握持方式的改变可以是用户握持时手指位置的改变,也可以是智能终端屏幕方向的改变,比如智能终端由竖屏改变为横屏。The holding gesture in this embodiment may refer to the finger position and the palm position of the user holding the smart terminal, such as the thumb of the user on one side of the smart terminal and the other four fingers on the other side of the smart terminal. Since each user uses a smart terminal with different habits and preferences, each user's holding gesture is also different. When the smart terminal is transferred from one user to another, it can be detected that the grip gesture of the smart terminal also changes. The state information of the holding gesture can be collected by setting a preset number of pressure sensors on the bezel or the back cover of the smart terminal. The state change parameter of the grip gesture in this embodiment may include, but is not limited to, a change amount of the grip pressure and a change amount of the grip area. The second preset condition may refer to a condition for determining whether the state change parameter of the grip gesture satisfies the transfer operation. In an embodiment, if the state change parameter satisfies the second preset condition, determining that the delivery operation of the smart terminal is detected includes: acquiring, in a case where the holding manner of the holding gesture is changed, acquiring The amount of change in the grip pressure of the grip gesture is described; in the case where the amount of change exceeds the set pressure threshold, it is determined that the transfer operation of the smart terminal is detected. The setting may be configured to detect whether the change amount of the grip pressure of the obtained grip gesture exceeds a preset pressure threshold when the grip mode is changed. If the change amount of the grip pressure exceeds the preset pressure threshold, determine that the transmission of the smart terminal is detected. Operation, if the change amount of the holding pressure does not exceed the preset pressure threshold, it is determined that the transmission operation of the smart terminal is not detected, so that the detection is more convenient, and the detection efficiency and accuracy are improved. Exemplarily, the change of the holding manner may be a change of the position of the finger when the user holds the hand, or a change of the direction of the screen of the smart terminal, for example, the smart terminal is changed from the vertical screen to the horizontal screen.
在步骤102中,在检测到所述传递操作的情况下,获取当前用户的身份信息,并根据所述身份信息对当前用户进行鉴权处理。In step 102, in the case that the delivery operation is detected, the identity information of the current user is acquired, and the current user is authenticated according to the identity information.
其中,本实施例中的当前用户是指发生传递操作后,当前正在使用智能终端的用户。鉴权处理可以是指根据当前用户的身份信息确定当前用户是否具有使用预加载功能的权限。在一实施例中,步骤102包括:在检测到所述传递操作的情况下,获取当前用户的面部图像;根据所述面部图像确定面部特征,将所述面部特征与预先存储的特征模板进行匹配;在所述面部特征与预先存储的特征模板匹配成功的情况下,确定当前用户通过鉴权。这样设置可以利用当前用户的面部图像的独特性可以准确地确定当前用户是否可以通过鉴权。示例性的,通过智能终端上的前置摄像头检测到人脸或人眼时,启动鉴权操作,利用前置摄像头来获取当前用户的面部图像。在一实施例中,在检测到传递操作的情况下,开启前置摄像头,通过前置摄像头获取当前用户的面部图像,以对当前用户进行鉴权。在检测到传递操作时才开启前置摄像头可以降低功耗。面部特征可以包括但不限于面部信息和虹膜信息。特征模板可以是指具有使用预加载功能权限的用户对应的面部特征。特征模板可以包括一个或多个不同用户的面部特征,可以根据智能终端的持有者的实际情况预先进行设置。将当前用户的面部特征可以与预先存储的特征模板中的面部特征逐一进行匹配,判断特征模板中是否存在与当前用户面部特征相同的面部特征,基于特征模板中存在与当前用户面部特征相同的面部特征的判断结果,确定匹配成功,此时可以确定当前用户通过鉴权,即具有使用预加载功能的权限;基于特征模板中不存在与当前用户面部特征相同的面部特征的判断结果,确定匹配失败,此时可以确定当前用户没有通过鉴权,即不具备使用预加载功能的权限。The current user in this embodiment refers to a user who is currently using the smart terminal after the transfer operation occurs. The authentication process may refer to determining whether the current user has the right to use the preload function according to the identity information of the current user. In an embodiment, step 102 includes: acquiring a facial image of the current user when the transfer operation is detected; determining a facial feature according to the facial image, and matching the facial feature with a pre-stored feature template And determining that the current user passes the authentication if the facial feature is successfully matched with the pre-stored feature template. Such a setting can utilize the uniqueness of the current user's facial image to accurately determine whether the current user can pass the authentication. Exemplarily, when a face or a human eye is detected by a front camera on the smart terminal, an authentication operation is initiated, and a front camera is used to acquire a facial image of the current user. In an embodiment, in the case that a transfer operation is detected, the front camera is turned on, and the front user's face image is acquired by the front camera to authenticate the current user. Turning on the front camera when a transfer operation is detected can reduce power consumption. Facial features may include, but are not limited to, facial information and iris information. A feature template may refer to a facial feature corresponding to a user who uses the preload function permission. The feature template may include facial features of one or more different users, which may be pre-set according to the actual situation of the holder of the smart terminal. The facial features of the current user may be matched one by one with the facial features in the pre-stored feature templates, and it is determined whether there are facial features in the feature template that are the same as the current user facial features, and the same facial features are present in the feature template. The judgment result of the feature determines that the matching is successful. At this time, it can be determined that the current user passes the authentication, that is, has the right to use the preloading function; and based on the judgment result of the facial feature that does not have the same facial feature as the current user, the matching failure is determined. At this point, it can be determined that the current user has not passed the authentication, that is, the permission to use the preload function is not available.
在步骤103中,根据鉴权结果调整预加载功能的状态,其中,预加载功能包括根据历史使用记录预测即将启动的至少一个应用程序,并预加载所述应用程序。In step 103, the state of the preloading function is adjusted according to the authentication result, wherein the preloading function includes predicting at least one application to be started according to the historical usage record, and preloading the application.
其中,本实施例中的鉴权结果可以包括通过鉴权和未通过鉴权,预加载功 能的状态可以包括开启状态和关闭状态。示例性的,在鉴权结果为当前用户通过鉴权的情况下,将预加载功能的状态调整至开启状态;在鉴权结果为当前用户未通过鉴权的情况下,将预加载功能的状态调整至关闭状态。历史使用记录可以是指具有使用预加载功能权限的用户在智能终端上的操作记录,即记录用户实际打开的应用程序的顺序以及对应的打开时间等。预加载该应用程序包括但不限于预加载应用界面、启动广告和启动动画等启动资源。本实施例中的预加载功能是根据具有权限用户的历史使用记录来预测即将启动的应用程序,并预加载应用程序的启动资源,因此若没有权限的用户使用预加载功能,则预测出来的即将启动的应用程序是不准确的,没有权限的用户很可能不会打开预测出来的应用程序,所以,此时若预加载这些应用程序只会浪费智能终端的处理资源和存储资源,并无法提高启动速度。本实施例通过根据鉴权结果来调整预加载功能的状态,只给具有权限的用户开启预加载功能,通过预加载即将启动的应用程序来提高启动速度,提升了用户体验,并且给不具备权限的用户关闭预加载功能,从而避免预加载一些不可能被启动的应用程序,浪费智能终端的处理资源及存储资源。The authentication result in this embodiment may include the authentication and the failing authentication, and the state of the preloading function may include an open state and a closed state. Exemplarily, when the authentication result is that the current user passes the authentication, the state of the preloading function is adjusted to the enabled state; if the authentication result is that the current user fails to pass the authentication, the state of the preloading function is Adjust to the off state. The history usage record may refer to an operation record of the user having the authority to use the preload function on the smart terminal, that is, the order in which the application actually opened by the user is recorded, and the corresponding opening time. Preloading the application includes, but is not limited to, preloading the application interface, launching ads, and launching animations and other startup resources. The preloading function in this embodiment predicts an application to be launched according to the historical usage record of the authorized user, and preloads the startup resource of the application, so if the user without the permission uses the preloading function, the predicted soon is predicted The launched application is inaccurate. Users without permission may not open the predicted application. Therefore, if these applications are preloaded, only the processing resources and storage resources of the smart terminal will be wasted, and the startup cannot be improved. speed. In this embodiment, the state of the preloading function is adjusted according to the authentication result, and only the preloading function is enabled for the user with the permission, and the startup speed is improved by preloading the application to be started, the user experience is improved, and the user is not provided with the permission. The user turns off the preloading function, thereby avoiding preloading some applications that cannot be started, wasting the processing resources and storage resources of the smart terminal.
本申请实施例中提供的应用预加载管理方法,在检测到智能终端发生传递操作的情况下,根据当前用户的身份信息对当前用户进行鉴权处理,并根据鉴权结果调整预加载功能的状态,其中,预加载功能包括根据历史使用记录预测即将启动的至少一个应用程序,并预加载所述应用程序。通过采用上述技术方案,可以检测发生传递操作后的当前用户是否具有预加载功能的使用权限,只有在当前用户具有权限时才开启预加载功能,从而避免了预加载功能的误触发,节省了智能终端的处理资源和存储资源,加快了智能终端的运行速度,提高了用户体验。The application preloading management method provided in the embodiment of the present application, after detecting that the smart terminal has a delivery operation, performs authentication processing on the current user according to the identity information of the current user, and adjusts the state of the preloading function according to the authentication result. The preloading function includes predicting at least one application to be launched based on the historical usage record and preloading the application. By adopting the above technical solution, it is possible to detect whether the current user after the transfer operation has the use permission of the preload function, and only when the current user has the permission, the preload function is enabled, thereby avoiding the false trigger of the preload function and saving the intelligence. The processing resources and storage resources of the terminal accelerate the running speed of the intelligent terminal and improve the user experience.
在一些实施例中,步骤103可以包括:在当前用户通过鉴权的情况下,检测应用预加载事件,并在所述应用预加载事件被触发时,确定待预加载的应用程序,基于预先创建的预加载活动窗口堆栈预加载所述应用程序对应的应用界面,其中,所述预加载活动窗口堆栈对应的边界坐标位于显示屏幕的坐标范围之外;在当前用户未通过鉴权的情况下,放弃执行检测应用预加载事件的操作。In some embodiments, step 103 may include detecting an application preload event if the current user is authenticated, and determining an application to be preloaded based on the pre-created when the application preload event is triggered. Preloading the active window stack preloading the application interface corresponding to the application, wherein the boundary coordinates corresponding to the preloaded active window stack are outside the coordinate range of the display screen; if the current user fails to pass the authentication, Abandon the operation of detecting an application preload event.
其中,在当前用户通过鉴权的情况下,即当前用户具有使用预加载功能的权限的情况下,开启预加载功能,检测应用预加载事件是否被触发。示例性的,应用预加载事件的触发条件可以根据实际情况设置,本申请实施例不作具体限定。例如,可以在检测到用户的动作满足预设动作(如拿起智能终端、输入屏幕解锁操作或者输入终端解锁操作等)时,触发应用预加载事件;或者可以在检测到前台应用程序发生变更时,触发应用预加载事件;或者可以在预加载应用的预测流程结束后,立即(或经过预设时长后)触发应用预加载事件;或者 可以定时间隔触发等等。在应用预加载事件被触发时,系统可以通过读取标志位或接收触发指令等方式检测到应用预加载事件已被触发,具体的检测方式本申请实施例也不做限定。在当前用户未通过鉴权的情况下,即当前用户不具备使用预加载功能的权限,停止应用预加载事件的检测,以关闭预加载功能。Wherein, in the case that the current user passes the authentication, that is, if the current user has the permission to use the preloading function, the preloading function is turned on to detect whether the application preloading event is triggered. For example, the triggering condition of the application pre-loading event may be set according to an actual situation, which is not specifically limited in this embodiment. For example, the application preload event may be triggered when it is detected that the user's action satisfies a preset action (such as picking up the smart terminal, inputting a screen unlocking operation, or inputting a terminal unlocking operation, etc.); or may detect when the foreground application is changed. , triggering an application preload event; or triggering an application preload event immediately (or after a preset duration) after the pre-loading application's prediction process ends; or timing interval triggering, and the like. When the application preloading event is triggered, the system may detect that the application preloading event has been triggered by reading the flag bit or receiving the triggering instruction, and the specific detection manner is not limited in the embodiment of the present application. In the case that the current user fails to authenticate, that is, the current user does not have the permission to use the preload function, the application of the preload event detection is stopped to turn off the preload function.
示例性的,待预加载的应用程序可以理解为用户可能即将打开的应用程序,可以是预先设置好的固定的应用程序,也可以是采用一定的方式预测出来的应用程序等。待预加载的应用程序可以是指当前需要进行预加载操作的应用程序。待预加载的应用程序也可以包括一个或多个。当待预加载的应用程序有多个时,可以将多个待预加载的应用程序逐一进行预加载操作,也可以为将2个以上待预加载的应用程序同时进行预加载操作,从而并行进行预加载过程。Exemplarily, the application to be preloaded can be understood as an application that the user may open soon, or may be a fixed application that is preset, or an application that is predicted in a certain manner. The application to be preloaded can refer to an application that currently needs to be preloaded. The application to be preloaded may also include one or more. When there are multiple applications to be preloaded, multiple preloaded applications may be preloaded one by one, or two or more preloaded applications may be preloaded at the same time, thereby performing parallel operations. Preloading process.
在一实施例中,可采用预测模型对待预加载的应用程序进行预测。该预测模型可以是机器学习模型,所采用的算法可以包括循环神经网络(Recurrent neural networks,RNN)、长短期记忆(Long Short-Term Memory,LSTM)网络、门限循环单元、简单循环单元、自动编码器、决策树、随机森林、特征均值分类、分类回归树、隐马尔科夫、K最近邻(k-NearestNeighbor,KNN)算法、逻辑回归模型、贝叶斯模型、高斯模型以及KL散度(Kullback Leibler divergence)等等。In an embodiment, a predictive model can be used to predict the preloaded application. The prediction model may be a machine learning model, and the algorithms used may include Recurrent neural networks (RNN), Long Short-Term Memory (LSTM) networks, threshold loop units, simple loop units, and automatic coding. , decision tree, random forest, feature mean classification, classification regression tree, hidden Markov, K-Nearest Neighbor (KNN) algorithm, logistic regression model, Bayesian model, Gaussian model, and KL divergence (Kullback) Leibler divergence) and so on.
在一实施例中,对于通过鉴权的用户而言,可在该用户使用智能终端的过程中,采集训练样本,采用训练样本对预设初始模型进行训练,最终得到用于预测待预加载的应用程序的预测模型。示例性的,训练样本中包含的元素可包括应用程序被打开的时间序列或次序序列;可包括应用程序被打开的时间、地点以及频次等;可包括终端的运行状态,如移动数据网络的开关状态、无线热点的连接状态、所连接的无线热点的身份信息、当前运行的应用程序、上一个前台应用程序、当前应用程序在后台停留的时长、当前应用程序最近一次被切换至后台的时间、耳机插孔的插拔状态、充电状态、电池电量信息以及屏幕显示时长等等;还可包括智能终端中集成的传感器采集到的数据,如运动传感器、光线传感器、温度传感器以及湿度传感器等等。In an embodiment, for the user who authenticates, the training sample may be collected in the process of using the smart terminal by the user, and the preset initial model is trained by using the training sample, and finally obtained for predicting the preloading. The predictive model of the application. Illustratively, the elements included in the training sample may include a time series or sequence of sequences in which the application is opened; may include the time, location, and frequency of the application being opened; may include the operating state of the terminal, such as a switch of the mobile data network Status, connection status of the wireless hotspot, identity information of the connected wireless hotspot, currently running application, previous foreground application, duration of the current application staying in the background, time when the current application was last switched to the background, The plug-in status, charging status, battery power information, and screen display duration of the headphone jack, etc.; may also include data collected by sensors integrated in the smart terminal, such as motion sensors, light sensors, temperature sensors, and humidity sensors.
示例性的,可根据所选用的机器学习模型选择合适的样本元素,也可根据所选的样本元素确定所选用的机器学习模型,还可结合对预测准确度以及预设速度等方面的需求进行模型及样本元素的选择等,本申请实施例不做限定。Illustratively, the appropriate sample elements can be selected according to the selected machine learning model, and the selected machine learning model can be determined according to the selected sample elements, and can also be combined with the requirements for prediction accuracy and preset speed. The selection of the model and the sample elements and the like are not limited in the embodiment of the present application.
本申请实施例中,确定待预加载的应用程序可以包括根据预测模型之前的输出结果确定待预加载的应用程序,也可以包括利用预测模型进行预测,将预测模型的当前输出结果作为待预加载的应用程序。In the embodiment of the present application, determining that the application to be preloaded may include determining an application to be preloaded according to an output result before the prediction model, or including using the prediction model to perform prediction, and using a current output result of the prediction model as a preloading s application.
本申请实施例中,活动窗口可理解为一个独立的直接面向用户提供交互和操作的界面,在不同的操作系统中可能采用不同的名词来命名该界面。为了便 于理解,下面以安卓(Android)操作系统为例进行说明。In the embodiment of the present application, the active window can be understood as an independent interface that provides interaction and operation directly to the user, and different nouns may be used to name the interface in different operating systems. For the sake of understanding, the following is an example of an Android operating system.
在Android系统中,活动窗口被称为Activity。Activity是一个负责与用户交互的组件,其提供一个屏幕(可以理解为屏幕界面,而非实体的显示屏幕),以供用户交互完成某项任务。在一个android应用程序中,一个Activity通常就是一个单独的屏幕,它上面可以显示一些控件也可以监听并处理用户的事件。在对Activity进行管理中,有这样两个概念:任务栈(Task)和活动窗口堆栈(Stack)。Task对应一个应用程序,Task用于存放Activity,一个Task中可以存放一个或多个Activity,且这些Activity遵循“先进后出,后进先出”的原则。而Stack又用于对Task进行管理,通常,一个Stack对一个屏幕所需展示的各Activity所属的Task进行管理,一个Stack可以管理一个或多个Task,当然,Stack也同样遵循堆栈的基本管理原则。这里所述的屏幕并不一定是完整独立的显示屏,以“两个屏幕”为例,这两个屏幕可能只是一个完整显示屏中两个独立显示各自显示内容的区域。当然,如果终端具备两个甚至是两个以上的独立显示屏,则“两个屏幕”也可以是两个独立的显示屏。In the Android system, the active window is called Activity. An Activity is a component responsible for interacting with a user, providing a screen (which can be understood as a screen interface rather than a physical display screen) for the user to interact with a task. In an android application, an Activity is usually a separate screen that can display some controls and listen and handle user events. In the management of the Activity, there are two concepts: the task stack (Task) and the active window stack (Stack). Task corresponds to an application, Task is used to store Activity, and a Task can store one or more Activity, and these activities follow the principle of "advanced, last in, first out". Stack is used to manage the Task. Usually, a Stack manages the Tasks to which each Activity needs to be displayed on a screen. A Stack can manage one or more Tasks. Of course, Stack also follows the basic management principles of the stack. . The screen described here is not necessarily a completely separate display. Taking "two screens" as an example, these two screens may be just two areas in a complete display that independently display their respective display contents. Of course, if the terminal has two or even more than two independent displays, the "two screens" can also be two separate displays.
在Android系统中,支持多窗口模式,可包括分屏模式、画中画模式以及自由模式(FreeForm)。在多窗口模式下,应用程序所在的Stack可以有自己的尺寸(size),可以包括以终端屏幕左上角为原点的坐标系中的上下左右坐标。例如,(a,b,c,d),一般描述的是一个矩形的边界,可采用矩形左上角的坐标和右下角的坐标进行表示,即矩形的左上角坐标为(a,b),右下角坐标为(c,d),这样的矩形区域就对应Stack的size。Stack中的应用内布局是以Stack的size为准的,也就是说Activity对应的应用界面是在size的边界范围内进行显示的。In the Android system, multi-window mode is supported, which can include split screen mode, picture in picture mode, and free mode (FreeForm). In multi-window mode, the Stack on which the application resides can have its own size, which can include the top, bottom, left, and right coordinates in the coordinate system with the top left corner of the terminal screen as the origin. For example, (a, b, c, d), generally describes the boundary of a rectangle, which can be represented by the coordinates of the upper left corner of the rectangle and the coordinates of the lower right corner, that is, the coordinates of the upper left corner of the rectangle are (a, b), right. The lower corner coordinates are (c, d), and such a rectangular area corresponds to the size of the Stack. The in-app layout in the Stack is based on the size of the Stack, which means that the application interface corresponding to the Activity is displayed within the bounds of the size.
在多窗口模式下,可以允许多个应用程序处于可见状态,包括系统和用户均可见和仅系统可见。系统和用户均可见指的是在显示屏幕上进行显示,且用户能够看到;仅系统可见指的是操作系统可见,而用户不可见,可能被前台的应用遮挡或者如本申请所要实现的在显示屏幕外显示。In multi-window mode, multiple applications can be allowed to be visible, both system and user visible and only system visible. Both the system and the user are visible to display on the display screen, and the user can see; only the system visible means that the operating system is visible, and the user is invisible, may be blocked by the application of the foreground or as implemented in the application. Display off-screen display.
本申请实施例中,在显示屏幕外对待加载的应用程序的应用界面进行预加载,可以基于操作系统的多窗口机制来实现,通过多窗口机制将应用程序对应的size设在显示屏幕外从而对用户不可见,从而不会影响到前台应用程序的显示内容在显示屏幕上的显示。In the embodiment of the present application, pre-loading the application interface of the application to be loaded outside the display screen may be implemented based on a multi-window mechanism of the operating system, and the size corresponding to the application is set outside the display screen through the multi-window mechanism, thereby The user is not visible and thus does not affect the display of the foreground application's display content on the display screen.
一般的,多窗口模式下,可以存在多种类型的Stack,如Home Stack表示桌面应用显示的Stack,App Stack表示第三方应用显示的Stack,还可以有其他分屏Stack等,上述三种Stack中包含的内容可在显示屏幕上显示,本申请实施例中统称为应用活动窗口堆栈。本申请实施例中,新增了预加载活动窗口堆栈(预加载Stack),用于表示预加载应用显示的Stack,并设置预加载Stack的边界坐标位于显示屏幕的坐标范围之外,待预加载的应用程序可以显示在该Stack。对 于Android系统来说,可以基于Android系统的多窗口机制,新建一个专门用于显示预加载应用的Stack。本申请实施例中,新建Stack是因为可以让新建的预加载Stack拥有自己的size以及可见性,从而在显示屏幕外预加载。本申请实施例中,对预加载Stack的创建时机不做限定,可以是在终端出厂前默认设置预加载Stack处于常驻状态,即预加载Stack一直存在;也可以在终端开机时或终端解锁成功后创建;还可以在应用预加载事件被触发后(可以在确定目标应用程序之前)创建等等。Generally, in the multi-window mode, there may be multiple types of stacks, such as the Home Stack indicating the stack displayed by the desktop application, the App Stack indicating the Stack displayed by the third-party application, and other split screen stacks, etc., in the above three stacks. The included content can be displayed on the display screen, which is collectively referred to as an application active window stack in the embodiment of the present application. In the embodiment of the present application, a preloaded active window stack (preloaded stack) is added, which is used to represent the stack displayed by the preloaded application, and the boundary coordinates of the preloaded stack are set outside the coordinate range of the display screen, and are to be preloaded. The app can be displayed on the stack. For the Android system, a new stack dedicated to displaying preloaded applications can be created based on the multi-window mechanism of the Android system. In the embodiment of the present application, the new stack is created because the newly created preloaded stack can have its own size and visibility, so that it is preloaded outside the display screen. In the embodiment of the present application, the creation time of the preloaded stack is not limited, and the preloaded stack is in the resident state by default, that is, the preloaded stack is always present; or the terminal is successfully unlocked when the terminal is powered on or the terminal is successfully unlocked. Post-create; can also be created after the application preload event is triggered (can be determined before the target application is determined).
在一些实施例中,基于预先创建的预加载活动窗口堆栈预加载所述应用程序对应的应用界面,包括:创建所述应用程序对应的目标进程;在预先创建的预加载活动窗口堆栈中创建所述应用程序对应的任务栈;基于所述目标进程在所述任务栈中启动所述应用程序对应的活动窗口;基于所启动的活动窗口绘制并显示所述应用程序对应的应用界面。这样设置能够基于屏幕坐标范围之外的预加载活动窗口堆栈对应用程序的应用界面进行绘制并显示,不会干扰前台应用程序的运行及显示,保证系统稳定性,同时有效提高应用程序启动时的速度。在创建目标进程的同时,还可包括目标进程的初始化过程。在上述步骤的执行过程中,还可能涉及其它资源的预加载,如应用服务启动、内存分配、文件内容读取及网络数据获取等,本申请实施例对其它资源的预加载过程不做限定。In some embodiments, preloading an application interface corresponding to the application based on a pre-created preloaded active window stack includes: creating a target process corresponding to the application; creating a pre-created preloaded active window stack a task stack corresponding to the application; starting an activity window corresponding to the application in the task stack based on the target process; and drawing and displaying an application interface corresponding to the application based on the activated activity window. This setting can draw and display the application interface of the application based on the preloaded active window stack outside the screen coordinate range, without interfering with the running and display of the foreground application, ensuring system stability, and effectively improving the application startup. speed. The creation process of the target process can also include the initialization process of the target process. During the execution of the foregoing steps, the preloading of other resources may be involved, such as application service startup, memory allocation, file content reading, and network data acquisition. The preloading process of other resources is not limited in this embodiment of the present application.
在一些实施例中,还包括:向所述应用程序发送伪造焦点通知,并基于所述伪造焦点通知在预设时间段内保持所述应用程序对应的应用界面的持续绘制以及显示更新,其中,所述预设时间段的长度包括所述应用程序中启动广告或启动动画的播放时长。这样设置能够在应用程序获得焦点并对系统可见的情况下完成应用界面的绘制及显示,提高预加载的完成度,且不对前台应用的焦点产生影响。本申请实施例中的焦点又称为输入焦点,伪造焦点与前台应用对应的焦点相互独立。一般的,对于目前的Android系统来说,焦点是唯一的,例如触摸等输入操作只对焦点生效,对于输入焦点信息,系统端和应用端是一致的,系统端一旦修改输入焦点信息,就会向应用发送输入焦点信息发生变化的信息,以此方法保证系统端和应用端输入焦点信息一致。本申请实施例中,通过分离系统端和应用端输入焦点信息的方式,实现应用端可伪造焦点。本申请实施例中,对预加载应用伪造焦点通知,使预加载应用具有焦点信息,而系统端的焦点信息仍然是正确的,这样处理可以使得预加载应用能够正常绘制,实现全部加载。焦点存在于系统端和应用端,可认为是服务端(server)和客户端(client),系统端记录拥有焦点的应用,应用端保存标志位(flag)标识自己是否有焦点。伪造输入焦点的时机可以是当Android的窗口系统新增窗口,需要更新焦点时,生成伪造焦点通知并进行发送。伪造焦点的方法可以是调用窗口的client端的改变窗口焦点的方法,使得该窗口获取焦点。在一实施例中,可基于Binder机制 进行伪造焦点通知的发送,Binder机制是Android系统的进程间通信的最常用的方式,采用c/s架构,即客户/服务架构。本申请实施例中,一些应用程序在启动的过程中,通常会播放一些广告或动画,广告或动画的播放时长通常为3秒至十几秒不等,在播放广告或动画期间,用户可能没办法进行任何操作,只能等待播放完毕,浪费用户的宝贵时间。本申请实施例这样设置能够在应用程序启动之前,在屏幕外播放完启动广告或启动动画,当应用程序启动时,可直接进入应用程序的主页面或其他用户可操作的界面,从而将应用程序的可操作时间点进一步提前,减少等待时间。In some embodiments, the method further includes: transmitting a forged focus notification to the application, and maintaining a continuous drawing and displaying an update of the application interface corresponding to the application for a preset time period based on the forged focus notification, wherein The length of the preset time period includes a play duration for starting an advertisement or starting an animation in the application. This setting can complete the drawing and display of the application interface when the application gets the focus and the system is visible, and improves the completion degree of the preload without affecting the focus of the foreground application. The focus in the embodiment of the present application is also referred to as an input focus, and the forged focus is independent of the focus corresponding to the foreground application. Generally, for the current Android system, the focus is unique. For example, the input operation such as touch is only effective for the focus. For the input focus information, the system side and the application end are consistent, and once the system side modifies the input focus information, Sending information that the input focus information changes to the application, so as to ensure that the input information of the system end and the application end are consistent. In the embodiment of the present application, by separating the system side and the application end to input the focus information, the application end can forge the focus. In the embodiment of the present application, the pre-loading application forges the focus notification, so that the pre-loading application has the focus information, and the focus information of the system is still correct, so that the processing can enable the pre-loading application to draw normally and achieve full loading. The focus exists on the system side and the application side. It can be regarded as the server (server) and the client (client). The system side records the application with the focus, and the application saves the flag (flag) to identify whether it has focus. The timing of forging the input focus may be that when the window system of Android adds a window and needs to update the focus, a fake focus notification is generated and sent. The method of forging the focus may be a method of calling the client side of the window to change the focus of the window, so that the window acquires the focus. In an embodiment, the transmission of the forged focus notification may be performed based on the Binder mechanism, which is the most common way of inter-process communication of the Android system, adopting the c/s architecture, that is, the client/service architecture. In the embodiment of the present application, some applications usually play some advertisements or animations during the startup process, and the duration of the advertisement or animation is usually from 3 seconds to ten seconds. During the advertisement or animation, the user may not Any way to do anything, you can only wait for the playback to complete, wasting the user's precious time. In this embodiment of the present application, the setting can enable the startup advertisement or the startup animation to be played out of the screen before the application is started. When the application is started, the application can directly enter the main page of the application or other user-operable interface, thereby applying the application. The operational time point is further advanced, reducing the waiting time.
在一些实施例中,在基于预先创建的预加载活动窗口堆栈预加载所述应用程序对应的应用界面之后,还包括:在接收到目标应用程序的运行指令时,将所述预加载活动窗口堆栈中包含的所述目标应用程序对应的应用界面迁移至所述显示屏幕进行显示。这样设置可以在目标应用程序真正需要启动时,即用户点击目标应用程序时,直接将已经绘制好的目标应用程序对应的应用界面迁移到显示屏幕进行显示,能够达到应用界面的快速切换,提高启动速度。In some embodiments, after preloading the application interface corresponding to the application based on the pre-created preload active window stack, the method further includes: when the running instruction of the target application is received, stacking the preloaded active window The application interface corresponding to the target application included in the target is migrated to the display screen for display. This setting can be used when the target application really needs to be started, that is, when the user clicks on the target application, the application interface corresponding to the already-targeted application is directly migrated to the display screen for display, which can achieve fast switching of the application interface and improve startup. speed.
在一些实施例中,将所述预加载活动窗口堆栈中包含的所述目标应用程序对应的应用界面迁移至所述显示屏幕进行显示,包括:将所述预加载活动窗口堆栈中包含的所述目标应用程序对应的任务栈迁移至应用活动窗口堆栈的顶部;更新所述任务栈的尺寸信息、配置信息和可见性,以实现所述目标应用程序对应的应用界面在所述显示屏幕进行显示。这样设置能够保证界面迁移过程的稳定性,保证恢复过程不会出现卡屏、黑屏或迁移速度慢等情况。In some embodiments, migrating the application interface corresponding to the target application included in the preloaded active window stack to the display screen for display comprises: including the pre-loaded active window stack The task stack corresponding to the target application is migrated to the top of the application active window stack; the size information, the configuration information, and the visibility of the task stack are updated, so that the application interface corresponding to the target application is displayed on the display screen. This setting ensures the stability of the interface migration process and ensures that the recovery process does not cause a card screen, a black screen, or a slow migration speed.
对于一些智能终端来说,尤其是手机及平板电脑等移动终端,为了方便用户的使用,显示屏幕的显示方式通常包括竖屏显示和横屏显示,许多应用程序默认采用竖屏方式进行显示,而有些应用程序默认采用横屏方式进行显示(如一些网络游戏),在智能终端的使用过程中,有些应用程序还会随着用户握持终端的方向而进行横竖屏显示的切换。在本申请的一些实施例中,所述预加载活动窗口堆栈对应的边界坐标为(H,0,2H,H),所述边界坐标对应的坐标系为系统坐标,所述系统坐标的原点为所述显示屏幕的左上角,H为所述显示屏幕的显示区域的长边长度。也就是说,H对应的边是显示屏幕的显示区域的最大边,在竖屏显示时为显示屏幕的高,在横屏显示时为显示屏幕的宽。这样设置是考虑到显示屏幕横屏、预加载应用横屏显示,以及一些应用程序的正常显示。图2为本申请实施例提供的一种预加载活动窗口堆栈与显示屏幕显示区域的相对位置关系示意图。如图2所示,此时显示屏幕为竖屏方式,终端系统坐标的原点为显示屏幕201的左顶点(0,0),显示屏幕201的宽度方向为X轴,高度方向为Y轴,预加载Stack202对应的边界坐标为(H,0,2H,H),H为屏幕高,即左边实线矩形范围内的区域为主屏幕显示区域,右边虚线矩形范围内的 区域为预加载显示区域。图3为本申请实施例提供的又一种预加载活动窗口堆栈与显示屏幕显示区域的相对位置关系示意图。如图3所示,此时显示屏幕为横屏方式,终端系统坐标的原点为显示屏幕301的左顶点(0,0),显示屏幕301的高度方向为X轴,宽度方向为Y轴,预加载Stack202对应的边界坐标为(H,0,2H,H),H为屏幕高,即左边实线矩形范围内的区域为主屏幕显示区域,右边虚线矩形范围内的区域为预加载显示区域。For some smart terminals, especially mobile terminals such as mobile phones and tablet computers, in order to facilitate the user's use, the display mode of the display screen usually includes vertical screen display and horizontal screen display, and many applications use the vertical screen mode for display by default. Some applications use horizontal screen display by default (such as some online games). During the use of smart terminals, some applications also switch between horizontal and vertical display as the user holds the direction of the terminal. In some embodiments of the present application, the boundary coordinates corresponding to the preloaded active window stack are (H, 0, 2H, H), the coordinate system corresponding to the boundary coordinates is system coordinates, and the origin of the system coordinates is In the upper left corner of the display screen, H is the length of the long side of the display area of the display screen. That is to say, the edge corresponding to H is the largest side of the display area of the display screen, which is the height of the display screen when the vertical screen is displayed, and the width of the display screen when the horizontal screen is displayed. This setting takes into account the horizontal screen of the display screen, the horizontal display of the preloaded application, and the normal display of some applications. FIG. 2 is a schematic diagram of a relative position relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application. As shown in FIG. 2, the display screen is in the vertical screen mode, and the origin of the terminal system coordinates is the left vertex (0, 0) of the display screen 201. The width direction of the display screen 201 is the X axis, and the height direction is the Y axis. The boundary coordinates of the loaded Stack 202 are (H, 0, 2H, H), H is the screen height, that is, the area within the solid line rectangle on the left side is the main screen display area, and the area within the rectangular area of the right dashed line is the preloaded display area. FIG. 3 is a schematic diagram of a relative positional relationship between a preloaded active window stack and a display screen display area according to an embodiment of the present application. As shown in FIG. 3, the display screen is in the horizontal screen mode, and the origin of the terminal system coordinates is the left vertex (0, 0) of the display screen 301. The height direction of the display screen 301 is the X axis, and the width direction is the Y axis. The boundary coordinates of the loaded Stack 202 are (H, 0, 2H, H), H is the screen height, that is, the area within the solid line rectangle on the left side is the main screen display area, and the area within the rectangular area of the right dashed line is the preloaded display area.
预加载Stack各个边界如此设置的原因在于:The reason for pre-loading the various boundaries of the Stack is this:
左上角的横坐标为H,是为了防止横屏时显示屏幕(也可称为主屏幕)显示到预加载应用的界面,因为主屏幕除了竖屏模式,还有横屏模式,当主屏幕横屏的时候,为了防止主屏幕显示区域显示了预加载的应用的局部,所以将预加载Stack对应的矩形区域的左上角横坐标设为屏幕高。The horizontal coordinate of the upper left corner is H, which is to prevent the display screen (also called the main screen) from being displayed to the interface of the preloaded application when the horizontal screen is used, because the main screen has the horizontal screen mode and the horizontal screen mode when the main screen is horizontal screen. In order to prevent the main screen display area from displaying the part of the preloaded application, the horizontal coordinate of the upper left corner of the rectangular area corresponding to the preloaded stack is set to the screen height.
左上角的纵坐标为0,是为了预加载应用能够正确计算状态栏高度。Android应用为了更好的设计用户界面(User Interface,UI),会自定义顶部状态栏,如果上边对应的纵坐标不等于0,那么状态栏的高度可能会错误。The ordinate of the upper left corner is 0, in order to preload the application to correctly calculate the status bar height. In order to better design the user interface (UI), the Android application will customize the top status bar. If the corresponding ordinate of the upper side is not equal to 0, the height of the status bar may be wrong.
右下角的横坐标为2H(2倍屏幕高),即预加载Stack对应的矩形的宽=屏幕高,是为了预加载Stack的size能够包含预加载时候的横屏应用(即应用界面为横屏显示方式的应用程序)。The horizontal coordinate of the lower right corner is 2H (2 times the screen height), that is, the width of the rectangle corresponding to the preloaded stack = the screen height, in order to preload the size of the stack to include the horizontal screen application at the time of preloading (ie, the application interface is a horizontal screen) Display mode application).
右下角的纵坐标为H,即预加载Stack对应的矩形的高=屏幕高,是为了预加载Stack的size能够包含预加载时候的竖屏应用。The ordinate of the lower right corner is H, that is, the height of the rectangle corresponding to the preloaded stack = the height of the screen, in order to preload the size of the stack to include the vertical screen application at the time of preloading.
基于上述的原因,发明人将预加载Stack的size设置为(H,0,2H,H)。For the above reasons, the inventor sets the size of the preloaded stack to (H, 0, 2H, H).
此外,图4为本申请实施例提供的一种应用界面迁移示意图,如图4所示,在接收到目标应用程序的运行指令时,将预加载活动窗口堆栈中包含的目标应用程序对应的应用界面401迁移至显示屏幕201进行显示,在一实施例中,将预加载应用界面所属的task迁移至应用活动窗口Stack的顶部,并更新该task的尺寸信息、配置信息和可见性,从而应用界面能够在显示屏幕上正常显示。In addition, FIG. 4 is a schematic diagram of application interface migration according to an embodiment of the present application. As shown in FIG. 4, when receiving a running instruction of a target application, an application corresponding to the target application included in the stack of the active window is preloaded. The interface 401 is migrated to the display screen 201 for display. In an embodiment, the task to which the preloaded application interface belongs is migrated to the top of the application active window Stack, and the size information, configuration information, and visibility of the task are updated, thereby applying the interface. Can be displayed normally on the display screen.
图5为本申请实施例提供的另一种应用预加载管理方法的流程示意图,该方法包括步骤501至步骤508。FIG. 5 is a schematic flowchart of another application preload management method according to an embodiment of the present disclosure, where the method includes steps 501 to 508.
在步骤501中,检测智能终端的传递操作。In step 501, a delivery operation of the smart terminal is detected.
在步骤502中,在检测到所述传递操作的情况下,获取当前用户的身份信息,并根据所述身份信息对当前用户进行鉴权处理。In step 502, in the case that the delivery operation is detected, the identity information of the current user is acquired, and the current user is authenticated according to the identity information.
在步骤503中,检测当前用户是否通过鉴权,在当前用户没有通过鉴权的情况下,执行步骤504;在当前用户通过鉴权的情况下,执行步骤505。In step 503, it is detected whether the current user passes the authentication, and if the current user does not pass the authentication, step 504 is performed; if the current user passes the authentication, step 505 is performed.
在步骤504中,放弃执行检测应用预加载事件的操作。In step 504, the operation of detecting an application preload event is discarded.
在步骤505中,检测应用预加载事件,并在所述应用预加载事件被触发时,确定待预加载的应用程序,基于预先创建的预加载活动窗口堆栈预加载所述应 用程序对应的应用界面,并执行步骤506。In step 505, an application preloading event is detected, and when the application preloading event is triggered, an application to be preloaded is determined, and an application interface corresponding to the application is preloaded based on a pre-created preloading active window stack. And step 506 is performed.
在步骤506中,向所述应用程序发送伪造焦点通知,并基于所述伪造焦点通知在预设时间段内保持所述应用程序对应的应用界面的持续绘制以及显示更新。In step 506, a forged focus notification is sent to the application, and based on the forged focus notification, the continuous drawing of the application interface corresponding to the application and the display update are maintained for a preset period of time.
在步骤507中,在接收到目标应用程序的运行指令时,将所述预加载活动窗口堆栈中包含的所述目标应用程序对应的任务栈迁移至应用活动窗口堆栈的顶部。In step 507, upon receiving the running instruction of the target application, the task stack corresponding to the target application included in the preloaded active window stack is migrated to the top of the application active window stack.
在一实施例中,以应用活动窗口为App Stack为例,将task移动到App Stack,可包括:从原stack(即预加载Stack)中的列表(list)中删除此task,在新stack(App Stack)中顶部添加此task。每个stack都有一个list,用以记录stack包含的所有task;对应地,每个task同时会记录本task所在的stack信息。因为stack包含相对其他stack可能不同的size、配置信息(configuration)、可见性和zorder等属性,所以仅仅将task添加到新stack的list中就可以改变task的zorder等属性。添加在新stack中的顶部是为了使该task是可见的。。In an embodiment, taking the application activity window as an App Stack as an example, moving the task to the App Stack may include: deleting the task from the list in the original stack (ie, preloading the Stack), in the new stack ( Add this task at the top of the App Stack). Each stack has a list for recording all the tasks contained in the stack; correspondingly, each task will also record the stack information of the task. Because the stack contains attributes such as size, configuration, visibility, and zorder that may be different from other stacks, simply adding the task to the list of new stacks can change the attributes of the task's zorder. The top of the new stack is added to make the task visible. .
在步骤508中,更新任务栈的尺寸信息、配置信息和可见性,以实现目标应用程序对应的当前应用界面在显示屏幕进行显示。In step 508, the size information, the configuration information, and the visibility of the task stack are updated, so that the current application interface corresponding to the target application is displayed on the display screen.
可以理解的是,在预加载过程中,应用程序对应的应用界面处于持续的绘制及显示更新过程中,而用户真正启动的目标应用程序的时机是不确定的,可能在预加载过程中就会接收到运行指令,那么可将当前在预加载Stack中显示的应用界面迁移到显示屏幕中进行显示。若用户在预加载完成之后,打开目标应用程序,那么可将预加载完成时的最后一个应用界面迁移到显示屏幕中进行显示。It can be understood that during the pre-loading process, the application interface corresponding to the application is in the process of continuous drawing and display updating, and the timing of the target application that the user actually starts is uncertain, and may be in the pre-loading process. Upon receiving the run command, the application interface currently displayed in the preloaded stack can be migrated to the display screen for display. If the user opens the target application after the preloading is completed, the last application interface when the preloading is completed can be migrated to the display screen for display.
在一实施例中,更新任务栈的尺寸信息、配置信息是为了改变应用的边界,可包括:主动更新size和configuration信息。仅仅使用上面的task迁移操作无法立即改变task的size和configuration,所以可主动调用修改task size和configuration的方法,保证该应用状态正确,可以正常地在前台工作。In an embodiment, the size information and the configuration information of the task stack are updated to change the boundary of the application, and may include: actively updating the size and configuration information. Only using the above task migration operation can not change the size and configuration of the task immediately, so you can call the method of modifying the task size and configuration to ensure that the application is in the correct state and can work normally in the foreground.
在一实施例中,更新task可见是因为,在更新了size和configuration后,此时目标应用可能还不可见,调用更新新stack可见性的方法,由顶部至底部搜索可见的应用,设置为可见,并更新对应的窗口surface可见。其中,可见的应用判断方法可包括:在zorder上未被其他应用遮挡;未被锁屏遮挡;应用的顶部activity的状态是非正在初始化或者非退出状态。In an embodiment, the update task is visible because, after updating the size and configuration, the target application may not be visible at this time, calling the method of updating the new stack visibility, and the application visible from the top to the bottom is set to be visible. And update the corresponding window surface to be visible. The visible application judging method may include: no occlusion by other applications on the zorder; no occlusion by the lock screen; the state of the top activity of the application is non-initializing or non-exiting.
本申请实施例提供的应用预加载管理方法,可以在当前用户通过鉴权的情况下,开启预加载功能,确定待预加载的应用程序,并基于在显示屏幕外面创建的预加载活动窗口堆栈对需要进行预加载的应用程序的应用界面进行绘制及显示,较大程度地完成应用启动前的准备工作,且不会影响到前台应用程序的 显示内容在显示屏幕上的显示,当目标应用程序被真正启动时,直接将预加载好的应用界面迁移到显示屏幕进行显示,从而有效提升启动速度。The application preloading management method provided by the embodiment of the present application can open the preloading function, determine the application to be preloaded, and based on the preloaded active window stack pair created outside the display screen, when the current user passes the authentication. The application interface of the preloaded application needs to be drawn and displayed, and the preparation work before the application is started is completed to a large extent, and the display content of the foreground application is not affected on the display screen, when the target application is When it is really started, the pre-loaded application interface is directly migrated to the display screen for display, thereby effectively improving the startup speed.
图6为本申请实施例提供的一种应用预加载管理装置的结构框图,该装置可由软件和/或硬件实现,一般集成在终端中,可通过执行应用预加载管理方法来对应用预加载的功能进行管理。如图6所示,该装置包括操作检测模块601,用户鉴权模块602以及状态调整模块603。FIG. 6 is a structural block diagram of an application preloading management apparatus according to an embodiment of the present disclosure. The apparatus may be implemented by software and/or hardware, and is generally integrated in a terminal, and may be preloaded by executing an application preloading management method. Features are managed. As shown in FIG. 6, the device includes an operation detection module 601, a user authentication module 602, and a state adjustment module 603.
操作检测模块601,设置为检测智能终端的传递操作。The operation detecting module 601 is configured to detect a delivery operation of the smart terminal.
用户鉴权模块602,设置为在检测到所述传递操作的情况下,获取当前用户的身份信息,并根据所述身份信息对当前用户进行鉴权处理。The user authentication module 602 is configured to acquire the identity information of the current user when the delivery operation is detected, and perform an authentication process on the current user according to the identity information.
状态调整模块603,设置为根据鉴权结果调整预加载功能的状态,其中,预加载功能包括根据历史使用记录预测即将启动的至少一个应用程序,并预加载所述应用程序。The state adjustment module 603 is configured to adjust a state of the preloading function according to the authentication result, wherein the preloading function includes predicting at least one application to be started according to the historical usage record, and preloading the application.
本申请实施例提供的应用预加载管理装置,通过检测智能终端是否发生传递操作,在智能终端发生传递操作的情况下,根据当前用户的身份信息对当前用户进行鉴权处理,并根据鉴权结果调整预加载功能的状态,其中,预加载功能包括根据历史使用记录预测即将启动的至少一个应用程序,并预加载所述应用程序。通过采用上述技术方案,可以检测发生传递操作后的当前用户是否具有预加载功能的使用权限,只有在当前用户具有权限时才开启预加载功能,从而避免了预加载功能的误触发,节省了智能终端的处理资源和存储资源,加快了智能终端的运行速度,提高了用户体验。The application preloading management apparatus provided by the embodiment of the present application performs the authentication operation on the smart terminal, and performs the authentication operation on the current user according to the identity information of the current user, and according to the authentication result, according to the identity information of the current user. Adjusting the state of the preloading function, wherein the preloading function includes predicting at least one application to be launched based on the historical usage record and preloading the application. By adopting the above technical solution, it is possible to detect whether the current user after the transfer operation has the use permission of the preload function, and only when the current user has the permission, the preload function is enabled, thereby avoiding the false trigger of the preload function and saving the intelligence. The processing resources and storage resources of the terminal accelerate the running speed of the intelligent terminal and improve the user experience.
在一实施例中,操作检测模块601,包括握持手势获取单元,加速度信息获取单元,变化参数确定单元以及传递操作确定单元。In an embodiment, the operation detecting module 601 includes a grip gesture acquiring unit, an acceleration information acquiring unit, a change parameter determining unit, and a transfer operation determining unit.
握持手势获取单元,设置为获取用户对所述智能终端的握持手势。The gesture holding unit is configured to acquire a holding gesture of the user to the smart terminal.
加速度信息获取单元,设置为获取所述智能终端的加速度信息。The acceleration information acquiring unit is configured to acquire acceleration information of the smart terminal.
变化参数确定单元,设置为在所述加速度信息满足第一预设条件的情况下,确定所述握持手势的状态变化参数。The change parameter determining unit is configured to determine a state change parameter of the grip gesture in a case where the acceleration information satisfies a first preset condition.
传递操作确定单元,设置为在所述状态变化参数满足第二预设条件的情况下,确定检测到智能终端的传递操作。The delivery operation determining unit is configured to determine that the delivery operation of the smart terminal is detected if the state change parameter satisfies the second preset condition.
在一实施例中,传递操作确定单元,设置为:在所述握持手势的握持方式改变的情况下,获取所述握持手势的握持压力的变化量;在所述变化量超过设定压力阈值的情况下,确定检测到智能终端的传递操作。In an embodiment, the transfer operation determining unit is configured to: obtain a change amount of the grip pressure of the grip gesture when the grip mode of the grip gesture is changed; In the case of a constant pressure threshold, it is determined that the delivery operation of the smart terminal is detected.
在一实施例中,用户鉴权模块602,设置为:在检测到所述传递操作的情况下,获取当前用户的面部图像;根据所述面部图像确定面部特征,将所述面部特征与预先存储的特征模板进行匹配;在所述面部特征与预先存储的特征模板匹配成功的情况下,确定当前用户通过鉴权。In an embodiment, the user authentication module 602 is configured to: acquire a facial image of the current user when the transfer operation is detected; determine a facial feature according to the facial image, and store the facial feature and pre-stored The feature template is matched; if the face feature is successfully matched with the pre-stored feature template, the current user is determined to pass the authentication.
在一实施例中,状态调整模块603,包括第一状态调整单元和第二状态调整单元。In an embodiment, the state adjustment module 603 includes a first state adjustment unit and a second state adjustment unit.
第一状态调整单元,设置为在当前用户通过鉴权的情况下,检测应用预加载事件,并在所述应用预加载事件被触发时,确定待预加载的应用程序,基于预先创建的预加载活动窗口堆栈预加载所述应用程序对应的应用界面,其中,所述预加载活动窗口堆栈对应的边界坐标位于显示屏幕的坐标范围之外。a first state adjusting unit, configured to detect an application preloading event when the current user passes the authentication, and determine an application to be preloaded when the application preloading event is triggered, based on the pre-created preloading The active window stack preloads an application interface corresponding to the application, wherein the boundary coordinates corresponding to the preloaded active window stack are outside the coordinate range of the display screen.
第二状态调整单元,设置为在当前用户未通过鉴权的情况下,放弃执行检测应用预加载事件的操作。The second state adjustment unit is configured to, when the current user fails to pass the authentication, abandon the operation of detecting the application preload event.
在一实施例中,基于预先创建的预加载活动窗口堆栈预加载所述应用程序对应的应用界面,包括:创建所述应用程序对应的目标进程;在预先创建的预加载活动窗口堆栈中创建所述应用程序对应的任务栈;基于所述目标进程在所述任务栈中启动所述应用程序对应的活动窗口;基于所启动的活动窗口绘制并显示所述应用程序对应的应用界面。In an embodiment, preloading the application interface corresponding to the application based on the pre-created preload active window stack includes: creating a target process corresponding to the application; creating a pre-created active window stack a task stack corresponding to the application; starting an activity window corresponding to the application in the task stack based on the target process; and drawing and displaying an application interface corresponding to the application based on the activated activity window.
在一实施例中,该装置还包括:伪造焦点模块,设置为向所述应用程序发送伪造焦点通知,并基于所述伪造焦点通知在预设时间段内保持所述应用程序对应的应用界面的持续绘制以及显示更新,其中,所述预设时间段的长度包括所述应用程序中启动广告或启动动画的播放时长。In an embodiment, the apparatus further includes: a forged focus module configured to send a forged focus notification to the application, and to maintain the application interface corresponding to the application within a preset time period based on the forged focus notification Continuously drawing and displaying an update, wherein the length of the preset time period includes a play duration for starting an advertisement or starting an animation in the application.
在一实施例中,该装置还包括:界面迁移模块,设置为在基于预先创建的预加载活动窗口堆栈预加载所述应用程序对应的应用界面之后,在接收到目标应用程序的运行指令时,将所述预加载活动窗口堆栈中包含的所述目标应用程序对应的应用界面迁移至所述显示屏幕进行显示。In an embodiment, the apparatus further includes: an interface migration module, configured to: after preloading the application interface corresponding to the application based on the pre-created preload active window stack, upon receiving the running instruction of the target application, The application interface corresponding to the target application included in the preloaded active window stack is migrated to the display screen for display.
在一实施例中,将所述预加载活动窗口堆栈中包含的所述目标应用程序对应的应用界面迁移至所述显示屏幕进行显示,包括:将所述预加载活动窗口堆栈中包含的所述目标应用程序对应的任务栈迁移至应用活动窗口堆栈的顶部;更新所述任务栈的尺寸信息、配置信息和可见性,以实现所述目标应用程序对应的应用界面在所述显示屏幕进行显示。In an embodiment, migrating the application interface corresponding to the target application included in the preloaded active window stack to the display screen for display comprises: including the pre-loaded active window stack The task stack corresponding to the target application is migrated to the top of the application active window stack; the size information, the configuration information, and the visibility of the task stack are updated, so that the application interface corresponding to the target application is displayed on the display screen.
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时设置为执行应用预加载管理方法,该方法包括:检测智能终端的传递操作;在检测到所述传递操作的情况下,获取当前用户的身份信息,并根据所述身份信息对当前用户进行鉴权处理;根据鉴权结果调整预加载功能的状态,其中,预加载功能包括根据历史使用记录预测即将启动的至少一个应用程序,并预加载所述应用程序。The embodiment of the present application further provides a storage medium including computer executable instructions, which are set to execute an application preload management method when executed by a computer processor, the method comprising: detecting a delivery operation of the smart terminal; If the transfer operation is detected, the identity information of the current user is obtained, and the current user is authenticated according to the identity information; and the state of the preload function is adjusted according to the authentication result, where the preload function includes The history usage record predicts at least one application to be launched and preloads the application.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如只读光盘(Compact Disc Read-Only Memory,CD-ROM)、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如动态 随机存取存储器(Dynamic Random Access Memory,DRAM)、双倍数据速率随机存取存储器(Double Data Rate Random Access Memory,DDR RAM)、静态随机存取存储器(Static Random Access Memory,SRAM)、扩充数据输出随机存储器(Extended Data Output Random Access Memory,EDO RAM),兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。Storage media - any of a variety of types of memory devices or storage devices. The term "storage medium" is intended to include: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as a dynamic random access memory ( Dynamic Random Access Memory (DRAM), Double Data Rate Random Access Memory (DDR RAM), Static Random Access Memory (SRAM), Extended Data Output Random Access Memory (Extended Data) Output Random Access Memory (EDO RAM), Rambus RAM, etc.; non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, and the like. The storage medium may also include other types of memory or a combination thereof. Additionally, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet. The second computer system can provide program instructions to the first computer for execution. The term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network). A storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的应用预加载管理操作,还可以执行本申请任意实施例所提供的应用预加载管理方法中的相关操作。Of course, the storage medium containing the computer executable instructions provided by the embodiment of the present application, the computer executable instructions are not limited to the application preload management operation as described above, and may also perform the application prepayment provided by any embodiment of the present application. Load related operations in the management method.
本申请实施例提供了一种智能终端,该智能终端可集成本申请实施例提供的应用预加载管理装置。图7为本申请实施例提供的一种智能终端的结构示意图。智能终端700可以包括:存储器701,处理器702及存储在存储器701上并可在处理器702运行的计算机程序,所述处理器702执行所述计算机程序时实现如本申请实施例所述的应用预加载管理方法。The embodiment of the present application provides an intelligent terminal, which can integrate the application preload management device provided by the embodiment of the present application. FIG. 7 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present disclosure. The smart terminal 700 can include a memory 701, a processor 702, and a computer program stored on the memory 701 and executable by the processor 702. The processor 702 executes the computer program to implement the application as described in the embodiment of the present application. Preload management method.
本申请实施例提供的智能终端,可以检测智能终端是否发生传递操作,在智能终端发生传递操作的情况下,根据当前用户的身份信息对当前用户进行鉴权处理,并根据鉴权结果调整预加载功能的状态,使得在当前用户具有权限时开启预加载功能,从而避免了预加载功能的误触发,节省了智能终端的处理资源和存储资源,加快了智能终端的运行速度,提高了用户体验。The smart terminal provided by the embodiment of the present invention can detect whether the smart terminal has a transfer operation, and if the smart terminal generates a transfer operation, the current user is authenticated according to the identity information of the current user, and the preload is adjusted according to the authentication result. The status of the function enables the preloading function to be enabled when the current user has the right, thereby avoiding the false triggering of the preloading function, saving the processing resources and storage resources of the intelligent terminal, accelerating the running speed of the intelligent terminal, and improving the user experience.
图8为本申请实施例提供的另一种智能终端的结构示意图,该智能终端可以包括:壳体(图中未示出)、存储器801、中央处理器(central processing unit,CPU)802(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU802和所述存储器801设置在所述电路板上;所述电源电路,设置为为所述终端的各个电路或器件供电;所述存储器801,设置为存储可执行程序代码;所述CPU802通过读取所述存储器801中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:检测智能终端的传递操作;在检测到所述传递操作的情况下,获取当前用户的身份信息,并根据所述身份信息对当前用户进行鉴权处理;根据鉴权结果调整预加载功能的状态,其中,预加载功 能包括根据历史使用记录预测即将启动的至少一个应用程序,并预加载所述应用程序。FIG. 8 is a schematic structural diagram of another smart terminal according to an embodiment of the present disclosure. The smart terminal may include: a casing (not shown), a memory 801, and a central processing unit (CPU) 802 (again The processor is referred to as a CPU, a circuit board (not shown), and a power supply circuit (not shown). The circuit board is disposed inside a space enclosed by the casing; the CPU 802 and the memory 801 are disposed on the circuit board; and the power circuit is configured to supply power to each circuit or device of the terminal; The memory 801 is configured to store executable program code; the CPU 802 runs a computer program corresponding to the executable program code by reading executable program code stored in the memory 801 to implement the following steps: detecting The delivery operation of the smart terminal; in the case that the transfer operation is detected, the identity information of the current user is obtained, and the current user is authenticated according to the identity information; and the state of the preload function is adjusted according to the authentication result, wherein The preloading function includes predicting at least one application to be launched based on the historical usage record and preloading the application.
所述智能终端还包括:外设接口803、射频(Radio Frequency,RF)电路805、音频电路806、扬声器811、电源管理芯片808、输入/输出(Input/Output,I/O)子系统809、其他输入/控制设备810、触摸屏812、其他输入/控制设备810以及外部端口804,这些部件通过一个或多个通信总线或信号线807来通信。The smart terminal further includes: a peripheral interface 803, a radio frequency (RF) circuit 805, an audio circuit 806, a speaker 811, a power management chip 808, and an input/output (I/O) subsystem 809. Other input/control devices 810, touch screen 812, other input/control devices 810, and external port 804 are communicated via one or more communication buses or signal lines 807.
应该理解的是,图示智能终端800仅仅是终端的一个范例,并且示智能终端800可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated smart terminal 800 is merely one example of a terminal, and that the smart terminal 800 may have more or fewer components than those shown in the figures, and two or more components may be combined. Or it can have different component configurations. The various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于应用预加载管理的终端进行详细的描述,该终端以手机为例。The terminal for applying preload management provided in this embodiment is described in detail below. The terminal uses a mobile phone as an example.
存储器801,所述存储器801可以被CPU802、外设接口803等访问,所述存储器801可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 801 can be accessed by the CPU 802, the peripheral interface 803, etc., and the memory 801 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
外设接口803,所述外设接口803可以将设备的输入和输出外设连接到CPU802和存储器801。 Peripheral interface 803, which can connect the input and output peripherals of the device to CPU 802 and memory 801.
I/O子系统809,所述I/O子系统809可以将设备上的输入输出外设,例如触摸屏812和其他输入/控制设备810,连接到外设接口803。I/O子系统809可以包括显示控制器8091和设置为控制其他输入/控制设备810的一个或多个输入控制器8092。其中,一个或多个输入控制器8092从其他输入/控制设备810接收电信号或者向其他输入/控制设备810发送电信号,其他输入/控制设备810可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器8092可以与以下任一个连接:键盘、红外端口、通用串行总线(Universal Serial Bus,USB)接口以及诸如鼠标的指示设备。I/O subsystem 809, which can connect input and output peripherals on the device, such as touch screen 812 and other input/control devices 810, to peripheral interface 803. I/O subsystem 809 can include display controller 8091 and one or more input controllers 8092 that are configured to control other input/control devices 810. Wherein, one or more input controllers 8092 receive electrical signals from other input/control devices 810 or transmit electrical signals to other input/control devices 810, and other input/control devices 810 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel. It is worth noting that the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a Universal Serial Bus (USB) interface, and a pointing device such as a mouse.
触摸屏812,所述触摸屏812是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标以及视频等。The touch screen 812 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user. The visual output may include graphics, text, icons, videos, and the like.
摄像头813,通过外设接口803与CPU802和存储器801连接,设置为拍摄当前用户的面部图像,并将拍摄得到的面部图像发送至存储器801进行存储,以便CPU802由存储器801内读取面部图像执行鉴权处理。The camera 813 is connected to the CPU 802 and the memory 801 through the peripheral interface 803, and is configured to capture a facial image of the current user, and send the captured facial image to the memory 801 for storage, so that the CPU 802 reads the facial image from the memory 801. Right processing.
I/O子系统809中的显示控制器8091从触摸屏812接收电信号或者向触摸屏812发送电信号。触摸屏812检测触摸屏上的接触,显示控制器8091将检测到的接触转换为与显示在触摸屏812上的用户界面对象的交互,即实现人机交互,显示在触摸屏812上的用户界面对象可以是运行游戏的图标、联网到相应 网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。 Display controller 8091 in I/O subsystem 809 receives an electrical signal from touch screen 812 or an electrical signal to touch screen 812. The touch screen 812 detects the contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 812, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 812 may be running. The icon of the game, the icon of the network to the corresponding network, and the like. It is worth noting that the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
RF电路805,主要设置为建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。在一实施例中,RF电路805接收并发送RF信号,RF信号也称为电磁信号,RF电路805将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路805可以包括设置为执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、编译码器(COder-DECoder,CODEC)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 805 is mainly configured to establish communication between the mobile phone and the wireless network (ie, the network side), and implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. In one embodiment, RF circuit 805 receives and transmits an RF signal, also referred to as an electromagnetic signal, and RF circuit 805 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network And other devices to communicate. RF circuitry 805 may include known circuitry configured to perform these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
音频电路806,主要设置为从外设接口803接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器811。The audio circuit 806 is primarily configured to receive audio data from the peripheral interface 803, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 811.
扬声器811,设置为将手机通过RF电路805从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 811 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 805 to sound and play the sound to the user.
电源管理芯片808,设置为为CPU802、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 808 is configured to provide power and power management for the hardware connected to the CPU 802, the I/O subsystem, and the peripheral interface.
上述实施例中提供的应用预加载管理装置、存储介质及智能终端可执行本申请任意实施例所提供的应用预加载管理方法,具备执行该方法相应的功能模块。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的应用预加载管理方法。The application preload management device, the storage medium, and the smart terminal provided in the foregoing embodiments may be configured to provide an application preload management method provided by any embodiment of the present application, and have a corresponding functional module for executing the method. For the technical details that are not described in detail in the foregoing embodiments, refer to the application preload management method provided by any embodiment of the present application.
Claims (15)
- 一种应用预加载管理方法,包括:An application preload management method includes:检测智能终端的传递操作;Detecting the delivery operation of the smart terminal;在检测到所述传递操作的情况下,获取当前用户的身份信息,并根据所述身份信息对当前用户进行鉴权处理;When the delivery operation is detected, acquiring identity information of the current user, and performing authentication processing on the current user according to the identity information;根据鉴权结果调整预加载功能的状态,其中,预加载功能包括根据历史使用记录预测即将启动的至少一个应用程序,并预加载所述应用程序。Adjusting the state of the preloading function according to the authentication result, wherein the preloading function includes predicting at least one application to be started according to the historical usage record, and preloading the application.
- 根据权利要求1所述的方法,其中,检测智能终端的传递操作,包括:The method of claim 1, wherein detecting the delivery operation of the smart terminal comprises:获取用户对所述智能终端的握持手势;Obtaining a user's holding gesture for the smart terminal;获取所述智能终端的加速度信息;Obtaining acceleration information of the smart terminal;在所述加速度信息满足第一预设条件的情况下,确定所述握持手势的状态变化参数;Determining a state change parameter of the holding gesture when the acceleration information satisfies a first preset condition;在所述状态变化参数满足第二预设条件的情况下,确定检测到智能终端的传递操作。In a case where the state change parameter satisfies the second preset condition, it is determined that the delivery operation of the smart terminal is detected.
- 根据权利要求2所述的方法,其中,在所述状态变化参数满足第二预设条件的情况下,确定检测到智能终端的传递操作,包括:The method according to claim 2, wherein, if the state change parameter satisfies the second preset condition, determining that the delivery operation of the smart terminal is detected comprises:在所述握持手势的握持方式改变的情况下,获取所述握持手势的握持压力的变化量;Obtaining a change amount of the holding pressure of the holding gesture when the holding manner of the holding gesture is changed;在所述变化量超过设定压力阈值的情况下,确定检测到智能终端的传递操作。In the case where the amount of change exceeds the set pressure threshold, it is determined that the delivery operation of the smart terminal is detected.
- 根据权利要求1所述的方法,其中,在检测到所述传递操作的情况下,获取当前用户的身份信息,并根据所述身份信息对当前用户进行鉴权处理,包括:The method according to claim 1, wherein, in the case that the delivery operation is detected, the identity information of the current user is acquired, and the current user is authenticated according to the identity information, including:在检测到所述传递操作的情况下,获取当前用户的面部图像;Obtaining a face image of the current user when the transfer operation is detected;根据所述面部图像确定面部特征,将所述面部特征与预先存储的特征模板进行匹配;Determining a facial feature according to the facial image, and matching the facial feature with a pre-stored feature template;在所述面部特征与预先存储的特征模板匹配成功的情况下,确定当前用户通过鉴权。In the case that the facial feature is successfully matched with the pre-stored feature template, it is determined that the current user passes the authentication.
- 根据权利要求1至4中任一项所述的方法,其中,根据鉴权结果调整预加载功能的状态,包括:The method according to any one of claims 1 to 4, wherein adjusting the state of the preloading function according to the authentication result comprises:在当前用户通过鉴权的情况下,检测应用预加载事件,并在所述应用预加载事件被触发时,确定待预加载的应用程序,基于预先创建的预加载活动窗口堆栈预加载所述应用程序对应的应用界面,其中,所述预加载活动窗口堆栈对应的边界坐标位于显示屏幕的坐标范围之外;In the case that the current user passes the authentication, the application preload event is detected, and when the application preload event is triggered, the application to be preloaded is determined, and the application is preloaded based on the pre-created preload active window stack. An application interface corresponding to the program, wherein the boundary coordinates corresponding to the preloaded active window stack are outside the coordinate range of the display screen;在当前用户未通过鉴权的情况下,放弃执行检测应用预加载事件的操作。In the case that the current user has not passed the authentication, the operation of detecting the application preload event is abandoned.
- 根据权利要求5所述的方法,其中,基于预先创建的预加载活动窗口堆栈预加载所述应用程序对应的应用界面,包括:The method of claim 5, wherein preloading the application interface corresponding to the application based on the pre-created preloaded active window stack comprises:创建所述应用程序对应的目标进程;Creating a target process corresponding to the application;在预先创建的预加载活动窗口堆栈中创建所述应用程序对应的任务栈;Creating a task stack corresponding to the application in a pre-created preloaded active window stack;基于所述目标进程在所述任务栈中启动所述应用程序对应的活动窗口;Starting an activity window corresponding to the application in the task stack based on the target process;基于所启动的活动窗口绘制并显示所述应用程序对应的应用界面。The application interface corresponding to the application is drawn and displayed based on the activated activity window.
- 根据权利要求6所述的方法,还包括:The method of claim 6 further comprising:向所述应用程序发送伪造焦点通知,并基于所述伪造焦点通知在预设时间段内保持所述应用程序对应的应用界面的持续绘制以及显示更新,其中,所述预设时间段的长度包括所述应用程序中启动广告或启动动画的播放时长。Sending a forged focus notification to the application, and maintaining a continuous drawing and a display update of the application interface corresponding to the application within a preset time period based on the forged focus notification, wherein the length of the preset time period includes The duration in which the ad is launched or the animation is started in the application.
- 一种应用预加载管理装置,包括:An application preload management device includes:操作检测模块,设置为检测智能终端的传递操作;An operation detecting module configured to detect a delivery operation of the smart terminal;用户鉴权模块,设置为在检测到所述传递操作的情况下,获取当前用户的身份信息,并根据所述身份信息对当前用户进行鉴权处理;The user authentication module is configured to acquire identity information of the current user when the delivery operation is detected, and perform authentication processing on the current user according to the identity information;状态调整模块,设置为根据鉴权结果调整预加载功能的状态,其中,预加载功能包括根据历史使用记录预测即将启动的至少一个应用程序,并预加载所述应用程序。The state adjustment module is configured to adjust a state of the preloading function according to the authentication result, wherein the preloading function includes predicting at least one application to be started according to the historical usage record, and preloading the application.
- 根据权利要求8所述的装置,其中,所述操作检测模块包括:The apparatus of claim 8 wherein said operation detection module comprises:握持手势获取单元,设置为获取用户对所述智能终端的握持手势;Holding a gesture acquiring unit, configured to acquire a grip gesture of the user to the smart terminal;加速度信息获取单元,设置为获取所述智能终端的加速度信息;The acceleration information acquiring unit is configured to acquire acceleration information of the smart terminal;变化参数确定单元,设置为在所述加速度信息满足第一预设条件的情况下,确定所述握持手势的状态变化参数;a change parameter determining unit, configured to determine a state change parameter of the hold gesture if the acceleration information satisfies a first preset condition;传递操作确定单元,设置为在所述状态变化参数满足第二预设条件的情况下,确定检测到智能终端的传递操作。The delivery operation determining unit is configured to determine that the delivery operation of the smart terminal is detected if the state change parameter satisfies the second preset condition.
- 根据权利要求8所述的装置,其中,所述用户鉴权模块设置为:The apparatus of claim 8 wherein said user authentication module is configured to:在检测到所述传递操作的情况下,获取当前用户的面部图像;根据所述面部图像确定面部特征,将所述面部特征与预先存储的特征模板进行匹配;在所述面部特征与预先存储的特征模板匹配成功的情况下,确定当前用户通过鉴权。Obtaining a face image of the current user when the transfer operation is detected; determining a face feature according to the face image, matching the face feature with a pre-stored feature template; and pre-storing the facial feature In the case that the feature template is successfully matched, it is determined that the current user passes the authentication.
- 根据权利要求8-10中任一项所述的装置,其中,所述状态调整模块包括:The apparatus of any of claims 8-10, wherein the state adjustment module comprises:第一状态调整单元,设置为在当前用户通过鉴权的情况下,检测应用预加载事件,并在所述应用预加载事件被触发时,确定待预加载的应用程序,基于 预先创建的预加载活动窗口堆栈预加载所述应用程序对应的应用界面,其中,所述预加载活动窗口堆栈对应的边界坐标位于显示屏幕的坐标范围之外;a first state adjusting unit, configured to detect an application preloading event when the current user passes the authentication, and determine an application to be preloaded when the application preloading event is triggered, based on the pre-created preloading The active window stack preloads an application interface corresponding to the application, wherein the boundary coordinates corresponding to the preloaded active window stack are outside the coordinate range of the display screen;第二状态调整单元,设置为在当前用户未通过鉴权的情况下,放弃执行检测应用预加载事件的操作。The second state adjustment unit is configured to, when the current user fails to pass the authentication, abandon the operation of detecting the application preload event.
- 根据权利要求11所述的装置,还包括:The apparatus of claim 11 further comprising:伪造焦点模块,设置为向所述应用程序发送伪造焦点通知,并基于所述伪造焦点通知在预设时间段内保持所述应用程序对应的应用界面的持续绘制以及显示更新,其中,所述预设时间段的长度包括所述应用程序中启动广告或启动动画的播放时长。Forging a focus module, configured to send a forged focus notification to the application, and based on the forged focus notification, maintaining a continuous drawing and displaying an update of an application interface corresponding to the application within a preset time period, wherein the pre- The length of the time period includes the duration of the play in which the advertisement is launched or the animation is started.
- 根据权利要求11所述的装置,还包括:The apparatus of claim 11 further comprising:界面迁移模块,设置为在基于预先创建的预加载活动窗口堆栈预加载所述应用程序对应的应用界面之后,在接收到目标应用程序的运行指令时,将所述预加载活动窗口堆栈中包含的所述目标应用程序对应的应用界面迁移至所述显示屏幕进行显示。An interface migration module, configured to: after the pre-created preloaded active window stack preloads the application interface corresponding to the application, when the running instruction of the target application is received, the preloaded active window stack is included The application interface corresponding to the target application is migrated to the display screen for display.
- 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的应用预加载管理方法。A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the application preload management method according to any one of claims 1 to 7.
- 一种智能终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至7中任一项所述的应用预加载管理方法。An intelligent terminal comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the application according to any one of claims 1 to 7. Preload management method.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810464030.6 | 2018-05-15 | ||
CN201810464030.6A CN108920202B (en) | 2018-05-15 | 2018-05-15 | Application preloading management method and device, storage medium and intelligent terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019218886A1 true WO2019218886A1 (en) | 2019-11-21 |
Family
ID=64404307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/085669 WO2019218886A1 (en) | 2018-05-15 | 2019-05-06 | Application pre-loading management method, device, storage medium and smart terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108920202B (en) |
WO (1) | WO2019218886A1 (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108920202B (en) * | 2018-05-15 | 2020-09-15 | Oppo广东移动通信有限公司 | Application preloading management method and device, storage medium and intelligent terminal |
CN112783636B (en) * | 2019-11-07 | 2024-05-28 | 北京小米移动软件有限公司 | Resource allocation method, device and storage medium |
CN112905255A (en) * | 2019-11-19 | 2021-06-04 | 阿里巴巴集团控股有限公司 | Information processing method and device and electronic equipment |
CN111597027A (en) * | 2020-05-15 | 2020-08-28 | 北京百度网讯科技有限公司 | Application program starting method, device, equipment and storage medium |
CN111857871A (en) * | 2020-07-06 | 2020-10-30 | 博泰车联网(南京)有限公司 | Application starting method, terminal and computer storage medium |
KR20220101434A (en) * | 2021-01-11 | 2022-07-19 | 삼성전자주식회사 | Method for operating service and electronic device supporting the same |
CN114915437B (en) * | 2021-02-09 | 2023-08-04 | 华为技术有限公司 | Development kit authentication method and related equipment |
CN114461897B (en) * | 2021-12-21 | 2024-09-20 | 北京达佳互联信息技术有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
CN115562772B (en) * | 2022-03-31 | 2023-10-27 | 荣耀终端有限公司 | Scene recognition and preprocessing method and electronic equipment |
CN114661377B (en) * | 2022-03-31 | 2024-08-27 | 四川酷赛科技有限公司 | Software preloading method and system based on position information |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003076551A (en) * | 2001-09-03 | 2003-03-14 | Nec Corp | Method and system for installing os using cellular telephone |
CN104700039A (en) * | 2013-12-06 | 2015-06-10 | 中兴通讯股份有限公司 | User interface loading method and device as well as thin terminal |
CN105554222A (en) * | 2015-12-07 | 2016-05-04 | 联想(北京)有限公司 | Control method and electronic equipment |
CN108920202A (en) * | 2018-05-15 | 2018-11-30 | Oppo广东移动通信有限公司 | Using preloading management method, device, storage medium and intelligent terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246450A (en) * | 2013-04-22 | 2013-08-14 | 广东欧珀移动通信有限公司 | Mobile terminal and user switching method of same |
CN103475780A (en) * | 2013-09-10 | 2013-12-25 | 深圳Tcl新技术有限公司 | Method of mobile terminal for responding to operation according to different user identities and mobile terminal |
CN107590464A (en) * | 2017-09-12 | 2018-01-16 | 广东欧珀移动通信有限公司 | Face identification method and Related product |
-
2018
- 2018-05-15 CN CN201810464030.6A patent/CN108920202B/en not_active Expired - Fee Related
-
2019
- 2019-05-06 WO PCT/CN2019/085669 patent/WO2019218886A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003076551A (en) * | 2001-09-03 | 2003-03-14 | Nec Corp | Method and system for installing os using cellular telephone |
CN104700039A (en) * | 2013-12-06 | 2015-06-10 | 中兴通讯股份有限公司 | User interface loading method and device as well as thin terminal |
CN105554222A (en) * | 2015-12-07 | 2016-05-04 | 联想(北京)有限公司 | Control method and electronic equipment |
CN108920202A (en) * | 2018-05-15 | 2018-11-30 | Oppo广东移动通信有限公司 | Using preloading management method, device, storage medium and intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108920202A (en) | 2018-11-30 |
CN108920202B (en) | 2020-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019218886A1 (en) | Application pre-loading management method, device, storage medium and smart terminal | |
CN108614722B (en) | Application program preloading method and device, storage medium and terminal | |
CN108647055B (en) | Application program preloading method and device, storage medium and terminal | |
CN108762843B (en) | Application program preloading method and device, storage medium and intelligent terminal | |
CN108595230B (en) | Application program preloading method and device, storage medium and terminal | |
US11604660B2 (en) | Method for launching application, storage medium, and terminal | |
US11467855B2 (en) | Application preloading method and device, storage medium and terminal | |
EP3575961B1 (en) | Method and apparatus for updating application prediction model, storage medium, and terminal | |
CN108363593B (en) | Application program preloading method and device, storage medium and terminal | |
WO2019206213A1 (en) | Application program pre-loading method and apparatus, and storage medium and terminal | |
CN108958830B (en) | Application program starting method and device, storage medium and terminal | |
CN108762831B (en) | Application program preloading method and device, storage medium and terminal | |
US11099861B2 (en) | Method for preloading application, storage medium, and terminal | |
WO2019218885A1 (en) | Application program pre-loading method and apparatus, and storage medium and intelligent terminal | |
WO2019019816A1 (en) | Method and device for reducing power consumption of mobile terminal, storage medium and mobile terminal | |
WO2019223511A1 (en) | Application program preloading method and apparatus, storage medium, and terminal | |
CN108776599B (en) | Management method and device for preloaded application, storage medium and intelligent terminal | |
WO2019214477A1 (en) | Application program pre-loading method and device, storage medium and terminal | |
WO2019228149A1 (en) | Collection method and apparatus for prediction sample, and storage medium and smart terminal | |
WO2019214476A1 (en) | Screen direction setting method and device, storage medium and terminal | |
CN108664286B (en) | Application program preloading method and device, storage medium and mobile terminal | |
CN108845838A (en) | Application program preloads method, apparatus, storage medium and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19802542 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19802542 Country of ref document: EP Kind code of ref document: A1 |