CN105610922B - List of application synchronous method and display terminal - Google Patents
List of application synchronous method and display terminal Download PDFInfo
- Publication number
- CN105610922B CN105610922B CN201510979713.1A CN201510979713A CN105610922B CN 105610922 B CN105610922 B CN 105610922B CN 201510979713 A CN201510979713 A CN 201510979713A CN 105610922 B CN105610922 B CN 105610922B
- Authority
- CN
- China
- Prior art keywords
- application
- blacklist
- shortcut
- display terminal
- list
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000001360 synchronised effect Effects 0.000 title abstract description 13
- 239000000284 extract Substances 0.000 claims description 9
- 238000001914 filtration Methods 0.000 claims description 8
- 238000000605 extraction Methods 0.000 claims description 4
- 238000009434 installation Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/75—Indicating network or usage conditions on the user display
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1441—Countermeasures against malicious traffic
- H04L63/1458—Denial of Service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1441—Countermeasures against malicious traffic
- H04L63/1466—Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明公开了一种应用列表同步方法,该方法包括:当显示终端中预设的快捷应用检测到显示应用列表的指令时,获取预置服务器中最新版本的远端黑名单;将快捷应用对应的本地黑名单与远端黑名单进行比对;当本地黑名单与远端黑名单不一致时,将该远端黑名单作为快捷应用新的本地黑名单;控制快捷应用根据其本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示。本发明还提供一种显示终端。本发明使快捷应用能够及时将其本地黑名单与远端黑名单同步,使预设的快捷应用之间的本地黑名单也得到同步,从而快捷应用在显示终端显示的应用列表也得到了同步,解决了快捷应用在显示终端上显示的应用列表不一致的问题。
The invention discloses a method for synchronizing an application list. The method comprises: when a shortcut application preset in a display terminal detects an instruction to display an application list, acquiring the latest version of a remote blacklist in a preset server; Compare the local blacklist with the remote blacklist; when the local blacklist is inconsistent with the remote blacklist, use the remote blacklist as the new local blacklist for the shortcut application; control the shortcut application to generate a corresponding blacklist based on its local blacklist and display the application list on the display terminal. The invention also provides a display terminal. The present invention enables the shortcut application to synchronize its local blacklist with the remote blacklist in time, so that the local blacklist among the preset shortcut applications is also synchronized, so that the application list displayed by the shortcut application on the display terminal is also synchronized, Solved the problem that the application list displayed by the shortcut application on the display terminal is inconsistent.
Description
技术领域technical field
本发明涉及终端显示技术领域,尤其涉及一种应用列表同步方法及显示终端。The present invention relates to the technical field of terminal display, in particular to an application list synchronization method and a display terminal.
背景技术Background technique
随着显示终端(例如智能电视等)软硬件的发展,显示终端上安装的应用越来越多,一般的显示终端都借助于快捷应用(快捷应用泛指利于用户快速进入各种系统应用的软件应用,例如Launcher(安卓桌面启动器)应用、热键应用等)将包括该显示终端应用的应用列表显示出来。With the development of software and hardware of display terminals (such as smart TVs, etc.), more and more applications are installed on display terminals, and general display terminals rely on shortcut applications (shortcut applications generally refer to software that facilitates users to quickly enter various system applications) Applications, such as Launcher (Android desktop launcher) application, hotkey application, etc.) will display the application list including the display terminal application.
但是,由于国家政策或应用本身的原因,部分应用(例如浏览器应用或部分存在问题应用)不能在应用列表中显示出来,所以快捷应用需要利用黑名单将不能在应用列表中显示的应用滤除。但是,目前每个快捷应用是各自独立维护其对应的黑名单,这样会导致快捷应用的黑名单不统一,从而出现快捷应用在显示终端上显示的应用列表不一致的问题。However, due to national policies or the application itself, some applications (such as browser applications or some applications with problems) cannot be displayed in the application list, so the shortcut application needs to use the blacklist to filter out applications that cannot be displayed in the application list . However, at present, each shortcut application independently maintains its corresponding blacklist, which will lead to inconsistency in the blacklist of the shortcut application, and thus the problem that the application list displayed by the shortcut application on the display terminal is inconsistent.
发明内容Contents of the invention
本发明的主要目的在于提供一种应用列表同步方法及显示终端,旨在解决快捷应用在显示终端上显示的应用列表不一致的技术问题。The main purpose of the present invention is to provide a method for synchronizing an application list and a display terminal, aiming at solving the technical problem of inconsistent application lists displayed by shortcut applications on the display terminal.
为实现上述目的,本发明提供的一种应用列表同步方法,该应用列表同步方法包括:In order to achieve the above purpose, the present invention provides a method for synchronizing an application list, the method for synchronizing an application list includes:
当显示终端中预设的快捷应用检测到显示应用列表的指令时,获取预置服务器中最新版本的远端黑名单;When the shortcut application preset in the display terminal detects an instruction to display the application list, obtain the latest version of the remote blacklist in the preset server;
若获取到所述远端黑名单,将所述快捷应用对应的本地黑名单与远端黑名单进行比对;If the remote blacklist is obtained, comparing the local blacklist corresponding to the shortcut application with the remote blacklist;
当所述本地黑名单与远端黑名单不一致时,将该远端黑名单作为所述快捷应用新的本地黑名单;When the local blacklist is inconsistent with the remote blacklist, use the remote blacklist as a new local blacklist for the shortcut application;
控制所述快捷应用根据其本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示。Controlling the shortcut application to generate a corresponding application list according to its local blacklist and displaying the application list on the display terminal.
在一实施例中,所述当显示终端中预设的快捷应用检测到显示应用列表的指令时,获取预置服务器中最新版本的远端黑名单步骤之后还包括:In one embodiment, when the shortcut application preset in the display terminal detects an instruction to display the application list, after the step of obtaining the latest version of the remote blacklist in the preset server, the step further includes:
若未获取到所述远端黑名单,则获取所述快捷应用对应的本地黑名单;If the remote blacklist is not obtained, obtain a local blacklist corresponding to the shortcut application;
若未获取到所述快捷应用对应的本地黑名单,则提取显示终端预存的系统黑名单;If the local blacklist corresponding to the shortcut application is not obtained, extracting and displaying the system blacklist pre-stored in the terminal;
控制所述快捷应用根据所述获取到的或者提取到的黑名单生成对应的应用列表在显示终端上显示。Controlling the shortcut application to generate a corresponding application list according to the acquired or extracted blacklist and displaying it on the display terminal.
在一实施例中,所述控制所述快捷应用根据所述获取到的或者提取到的黑名单生成对应的应用列表在显示终端上显示的步骤包括;In an embodiment, the step of controlling the shortcut application to generate a corresponding application list according to the obtained or extracted blacklist and display it on the display terminal includes;
获取显示终端安装的所有应用,得到完整应用集合;Obtain all the applications installed on the display terminal and obtain a complete collection of applications;
滤除所述完整应用集合中不可见应用,得到初级应用集合;Filtering out invisible applications in the complete application set to obtain a primary application set;
控制快捷应用根据其获取或提取到的所述黑名单将所述初级应用集合中的黑名单应用滤除并生成对应的应用列表;Controlling the shortcut application to filter out the blacklisted applications in the primary application set according to the blacklist obtained or extracted by the shortcut application and generate a corresponding application list;
将生成的应用列表在显示终端上显示。Display the generated application list on the display terminal.
在一实施例中,所述显示终端中包括上述预设的快捷应用和其它快捷应用,将所述预设的快捷应用作为主快捷应用,将所述其它快捷应用作为从快捷应用,In an embodiment, the display terminal includes the above-mentioned preset shortcut application and other shortcut applications, and the preset shortcut application is used as a master shortcut application, and the other shortcut applications are used as slave shortcut applications,
该应用列表同步方法还包括:The application list synchronization method also includes:
当显示终端中从快捷应用检测到显示应用列表的指令时,提取所述主快捷应用当前时刻的本地黑名单;When an instruction to display the application list is detected from the shortcut application in the display terminal, extract the local blacklist of the main shortcut application at the current moment;
若提取到所述主快捷应用当前时刻的本地黑名单,则控制所述从快捷应用根据该主快捷应用当前时刻的本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示。If the current local blacklist of the master shortcut application is extracted, the slave shortcut application is controlled to generate a corresponding application list according to the current local blacklist of the master shortcut application, and the application list is displayed on the display terminal.
在一实施例中,所述当显示终端中从快捷应用检测到显示应用列表的指令时,提取所述主快捷应用当前时刻的本地黑名单的步骤之后还包括:In one embodiment, when the display terminal detects an instruction to display the application list from the shortcut application, after the step of extracting the local blacklist of the main shortcut application at the current moment, it further includes:
若未提取到所述主快捷应用当前时刻的本地黑名单,则提取显示终端预存的系统黑名单;If the local blacklist at the current moment of the main shortcut application is not extracted, then extract and display the system blacklist pre-stored in the terminal;
若提取到显示终端预存的系统黑名单,则控制所述从快捷应用根据显示终端预存的系统黑名单生成对应的应用列表并将该应用列表在显示终端上显示。If the system blacklist pre-stored in the display terminal is extracted, the slave shortcut application is controlled to generate a corresponding application list according to the system blacklist pre-stored in the display terminal, and the application list is displayed on the display terminal.
在一实施例中,所述若未提取到所述主快捷应用当前时刻的本地黑名单,则提取显示终端预存的黑名单的步骤之后还包括:In one embodiment, if the local blacklist at the current moment of the main shortcut application is not extracted, the step of extracting the blacklist pre-stored in the display terminal further includes:
若未提取到显示终端预存的系统黑名单,则获取所述从快捷应用安装时自带的初始黑名单;If the system blacklist pre-stored in the display terminal is not extracted, the initial blacklist that comes with the installation from the shortcut application is obtained;
控制所述从快捷应用根据其自带的初始黑名单生成对应的应用列表并将该应用列表在显示终端上显示。Controlling the slave shortcut application to generate a corresponding application list according to its own initial blacklist and displaying the application list on the display terminal.
本发明还提供一种显示终端,该显示终端包括:The present invention also provides a display terminal, which includes:
获取模块,用于当显示终端中预设的快捷应用检测到显示应用列表的指令时,获取预置服务器中最新版本的远端黑名单;The obtaining module is used to obtain the latest version of the remote blacklist in the preset server when the shortcut application preset in the display terminal detects an instruction to display the application list;
比对模块,用于将所述快捷应用对应的本地黑名单与远端黑名单进行比对;A comparing module, configured to compare the local blacklist corresponding to the shortcut application with the remote blacklist;
第一同步模块,用于当所述本地黑名单与远端黑名单不一致时,将该远端黑名单作为所述快捷应用新的本地黑名单,并控制所述快捷应用根据其本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示。A first synchronization module, configured to use the remote blacklist as a new local blacklist for the shortcut application when the local blacklist is inconsistent with the remote blacklist, and control the shortcut application to generate according to its local blacklist The corresponding application list is displayed on the display terminal.
在一实施例中,所述显示终端中包括上述预设的快捷应用和其它快捷应用,将所述预设的快捷应用作为主快捷应用,将所述其它快捷应用作为从快捷应用,In an embodiment, the display terminal includes the above-mentioned preset shortcut application and other shortcut applications, and the preset shortcut application is used as a master shortcut application, and the other shortcut applications are used as slave shortcut applications,
该显示终端还包括:The display terminal also includes:
文件提取模块,用于当显示终端中从快捷应用检测到显示应用列表的指令时,提取所述主快捷应用当前时刻的本地黑名单;A file extraction module, configured to extract the current local blacklist of the main shortcut application when an instruction to display the application list is detected from the shortcut application in the display terminal;
第二同步模块,用于若提取到所述主快捷应用当前时刻的本地黑名单,则控制所述从快捷应用根据该主快捷应用当前时刻的本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示。The second synchronization module is configured to control the slave shortcut application to generate a corresponding application list according to the local blacklist of the master shortcut application at the current moment if the local blacklist at the current moment of the master shortcut application is extracted and list the applications displayed on the display terminal.
在一实施例中,所述显示终端还包括:In an embodiment, the display terminal further includes:
第三同步模块,用于在未提取到所述主快捷应用当前时刻的本地黑名单时,提取显示终端预存的系统黑名单;并在提取到显示终端预存的系统黑名单时,控制所述从快捷应用根据显示终端预存的系统黑名单生成对应的应用列表并将该应用列表在显示终端上显示。The third synchronization module is used to extract the system blacklist pre-stored in the display terminal when the local blacklist of the main shortcut application at the current moment is not extracted; and when the system blacklist pre-stored in the display terminal is extracted, control the slave The shortcut application generates a corresponding application list according to the system blacklist pre-stored in the display terminal, and displays the application list on the display terminal.
在一实施例中,所述显示终端还包括:In an embodiment, the display terminal further includes:
第四同步模块,用于在未提取到显示终端预存的系统黑名单时,获取所述从快捷应用安装时自带的初始黑名单;并控制所述从快捷应用根据其自带的初始黑名单生成对应的应用列表并将该应用列表在显示终端上显示。The fourth synchronization module is used to obtain the initial blacklist that comes with the secondary shortcut application when the system blacklist pre-stored in the display terminal is not extracted; and control the secondary shortcut application according to the initial blacklist that comes with it A corresponding application list is generated and displayed on the display terminal.
本发明通过当显示终端中预设的快捷应用检测到显示应用列表的指令时,获取预置服务器中最新版本的远端黑名单;然后将快捷应用对应的本地黑名单与远端黑名单进行比对;再者当本地黑名单与远端黑名单不一致时,将该远端黑名单作为快捷应用新的本地黑名单;最后控制快捷应用根据其本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示,从而使显示终端中预设的快捷应用能够及时将其本地黑名单与远端黑名单同步,使预设的快捷应用之间的本地黑名单也得到的同步,从而预设的快捷应用在显示终端显示的应用列表也得到了同步,解决了快捷应用在显示终端上显示的应用列表不一致的问题。The present invention obtains the latest version of the remote blacklist in the preset server when the shortcut application preset in the display terminal detects an instruction to display the application list; and then compares the local blacklist corresponding to the shortcut application with the remote blacklist Yes; furthermore, when the local blacklist is inconsistent with the remote blacklist, the remote blacklist is used as the new local blacklist of the shortcut application; finally, the shortcut application is controlled to generate a corresponding application list according to its local blacklist and the application list Displayed on the display terminal, so that the preset shortcut application in the display terminal can synchronize its local blacklist with the remote blacklist in time, so that the local blacklist between the preset shortcut applications can also be synchronized, so that the preset The application list displayed by the shortcut application on the display terminal is also synchronized, which solves the problem that the application list displayed by the shortcut application on the display terminal is inconsistent.
附图说明Description of drawings
图1为本发明应用列表同步方法第一实施例的流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a method for synchronizing an application list according to the present invention;
图2为本发明应用列表同步方法第二实施例的流程示意图;FIG. 2 is a schematic flowchart of a second embodiment of a method for synchronizing an application list according to the present invention;
图3为本发明应用列表同步方法第三实施例的流程示意图;FIG. 3 is a schematic flowchart of a third embodiment of a method for synchronizing an application list according to the present invention;
图4为本发明显示终端第一实施例的功能模块示意图;FIG. 4 is a schematic diagram of functional modules of the first embodiment of the display terminal of the present invention;
图5为本发明显示终端第二实施例的功能模块示意图;FIG. 5 is a schematic diagram of the functional modules of the second embodiment of the display terminal of the present invention;
图6为本发明显示终端第三实施例的功能模块示意图;FIG. 6 is a schematic diagram of functional modules of a third embodiment of a display terminal according to the present invention;
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明提供一种应用列表同步方法,在本发明应用列表同步方法的第一实施例中,参照图1,该应用列表同步方法包括:The present invention provides an application list synchronization method. In the first embodiment of the application list synchronization method of the present invention, referring to FIG. 1, the application list synchronization method includes:
步骤S10,当显示终端中预设的快捷应用检测到显示应用列表的指令时,获取预置服务器中最新版本的远端黑名单;Step S10, when the shortcut application preset in the display terminal detects an instruction to display the application list, obtain the latest version of the remote blacklist in the preset server;
在预置服务器(即与显示终端对应的远程服务器,服务器能够为显示终端提供数据更新服务)和显示终端中预置有黑名单(即黑名单配置文件),服务器中的黑名单可以根据国家政策的变化实时更新且可供显示终端下载和更新,以便显示终端在出厂之后,服务器依然能够对显示终端的黑名单进行更新,保证显示终端显示的应用列表符合国家政策,规避了政策风险。A blacklist (that is, a blacklist configuration file) is preset in the preset server (that is, the remote server corresponding to the display terminal, and the server can provide data update services for the display terminal), and the blacklist in the server can be set according to national policies. The changes are updated in real time and can be downloaded and updated by the display terminal, so that after the display terminal leaves the factory, the server can still update the blacklist of the display terminal to ensure that the application list displayed by the display terminal complies with national policies and avoid policy risks.
在显示终端上电启动后,若显示终端中预设的快捷应用检测到显示应用列表的指令时,例如Launcher(安卓桌面启动器)应用在显示终端启动之后自动收到显示应用列表指令,获取预置服务器中最新版本的远端黑名单,即获取预置服务器中与当前国家政策最接近的黑名单。具体地,显示终端从服务器检测是否存有最新版本的远端黑名单(此处说明,服务器上会及时上传最新版本的黑名单),即显示终端的后台服务使用线程连接到预置服务器,检测服务器中是否有远端黑名单,若存在,则显示终端中预设的快捷应用会从服务器下载该黑名单,并将该黑名单储存到该预设的快捷应用对应的应用存储空间中。After the display terminal is powered on and started, if the shortcut application preset in the display terminal detects the command to display the application list, for example, the Launcher (Android desktop launcher) application automatically receives the command to display the application list after the display terminal is started, and obtains the preset The latest version of the remote blacklist in the preconfigured server, that is, obtain the blacklist in the preconfigured server that is closest to the current national policy. Specifically, the display terminal detects from the server whether there is the latest version of the remote blacklist (here, the server will upload the latest version of the blacklist in time), that is, the background service of the display terminal uses a thread to connect to the preset server, detect Whether there is a remote blacklist in the server, and if it exists, the preset shortcut application in the display terminal will download the blacklist from the server, and store the blacklist in the application storage space corresponding to the preset shortcut application.
步骤S20,将快捷应用对应的本地黑名单与远端黑名单进行比对;Step S20, comparing the local blacklist corresponding to the shortcut application with the remote blacklist;
步骤S30,当本地黑名单与远端黑名单不一致时,将该远端黑名单作为快捷应用新的本地黑名单;Step S30, when the local blacklist is inconsistent with the remote blacklist, use the remote blacklist as a shortcut to apply a new local blacklist;
对预设的快捷应用的应用存储空间存储的本地黑名单与从预置服务器上下载的远端黑名单进行比对,当本地黑名单与远端黑名单不一致时,表明服务器上的黑名单有更新,将该远端黑名单作为预设的快捷应用新的本地黑名单,一般该远端黑名单存储在预设的快捷应用的目录存储空间,且该目录存储空间需供其它应用调整,所以远端黑名单存储时需要开放权限,使用MODE_WORLD_READABLE属性进行数据存储。Compare the local blacklist stored in the application storage space of the preset shortcut application with the remote blacklist downloaded from the preset server. If the local blacklist is inconsistent with the remote blacklist, it indicates that the blacklist on the server has Update, the remote blacklist is used as the new local blacklist of the default shortcut application. Generally, the remote blacklist is stored in the directory storage space of the preset shortcut application, and the directory storage space needs to be adjusted by other applications, so Open permissions are required for remote blacklist storage, and the MODE_WORLD_READABLE attribute is used for data storage.
步骤S40,控制快捷应用根据其本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示。Step S40, controlling the shortcut application to generate a corresponding application list according to its local blacklist and displaying the application list on the display terminal.
可选地,步骤S40包括:Optionally, step S40 includes:
步骤S41,获取显示终端安装的所有应用,得到完整应用集合;Step S41, obtaining all applications installed on the display terminal to obtain a complete application set;
步骤S42,滤除所述完整应用集合中不可见应用,得到初级应用集合;Step S42, filtering out invisible applications in the complete application set to obtain a primary application set;
步骤S43,控制快捷应用根据其本地黑名单将所述初级应用集合中的黑名单应用滤除并生成对应的应用列表;Step S43, controlling the shortcut application to filter out the blacklisted applications in the primary application set according to its local blacklist and generate a corresponding application list;
步骤S44,将生成的应用列表在显示终端上显示。Step S44, displaying the generated application list on the display terminal.
显示终端的系统中安装有许多应用,其中有些应用本身的属性是不可见的,因此在预设的快捷应用获取显示终端系统中的应用时,先获取显示终端上安装的所有应用,以得到包含显示终端上所有应用的完整应用集合,然后需要添加过滤条件,经过初级过滤来过滤掉本身不需要显示的应用,得到一个初级应用集合。然后预设的快捷应用根据其当前的本地黑名单对初级应用集合进行进一步过滤,即将本地黑名单上应用从初级应用集合中滤除,从而得到一个待显示应用集合,并将该待显示应用集合中的应用以应用列表的形式在显示终端上显示。There are many applications installed in the system of the display terminal, and the properties of some of the applications themselves are invisible. Therefore, when the preset shortcut application obtains the applications in the display terminal system, it first obtains all the applications installed on the display terminal to obtain the included Display the complete application collection of all applications on the terminal, and then need to add filter conditions, filter out the applications that do not need to be displayed through primary filtering, and obtain a primary application collection. Then the preset shortcut application further filters the primary application set according to its current local blacklist, that is, the applications on the local blacklist are filtered out from the primary application set to obtain a set of applications to be displayed, and the set of applications to be displayed The applications in are displayed on the display terminal in the form of an application list.
可以理解的是,步骤S40中仅仅对根据本地黑名单显示应用列表进行了描述,但是步骤S40的步骤所描述的方法适用于根据上述或者下述的所有获取或者提取到的黑名单生成应用列表。例如将步骤S43更改为:控制快捷应用根据其获取或提取到的所述黑名单将所述初级应用集合中的黑名单应用滤除并生成对应的应用列表。It can be understood that step S40 only describes displaying the application list according to the local blacklist, but the method described in step S40 is applicable to generating an application list according to all acquired or extracted blacklists mentioned above or below. For example, step S43 is changed to: control the shortcut application to filter out the blacklisted applications in the primary application set according to the blacklist acquired or extracted by the shortcut application and generate a corresponding application list.
此外,在步骤S20之后还包括:In addition, after step S20, it also includes:
步骤S50,当本地黑名单与远端黑名单一致时,保持快捷应用的本地黑名单不变。Step S50, when the local blacklist is consistent with the remote blacklist, keep the local blacklist of the shortcut application unchanged.
当预设的快捷应用的应用存储空间存储的本地黑名单与从预置服务器上下载的远端黑名单一致时,表明服务器上的远程黑名单相对于本地黑名单没有更新,本地很名单符合当前的国家政策,保持显示终端预设的快捷应用的本地黑名单不变,预设的快捷应用以自由的本地黑名单生成对应的应用列表。When the local blacklist stored in the application storage space of the preset shortcut application is consistent with the remote blacklist downloaded from the preset server, it indicates that the remote blacklist on the server has not been updated relative to the local blacklist, and the local blacklist is consistent with the current blacklist. According to the national policy, the local blacklist of the preset shortcut applications of the display terminal remains unchanged, and the preset shortcut applications use the free local blacklist to generate a corresponding application list.
其中,需要说明的是,显示终端在该显示终端系统目录(即system目录)对应位置下预存有系统黑名单,由于系统目录下的文件在用户进行恢复出厂设置时也不会被清除,如果服务器出问题了且预设的快捷应用还未从服务器下载远端黑名单时,快捷应用本身的本地黑名单也无法提取时,快捷应用可从系统目录下获取系统黑名单,以基于此系统黑名单对显示的应用列表进行控制,实现应用列表的同步。Among them, it should be noted that the display terminal pre-stores a system blacklist in the corresponding location of the display terminal system directory (namely the system directory). Since the files in the system directory will not be cleared when the user restores the factory settings, if the server When something goes wrong and the preset shortcut application has not downloaded the remote blacklist from the server, and the local blacklist of the shortcut application itself cannot be extracted, the shortcut application can obtain the system blacklist from the system directory to use the system blacklist based on this system blacklist. The displayed application list is controlled to realize the synchronization of the application list.
即步骤S10步骤之后还包括如下步骤:That is, after the step S10, the following steps are also included:
若未获取到所述远端黑名单,则获取所述快捷应用对应的本地黑名单;If the remote blacklist is not obtained, obtain a local blacklist corresponding to the shortcut application;
若未获取到所述快捷应用对应的本地黑名单,则提取显示终端预存的系统黑名单;If the local blacklist corresponding to the shortcut application is not obtained, extracting and displaying the system blacklist pre-stored in the terminal;
控制所述快捷应用根据其本地黑名单或者所述系统黑名单生成对应的应用列表在显示终端上显示。Controlling the shortcut application to generate a corresponding application list according to its local blacklist or the system blacklist to display on the display terminal.
在本实施例中,通过当显示终端中预设的快捷应用检测到显示应用列表的指令时,获取预置服务器中最新版本的远端黑名单;然后将快捷应用对应的本地黑名单与远端黑名单进行比对;再者当本地黑名单与远端黑名单不一致时,将该远端黑名单作为快捷应用新的本地黑名单;最后控制快捷应用根据其本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示,从而使显示终端中预设的快捷应用能够及时将其本地黑名单与远端黑名单同步,使预设的快捷应用之间的本地黑名单也得到的同步,从而预设的快捷应用在显示终端显示的应用列表也得到了同步,解决了快捷应用在显示终端上显示的应用列表不一致的问题。In this embodiment, when the shortcut application preset in the display terminal detects an instruction to display the application list, obtain the latest version of the remote blacklist in the preset server; and then compare the local blacklist corresponding to the shortcut application with the remote blacklist The blacklist is compared; furthermore, when the local blacklist is inconsistent with the remote blacklist, the remote blacklist is used as the new local blacklist of the shortcut application; finally, the shortcut application is controlled to generate a corresponding application list according to its local blacklist and The application list is displayed on the display terminal, so that the preset quick application in the display terminal can synchronize its local blacklist with the remote blacklist in time, so that the local blacklist between the preset quick applications can also be synchronized , so that the application list displayed on the display terminal by the preset shortcut application is also synchronized, which solves the problem of inconsistency in the application list displayed on the display terminal by the shortcut application.
另外,通过在未获取到服务器上的远端黑名单时,还可以获取快捷应用本地的黑名单,或者是提取系统黑名单,防止快捷应用因黑名单空缺而将所有显示终端安装的应用以应用列表的形式显示出来,从而在一定程度上规避了政策风险。In addition, when the remote blacklist on the server is not obtained, the local blacklist of the shortcut application can also be obtained, or the system blacklist can be extracted to prevent the shortcut application from using all the applications installed on the display terminal as the application due to the vacancy of the blacklist. It is displayed in the form of a list, thus avoiding policy risks to a certain extent.
进一步地,在本发明应用列表同步方法第一实施例的基础上,提出应用列表同步方法第二实施例,参照图2,在第二实施例中,显示终端中包括上述预设的快捷应用和其它快捷应用,将预设的快捷应用作为主快捷应用,将其它快捷应用作为从快捷应用,该应用列表同步方法还包括:Further, on the basis of the first embodiment of the application list synchronization method of the present invention, a second embodiment of the application list synchronization method is proposed. Referring to FIG. 2 , in the second embodiment, the display terminal includes the above-mentioned preset shortcut applications and For other shortcut applications, the preset shortcut application is used as the main shortcut application, and other shortcut applications are used as secondary shortcut applications. The method of synchronizing the application list also includes:
步骤S61,当显示终端中从快捷应用检测到显示应用列表的指令时,提取主快捷应用当前时刻的本地黑名单;Step S61, when an instruction to display the application list is detected from the shortcut application in the display terminal, extract the local blacklist of the main shortcut application at the current moment;
步骤S62,若提取到主快捷应用当前时刻的本地黑名单,则控制从快捷应用根据该主快捷应用当前时刻的本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示。Step S62, if the current local blacklist of the main shortcut application is extracted, control the slave shortcut application to generate a corresponding application list according to the current local blacklist of the main shortcut application and display the application list on the display terminal.
在主快捷应用(例如显示终端系统的Launcher应用)的本地黑名单与预置服务器的远端黑名单完成同步之后,当显示终端中的从快捷应用(例如显示终端系统的热键应用)检测到显示应用列表的指令时,从快捷应用就无需与预置服务器建立网络连接,通过提取主快捷应用当前时刻的本地黑名单,并在成功提取到主快捷应用当前时刻的本地黑名单之后,控制从快捷应用根据该主快捷应用当前时刻的本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示,能够保持主快捷应用与从快捷应用显示的应用列表一致,而且能够避免显示终端中的主快捷应用和从快捷应用全部在需要显示应用列表时向预置服务器提出下载远端黑名单的请求,从而避免显示终端内快捷应用频繁地向预置服务器发起网络连接请求,减少对显示终端系统资源的占用,也避免预置服务器因被过多快捷应用访问而出现网络拥挤、占用率高的问题。After the local blacklist of the main shortcut application (such as the Launcher application of the display terminal system) is synchronized with the remote blacklist of the preset server, when the secondary shortcut application (such as the hotkey application of the display terminal system) in the display terminal detects When displaying the command of the application list, the slave shortcut application does not need to establish a network connection with the preset server. By extracting the current local blacklist of the main shortcut application, and after successfully extracting the current local blacklist of the main shortcut application, control the slave The shortcut application generates a corresponding application list according to the local blacklist of the master shortcut application at the current moment and displays the application list on the display terminal, which can keep the master shortcut application consistent with the application list displayed by the slave shortcut application, and can avoid the display terminal. The main shortcut application and the secondary shortcut application all submit a request to the preset server to download the remote blacklist when the application list needs to be displayed, thereby preventing the shortcut application in the display terminal from frequently initiating a network connection request to the preset server and reducing the impact on the display terminal. The occupation of system resources also avoids the problem of network congestion and high occupancy rate of the preset server due to being accessed by too many shortcut applications.
此外,主快捷应用和从快捷应用的设置可以根据快捷应用被用户使用的频率来设定,用户使用频率越高大于预设频率值的快捷应用作为主快捷应用,用户使用频率越高小于等于预设频率值快捷应用作为从快捷应用。In addition, the setting of the main shortcut application and the secondary shortcut application can be set according to the frequency of the shortcut application being used by the user. The shortcut application with a higher frequency of use by the user is greater than the preset frequency value as the main shortcut application, and the higher the frequency of user usage is less than or equal to the preset value. Set the frequency value shortcut as the secondary shortcut.
进一步地,在本发明应用列表同步方法第二实施例的基础上,提出应用列表同步方法第三实施例,参照图3,在第三实施例中,在步骤S61之后还包括:Further, on the basis of the second embodiment of the application list synchronization method of the present invention, a third embodiment of the application list synchronization method is proposed. Referring to FIG. 3 , in the third embodiment, after step S61, it further includes:
步骤S63,若未提取到主快捷应用当前时刻的本地黑名单,则提取显示终端预存的系统黑名单;Step S63, if the local blacklist of the main shortcut application at the current moment is not extracted, then extract and display the system blacklist pre-stored in the terminal;
步骤S64,若提取到显示终端预存的系统黑名单,则控制从快捷应用根据显示终端预存的系统黑名单生成对应的应用列表并将该应用列表在显示终端上显示。Step S64, if the system blacklist pre-stored in the display terminal is extracted, control the shortcut application to generate a corresponding application list according to the system blacklist pre-stored in the display terminal and display the application list on the display terminal.
当从快捷应用未提取到主快捷应用的当前时刻的本地黑名单时,例如主快捷应用还未显示其应用列表获取预置服务器的远端黑名单,此时,提取显示终端系统中预存的系统黑名单。若为从快捷应用提取到了显示终端预存的系统黑名单,则控制该从快捷应用保存该系统黑名单,并根据该系统黑名单生成对应的应用列表,并将该生成的应用列表在显示终端上显示。When the local blacklist at the current moment of the main shortcut application is not extracted from the shortcut application, for example, the main shortcut application has not displayed its application list to obtain the remote blacklist of the preset server, at this time, extract and display the system prestored in the terminal system blacklist. If the system blacklist pre-stored in the display terminal is extracted from the shortcut application, the system blacklist is saved from the shortcut application, and a corresponding application list is generated according to the system blacklist, and the generated application list is displayed on the display terminal show.
在本实施例中,通过在本地黑名单与远端黑名单未同步,或同步失败之后,当显示终端中从快捷应用检测到显示应用列表的指令时,若未提取到主快捷应用的本地黑名单,则进一步提取显示终端中预存的系统黑名单,防止从快捷应用因黑名单空缺而将所有显示终端安装的应用以应用列表的形式显示出来,从而在一定程度上规避了政策风险;并且,由于关于应用列表的政策变化频率小,当主快捷应用在未发现预置服务器上黑名单更新时,该主快捷应用保存的黑名单也是显示终端预存的系统黑名单,从而主快捷应用和从快捷应用的黑名单是一致的,从而主快捷应用和从快捷应用生成的应用列表也是一致的,进而保证了主快捷应用和从快捷应用生成的应用列表的同步。In this embodiment, after the local blacklist and the remote blacklist are not synchronized, or after the synchronization fails, when the display terminal detects an instruction to display the application list from the shortcut application, if the local blacklist of the main shortcut application is not extracted list, the system blacklist pre-stored in the display terminal is further extracted to prevent all applications installed on the display terminal from being displayed in the form of an application list due to the vacancy of the blacklist from the shortcut application, thereby avoiding policy risks to a certain extent; and, Since the policy change frequency of the application list is small, when the blacklist of the master shortcut application is not found on the preset server, the blacklist saved by the master shortcut application is also the system blacklist pre-stored in the display terminal, so that the master shortcut application and the slave shortcut application The blacklists are consistent, so the main shortcut application and the application list generated by the secondary shortcut application are also consistent, thereby ensuring the synchronization of the main shortcut application and the application list generated by the secondary shortcut application.
进一步地,在本发明应用列表同步方法第三实施例的基础上,步骤S63之后还包括:Further, on the basis of the third embodiment of the application list synchronization method of the present invention, after step S63, it also includes:
步骤S65,若未提取到显示终端预存的系统黑名单,则获取从快捷应用安装时自带的初始黑名单;Step S65, if the system blacklist pre-stored in the display terminal is not extracted, then obtain the initial blacklist that comes with the shortcut application when it is installed;
步骤S66,控制从快捷应用根据其自带的初始黑名单生成对应的应用列表并将该应用列表在显示终端上显示。Step S66, controlling to generate a corresponding application list from the shortcut application according to its own initial blacklist and displaying the application list on the display terminal.
当既未提取到主快捷应用当前时刻的本地黑名单、也未提取到显示终端预存的系统黑名单时,即主快捷应用和显示终端预存的系统黑名单均出现错误时,进一步获取从快捷应用安装时自带的初始黑名单,并控制从快捷应用根据其自带的初始黑名单生成对应的应用列表并将该应用列表在显示终端上显示,防止从快捷应用因黑名单空缺而将所有显示终端安装的应用以应用列表的形式显示出来,从而在一定程度上规避了政策风险。When neither the current local blacklist of the main shortcut application nor the system blacklist pre-stored in the display terminal is extracted, that is, when errors occur in both the main shortcut application and the system blacklist pre-stored in the display terminal, further obtain the slave shortcut application The initial blacklist that comes with the installation, and controls the generation of the corresponding application list from the shortcut application according to the initial blacklist that comes with it and displays the application list on the display terminal to prevent all the shortcut applications from being displayed due to the vacancy of the blacklist The applications installed on the terminal are displayed in the form of an application list, thus avoiding policy risks to a certain extent.
本发明还提供一种显示终端,该显示终端可与预置的服务器建立网络连接,参照图4,在本发明显示终端第一实施例中,该显示终端包括:The present invention also provides a display terminal, which can establish a network connection with a preset server. Referring to FIG. 4, in the first embodiment of the display terminal of the present invention, the display terminal includes:
获取模块10,用于当显示终端中预设的快捷应用检测到显示应用列表的指令时,获取预置服务器中最新版本的远端黑名单;The obtaining module 10 is used to obtain the latest version of the remote blacklist in the preset server when the shortcut application preset in the display terminal detects an instruction to display the application list;
在预置服务器(即与显示终端对应的远程服务器,服务器能够为显示终端提供数据更新服务)和显示终端中预置有黑名单(即黑名单配置文件),服务器中的黑名单可以根据国家政策的变化实时更新且可供显示终端下载和更新,以便显示终端在出厂之后,服务器依然能够对显示终端的黑名单进行更新,保证显示终端显示的应用列表符合国家政策,规避了政策风险。A blacklist (that is, a blacklist configuration file) is preset in the preset server (that is, the remote server corresponding to the display terminal, and the server can provide data update services for the display terminal), and the blacklist in the server can be set according to national policies. The changes are updated in real time and can be downloaded and updated by the display terminal, so that after the display terminal leaves the factory, the server can still update the blacklist of the display terminal to ensure that the application list displayed by the display terminal complies with national policies and avoid policy risks.
在显示终端上电启动后,若显示终端中预设的快捷应用检测到显示应用列表的指令时,例如Launcher(安卓桌面启动器)应用在显示终端启动之后自动收到显示应用列表指令,获取模块10获取预置服务器中最新版本的远端黑名单,即获取预置服务器中与当前国家政策最接近的黑名单。具体地,显示终端从服务器检测是否存有最新版本的远端黑名单(此处说明,服务器上会及时上传最新版本的黑名单),即显示终端的后台服务使用线程连接到预置服务器,检测服务器中是否有远端黑名单,若存在,则显示终端中预设的快捷应用会从服务器下载该黑名单,并将该黑名单储存到该预设的快捷应用对应的应用存储空间中。After the display terminal is powered on and started, if the shortcut application preset in the display terminal detects the command to display the application list, for example, the Launcher (Android desktop launcher) application automatically receives the command to display the application list after the display terminal is started, and obtains the module 10 Obtain the latest version of the remote blacklist in the pre-configured server, that is, obtain the blacklist in the pre-configured server that is closest to the current national policy. Specifically, the display terminal detects from the server whether there is the latest version of the remote blacklist (here, the server will upload the latest version of the blacklist in time), that is, the background service of the display terminal uses a thread to connect to the preset server, detect Whether there is a remote blacklist in the server, and if it exists, the preset shortcut application in the display terminal will download the blacklist from the server, and store the blacklist in the application storage space corresponding to the preset shortcut application.
比对模块20,用于将快捷应用对应的本地黑名单与远端黑名单进行比对;The comparison module 20 is used to compare the local blacklist corresponding to the shortcut application with the remote blacklist;
第一同步模块30,用于当本地黑名单与远端黑名单不一致时,将该远端黑名单作为快捷应用新的本地黑名单,并控制快捷应用根据其本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示。The first synchronization module 30 is configured to use the remote blacklist as a new local blacklist for the shortcut application when the local blacklist is inconsistent with the remote blacklist, and control the shortcut application to generate a corresponding application list according to its local blacklist and Display the application list on the display terminal.
其中,需要说明的是,显示终端在该显示终端系统目录(即system目录)对应位置下预存有系统黑名单,由于系统目录下的文件在用户进行恢复出厂设置时也不会被清除,如果服务器出问题了且预设的快捷应用还未从服务器下载远端黑名单时,快捷应用本身的本地黑名单也无法提取时,快捷应用可从系统目录下获取系统黑名单,以基于此系统黑名单对显示的应用列表进行控制,实现应用列表的同步。即,此时获取模块10以及第一同步模块30还具有其他应用。具体的,获取模块10在未获取到远端黑名单的情况下,先获取自身的本地黑名单,在未获取本身的本地黑名单时,获取模块10获取系统黑名单,进一步通过第一同步模块30控制快捷应用根据获取到的或者提取到的黑名单生成对应的应用列表并将该应用列表在显示终端上显示。Among them, it should be noted that the display terminal pre-stores a system blacklist in the corresponding location of the display terminal system directory (namely the system directory). Since the files in the system directory will not be cleared when the user restores the factory settings, if the server When something goes wrong and the preset shortcut application has not downloaded the remote blacklist from the server, and the local blacklist of the shortcut application itself cannot be extracted, the shortcut application can obtain the system blacklist from the system directory to use the system blacklist based on this system blacklist. The displayed application list is controlled to realize the synchronization of the application list. That is, at this time, the acquisition module 10 and the first synchronization module 30 also have other applications. Specifically, when the remote blacklist is not obtained, the obtaining module 10 first obtains its own local blacklist; 30 Control the shortcut application to generate a corresponding application list according to the obtained or extracted blacklist and display the application list on the display terminal.
比对模块20将预设的快捷应用的应用存储空间存储的本地黑名单与从预置服务器上下载的远端黑名单进行比对,当本地黑名单与远端黑名单不一致时,表明服务器上的黑名单有更新,第一同步模块30将该远端黑名单作为预设的快捷应用新的本地黑名单,一般该远端黑名单存储在预设的快捷应用的目录存储空间,且该目录存储空间需供其它应用调整,所以远端黑名单存储时需要开放权限,使用使用MODE_WORLD_READABLE属性进行数据存储。The comparison module 20 compares the local blacklist stored in the application storage space of the preset shortcut application with the remote blacklist downloaded from the preset server, and when the local blacklist is inconsistent with the remote blacklist, it indicates If the blacklist is updated, the first synchronization module 30 uses the remote blacklist as the new local blacklist of the preset shortcut application. Generally, the remote blacklist is stored in the directory storage space of the preset shortcut application, and the directory The storage space needs to be adjusted by other applications, so open permissions are required for remote blacklist storage, and the MODE_WORLD_READABLE attribute is used for data storage.
可选地,第一同步模块30包括;Optionally, the first synchronization module 30 includes;
获取单元31,用于获取显示终端安装的所有应用,得到完整应用集合;An acquisition unit 31, configured to acquire all applications installed on the display terminal to obtain a complete application set;
第一滤除单元32,用于滤除所述完整应用集合中不可见应用,得到初级应用集合;The first filtering unit 32 is configured to filter out invisible applications in the complete application set to obtain a primary application set;
第二滤除单元33,用于控制快捷应用根据其本地黑名单将所述初级应用集合中的黑名单应用滤除并生成对应的应用列表;The second filtering unit 33 is configured to control the shortcut application to filter out the blacklisted applications in the primary application set according to its local blacklist and generate a corresponding application list;
显示单元34,用于将生成的应用列表在显示终端上显示。The display unit 34 is configured to display the generated application list on the display terminal.
显示终端的系统中安装有许多应用,其中有些应用本身的属性是不可见的,因此在预设的快捷应用获取显示终端系统中的应用时,先获取显示终端上安装的所有应用,以得到包含显示终端上所有应用的完整应用集合,然后需要添加过滤条件,经过初级过滤来过滤掉本身不需要显示的应用,得到一个初级应用集合。然后第一同步模块30控制预设的快捷应用根据其当前的本地黑名单对初级应用集合进行进一步过滤,即将本地黑名单上应用从初级应用集合中滤除,从而得到一个待显示应用集合,并将该待显示应用集合中的应用以应用列表的形式在显示终端上显示。There are many applications installed in the system of the display terminal, and the properties of some of the applications themselves are invisible. Therefore, when the preset shortcut application obtains the applications in the display terminal system, it first obtains all the applications installed on the display terminal to obtain the included Display the complete application collection of all applications on the terminal, and then need to add filter conditions, filter out the applications that do not need to be displayed through primary filtering, and obtain a primary application collection. Then the first synchronization module 30 controls the preset shortcut application to further filter the primary application set according to its current local blacklist, that is, to filter out the applications on the local blacklist from the primary application set, thereby obtaining an application set to be displayed, and The applications in the application set to be displayed are displayed on the display terminal in the form of an application list.
需要说明的是,第一同步模块30中包含的组成单元,在第二同步模块62以及第三同步模块中同样包含,其区别在于,第二滤除单元33是用于控制快捷应用根据其所获取或者提取的黑名单将所述初级应用集合中的黑名单应用滤除并生成对应的应用列表。It should be noted that the constituent units included in the first synchronization module 30 are also included in the second synchronization module 62 and the third synchronization module, the difference is that the second filtering unit 33 is used to control the shortcut application according to its The acquired or extracted blacklist filters out blacklisted applications in the primary application set and generates a corresponding application list.
此外,第一同步模块30还用于,当本地黑名单与远端黑名单一致时,保持快捷应用的本地黑名单不变。In addition, the first synchronization module 30 is also configured to keep the local blacklist of the shortcut application unchanged when the local blacklist is consistent with the remote blacklist.
当预设的快捷应用的应用存储空间存储的本地黑名单与从预置服务器上下载的远端黑名单一致时,表明服务器上的远程黑名单相对于本地黑名单没有更新,本地黑名单符合当前的国家政策,第一同步模块30保持显示终端预设的快捷应用的本地黑名单不变,预设的快捷应用以自由的本地黑名单生成对应的应用列表。When the local blacklist stored in the application storage space of the preset shortcut application is consistent with the remote blacklist downloaded from the preset server, it indicates that the remote blacklist on the server has not been updated relative to the local blacklist, and the local blacklist complies with the current According to the national policy, the first synchronization module 30 keeps the local blacklist of shortcut applications preset by the display terminal unchanged, and the preset shortcut applications use the free local blacklist to generate a corresponding application list.
在本实施例中,通过当显示终端中预设的快捷应用检测到显示应用列表的指令时,获取模块10获取预置服务器中最新版本的远端黑名单;然后比对模块20将快捷应用对应的本地黑名单与远端黑名单进行比对;再者当本地黑名单与远端黑名单不一致时,第一同步模块30将该远端黑名单作为快捷应用新的本地黑名单;最后控制快捷应用根据其本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示,从而使显示终端中预设的快捷应用能够及时将其本地黑名单与远端黑名单同步,使预设的快捷应用之间的本地黑名单也得到的同步,从而预设的快捷应用在显示终端显示的应用列表也得到了同步,解决了快捷应用在显示终端上显示的应用列表不一致的问题。In this embodiment, when the shortcut application preset in the display terminal detects an instruction to display the application list, the acquisition module 10 acquires the latest version of the remote blacklist in the preset server; then the comparison module 20 matches the shortcut application The local blacklist is compared with the remote blacklist; moreover, when the local blacklist is inconsistent with the remote blacklist, the first synchronization module 30 uses the remote blacklist as a new local blacklist for shortcut application; finally, the control shortcut The application generates a corresponding application list according to its local blacklist and displays the application list on the display terminal, so that the shortcut application preset in the display terminal can synchronize its local blacklist with the remote blacklist in time, so that the preset The local blacklist among shortcut applications is also synchronized, so that the application list displayed on the display terminal by the preset shortcut application is also synchronized, which solves the problem of inconsistency in the application list displayed on the display terminal by the shortcut application.
进一步地,在本发明显示终端第一实施例的基础上,提出显示终端第二实施例,参照图5,在第二实施例中,显示终端中包括上述预设的快捷应用和其它快捷应用,将预设的快捷应用作为主快捷应用,将其它快捷应用作为从快捷应用,Further, on the basis of the first embodiment of the display terminal of the present invention, a second embodiment of the display terminal is proposed. Referring to FIG. 5 , in the second embodiment, the display terminal includes the above preset shortcut applications and other shortcut applications, Use the preset shortcut application as the main shortcut application, and use other shortcut applications as secondary shortcut applications,
该显示终端还包括:The display terminal also includes:
文件提取模块61,用于当显示终端中从快捷应用检测到显示应用列表的指令时,提取主快捷应用当前时刻的本地黑名单;The file extraction module 61 is used to extract the local blacklist of the main shortcut application at the current moment when an instruction to display the application list is detected from the shortcut application in the display terminal;
第二同步模块62,用于若提取到主快捷应用当前时刻的本地黑名单,则控制从快捷应用根据该主快捷应用当前时刻的本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示。The second synchronization module 62 is used to control the slave shortcut application to generate a corresponding application list according to the local blacklist of the master shortcut application at the current moment and display the application list on the display terminal if the local blacklist at the current moment of the main shortcut application is extracted. on display.
在主快捷应用(例如显示终端系统的Launcher应用)的本地黑名单与预置服务器的远端黑名单完成同步之后,当显示终端中的从快捷应用(例如显示终端系统的热键应用)检测到显示应用列表的指令时,从快捷应用就无需与预置服务器建立网络连接,通过文件提取模块61提取主快捷应用当前时刻的本地黑名单,并在成功提取到主快捷应用当前时刻的本地黑名单之后,第二同步模块62控制从快捷应用根据该主快捷应用当前时刻的本地黑名单生成对应的应用列表并将该应用列表在显示终端上显示,从而避免显示终端中的主快捷应用和从快捷应用全部在需要显示应用列表时向预置服务器提出下载远端黑名单的请求,从而避免显示终端内快捷应用频繁地向预置服务器发起网络连接请求,减少对显示终端系统资源的占用,也避免预置服务器因被过多快捷应用访问而出现网络拥挤、占用率高的问题。After the local blacklist of the main shortcut application (such as the Launcher application of the display terminal system) is synchronized with the remote blacklist of the preset server, when the secondary shortcut application (such as the hotkey application of the display terminal system) in the display terminal detects When displaying the instruction of the application list, there is no need to establish a network connection with the preset server from the shortcut application, and the local blacklist of the current moment of the main shortcut application is extracted through the file extraction module 61, and the local blacklist of the current moment of the main shortcut application is successfully extracted. Afterwards, the second synchronization module 62 controls the slave shortcut application to generate a corresponding application list according to the local blacklist of the master shortcut application at the current moment and displays the application list on the display terminal, thereby avoiding the display of the master shortcut application and the slave shortcut application in the terminal. All the applications request the preset server to download the remote blacklist when they need to display the application list, so as to avoid frequent network connection requests from the shortcut applications in the display terminal to the preset server, reduce the occupation of display terminal system resources, and avoid The pre-configured server has problems of network congestion and high occupancy due to being accessed by too many shortcut applications.
此外,主快捷应用和从快捷应用的设置可以根据快捷应用被用户使用的频率来设定,用户使用频率越高大于预设频率值的快捷应用作为主快捷应用,用户使用频率越高小于等于预设频率值快捷应用作为从快捷应用。In addition, the setting of the main shortcut application and the secondary shortcut application can be set according to the frequency of the shortcut application being used by the user. The shortcut application with a higher frequency of use by the user is greater than the preset frequency value as the main shortcut application, and the higher the frequency of user usage is less than or equal to the preset value. Set the frequency value shortcut as the secondary shortcut.
进一步地,在本发明显示终端第二实施例的基础上,提出显示终端第三实施例,参照图6,在第三实施例中,显示终端还包括:Further, on the basis of the second embodiment of the display terminal of the present invention, a third embodiment of the display terminal is proposed. Referring to FIG. 6, in the third embodiment, the display terminal further includes:
第三同步模块63,用于在未提取到主快捷应用当前时刻的本地黑名单时,提取显示终端预存的系统黑名单;并在提取到显示终端预存的系统黑名单时,控制从快捷应用根据显示终端预存的系统黑名单生成对应的应用列表并将该应用列表在显示终端上显示。The third synchronization module 63 is used to extract the system blacklist pre-stored in the display terminal when the local blacklist of the main shortcut application at the current moment is not extracted; and when the system blacklist pre-stored in the display terminal is extracted, control the slave shortcut application according to The system blacklist pre-stored in the display terminal generates a corresponding application list and displays the application list on the display terminal.
当从快捷应用未提取到主快捷应用的当前时刻的本地黑名单时,例如主快捷应用还未显示其应用列表获取预置服务器的远端黑名单,此时,第三同步模块63提取显示终端系统中预存的系统黑名单。若为从快捷应用提取到了显示终端预存的系统黑名单,则第三同步模块63控制该从快捷应用保存该系统黑名单,并根据该系统黑名单生成对应的应用列表,并将该生成的应用列表在显示终端上显示。When the local blacklist at the current moment of the main shortcut application is not extracted from the shortcut application, for example, the main shortcut application has not yet displayed its application list to obtain the remote blacklist of the preset server, at this time, the third synchronization module 63 extracts the display terminal System blacklist pre-stored in the system. If the system blacklist pre-stored in the display terminal is extracted from the shortcut application, the third synchronization module 63 controls the shortcut application to save the system blacklist, and generates a corresponding application list according to the system blacklist, and stores the generated application The list is displayed on the display terminal.
在本实施例中,通过在本地黑名单与远端黑名单同步之后,当显示终端中从快捷应用检测到显示应用列表的指令时,若未提取到主快捷应用的本地黑名单,则第三同步模块63进一步提取显示终端中预存的系统黑名单,防止从快捷应用因黑名单空缺而将所有显示终端安装的应用以应用列表的形式显示出来,从而在一定程度上规避了政策风险;并且,由于关于应用列表的政策变化频率小,当主快捷应用在未发现预置服务器上黑名单更新时,该主快捷应用保存的黑名单也是显示终端预存的系统黑名单,从而主快捷应用和从快捷应用的黑名单是一致的,从而主快捷应用和从快捷应用生成的应用列表也是一致的,进而保证了主快捷应用和从快捷应用生成的应用列表的同步。In this embodiment, after the local blacklist is synchronized with the remote blacklist, when the display terminal detects an instruction to display the application list from the shortcut application, if the local blacklist of the main shortcut application is not extracted, the third The synchronization module 63 further extracts the system blacklist pre-stored in the display terminal to prevent the shortcut applications from displaying all the applications installed on the display terminal in the form of an application list due to the vacancy of the blacklist, thereby avoiding policy risks to a certain extent; and, Since the policy change frequency of the application list is small, when the blacklist of the master shortcut application is not found on the preset server, the blacklist saved by the master shortcut application is also the system blacklist pre-stored in the display terminal, so that the master shortcut application and the slave shortcut application The blacklists are consistent, so the main shortcut application and the application list generated by the secondary shortcut application are also consistent, thereby ensuring the synchronization of the main shortcut application and the application list generated by the secondary shortcut application.
进一步地,在本发明显示终端第三实施例的基础上,显示终端还包括:Further, on the basis of the third embodiment of the display terminal of the present invention, the display terminal further includes:
第四同步模块64,用于在未提取到显示终端预存的系统黑名单时,获取从快捷应用安装时自带的初始黑名单;并控制从快捷应用根据其自带的初始黑名单生成对应的应用列表并将该应用列表在显示终端上显示。The fourth synchronization module 64 is used to obtain the initial blacklist that comes with the shortcut application when it is not extracted from the system blacklist prestored in the display terminal; and control the slave shortcut application to generate a corresponding application list and display the application list on the display terminal.
当既未提取到主快捷应用当前时刻的本地黑名单、也未提取到显示终端预存的系统黑名单时,即主快捷应用和显示终端预存的黑名单均出现错误时,进一步第四同步模块64获取从快捷应用安装时自带的初始黑名单,并控制从快捷应用根据其自带的初始黑名单生成对应的应用列表并将该应用列表在显示终端上显示,防止从快捷应用因黑名单空缺而将所有显示终端安装的应用以应用列表的形式显示出来,从而在一定程度上规避了政策风险。When neither the local blacklist at the current moment of the main shortcut application nor the system blacklist pre-stored in the display terminal is extracted, that is, when the main shortcut application and the blacklist pre-stored in the display terminal all have errors, the fourth synchronization module 64 Obtain the initial blacklist that comes with the shortcut application when it is installed, and control the shortcut application to generate a corresponding application list based on the initial blacklist that comes with it, and display the application list on the display terminal to prevent the shortcut application from being vacant due to the blacklist And all the applications installed on the display terminal are displayed in the form of an application list, thereby avoiding policy risks to a certain extent.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods of various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (8)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510979713.1A CN105610922B (en) | 2015-12-23 | 2015-12-23 | List of application synchronous method and display terminal |
PCT/CN2016/084814 WO2017107393A1 (en) | 2015-12-23 | 2016-06-03 | Application list synchronization method and display terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510979713.1A CN105610922B (en) | 2015-12-23 | 2015-12-23 | List of application synchronous method and display terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105610922A CN105610922A (en) | 2016-05-25 |
CN105610922B true CN105610922B (en) | 2018-11-16 |
Family
ID=55990456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510979713.1A Active CN105610922B (en) | 2015-12-23 | 2015-12-23 | List of application synchronous method and display terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105610922B (en) |
WO (1) | WO2017107393A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105610922B (en) * | 2015-12-23 | 2018-11-16 | 深圳Tcl数字技术有限公司 | List of application synchronous method and display terminal |
CN112328338A (en) * | 2020-09-15 | 2021-02-05 | 深圳Tcl新技术有限公司 | Application hiding method, apparatus, device, and computer-readable storage medium |
CN115544502B (en) * | 2022-03-07 | 2024-04-23 | 荣耀终端有限公司 | Terminal software management and control method, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102970362A (en) * | 2012-11-15 | 2013-03-13 | 北京小米科技有限责任公司 | Method and device for sharing cloud data |
CN103425926A (en) * | 2012-05-14 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Application program starting method, list configuring method, terminal and server |
CN103491175A (en) * | 2013-09-25 | 2014-01-01 | 北京网秦天下科技有限公司 | Method and terminal for application program management |
CN104580522A (en) * | 2015-01-30 | 2015-04-29 | 宁波凯智信息科技有限公司 | Client-server data synchronization method and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8113991B2 (en) * | 2008-06-02 | 2012-02-14 | Omek Interactive, Ltd. | Method and system for interactive fitness training program |
CN105610922B (en) * | 2015-12-23 | 2018-11-16 | 深圳Tcl数字技术有限公司 | List of application synchronous method and display terminal |
-
2015
- 2015-12-23 CN CN201510979713.1A patent/CN105610922B/en active Active
-
2016
- 2016-06-03 WO PCT/CN2016/084814 patent/WO2017107393A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103425926A (en) * | 2012-05-14 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Application program starting method, list configuring method, terminal and server |
CN102970362A (en) * | 2012-11-15 | 2013-03-13 | 北京小米科技有限责任公司 | Method and device for sharing cloud data |
CN103491175A (en) * | 2013-09-25 | 2014-01-01 | 北京网秦天下科技有限公司 | Method and terminal for application program management |
CN104580522A (en) * | 2015-01-30 | 2015-04-29 | 宁波凯智信息科技有限公司 | Client-server data synchronization method and system |
Also Published As
Publication number | Publication date |
---|---|
WO2017107393A1 (en) | 2017-06-29 |
CN105610922A (en) | 2016-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11012505B2 (en) | Application information sharing method and apparatus | |
US10200464B2 (en) | In-app application casting | |
CN108683718B (en) | Data increment synchronization method and device, electronic equipment and storage medium | |
CN105610922B (en) | List of application synchronous method and display terminal | |
US20160371095A1 (en) | Implementation and Deletion Methods and Apparatuses for Multiple Operating Systems on Smart Device | |
US20150227605A1 (en) | Information processing terminal, synchronization control method, and computer-readable recording medium | |
WO2017128992A1 (en) | Method, device and system for migrating physical machine data to cloud | |
CN104301142A (en) | Backup method and device for configuration files | |
CN105897461A (en) | Multi-system OTA upgrading method and multi-system equipment | |
CN104519078A (en) | A method and a device for realizing cloud storage | |
CN104168309A (en) | Data backup and operation method based on cloud service | |
CN104680090A (en) | Application hiding control method, device and mobile terminal | |
EP2323453A1 (en) | Method, device and system for executing synchronization | |
CN105704296B (en) | Application environment cloning method and device | |
CN114356855A (en) | File management method, device, electronic device, and readable storage medium | |
WO2017166773A1 (en) | Terminal information synchronization method and apparatus, information synchronization system, and electronic device | |
CN109165067B (en) | Android horizontal and vertical screen data synchronization method and device, terminal and readable medium | |
CN103761170B (en) | system file recovery method, device and system | |
CN107786650A (en) | A kind of synchronous method, the apparatus and system of storage medium and management strategy | |
CN108880864B (en) | Automatic recovery method and device for service network, disaster recovery platform and storage medium | |
EP3260981B1 (en) | Information processing apparatus, information processing system, and information processing method for updating firmware | |
JP2017004120A (en) | System, server system, method, and program | |
CN111290859B (en) | Method for synchronizing initialization attribute of dual-system terminal and terminal | |
CN109144638B (en) | Android horizontal and vertical screen data synchronization method and device, terminal and readable medium | |
WO2017201936A1 (en) | Method and apparatus for replacing icon of application installation package, and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |