Application running method and electronic device
Abstract
This application provides an application running method and an electronic device. The method includes: displaying, by an electronic device, a first interface, where the first interface is an interface displayed after a target application APP is started; prompting, by the electronic device in a case that the electronic device determines that a running duration of the target APP is greater than or equal to a duration threshold, a user to enter a voice token, where the voice token is randomly generated by the target APP; and making the target APP exit, and displaying, by the electronic device, a second interface in response to determining, by the electronic device, according to the voice token entered by the user, that the user is a target user, where the second interface is an interface displayed by the electronic device after the target APP has exited.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . An application running method, applicable to an electronic device, the method comprising:
obtaining, by a processor of the electronic device, a token login password entered by a user in a process of starting a game application (APP), wherein the token login password is token information preset by a registered user of the game APP; starting, by the processor, the game APP according to the token login password entered by the user, and determining, by the electronic device, whether a game play duration of the user in the game APP is greater than or equal to a duration threshold; prompting, by the processor of the electronic device in a case that the game play duration is greater than or equal to the duration threshold, the user to enter a first voice token, wherein the first voice token is randomly generated by the game APP, the prompting including
displaying, by the processor of the electronic device, first prompt information on a first interface, wherein the first prompt information is used for prompting the user to enter the first voice token by voice; or
prompting, by the processor of the electronic device by voice, the user to enter the first voice token; and
receiving, by the processor of the electronic device, a second voice token entered by the user; determining, by the processor of the electronic device, that the first voice token and the second voice token are the same; determining, by the processor of the electronic device according to the second voice token, whether the user is a minor or an adult based on age information of the user in real time, wherein the determining, by the processor of the electronic device according to the second voice token, that the user is a minor comprises: performing, by the processor of the electronic device, voiceprint recognition on the second voice token, and determining, according to a voiceprint recognition result, that the user is a minor, including: inputting, by the processor of the electronic device, the second voice token into a trained voiceprint recognition model for voiceprint recognition, to obtain the age information of the user, wherein the voiceprint recognition model has learned a mapping relationship between speech features of a speaker and corresponding age information; and determining, according to the age information of the user, that the user is a minor; in response to determining, by the processor of the electronic device according to the second voice token, that the user is a minor, making, by the processor of the electronic device, the game APP exit; and in response to determining, by the processor of the electronic device according to the second voice token, that the user is an adult, and determining, according to the second voice token and the token login password, that the user is a registered user starting the game APP, continuing, by the processor of the electronic device, to run the game APP.
2 . The method according to claim 1 , wherein the prompting, by the processor of the electronic device, the user to enter a first voice token comprises:
periodically or randomly prompting, by the processor of the electronic device, the user to enter the first voice token.
3 . The method according to claim 1 , wherein the method further comprises:
displaying, by the processor of the electronic device, the first interface after the game APP is started according to the token login password.
4 . The method according to claim 1 , wherein after the determining, by the processor of the electronic device according to the second voice token, that the user is a minor, the method further comprises:
displaying, by the processor of the electronic device, second prompt information, wherein the second prompt information is used for prompting the user that a running duration of the game APP has reached the duration threshold and the game APP is about to shut down.
5 . The method according to claim 1 , wherein the starting the game APP according to the token login password entered by the user comprises:
starting, by the processor of the electronic device, the game APP in a case that it is determined, according to the token login password entered by the user, that the user is an adult.
6 . The method according to claim 1 , wherein the method further comprises:
making, by the processor of the electronic device in a case that it is determined, according to the token login password entered by the user, that the user is a minor and the electronic device determines that a moment at which the user enters the token login password is outside a preset time period, the game APP exit.
7 . The method according to claim 1 , wherein after the determining, by the processor of the electronic device according to the second voice token, that the user is an adult, and determining, according to the second voice token and the token login password, that the user is a registered user starting the game APP, the method further comprises:
measuring, by the processor of the electronic device, the game play duration of the user in the game APP again.
8 . The method according to claim 1 , wherein the method further comprises:
making, by the processor of the electronic device in a case that the electronic device determines that the first voice token and the second voice token are different, the game APP exit.
9 . The method according to claim 1 , further comprising:
in response to determining, by the electronic device, that the first voice token and the second voice token are the same, continuing to run the game APP.
10 . The method according to claim 1 , wherein the starting the game APP according to the token login password entered by the user comprises:
starting, by the processor of the electronic device, the game APP in a case that it is determined, according to the token login password entered by the user, that the user is a minor and the electronic device determines that a moment at which the user enters the token login password is within a preset time period.
11 . An electronic device, comprising:
one or more processors; and a memory, wherein the memory stores one or more computer programs, the one or more computer programs comprise instructions, and the instructions, when executed by the electronic device, cause the electronic device to perform: obtaining a token login password entered by a user in a process of starting a game application (APP), wherein the token login password is token information preset by a registered user of the game APP; starting the game APP according to the token login password entered by the user, and determining whether a game play duration of the user in the game APP is greater than or equal to a duration threshold; prompting the user to enter a first voice token, in a case that the game play duration is greater than or equal to the duration threshold, wherein the first voice token is randomly generated by the game APP, the prompting including:
displaying first prompt information on a first interface, wherein the first prompt information is used for prompting the user to enter the first voice token by voice; or
prompting, by the electronic device by voice, the user to enter the first voice token; and
receiving a second voice token entered by the user; determining that the first voice token and the second voice token are the same; determining, according to the second voice token, whether the user is a minor or an adult based on age information of the user in real time, wherein the determining, according to the second voice token, that the user is a minor comprises: performing voiceprint recognition on the second voice token, and determining, according to a voiceprint recognition result, that the user is a minor, including: inputting the second voice token into a trained voiceprint recognition model for voiceprint recognition, to obtain the age information of the user, wherein the voiceprint recognition model has learned a mapping relationship between speech features of a speaker and corresponding age information; and determining, according to the age information of the user, that the user is a minor; in response to determining, according to the second voice token, that the user is a minor, making the game APP exit; and in response to determining, according to the second voice token, that the user is an adult, and determining, according to the second voice token and the token login password, that the user is a registered user starting the game APP, continuing to run the game APP.
12 . The electronic device according to claim 11 , wherein the prompting the user to enter a first voice token comprises:
periodically or randomly prompting the user to enter the first voice token.
13 . The electronic device according to claim 11 , the instructions further cause the electronic device to perform:
displaying the first interface after the game APP is started according to the token login password.
14 . The electronic device according to claim 11 , after the determining, according to the second voice token, that the user is a minor, the instructions further cause the electronic device to perform:
displaying second prompt information, wherein the second prompt information is used for prompting the user that a running duration of the game APP has reached the duration threshold and the game APP is about to shut down.
15 . The electronic device according to claim 11 , wherein the starting the game APP according to the token login password entered by the user comprises:
starting the game APP in a case that it is determined, according to the token login password entered by the user, that the user is an adult; or starting the game APP in a case that it is determined, according to the token login password entered by the user, that the user is a minor and the electronic device determines that a moment at which the user enters the token login password is within a preset time period.
16 . The electronic device according to claim 11 , the instructions further cause the electronic device to perform:
making, in a case that it is determined, according to the token login password entered by the user, that the user is a minor and the electronic device determines that a moment at which the user enters the token login password is outside a preset time period, the game APP exit.
17 . The electronic device according to claim 11 , the instructions further cause the electronic device to perform:
in response to determining, by the electronic device, that the first voice token and the second voice token are the same, continuing to run the game APP.
18 . A computer-readable storage medium, storing instructions, wherein the instructions, when run on an electronic device, cause the electronic device to perform:
obtaining a token login password entered by a user in a process of starting a game application (APP), wherein the token login password is token information preset by a registered user of the game APP; starting the game APP according to the token login password entered by the user, and determining whether a game play duration of the user in the game APP is greater than or equal to a duration threshold; prompting the user to enter a first voice token, in a case that the game play duration is greater than or equal to the duration threshold, wherein the first voice token is randomly generated by the game APP, the prompting including:
displaying first prompt information on a first interface, wherein the first prompt information is used for prompting the user to enter the first voice token by voice; or
prompting, by the electronic device by voice, the user to enter the first voice token; and
receiving a second voice token entered by the user; determining that the first voice token and the second voice token are the same; determining, according to the second voice token, whether the user is a minor or an adult based on age information of the user in real time, wherein the determining, according to the second voice token, that the user is a minor comprises: performing voiceprint recognition on the second voice token, and determining, according to a voiceprint recognition result, that the user is a minor, including: inputting the second voice token into a trained voiceprint recognition model for voiceprint recognition, to obtain the age information of the user, wherein the voiceprint recognition model has learned a mapping relationship between speech features of a speaker and corresponding age information; and determining, according to the age information of the user, that the user is a minor; in response to determining, according to the second voice token, that the user is a minor, making the game APP exit; and in response to determining, according to the second voice token, that the user is an adult, and determining, according to the second voice token and the token login password, that the user is a registered user starting the game APP, continuing to run the game APP.
19 . The computer-readable storage medium according to claim 18 , the instructions further cause the electronic device to perform:
in response to determining, by the electronic device, that the first voice token and the second voice token are the same, continuing to run the game APP.Join the waitlist — get patent alerts
Track US12568080B2 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.