WO2021073262A1 - 定位模块控制方法及终端 - Google Patents

定位模块控制方法及终端 Download PDF

Info

Publication number
WO2021073262A1
WO2021073262A1 PCT/CN2020/111624 CN2020111624W WO2021073262A1 WO 2021073262 A1 WO2021073262 A1 WO 2021073262A1 CN 2020111624 W CN2020111624 W CN 2020111624W WO 2021073262 A1 WO2021073262 A1 WO 2021073262A1
Authority
WO
WIPO (PCT)
Prior art keywords
operation request
positioning module
module
positioning
application module
Prior art date
Application number
PCT/CN2020/111624
Other languages
English (en)
French (fr)
Inventor
刘建勤
Original Assignee
珠海格力电器股份有限公司
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 珠海格力电器股份有限公司 filed Critical 珠海格力电器股份有限公司
Publication of WO2021073262A1 publication Critical patent/WO2021073262A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/30Security of mobile devices; Security of mobile applications
    • H04W12/37Managing security policies for mobile devices or for controlling mobile applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present disclosure relates to the field of communication technology, and in particular to a positioning module control method and a terminal applying the positioning module control method.
  • a positioning (GPS, Global Positioning System) module is usually provided in a mobile phone, and a positioning function can be implemented through the positioning module 20, so as to obtain location information of a user using the mobile phone.
  • the mobile phone APP generally obtains the user's authorization to control the GPS module.
  • some mobile apps will be woken up by other apps that the user is operating. At this time, the user is unaware that the APP has been awakened and started. These apps that are awakened will control the GPS module and activate the GPS module for positioning. At this time, the user does not actually need to locate.
  • the main purpose of the present disclosure is to provide a positioning module control method that can prevent the mobile phone APP from privately controlling the positioning module to start the positioning function and a terminal applying the method.
  • embodiments of the present disclosure provide a positioning module control method, which is applied to a terminal, the terminal includes a positioning module and an application module, and the positioning module control method includes:
  • the positioning module receives the operation request sent by the application module
  • the positioning module If it is detected that the operation request includes the authentication command, the positioning module starts a positioning function.
  • detecting whether the operation request includes an authentication command by the positioning module includes:
  • the positioning module detects whether the operation request is consistent with a preset operation request.
  • the positioning module detects whether the operation request contains a special field.
  • the positioning module detects whether the command length of the operation request is within a preset range.
  • a first security service unit is provided in the positioning module
  • the preset operation request includes:
  • the authentication command is preset in the first security service unit.
  • the method further includes: if it is detected that the operation command does not include the authentication command, the positioning module does not start the positioning function.
  • the embodiment of the present disclosure provides a positioning module control method, which is applied to a terminal, the terminal includes a positioning module and an application module, and the positioning module control method further includes:
  • the application module detects whether the application module is started by the user
  • the application module If the application module started by the user is detected, the application module sends an operation request to the positioning module, and the operation request includes an authentication command.
  • the application module is provided with a second security service unit, and the operation request sent by the application module includes an authentication command including:
  • the authentication command is set in the second security service unit
  • the application module causes the operation request to include the authentication command through the second security service unit.
  • the application module that the application module detects whether the application module is started by the user includes:
  • the application module detects whether the application module is activated by the user through a touch operation
  • the application module is detected as the application module started by the user
  • the application module detects the application module that is not started by the user.
  • the method further includes: if the application module detects that the application module is not started by the user, then the application module sends the operation request to the positioning module. Does not contain the authentication command.
  • An embodiment of the present disclosure further provides a terminal, including a positioning module and an application module, wherein the positioning module is configured as:
  • Detecting whether the operation request includes an authentication command the authentication command being included in the operation request sent by the application module when the application module started by the user is detected;
  • the positioning function is activated.
  • An embodiment of the present disclosure further provides a terminal, the terminal includes a positioning module and an application module, wherein the application module is set to:
  • an operation request is sent to the positioning module, and the operation request includes an authentication command.
  • the present disclosure provides a positioning module control method, which is applied to a terminal, the terminal includes a positioning module and an application module, and the positioning module control method includes: the positioning module receives an operation request sent by the application module; the positioning The module detects whether the operation request includes an authentication command, and the authentication command is included in the operation request sent by the application module when the application module started by the user is detected; if the operation request is detected If the authentication command is included, the positioning module starts the positioning function; by detecting whether it is an application module started by the user, whether the request sent to the positioning module contains an authentication command, and the positioning module performs a detection operation after receiving the operation request Whether the request contains an authentication command to determine whether to start the positioning function, so that the application module can only start the positioning function when it is started by the user.
  • FIG. 1 is a schematic structural diagram of a terminal provided by an embodiment of the present disclosure
  • Figure 2 is a flowchart of a positioning module control method provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a terminal provided by an embodiment of the present disclosure.
  • Fig. 4 is a flowchart of a positioning module control method provided by an embodiment of the present disclosure
  • Fig. 5 is a flowchart of a positioning module control method provided by an embodiment of the present disclosure.
  • an embodiment of the present disclosure provides a positioning module control method, which is applied to a terminal 10.
  • the terminal 10 includes a positioning module 20 and an application module 30.
  • the positioning module control method includes:
  • Step 100 The positioning module 20 receives an operation request sent by the application module 30.
  • Step 110 The positioning module 20 detects whether the operation request includes an authentication command.
  • the authentication command is included in the operation request sent by the application module 30 when the application module 30 started by the user is detected; if it is detected that the operation request includes an authentication command , Then go to step 120.
  • step 120 the positioning module 20 starts the positioning function.
  • the terminal 10 may be a mobile terminal 10 such as a mobile phone or a tablet computer.
  • the positioning module 20 is configured to implement a positioning function.
  • the way to implement the positioning function may include: using the positioning module 20 to send the position signal of the terminal 10 to the positioning background to achieve positioning; or using the base station to measure the distance between the base station and the terminal 10 to achieve positioning.
  • the number of application modules 30 is one or more, which is not limited here.
  • the application module 30 is generally used by the user. When a user needs a positioning function while using the application module 30, the application module 30 can send the positioning module 20 an operation request including an authentication command to enable the positioning module 20 to start the positioning function.
  • the authentication command preset in the positioning module 20 is the same as the authentication command included in the operation request sent by the application module 30.
  • the positioning module control method detects whether the request sent to the positioning module 20 includes an authentication command by detecting whether the application module 30 is started by the user, and the positioning module 20 detects the operation request after receiving the operation request. Whether the authentication command is included to determine whether to start the positioning function, so that the application module 30 can start the positioning function only when it is started by the user.
  • the operation request sent by the application module 30 to the positioning module 20 cannot include the authentication command.
  • the positioning module 20 starts the positioning function only when it detects that the operation request contains the authentication command, so that the application module 30 can be restricted from starting the positioning function only with the user's permission.
  • the positioning module control method provided by the embodiments of the present disclosure enables the application module 30 to activate the positioning function only when activated by the user, thereby reducing unnecessary operation of the positioning function, and preventing the application module 30 from being illegal without the user’s permission.
  • Activating the positioning function causes leakage of user location information, and at the same time reduces the power consumption of the terminal 10 and makes the terminal 10 longer standby time.
  • the positioning module 20 detects whether the operation request includes an authentication command, that is, step 110 includes:
  • the positioning module 20 detects whether the operation request is consistent with the preset operation request.
  • the positioning module 20 detects whether the operation request contains special fields; and/or
  • the positioning module 20 detects whether the command length of the operation request is within a preset range.
  • the positioning module 20 is provided with a first security service unit 21,
  • the preset operation request includes:
  • the authentication command is preset in the first security service unit 21.
  • the positioning module control method further includes:
  • the positioning module 20 does not start the positioning function.
  • the application module 30 can start the positioning function only when the application module 30 is started by the user, which reduces unnecessary operation of the positioning function, and prevents the application module 30 from illegally starting the positioning function without the user’s permission.
  • the leakage of the user's location information also reduces the power consumption of the terminal 10 and makes the terminal 10 stand by for a longer time.
  • the present disclosure also provides a positioning module control method, including:
  • the positioning module 20 receives the operation request sent by the application module 30;
  • the positioning module 20 detects whether the operation request includes an authentication command, and the authentication command is included in the operation request sent by the application module 30 when the application module 30 started by the user is detected;
  • the positioning module 20 starts the positioning function
  • the positioning module 20 does not start the positioning function.
  • the present disclosure also provides a positioning module control method, which is applied to the terminal 10.
  • the terminal 10 includes a positioning module 20 and an application module 30, and the positioning module control method further includes:
  • step 200 the application module 30 detects whether the application module 30 is started by the user; if the application module 30 started by the user is detected, then go to step 210.
  • step 210 the application module 30 sends an operation request to the positioning module 20, and the operation request includes an authentication command.
  • the positioning module control method provided by the embodiment of the present disclosure sends an operation request containing an authentication command only when the application module 30 started for the user is detected, so as to determine whether the request sent to the positioning module 20 contains the authentication command, and the positioning module 20 After receiving the operation request, it is determined whether to start the positioning function by detecting whether the operation request contains an authentication command, so that the application module 30 can start the positioning function only when it is started by the user.
  • the operation request sent by the application module 30 to the positioning module 20 cannot include the authentication command.
  • the positioning module 20 does not start the positioning function if it detects that the operation request does not contain the authentication command, so that the application module 30 can be restricted from starting the positioning function without the user's permission.
  • the positioning module control method provided by the embodiments of the present disclosure can enable the application module 30 to start the positioning function only when it is activated by the user, thereby reducing unnecessary operation of the positioning function, and preventing the application module 30 from operating without the user’s permission.
  • Illegal activation of the positioning function causes leakage of user location information, and at the same time reduces the power consumption of the terminal 10 and makes the terminal 10 longer standby time.
  • a second security service unit 31 is provided in the application module 30, and the operation request sent by the application module 30 includes an authentication command including:
  • An authentication command is set in the second security service unit 31;
  • the application module 30 uses the second security service unit 31 to include an authentication command in the operation request.
  • the application module 30 that the application module 30 detects whether it is started by the user includes:
  • the application module 30 detects whether the application module 30 is activated by the user through a touch operation
  • the application module 30 is detected as the application module 30 started by the user;
  • the application module 30 detects the application module 30 that is not started by the user.
  • the application module 30 is started by another application module 30, there is no touch operation during the startup process, and then the application module 30 detects that the operation was not started by the user, so that the application module 30 gives the positioning module 20
  • the sent operation request does not contain the authentication command, so the positioning function cannot be started.
  • the application module 30 if the application module 30 detects that the application module 30 is not started by the user, the application module 30 sends an operation request to the positioning module 20.
  • the operation request does not contain an authentication command, so that only the application module 30 started by the user
  • the application module 30 can start the positioning function, which reduces unnecessary operation of the positioning function. It also prevents the application module 30 from illegally starting the positioning function without the user’s permission, causing the leakage of user location information, and also reduces The power consumption of the terminal 10 is reduced, and the standby time of the terminal 10 is longer.
  • the present disclosure also provides a positioning module control method, including:
  • the application module 30 detects whether the application module 30 is started by the user
  • the application module 30 If the application module 30 started by the user is detected, the application module 30 sends an operation request to the positioning module 20, and the operation request includes an authentication command;
  • the application module 30 If the application module 30 detects that the application module 30 is not started by the user, the application module 30 sends an operation request to the positioning module 20, and the operation request does not include an authentication command.
  • the present disclosure provides a positioning module control method, including:
  • Step 300 the application module 30 detects whether the application module 30 is started by the user; if the application module 30 started by the user is detected, go to step 310, if it is detected that the application module 30 is not started by the user, go to step 320 .
  • step 310 the application module 30 sends an operation request to the positioning module 20, and the operation request includes an authentication command.
  • step 320 the application module 30 sends an operation request to the positioning module 20, and the operation request does not include an authentication command.
  • Step 330 The positioning module 20 receives the operation request sent by the application module 30.
  • Step 340 The positioning module 20 detects whether the operation request includes an authentication command. If it is detected that the operation request contains an authentication command, go to step 350. If it is detected that the operation command does not include the authentication command, go to step 360.
  • step 350 the positioning module 20 starts the positioning function.
  • step 360 the positioning module 20 does not start the positioning function.
  • An embodiment of the present disclosure further provides a terminal 10, including a positioning module 20 and an application module 30, wherein the positioning module 20 is configured as:
  • Detecting whether the operation request includes an authentication command Detecting whether the operation request includes an authentication command, and the authentication command is included in the operation request sent by the application module 30 when the application module 30 started by the user is detected;
  • the positioning function is activated.
  • the terminal 10 provided by the embodiment of the present disclosure includes a positioning module 20 and an application module 30.
  • the positioning module 20 is configured to: receive an operation request sent by the application module 30; It is included in the operation request sent when the application module 30 started by the user is detected; if it is detected that the operation request includes an authentication command, the positioning function is started, so that the terminal 10 provided by the embodiment of the present disclosure is not an application started by the user. In the case of module 30, the positioning function cannot be activated. Unnecessary running operations are avoided, thereby saving the power of the terminal 10, and making the terminal 10 have a longer standby time. In addition, the situation that the application module 30 starts the positioning function privately and illegally, which causes the waste of the user's location information is avoided.
  • An embodiment of the present disclosure further provides a terminal 10, including a positioning module 20 and an application module 30, wherein the application module 30 is configured as:
  • an operation request is sent to the positioning module 20, and the operation request includes an authentication command.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

本公开提供一种定位模块控制方法,应用于终端,所述终端包括定位模块和应用模块,所述定位模块控制方法包括:所述定位模块接收所述应用模块发送的操作请求;所述定位模块检测所述操作请求中是否包含认证命令,所述认证命令是由所述应用模块在检测到由用户启动的所述应用模块时发送的操作请求中包含的;若检测到所述操作请求中包含所述认证命令,则所述定位模块启动定位功能;通过检测是否为用户启动的应用模块来使给定位模块发送的请求中是否包含认证命令,而定位模块在接收到操作请求后通过检测操作请求中是否包含认证命令从而判断是否启动定位功能,使得应用模块只有在由用户启动的情况时才能启动定位功能。

Description

定位模块控制方法及终端
本公开要求于2019年10月16日提交中国专利局、申请号为201910985340.7、发明名称为“定位模块控制方法及终端”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及通讯技术领域,具体涉及一种定位模块控制方法及应用该定位模块控制方法的终端。
背景技术
手机是现代生活中比较重要的用品。经过多年的发展,手机不仅从结构、外观上有了很大的变化,而且应用于手机上的APP(Application,应用程序)也愈加多种多样。
手机内通常设有定位(GPS,Global Positioning System)模块,可以通过定位模块20实现定位功能,从而获取使用手机的用户的位置信息。
而手机APP一般会获取用户授权的控制GPS模块的权限。
在某些情况下,有些手机APP会被用户正在操作的其他APP唤醒启动。而此时,用户对于该APP已经被唤醒启动并不知情。这些被唤醒启动的APP会去控制GPS模块、并启动GPS模块进行定位,而此时用户实际上并不需要定位。
发明内容
本公开的主要目的是提供一种能够防止手机APP私自控制定位模块启动定位功能的定位模块控制方法及应用该方法的终端。
为了实现上述技术问题,本公开实施例提供了一种定位模块控制方法,应用于终端,所述终端包括定位模块和应用模块,所述定位模块控制方法包括:
所述定位模块接收所述应用模块发送的操作请求;
所述定位模块检测所述操作请求中是否包含认证命令,所述认证命令是由所述应用模块在检测到由用户启动的所述应用模块时发送的操作请求中包含的;
若检测到所述操作请求中包含所述认证命令,则所述定位模块启动定位功能。
在一些实施例中,所述定位模块检测所述操作请求中是否包含认证命令包括:
所述定位模块检测所述操作请求是否与预设的操作请求一致;和/或
所述定位模块检测所述操作请求中是否含有特殊字段;和/或
所述定位模块检测所述操作请求的命令长度是否在预设范围内。
在一些实施例中,所述定位模块内设有第一安全服务单元,
所述预设的操作请求包括:
在所述第一安全服务单元内预设所述认证命令。
在一些实施例中,所述方法还包括:若检测到所述操作命令中不包含所述认证命令,则所述定位模块不启动定位功能。
本公开实施例提供了一种定位模块控制方法,应用于终端,所述终端包括定位模块和应用模块,所述定位模块控制方法还包括:
所述应用模块检测是否由用户启动的所述应用模块;
若检测到由用户启动的所述应用模块,则所述应用模块发送操作请求至 所述定位模块,所述操作请求中包含认证命令。
在一些实施例中,所述应用模块内设有第二安全服务单元,所述应用模块发送的操作请求中包含认证命令包括:
在所述第二安全服务单元内设有所述认证命令;
所述应用模块通过所述第二安全服务单元使所述操作请求中含有所述认证命令。
在一些实施例中,所述应用模块检测是否由用户启动的所述应用模块包括:
所述应用模块检测是否由用户通过触摸操作启动的所述应用模块;
若检测到是由用户通过所述触摸操作启动的所述应用模块,则所述应用模块检测到为由用户启动的所述应用模块;
若检测到不是由用户通过所述触摸操作启动的所述应用模块,则所述应用模块检测到不是由用户启动的所述应用模块。
在一些实施例中,所述方法还包括:若所述应用模块检测到不是由用户启动的所述应用模块,则所述应用模块发送所述操作请求至所述定位模块,所述操作请求中不包含所述认证命令。
本公开一实施例还提供一种终端,包括定位模块和应用模块,其中,所述定位模块被设置为:
接收所述应用模块发送的操作请求;
检测所述操作请求中是否包含认证命令,所述认证命令是由所述应用模块在检测到由用户启动的所述应用模块时发送的操作请求中包含的;
若检测到所述操作请求中包含所述认证命令,则启动定位功能。
本公开一实施例还提供一种终端,所述终端包括定位模块和应用模块,其中,所述应用模块被设置为:
检测是否由用户启动的所述应用模块;
若检测到由用户启动的所述应用模块,则发送操作请求至所述定位模块,所述操作请求中包含认证命令。
本公开的有益效果:
本公开提供的一种定位模块控制方法,应用于终端,所述终端包括定位模块和应用模块,所述定位模块控制方法包括:所述定位模块接收所述应用模块发送的操作请求;所述定位模块检测所述操作请求中是否包含认证命令,所述认证命令是由所述应用模块在检测到由用户启动的所述应用模块时发送的操作请求中包含的;若检测到所述操作请求中包含所述认证命令,则所述定位模块启动定位功能;通过检测是否为用户启动的应用模块来使给定位模块发送的请求中是否包含认证命令,而定位模块在接收到操作请求后通过检测操作请求中是否包含认证命令从而判断是否启动定位功能,使得应用模块只有在由用户启动的情况时才能启动定位功能。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本公开一实施例提供的终端的结构示意图;
图2是本公开一实施例提供的定位模块控制方法的流程图;
图3是本公开一实施例提供的终端的结构示意图;
图4是本公开一实施例提供的定位模块控制方法的流程图;
图5是本公开一实施例提供的定位模块控制方法的流程图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。
请参考图1和图2,本公开一实施例提供一种定位模块控制方法,应用于终端10,终端10包括定位模块20和应用模块30,定位模块控制方法包括:
步骤100,定位模块20接收应用模块30发送的操作请求。
步骤110,定位模块20检测操作请求中是否包含认证命令,认证命令是由应用模块30在检测到由用户启动的应用模块30时发送的操作请求中包含的;若检测到操作请求中包含认证命令,则转到步骤120。
步骤120,定位模块20启动定位功能。
其中,终端10可以为手机或平板电脑等移动终端10。
定位模块20被设置为实现定位功能。实现定位功能的方式可以包括:利用定位模块20将终端10的位置信号发送到定位后台来实现定位;或者是利用基站测算基站与终端10之间的距离来实现定位。
应用模块30的数量为一个或多个,在此不做限定。
应用模块30通常由用户使用。当用户在使用应用模块30需要定位功能时,应用模块30能够通过给定位模块20发送包含认证命令的操作请求,来使定位模块20启动定位功能。
定位模块20内预设的认证命令与应用模块30发送的操作请求中包含的认证命令相同。
本公开实施例提供的定位模块控制方法通过检测是否为用户启动的应 用模块30来使给定位模块20发送的请求中是否包含认证命令,而定位模块20在接收到操作请求后通过检测操作请求中是否包含认证命令从而判断是否启动定位功能,使得应用模块30只有在由用户启动的情况时才能启动定位功能。
具体地,例如,应用模块30在当是由其他应用启动的时,该应用模块30给定位模块20发送的操作请求中就无法包含认证命令。而定位模块20检测到操作请求中包含认证命令才启动定位功能,从而就能够限制应用模块30仅能在用户允许的情况下启动定位功能。
本公开实施例提供的定位模块控制方法能够使应用模块30仅在由用户启动的情况时启动定位功能,从而降低了定位功能不必要的运行,也防止了应用模块30在未经用户允许时非法启动定位功能、造成用户位置信息的泄漏,同时也减少了终端10的耗电量,使终端10待机时间更长。
在一些实施例中,定位模块20检测操作请求中是否包含认证命令,即步骤110,包括:
定位模块20检测操作请求是否与预设的操作请求一致;和/或
定位模块20检测操作请求中是否含有特殊字段;和/或
定位模块20检测操作请求的命令长度是否在预设范围内。
在一些实施例中,请参考图3,定位模块20内设有第一安全服务单元21,
预设的操作请求包括:
在第一安全服务单元21内预设认证命令。
在一些实施例中,定位模块控制方法还包括:
若检测到操作命令中不包含认证命令,定位模块20不启动定位功能。从而使得只有在由用户启动的应用模块30的情况下,应用模块30才能启动定位功能,降低了定位功能不必要的运行,也防止了应用模块30在未经用 户允许时非法启动定位功能、造成用户位置信息的泄漏,同时也减少了终端10的耗电量,使终端10待机时间更长。
在一些实施例中,本公开还提供一种定位模块控制方法,包括:
定位模块20接收应用模块30发送的操作请求;
定位模块20检测操作请求中是否包含认证命令,认证命令是由应用模块30在检测到由用户启动的应用模块30时发送的操作请求中包含的;
若检测到操作请求中包含认证命令,则定位模块20启动定位功能;
若检测到操作命令中不包含认证命令,则定位模块20不启动定位功能。
在一些实施例中,请参考图4,本公开还提供一种定位模块控制方法,应用于终端10,终端10包括定位模块20和应用模块30,定位模块控制方法还包括:
步骤200,应用模块30检测是否由用户启动的应用模块30;若检测到由用户启动的应用模块30,则转到步骤210。
步骤210,应用模块30发送操作请求至定位模块20,操作请求中包含认证命令。
本公开实施例提供的定位模块控制方法在检测到为用户启动的应用模块30时,才发送包含认证命令的操作请求,来使给定位模块20发送的请求中是否包含认证命令,而定位模块20在接收到操作请求后通过检测操作请求中是否包含认证命令从而判断是否启动定位功能,使得应用模块30在只有由用户启动的情况时才能启动定位功能。
具体地,例如,应用模块30在当是由其他应用启动的时,该应用模块30给定位模块20发送的操作请求中就无法包含认证命令。而定位模块20检测到操作请求中不包含认证命令就不启动定位功能,从而就能够限制应用模块30在用户未经允许的情况下启动定位功能。
本公开实施例提供的定位模块控制方法能够使应用模块30在只有由用 户启动的情况时才能启动定位功能,从而降低了定位功能不必要的运行,也防止了应用模块30在未经用户允许时非法启动定位功能、造成用户位置信息的泄漏,同时也减少了终端10的耗电量,使终端10待机时间更长。
在一些实施例中,应用模块30内设有第二安全服务单元31,应用模块30发送的操作请求中包含认证命令包括:
在第二安全服务单元31内设有认证命令;
应用模块30通过第二安全服务单元31使操作请求中含有认证命令。
在一些实施例中,应用模块30检测是否由用户启动的应用模块30包括:
应用模块30检测是否由用户通过触摸操作启动的应用模块30;
若检测到是由用户通过触摸操作启动的应用模块30,则应用模块30检测到为由用户启动的应用模块30;
若检测到不是由用户通过触摸操作启动的应用模块30,则应用模块30检测到不是由用户启动的应用模块30。
具体地,若应用模块30是由其他应用模块30启动的,在启动的过程中就无触摸操作,进而应用模块30就检测到该操作不是由用户启动的,进而使得应用模块30给定位模块20发送的操作请求中就不包含认证命令,从而无法启动定位功能。
在一些实施例中,若应用模块30检测到不是由用户启动的应用模块30,则应用模块30发送操作请求至定位模块20,操作请求中不包含认证命令,从而使得只有在由用户启动的应用模块30的情况下,应用模块30才能启动定位功能,降低了定位功能不必要的运行,也防止了应用模块30在未经用户允许时非法启动定位功能、造成用户位置信息的泄漏,同时也减少了终端10的耗电量,使终端10待机时间更长。
在一些实施例中,本公开还提供一种定位模块控制方法,包括:
应用模块30检测是否由用户启动的应用模块30;
若检测到由用户启动的应用模块30,则应用模块30发送操作请求至定位模块20,操作请求中包含认证命令;
若应用模块30检测到不是由用户启动的应用模块30,则应用模块30发送操作请求至定位模块20,操作请求中不包含认证命令。
在一些实施例中,请参考图5,本公开提供一种定位模块控制方法,包括:
步骤300,应用模块30检测是否由用户启动的应用模块30;若检测到由用户启动的应用模块30,则转到步骤310,若检测到不是由用户启动的应用模块30,则转到步骤320。
步骤310,应用模块30发送操作请求至定位模块20,操作请求中包含认证命令。
步骤320,应用模块30发送操作请求至定位模块20,操作请求中不包含认证命令。
步骤330,定位模块20接收应用模块30发送的操作请求。
步骤340,定位模块20检测操作请求中是否包含认证命令。若检测到操作请求中包含认证命令,则转到步骤350。若检测到操作命令中不包含认证命令,则转到步骤360。
步骤350,定位模块20启动定位功能。
步骤360,定位模块20不启动定位功能。
本公开一实施例还提供一种终端10,包括定位模块20和应用模块30,其中,定位模块20被设置为:
接收应用模块30发送的操作请求;
检测操作请求中是否包含认证命令,认证命令是由应用模块30在检测到由用户启动的应用模块30时发送的操作请求中包含的;
若检测到操作请求中包含认证命令,则启动定位功能。
本公开实施例提供的终端10包括定位模块20和应用模块30,定位模块20被设置为:接收应用模块30发送的操作请求;检测操作请求中是否包含认证命令,认证命令是由应用模块30在检测到由用户启动的应用模块30时发送的操作请求中包含的;若检测到操作请求中包含认证命令,则启动定位功能,从而使得本公开实施例提供的终端10在不是由用户启动的应用模块30的情况下,无法启动定位功能。避免了不必要的运行操作,进而节省了终端10的电量,使终端10待机时间更长。且避免了应用模块30私自非法启动定位功能的情况、而造成用户位置信息的浪费。
本公开一实施例还提供一种终端10,包括定位模块20和应用模块30,其中,应用模块30被设置为:
检测是否由用户启动的应用模块30;
若检测到由用户启动的应用模块30,则发送操作请求至定位模块20,操作请求中包含认证命令。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其 它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。

Claims (16)

  1. 一种定位模块控制方法,应用于终端,所述终端包括定位模块和应用模块,所述定位模块控制方法包括:
    所述定位模块接收所述应用模块发送的操作请求;
    所述定位模块检测所述操作请求中是否包含认证命令,所述认证命令是由所述应用模块在检测到由用户启动的所述应用模块时发送的操作请求中包含的;
    若检测到所述操作请求中包含所述认证命令,则所述定位模块启动定位功能。
  2. 根据权利要求1所述的定位模块控制方法,其中,所述定位模块检测所述操作请求中是否包含认证命令包括:
    所述定位模块检测所述操作请求是否与预设的操作请求一致;
    所述定位模块检测所述操作请求中是否含有特殊字段;
    所述定位模块检测所述操作请求的命令长度是否在预设范围内。
  3. 根据权利要求1所述的定位模块控制方法,其中,所述定位模块检测所述操作请求中是否包含认证命令包括:
    所述定位模块检测所述操作请求是否与预设的操作请求一致;
    所述定位模块检测所述操作请求中是否含有特殊字段。
  4. 根据权利要求1所述的定位模块控制方法,其中,所述定位模块检测所述操作请求中是否包含认证命令包括:
    所述定位模块检测所述操作请求是否与预设的操作请求一致;
    所述定位模块检测所述操作请求的命令长度是否在预设范围内。
  5. 根据权利要求1所述的定位模块控制方法,其中,所述定位模块检测所述操作请求中是否包含认证命令包括:
    所述定位模块检测所述操作请求中是否含有特殊字段;
    所述定位模块检测所述操作请求的命令长度是否在预设范围内。
  6. 根据权利要求1所述的定位模块控制方法,其中,所述定位模块检测所述操作请求中是否包含认证命令包括:
    所述定位模块检测所述操作请求是否与预设的操作请求一致。
  7. 根据权利要求1所述的定位模块控制方法,其中,所述定位模块检测所述操作请求中是否包含认证命令包括:
    所述定位模块检测所述操作请求中是否含有特殊字段。
  8. 根据权利要求1所述的定位模块控制方法,其中,所述定位模块检测所述操作请求中是否包含认证命令包括:
    所述定位模块检测所述操作请求的命令长度是否在预设范围内。
  9. 根据权利要求2至8中任一项所述的定位模块控制方法,其中,所述定位模块内设有第一安全服务单元,
    所述预设的操作请求包括:
    在所述第一安全服务单元内预设所述认证命令。
  10. 根据权利要求1所述的定位模块控制方法,其中,若检测到所述操作命令中不包含所述认证命令,则所述定位模块不启动定位功能。
  11. 一种定位模块控制方法,应用于终端,所述终端包括定位模块和应用模块,所述定位模块控制方法还包括:
    所述应用模块检测是否由用户启动的所述应用模块;
    若检测到由用户启动的所述应用模块,则所述应用模块发送操作请求至所述定位模块,所述操作请求中包含认证命令。
  12. 根据权利要求11所述的定位模块控制方法,其中,所述应用模块内设有第二安全服务单元,所述应用模块发送的操作请求中包含认证命令包括:
    在所述第二安全服务单元内设有所述认证命令;
    所述应用模块通过所述第二安全服务单元使所述操作请求中含有所述认证命令。
  13. 根据权利要求11所述的定位模块控制方法,其中,所述应用模块检测是否由用户启动的所述应用模块包括:
    所述应用模块检测是否由用户通过触摸操作启动的所述应用模块;
    若检测到是由用户通过所述触摸操作启动的所述应用模块,则所述应用模块检测到为由用户启动的所述应用模块;
    若检测到不是由用户通过所述触摸操作启动的所述应用模块,则所述应用模块检测到不是由用户启动的所述应用模块。
  14. 根据权利要求11所述的定位模块控制方法,其中,若所述应用模块检测到不是由用户启动的所述应用模块,则所述应用模块发送所述操作请求至所述定位模块,所述操作请求中不包含所述认证命令。
  15. 一种终端,包括定位模块和应用模块,其中,所述定位模块被设置为:
    接收所述应用模块发送的操作请求;
    检测所述操作请求中是否包含认证命令,所述认证命令是由所述应用模块在检测到由用户启动的所述应用模块时发送的操作请求中包含的;
    若检测到所述操作请求中包含所述认证命令,则启动定位功能。
  16. 一种终端,所述终端包括定位模块和应用模块,其中,所述应用模块被设置为:
    检测是否由用户启动的所述应用模块;
    若检测到由用户启动的所述应用模块,则发送操作请求至所述定位模块,所述操作请求中包含认证命令。
PCT/CN2020/111624 2019-10-16 2020-08-27 定位模块控制方法及终端 WO2021073262A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910985340.7A CN110933666A (zh) 2019-10-16 2019-10-16 定位模块控制方法及终端
CN201910985340.7 2019-10-16

Publications (1)

Publication Number Publication Date
WO2021073262A1 true WO2021073262A1 (zh) 2021-04-22

Family

ID=69849274

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/111624 WO2021073262A1 (zh) 2019-10-16 2020-08-27 定位模块控制方法及终端

Country Status (2)

Country Link
CN (1) CN110933666A (zh)
WO (1) WO2021073262A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933666A (zh) * 2019-10-16 2020-03-27 珠海格力电器股份有限公司 定位模块控制方法及终端

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726719A (zh) * 2008-10-14 2010-06-09 英华达(上海)科技有限公司 追踪定位方法及追踪定位系统
WO2010072272A1 (en) * 2008-12-23 2010-07-01 Telespazio S.P.A. High-reliability product/activity tracking system
EP2998896A1 (fr) * 2014-09-17 2016-03-23 Gemalto Sa Procédé d'authentification d'un utilisateur, terminaux et système d'authentification correspondants
CN106055970A (zh) * 2016-05-19 2016-10-26 努比亚技术有限公司 应用软件关联启动装置和方法
CN106102011A (zh) * 2016-07-29 2016-11-09 宇龙计算机通信科技(深圳)有限公司 一种终端定位处理的方法、装置以及终端
CN106791178A (zh) * 2017-01-17 2017-05-31 宇龙计算机通信科技(深圳)有限公司 一种位置信息传输方法及移动终端
CN110933666A (zh) * 2019-10-16 2020-03-27 珠海格力电器股份有限公司 定位模块控制方法及终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016049866A1 (zh) * 2014-09-30 2016-04-07 华为技术有限公司 一种背景流量下载方法、设备及系统
CN108055643A (zh) * 2017-12-13 2018-05-18 广东欧珀移动通信有限公司 定位控制方法、装置、存储介质及终端设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726719A (zh) * 2008-10-14 2010-06-09 英华达(上海)科技有限公司 追踪定位方法及追踪定位系统
WO2010072272A1 (en) * 2008-12-23 2010-07-01 Telespazio S.P.A. High-reliability product/activity tracking system
EP2998896A1 (fr) * 2014-09-17 2016-03-23 Gemalto Sa Procédé d'authentification d'un utilisateur, terminaux et système d'authentification correspondants
CN106055970A (zh) * 2016-05-19 2016-10-26 努比亚技术有限公司 应用软件关联启动装置和方法
CN106102011A (zh) * 2016-07-29 2016-11-09 宇龙计算机通信科技(深圳)有限公司 一种终端定位处理的方法、装置以及终端
CN106791178A (zh) * 2017-01-17 2017-05-31 宇龙计算机通信科技(深圳)有限公司 一种位置信息传输方法及移动终端
CN110933666A (zh) * 2019-10-16 2020-03-27 珠海格力电器股份有限公司 定位模块控制方法及终端

Also Published As

Publication number Publication date
CN110933666A (zh) 2020-03-27

Similar Documents

Publication Publication Date Title
US11741210B2 (en) Proximity unlock and lock operations for electronic devices
US9210659B2 (en) Dormancy mode control method and apparatus of portable terminal
JP2007323313A (ja) 情報処理装置および制御方法
US11895364B2 (en) Bluetooth connection method and television
CN107729759B (zh) 一种app操作权限控制方法、存储设备及移动终端
WO2003085528A1 (en) Computer, computer security setting method, and program
KR20130128518A (ko) 휴대 단말기 및 그의 무선 접속 장치 스캔 방법
TWI629891B (zh) 一種適用於移動終端的私密資訊保護方法及系統
JP2012518821A (ja) 無線モジュール内蔵コンピュータとその待機および復帰方法
WO2021022729A1 (zh) root权限的分配方法、装置、存储介质及终端设备
WO2015117332A1 (zh) 一种usb调试模式接口启动的方法、装置及终端
WO2014090052A1 (zh) 无线网络接入的控制方法及装置
CN107423064B (zh) 消息处理方法、装置、终端设备及存储介质
WO2021073262A1 (zh) 定位模块控制方法及终端
WO2015131640A1 (zh) 一种控制无线局域网后台扫描的方法和装置
US20110320801A1 (en) Information processing apparatus and start-up method
US20130219157A1 (en) Mobile terminal and controlling method thereof
WO2014166234A1 (zh) 实现智能终端远程定位的方法及智能终端
WO2015172283A1 (zh) 一种降低功耗的方法、装置及移动终端
WO2012116647A1 (zh) 终端设备控制方法及终端设备和电子设备
WO2019090702A1 (zh) 一种终端的安全保护方法及装置
WO2018076613A1 (zh) 无线网络连接的流量控制方法、装置及可读取存储介质
JP5925636B2 (ja) 無線通信装置及び通信システム
WO2022156572A1 (zh) 控制方法、控制装置以及电子设备
US20060265755A1 (en) Method And Related Apparatus For Enhancing Information Security Of A Computer System

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20876465

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20876465

Country of ref document: EP

Kind code of ref document: A1