Terminal equipment and application use control method
By interacting with the server to obtain application levels and generate application restrictions lists, the problem of minors using poor software is solved, and effective control of terminal device applications and minor protection is achieved.
Patent Information
- Application Number
- CN202311618169.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2025-05-30
AI Technical Summary
The prior art is difficult to effectively restrict minors from using bad software that has been installed on terminal devices, resulting in the physical and mental health of minors being affected.
Through interaction with the server, the application levels of each application installed on the terminal device are obtained, and the application restriction list is generated based on the age information entered by the user, and applications that are not suitable for minors are prohibited from running.
It realizes effective control of bad applications that have been installed on terminal devices, improves the protection effect of minors, and ensures the rational use of applications.
Smart Images

Figure CN120066459A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a terminal device and an application usage control method. Background Art
[0002] With the development of technology, more and more people need to use terminal devices to meet the needs of daily life. On terminal devices, more and more applications can be installed, but the content of these applications is uneven. Once minors install and use some bad software, it will have a huge impact on their physical and mental health.
[0003] Currently, the conventional means to restrict minors from using terminal devices is to control the duration of minors' use of terminal devices, or to control minors from downloading age-appropriate applications through age grading. However, it cannot restrict minors from using the applications already installed on the terminal device. Minors may still use the bad software already installed on the terminal device, and the protection effect for minors is poor. Summary of the Invention
[0004] To solve the above problems in the prior art, embodiments of this application provide a terminal device and an application usage control method, which can realize the control of the use of local application programs on a mobile phone through interaction with a database.
[0005] In a first aspect, an embodiment of this application provides a terminal device, including an input component, a communication component, and a processor;
[0006] The input component is used to receive information input by a user;
[0007] The communication component is used to connect to a server and transmit data; multiple application levels of applications are stored in the server;
[0008] The processor is configured to:
[0009] Obtain the application levels of each application installed on the terminal device from the server through the communication component; wherein, the application level of any application is used to indicate the minimum age of the user allowed to use the any application;
[0010] Receive age information input by the user through the input component;
[0011] Generate an application restriction list according to the age information input by the user and the application levels of each application;
[0012] Prohibit the operation of the applications included in the application restriction list.
[0013] In a possible implementation, the processor is specifically configured to: when receiving a start operation of the user for a first application, if it is determined that the first application is in the application restriction list, prohibit the first application from running, and display a prompt message for prohibiting the use of the first application to the user.
[0014] In a possible implementation, the processor is specifically configured to: when the application level acquisition condition is met, execute the step of acquiring the application levels of each application installed on the terminal device from the server through the communication component; the application level acquisition condition includes any one of the following conditions:
[0015] The terminal device is started for the first time;
[0016] There is a newly installed application in the terminal device;
[0017] The control service of the terminal device is turned on.
[0018] In a possible implementation, the application levels of the multiple applications are saved in a first application level list; the processor is specifically configured to:
[0019] Determine each application installed on the terminal device;
[0020] Send the application information of each application to the server through the communication component;
[0021] Receive the application levels of each application sent by the server through the communication component; the application levels of each application are: those queried by the server from the first application level list according to the application information of each application.
[0022] In a possible implementation, the terminal device further includes a display; the processor is specifically configured to:
[0023] Display a control service opening interface to the user through the display;
[0024] If receiving an operation of turning on the control service input by the user on the control service opening interface, display a first information collection interface to the user through the display;
[0025] Receive the age information input by the user in the first information collection interface through the input component.
[0026] In a possible implementation, the processor is specifically configured to:
[0027] After receiving the age information input by the user, compare the age information with the minimum age indicated by the application levels of the respective applications, and add the applications whose minimum age indicated by the application level is higher than the age information to the application restriction list.
[0028] In a possible implementation manner, the processor is specifically configured to:
[0029] If an operation of requesting to modify the age input by the user is received, display a second information collection interface to the user;
[0030] Receive the modified age information input by the user in the second information collection interface;
[0031] Display an information verification interface to the user, and receive the identity verification information input by the user in the information verification interface;
[0032] If it is determined that the identity verification information input by the user is correct, update the application restriction list according to the modified age information and the application levels of the respective applications.
[0033] In a possible implementation manner, the processor is further configured to:
[0034] After the user enables the control service, if an operation of installing a new application input by the user is received, prohibit the execution of the operation of installing the new application.
[0035] In a second aspect, an embodiment of the present application provides an application usage control method, and the method includes:
[0036] Obtain the application levels of the respective applications installed on the terminal device from the server; the application level of any application is used to indicate the minimum age of the user allowed to use the any application;
[0037] Receive the age information input by the user;
[0038] Generate an application restriction list according to the age information input by the user and the application levels of the respective applications;
[0039] Prohibit the running of the applications included in the application restriction list.
[0040] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, and a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the above application usage control method is implemented.
[0041] The embodiments of the present application provide a terminal device and an application usage control method. The terminal device can obtain the application levels of various applications installed on the terminal device from the server through a communication component, and then receive the age information input by the user through an input component. According to the age information input by the user and the application levels of various applications, an application restriction list is generated, and the applications installed on the terminal device that are not suitable for minors to use are prohibited according to the generated application restriction list, so that the reasonable use of the terminal device can be better controlled. Description of the Drawings
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0043] Figure 1 It is a diagram of an application scenario of an application usage control method provided by an embodiment of the present application;
[0044] Figure 2 It is a schematic structural diagram of a terminal device provided by an embodiment of the present application;
[0045] Figure 3 It is a software structure block diagram of a terminal device provided by an embodiment of the present application;
[0046] Figure 4 It is an interaction flowchart of an application usage control method provided by an embodiment of the present application;
[0047] Figure 5 It is an interface diagram of a terminal device provided by an embodiment of the present application;
[0048] Figure 6 It is a schematic diagram of a terminal device generating a second application level list provided by an embodiment of the present application;
[0049] Figure 7 It is a schematic diagram of a terminal device guiding a user to select to turn on a control service provided by an embodiment of the present application;
[0050] Figure 8 It is a flowchart of a terminal device receiving age information and generating an application restriction list provided by an embodiment of the present application;
[0051] Figure 9 It is a schematic diagram of a terminal device guiding a user to input age information provided by an embodiment of the present application;
[0052] Figure 10Schematic diagram of a user selecting to modify age information in the interface for controlling services provided by an embodiment of this application;
[0053] Figure 11 Schematic diagram of a terminal device guiding a user to input modified age information provided by an embodiment of this application;
[0054] Figure 12 Schematic diagram of a terminal device guiding a user to perform identity verification provided by an embodiment of this application;
[0055] Figure 13 Schematic diagram of a terminal device displaying a prompt indicating that the age information modification is completed provided by an embodiment of this application;
[0056] Figure 14 Schematic diagram of a terminal device prohibiting an application included in an application usage restriction list from displaying a prompt provided by an embodiment of this application;
[0057] Figure 15 Flowchart of an application usage control method provided by an embodiment of this application;
[0058] Figure 16 Schematic diagram of the structure of a terminal device application usage control device provided by an embodiment of this application. Detailed implementation manners
[0059] In order to make the objectives, technical solutions, and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
[0060] It should be noted that the terms "including" and "having" and their variations involved in the documents of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those clearly listed steps or units, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or devices.
[0061] The terms "first" and "second" in the text are only used for descriptive purposes and cannot be construed as explicitly or implicitly indicating relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of this application, unless otherwise stated, the meaning of "a plurality" is two or more.
[0062] As used hereinafter, the term "exemplary" means "serving as an example, embodiment or illustration". Any embodiment illustrated as "exemplary" is not necessarily to be construed as superior or better than other embodiments.
[0063] The present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0064] Figure 1 Fig. shows an application scenario of an application usage control method provided by an embodiment of the present application. Refer to Figure 1 As shown, the server 100 is communicatively connected to the terminal device through the network 101. Among them, the network 101 can be, but is not limited to, a local area network, a metropolitan area network or a wide area network, etc. The number of terminal devices connected to the server 100 can be multiple. For example, the terminal device can include a control device 300 corresponding to the control service to be enabled, can also include a controlled device 301 receiving the control service, and can also include a device 302 that enables and receives the control service. That is to say, the user can use the control device 300 to enable the control service for the controlled device 301, or can also turn on the control service on the device 302 and receive the control service. The following description can take enabling the control service for the current terminal device as an example.
[0065] The terminal device can be a portable device (such as: mobile phone, tablet computer, smart watch, etc.), or can also be a computer, a smart screen or a personal computer (PC, Personal Computer), etc.
[0066] The server 100 can be an application-level server that stores multiple applications. The server 100 can be any device with networking capabilities and capable of providing data processing capabilities. Exemplarily, the server 100 can be a cloud server, or can be a server set composed of one or more servers.
[0067] Figure 1 The application scenario of... is only an example of an application scenario for implementing the embodiment of the present application. The embodiment of the present application is not limited to the above Figure 1 described application scenario.
[0068] Figure 2 Fig. shows a hardware configuration block diagram of a terminal device. The terminal devices in the embodiments of the present application can all adopt Figure 2 the terminal device shown in Fig. It should be understood that Figure 2 the terminal device 200 shown in Fig. is only an example, and the terminal device 200 can have more Figure 2More or fewer components as shown may combine two or more components or may have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0069] As Figure 2 shown, the terminal device 200 includes components such as a communication component 210, a processor 220, a memory 230, a display 240, an input component 250, an audio circuit 260, a SIM (Subscriber Identity Module) card interface 270, and a sensor 280.
[0070] Among them, the communication component 210 is used to connect to the server and transmit data. The communication component 210 may include an RF (radio frequency) circuit 211 and a Wi-Fi (Wireless Fidelity) module 212.
[0071] The RF circuit 211 can be used for signal reception and transmission. It can receive downlink data from the base station and hand it over to the processor 220 for processing; it can send uplink data to the base station. Generally, the RF circuit 211 includes, but is not limited to, devices such as antennas, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. The RF circuit 211 can receive electromagnetic waves through the antenna, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The RF circuit 211 can also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna for radiation. In some embodiments, at least some functional modules of the RF circuit 211 may be provided in the processor 220.
[0072] In some embodiments, at least some functional modules of the RF circuit 211 and at least some modules of the processor 220 may be provided in the same device. The RF circuit 211 of the terminal device 200 is coupled to the antenna, enabling the terminal device 200 to communicate with the network and other devices through wireless communication technologies.
[0073] Wi-Fi belongs to short-range wireless transmission technology. The terminal device 200 can help users send and receive emails, browse the web, and access streaming media through the Wi-Fi module 212, providing users with wireless broadband Internet access. The Wi-Fi module 212 can connect to a router and connect to the external network through the router. The Wi-Fi module 212 can also connect to the server to upload or download data.
[0074] The memory 230 can be used to store data or program codes used during the operation of the terminal device. The processor 220 executes various functions and data processing of the terminal device 200 by running the data or program codes stored in the memory 230. The memory 230 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. The memory 230 stores an operating system that enables the terminal device 200 to operate.
[0075] The display 240 is used to display information input by the user or information provided to the user, as well as the graphical user interface (GUI) of various menus of the terminal device 200. Specifically, the display 240 may include a display disposed on the front of the terminal device 200. The display 240 may be configured in the form of a liquid crystal display, a light-emitting diode, etc. The display 240 can be used to display the interface when the terminal device is running.
[0076] The input component 250 can be used to receive digital or character information input by the user, as well as various operations input by the user, and generate signal inputs related to the user settings and function control of the terminal device 200. Specifically, the input component 250 may include buttons and a touch screen. The touch screen can be disposed on the front of the terminal device 200 and can collect touch operations of the user thereon or nearby, such as clicking buttons, dragging scroll boxes, etc. For example, the user can input relevant information such as a password through the touch screen, and the user can also input information for enabling control services through buttons or the touch screen.
[0077] Among them, the touch screen can cover the display. In some embodiments, the touch screen and the display can be integrated to implement the input and output functions of the terminal device 200. After integration, it can be simply referred to as a touch display.
[0078] The terminal device 200 may further include a positioning module, such as a satellite positioning module or a mobile communication network positioning module, etc., which can determine the geographical location where the terminal device 200 is located in real time.
[0079] The audio circuit 260, speaker 261, and microphone 262 can provide an audio interface between the user and the terminal device 200. The audio circuit 260 can transmit the electrical signal converted from the received audio data to the speaker 261, and the speaker 261 converts it into a sound signal for output. The terminal device 200 can also be configured with volume buttons for adjusting the volume of the sound signal. On the other hand, the microphone 262 converts the collected sound signal into an electrical signal, which is received by the audio circuit 260, converted into audio data, and then the audio data is output to the RF circuit 211 to be sent to, for example, another terminal, or the audio data is output to the memory 230 for further processing. In this application, the microphone 262 can obtain the user's voice. For example, the user can enter a prompt message by voice.
[0080] The SIM card interface 270 is used to connect the SIM card. The SIM card can be inserted into or removed from the SIM card interface 270 to achieve contact and separation from the terminal device 200. The terminal device 200 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 270 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface simultaneously. The types of the multiple cards can be the same or different. The SIM card interface can also be compatible with different types of SIM cards. The SIM card interface can also be compatible with external memory cards. The terminal device 200 interacts with the network through the SIM card to achieve functions such as calls and data communication. In some embodiments, the terminal device 200 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal device 200 and cannot be separated from the terminal device 200. The SIM card is used to identify the user's mobile phone number.
[0081] In addition to the SIM card interface 270, the terminal device 200 can also include a USB (universal serial bus) interface, etc. The USB interface is used to connect a charging cable or other peripherals. For example, the terminal device 200 can connect a charging cable through the USB interface. Each component or module in the terminal device 200 is connected through a bus.
[0082] The terminal device 200 can also include at least one sensor 280, such as an acceleration sensor 281, a distance sensor 282, a fingerprint sensor 283, and a temperature sensor 282. The terminal device 200 can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor. For example, the fingerprint sensor 283 can be used to sense the user's click on the icon of the operation interface of the terminal device 200.
[0083] The terminal device 200 may further include a camera for capturing still images or videos. The camera may be one or more. An object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the processor 220 to be converted into a digital image signal. In the embodiments of the present application, video recording prompt information may be provided.
[0084] The processor 220 is the control center of the terminal device 200, connecting various parts of the entire terminal through various interfaces and lines. By running or executing software programs stored in the memory 230 and calling data stored in the memory 230, it executes various functions of the terminal device 200 and processes data. In some embodiments, the processor 220 may include one or more processing units. In the present application, the processor 220 may run an operating system, application programs, user interface display and touch response, as well as an application usage control method described in the embodiments of the present application. The specific process of the processor 220 executing an application usage control method will be described in detail below.
[0085] Figure 3 is the software structure block diagram of the terminal device 200 in the embodiments of the present application.
[0086] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely the application layer, the application framework layer, the Android runtime and the system library, and the kernel layer.
[0087] The application layer may include a series of application packages. As Figure 3 shown, the application packages may include applications such as camera, gallery, calendar, call, map, navigation, clock, Bluetooth, music, video, short message, etc. The user can set an alarm in the clock application. The application layer may also include third-party applications installed on the terminal device.
[0088] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.
[0089] As Figure 3As shown in the figure, the application framework layer may include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, etc.
[0090] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0091] The content provider is used to store and obtain data, and make this data accessible to application programs. The data may include alarm data, videos, images, audio, dialed and answered calls, browsing history and bookmarks, phone books, etc.
[0092] The view system includes visible controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build application programs. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
[0093] The telephone manager is used to provide the communication function of the terminal device. For example, the management of call status (including connection, disconnection, etc.). The resource manager provides various resources for application programs, such as localized strings, icons, pictures, layout files, video files, and so on.
[0094] The notification manager enables application programs to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short stay without user interaction. For example, the notification manager is used to inform that the download is completed, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as a notification of a background-running application program, and can also be a notification that appears on the screen in the form of a dialogue window. For example, prompt text information in the status bar, emit a prompt sound, the terminal vibrates, the indicator light flashes, etc.
[0095] Android Runtime includes a core library and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.
[0096] The core library contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of Android.
[0097] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0098] The system library may include multiple functional modules. For example: the surface manager, Media Libraries, 3D graphics processing library (e.g., OpenGL ES), 2D graphics engine (e.g., SGL), etc. Among them, the 3D graphics processing library and the 2D graphics engine both belong to the common camera resources.
[0099] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0100] The media library supports the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0101] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0102] The 2D graphics engine is a drawing engine for 2D drawing.
[0103] The kernel layer is the layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0104] To further illustrate the technical solutions provided by the embodiments of the present application, the following will be described in detail in combination with the accompanying drawings and specific implementation manners. Although the embodiments of the present application provide method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or non-creative labor. In steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present application. When the method is actually processed or the device executes, it can be executed in the order shown in the embodiments or drawings or executed in parallel.
[0105] With the development of technology, more and more people need to use terminal devices to meet the needs of daily life. More and more applications can be installed on terminal devices, but the content of these applications is uneven. Once minors install and use some bad software, it will have a huge impact on their physical and mental health.
[0106] Based on this, an embodiment of the present application provides a terminal device and an application usage control method. The terminal device can receive a rating query table including all installed applications on the terminal device generated by the server through a communication component, and can also receive age information input for the terminal device through an input component. The terminal device determines an application restriction list according to the generated rating query table and the input age information, and prohibits minors from installing applications on the terminal device or using the applications already installed on the terminal device but not suitable for minors according to the generated application restriction list.
[0107] Figure 4 The interaction flowchart of an application usage control method provided by an embodiment of the present application is shown. Before the terminal device executes the application usage control method, the terminal device needs to interact with the server first to obtain the application levels of each application installed on the terminal device, such as Figure 4 shown, the method may include the following steps:
[0108] Step S401, the terminal device determines the application information of each installed application.
[0109] In a possible embodiment, the application information may include information such as the application name, operator, and operation platform number. The terminal device can generate an HTTP request using the Hypertext Transfer Protocol (HTTP). Exemplarily, an HTTP request can be generated using the statement createHTTPUrl. The parameters of createHTTPUrl may include the application information of each installed application described above, and the generated HTTP request also includes the application information of each installed application described above.
[0110] Exemplarily, Figure 5 The interface diagram of a terminal device is shown. As Figure 5 shown, if the applications installed in the terminal device include "Phone", "Messages", "Music", "Weather", "Camera", "Gallery", the terminal device can determine the application information of each installed application. For example, the application information of the "Phone" application may include the application name "Phone", the operator may be Operator A, the operation platform number may be 111111, etc. The application package name field may be tel. The generated HTTP request at least includes the relevant information of the "Phone" application. Among them, the application package name field can be understood as a kind of number of the application. In most cases, different applications correspond to different application package name fields. Therefore, the application package name field can be used as one of the preferred identifiers to distinguish different applications to achieve a more accurate query purpose.
[0111] Step S402, the terminal device sends the application information of each application to the server.
[0112] In a possible embodiment, the terminal device may use the function httpsClient.execute() to send the HTTP request generated in the above steps to the server. Among them, the parameter of the function httpsClient.execute() may be the HTTP request generated in the above steps.
[0113] Step S403: The server queries the application levels of each application from the first application level list according to the application information of each application.
[0114] In a possible embodiment, a first application level list is stored in the server, and the application levels of multiple applications are stored in the first application list. When the server receives an HTTP request sent by the terminal device and containing the application information of each application, it can perform a query according to the HTTP request and generate the application levels corresponding to each application in the HTTP request.
[0115] Exemplarily, if in the first application level list, it includes Application A, and the minimum age of users allowed to use Application A is 13 years old; Application B, and the minimum age of users allowed to use Application B is 14 years old; Application C, and the minimum age of users allowed to use Application C is 16 years old. When the server receives an HTTP request sent by the terminal device, where the HTTP request includes the application names Application A and Application C and other information corresponding to Application A and Application C, then the server can query from the first application level list according to the application information of each of Application A and Application C and obtain that the application level corresponding to Application A is 13 years old, and the application level corresponding to Application C is 16 years old.
[0116] Step S404: The server sends the application levels of each application to the terminal device.
[0117] In a possible embodiment, the server sends the application levels of each application generated by querying according to the HTTP request to the terminal device so that the subsequent steps can be executed normally.
[0118] Step S405: The terminal device saves the application levels of each application.
[0119] In a possible embodiment, the server can send the application levels of each application to the terminal device through a data packet, and the data packet carries an HTTP status code. After receiving the data packet sent by the server, the terminal device can use the BufferedReader function to extract the HTTP status code from the data packet, and perform data validity check on the data packet according to the extracted HTTP status code. Exemplarily, when the HTTP status code is 200, it can be obtained that the server has successfully processed the request and returned the requested resource; when the status code is 404, it can be obtained that the requested resource does not exist and the server cannot find the requested resource, so the requested resource cannot be returned; that is to say, when the HTTP status code is 200, the data packet sent by the server can be considered valid, and when the HTTP status code is 404, the data packet sent by the server can be considered invalid.
[0120] If the data packet sent by the server is valid, the terminal device can save the received data packet in a buffer in the memory, and then parse the data packet saved in the buffer to obtain the application levels of each application and the application information of each application.
[0121] In a possible embodiment, after the terminal device parses the application levels of each application and the application information of each application, it can create a second application level list according to the parsed data. It should be noted that the second application level list can be understood as a subset of the first application level list. The first application level list can include the application levels of most applications; the second application level list can include the application levels of the applications installed on the terminal device. Among them, the second application level list can contain the application levels of each application and the application information of each application. The user can query the application level and application information corresponding to each application according to the second application level list.
[0122] Exemplarily, such as Figure 6As shown, the second application level list may include three types of information: application name, application level, and application-related information. Among them, under the application name, the names of the applications installed on the terminal device can be listed, such as Application A, Application B, Application C, and Application D; the application level indicates the minimum age of the users allowed to use the application. For example, the minimum age allowed to use Application A is 14 years old, the minimum age allowed to use Application B is 15 years old, the minimum age allowed to use Application C is 16 years old, and the minimum age allowed to use Application D is 12 years old. At the same time, application-related information, such as the operator of the application and the operation platform number, can also be viewed. For example, the operator corresponding to Application A is Operator A, and the operation platform number is 111111; the operator corresponding to Application B is Operator B, and the operation platform number is 222222; the operator corresponding to Application C is Operator C, and the operation platform number is 333333; the operator corresponding to Application D is Operator D, and the operation platform number is 444444.
[0123] It should be noted that if the terminal device meets any one of the following conditions: the terminal device is started for the first time; there is a newly installed application in the terminal device; the control service of the terminal device is turned on, then steps S401 to S405 are executed to prevent an application from not being detected by the terminal device under the above three conditions. For example, if the user installs Application A on the terminal device, then the application level of Application A needs to be queried among the application levels of each previously confirmed application, and the queried application level of Application A is added to the application levels of each previously queried application. This avoids minors being able to use unauthorized applications by taking advantage of loopholes in the control service.
[0124] Step S406, the terminal device receives the age information input by the user, and generates an application restriction list according to the age information and the application levels of each application.
[0125] In a possible embodiment, whenever steps S401 to S405 are completed, the terminal device can guide the user to select to turn on the control service. Exemplarily, as Figure 7 shown, after the terminal device saves the application levels of each application, a control service opening interface including a prompt message of "Do you need to turn on the control service?" can be popped up, and two controls are provided in the prompt message. One control shows "Need", and when the user clicks the "Need" control, the terminal device turns on the control service; the other control shows "Don't need", and when the user clicks the "Don't need" control, the terminal device does not turn on the control service.
[0126] Exemplarily, step S406 can be implemented through the Figure 8 flowchart shown, and this process can include the following steps:
[0127] Step S4061: Determine whether the user has enabled the control service. If so, execute Step S4062; if not, end.
[0128] In a possible embodiment, the terminal device can obtain the status of the control service through the getStatusCode() function. If in the above control service enabling interface, the user clicks the "Required" control and the status of the control service obtained through the getStatusCode() function is 1, it can be determined that the control service has been enabled; if in the above prompt message, the user clicks the "Not Required" control and the status of the control service obtained through the getStatusCode() function is 0, it can be determined that the control service has not been enabled.
[0129] Step S4062: Receive the age information input by the user.
[0130] In a possible embodiment, the terminal device can display a first information collection interface to guide the user to input age information. As Figure 9 shown, the first information collection interface includes a prompt message of "Please enter the user's age information" and an input control, which allows the user to input age information. At the same time, the terminal device can also receive the age information input by the user through the input component.
[0131] Step S4063: Compare the age information with the minimum age indicated by the application level of each application respectively, and add the applications whose minimum age indicated by the application level is higher than the age information to the application restriction list.
[0132] In a possible embodiment, the corresponding application restriction list can be generated according to the second application level list generated in Step S405, or the corresponding application restriction list can be generated according to the application levels of each application parsed by the terminal device from the buffer and the application information of each application. This application does not make a limitation here.
[0133] Exemplarily, if the age information of the input user is 12 years old, and there are three applications, Application A, Application B, and Application C installed on the terminal device. Among them, the minimum age of users allowed to use Application A is 11 years old, the minimum age of users allowed to use Application B is 13 years old, and the minimum age of users allowed to use Application C is 15 years old. Then, after generating the application restriction list, Application B and Application C can be added to the application restriction list.
[0134] Step S4064: Determine whether the user modifies the age information. If so, return to execute Step S4063; if not, end.
[0135] In a possible embodiment, as Figure 10As shown, the interface of the control service of the terminal device may include four controls: "View Age Information", "Modify Age Information", "View Application Restriction List", and "Close Control Service". If the user clicks the "View Age Information" control, the user can view the age information entered in the first information collection interface; if the user clicks the "View Application Restriction List" control, the terminal device displays the relevant content of the application restriction list; if the user clicks the "Close Control Service" control, identity verification is performed, and after successful identity verification, the control service is closed; if the user clicks the "Modify Age Information" control, the user can select to modify the age information in the interface displayed by the terminal device.
[0136] In a possible embodiment, after the user clicks the "Modify Age Information" control, the terminal device may display a second information collection interface to guide the user to enter the modified age information. As Figure 11 shown, the second information collection interface includes a prompt message "Please enter the modified user age information" and an input control that allows the user to enter age information. At the same time, the terminal device can also receive the modified age information entered by the user in the second information collection interface through the input component.
[0137] It should be noted that to prevent the age information from being modified randomly. For example, a 13-year-old user wants to use an application that can only be used by users at least 15 years old, and he may modify the age information by himself. Therefore, to prevent the above situation from occurring, after the user enters the modified age information, the terminal device can display an information verification interface to the user and receive the identity verification information entered by the user in the information verification interface, so as to perform identity verification on the user. As Figure 12 shown, the terminal device can display an information verification interface, prompt the user to perform identity verification, and display two controls: "Fingerprint Recognition" and "Facial Recognition". If the user clicks the "Fingerprint Recognition" control, the terminal device recognizes the user's fingerprint. If it is determined that the identity verification information entered by the user is correct, the age information modification is successful; if the user clicks the "Facial Recognition" control, the terminal device recognizes the user's facial features. If it is determined that the identity verification information entered by the user is correct, the terminal device can consider the age information modification successful and update the application restriction list according to the modified age information and the application levels of each application. After the age information modification is completed, the terminal device will display a prompt indicating that the modification is completed. As Figure 13 shown, the terminal device can prompt the user "Modification completed!", and after the user clicks OK, the terminal device can be used normally.
[0138] Step S407, the terminal device prohibits the running of the applications included in the application restriction list.
[0139] After the user enables the control service, if a start operation for the first application is received from the user and it is determined that the first application is in the application restriction list, the restrictedAppStart() function is used to prohibit the first application from running, and a prompt message indicating that the first application is prohibited from being used is displayed to the user. As Figure 14 shown, the prompt message includes "This application cannot be run!" and an "OK" control. If the user clicks the "OK" control, the terminal device can be used continuously.
[0140] It should be noted that when the user enables the control service, installing any application on the terminal device is prohibited. Exemplarily, the terminal device can use the forbidAppInstallFromLocalPath() function to prohibit the user from running and installing the application installation package stored in the terminal device, or use the forbidAppInstallFromSD() function to prohibit the user from installing applications on the SD card and installing applications for the terminal device using the network.
[0141] It should be noted that after the user enables the control service and sets the age information, the terminal device can provide the function of disabling the control service for the user. When the user of the terminal device is changed and there is no need to restrict the changed user, the user can cancel the usage control of the applications on the terminal device by using the function of disabling the control service. Exemplarily, the terminal device can set a control button for the control service in the "Settings" interface, and the user can turn the control service on or off by toggling the control button. If the terminal device receives an operation from the user to disable the control service, the control service is disabled. When a start operation for the first application is received from the user again, it is no longer determined whether the first application is in the application restriction list, and the first application can be run directly. Here, the first application can be any application installed on the terminal device. If the terminal device receives an operation from the user to install a new application, the operation of installing the new application can also be executed to install the new application selected by the user.
[0142] Based on the same inventive concept, an application usage control method is also provided in an embodiment of the present application. As Figure 15 shown, the method may include the following steps:
[0143] Step S1501, obtaining the application levels of the applications installed on the terminal device from the server.
[0144] Step S1502, receiving the age information input by the user.
[0145] Step S1503, generating an application restriction list according to the age information input by the user and the application levels of the applications.
[0146] Step S1504, prohibit the running of the applications included in the application restriction list.
[0147] Based on the same inventive concept, an embodiment of the present application further provides a control device for using applications of a terminal device, as Figure 16 shown. The control device for using applications of the terminal device includes:
[0148] An information acquisition unit 1601, configured to acquire the application levels of each application installed on the terminal device from the server through a communication component; the application level of any application is used to indicate the minimum age of the user allowed to use the any application; receive the age information input by the user through an input component.
[0149] An application restriction list generation unit 1602, configured to generate an application restriction list according to the age information input by the user and the application levels of the respective applications.
[0150] An application disabling unit 1603, configured to prohibit the running of the applications included in the application restriction list.
[0151] In an optional implementation manner, the application disabling unit 1603 is specifically configured to:
[0152] Upon receiving a start operation of the user for a first application, if it is determined that the first application is in the application restriction list, prohibit the running of the first application, and display a prompt message for prohibiting the use of the first application to the user.
[0153] In an optional implementation manner, the application restriction list generation unit 1602 is specifically configured to:
[0154] When the application level acquisition condition is met, perform the step of acquiring the application levels of each application installed on the terminal device from the server through the communication component; the application level acquisition condition includes any one of the following conditions:
[0155] The terminal device is started for the first time;
[0156] There is a newly installed application in the terminal device;
[0157] The control service of the terminal device is turned on.
[0158] In an optional implementation manner, the application restriction list generation unit 1602 is specifically configured to:
[0159] Determine each application installed on the terminal device;
[0160] Send the application information of each application to the server through the communication component;
[0161] Receiving, through the communication component, the application levels of the various applications sent by the server; the application levels of the various applications are those queried by the server from the first application level list according to the application information of the various applications.
[0162] In an alternative embodiment, the information acquisition unit 1601 is specifically configured to:
[0163] Display, through the display, a control service opening interface to the user;
[0164] If an operation to turn on the control service input by the user on the control service opening interface is received, display, through the display, a first information collection interface to the user;
[0165] Receive, through the input component, the age information input by the user in the first information collection interface.
[0166] In an alternative embodiment, the application restriction list generation unit 1602 is specifically configured to:
[0167] After receiving the age information input by the user, respectively compare the age information with the minimum ages indicated by the application levels of the various applications, and add the applications whose minimum ages indicated by the application levels are higher than the age information to the application restriction list.
[0168] In an alternative embodiment, the information acquisition unit 1601 is specifically configured to:
[0169] If an operation to request modification of age input by the user is received, display a second information collection interface to the user;
[0170] Receive the modified age information input by the user in the second information collection interface;
[0171] Display an information verification interface to the user, and receive the identity verification information input by the user in the information verification interface;
[0172] If it is determined that the identity verification information input by the user is correct, update the application restriction list according to the modified age information and the application levels of the various applications.
[0173] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0174] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and combinations of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device generate means for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.
[0175] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including instruction means that implement the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.
[0176] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.
[0177] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these changes and modifications.
Claims
1. A terminal device, characterized in that, it includes: an input component, a communication component and a processor; the input component is used to receive information input by the user; the communication component is used to connect to the server and transmit data; multiple application levels are stored in the server; the processor is configured to: obtain the application levels of each application installed on the terminal device from the server through the communication component; wherein, the application level of any application is used to indicate the minimum age of the user allowed to use the any application; receive the age information input by the user through the input component; generate an application restriction list according to the age information input by the user and the application levels of each application; prohibit the running of the applications included in the application restriction list.
2. The terminal device according to claim 1, characterized in that, the processor is specifically configured to: when receiving a start operation of the user for a first application, if it is determined that the first application is in the application restriction list, prohibit the running of the first application, and display a prompt message for prohibiting the use of the first application to the user.
3. The terminal device according to claim 1, characterized in that, the processor is specifically configured to: when the application level acquisition condition is met, execute the step of obtaining the application levels of each application installed on the terminal device from the server through the communication component; the application level acquisition conditions include any one of the following conditions: the terminal device is started for the first time; there is a newly installed application in the terminal device; the control service of the terminal device is turned on.
4. The terminal device according to claim 1, characterized in that, the application levels of the multiple applications are stored in a first application level list; the processor is specifically configured to: determine each application installed on the terminal device; send the application information of each application to the server through the communication component; receive the application levels of each application sent by the server through the communication component; the application levels of each application are: those queried by the server from the first application level list according to the application information of each application.
5. The terminal device according to claim 1, characterized in that, the terminal device further includes a display; the processor is specifically configured to: display a control service opening interface to the user through the display; if receiving an operation of opening the control service input by the user on the control service opening interface, display a first information collection interface to the user through the display; receive the age information input by the user in the first information collection interface through the input component.
6. The terminal device according to claim 1, characterized in that, the processor is specifically configured to: after receiving the age information input by the user, compare the age information with the minimum age indicated by the application levels of each application respectively, and add the applications whose minimum age indicated by the application level is higher than the age information to the application restriction list.
7. The terminal device according to claim 6, characterized in that, the processor is specifically configured to: If a request to modify the age is received from the user, display a second information collection interface to the user; Receive the modified age information entered by the user in the second information collection interface; Display an information verification interface to the user and receive the identity verification information entered by the user in the information verification interface; If it is determined that the identity verification information entered by the user is correct, update the application restriction list according to the modified age information and the application levels of the respective applications.
8. The terminal device according to claim 1, wherein: the processor is further configured to: After the user enables the control service, if an operation to install a new application is received from the user, prohibit the execution of the operation to install the new application.
9. An application usage control method, wherein: the method includes: Obtain the application levels of the respective applications installed on the terminal device from the server; the application level of any application is used to indicate the minimum age of the user allowed to use the any application; Receive the age information entered by the user; Generate an application restriction list according to the age information entered by the user and the application levels of the respective applications; Prohibit the running of the applications included in the application restriction list.
10. A computer-readable storage medium, in which a computer program is stored, wherein: When the computer program is executed by a processor, the method described in claim 9 is implemented.