NFC control method and system for smart terminal

By pre-storing the closing whitelist in the smart terminal and automatically matching the application name, silently controlling the NFC function, the problem of manual closing of NFC functions in the existing smart terminal is solved, improving the user experience and adapting to the needs of different applications.

CN115086934BActive Publication Date: 2025-04-08NANCHANG JINKAI CAPITAL MANAGEMENT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210547433.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-18
Publication Date
2025-04-08
Estimated Expiration
2042-05-18

AI Technical Summary

Technical Problem

In use, existing smart terminals need to manually close applications with NFC function, resulting in poor user experience, and some applications require NFC function to be turned off before they can be used normally.

Method used

Prestore a closed whitelist in the smart terminal and record the preset application. When any application is started and run on the foreground, the traversal application name matches the closed whitelist. If it matches, the NFC function will be silently turned off, otherwise the NFC function will be maintained.

Benefits of technology

It realizes zero-perceptual NFC function control of smart terminals, reduces the cumbersomeness of user operations, improves user experience, and adapts to the needs of different applications by remotely updating the whitelist.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086934B_ABST
    Figure CN115086934B_ABST
Patent Text Reader

Abstract

The present invention provides an NFC control method and system for a smart terminal, and the NFC control method includes the following steps: pre-storing a shutdown whitelist in the smart terminal, wherein at least one preset application is recorded in the shutdown whitelist; when any application of the smart terminal is started and runs in the foreground, the smart terminal traverses the name of the started application in the shutdown whitelist; when the name of the started application matches a preset application, the smart terminal silently shuts down the NFC function; when the name of the started application does not match any preset application, the smart terminal maintains the NFC function; when the preset application of the smart terminal is closed, the smart terminal silently restores the NFC function. After adopting the above technical solution, the NFC function can be intelligently controlled to improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent terminal control, and in particular to an NFC control method and system for an intelligent terminal. Background Art

[0002] With the rapid update of smart terminals, a commonly used device, users have higher requirements for the functions of smart terminals.

[0003] In the current smart terminals, there are applications that require the NFC function to be turned off once activated. When turning off the NFC function, a dialog box will pop up to ask the user to confirm whether to turn off the NFC function. The user must leave the application, turn off the NFC function, and then return to use the application function normally. This cumbersome operation brings a poor user experience to the user. What's more, some smart terminal applications require that the NFC function must be turned off before its function can be used normally.

[0004] Therefore, a new NFC function control method is needed, which can intelligently identify such applications and silently control the NFC function. Summary of the invention

[0005] In order to overcome the above technical defects, the purpose of the present invention is to provide an NFC control method and system for a smart terminal, which can intelligently control the NFC function and improve the user experience.

[0006] The present invention discloses an NFC control method for a smart terminal, comprising the following steps:

[0007] A shutdown whitelist is pre-stored in the smart terminal, and at least one preset application is recorded in the shutdown whitelist;

[0008] When any application of the smart terminal is started and runs in the foreground, the smart terminal will traverse the name of the started application in the shutdown whitelist;

[0009] When the name of the launched application matches a preset application, the smart terminal silently turns off the NFC function;

[0010] When the name of the launched application does not match any preset application, the smart terminal maintains the NFC function;

[0011] When the preset application of the smart terminal is closed, the smart terminal silently restores the NFC function.

[0012] Preferably, when any application of the smart terminal is started and runs in the foreground, the smart terminal traverses the name of the started application in the closing whitelist, including:

[0013] Injecting an extended logic module into the NFC service module of the smart terminal, and the extended logic module is initialized following the startup of the NFC service module;

[0014] The extended logic module is registered in the window focus module and monitors the switching action of the window focus module;

[0015] When the switching action of the window focus module changes, the extended logic module initializes and closes the whitelist, and obtains the application running in the foreground from the window focus module;

[0016] The extended logic module traverses the acquired foreground running applications in the shutdown whitelist.

[0017] Preferably, when the name of the launched application does not match any preset application, the step of maintaining the NFC function of the smart terminal includes:

[0018] When the name of the launched application does not match any preset application, the smart terminal determines whether the NFC function is turned on;

[0019] When the NFC function is turned on, the smart terminal maintains the NFC function;

[0020] When the NFC function is turned off, the smart terminal turns on the NFC function.

[0021] Preferably, a closing whitelist is pre-stored in the smart terminal, and after the step of recording at least one preset application in the closing whitelist, the method further includes:

[0022] When the whitelist is closed and initialized, the intelligent terminal connects to the remote server to obtain an updated whitelist;

[0023] The smart terminal downloads the updated whitelist and replaces the closed whitelist.

[0024] Preferably, when the name of the launched application matches a preset application, the step of silently shutting down the NFC function of the smart terminal includes:

[0025] Each time the smart terminal switches the NFC function, the switching time is recorded;

[0026] When the name of the launched application matches a preset application, the smart terminal obtains the current time and subtracts the current time from the switching time to obtain an interval time;

[0027] When the interval time is greater than or equal to a first time threshold, the smart terminal silently turns off the NFC function, otherwise the smart terminal maintains the previous on / off state of the NFC function;

[0028] When the name of the launched application does not match any preset application, the steps for the smart terminal to maintain the NFC function include:

[0029] Each time the smart terminal switches the NFC function, the switching time is recorded;

[0030] When the name of the launched application does not match a preset application, the smart terminal obtains the current time and subtracts the current time from the switching time to obtain an interval time;

[0031] When the interval time is greater than or equal to a second time threshold, the smart terminal maintains the NFC function, otherwise the smart terminal maintains the previous on / off state of the NFC function.

[0032] The present invention also discloses an NFC control system of a smart terminal, the smart terminal comprising:

[0033] A storage module, in which a shutdown whitelist is pre-stored, wherein the shutdown whitelist records at least one preset application;

[0034] The control module, when any application of the smart terminal is started and runs in the foreground, the control module traverses the name of the started application in the shutdown whitelist;

[0035] When the name of the launched application matches a preset application, the control module silently turns off the NFC function;

[0036] When the name of the launched application does not match any preset application, the control module maintains the NFC function;

[0037] When the preset application of the smart terminal is closed, the control module silently restores the NFC function.

[0038] Preferably, the intelligent terminal further includes an NFC service module and a window focus module;

[0039] Injecting an extended logic module into the NFC service module of the smart terminal, and the extended logic module is initialized following the startup of the NFC service module;

[0040] The extended logic module is registered in the window focus module and monitors the switching action of the window focus module;

[0041] When the switching action of the window focus module changes, the extended logic module initializes and closes the whitelist, and obtains the application running in the foreground from the window focus module;

[0042] The extended logic module traverses the acquired foreground running applications in the shutdown whitelist.

[0043] Preferably, when the name of the launched application does not match any preset application, the control module determines whether the NFC function is turned on;

[0044] When the NFC function is turned on, the control module maintains the NFC function;

[0045] When the NFC function is turned off, the control module turns on the NFC function.

[0046] Preferably, when the whitelist is closed and initialized, the storage module connects to the remote server to obtain an updated whitelist;

[0047] The storage module downloads the updated whitelist and replaces the closed whitelist.

[0048] Preferably, each time the smart terminal switches the NFC function, the control module records the switching time of the current switching;

[0049] When the name of the started application matches a preset application, the control module obtains the current time, and subtracts the current time from the switching time to obtain an interval time;

[0050] When the interval time is greater than or equal to a first time threshold, the control module silently turns off the NFC function, otherwise the intelligent control module maintains the previous on / off state of the NFC function;

[0051] When the name of the launched application does not match any preset application, the steps of the control module maintaining the NFC function include:

[0052] Each time the smart terminal switches the NFC function, the control module records the switching time of the current switch;

[0053] When the name of the started application does not match a preset application, the control module obtains the current time, and subtracts the current time from the switching time to obtain an interval time;

[0054] When the interval time is greater than or equal to a second time threshold, the control module maintains the NFC function, otherwise the control module maintains the previous on / off state of the NFC function.

[0055] Compared with the prior art, the above technical solution has the following beneficial effects:

[0056] 1. Users can enter the application without any perception, completely eliminating cumbersome operations;

[0057] 2. The whitelist is updated in a timely manner, and there is no need to configure it yourself in the face of many applications on the market, which further improves the user experience;

[0058] 3. Go deep into the operating system of the smart terminal to complete the configuration, and there will be no situation where some applications cannot be controlled. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1The figure is a flow chart of an NFC control method of a smart terminal in accordance with a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0060] The advantages of the present invention are further described below in conjunction with the accompanying drawings and specific embodiments.

[0061] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0062] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0063] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0064] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0065] In the description of the present invention, unless otherwise specified and limited, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a mechanical connection or an electrical connection, or it can be the internal connection between two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.

[0066] In the following description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module" and "component" can be used interchangeably.

[0067] See also Figure 1 , shows an NFC control method of a smart terminal in accordance with a preferred embodiment of the present invention, which is used to automatically determine whether the NFC function is turned on according to the application program started and used. Specifically, the NFC control method includes the following steps:

[0068] S100: Pre-store a shutdown whitelist in the smart terminal, wherein the shutdown whitelist records at least one preset application

[0069] A shutdown whitelist is pre-stored in the smart terminal. On the shutdown whitelist, at least one preset application is recorded. The preset applications on the shutdown whitelist mean that when these preset applications are started, in order to meet the usage requirements of these preset applications, the NFC function of the smart terminal, such as a mobile phone, tablet computer, etc., needs to be turned off. After the use is finished, the NFC function needs to be restored.

[0070] S200: When any application of the smart terminal is started and runs in the foreground, the smart terminal traverses the name of the started application in the shutdown whitelist.

[0071] To achieve the above functions, in the present invention, when any application of the smart terminal is started, it is necessary to determine whether the NFC function needs to be turned off. Specifically, when it is determined that any application of the smart terminal is started and is running in the foreground (for example, running in full screen, half screen or window on the display screen of the smart terminal for the user to observe), the smart terminal traverses the name of the started application in the shutdown whitelist to confirm whether the operation of turning off the NFC function needs to be executed.

[0072] It is understandable that the triggering of the above judgment process is not limited to the condition that the application needs to run in the foreground. In some cases, for example, some applications normally run in the background, or the user's habit is to switch the application to the background after opening it (that is, the application is still running, but the user cannot observe the application on the screen of the smart terminal), such applications also need to perform the above logical judgment. Therefore, in a preferred embodiment, when the application is started and running in the background, the name of the started application can also be traversed in the shutdown whitelist.

[0073] S310: When the name of the launched application matches a preset application, the smart terminal silently turns off the NFC function

[0074] When the traversal result is that the launched application matches the preset application in the shutdown whitelist, the smart terminal will silently shut down its NFC function. The so-called "silent" here means that when the NFC function is turned off, the smart terminal will not pop up any prompt box or message, and the user does not need to perform any operation. The interface observed by the user is still the interface of the launched application, and in the background of the smart terminal, the NFC function will be turned off, showing a completely autonomous execution result, reducing the user's operation process and improving the user experience.

[0075] It is understandable that although the user confirmation process is omitted, the configuration process of closing the whitelist can be operated and configured by the user, that is, the permission configuration for automatically closing the NFC function is unified, and there is no need to confirm each time subsequently, which improves the user experience.

[0076] S320: When the name of the launched application does not match any preset application, the smart terminal maintains the NFC function;

[0077] When the name of the launched application does not match any preset application, it means that the currently launched application does not belong to the shutdown whitelist and the NFC function should not be turned off. Therefore, the NFC function will remain turned on. It is understandable that the judgment result of maintaining the turn-on does not need to notify the user through a message box or pop-up box, and the user is always in a silent state when using the launched application.

[0078] Generally speaking, in the process of using smart terminals, great attention is paid to notification, that is, when the application needs to perform any operation on the smart terminal, such as obtaining storage functions and calling camera / microphone devices, it is necessary to actively inform the user and obtain the user's permission before having the above permissions. Silent control results do not meet the requirements of data security. However, in the present invention, contrary to the conventional requirements in this field, it seems that the user's confirmation has not been obtained, but in fact the user's confirmation is pre-placed. When establishing a closed whitelist, the user's permission has been uniformly obtained, thereby minimizing the user's operations as much as possible while ensuring data security.

[0079] S400: When the preset application of the smart terminal is closed, the smart terminal silently restores the NFC function.

[0080] When the started preset application is closed, that is, when it is actually exited, whether it is in the foreground or the background, the smart terminal will restore the NFC function, and the restoration process will still be silent, and the user can return to normal without any operation.

[0081] In a preferred embodiment, to implement interference with NFC functions at the system level, step S200 includes:

[0082] S210: Injecting an extended logic module into the NFC service module of the smart terminal, and the extended logic module is initialized following the startup of the NFC service module;

[0083] The NFC service module can be the NFC Service of the Android system, into which an extended logic module will be injected, so that the control of the NFC function of the smart terminal can be completed by the pre-written logic in the extended logic module, and when the NFC Service is started, the extended logic module is initialized, and the latest closed whitelist stored in it is used as the control basis.

[0084] S220: the extended logic module is registered in the window focus module, and monitors the switching action of the window focus module;

[0085] The extended logic module will be registered in the window focus module (Windos focus, that is, the control layer that controls the content displayed on the display screen), so that it can monitor the switching action of the window focus module. When the switching action is executed, it means that the content displayed on the display screen has changed, and the logic control module needs to intervene to control the NFC function.

[0086] S230: When the switching action of the window focus module changes, the extended logic module initializes the closing whitelist and obtains the application running in the foreground from the window focus module;

[0087] When the extended logic module is controlled, the data of the closed whitelist will be initialized first, and the information in the window focus module will be called back to obtain the package name of the application running in the foreground. The significance of obtaining the package name in this step is that the same application in the Android system may have multiple versions, but the ID name pointed to by each application should be the same. In addition, the name of the application is also stored in the closed whitelist, and the same type is easy to compare.

[0088] S240: The extended logic module traverses the acquired foreground running applications in the shutdown whitelist. If the data on the shutdown whitelist matches the package name, the NFC function is turned off. Otherwise, the NFC function is kept turned on.

[0089] Further, step S320 includes:

[0090] S321: When the name of the launched application does not match any preset application, the smart terminal determines whether the NFC function is turned on;

[0091] When the name of the launched application does not match the name of the preset application in the closed whitelist, it is necessary to determine the current state of the NFC function instead of blindly maintaining it.

[0092] S322: When the NFC function is turned on, it means that the user may be using the NFC function or is about to use the NFC function. In this regard, the execution result is: the smart terminal maintains the NFC function;

[0093] S322': When the NFC function is turned off, it means that the NFC function has not been called. In this embodiment, the final execution result is: the smart terminal turns on the NFC function so that it can be called in time when it needs to be called in the future. Or it is possible that the previous preset application in the closed whitelist turned off the NFC function when it was started but has not been restored, so it needs to be turned on again.

[0094] In a preferred embodiment, step S100 may further include:

[0095] S110: When the whitelist is closed and initialized, the intelligent terminal connects to the remote server and obtains an updated whitelist;

[0096] The shutdown whitelist stored locally on the smart terminal may lag behind the update of the application, so a remote update mechanism is provided. Specifically, the locally saved shutdown whitelist is used as the bottom line data. When the extended logic module is initialized, it can connect to a remote server (built by the manufacturer of the smart terminal) to update the data in the shutdown whitelist at runtime.

[0097] S120: The smart terminal downloads the updated whitelist and replaces the closed whitelist;

[0098] The intelligent terminal can actively download, or the remote server can trigger data update messages to actively help the extended logic module update data.

[0099] In another preferred embodiment, a layer of judgment logic may be added to determine whether the NFC function is turned on or not. Specifically, step S310 includes:

[0100] S311: Each time the smart terminal switches the NFC function, the switching time is recorded;

[0101] S312: When the name of the started application matches a preset application, the smart terminal obtains the current time, and subtracts the current time from the switching time to obtain an interval time;

[0102] When the package name of a preset application is matched, the control will not be executed immediately. Instead, a judgment in the time domain is required, that is, the current time is subtracted from the switching time to obtain an interval time.

[0103] S313: When the interval time is greater than or equal to a first time threshold, the smart terminal silently turns off the NFC function; otherwise, the smart terminal maintains the previous on / off state of the NFC function

[0104] Only when the interval time is greater than the preset first time threshold, the NFC function will be silently turned off. Under this configuration, the NFC function is prevented from being controlled by "ping pong". Since it takes more or less time to turn on the NFC function, repeated turning on and off will increase the power loss of the smart terminal. Therefore, it is necessary to add a layer of time domain judgment. Only after a certain time is met, the NFC function can be controlled. It can be understood that the first time threshold can be configured independently by the manufacturer of the smart terminal, or freely configured by the user.

[0105] Similarly, step S320 also includes:

[0106] S323: Each time the smart terminal switches the NFC function, the switching time is recorded;

[0107] S324: When the name of the started application does not match a preset application, the smart terminal obtains the current time, and subtracts the current time from the switching time to obtain an interval time;

[0108] S325: When the interval time is greater than or equal to a second time threshold, the smart terminal maintains the NFC function, otherwise the smart terminal maintains the previous on / off state of the NFC function.

[0109] The present invention also discloses an NFC control system of a smart terminal, which includes: a storage module, in which a shutdown whitelist is pre-stored, and at least one preset application is recorded in the shutdown whitelist; a control module, when any application of the smart terminal is started and runs in the foreground, the control module traverses the name of the started application in the shutdown whitelist; when the name of the started application matches a preset application, the control module silently turns off the NFC function; when the name of the started application does not match any preset application, the control module maintains the NFC function; when the preset application of the smart terminal is closed, the control module silently restores the NFC function.

[0110] Preferably, the smart terminal also includes an NFC service module and a window focus module; an extended logic module is injected into the NFC service module of the smart terminal, and the extended logic module is initialized following the startup of the NFC service module; the extended logic module is registered in the window focus module and monitors the switching action of the window focus module; when the switching action of the window focus module changes, the extended logic module initializes a closing whitelist and obtains the foreground running application from the window focus module; the extended logic module traverses the obtained foreground running application in the closing whitelist.

[0111] Preferably, when the name of the launched application does not match any preset application, the control module determines whether the NFC function is turned on; when the NFC function is turned on, the control module maintains the NFC function; when the NFC function is turned off, the control module turns on the NFC function.

[0112] Preferably, when the shutdown whitelist is initialized, the storage module connects to the remote server to obtain an updated whitelist; the storage module downloads the updated whitelist and replaces the shutdown whitelist.

[0113] Preferably, each time the smart terminal switches the NFC function, the control module records the switching time of the current switch; when the name of the launched application matches a preset application, the control module obtains the current time, and subtracts the current time from the switching time to obtain an interval time; when the interval time is greater than or equal to a first time threshold, the control module silently turns off the NFC function, otherwise the control module maintains the on / off state of the previous NFC function; when the name of the launched application does not match any preset application, the step of the control module maintaining the NFC function includes: each time the smart terminal switches the NFC function, the control module records the switching time of the current switch; when the name of the launched application does not match a preset application, the control module obtains the current time, and subtracts the current time from the switching time to obtain an interval time; when the interval time is greater than or equal to a second time threshold, the control module maintains the NFC function, otherwise the control module maintains the on / off state of the previous NFC function.

[0114] Intelligent terminal can be implemented in various forms. For example, the terminal described in the present invention may include intelligent terminals such as mobile phones, smart phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), navigation devices, etc., and fixed terminals such as digital TVs, desktop computers, etc. Below, it is assumed that the terminal is an intelligent terminal. However, it will be appreciated by those skilled in the art that, in addition to components specifically used for mobile purposes, the construction according to the embodiments of the present invention can also be applied to fixed type terminals.

[0115] It should be noted that the embodiments of the present invention have better practicability and do not impose any form of limitation on the present invention. Any technician familiar with the field may use the technical content disclosed above to change or modify it into an equivalent effective embodiment. However, any modification or equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A NFC control method for a smart terminal, characterized in that: The following steps are involved: A shutdown whitelist is pre-stored in the smart terminal, and at least one preset application is recorded in the shutdown whitelist; when any application of the smart terminal is started and runs in the foreground, the smart terminal traverses the name of the started application in the shutdown whitelist; When the name of the launched application matches a preset application, the smart terminal silently turns off the NFC function; When the name of the launched application does not match any preset application, the smart terminal maintains the NFC function; when the preset application of the smart terminal is closed, the smart terminal silently restores the NFC function; in When the name of the launched application matches a preset application, the step of silently shutting down the NFC function of the smart terminal includes: Each time the smart terminal switches the NFC function, the switching time is recorded; When the name of the launched application matches a preset application, the smart terminal obtains the current time, and subtracts the current time from the switching time to obtain an interval time; When the interval time is greater than or equal to a first time threshold, the smart terminal silently turns off the NFC function, otherwise the smart terminal maintains the previous on / off state of the NFC function; When the name of the launched application does not match any preset application, the step of maintaining the NFC function of the smart terminal includes: Each time the smart terminal switches the NFC function, the switching time is recorded; When the name of the launched application does not match a preset application, the intelligent terminal obtains the current time, and subtracts the current time from the switching time to obtain an interval time; When the interval time is greater than or equal to a second time threshold, the smart terminal maintains the NFC function, otherwise the smart terminal maintains the previous on / off state of the NFC function.

2. The NFC control method according to claim 1, characterized in that: When any application of the smart terminal is started and runs in the foreground, the smart terminal traverses the name of the started application in the shutdown whitelist, including: Injecting an extended logic module into the NFC service module of the smart terminal, and the extended logic module is initialized following the startup of the NFC service module; The extended logic module is registered in the window focus module and monitors the switching action of the window focus module; When the switching action of the window focus module changes, the extended logic module initializes and closes the whitelist, and obtains the application running in the foreground from the window focus module; The extended logic module traverses the acquired foreground running application programs in the shutdown whitelist.

3. The NFC control method according to claim 2, characterized in that: When the name of the launched application does not match any preset application, the step of maintaining the NFC function of the smart terminal includes: When the name of the launched application does not match any preset application, the smart terminal determines whether the NFC function is turned on; When the NFC function is turned on, the smart terminal maintains the NFC function; When the NFC function is turned off, the smart terminal turns on the NFC function.

4. The NFC control method according to claim 1, characterized in that: After the step of pre-storing a shutdown whitelist in the smart terminal, wherein at least one preset application is recorded in the shutdown whitelist, the method further includes: When the closed whitelist is initialized, the intelligent terminal connects to the remote server to obtain an updated whitelist; The smart terminal downloads the updated whitelist and replaces the closed whitelist.

5. An NFC control system for a smart terminal, characterized in that: The intelligent terminal comprises: A storage module, in which a shutdown whitelist is pre-stored, wherein the shutdown whitelist records at least one preset application; A control module, when any application of the smart terminal is started and runs in the foreground, the control module traverses the name of the started application in the shutdown whitelist; When the name of the launched application matches a preset application, the control module silently turns off the NFC function; When the name of the launched application does not match any preset application, the control module maintains the NFC function; when the preset application of the smart terminal is closed, the control module silently restores the NFC function; in Each time the smart terminal switches the NFC function, the control module records the switching time of the current switching; When the name of the started application matches a preset application, the control module obtains the current time, and subtracts the current time from the switching time to obtain an interval time; When the interval time is greater than or equal to a first time threshold, the control module silently turns off the NFC function, otherwise the control module maintains the previous on / off state of the NFC function; When the name of the launched application does not match any preset application, the step of the control module maintaining the NFC function includes: Each time the smart terminal switches the NFC function, the control module records the switching time of the current switching; When the name of the started application does not match a preset application, the control module obtains the current time, and subtracts the current time from the switching time to obtain an interval time; When the interval time is greater than or equal to a second time threshold, the control module maintains the NFC function; otherwise, the control module maintains the previous on / off state of the NFC function.

6. The NFC control system according to claim 5, characterized in that: The smart terminal also includes an NFC service module and a window focus module; Injecting an extended logic module into the NFC service module of the smart terminal, and the extended logic module is initialized following the startup of the NFC service module; The extended logic module is registered in the window focus module and monitors the switching action of the window focus module; When the switching action of the window focus module changes, the extended logic module initializes and closes the whitelist, and obtains the application running in the foreground from the window focus module; The extended logic module traverses the acquired foreground running application programs in the shutdown whitelist.

7. The NFC control system according to claim 6, characterized in that: When the name of the launched application does not match any preset application, the control module determines whether the NFC function is turned on; When the NFC function is turned on, the control module maintains the NFC function; When the NFC function is turned off, the control module turns on the NFC function.

8. The NFC control system according to claim 5, characterized in that: When the closed whitelist is initialized, the storage module connects to the remote server to obtain an updated whitelist; The storage module downloads the update whitelist and replaces the close whitelist.

Citation Information

Patent Citations

  • Near field communication method and device, computer readable storage medium and electronic device

    CN111212412A