Terminal control method, electronic equipment and computer readable storage medium
By obtaining the usage time of the application type and using the association relationship to control the locking or interference of the application, it solves the problem that users find it difficult to reasonably manage the application time of electronic devices, and promotes the improvement of healthy digital life habits and user experience.
Patent Information
- Application Number
- CN202411058657.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-12-03
AI Technical Summary
There is a lack of effective methods in the prior art to guide users to reasonably allocate and manage application usage time on electronic devices, making it difficult for users to form healthy and balanced digital life habits.
By obtaining the usage time of the application type, if the available time exceeds the time, the application will be controlled to enter a locked state or use the interference method, and use the correlation between the application types to guide users to allocate time reasonably.
Effectively encourage users to develop good use habits for electronic products, improve user experience, avoid excessive addiction, and achieve reasonable management of time.
Smart Images

Figure CN119071387A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a terminal control method, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the rapid development of electronic technology and information technology, electronic devices such as smart phones and tablet computers have become indispensable tools for life and work in modern society, profoundly affecting people's daily activities. These devices greatly facilitate information acquisition, work collaboration, learning improvement, and leisure and entertainment. However, their widespread use has also brought a series of negative effects that cannot be ignored. Entertainment functions such as games, short videos, and news browsing of electronic devices can easily cause users to overuse their mobile phones for a long time. On the other hand, for learning software applications or sports software applications of electronic devices, users are generally not very enthusiastic about using them. This has caused the problem that the use time of various applications on electronic devices cannot be reasonably managed, and it is difficult for users to form healthy and balanced digital life habits. The relevant technology mainly includes limiting the use time of specific applications and setting the permission to use applications within a specified time period. However, these methods mostly adopt relatively rigid restriction measures, and the implementation effect is not good. That is, there is no effective way in the relevant technology to guide users to reasonably allocate and manage the use time of various applications on electronic devices, and there is a lack of a scientific and humane solution. Summary of the invention
[0003] The main purpose of the present application is to provide a terminal control method, an electronic device and a computer-readable storage medium, aiming to solve the technical problem that there is no effective way to guide users to reasonably allocate and manage the usage time of various applications on electronic devices in the related art.
[0004] To achieve the above object, the present application provides a terminal control method, comprising: Obtaining a first usage duration of an application of a first type; When the first usage duration is greater than the first available duration, controlling the first type of application to enter a locked state, or interfering with the operation of the first type of application in a preset interference manner; There is a first association relationship between the first available duration and the second usage duration of the application of the second type.
[0005] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes: a memory, a processor, and a terminal control program stored in the memory and executable on the processor, and the terminal control program implements the terminal control method as described above when executed by the processor.
[0006] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a terminal control program is stored, and when the terminal control program is executed by a processor, the terminal control method as described above is implemented.
[0007] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a terminal control program, and when the terminal control program is executed by a processor, the steps of the terminal control method as described above are implemented.
[0008] An embodiment of the present application provides a terminal control method, an electronic device and a computer-readable storage medium. The technical solution of the embodiment of the present application is to obtain a first usage time of an application of a first type, and when the first usage time is greater than a first available time, control the first type of application to enter a locked state, or interfere with the operation of the first type of application in a preset interference manner, wherein a first association relationship exists between the first available time and the second usage time of the application of a second type, so that the available time of applications of various application types has association, and this association can help users reasonably allocate the usage time of various applications by setting beneficial association rules, thereby effectively guiding users to reasonably allocate and manage the usage time of various applications on electronic devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0010] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0011] Figure 1 A flowchart of the first embodiment of the terminal control method of the present application is provided; Figure 2 A flowchart of the third embodiment of the terminal control method of the present application is provided; Figure 3 A flowchart of the fourth embodiment of the terminal control method of the present application is provided; Figure 4 A flowchart of the fifth embodiment of the terminal control method of the present application is provided; Figure 5 A flowchart of a specific embodiment of the present application is provided; Figure 6 A schematic diagram of a flow chart of a large model identification application type provided in a specific embodiment of the present application; Figure 7 A schematic diagram of calculating the usage time provided in a specific embodiment of the present application; Figure 8 A schematic diagram of a module provided for a specific embodiment of the present application; Fig. 9 This is a schematic diagram of the device structure of the hardware operating environment involved in the terminal control method in the embodiment of the present application.
[0012] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0013] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0014] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0015] At present, there is no effective method in the relevant technology to guide users to reasonably allocate and manage the usage time of various applications on electronic devices, and there is a lack of a solution that is both scientific and humane.
[0016] The main solution of the present application is: obtaining a first usage time of an application of a first type; when the first usage time is greater than a first available time, controlling the first type of application to enter a locked state, or interfering with the operation of the first type of application in a preset interference manner; wherein, there is a first correlation relationship between the first available time and the second usage time of the application of a second type.
[0017] This application does not rigidly limit the usage time of a certain application or a certain type of application, but guides users to use electronic devices reasonably through an association mechanism. Through this association mechanism, compared with the related art that directly limits the usage time of specific applications and sets the permission to use applications within a specified time period, the embodiment of this application can more effectively encourage users to develop good habits of using electronic products and living habits, fully mobilize the subjective initiative of users, and use electronic products reasonably with a positive attitude, which is beneficial to the physical and mental health of users. The embodiment of this application makes the available time of various applications correlated. Users can set various beneficial rules through this correlation to help users reasonably allocate the usage time of various applications, avoid various contradictions and problems caused by excessive addiction to a certain type of application, improve user experience, and effectively guide users to reasonably allocate and manage the usage time of various applications on electronic devices.
[0018] It should be noted that the execution subject of this application may include but is not limited to mobile phones (i.e., mobile phones), laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions: tablet computers), PMPs (Portable Media Players: portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals) and other mobile terminals, as well as fixed terminals such as digital TVs (Televisions), desktop computers, etc., or any terminal device that can achieve the above functions, and this application does not make specific restrictions on this. The following uses the terminal device as an example of the execution subject to illustrate the following embodiments of this application.
[0019] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0020] Please refer to Figure 1 , Figure 1 A flowchart of the first embodiment of the terminal control method of the present application is provided.
[0021] The present application proposes a terminal control method of a first embodiment, comprising steps S100 to S200: Step S100, obtaining a first usage duration of an application of a first type; It should be noted that, in this embodiment, the applications in the terminal device are pre-divided into a plurality of different application types, and the plurality of different application types at least include a first type and a second type.
[0022] It is easy to understand that the usage duration refers to the usage duration. In this embodiment, the first usage duration refers to the total usage duration of all applications of the first type in the terminal device, also referred to as the total usage duration of the first type.
[0023] In this embodiment, the terminal device will pre-classify the installed applications into different application types, and count the total usage time of each application type respectively, so as to obtain the first usage time, thereby providing an accurate data basis for subsequent control.
[0024] In this embodiment, the terminal device can accurately record the usage time of each application, and then summarize it by application type to obtain the total usage time of each application type. It can also not count the usage time of a specific application separately, but when the terminal runs an application, count the running time of the application at that time, and add it to the total usage time of the application type to which the application belongs, thereby obtaining the total usage time of each application type.
[0025] For example, in a feasible implementation, the first type of application is an entertainment application, and the second type of application is a learning application or a sports application.
[0026] It is not difficult to understand that entertainment applications refer to applications that provide entertainment services, such as game applications, animation applications, etc., learning applications refer to applications that provide learning resources and services, such as online course applications, language learning applications, etc., and sports applications refer to applications that provide sports guidance, fitness plans or health tracking, such as running applications, gymnastics applications, etc.
[0027] In this embodiment, the terminal device classifies entertainment applications such as game applications and animation applications as first type applications, and classifies learning applications such as online course applications and language learning applications, or sports applications such as running applications and gymnastics applications as second type applications, and separately counts the total usage time of the first type and the total usage time of the second type, that is, separately counts the total usage time of entertainment applications and the total usage time of learning applications or sports applications.
[0028] For ease of understanding, in one example, a total of three applications, namely, game application A, animation application B, and running application C, are installed in the terminal device. Among them, game application A and animation application B are applications of the first type, and running application C is an application of the second type. The terminal device can count the usage time of game application A, animation application B, and running application C respectively, and then summarize them by application type, so that the total usage time of the first type is the sum of the usage time of game application A and the usage time of animation application B, and the total usage time of the second type is the usage time of running application C. The terminal can also count the running time of game application A when running game application A, and add it to the total usage time of the first type; when running animation application B, count the running time of animation application B when running animation application B, and add it to the total usage time of the first type; when running running application C, count the running time of running application C when running running application C, and add it to the total usage time of the second type.
[0029] It is not difficult to understand that in addition to classifying entertainment applications into the first type and classifying learning applications or sports applications into the second type, other types of applications (such as work applications) can also be classified into the first type or the second type according to actual needs.
[0030] Step S200: When the first usage time is greater than the first available time, controlling the first type of application to enter a locked state, or interfering with the operation of the first type of application in a preset interference manner; There is a first association relationship between the first available duration and the second usage duration of the application of the second type.
[0031] It should be noted that the locked state is a restriction measure implemented by the terminal device on an application, so that the user can no longer access or use the application after meeting certain usage conditions. In this state, the application is prohibited from starting or suspending until the unlocking conditions are met, that is, the application in the locked state cannot run, and the application can only run normally after exiting the locked state.
[0032] In addition, it should be noted that the preset interference method is a pre-set method used to interfere with the normal operation of the application and prompt the user to allocate time reasonably, including but not limited to pop-up interference, prompt sound interference, screen brightness reduction interference or lock screen interference.
[0033] It is not difficult to understand that the available duration is the duration that can be used. In this embodiment, the first available duration refers to the total available duration of all applications of the first type in the terminal device, also referred to as the total available duration of the first type. The second usage duration is the total usage duration of all applications of the second type in the terminal device, also referred to as the total usage duration of the second type.
[0034] In this embodiment, the available time may not be set for a single application, but the total available time of each application type may be set based on the application type. That is, before the total usage time of application type A is greater than the total available time of application type A, the application of application type A will not enter the locked state, nor will it be interfered by the preset interference mode, and can be used normally.
[0035] In addition, it should be noted that the association relationship refers to the logical connection or mutual influence between two or more variables. In this embodiment, the first association relationship refers to the association relationship between the first available time length and the second usage time length.
[0036] In this embodiment, after obtaining the first usage duration, it is detected whether the first usage duration is greater than the first available duration. The first available duration can be determined by the second usage duration and the first association relationship. That is, the terminal device counts the total usage duration of the second type of application, determines the second usage duration, and determines the first available duration in combination with the first association relationship between the first available duration and the second usage duration.
[0037] Exemplarily, in a feasible implementation manner, the first association relationship is a positive correlation relationship.
[0038] In this embodiment, there is a positive correlation between the first available time and the second usage time, that is, the longer the second usage time is, the longer the first available time is.
[0039] Through this positive correlation, this embodiment can classify entertainment applications into the first type and learning applications or sports applications into the second type, thereby encouraging users to spend more time on learning or sports to gain more entertainment time, thereby balancing the time allocation for entertainment and learning or sports and promoting healthier digital lifestyle habits.
[0040] For example, in a feasible implementation manner, the first association relationship includes one of the following: When the second usage duration reaches a preset duration threshold, the first available duration is triggered to be restored to the first duration value, and each time a new time period begins, the second usage duration is reset to zero and counted again; or, Every time the second usage duration increases by a second duration value, the first available duration is triggered to increase by a third duration value. It should be noted that, in this embodiment, the preset duration threshold, the first duration value, the second duration value, the third duration value and the time period can be preset by the user or the system. Among them, the preset duration threshold is used to trigger the terminal device to restore the first available duration to the first duration value when it is detected that the second usage duration reaches the preset duration threshold. The first duration value is the maximum value that the first available duration can reach within a time period, that is, within a time period, the user has a maximum of the first available duration of the first duration value to use the first type of application. The second time value refers to the amount of time that the user increases in the second type of application, which is a unit used to measure the incremental time spent by the user on the second type of application. The third time value refers to the amount of time that the first available duration increases accordingly when the second usage duration increases by the second duration value, which is a unit used to measure the increase in the available duration of the first type of application. The time period is a time interval for evaluating the second usage duration and resetting statistics.
[0041] In one example, the preset duration threshold may be 3 hours, the first duration value may be 2 hours, and the time period may be one day. At this time, the first association relationship may be: when it is detected that the second usage duration reaches 3 hours, the terminal device is triggered to restore the first duration value to 2 hours, and the second usage duration is reset to zero every other day, and the second usage duration is restarted. It should be noted that every other day, the first available duration can be reset to zero, or the first available duration of the previous day can be subtracted from the first usage duration of the previous day to obtain the unused duration in the first available duration of the previous day as the initial value of the first available duration of the new day. It is not difficult to understand that every other day, the first usage duration will also be reset to zero and restarted.
[0042] In another example, the second duration value may be 3 hours, and the third duration value may be 1 hour. In this case, the first association relationship may be: when the second usage duration increases by 3 hours, the terminal device is triggered to increase the first available duration by 1 hour.
[0043] In this embodiment, the first association relationship can be any one of the above two, or the two can be combined. Before the second usage time reaches the preset time threshold, each time the second usage time increases by the second time value, the first available time is triggered to increase by the third time value. After the second usage time reaches the preset time threshold, the first available time is triggered to recover to the first time value, and it is ensured that the first available time is not greater than the first time value. In addition, when entering a new time period, the first usage time and the second usage time are reset to zero, and the statistics are restarted. At the same time, the first available time is reset to zero, or the difference between the first available time and the first usage time at the end of the previous time period is used as the initial value of the first available time when entering a new time period. It is not difficult to understand that when the difference is a negative value, the initial value is zero.
[0044] This implementation encourages users to spend more time on beneficial applications by reasonably setting the first association relationship, thereby gaining extra entertainment time, which helps to balance the time allocation between entertainment and study / work, so that users can manage their time well while enjoying entertainment and avoid the negative effects that may be caused by excessive use.
[0045] It is worth mentioning that, in this embodiment, the first association relationship may also be a negatively correlated association relationship.
[0046] For example, when the first type of application is a game application and the second type of application is a animation application, the user can set a negatively correlated first association relationship according to actual needs, so that the longer the second usage time is, the shorter the first available time is, thereby helping the user to reasonably control the time spent on entertainment applications and avoid users becoming addicted to entertainment.
[0047] This embodiment determines that the user has used the first type of application for too long when it is detected that the first usage time is greater than the first available time (including when the first usage time is equal to the first available time), and then controls the first type of application to enter a locked state, or interferes with the operation of the first type of application in a preset interference manner, so as to remind the user to allocate time reasonably, develop a quantified habit of using electronic devices, and avoid being overly addicted to the first type of application.
[0048] In one example, when it is detected that the first usage time is greater than the first available time, the terminal device controls the first type of application to enter a locked state, so that the user cannot start the first type of application, and pauses the currently running first type of application until the user obtains more first available time so that the first usage time is less than the first available time.
[0049] In another example, when it is detected that the first usage time is greater than the first available time, the terminal device interferes with the operation of the first type of application through a preset interference method. For example, when the user runs the first type of application, a prompt box "The available time is insufficient, please XX" pops up every 1 minute (wherein, when the second type of application is a learning application, XX can be learning, and when the second type of application is a sports application, XX can be sports. The technicians in this field can pre-set the specific information content of the prompt box according to the actual situation), until the user stops running the first type of application, or the user obtains more first available time, so that the first usage time is less than the first available time. For another example, when the user runs the first type of application, a prompt tone "The available time of the current time period has been used up, please wait YY" is broadcast every 5 minutes (wherein, YY can be the time from the current time to the next time period, for example, a time period of 24 hours, when the current time is 14 o'clock, YY is 10 hours), until the user stops running the first type of application, or the user obtains more first available time, so that the first usage time is less than the first available time.
[0050] This embodiment obtains a first usage time of an application of the first type, and when the first usage time is greater than the first available time, controls the application of the first type to enter a locked state, or interferes with the operation of the first type of application in a preset interference manner, wherein the first available time and the second usage time of the application of the second type have a first correlation, so that the available time of applications of various application types are correlated, and this correlation can be reflected by setting association rules. For example, the longer the sports application or learning application is used, the longer the available time of the entertainment application is, thereby fully mobilizing the enthusiasm of users to use learning software and sports software, thereby guiding users to reasonably allocate the usage time of various applications, develop good usage habits, help users reasonably allocate the usage time of various applications, and further effectively guide users to reasonably allocate the usage time of various applications according to their own needs.
[0051] It is worth mentioning that this embodiment does not rigidly limit the usage time of a certain application or a certain type of application, but guides users to use electronic devices reasonably through an association mechanism. Through this association mechanism, compared with the related art that directly limits the usage time of specific applications and sets the permission to use applications within a specified time period, this embodiment can more effectively encourage users to develop good habits of using electronic products and living habits, fully mobilize the subjective initiative of users, and use electronic products reasonably with a positive attitude, which is beneficial to the physical and mental health of users. This embodiment makes the available time of various applications correlated. Users can set various beneficial rules through this correlation to help users reasonably allocate the usage time of various applications, avoid various contradictions and problems caused by excessive addiction to a certain type of application, improve user experience, and effectively guide users to reasonably allocate and manage the usage time of various applications on electronic devices.
[0052] In addition, it should be noted that this embodiment performs time management according to application type rather than according to application, which can better meet the actual needs of users. For example, if a user sets the scheduled usage time of a game application to one hour, his real intention should be to play the game for only one hour, but if many games are installed in the mobile phone, and each game is scheduled to last for one hour, then one game after another can be played continuously, which obviously violates the real intention of the user. In this embodiment, time management is performed according to application type. For example, if the available time of a game type application is one hour, then no matter which game the user plays and how long each game is played, the total time of playing games is controlled within one hour, which meets the real intention of the user.
[0053] Based on the above first embodiment, a terminal control method of the second embodiment of the present application is proposed.
[0054] In the second embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later.
[0055] Please refer to Figure 2 , Figure 2 A flowchart diagram of the second embodiment of the terminal control method of the present application is provided.
[0056] In this embodiment, before obtaining the first usage duration of the application of the first type, step S10 is also included: Step S10: determining the application type of the application currently running on the terminal device.
[0057] The method of determining the application type of the application currently running on the terminal device includes one of the following: Based on the preset application type mapping relationship, query and obtain the application type of the application currently running on the terminal device; or, Based on the pre-trained application type recognition AI model, the application type of the application currently running on the terminal device is identified.
[0058] It should be noted that the application type mapping relationship refers to the mapping relationship established between all applications installed on the terminal device and the preset application types. The application type mapping relationship can be stored in the form of a mapping table.
[0059] In a feasible implementation manner, the application type mapping relationship is customized based on a preset UI interaction operation.
[0060] It should be noted that UI (User Interface) interaction operations refer to the interactive behaviors between users and application interfaces, including but not limited to key input operations, physical touch screen input operations, and auxiliary operations such as clicking, sliding, long pressing, and dragging.
[0061] In this embodiment, a mapping table for storing application type mapping relationships and a UI interface corresponding to the mapping table may be preset in the terminal device, and then the user can customize the application type mapping relationships in the UI interface through preset UI interactive operations, including but not limited to adding new application type mapping relationships, modifying application type mapping relationships, and deleting application type mapping relationships.
[0062] This implementation allows users to customize application type mapping relationships through preset UI interactive operations, so that users can adjust the application types of different applications according to their needs and implement more personalized management strategies, thereby helping users to more effectively manage their time allocation on different applications.
[0063] In addition, it should be noted that the application type recognition AI (Artificial Intelligence) model is an artificial intelligence model trained through machine learning or deep learning technology, which is used to automatically identify which application type the application running on the terminal device belongs to. By learning from a large number of training data of known applications and their application types, the application type recognition AI model can be trained to identify the corresponding application type based on the application name of the application, or to identify the corresponding application type based on the application's running data, or to identify the corresponding application type based on the application's display interface.
[0064] In this embodiment, the application name or application ID (Identity) of the application currently running on the terminal device can be obtained, and then based on the preset application type mapping relationship, the application type of the application currently running on the terminal device can be queried. The operation data, display interface or application name of the application currently running on the terminal device can also be obtained, and then a pre-trained application type recognition AI model is input to predict the application type of the application currently running on the terminal device.
[0065] In this embodiment, the method of determining the application type based on the preset application type mapping relationship can ensure high accuracy, and the process of querying the application type mapping relationship is particularly fast, almost no additional computing resources are required, and the response speed is very fast.
[0066] In this embodiment, the method of determining the application type based on the pre-trained application type recognition AI model is more adaptable and can handle a variety of different applications by learning and training on a large number of training data of known applications and their application types. It can also recognize new or unseen applications, and has a high recognition accuracy rate, and can accurately identify the application type. In addition, the application type recognition AI model can also continuously improve its performance and recognition accuracy as more data is trained.
[0067] In addition, it should be noted that the above two methods for determining the application type can be used separately, with only one of them being used at a time, or they can be used in combination to ensure the accuracy of identifying the application type.
[0068] For example, in a feasible implementation, the method further includes steps S11-S12: Step S11, when it is detected that the application currently running on the terminal device is a target type application, the application type of the application currently running on the terminal device is identified based on a pre-trained application type identification AI model.
[0069] It should be noted that, in this embodiment, the target type application refers to an application having the same or similar functions as applications of multiple application types, and is not limited to applications of a single application type.
[0070] Exemplarily, when the first type of application is an entertainment application and the second type of application is a learning application, the target application may refer to an application that can be used to learn knowledge and has the same or similar functions as the learning application, and can also be used for entertainment games and has the same or similar functions as the entertainment application. The target application cannot be simply divided into entertainment applications or learning applications, and has the characteristics of cross-application types (i.e., the target application is a comprehensive application).
[0071] In this embodiment, since the target class application has the characteristics of being cross-application type, when it is determined that the application currently running on the terminal device is the target class application, the user may be using the entertainment function of the target class application, or may be using the learning function of the target class application. This embodiment determines the application type to which the target class application belongs in stages by regularly detecting the functions used by the user when the terminal device runs the target class application.
[0072] Exemplarily, when it is determined that the application currently running on the terminal device is a target application, the terminal device detects the function used by the user when the terminal device runs the target application every one minute. If it is detected that the user is using the entertainment function of the target application, it will be determined that within one minute between this detection and the next detection, the target application is temporarily classified as an entertainment application, so that the one-minute usage time is accumulated into the corresponding usage time of the entertainment application. For example, when the entertainment application is a first type of application, the first usage time is increased by one minute.
[0073] It should be noted that, in one embodiment, the target application can be identified to determine whether the application currently running on the terminal device is identified. When it is detected that the application currently running on the terminal device is identified as a target application, the application currently running on the terminal device is determined to be a target application, and at regular intervals, the pre-trained application type recognition AI model is used to detect what function of the target application the user is currently using, thereby identifying the application currently running on the terminal device and the application type to which it belongs in the time period between this detection and the next detection.
[0074] Specifically, in a feasible implementation, based on a pre-trained application type recognition AI model, the application type of the application currently running on the terminal device is identified, including steps A10 to A20: Step A10, obtaining the current application running data generated within a preset time period of the application currently running on the terminal device, wherein the current application running data includes at least one of image data, audio data and language text data.
[0075] It should be noted that the preset duration is the time length pre-set by the user or the system, which is used to collect the operation data generated by the application currently running on the terminal device within a certain time length, ensuring that the application type recognition AI model has sufficient data input to identify the application type of the application currently running on the terminal device. The current application operation data refers to the operation data generated by the application currently running on the terminal device within the preset time length.
[0076] In this implementation, the current application running data may be obtained through operating system API (Application Programming Interface), screen recording technology, audio capture technology, text recognition technology, and the like.
[0077] This implementation obtains the current application running data generated within a preset time period of the application currently running on the terminal device, covering one or more types of data generated during the application running process, ensuring that it can accurately reflect the functions currently used by the user and improve the accuracy of identifying application types.
[0078] Step A20, based on the pre-trained application type recognition AI model, the acquired current application running data is recognized to identify the application type of the application currently running on the terminal device.
[0079] In this embodiment, when identifying the application type of the application currently running on the terminal device, the current application running data generated within a preset time period of the application currently running on the terminal device is first obtained, and the current application running data is input into a pre-trained application type recognition AI model, and the obtained current application running data is identified to obtain the prediction result output by the application type recognition AI model, so as to identify the application type of the application currently running on the terminal device based on the prediction result.
[0080] When the present embodiment determines that the application currently running on the terminal device is a target application, the current application running data of the currently running target application is periodically obtained, and the application type is identified through an AI model, thereby dynamically adjusting the application type of the target application according to the user's current actual usage, thereby more accurately managing and controlling the usage time of the application, and helping the user to more reasonably allocate the usage time of the terminal device for different sub-application modules of the target application.
[0081] Step S12, or, when it is detected that the application currently running on the terminal device is not a target application, the application type of the application currently running on the terminal device is queried based on a preset application type mapping relationship.
[0082] In one embodiment, when it is detected that the application currently running on the terminal device is not identified as a target class application, it is determined that the application currently running on the terminal device is not a target class application, and the application type to which it belongs can be accurately identified through a preset application type mapping relationship. Therefore, a method with faster response speed and less consumption of computing resources of the terminal device is adopted, that is, a method based on a preset application type mapping relationship is used to query and obtain the application type of the application currently running on the terminal device.
[0083] In addition, it should be noted that. In this embodiment, in addition to separately identifying the target class application and determining whether it is a target class application by detecting whether the application is identified as a target class application, the application type of the target class application can also be divided into target classes, and the corresponding application type mapping relationship is set, so as to determine whether it is a target class application by querying the application type mapping relationship, and then, if it is determined to be a target class application, the application type of the application currently running on the terminal device is identified based on the pre-trained application type identification AI model, and if it is determined not to be a target class application, the application type of the application currently running on the terminal device is queried based on the preset application type mapping relationship.
[0084] It is not difficult to understand that, when an application type mapping relationship has not been established for the target class application, this embodiment can determine whether it is a target class application by detecting whether the application is identified as a target class application. When an application type mapping relationship has been established for the target class application, this embodiment can determine whether it is a target class application by querying the application type mapping relationship.
[0085] Furthermore, in a feasible implementation manner, the method further includes steps S300 to S400: Step S300, based on a preset authentication method, authenticate the current user identity of the terminal device; Those skilled in the art will know that authentication refers to the process of verifying the identity of a user, that is, the process of confirming whether the identity claimed by the user is legitimate. Authentication method refers to a pre-set identity verification method used to verify the identity of a user and confirm whether the user's identity is legitimate, that is, to authenticate the user.
[0086] It should be noted that the authentication method includes but is not limited to password authentication, gesture recognition authentication, and biometric recognition authentication. Among them, the biometric recognition authentication method can specifically include one or more combinations of face recognition, fingerprint recognition, palm print recognition, voice print recognition, iris recognition, and eye print recognition.
[0087] In this embodiment, the user can select another one from the preset multiple authentication modes to perform authentication, thereby authenticating the user's identity, that is, the current user identity of the terminal device, to determine whether the user's identity is legal. When it is determined that the user's identity is legal, the result of the authentication is authentication success, otherwise, the result of the authentication is authentication failure.
[0088] Step S400, when the result of the authentication is successful, control the terminal device to enter the administrator mode.
[0089] The administrator mode is authorized to allow at least one of the following: Being authorized to set the application type mapping relationship; or, being authorized to edit and modify at least one of the first usage duration, the first available duration, and the second usage duration; or, The user is authorized to set the first association relationship.
[0090] It should be noted that, in this embodiment, the administrator mode refers to a special mode on the terminal device that requires authentication to enter. In the administrator mode, the user can set or modify the application type mapping relationship, the first usage duration, the first available duration, the second usage duration or the first association relationship.
[0091] In this implementation, when the result of the authentication is a successful authentication, the terminal device is controlled to enter the administrator mode, ensuring that only users who have passed the authentication and authentication can enter the administrator mode, thereby improving the security of the system.
[0092] After controlling the terminal device to enter the administrator mode, this implementation allows the user to adjust the application type, usage time, available time or association relationship of different applications according to their needs to adapt to different usage scenarios and implement a more personalized management strategy.
[0093] In this embodiment, after entering the administrator mode, the user can set the application type mapping relationship, including but not limited to adding a new application type mapping relationship, modifying the application type mapping relationship, and deleting the application type mapping relationship. Or edit and modify at least one of the first usage time, the first available time, and the second usage time, including but not limited to modifying the first usage time, modifying the first available time, and modifying the second usage time. Or set the first association relationship, including but not limited to setting the first association relationship from positive correlation to negative correlation, setting the first association relationship from negative correlation to positive correlation, and modifying the degree of association of the first association relationship.
[0094] Based on the above first embodiment, a terminal control method of the third embodiment of the present application is proposed.
[0095] In the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later.
[0096] Please refer to Figure 2 , Figure 2 A flowchart diagram of the third embodiment of the terminal control method of the present application is provided.
[0097] In this embodiment, obtaining a first usage duration of an application of a first type of application includes steps S110 to S120: Step S110 , counting the first usage duration of applications of the first type.
[0098] In this embodiment, the terminal device continuously counts the first usage time of applications of the first type. Specifically, when it is detected that the application currently running on the terminal device is an application of the first type, the first usage time is accumulated; when it is detected that the application currently running on the terminal device is not an application of the first type, the accumulation of the first usage time is stopped.
[0099] It should be noted that in this embodiment, the usage time of each first type of application in the terminal device can be counted and finally accumulated to obtain the first usage time. The usage time of each time the terminal device runs the first type of application can also be counted and accumulated to the first usage time.
[0100] It is worth mentioning that, in a feasible implementation manner, counting the first usage duration of an application of the first type of application includes step S111: Step S111 , periodically counting the first usage duration of applications of the first type, wherein each time a new counting period of the first usage duration begins, the first usage duration is reset to zero and counted again.
[0101] It should be noted that, in this embodiment, the statistical period of the first usage duration is preset by the user or the system, and is used to periodically count the first usage duration of applications of the first type of application.
[0102] In this embodiment, within a statistical period of a first usage time, the terminal device continuously counts the first usage time of applications of the first type. When a statistical period of the first usage time ends and enters a next new statistical period of the first usage time, the terminal device automatically clears the first usage time to zero, thereby restarting the counting of the first usage time of applications of the first type in the next new statistical period of the first usage time.
[0103] This implementation allows users to flexibly set the statistical period of the first usage duration according to their own needs to adapt to different usage scenarios and personal preferences, helping users to better manage their time allocation on various applications.
[0104] It should be noted that when entering a new statistical period of the first usage time, the first usage time is cleared and re-counted, allowing the user to continue to use the first type of application in the new statistical period of the first usage time, the second usage time and the first available time are not prevented from being continuously accumulated, resulting in the first usage time being cleared and re-counted in the subsequent statistical period of the first usage time. After being cleared and re-counted, it can no longer be greater than the first available time. This implementation will clear the second usage time synchronously or nearly synchronously when clearing the first usage time in the new statistical period of the first usage time, and clear the first available time. Of course, the first available time at the end of the previous statistical period of the first usage time can also be subtracted from the first usage time, and the difference can be used as the initial value of the first available time at the beginning of the new statistical period of the first usage time. This embodiment does not impose specific restrictions on this.
[0105] The statistical period may be one day or 12 hours, and this embodiment does not impose any specific limitation on this.
[0106] Furthermore, in a feasible implementation manner, the method further includes steps S500 to S600: Step S500, when it is detected that the first usage time is greater than a preset upper limit time threshold, control the first type of application to enter a locked state, or interfere with the operation of the first type of application in a preset interference manner.
[0107] It should be noted that, in this embodiment, the upper limit time threshold is preset by the user or the system, and is the maximum allowed time length of the first type of application within a statistical period of the first usage time. That is, within a statistical period of the first usage time, once the first usage time is greater than or equal to the preset upper limit time threshold, regardless of whether the first usage time is greater than the first available time, the first type of application will be controlled to enter a locked state (or the operation of the first type of application will be interfered with in a preset interference manner), or the operation of the first type of application will be interfered with in a preset interference manner, thereby ensuring that within a statistical period of the first usage time, the user will not use the first type of application for too long, and avoid the user from being addicted to the first type of application.
[0108] It is not difficult to understand that the upper limit time threshold can also be set to the maximum value of the first available time, that is, the maximum value of the first available time cannot exceed the upper limit time threshold, so as to ensure that within a statistical period of the first usage time, the first available time will not be too long, and then ensure that the first usage time will not be too long, so as to help users allocate time reasonably.
[0109] In addition, while controlling the first type of application to enter a locked state or interfering with the operation of the first type of application in a preset interference manner, preset prompt information may be output.
[0110] It should be noted that, in this embodiment, the preset prompt information is used to prompt the user that the first usage time has reached the preset upper limit duration threshold within the current statistical period of the first usage time, or to prompt the user that the first type of application can no longer be used within the current statistical period of the first usage time.
[0111] This embodiment detects whether the first usage time is greater than the preset upper limit time threshold after obtaining the unified first usage time, so that when it is detected that the first usage time is greater than the preset upper limit time threshold, the first type of application is controlled to enter a locked state, or the operation of the first type of application is interfered with in a preset interference manner, so as to control the user's use time of the first type of application in a statistical period of the first usage time, avoid the user from being addicted to the first type of application for a long time, prompt the user to take a break or switch to other types of applications, and assist the user to develop healthy electronic product usage habits. In addition, when it is detected that the first usage time is greater than the preset upper limit time threshold, the first type of application is controlled to enter a locked state, or the operation of the first type of application is interfered with in a preset interference manner, and a preset prompt message can be output to inform the user of the reason why the first type of application is locked, or the reason why the operation of the first type of application is interfered with in a preset interference manner, so that the user understands that in the current statistical period of the first usage time, the use time of the first type of application can no longer be extended in a normal way, and the first type of application can only be allowed to be used in the next statistical period of the first usage time.
[0112] Step S120, obtaining the first usage duration counted once at every first preset time interval; or, when it is detected that an application of the first type is running, obtaining the first usage duration counted in real time.
[0113] It should be noted that the first preset time interval is a time interval preset by a user or a system and is used to periodically obtain the first statistical usage duration.
[0114] In this embodiment, the terminal device can obtain the first usage duration counted once at a first preset time interval, so as to periodically detect whether the first usage duration is greater than the first available duration, so as to determine whether it is necessary to control the first type of application to enter a locked state, or to interfere with the operation of the first type of application in a preset interference manner. Alternatively, when it is detected that the application type is the first type of application and is running, the first usage duration counted is obtained in real time, and the first usage duration is detected in real time whether it is greater than the first available duration, so as to immediately control the first type of application to enter a locked state, or interfere with the operation of the first type of application in a preset interference manner when it is detected that the first usage duration is greater than the first available duration.
[0115] It is not difficult to understand that in this embodiment, the method of periodically obtaining the first usage duration consumes less computing resources and has less impact on user privacy, and the user can select the first preset time interval according to their needs, such as every hour, every half hour, or every three minutes, etc., to adapt to different usage scenarios and personal preferences, with greater flexibility. The method of obtaining the first usage duration in real time can provide an immediate response, so that the first usage duration is detected to be greater than the first available duration at the first time, and control measures are taken immediately to avoid excessive use of the first type of application by the user, helping the user to strictly control the usage time. In addition, the method of obtaining the first usage duration in real time has higher accuracy, can track the first usage duration more accurately, and reduce false positives and false negatives.
[0116] In this embodiment, the user can select any one of the above two methods according to their own needs, or combine the two methods to obtain the first usage duration. If the two methods are combined to obtain the first usage duration, when it is detected that an application of the first type is running, the first usage duration is obtained in real time, and when it is detected that an application of a non-first type is running, the first usage duration is obtained once every first preset time interval.
[0117] Based on the above first embodiment, a terminal control method of the fourth embodiment of the present application is proposed.
[0118] In the fourth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later.
[0119] Please refer to Figure 3 , Figure 3 A flowchart diagram of the fourth embodiment of the terminal control method of the present application is provided.
[0120] In this embodiment, after obtaining the first usage duration of an application of the first type, the method further includes steps S20 to S30: Step S20, obtaining a second usage duration of an application of a second type and the first association relationship; In this embodiment, after obtaining the first usage time of an application of the first type, in order to detect whether the first usage time is greater than the first available time, so as to determine whether it is necessary to control the first type of application to enter a locked state, or to interfere with the operation of the first type of application through a preset interference method, it is necessary to first determine the first available time.
[0121] Since there is a first association relationship between the first available time and the second usage time of the application whose application type is the second type, the first available time can be determined by the second usage time and the first association relationship. Therefore, after obtaining the first usage time of the application whose application type is the first type, this embodiment needs to first obtain the second usage time of the application whose application type is the second type, and the first association relationship between the first available time and the second usage time, so as to determine the first available time according to the second usage time and the first association relationship.
[0122] Exemplarily, in a feasible implementation manner, obtaining the second usage duration of an application of the second type of application includes steps S21 to S22: Step S21: Counting the second usage time of applications of the second type; In this embodiment, the terminal device continuously counts the second usage time of applications of the second type. Specifically, when it is detected that the application currently running on the terminal device is an application of the second type, the second usage time is accumulated; when it is detected that the application currently running on the terminal device is not an application of the second type, the accumulation of the second usage time is stopped.
[0123] It should be noted that in this embodiment, the usage time of each second type of application in the terminal device can be counted and finally accumulated to obtain the second usage time. The usage time of each time the terminal device runs the second type of application can also be counted and accumulated to the second usage time.
[0124] It is worth mentioning that, in a feasible implementation manner, counting the second usage duration of the application of the second type of application includes step B10: Step B10, periodically counting the second usage duration of the application of the second type, wherein each time a new second usage duration counting period begins, the second usage duration is reset to zero and counted again.
[0125] It should be noted that, in this embodiment, the statistical period of the second usage duration is preset by the user or the system, and is used to periodically count the second usage duration of applications of the second type of application.
[0126] In this embodiment, within a statistical period of the second usage time, the terminal device continuously counts the second usage time of applications of the second type. When a statistical period of the second usage time ends and enters a next new statistical period of the second usage time, the terminal device automatically clears the second usage time to zero, thereby restarting the counting of the second usage time of applications of the second type in the next new statistical period of the second usage time.
[0127] This implementation allows users to flexibly set the statistical period of the second usage duration according to their own needs to adapt to different usage scenarios and personal preferences, helping users to better manage their time allocation on various applications.
[0128] It should be noted that when entering a new statistical period of the second usage time, the second usage time is reset to zero and re-counted, allowing the user to continue to use the second type of application in the new statistical period of the second usage time, the first usage time can be reset synchronously or nearly synchronously, and the first available time can be reset. Of course, the first available time at the end of the previous statistical period of the second usage time can also be subtracted from the first usage time, and the difference can be used as the initial value of the first available time at the beginning of the new statistical period of the first usage time, so as to avoid the first usage time from being continuously accumulated, and the first available time is always less than the first usage time when the first available time is determined through the first association relationship due to the second usage time being reset to zero and re-counted, resulting in the user being unable to use the first type of application.
[0129] It is not difficult to understand that when the first association relationship is: when the second usage duration reaches the preset duration threshold, the first available duration is triggered to be restored to the first duration value, and each time a new time period is entered, the second usage duration is cleared and statistics are restarted. At this time, if the first usage duration is not cleared at the same time as the second usage duration, the first usage duration will continue to accumulate, and the first available duration will be restored to the first duration value at most. Therefore, when the second usage duration is cleared, the present embodiment will synchronously or nearly synchronously clear the first usage duration and adjust the first available duration. That is, the statistical period of the first usage duration in the previous embodiment can be synchronized or nearly synchronized with the statistical period of the second usage duration in the present embodiment, thereby ensuring that the first usage duration and the second usage duration are synchronously or nearly synchronized in each statistical period.
[0130] It is worth mentioning that when the first association relationship is: each time the second usage duration increases by a second duration value, the first available duration is triggered to increase by a third duration value. At this time, no statistical cycle may be set, that is, the first usage duration and the second usage duration will not be cleared, but will be accumulated.
[0131] Step S22: obtaining the second usage duration counted once at every second preset time interval; or, when it is detected that an application of the second type is running, obtaining the second usage duration counted in real time.
[0132] It should be noted that the second preset time interval is a time interval preset by the user or the system, and is used to periodically obtain the second usage duration for statistics. The second preset time interval can be synchronized or nearly synchronized with the first preset time interval, that is, the terminal device synchronously or nearly synchronizedly obtains the first usage duration and the second usage duration for statistics at the same or nearly the same time interval, and keeps the first usage duration and the second usage duration for nearly the same frequency, so as to ensure that when detecting whether the first usage duration is greater than the first available duration, the latest second usage duration is used to determine the latest first available duration, and the detection is performed in combination with the acquired first usage duration, so as to ensure the accuracy of the detection result, realize accurate application time management, avoid misjudgment, and cause the first type of application to enter the locked state ahead of time or later, or be interfered with by the preset interference mode ahead of time or later.
[0133] It is not difficult to understand that in this embodiment, the method of periodically obtaining the second usage duration consumes less computing resources and has less impact on user privacy, and the user can select the second preset time interval according to their needs, such as every hour, every half hour, or every three minutes, etc., to adapt to different usage scenarios and personal preferences, with greater flexibility. The method of obtaining the second usage duration in real time can provide an immediate response, so that the first usage duration is detected to be greater than the first available duration at the first time, and control measures are taken immediately to avoid users from overusing the first type of application, helping users to strictly control the usage time. In addition, the method of obtaining the second usage duration in real time has higher accuracy, can track the second usage duration more accurately, and reduce false positives and false negatives.
[0134] In this embodiment, the user can select any one of the above two methods according to their own needs, or combine the two methods to obtain the second usage duration. If the two methods are combined to obtain the second usage duration, when it is detected that the application type is the second type of application is running, the statistical second usage duration is obtained in real time, and when it is detected that the application type is not the second type of application is running, the statistical second usage duration is obtained once every second preset time interval.
[0135] Step S30: determining a first available time duration according to the acquired second usage time duration and the first association relationship.
[0136] In this embodiment, after the second usage duration and the first association relationship are obtained, the first available duration can be accurately calculated in combination with relevant parameters and rules preset by the user or the system.
[0137] Exemplarily, if the user or system pre-sets the first usage duration and the second usage duration to be periodically cleared and re-counted, the first available duration is synchronously cleared, and the first association relationship is: each time the second usage duration increases the second duration value, the first available duration is triggered to increase the third duration value, then the number of second duration values of the acquired second usage duration can be calculated first, and then multiplied by the third duration value to determine the first available duration. For example, the acquired second usage duration is 10 hours, the second duration value is 3 hours, and the third duration value is 2 hours, then the first available duration is 6 hours. It is not difficult to understand that if the user or system sets the first usage duration and the second usage duration to be periodically cleared and re-counted, the first available duration is not synchronously cleared, but has an initial value, which is the difference between the first available duration and the first usage duration in the previous statistical period, then the initial value is added on the basis of 6 hours. If the difference is a negative number, the initial value can be 0. It is worth mentioning that the first available time may be set with an upper limit to avoid the first available time of multiple statistical periods from being continuously accumulated into subsequent statistical periods, causing the user to have too long a first available time in a subsequent statistical period and become addicted to the first type of application.
[0138] In addition, in another example, if the user or the system does not set a statistical period, that is, the first usage time and the second usage time will not be cleared to zero, but will continue to accumulate, and the first association relationship is: the first available time is equal to half of the second usage time, then half of the obtained second usage time will be directly determined as the first available time.
[0139] This embodiment dynamically determines the first available time through the second usage time and the first association relationship, and links the usage time of the first type of application with the usage time of the second type of application, thereby guiding users to reasonably allocate the usage time of various applications, develop good usage habits, and help users reasonably allocate the usage time of various applications, thereby effectively guiding users to reasonably allocate the usage time of various applications according to their own needs. For example, the association mechanism is set so that the longer the sports application or learning application is used, the longer the available time of entertainment applications, thereby fully mobilizing the enthusiasm of users to use learning software and sports software. In this embodiment, users can set various beneficial rules through this association to help users reasonably allocate the usage time of various applications, avoid various contradictions and problems caused by excessive indulgence in a certain type of application, and improve user experience.
[0140] Based on the above first embodiment, a terminal control method of the fourth embodiment of the present application is proposed.
[0141] In the fourth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later.
[0142] Please refer to Figure 4 , Figure 4 A flowchart diagram of the fourth embodiment of the terminal control method of the present application is provided.
[0143] In this embodiment, the method further includes steps S700 to S800: Step S700, obtaining a third usage duration of an application of a third type; It should be noted that, in this embodiment, the applications in the terminal device are pre-divided into a plurality of different application types, and the plurality of different application types at least include a first type, a second type, and a third type.
[0144] In this embodiment, the third usage duration refers to the total usage duration of all applications of the third type in the terminal device, also referred to as the total usage duration of the third type.
[0145] In this embodiment, the terminal device will pre-classify the installed applications into different application types, and count the total usage time of each application type respectively, so as to obtain the third usage time, thereby providing an accurate data basis for subsequent control.
[0146] Exemplarily, in a feasible implementation, the first type of application is a learning application, the second type of application is a sports application, and the third type of application is an entertainment application.
[0147] Step S800, when the third usage duration is greater than the second available duration, controlling the third type of application to enter a locked state, or interfering with the operation of the third type of application in a preset interference manner; There is a second association relationship between the second available duration and the first usage duration of the application of the first type.
[0148] In this embodiment, the second available duration refers to the total available duration of all applications of the third type in the terminal device, also referred to as the total available duration of the third type. The second association relationship refers to the association relationship between the second available duration and the first usage duration.
[0149] In this embodiment, after obtaining the third usage duration, it is detected whether the third usage duration is greater than the second available duration. The second available duration can be determined by the first usage duration and the second association relationship. That is, the terminal device counts the total usage duration of the first type of application, determines the first usage duration, and determines the second available duration in combination with the second association relationship between the second available duration and the first usage duration.
[0150] Exemplarily, in a feasible implementation manner, the second association relationship is a positive correlation relationship.
[0151] In this embodiment, there is a positive correlation between the second available time and the first usage time, that is, the longer the first usage time is, the longer the second available time is.
[0152] Through this positive correlation, this embodiment can classify learning applications into the first type, sports applications into the second type, and entertainment applications into the third type, thereby encouraging users to spend more time on learning applications and sports applications to gain more entertainment time, thereby balancing the time allocation between entertainment, learning and sports and promoting healthier digital lifestyle habits.
[0153] In another feasible implementation, the second association relationship is a negative correlation relationship, that is, the longer the first usage time is, the shorter the second available time is.
[0154] Through this negatively correlated association, this embodiment can classify instant messaging applications (such as QQ) into the first type, short video applications into the second type, and game applications into the third type, thereby avoiding users from spending more time on short video applications and game applications at the same time, and then balancing the time allocation between various entertainment applications to protect users' eyesight and promote healthier digital lifestyle habits.
[0155] Furthermore, in a feasible implementation manner, the method further includes steps S910 to S920: Step S910, based on a preset authentication method, authenticate the current user identity of the terminal device; Step S920, when the result of the authentication is that the authentication is successful, controlling the terminal device to enter the administrator mode; The administrator mode is authorized to allow at least one of the following: being authorized to set the second association relationship; or, being authorized to edit and modify at least one of the first usage duration, the first available duration, the second usage duration, the third usage duration, and the second available duration; or, The user is authorized to set the first association relationship.
[0156] In this embodiment, the administrator mode can be used to set or modify the first usage time, the first available time, the second usage time, the second available time, the third usage time, the first association relationship or the second association relationship.
[0157] In this embodiment, after the user passes the authentication and the terminal device enters the administrator mode, the user can set the first association relationship according to his own needs, including but not limited to setting the first association relationship from positive correlation to negative correlation, setting the first association relationship from negative correlation to positive correlation, and modifying the association degree of the first association relationship; or setting the second association relationship, including but not limited to setting the second association relationship from positive correlation to negative correlation, setting the second association relationship from negative correlation to positive correlation, and modifying the association degree of the second association relationship; or editing and modifying at least one of the first usage time, the first available time, the second usage time, the second available time, and the third usage time, including but not limited to modifying the first usage time, modifying the first available time, modifying the second usage time, modifying the second available time, and modifying the third usage time. Through this administrator mode, the user can adjust the association relationship between different application types, the usage time and available time of different application types to adapt to different usage scenarios and realize more personalized management strategies.
[0158] In order to facilitate understanding of the technical concept or technical principle of the above-mentioned embodiment of the terminal control method of the present application, a specific embodiment is listed.
[0159] This specific embodiment makes the available time of various applications correlated, and this correlation can be reflected by setting correlation rules. The rules can be either rewarding, such as the longer the time of using learning applications, the longer the time of using entertainment applications, or restrictive, such as if the time of using learning applications does not reach the predetermined time, the entertainment applications cannot be used. There can also be various other rules. Any method that can reflect the correlation between the usage time of various applications falls within the protection scope of this specific embodiment.
[0160] In this specific embodiment, the user sets various beneficial incentive rules through this association to help the user reasonably allocate the usage time of various applications, avoid various conflicts and problems caused by excessive addiction to a certain type of application, and improve the user experience.
[0161] like Figure 5 As shown, the process of this specific embodiment is as follows: Step S101, the user classifies applications; In this specific embodiment, the user classifies the applications on the device according to their purpose, such as entertainment, learning, sports, shopping, etc. For applications with clear purposes, they are directly classified. For comprehensive applications (i.e., target applications), such as reading software and video software, applications that cannot be directly classified are classified into comprehensive categories. For applications that do not require time management, such as taxi software, map software, and weather software, they can be left unclassified.
[0162] In this specific embodiment, the user's operation method for classifying applications (that is, the preset UI interaction operation) includes: dragging an application icon into a folder, naming the folder "Entertainment", indicating that the application belongs to the entertainment application. Similarly, the user can drag another application into the "Entertainment" folder, and the applications in the folder are all entertainment applications. Similarly, the user can also create application type folders such as "Learning" and "Sports".
[0163] In addition, users can also modify the classification type of applications. Users can drag an application icon from the "Entertainment" folder to the "Learning" folder to change the type of the application from entertainment to learning.
[0164] In another implementation of this specific embodiment, the user can long press the application icon to pop up a text editing box, and the user enters "entertainment", which means that the application belongs to the entertainment category. Similarly, the user can classify or modify the type of other applications.
[0165] In this specific embodiment, for an application that is downloaded and installed on a device for the first time, it is classified into a corresponding application type by default according to the classification of the application in the application store. Afterwards, the user can manually modify the application type.
[0166] In addition, there are other ways to classify applications, which are not limited here.
[0167] Optionally, when a user classifies an application, the user may be required to first perform identity verification measures such as password verification, fingerprint verification, and face verification. Only after the identity verification is passed can the application be classified or the type modified. That is, based on a preset authentication method, the current user identity of the terminal device is authenticated, and when the authentication result is a successful authentication, the terminal device is controlled to enter the administrator mode, wherein the administrator mode is authorized to allow at least one of the following: being authorized to allow the application type mapping relationship to be set.
[0168] After the applications are classified as above, an application classification table is generated and saved in the database of the device. That is, the application type mapping relationship is stored in the form of a mapping table.
[0169] Step S102, the user sets incentive rules for the usage time of various applications; As a feasible implementation method of this specific embodiment, the usage time of each type of application can include three attribute values: available time (for example, the first available time and the second available time), used time (for example, the first usage time, the second usage time and the third usage time), and an upper limit of the time (for example, an upper limit time threshold). The time value is an integer greater than or equal to 0, in seconds, and the initial value of each time value is 0.
[0170] In particular, in this specific embodiment, the available time is -1, indicating that the available time is not limited; the upper limit of the time is -1, indicating that the upper limit of the time is not limited.
[0171] In this specific embodiment, the user classifies the application types. For example, the first-level application (i.e., the second-type application) is a learning application, and the second-level application (i.e., the first-type application) is an entertainment application. The user needs to use the application of the first-level application type first, that is, the first-level application type has been used for a time greater than 0, before using the application of the second-level application type. That is, there is a first correlation between the first available time and the second usage time of the application of the second type, and only after the second usage time is greater than 0, the first available time will be greater than 0.
[0172] In particular, in this specific embodiment, if the user really needs to use the second-level application first, the user can manually modify the used time of the first-level application to be greater than 0, and then use the second-level application. That is, the second usage time is edited and modified through the administrator mode.
[0173] Optionally, in this specific embodiment, identity authentication is required before manually modifying the application duration value, and the value can only be modified after identity authentication is passed. That is, based on a preset authentication method, the current user identity of the terminal device is authenticated, and when the authentication result is successful, the terminal device is controlled to enter the administrator mode, wherein the administrator mode is authorized to edit and modify the second usage duration.
[0174] In this embodiment, the user sets the incentive rules for the usage time of each level of application (i.e., the association relationship, such as the first association relationship and the second association relationship). For example, the usage time of the first level application is twice the available time of the second level application, or the usage time of the first level application is 30 minutes more than the available time of the second level application, or for every 40 minutes of use of the first level application, the available time of the second level application is 10 minutes (i.e., every increase of the second usage time by the second time value triggers the increase of the first available time by the third time value), etc.
[0175] Optionally, in this specific embodiment, identity authentication is required before setting the incentive rules, and the rules can only be set after identity authentication is passed. That is, based on a preset authentication method, the identity of the current user of the terminal device is authenticated, and when the authentication result is successful, the terminal device is controlled to enter the administrator mode, wherein the administrator mode is authorized to set the first association relationship or the second association relationship.
[0176] By analogy, in this specific embodiment, the user can set multiple incentive rules and save the set incentive rules in the database of the device.
[0177] Optionally, in this specific embodiment, the user can set multiple levels (more than two levels) of incentives, for example, the first level application is sports, the second level application is learning, and the third level application is entertainment. That is, the first type of application is a learning application, the second type of application is a sports application, and the third type of application is an entertainment application, the first available time and the second usage time have a first association relationship, and the second available time and the first usage time have a second association relationship.
[0178] Optionally, in this specific embodiment, the user can set an upper limit (i.e., upper limit time threshold) on the usage time of each type of application within a period (i.e., a statistical period, such as a statistical period for the first usage time and a statistical period for the second usage time). For example, the upper limit on the usage time of entertainment applications in a day is set to 3 hours.
[0179] Step S103, the user uses the application; In this specific embodiment, the user can use the application continuously or intermittently. At the same time, the system detects the user's use of the application in a fixed time cycle, such as setting a 60-second timer to periodically detect the user's use of the application, and can also detect the user's use of the application when the user opens the application. That is, the first usage duration is obtained once every first preset time interval, or, when it is detected that an application of the first type is running, the first usage duration is obtained in real time, and the second usage duration is obtained once every second preset time interval, or, when it is detected that an application of the second type is running, the second usage duration is obtained in real time.
[0180] Step S104, determining the category to which the application belongs; In this specific embodiment, the system obtains the currently running foreground application (that is, the application currently running on the terminal device), and searches the application classification table to find the category to which the application belongs. That is, based on the preset application type mapping relationship, the application type of the application currently running on the terminal device is queried.
[0181] Step S105: For comprehensive applications, the large model determines the application category to which the content belongs. In particular, in this specific embodiment, if the application belongs to a comprehensive application, the system obtains the data of the device display screen and the audio DSP (Digital Signal Processing) data as the large model recognition content, that is, the image, text information and played sound of the current device screen, and judges whether the current content (that is, the current application running data) belongs to the type of each level of application in the incentive rule through the large model (that is, the pre-trained application type recognition AI model). If it is, the corresponding application type is output, and if not, other types are output, so as to classify the current application into the corresponding type. That is, when it is detected that the application currently running on the terminal device is identified as a target application, the current application running data generated within the preset time length of the application currently running on the terminal device is obtained, wherein the current application running data includes at least one of image data, audio data and language text data, and then based on the pre-trained application type recognition AI model, the obtained current application running data is recognized to identify the application type of the application currently running on the terminal device.
[0182] Specifically, Figure 6 As shown, the identification steps of comprehensive applications are as follows: Step T10, inputting display screen data and audio DSP data; In this specific embodiment, the data of the display screen and the data of the audio DSP are input to the large model, and the data duration (i.e., the preset duration) can be 3 seconds or other durations. It is not difficult to understand that too long a duration will result in too much data volume, affecting the system performance and the recognition speed of the large model, so a suitable duration should be selected and the large model should have a high recognition accuracy.
[0183] Step T20, the large model recognizes the content; In this specific embodiment, the large model is pre-trained with a training set made of a large amount of application operation data (i.e., display screen data and / or audio DSP data) marked with application types at various levels in the incentive rules. Therefore, when in use, it is only necessary to input the display screen data and / or audio DSP data into the large model as the content to be identified, and the large model will identify its application type.
[0184] Step T30, whether it belongs to the type in the incentive rules; In this specific embodiment, the large model analyzes the display screen data and / or audio data, compares the application types at each level in the incentive rules, and determines one by one whether the display screen data and audio data belong to a certain application type in the incentive rules.
[0185] Step T40, outputting other types; In this specific embodiment, if the large model recognizes that the display screen data and / or audio data to be input does not belong to any application type in the excitation rule, "other" is output.
[0186] Step T50, output application type.
[0187] In this specific embodiment, if the large model recognizes that the display screen data and / or audio data to be input belongs to a certain application type in the incentive rule, the large model outputs the application type, such as "learning" or "entertainment".
[0188] Step S106, calculating the usage time of each type of application; In this specific embodiment, the system obtains the application type of the application currently used by the user according to the above steps, and after determining that the application type is the type involved in the incentive rule, calculates the usage time values (available time, used time) of each level of application type according to the incentive rule.
[0189] Specifically, Figure 7 As shown, the usage time data of each level of application type is calculated as follows: When a user uses an application of the first-level application type (i.e., the second type), available time 1 (i.e., the total available time of the second type) remains unchanged, used time 1 (i.e., the second usage time, i.e., the total usage time of the second type) increases, duration limit 1 (i.e., the upper limit duration threshold of the second type) remains unchanged, available time 2 (i.e., the first available time, i.e., the total available time of the first type) is calculated according to the rule (referring to the first association relationship), used time 2 (i.e., the first usage time, i.e., the total usage time of the first type) remains unchanged, and duration limit 2 (i.e., the upper limit duration threshold of the first type) remains unchanged.
[0190] When the user uses an application of the second-level application type (i.e., the first type), the available time 2 (i.e., the first available time, i.e., the total available time of the first type) remains unchanged, the used time 2 (i.e., the first usage time, i.e., the total usage time of the first type) increases, the duration limit 2 (i.e., the upper limit duration threshold of the first type) remains unchanged, the available time 3 (i.e., the second available time, i.e., the total available time of the third type) is calculated according to the rule (referring to the second association relationship), the used time 3 (i.e., the third usage time, i.e., the total usage time of the third type) remains unchanged, and the duration limit 3 (i.e., the upper limit duration threshold of the third type) remains unchanged.
[0191] When a user uses an application of the third level application type (i.e., the third type), the available time 3 (i.e., the second available time, i.e., the total available time of the third type) remains unchanged, the used time 3 (i.e., the third usage time, i.e., the total usage time of the third type) increases, the upper limit of the time 3 (i.e., the upper limit of the time threshold of the third type) remains unchanged, the available time 4 (i.e., the total available time of the fourth type) is calculated according to the rule (referring to the third association relationship), the used time 4 (i.e., the total usage time of the fourth type) remains unchanged, and the upper limit of the time 4 (i.e., the upper limit of the time threshold of the fourth type) remains unchanged. Among them, there is a third association relationship between the total available time of the fourth type and the total usage time of the third type.
[0192] It should be noted that, in this specific implementation, the available time of the first-level application type in the incentive rules is recorded as available time 1, the used time is recorded as used time 1, and the upper limit of the time is recorded as upper limit of time 1; the available time of the second-level application type is recorded as available time 2, the used time is recorded as used time 2, and the upper limit of the time is recorded as upper limit of time 2; the available time of the third-level application type is recorded as available time 3, the used time is recorded as used time 3, and the upper limit of the time is recorded as upper limit of time 3, and so on.
[0193] In this specific implementation, the initial value of each duration value is 0. In particular, the available duration is -1, indicating that the available duration is unlimited; the duration upper limit is -1, indicating that the duration upper limit is unlimited.
[0194] In this specific implementation, after the user sets the incentive rules, the available duration of the first-level application type 1 becomes -1. If the user sets a duration limit for a certain level of application type, the duration limit value is the value set by the user, otherwise the duration limit becomes -1.
[0195] In this specific embodiment, the system detects the expiration of a timer for the user's application usage and calculates the usage duration.
[0196] During the period when the user uses the first-level application type, for example, the first-level application is sports and the second-level application is learning. The incentive rule is that the time used for the first-level application is half of the available time for the second-level application, and the timer duration is 60 seconds. The usage time is calculated accordingly: the available time 1 remains unchanged, the used time 1 increases by 60, and the upper limit of the duration 1 remains unchanged; the available time 2 increases by 120, the used time 2 remains unchanged, and the upper limit of the duration 2 remains unchanged. And so on, as the timer expires periodically, the usage time is continuously calculated.
[0197] In another feasible implementation of this specific embodiment, the system itself also records the running time of the application program, and adds up the running time of all applications in the first-level application type to obtain the used time 1. In addition, there are other methods for calculating the running time, which are not limited in this specific embodiment.
[0198] During the period when the user uses the second-level application type, for example, the second-level application is learning, and the third-level application is entertainment, and the incentive rule is that the used time of the second-level application is twice the available time of the third-level application, then the usage time is calculated when the timer expires: the available time 2 remains unchanged, the used time 2 increases by 60, and the upper limit of the time 2 remains unchanged; the available time 3 increases by 30, the used time 3 remains unchanged, and the upper limit of the time 3 remains unchanged. And so on, as the timer expires periodically, the usage time is continuously calculated.
[0199] By analogy, the available time is 3, the used time is 3, the maximum time is 3, the available time is 4, the used time is 4, and the maximum time is 4.
[0200] In particular, if the third-level application is the last-level application, the system will not calculate the usage time 4 (that is, the available time 4, the used time 4 and the time limit 4 will no longer be calculated).
[0201] It is worth mentioning that the usage time data of various application types can be stored in non-volatile memory. If the device is restarted, these data can be read again from the non-volatile memory to avoid the usage time data being cleared due to device restart.
[0202] Step S107, determining whether the current application's used time is greater than or equal to the available time; In this specific embodiment, it is determined whether the used time of the type to which the current application belongs is greater than or equal to the available time of the application type, that is, whether the first used time is greater than the first available time, or whether the third used time is greater than the second available time.
[0203] Optionally, in this specific embodiment, if the user sets an upper limit on the usage time of the application type within a period, it is determined whether the used time is greater than or equal to the upper limit of the usage time, that is, whether the first usage time is greater than the preset upper limit time threshold.
[0204] Step S108, prompting the user and exiting the application.
[0205] In this specific embodiment, if it is detected that the used time of the current application type is greater than or equal to the available time, or the used time is greater than or equal to the upper limit of the usage time, the user is prompted and the application is exited. That is, when the first usage time is greater than the first available time, the first type of application is controlled to enter a locked state, or the operation of the first type of application is interfered with in a preset interference manner, or, when the third usage time is greater than the second available time, the third type of application is controlled to enter a locked state, or the operation of the first type of application is interfered with in a preset interference manner. In addition, while controlling the first type of application to enter a locked state or interfering with the operation of the first type of application in a preset interference manner, a preset prompt message may be output.
[0206] In this specific embodiment, the method of prompting the user may be to pop up a prompt box or emit a prompt sound.
[0207] In one example, if the used time is greater than or equal to the available time, the prompt is "The current application has exceeded the available time, please use XX first", where "XX" refers to the parent application type of the application type to which the application belongs. For example, if the current application type is "Entertainment" and the parent application type of the "Entertainment" application type is "Learning", then "XX" is displayed as "Learning", prompting the user to use the learning type application first, and then use the current application.
[0208] In another example, if the used time is greater than or equal to the upper limit of the time, the prompt word is "The current application has exceeded the upper limit of the time, please wait YY", where "YY" refers to the time remaining from the current time to the next statistical period. For example, if the upper limit of the time for using entertainment applications in a day is set to 3 hours, and the user has used entertainment applications for a total of 3 hours at 10 o'clock in the evening of the same day, "YY" will be displayed as "2 hours", prompting the user to use the current application again the next day.
[0209] It is not difficult to understand that the prompt word refers to the content displayed in the prompt box or the content broadcast by the prompt sound.
[0210] Optionally, in this specific embodiment, the user can set a statistical period (for example, a statistical period for the first usage duration and a statistical period for the second usage duration), such as one day or one week. After a statistical period ends, the usage duration values of various applications are all cleared. That is, the first usage duration and the second usage duration share the same statistical period.
[0211] In one example, the structural modules of the device in this specific embodiment are as follows: Figure 8As shown, it includes a touch display module, an image processing module, a communication module, a fingerprint recognition module, a processor, an audio module and a storage module. Among them, the fingerprint recognition module is used for authentication, and the image processing module and the audio module are used to obtain the data of the display screen and the data of the audio DSP, that is, the current application running data. The storage module is used to store the association relationship and the application type mapping relationship. The touch display module can be used to allow the user to customize the application type mapping relationship through a preset UI interactive operation. The processor is used to implement the relevant logical calculations of the terminal control method in this specific embodiment.
[0212] In addition, please refer to Fig. 9 , Fig. 9 This is a schematic diagram of the device structure of the hardware operating environment involved in the terminal control method in the embodiment of the present application.
[0213] The present application also provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the terminal control method in the above-mentioned embodiment.
[0214] Reference below Fig. 9 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device of the embodiment of the present application may include but is not limited to a mobile phone (i.e., a mobile phone), a laptop computer, a digital broadcast receiver, a PDA (Personal Digital Assistant: personal digital assistant), a PAD (Portable Application Description: tablet computer), a PMP (Portable Media Player: portable multimedia player), a mobile terminal such as a vehicle terminal (such as a vehicle navigation terminal), and a fixed terminal such as a digital TV (Television, television), a desktop computer, etc., or any terminal device that can implement the above functions. Fig. 9 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0215] like Fig. 9As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0216] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0217] The electronic device provided by the present application adopts the terminal control method in the above embodiment, which can solve the technical problem that there is no effective guidance for users to reasonably allocate and manage the usage time of various applications on the electronic device in the related art. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as the beneficial effects of the terminal control method provided by the above embodiment, and the other technical features in the electronic device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0218] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0219] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0220] In addition, the present application also provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the terminal control method in the above-mentioned embodiment.
[0221] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0222] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0223] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: obtains a first usage time of an application of a first type; when the first usage time is greater than a first available time, controls the application of the first type to enter a locked state, or interferes with the operation of the application of the first type in a preset interference manner; wherein a first association relationship exists between the first available time and the second usage time of the application of a second type.
[0224] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0225] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0226] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0227] The computer-readable storage medium provided by the present application stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned terminal control method, which can solve the technical problem in the related art that there is no effective way to guide users to reasonably allocate and manage the usage time of various applications on electronic devices. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the terminal control method provided by the above-mentioned embodiment, and will not be repeated here.
[0228] In addition, an embodiment of the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the terminal control method in the above embodiment is implemented.
[0229] The computer program product provided by the present application can solve the technical problem that there is no effective way to guide users to reasonably allocate and manage the usage time of various applications on electronic devices in the related art. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the terminal control method provided by the above embodiment, which will not be described in detail here.
[0230] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A terminal control method, comprising: Obtaining a first usage duration of an application of a first type; When the first usage duration is greater than the first available duration, controlling the first type of application to enter a locked state, or interfering with the operation of the first type of application in a preset interference manner; There is a first association relationship between the first available duration and the second usage duration of the application of the second type.
2. The terminal control method according to claim 1, characterized in that: The first correlation relationship is a positive correlation relationship.
3. The terminal control method according to claim 1, characterized in that: Before obtaining the first usage duration of the application of the first type, the method further includes: Determine the application type of the application currently running on the terminal device; The method of determining the application type of the application currently running on the terminal device includes one of the following: Based on the preset application type mapping relationship, query and obtain the application type of the application currently running on the terminal device; or, Based on the pre-trained application type recognition AI model, the application type of the application currently running on the terminal device is identified.
4. The terminal control method according to claim 3, characterized in that: The method further comprises: When it is detected that the application currently running on the terminal device is a target application, the application type of the application currently running on the terminal device is identified based on a pre-trained application type identification AI model; or, When it is detected that the application currently running on the terminal device is not a target application, the application type of the application currently running on the terminal device is queried based on a preset application type mapping relationship.
5. The terminal control method according to claim 3 or 4, characterized in that: The application type mapping relationship is customized based on a preset UI interaction operation.
6. The terminal control method according to claim 3 or 4, characterized in that: Based on the pre-trained application type recognition AI model, the application type of the application currently running on the terminal device is identified, including: Acquire current application running data generated within a preset time period of an application currently running on a terminal device, wherein the current application running data includes at least one of image data, audio data, and language text data; Based on the pre-trained application type recognition AI model, the current application running data obtained is identified to identify the application type of the application currently running on the terminal device.
7. The terminal control method according to claim 3 or 4, characterized in that: The method further comprises: Based on the preset authentication method, the current user identity of the terminal device is authenticated; If the result of the authentication is that the authentication is successful, controlling the terminal device to enter the administrator mode; The administrator mode is authorized to allow at least one of the following: Being authorized to set the application type mapping relationship; or, being authorized to edit and modify at least one of the first usage duration, the first available duration, and the second usage duration; or, The user is authorized to set the first association relationship.
8. The terminal control method according to claim 1, characterized in that: The first association relationship includes one of the following: When the second usage duration reaches a preset duration threshold, the first available duration is triggered to be restored to the first duration value, and each time a new time period begins, the second usage duration is reset to zero and counted again; or, Every time the second usage duration increases by a second duration value, the first available duration is triggered to increase by a third duration value.
9. The terminal control method according to claim 1, characterized in that: Obtaining a first usage duration of an application of a first type of application includes: Counting the first usage time of applications of the first type; The first usage duration is obtained once at every first preset time interval; or, when it is detected that an application of the first type is running, the first usage duration is obtained in real time.
10. The terminal control method according to claim 9, characterized in that: The first usage duration of applications of the first type is counted, including: The first usage duration of an application of the first type is periodically counted, wherein each time a new first usage duration counting cycle begins, the first usage duration is reset to zero and counted again.
11. The terminal control method according to claim 10, characterized in that: The method further comprises: When it is detected that the first usage duration is greater than a preset upper limit duration threshold, the first type of application is controlled to enter a locked state, or the operation of the first type of application is interfered with in a preset interference manner.
12. The terminal control method according to claim 1, characterized in that: After obtaining the first usage duration of the application of the first type, the method further includes: Acquire a second usage duration of an application of a second type and the first association relationship; A first available time is determined according to the acquired second usage time and the first association relationship.
13. The terminal control method according to claim 12, characterized in that: Obtaining a second usage duration of an application of a second type of application includes: Counting the second usage time of the application whose application type is the second type; The second usage duration is obtained once at every second preset time interval; or, when it is detected that an application of the second type is running, the second usage duration is obtained in real time.
14. The terminal control method according to claim 13, characterized in that: The second usage duration of the application of the second type is counted, including: The second usage duration of the application of the second type is periodically counted, wherein each time a new second usage duration counting cycle begins, the second usage duration is reset to zero and counted again.
15. The terminal control method according to claim 1, characterized in that: The first type of application is an entertainment application, and the second type of application is a learning application or a sports application.
16. The terminal control method according to claim 1, characterized in that: The method further comprises: Obtaining a third usage duration of an application of a third type of application; When the third usage duration is greater than the second available duration, controlling the third type of application to enter a locked state, or interfering with the operation of the third type of application in a preset interference manner; There is a second association relationship between the second available duration and the first usage duration of the application of the first type.
17. The terminal control method according to claim 16, characterized in that: The method further comprises: Based on the preset authentication method, the current user identity of the terminal device is authenticated; If the result of the authentication is that the authentication is successful, controlling the terminal device to enter the administrator mode; The administrator mode is authorized to allow at least one of the following: being authorized to set the second association relationship; or, being authorized to edit and modify at least one of the first usage duration, the first available duration, the second usage duration, the third usage duration, and the second available duration; or, The user is authorized to set the first association relationship.
18. The terminal control method according to claim 16, characterized in that: The first type of application is a learning application, the second type of application is a sports application, and the third type of application is an entertainment application.
19. An electronic device, characterized in that: include: A memory, a processor, and a terminal control program stored in the memory and executable on the processor, wherein the terminal control program implements the terminal control method according to any one of claims 1 to 18 when executed by the processor.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a terminal control program, and when the terminal control program is executed by a processor, the terminal control method according to any one of claims 1 to 18 is implemented.
21. A computer program product, characterized in that The computer program product comprises a terminal control program, and when the terminal control program is executed by a processor, the steps of the terminal control method according to any one of claims 1 to 18 are implemented.
Citation Information
Cited By
Terminal control method, electronic device and computer-readable storage medium
WO2026025907A1
