CN114205734A - Control method, device and equipment of positioning function and storage medium - Google Patents

Control method, device and equipment of positioning function and storage medium Download PDF

Info

Publication number
CN114205734A
CN114205734A CN202010904651.9A CN202010904651A CN114205734A CN 114205734 A CN114205734 A CN 114205734A CN 202010904651 A CN202010904651 A CN 202010904651A CN 114205734 A CN114205734 A CN 114205734A
Authority
CN
China
Prior art keywords
positioning
mode
instruction
terminal equipment
positioning function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010904651.9A
Other languages
Chinese (zh)
Inventor
邓翱翔
颜敏睿
王浩星
蒋辉
张云
夏博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN202010904651.9A priority Critical patent/CN114205734A/en
Publication of CN114205734A publication Critical patent/CN114205734A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Abstract

The application provides a method, a device, equipment and a storage medium for controlling a positioning function. The method comprises the following steps: receiving a closing instruction, wherein the closing instruction is used for closing a positioning function; and shielding the closing instruction when the terminal equipment is in a positioning forced opening mode. According to the method, when the terminal equipment is in the positioning forced opening mode, the received closing instruction is shielded, the positioning function is not closed, the positioning function of the terminal equipment can be kept in an opening state, and the positioning accuracy is improved.

Description

Control method, device and equipment of positioning function and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling a positioning function.
Background
The positioning function is an important function of the terminal device. In some scenarios, the terminal device needs to be in a positioning forced-on mode, for example, a scenario in which the terminal device is lost and then is searched by using a positioning function, a scenario in which the terminal device is used to position a target such as a child or an old person, and the like. In the location-enforced opening mode, the location function of the terminal device cannot be closed by the holder of the terminal device, and the terminal device cannot be closed by the person having the authority after the authority authentication.
Generally, when a terminal device is in a location forced on mode, a location function is kept on through an inquiry mode. Specifically, the terminal device queries whether the positioning function is turned off at regular intervals, and automatically turns on the positioning function if the positioning function is turned off. However, the terminal device may automatically turn off the positioning function in some modes, for example, the terminal device may automatically turn off the positioning function when detecting that the positioning function is turned on in the power saving mode. Therefore, when the terminal device is in the positioning forced open mode and in the power saving mode, the positioning function is repeatedly opened and closed, resulting in poor positioning accuracy.
Disclosure of Invention
The embodiment of the application provides a control method, a control device and a storage medium of a positioning function, and aims to solve the problem of poor positioning accuracy in a positioning forced opening mode.
In a first aspect, an embodiment of the present application provides a method for controlling a positioning function, including:
receiving a closing instruction, wherein the closing instruction is used for closing a positioning function;
and shielding the closing instruction when the terminal equipment is in a positioning forced opening mode.
In a second aspect, an embodiment of the present application provides a control apparatus for a positioning function, including:
the device comprises a receiving module, a judging module and a processing module, wherein the receiving module is used for receiving a closing instruction, and the closing instruction is used for closing a positioning function;
and the processing module is used for shielding the closing instruction when the terminal equipment is in a positioning forced opening mode.
In a third aspect, an embodiment of the present application provides a terminal device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform a method of controlling a positioning function as described above in the first aspect and various possible implementations of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the method for controlling a positioning function according to the first aspect and various possible implementations of the first aspect is implemented.
The control method, device, equipment and storage medium for the positioning function provided by the embodiment of the application receive a closing instruction, wherein the closing instruction is used for closing the positioning function; when the terminal equipment is in the positioning forced opening mode, the closing instruction is shielded, and the received closing instruction is shielded and the positioning function is not closed when the terminal equipment is in the positioning forced opening mode, so that the positioning function of the terminal equipment can be kept in an opening state, and the positioning accuracy is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a control system for positioning function according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for controlling a positioning function according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a method for controlling a positioning function according to another embodiment of the present application;
fig. 4 is a flowchart of a positioning function control method according to another embodiment of the present application;
FIG. 5 is a schematic structural diagram of a control device for positioning function according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the terminal equipment is in a positioning forced opening mode, the positioning function is required to be kept in an opening state. Compared with the method for keeping the positioning function open through the inquiry mode, the method for keeping the positioning function open through the instruction shielding mode is provided for overcoming the problem that the positioning function can be repeatedly opened and closed, and particularly when the closing instruction for indicating to close the positioning function is received, if the current positioning function is in the positioning forced opening mode, the closing instruction is shielded, so that the terminal equipment does not execute the closing instruction and does not close the positioning function, the problem that the positioning function can be repeatedly opened and closed in the positioning forced opening mode is avoided, and when the terminal equipment is in the positioning forced opening mode, the positioning function keeps the opening state.
Fig. 1 is a scene schematic diagram of a control method of a positioning function according to an embodiment of the present application. The scene is searched by using a positioning function after the terminal equipment is lost. The scene includes two terminal devices: a first terminal device 11 and a second terminal device 12. The first terminal device 11 and the second terminal device 12 may be a mobile phone, a tablet, a notebook, a desktop, a wearable device, an unmanned aerial vehicle, and the like, which is not limited herein. The person to whom the first terminal device 11 belongs is person a. The person a carelessly loses the first terminal device 11. The person a can perform the authority authentication of the first terminal device 11 through the second terminal device 12, and after the authority authentication is passed, an entry instruction can be sent to the first terminal device 11 through the second terminal device 12 to instruct the first terminal device 11 to enter the location-forced open mode. The second terminal device 12 may obtain the position information located by the first terminal device 11, and display the position information, so that the person a can know the position of the first terminal device 11 to retrieve the first terminal device 11. After retrieving the first terminal device 11, the person a may control the first terminal device 11 to exit the location-enforced opening mode through an exit instruction after the first terminal device 11 or the second terminal device 12 passes the control authority authentication.
After receiving the entry instruction, the first terminal device 11 enters the location forced open mode. First, the first terminal device 11 detects whether the positioning function is in an on state, if so, the state of the positioning function is not changed, and if not, the positioning function is turned on. And then shielding the closing instruction of the positioning function, and not shielding the opening instruction of the positioning function, thereby keeping the positioning function in an opening state. If the first terminal device 11 is picked up by the person B, the person B does not want to return to the first terminal device 11, and tries to input a close instruction through the system setting, the application program, entering the power saving mode, and the like of the first terminal device 11 to close the positioning function. After receiving the close command, the first terminal device 11 masks the close command and does not execute the close command.
In this scenario, after entering the positioning forced open mode, the first terminal device 11 shields the received close instruction, and does not close the positioning function, so that the positioning function remains open, and sends the position information to the second terminal device 12, which is convenient for the user to obtain the position of the first terminal device 11, and then to retrieve the first terminal device 11.
It should be noted that fig. 1 is only an example, and the method for controlling a positioning function according to the embodiment of the present application may also be used in other scenarios, such as a scenario that a terminal device is used to position an object, such as a child or an old person, without limitation.
Fig. 2 is a flowchart illustrating a method for controlling a positioning function according to an embodiment of the present disclosure. The method can be applied to terminal equipment. The terminal equipment is provided with a positioning module, and the positioning function can be realized. As shown in fig. 2, the method includes:
s201, receiving a closing instruction, wherein the closing instruction is used for closing the positioning function.
In this embodiment, the terminal device may detect an instruction related to the positioning function, which is input by the owner through an input device of the terminal device or sent by another device. And when the instruction carries a closing parameter, determining the instruction as a closing instruction. For example, the holder of the terminal device may enter the system setting interface, and issue a closing instruction through the control of the positioning function, or issue a closing instruction through the control software of the positioning function.
S202, when the terminal equipment is in the positioning forced opening mode, shielding a closing instruction.
In this embodiment, in the location-forced open mode, the terminal device shields the close instruction, and does not execute the received close instruction. After receiving the closing instruction, the terminal device can determine whether the terminal device is in the positioning forced opening mode, and if so, the closing instruction is shielded, and the positioning function is not closed. Optionally, in the location-enforced opening mode, the terminal device may also shield the opening instruction of the location function, or may not shield the opening instruction of the location function, which is not limited herein. Optionally, when the terminal device is not in the positioning forced on mode, a closing instruction is executed to close the positioning function.
The Positioning function of the terminal device may be implemented by a Positioning module such as a Global Positioning System (GPS), a BeiDou Navigation Satellite System (BDS), and the like, which is not limited herein.
Taking the GPS positioning module as an example, the holder of the terminal device can perform on-off control of GPS positioning through the system setting interface. And after receiving the switch control operation of the holder aiming at the GPS positioning, the terminal equipment calls a corresponding GPS switch control function to generate a GPS switch control instruction. For example, the terminal device calls a location setting method function setlocationenableforuser in a location management service class locationManager of the GPS. The position setting method function calls the incoming method function putStringForUser in the security setting class settingsecure. The incoming method function is used to modify the control parameter LOCATION _ providing _ ALLOWED of the GPS with the incoming parameters. When the holder controls to open the GPS positioning function, the transmitted parameter in the putStringForUser is a GPS starting parameter value + GPS, and after the + GPS is written into LOCATION _ PROVIDERS _ ALLOWED, the GPS positioning function is opened. When the holder controls to close the GPS positioning function, the incoming parameter in the putStringForUser is a GPS closing parameter value-GPS, and after-GPS is written into LOCATION _ ProVIDERS _ ALLOWED, the GPS positioning function is closed.
The terminal equipment can confirm whether the terminal equipment is in a positioning forced opening mode or not after monitoring the call of the putStringForUser function, if so, further detects whether the parameter value carried in the putStringForUser function is + GPS or-GPS, and if yes, shields the parameter and does not transmit the-GPS to LOCATION _ ProVIDERS _ ALLOWED, so that the terminal equipment does not close the GPS positioning function.
In addition, the GPS positioning function can also be controlled to be switched on and off through a positioning MODE parameter LOCATION _ MODE in the using process. LOCATION _ MODE has four optional MODEs: pausing the positioning MODE, wherein the corresponding parameter value is LOCATION _ MODE _ OFF; ONLY using a GPS sensor MODE, wherein the corresponding parameter value is LOCATION _ MODE _ SENSORS _ ONLY; a power SAVING MODE, wherein the corresponding parameter value is LOCATION _ MODE _ BATTERY _ SAVING; and in the HIGH-precision MODE, the corresponding parameter value is LOCATION _ MODE _ HIGH _ ACCURACY. The holder of the terminal equipment can also control the on or off of the GPS positioning function by modifying the LOCATION _ MODE through an instruction.
After monitoring an instruction for modifying the LOCATION _ MODE, the terminal equipment confirms whether the terminal equipment is in a positioning forced start MODE, if so, further detects whether the instruction sets the LOCATION _ MODE to LOCATION _ MODE _ OFF, if so, masks the LOCATION _ MODE _ OFF, and does not set the LOCATION _ MODE to LOCATION _ MODE _ OFF, so that the terminal equipment does not close the GPS positioning function.
The embodiment of the application receives a closing instruction, wherein the closing instruction is used for closing the positioning function; when the terminal equipment is in the positioning forced opening mode, the closing instruction is shielded, and when the terminal equipment is in the positioning forced opening mode, the received closing instruction is shielded, the positioning function is not closed, so that the positioning function in the terminal equipment can be kept in an opening state, and the positioning accuracy is improved.
Optionally, the method for controlling the positioning function provided in this embodiment of the present application may be implemented by improving an operating system of the terminal device, or may be implemented by a special process or an application program, which is not limited herein.
Optionally, after S202, the method may further include:
and displaying prompt information, wherein the prompt information represents that the terminal equipment is in a positioning forced opening mode, and a closing instruction is not executed.
In this embodiment, the holder triggers the terminal device to generate a closing instruction, and after the terminal device shields the closing instruction, information feedback can be given to the holder. The terminal equipment can display prompt information on a screen to prompt a holder that the terminal equipment is in a positioning forced opening mode, a closing instruction cannot be executed, and a positioning function cannot be closed. For example, in a scene that the terminal device is lost and is searched by using the positioning function, if the terminal device is forgotten to be in the positioning forced opening mode after the user retrieves the terminal device, when the positioning function is closed by operation, the terminal device can be operated to exit the positioning forced opening mode according to the prompt information displayed by the terminal device, and then the positioning function is closed, so that the user experience is improved.
Optionally, on the basis of the embodiment in fig. 2, the method may further include:
receiving a starting instruction, wherein the starting instruction is used for starting a positioning function;
and when the terminal equipment is in the positioning forced opening mode, the terminal equipment executes the opening instruction to open the positioning function.
In this embodiment, when the terminal device is in the location-enforced-on mode, only the close instruction of the location function is shielded, and the open instruction of the location function is not shielded. The terminal device may detect instructions entered by the holder or sent by other devices relating to the positioning function. And when the instruction carries the opening parameters, determining the instruction as an opening instruction. After receiving the opening instruction, the terminal device can confirm whether the terminal device is in the positioning forced opening mode or not, and can also not confirm whether the terminal device is in the positioning forced opening mode or not, and if the positioning function is not opened, the terminal device executes the opening instruction to open the positioning function.
Taking a GPS positioning module as an example, after monitoring the call of the putStringForUser function, the terminal device may determine whether the terminal device is in a positioning forced-on mode, if so, further detect whether a parameter value carried in the putStringForUser function is + GPS or-GPS, if-GPS, shield the parameter, and no longer transmit-GPS to LOCATION _ provider _ ALLOWED, so that the terminal device does not close the GPS positioning function; if + GPS, the parameter will not be masked, and GPS will be passed into LOCATION _ PROVIDERS _ ALLOWED, thereby causing the terminal device to turn on GPS LOCATION functionality.
In this embodiment, when the terminal device is in the location-forced-on mode, only the closing instruction of the location function is shielded, and the opening instruction of the location function is not shielded, so that the terminal device can normally open the location function without closing the location function, and the location function is kept in an open state.
Optionally, the method may further include: when the terminal equipment is started, a starting instruction is generated; and/or the presence of a gas in the gas,
and when the terminal equipment enters a positioning forced opening mode, generating an opening instruction.
In this embodiment, the terminal device may automatically generate the start instruction when starting up at each time, so that the positioning function may be automatically started after the terminal device starts up at each time, and a situation that the positioning function is not started due to shutdown and restart of the terminal device in the positioning forced start mode is avoided, so that the positioning function remains in a start state. For example, the terminal device may query whether the terminal device is currently in the positioning forced-on mode each time the terminal device is powered on, and if so, generate an on-command to start the positioning function.
The terminal equipment can also automatically generate a starting instruction when entering the positioning forced starting mode, so that the terminal equipment can automatically start the positioning function when entering the positioning forced starting mode every time, and the situation that the positioning function cannot be started in time although entering the positioning forced starting mode is avoided. For example, the terminal device may query whether the current positioning function is started every time the terminal device enters the positioning forced start mode, and if not, generate a start instruction to start the positioning function.
Fig. 3 is a flowchart illustrating a method for controlling a positioning function according to another embodiment of the present application. On the basis of the embodiment of fig. 2, as shown in fig. 3, the method further includes:
s301, receiving a closing instruction, wherein the closing instruction is used for closing the positioning function.
S302, obtaining a mode parameter, wherein the value of the mode parameter comprises a first mode parameter value and a second mode parameter value.
And S303, when the mode parameter is the first mode parameter value, determining that the terminal equipment is in a positioning forced opening mode.
S304, when the mode parameter is the second mode parameter value, determining that the terminal equipment is not in the positioning forced opening mode.
In this embodiment, the mode parameter is used to represent whether the terminal device enters the location-enforced opening mode. The first mode parameter value characterizes that the terminal equipment enters a positioning forced opening mode. The second mode parameter value characterizes that the terminal device does not enter a location-enforced open mode. After receiving the closing instruction, the terminal device may obtain the mode parameter, and determine whether the terminal device enters a positioning forced opening mode according to the mode parameter. Optionally, the mode parameters may belong to, but are not limited to, at least one of the following: system configuration data systems, content provider data content provider, cache data, database data, file data, and the like.
S305, shielding a closing instruction when the terminal equipment is in a positioning forced opening mode.
S306, when the terminal equipment is in the non-positioning forced opening mode, executing a closing instruction to close the positioning function.
The embodiment of the application receives a closing instruction, wherein the closing instruction is used for closing the positioning function; when the terminal equipment is in the positioning forced opening mode, the closing instruction is shielded, and the received closing instruction is shielded and the positioning function is not closed when the terminal equipment is in the positioning forced opening mode, so that the positioning function of the terminal equipment in the positioning forced opening mode can be kept in an opening state. And by setting the mode parameters, after receiving the closing instruction, the terminal equipment can be quickly and accurately determined whether to be in the positioning forced opening mode or not through the mode parameters.
Optionally, on the basis of the embodiment in fig. 3, the method may further include:
when an entering instruction is received, wherein the entering instruction is used for indicating the terminal equipment to enter a positioning forced opening mode, and the mode parameter is modified from a second mode parameter value to a first mode parameter value;
and when receiving an exit instruction, wherein the exit instruction is used for indicating the terminal equipment to exit the positioning forced start mode, and the mode parameter is modified from the first mode parameter value to the second mode parameter value.
In this embodiment, the user may input an entry/exit instruction to the terminal device after the authority authentication, and control the terminal device to enter/exit the location-enforced opening mode by modifying the value of the mode parameter. Specifically, when the terminal device receives an entering instruction, the mode parameter is modified from the second mode parameter value to the first mode parameter value; and when an exit instruction is received, modifying the mode parameter from the first mode parameter value to the second mode parameter value.
The authority authentication can be performed through user account, password, face recognition, fingerprint recognition, authentication mailbox and other manners, and the manner of the authority authentication is not limited herein.
For example, in a scenario where the terminal device is lost and then searched by using the positioning function, after the user loses the terminal device, the user may perform authority authentication on another terminal device through an account and a password, and after the authority authentication passes, the user sends an entry instruction to the lost terminal device to control the lost terminal device to enter a positioning forced open mode. After the user finds the lost terminal equipment, authority authentication can be carried out on the lost terminal equipment or another terminal equipment through an account and a password, and after the authority authentication is passed, an exit instruction is sent to the lost terminal equipment to control the lost terminal equipment to exit the positioning forced opening mode.
Optionally, on the basis of the embodiment in fig. 3, the method may further include:
the mode parameters remain unchanged when the terminal device is restored to factory settings.
In this embodiment, the mode parameter may be stored in a file storage location where data change is not performed when the terminal device is restored to factory settings, such as a cust high-density area. The high-density area refers to a file storage position which cannot be cleared after factory settings are restored and cannot be modified by a third-party application. Mode parameters can be preset at the position to control whether the terminal equipment enters a positioning forced opening mode. For example, in a scene where the terminal device is used to locate the targets such as children and the elderly, the mode parameters in the terminal device may be preset to the first mode parameter values, so as to ensure that the terminal device is always in the positioning forced-on mode, so as to locate the targets such as children and the elderly, and improve the security.
Optionally, the mode parameter may also be stored in a file storage location, such as a low-density area, where the data may be changed when the terminal device is restored to the factory setting, and the data may be set through a special network setting or a special application program. For example, in a scenario where the terminal device is lost and then found by using the positioning function, after the user loses the terminal device, the user may perform authority authentication on another terminal device through the account and the password, and after the authority authentication passes, the user sends an entry instruction to the lost terminal device through the another terminal device, and the lost terminal device modifies the mode parameter to enter the positioning forced-on mode. Once entering the positioning forced start mode, even if other applications are applied to the lost terminal device or the system module requires or even repeatedly requires to close the positioning function, the lost terminal device cannot stop the positioning function, so that the user can conveniently find the lost terminal device.
Alternatively, the mode parameters may include a system preset mode parameter and a user set mode parameter. The preset mode parameters of the system are file storage positions which are stored in the terminal equipment and cannot be modified when factory settings are restored, and the third-party application program cannot be modified. The mode parameters set by the user are the above-described parameters set in a specific manner. The priority of the mode parameter set by the user is higher than that of the mode parameter preset by the system. When determining whether the terminal equipment is in a positioning forced opening mode, the terminal equipment firstly acquires a mode parameter set by a user, and if the parameter is a first mode parameter value, the terminal equipment is determined to be in the positioning forced opening mode; if the parameter is the first mode parameter value, determining that the mobile terminal is not in the positioning forced opening mode; if the parameter is empty, the terminal equipment further acquires a mode parameter preset by the system, and if the mode parameter preset by the system is a first mode parameter, the terminal equipment is determined to be in a positioning forced starting mode; and if the mode parameter preset by the system is the second mode parameter, determining that the positioning forced opening mode is not in the positioning forced opening mode.
Fig. 4 is a flowchart of a program of a method for controlling a positioning function according to another embodiment of the present application, and fig. 4 illustrates a specific processing procedure in a scenario where a terminal device is lost and then searches by using the positioning function as an example, to describe the method for controlling the positioning function according to the embodiment of the present application.
S401, after losing the terminal device, the user sends an entering instruction to the terminal device through another terminal device. And the terminal equipment receives the entering instruction.
S402, the terminal equipment executes an entering instruction and modifies the mode parameters to enter a positioning forced opening mode.
And S403, the terminal equipment generates and executes a starting instruction to start the positioning function.
S404, after the terminal equipment receives the closing instruction of the positioning function, the closing instruction is shielded.
And S405, the holder of the terminal equipment shuts down and restarts the terminal equipment. And after the terminal equipment is started, determining whether the terminal equipment is in a positioning forced starting mode or not according to the mode parameters.
And S406, generating a starting instruction to start the positioning function when the positioning forced starting mode is determined. The terminal device does not shield the turn-on command.
And S407, after the user retrieves the mobile phone, triggering an exit instruction. And the terminal equipment receives the exit instruction.
S408, after the terminal equipment receives the quit execution instruction, the mode parameters are modified, and the positioning forced opening mode is quit.
The embodiment of the application receives a closing instruction, wherein the closing instruction is used for closing the positioning function; when the terminal equipment is in the positioning forced opening mode, the closing instruction is shielded, and the received closing instruction is shielded and the positioning function is not closed when the terminal equipment is in the positioning forced opening mode, so that the positioning function of the terminal equipment in the positioning forced opening mode can be kept in an opening state. Through the practical test to this application embodiment, the test result shows, adopt this application embodiment, once terminal equipment enters the compulsory mode of opening of location, then the locate function remains to open all the time, no matter any conventional mode can not make the locate function enter the off-state. And after exiting the positioning forced opening mode, the terminal equipment can open or close the positioning function according to the instruction of the user.
Fig. 5 is a schematic structural diagram of a control device for a positioning function according to an embodiment of the present disclosure. As shown in fig. 5, the control device 50 for the positioning function includes: a receiving module 501 and a processing module 502.
A receiving module 501, configured to receive a closing instruction, where the closing instruction is used to close the positioning function.
The processing module 502 is configured to shield the shutdown instruction when the terminal device is in the location-enforced mode.
The embodiment of the application receives a closing instruction, wherein the closing instruction is used for closing the positioning function; when the terminal equipment is in the positioning forced opening mode, the closing instruction is shielded, and the received closing instruction is shielded and the positioning function is not closed when the terminal equipment is in the positioning forced opening mode, so that the positioning function of the terminal equipment in the positioning forced opening mode can be kept in an opening state.
Optionally, the receiving module 501 is further configured to: receiving a starting instruction, wherein the starting instruction is used for starting a positioning function;
the processing module 502 is further configured to, when the terminal device is in the location-enforced-on mode, execute the enabling instruction by the terminal device to enable the location function.
Optionally, the processing module 502 is further configured to:
when the terminal equipment is started, a starting instruction is generated; and/or the presence of a gas in the gas,
and when the terminal equipment enters a positioning forced opening mode, generating an opening instruction.
Optionally, the processing module 502 is further configured to:
acquiring a mode parameter, wherein the value of the mode parameter comprises a first mode parameter value and a second mode parameter value;
when the mode parameter is a first mode parameter value, determining that the terminal equipment is in a positioning forced starting mode;
and when the mode parameter is the second mode parameter value, determining that the terminal equipment is not in the positioning forced opening mode.
Optionally, the processing module 502 is further configured to:
when an entering instruction is received, wherein the entering instruction is used for indicating the terminal equipment to enter a positioning forced opening mode, and the mode parameter is modified from a second mode parameter value to a first mode parameter value; (ii) a
And when receiving an exit instruction, wherein the exit instruction is used for indicating the terminal equipment to exit the positioning forced start mode, and the mode parameter is modified from the first mode parameter value to the second mode parameter value.
Optionally, the mode parameter remains unchanged when the terminal device is restored to the factory setting.
Optionally, the apparatus further comprises a display module.
A display module to: and displaying prompt information, wherein the prompt information represents that the terminal equipment is in a positioning forced opening mode, and a closing instruction is not executed.
The control device of the positioning function provided in the embodiment of the present application may be used to implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device 60 provided in the present embodiment includes: at least one processor 601 and memory 602. The terminal device 60 further comprises a communication section 603. The processor 601, the memory 602, and the communication section 603 are connected by a bus 604.
In a specific implementation, the at least one processor 601 executes the computer-executable instructions stored in the memory 602, so that the at least one processor 601 performs the control method of the positioning function as described above.
For a specific implementation process of the processor 601, reference may be made to the above method embodiments, which implement the principle and the technical effect similarly, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 6, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The application also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the control method of the positioning function is realized.
The readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method for controlling a positioning function, comprising:
receiving a closing instruction, wherein the closing instruction is used for closing a positioning function;
and shielding the closing instruction when the terminal equipment is in a positioning forced opening mode.
2. The method of claim 1, further comprising:
receiving a starting instruction, wherein the starting instruction is used for starting a positioning function;
and when the terminal equipment is in a positioning forced opening mode, the terminal equipment executes the opening instruction to open a positioning function.
3. The method of claim 2, further comprising:
when the terminal equipment is started, generating the starting instruction; and/or the presence of a gas in the gas,
and generating the starting instruction when the terminal equipment enters the positioning forced starting mode.
4. The method according to any one of claims 1-3, further comprising:
acquiring a mode parameter, wherein the value of the mode parameter comprises a first mode parameter value and a second mode parameter value;
when the mode parameter is the first mode parameter value, determining that the terminal equipment is in a positioning forced starting mode;
and when the mode parameter is the second mode parameter value, determining that the terminal equipment is not in a positioning forced opening mode.
5. The method of claim 4, further comprising:
when an entering instruction is received, wherein the entering instruction is used for indicating the terminal equipment to enter the positioning forced opening mode, and the mode parameter is modified from the second mode parameter value to the first mode parameter value; (ii) a
And when an exit instruction is received, wherein the exit instruction is used for indicating the terminal equipment to exit the positioning forced start mode, and the mode parameter is modified from the first mode parameter value to the second mode parameter value.
6. The method according to claim 4, wherein the mode parameter remains unchanged when the terminal device is factory reset.
7. The method of any of claims 1-3, wherein after masking the close command, the method further comprises:
and displaying prompt information, wherein the prompt information represents that the terminal equipment is in a positioning forced opening mode, and the closing instruction is not executed.
8. A control device for a positioning function, comprising:
the device comprises a receiving module, a judging module and a processing module, wherein the receiving module is used for receiving a closing instruction, and the closing instruction is used for closing a positioning function;
and the processing module is used for shielding the closing instruction when the terminal equipment is in a positioning forced opening mode.
9. A terminal device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of controlling a positioning function of any of claims 1-7.
10. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, implement the control method of the positioning function according to any one of claims 1 to 7.
CN202010904651.9A 2020-09-01 2020-09-01 Control method, device and equipment of positioning function and storage medium Pending CN114205734A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010904651.9A CN114205734A (en) 2020-09-01 2020-09-01 Control method, device and equipment of positioning function and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010904651.9A CN114205734A (en) 2020-09-01 2020-09-01 Control method, device and equipment of positioning function and storage medium

Publications (1)

Publication Number Publication Date
CN114205734A true CN114205734A (en) 2022-03-18

Family

ID=80644215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010904651.9A Pending CN114205734A (en) 2020-09-01 2020-09-01 Control method, device and equipment of positioning function and storage medium

Country Status (1)

Country Link
CN (1) CN114205734A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220646A (en) * 2013-04-24 2013-07-24 广东欧珀移动通信有限公司 Method and system for finding mobile terminal device based on short message
CN105391865A (en) * 2015-11-27 2016-03-09 上海斐讯数据通信技术有限公司 Method and system for starting anti-theft function of mobile terminal via shutdown mode
CN107194291A (en) * 2017-05-16 2017-09-22 努比亚技术有限公司 Anti-theft method for mobile terminal, mobile terminal and computer-readable recording medium
US20170357326A1 (en) * 2016-06-09 2017-12-14 International Business Machines Corporation Wearable device positioning based control
CN110392157A (en) * 2018-04-19 2019-10-29 珠海格力电器股份有限公司 Information processing method, device and electronic equipment
US20200226075A1 (en) * 2017-07-18 2020-07-16 Chengdu Jaalee Technology Co., Ltd. Power consumption control method and system for electronic positioning device, and electronic positioning device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220646A (en) * 2013-04-24 2013-07-24 广东欧珀移动通信有限公司 Method and system for finding mobile terminal device based on short message
CN105391865A (en) * 2015-11-27 2016-03-09 上海斐讯数据通信技术有限公司 Method and system for starting anti-theft function of mobile terminal via shutdown mode
US20170357326A1 (en) * 2016-06-09 2017-12-14 International Business Machines Corporation Wearable device positioning based control
CN107194291A (en) * 2017-05-16 2017-09-22 努比亚技术有限公司 Anti-theft method for mobile terminal, mobile terminal and computer-readable recording medium
US20200226075A1 (en) * 2017-07-18 2020-07-16 Chengdu Jaalee Technology Co., Ltd. Power consumption control method and system for electronic positioning device, and electronic positioning device
CN110392157A (en) * 2018-04-19 2019-10-29 珠海格力电器股份有限公司 Information processing method, device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁博;梁怡林;: "STM32主控的GPS/GPRS移动终端定位跟踪系统" *

Similar Documents

Publication Publication Date Title
CN105960004B (en) Mobile terminal positioning function control method and mobile terminal
EP2562673B1 (en) Apparatus and method for securing mobile terminal
US10114735B2 (en) Method, device and medium for managing application program
CN107623899B (en) Information processing method, information processing apparatus, storage medium, and electronic device
US20210245892A1 (en) Unmanned aerial vehicle control method, unmanned aerial vehicle, and terminal for controlling unmanned aerial vehicle
WO2016115760A1 (en) Terminal system control method, device, and terminal
CN109302261A (en) A kind of data security protection method, device, receiver and storage medium
CN110851057A (en) Method and device for configuring configuration options of BIOS
CN108156635B (en) Mobile terminal, WIFI access point detection processing method and storage medium
CN106302531B (en) Safety protection method and device and terminal equipment
CN107402777B (en) Resource updating method and electronic equipment
CN114205734A (en) Control method, device and equipment of positioning function and storage medium
CN111177732B (en) System debugging mode control method and system and electronic equipment
CN113132906B (en) Virtual positioning identification method and device, storage medium and electronic equipment
CN106716419B (en) Method and device for outputting search result and electronic equipment
CN111209559B (en) Permission processing method and device of application program, storage medium and electronic equipment
US11025769B2 (en) Terminal management method and device, terminal and computer storage medium
JP5942416B2 (en) Information processing apparatus control program, control method, and information processing apparatus
CN112016080A (en) Application authority management method and device and electronic equipment
CN108021235B (en) Method, device, terminal and storage medium for triggering operation
CN112883370B (en) Application program state detection method and device, storage medium and electronic equipment
CN112270014B (en) Application program control method and device and electronic equipment
CN114282206A (en) Stack overflow detection method, device, embedded system and storage medium
CN111625811A (en) Data authorization method and device
CN114117185A (en) Website address determination method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220318

RJ01 Rejection of invention patent application after publication