Terminal Device and Positioning Information Processing Method Applied to Terminal Device
Abstract
A terminal device and a positioning information processing method applied to a terminal device, where the terminal device includes a processor and a positioning chip. The processor receives a positioning request from a first application program or receives current positioning data of the terminal device from the positioning chip. The first application program is included in the terminal device. The processor obtains a running state of the first application program. The processor avoids sending the positioning request to the positioning chip or avoids sending the current positioning data to the first application program when the first application program is in a positioning service restricted state and the first application program is currently running in the background.
Claims
exact text as granted — not AI-modified1 . A terminal device comprising:
a memory configured to store a first application program; and a processor coupled to the memory and configured to:
receive positioning information from the first application program;
determine whether the first application program is in a positioning service restricted state and is running in the background; and
provide no positioning service for the first application program when the first application program is in the positioning service restricted state and is running in the background.
2 . The terminal device of claim 1 , further comprising a positioning chip configured to obtain positioning data of the terminal device, wherein the processor is further coupled to the positioning chip and further configured to:
receive a positioning request from the first application program; and prevent sending the positioning request to the positioning chip when the first application program is in the positioning service restricted state and is running in the background.
3 . The terminal device of claim 1 , further comprising a positioning chip configured to obtain positioning data of the terminal device, wherein the processor is further coupled to the positioning chip and further configured to:
receive current positioning data of the terminal device from the positioning chip; and prevent sending the current positioning data to the first application program when the first application program is in the positioning service restricted state and is running in the background.
4 . The terminal device of claim 1 , wherein the processor is further configured to determine that the first application program is in the positioning service restricted state according to a tag of the first application program.
5 . The terminal device of claim 1 , wherein the processor is further configured to determine that the first application program is in the positioning service restricted state according to a tag set for the first application program.
6 . The terminal device of claim 1 , wherein the processor is further configured to enter the positioning service restricted state in response to a user input.
7 . The terminal device of claim 1 , wherein the positioning service restricted state indicates that the first application program is allowed to use a positioning service in first conditions and is prohibited from using the positioning service in second conditions.
8 . The terminal device of claim 1 , wherein the processor is further configured to determine that the first application program is in the positioning service restricted state when a positioning service blacklist contains the first application program.
9 . The terminal device of claim 1 , wherein the processor is further configured to determine that the first application program is in the positioning service restricted state and is running in the background when a positioning service frozen application list contains the first application program.
10 . The terminal device of claim 9 , wherein the processor is further configured to delete the first application program from the positioning service frozen application list when the first application program changes from background running to foreground running.
11 . A positioning information processing method implemented by a terminal device and comprising
receiving positioning information from a first application program; determining whether the first application program is in a positioning service restricted state and is running in the background; and providing no positioning service for the first application program when the first application program is in the positioning service restricted state and is running in the background.
12 . The positioning information processing method of claim 11 , wherein the terminal device further comprises a positioning chip configured to obtain positioning data, and wherein the positioning information processing method further comprises:
receiving a positioning request from the first application program; and preventing sending the positioning request to the positioning chip when the first application program is in the positioning service restricted state and is running in the background.
13 . The positioning information processing method of claim 11 , wherein the terminal device further comprises a positioning chip configured to obtain positioning data, and wherein the positioning information processing method further comprises:
receiving current positioning data of the terminal device from the positioning chip; and preventing sending the current positioning data of the terminal device to the first application program when the first application program is in the positioning service restricted state and is running in the background.
14 . The positioning information processing method of claim 11 , further comprising determining that the first application program is in the positioning service restricted state according to a tag of the first application program.
15 . The positioning information processing method of claim 11 , further comprising determining that the first application program is in the positioning service restricted state according to a tag set for the first application program.
16 . The positioning information processing method of claim 11 , wherein the first application program is in the positioning service restricted state in response to a user input.
17 . The positioning information processing method of claim 11 , wherein the positioning service restricted state indicates that the first application program is allowed to use a positioning service in first conditions and is prohibited from using the positioning service in second conditions.
18 . The positioning information processing method of claim 11 , further comprising determining that the first application program is in the positioning service restricted state when a positioning service blacklist contains the first application program.
19 . The positioning information processing method of claim 11 , further comprising:
determining that the first application program is in the positioning service restricted state and is running in the background when a positioning service frozen application list contains the first application program; and deleting the first application program from the positioning service frozen application list when the first application program changes from background running to foreground running.
20 . A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable medium and that, when executed by a processor, cause a terminal device to:
receive positioning information from a first application program; determine whether the first application program is in a positioning service restricted state and is running in the background; and provide no positioning service for the first application program when the first application program is in the positioning service restricted state and is running in the background.Join the waitlist — get patent alerts
Track US2022330159A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.