CN106817370B - Method and device for transmitting network data - Google Patents
Method and device for transmitting network data Download PDFInfo
- Publication number
- CN106817370B CN106817370B CN201710034840.3A CN201710034840A CN106817370B CN 106817370 B CN106817370 B CN 106817370B CN 201710034840 A CN201710034840 A CN 201710034840A CN 106817370 B CN106817370 B CN 106817370B
- Authority
- CN
- China
- Prior art keywords
- network
- application
- capability
- network capability
- network connection
- 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
Images
Classifications
-
- 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/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
- H04L63/0227—Filtering policies
- H04L63/0236—Filtering by address, protocol, port number or service, e.g. IP-address or URL
-
- 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/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
- H04W8/245—Transfer of terminal data from a network towards a terminal
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及终端技术领域,特别涉及一种传输网络数据的方法及装置。The present invention relates to the technical field of terminals, and in particular, to a method and device for transmitting network data.
背景技术Background technique
随着终端技术的发展,手机、平板电脑等终端越来越普及。终端通常可以安装并运行不同的应用程序,从而实现不同的功能,而在实现某些功能的过程中,通常需要通过网络与其它终端之间传输网络数据,从而与其它终端进行交互。但终端在传输网络数据时通常会消耗一定的数据流量,进而产生一定的费用,增加了用户使用终端的成本,因此,亟需一种传输网络数据的方法。With the development of terminal technology, terminals such as mobile phones and tablet computers are becoming more and more popular. A terminal can usually install and run different application programs to realize different functions, and in the process of realizing some functions, it is usually necessary to transmit network data between other terminals through a network, so as to interact with other terminals. However, when a terminal transmits network data, a certain amount of data traffic is usually consumed, and a certain fee is incurred, which increases the cost of using the terminal for the user. Therefore, a method for transmitting network data is urgently needed.
相关技术中,终端安装的能够传输网络数据的应用程序包括两类,第一类应用程序能够发起网络请求从而建立网络连接,并通过建立的网络连接来传输网络数据,第二类应用程序只能通过已有的网络连接来传输网络数据。由于传输不同的网络数据通常需要具有不同网络能力的网络连接,因此,当终端通过内置的网络连接管理服务接收到第一类应用中的任一应用程序发送的网络请求时,可以通过该网络连接管理服务,基于该网络请求携带的网络能力信息建立具有对应网络能力的网络连接,并将具有该网络能力的网络连接已建立成功的情况通知给该终端中安装的每个应用程序,之后,每个应用程序都可以使用具有该网络能力的该网络连接。In the related art, the application programs installed on the terminal that can transmit network data include two types. The first type of application program can initiate a network request to establish a network connection, and transmit network data through the established network connection. The second type of application program can only Network data is transmitted over an existing network connection. Since the transmission of different network data usually requires network connections with different network capabilities, when the terminal receives a network request sent by any application in the first type of applications through the built-in network connection management service, it can connect through the network Management service, establishes a network connection with the corresponding network capability based on the network capability information carried in the network request, and notifies each application program installed in the terminal that the network connection with the network capability has been successfully established. Every application can use this network connection with this network capability.
由于该终端在建立具有该网络能力的网络连接之后,每个应用程序都可以使用具有该网络能力的网络连接,从而导致终端传输网络数据的效果很差,并且难以降低用户使用该终端的流量成本。After the terminal establishes a network connection with the network capability, each application can use the network connection with the network capability, resulting in a poor performance of the terminal to transmit network data, and it is difficult to reduce the traffic cost of the user using the terminal .
发明内容SUMMARY OF THE INVENTION
为了提高传输网络数据的效果并降低使用该终端的成本,本发明实施例提供了一种传输网络数据方法及装置。所述技术方案如下:In order to improve the effect of transmitting network data and reduce the cost of using the terminal, embodiments of the present invention provide a method and apparatus for transmitting network data. The technical solution is as follows:
第一方面,提供了一种传输网络数据的方法,所述方法包括:In a first aspect, a method for transmitting network data is provided, the method comprising:
当通过网络连接管理服务包括的数据接口检测到针对第一应用的网络数据时,根据所述数据接口的接口标识确定传输所述网络数据所需的网络连接的网络能力,所述网络能力用于说明网络连接传输网络数据的能力;When network data for the first application is detected through the data interface included in the network connection management service, the network capability of the network connection required for transmitting the network data is determined according to the interface identifier of the data interface, and the network capability is used for Describe the ability of the network connection to transmit network data;
从本地存储中确定与所述网络能力对应的网络白名单,其中,所述网络白名单用于存储能够使用具有所述网络能力的网络连接的应用程序的应用标识;determining a network whitelist corresponding to the network capability from the local storage, wherein the network whitelist is used to store application identifiers of applications that can use the network connection with the network capability;
当所述网络白名单中包括所述第一应用的应用标识时,通过具有所述网络能力的网络连接传输所述网络数据。When the network whitelist includes the application identifier of the first application, the network data is transmitted through a network connection with the network capability.
可选地,所述从本地存储中确定与所述网络能力对应的网络白名单之前,还包括:Optionally, before determining the network whitelist corresponding to the network capability from the local storage, the method further includes:
当通过所述网络连接管理服务接收到网络请求且所述网络请求中携带与所述网络能力对应的网络能力信息时,确定具有所述网络能力的网络连接的共享模式,基于所述共享模式确定至少一个应用标识,所述共享模式用于指示能够共享具有所述网络能力的网络连接的应用程序,所述网络能力信息用于说明请求建立的网络连接的网络能力;When a network request is received through the network connection management service and the network request carries network capability information corresponding to the network capability, determine the sharing mode of the network connection with the network capability, and determine based on the sharing mode at least one application identifier, the sharing mode is used to indicate an application program that can share a network connection with the network capability, and the network capability information is used to describe the network capability of the network connection requested to be established;
基于所述网络能力信息判断当前是否已建立具有所述网络能力的网络连接;Determine, based on the network capability information, whether a network connection with the network capability is currently established;
如果当前没有建立具有所述网络能力的网络连接,则基于所述网络能力信息建立具有所述网络能力的网络连接,基于所述至少一个应用标识生成与所述网络能力对应的网络白名单;If a network connection with the network capability is not currently established, establish a network connection with the network capability based on the network capability information, and generate a network whitelist corresponding to the network capability based on the at least one application identifier;
如果当前已建立具有所述网络能力的网络连接,则将所述至少一个应用标识添加至与所述网络能力对应的网络白名单中。If a network connection with the network capability is currently established, the at least one application identifier is added to a network whitelist corresponding to the network capability.
可选地,所述基于所述共享模式确定至少一个应用标识,包括:Optionally, the determining at least one application identifier based on the sharing mode includes:
当所述共享模式为群组模式时,确定第二应用的应用标识,所述第二应用为发送所述网络请求的应用程序,所述群组模式用于指示与所述第二应用属于同一应用群组的应用程序均能够共享具有所述网络能力的网络连接;When the sharing mode is a group mode, an application identifier of a second application is determined, where the second application is an application that sends the network request, and the group mode is used to indicate that it belongs to the same application as the second application All the applications of the application group can share the network connection with the network capability;
从存储的网络能力信息与应用群组之间对应关系中,确定与所述网络能力信息对应且包括所述第二应用的应用标识的应用群组;from the stored correspondence between the network capability information and the application group, determining an application group corresponding to the network capability information and including the application identifier of the second application;
将所述应用群组包括的应用标识确定为所述至少一个应用标识。An application identifier included in the application group is determined as the at least one application identifier.
可选地,所述从存储的网络能力信息与应用群组之间对应关系中,确定与所述网络能力信息对应且包括所述第二应用的应用标识的应用群组之前,还包括:Optionally, before determining the application group corresponding to the network capability information and including the application identifier of the second application from the stored correspondence between the network capability information and the application group, the method further includes:
获取当前已安装的所有应用程序的应用标识;Get the application IDs of all currently installed applications;
基于所述网络能力信息和获取到的应用标识确定至少一个应用群组,每个应用群组中包括至少一个能够发出所述网络请求以请求建立具有所述网络能力的网络连接的应用程序的应用标识;At least one application group is determined based on the network capability information and the obtained application identifier, and each application group includes at least one application that can issue the network request to request the establishment of a network connection with the network capability. identification;
将所述网络能力信息与所述至少一个应用群组存储在所述网络能力信息与应用群组之间的对应关系中。The network capability information and the at least one application group are stored in a corresponding relationship between the network capability information and the application group.
可选地,所述基于所述共享模式确定至少一个应用标识,包括:Optionally, the determining at least one application identifier based on the sharing mode includes:
当所述共享模式为私有模式时,确定第二应用的应用标识,所述私有模式用于指示所述第二应用能够使用具有所述网络能力的网络连接但其他应用程序不能共享具有所述网络能力的网络连接,将所述第二应用的应用标识确定为所述至少一个应用标识;或者,When the sharing mode is the private mode, the application identifier of the second application is determined, and the private mode is used to indicate that the second application can use the network connection with the network capability but other applications cannot share the network connection with the network capability. capable network connection, and the application identifier of the second application is determined as the at least one application identifier; or,
当所述共享模式为全局模式时,将当前已安装的每个应用的应用标识均确定为所述至少一个应用标识,所述全局模式用于指示安装的所有应用程序均能够共享具有所述网络能力的网络连接。When the sharing mode is the global mode, the application identifier of each currently installed application is determined as the at least one application identifier, and the global mode is used to indicate that all installed applications can share the network with the capable network connection.
可选地,所述确定具有所述网络能力的网络连接的共享模式,包括:Optionally, the determining the sharing mode of the network connection with the network capability includes:
将预先设置的共享模式确定为具有所述网络能力的网络连接的共享模式;或者,Determining the preset sharing mode as the sharing mode of the network connection with the network capability; or,
显示多个共享模式,当基于所述多个共享模式接收到共享模式选择指令时,将所述共享模式选择指令所选择的共享模式确定为具有所述网络能力的网络连接的共享模式;或者,Displaying multiple sharing modes, when receiving a sharing mode selection instruction based on the multiple sharing modes, determining the sharing mode selected by the sharing mode selection instruction as the sharing mode of the network connection with the network capability; or,
当所述网络请求中携带共享模式信息时,基于所述共享模式信息确定具有所述网络能力的网络连接的共享模式;或者,When the network request carries the sharing mode information, determine the sharing mode of the network connection with the network capability based on the sharing mode information; or,
基于发送所述网络请求的第二应用,确定具有所述网络能力的网络连接的共享模式。A sharing mode of a network connection having the network capability is determined based on the second application that sent the network request.
第二方面,提供了一种传输网络数据的装置,所述装置包括:In a second aspect, an apparatus for transmitting network data is provided, the apparatus comprising:
第一确定模块,用于当通过网络连接管理服务包括的数据接口检测到针对第一应用的网络数据时,根据所述数据接口的接口标识确定传输所述网络数据所需的网络连接的网络能力,所述网络能力用于说明网络连接传输网络数据的能力;a first determining module, configured to determine the network capability of the network connection required for transmitting the network data according to the interface identifier of the data interface when network data for the first application is detected through the data interface included in the network connection management service , the network capability is used to describe the capability of the network connection to transmit network data;
第二确定模块,用于从本地存储中确定与所述网络能力对应的网络白名单,其中,所述网络白名单用于存储能够使用具有所述网络能力的网络连接的应用程序的应用标识;a second determining module, configured to determine a network whitelist corresponding to the network capability from a local storage, wherein the network whitelist is used to store application identifiers of applications that can use a network connection with the network capability;
传输模块,用于当所述网络白名单中包括所述第一应用的应用标识时,通过具有所述网络能力的网络连接传输所述网络数据。A transmission module, configured to transmit the network data through a network connection with the network capability when the network whitelist includes the application identifier of the first application.
可选地,所述装置还包括:Optionally, the device further includes:
第三确定模块,用于当通过所述网络连接管理服务接收到网络请求且所述网络请求中携带与所述网络能力对应的网络能力信息时,确定具有所述网络能力的网络连接的共享模式,基于所述共享模式确定至少一个应用标识,所述共享模式用于指示能够共享具有所述网络能力的网络连接的应用程序,所述网络能力信息用于说明请求建立的网络连接的网络能力;A third determining module, configured to determine a sharing mode of a network connection with the network capability when a network request is received through the network connection management service and the network request carries network capability information corresponding to the network capability , determining at least one application identifier based on the sharing mode, where the sharing mode is used to indicate an application program that can share a network connection with the network capability, and the network capability information is used to describe the network capability of the network connection requested to be established;
判断模块,用于基于所述网络能力信息判断当前是否已建立具有所述网络能力的网络连接;a judgment module, configured to judge whether a network connection with the network capability is currently established based on the network capability information;
建立模块,用于如果当前没有建立具有所述网络能力的网络连接,则基于所述网络能力信息建立具有所述网络能力的网络连接,基于所述至少一个应用标识生成与所述网络能力对应的网络白名单;The establishment module is configured to establish a network connection with the network capability based on the network capability information if the network connection with the network capability is not currently established, and generate a network connection corresponding to the network capability based on the at least one application identifier. network whitelist;
添加模块,用于如果当前已建立具有所述网络能力的网络连接,则将所述至少一个应用标识添加至与所述网络能力对应的网络白名单中。The adding module is configured to add the at least one application identifier to a network whitelist corresponding to the network capability if a network connection with the network capability is currently established.
可选地,所述第三确定模块包括:Optionally, the third determining module includes:
第一确定子模块,用于当所述共享模式为群组模式时,确定第二应用的应用标识,所述第二应用为发送所述网络请求的应用程序,所述群组模式用于指示与所述第二应用属于同一应用群组的应用程序均能够共享具有所述网络能力的网络连接;a first determination submodule, configured to determine an application identifier of a second application when the sharing mode is a group mode, where the second application is an application that sends the network request, and the group mode is used to indicate All applications belonging to the same application group as the second application can share the network connection with the network capability;
第二确定子模块,用于从存储的网络能力信息与应用群组之间对应关系中,确定与所述网络能力信息对应且包括所述第二应用的应用标识的应用群组;a second determining submodule, configured to determine an application group corresponding to the network capability information and including the application identifier of the second application from the stored correspondence between the network capability information and the application group;
第三确定子模块,用于将所述应用群组包括的应用标识确定为所述至少一个应用标识。The third determination submodule is configured to determine the application identifier included in the application group as the at least one application identifier.
可选地,所述第三确定模块还包括:Optionally, the third determining module further includes:
获取子模块,用于获取当前已安装的所有应用程序的应用标识;Get the submodule, which is used to get the application IDs of all currently installed applications;
第四确定子模块,用于基于所述网络能力信息和获取到的应用标识确定至少一个应用群组,每个应用群组中包括至少一个能够发出所述网络请求以请求建立具有所述网络能力的网络连接的应用程序的应用标识;The fourth determination submodule is configured to determine at least one application group based on the network capability information and the acquired application identifier, and each application group includes at least one application group capable of sending the network request to request to establish a network capability with the network capability. the application identifier of the network-connected application;
存储子模块,用于将所述网络能力信息与所述至少一个应用群组存储在所述网络能力信息与应用群组之间的对应关系中。A storage submodule, configured to store the network capability information and the at least one application group in a corresponding relationship between the network capability information and the application group.
可选地,所述第三确定模块包括:Optionally, the third determining module includes:
第五确定子模块,用于当所述共享模式为私有模式时,确定第二应用的应用标识,所述私有模式用于指示所述第二应用能够使用具有所述网络能力的网络连接但其他应用程序不能共享具有所述网络能力的网络连接,将所述第二应用的应用标识确定为所述至少一个应用标识;或者,The fifth determination submodule is configured to determine the application identifier of the second application when the sharing mode is the private mode, and the private mode is used to indicate that the second application can use the network connection with the network capability but other The application cannot share the network connection with the network capability, and the application identifier of the second application is determined as the at least one application identifier; or,
第六确定子模块,用于当所述共享模式为全局模式时,将当前已安装的每个应用程序的应用标识均确定为所述至少一个应用标识,所述全局模式用于指示安装的所有应用程序均能够共享具有所述网络能力的网络连接。The sixth determination sub-module is configured to determine the application identifier of each currently installed application as the at least one application identifier when the sharing mode is the global mode, and the global mode is used to indicate all the installed applications. Applications are all able to share a network connection with the stated network capabilities.
可选地,所述第三确定模块包括:Optionally, the third determining module includes:
第七确定子模块,用于将预先设置的共享模式确定为具有所述网络能力的网络连接的共享模式;或者,A seventh determination sub-module, configured to determine the preset sharing mode as the sharing mode of the network connection with the network capability; or,
显示子模块,用于显示多个共享模式,当基于所述多个共享模式接收到共享模式选择指令时,将所述共享模式选择指令所选择的共享模式确定为具有所述网络能力的网络连接的共享模式;或者,A display submodule, configured to display multiple sharing modes, and when receiving a sharing mode selection instruction based on the multiple sharing modes, determine the sharing mode selected by the sharing mode selection instruction as a network connection with the network capability sharing mode; or,
第八确定子模块,用于当所述网络请求中携带共享模式信息时,基于所述共享模式信息确定具有所述网络能力的网络连接的共享模式;或者,an eighth determining submodule, configured to determine the sharing mode of the network connection with the network capability based on the sharing mode information when the sharing mode information is carried in the network request; or,
第九确定子模块,用于基于发送所述网络请求的第二应用,确定具有所述网络能力的网络连接的共享模式。A ninth determination submodule is configured to determine a sharing mode of the network connection with the network capability based on the second application that sends the network request.
实施本发明提供的传输网络数据的方法和传输网络数据的装置至少具有下述有益效果:Implementing the method for transmitting network data and the device for transmitting network data provided by the present invention have at least the following beneficial effects:
首先,可以在通过数据接口检测到针对第一应用的网络数据时,根据该数据接口的接口标识确定传输该网络数据所需的网络连接的网络能力,之后,可以确定与该网络能力对应的网络白名单,并在该网络白名单中包括第一应用的应用标识时,通过具有该网络能力的网络连接传输该网络数据,也即是,能够通过与该网络能力对应的网络白名单,对使用具有该网络能力的网络连接的应用程序进行过滤,减少了该终端中任一应用程序都可以通过具有该网络能力的网络连接传输网络数据的几率,与现有的无过滤的网络数据传输方法相比,能够减少多个应用程序同时使用同一网络能力的网络连接进行传输,从而能够提高传输网络数据的效果,节省终端的流量成本。First, when network data for the first application is detected through the data interface, the network capability of the network connection required for transmitting the network data can be determined according to the interface identifier of the data interface, and then the network capability corresponding to the network capability can be determined. Whitelist, and when the application identifier of the first application is included in the network whitelist, the network data is transmitted through the network connection with the network capability, that is, the network whitelist corresponding to the network capability can be used. Filtering the application program of the network connection with the network capability reduces the probability that any application program in the terminal can transmit network data through the network connection with the network capability, which is consistent with the existing unfiltered network data transmission method. It can reduce the simultaneous transmission of multiple applications using a network connection with the same network capability, thereby improving the effect of transmitting network data and saving the traffic cost of the terminal.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本发明实施例提供的一种传输网络数据方法的流程图;1 is a flowchart of a method for transmitting network data provided by an embodiment of the present invention;
图2是本发明实施例提供的另一种传输网络数据方法的流程图;2 is a flowchart of another method for transmitting network data provided by an embodiment of the present invention;
图3是本发明实施例提供的一种传输网络数据的装置结构示意图;3 is a schematic structural diagram of an apparatus for transmitting network data according to an embodiment of the present invention;
图4是本发明实施例提供的另一种传输网络数据的装置结构示意图。FIG. 4 is a schematic structural diagram of another apparatus for transmitting network data according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
图1是本发明实施例提供的一种传输网络数据方法的流程图,参见图1,该方法包括:FIG. 1 is a flowchart of a method for transmitting network data provided by an embodiment of the present invention. Referring to FIG. 1 , the method includes:
步骤101:当通过网络连接管理服务包括的数据接口检测到针对第一应用的网络数据时,根据该数据接口的接口标识确定传输该网络数据所需的网络连接的网络能力,该网络能力用于说明网络连接传输网络数据的能力。Step 101: When network data for the first application is detected through the data interface included in the network connection management service, the network capability of the network connection required for transmitting the network data is determined according to the interface identifier of the data interface, and the network capability is used for Describes the ability of a network connection to transmit network data.
步骤102:从本地存储中确定与该网络能力对应的网络白名单,其中,该网络白名单用于存储能够使用具有该网络能力的网络连接的应用程序的应用标识。Step 102: Determine from the local storage a network whitelist corresponding to the network capability, where the network whitelist is used to store application identifiers of applications that can use the network connection with the network capability.
步骤103:当该网络白名单中包括该第一应用的应用标识时,通过具有该网络能力的网络连接传输该网络数据。Step 103: When the network whitelist includes the application identifier of the first application, transmit the network data through a network connection with the network capability.
在本发明实施例中,首先,可以在通过数据接口检测到针对第一应用(第一应用可以是终端中安装的任一应用程序,例如,MMS(Multimedia Messaging Service,多媒体信息服务)应用,其应用标识为UID(User Identification,用户身份证明)1)的网络数据(例如,多媒体信息)时,根据该数据接口的接口标识(例如,rm.net.data0)确定传输该网络数据所需的网络连接的网络能力(例如,MMS),之后,可以确定与该网络能力对应的网络白名单(该网络白名单用于存储能够使用具有该网络能力的网络连接的应用程序的标识,例如,与网络能力MMS对应的网络白名单中可以存储能够使用具有MMS能力的应用程序的应用标识),并在该网络白名单中包括第一应用的应用标识时,通过具有该网络能力的网络连接传输该网络数据(例如,通过具有MMS能力的网络连接传输多媒体信息,即通过数据接口rm.net.data0传输多媒体信息),也即是,能够通过与该网络能力对应的网络白名单,对使用具有网络能力的网络连接的应用程序进行过滤,减少了该终端中任一应用程序都可以通过具有该网络能力的网络连接传输网络数据的几率(例如,当MMS能力对应的网络白名单中只存储有UID1时,该终端中只有该MMS应用能够通过具有该MMS能力的网络连接传输多媒体信息,),与现有的无过滤的网络数据传输方法相比,能够减少多个应用程序同时使用同一网络能力的网络连接进行传输,提高了传输网络数据的效果,节省了该终端的流量成本。In this embodiment of the present invention, firstly, a first application (the first application may be any application installed in the terminal, for example, an MMS (Multimedia Messaging Service, multimedia information service) application may be detected through a data interface, which When the network data (for example, multimedia information) whose identifier is UID (User Identification) 1) is applied, the network required to transmit the network data is determined according to the interface identifier (for example, rm.net.data0) of the data interface. The network capability of the connection (eg, MMS), after which a network whitelist corresponding to the network capability can be determined (the network whitelist is used to store the identity of the application that can use the network connection with the network capability, for example, with the network The network whitelist corresponding to the capability MMS can store the application identifier of the application program with the MMS capability), and when the network whitelist includes the application identifier of the first application, the network is transmitted through the network connection with the network capability. Data (for example, the transmission of multimedia information through a network connection with MMS capability, that is, the transmission of multimedia information through the data interface rm.net.data0), that is, through the network whitelist corresponding to the network capability, to use the network capability The network connection application is filtered, which reduces the probability that any application in the terminal can transmit network data through the network connection with the network capability (for example, when only UID1 is stored in the network whitelist corresponding to the MMS capability) , only the MMS application in the terminal can transmit multimedia information through the network connection with the MMS capability), compared with the existing unfiltered network data transmission method, it can reduce the number of applications using the same network capability at the same time. The connection is used for transmission, which improves the effect of transmitting network data and saves the traffic cost of the terminal.
图2是本发明实施例提供的一种传输网络数据的方法流程图,参见图2,该方法用于终端中,该方法包括:FIG. 2 is a flowchart of a method for transmitting network data provided by an embodiment of the present invention. Referring to FIG. 2, the method is used in a terminal, and the method includes:
步骤201:当该终端通过网络连接管理服务接收到网络请求且该网络请求中携带网络能力信息时,确定具有与该网络能力信息对应的网络能力的网络连接的共享模式,该共享模式用于指示能够共享具有该网络能力的网络连接的应用程序。Step 201: When the terminal receives a network request through the network connection management service and the network request carries network capability information, determine the sharing mode of the network connection having the network capability corresponding to the network capability information, and the sharing mode is used to indicate Applications that can share a network connection with this network capability.
由于该终端在运行某个应用程序的过程中,通常需要通过具有某种网络能力的网络连接传输针对该应用程序的网络数据,包括接收网络数据或发送网络数据,而在此过程中,如果也通过具有该网络能力的网络连接传输针对其它应用程序的网络数据,即其它应用程序也能够使用具有该网络能力的网络连接,会导致终端传输针对该应用程序的网络数据的效果很差,并提高用户使用该终端的成本。因此,可以在接收到网络请求时,基于该网络请求携带的网络能力信息,确定具有与该网络能力信息对应的网络能力的网络连接的共享模式,从而基于该共享模式,确定能够使用具有该网络能力的网络连接的应用程序。In the process of running an application program, the terminal usually needs to transmit network data for the application program through a network connection with a certain network capability, including receiving network data or sending network data. Transmission of network data for other applications through a network connection with this network capability, that is, other applications can also use the network connection with this network capability, will result in a poor effect of the terminal transmitting network data for this application, and improve The user's cost to use the terminal. Therefore, when a network request is received, based on the network capability information carried by the network request, the sharing mode of the network connection with the network capability corresponding to the network capability information can be determined, so that based on the sharing mode, it is determined that the network connection with the network capability can be used. capable network connection applications.
其中,该终端可以是手机、平板电脑、智能手表等终端,当然,在实际应用中,该终端还可以是其它能够安装应用程序且能够建立网络连接,从而传输网络数据的终端,该终端中安装的应用程序可以是需要使用网络连接的应用程序。The terminal can be a mobile phone, a tablet computer, a smart watch, etc. Of course, in practical applications, the terminal can also be other terminals that can install applications and establish a network connection to transmit network data. The application can be an application that requires the use of a network connection.
需要说明的是,该网络连接管理服务可以为该终端中内置的服务,比如,当该终端为安装有安卓操作系统的终端时,该网络连接管理服务可以包括Connectivity Service(连接服务)。It should be noted that the network connection management service may be a built-in service in the terminal. For example, when the terminal is a terminal installed with an Android operating system, the network connection management service may include Connectivity Service.
还需要说明的是,该网络请求可以由该终端安装的任一具有发起网络请求能力的应用程序发出,该网络请求可以携带网络能力信息,从而请求建立具有与该网络能力信息对应的网络能力的网络连接。当然,在实际应用中,该网络请求还可以携带其它信息,比如,该网络请求还可以携带发送该网络请求的第二应用的应用标识、用于说明具有该网络能力的网络连接的共享模式的共享模式信息等。It should also be noted that the network request can be sent by any application program installed on the terminal that has the capability of initiating a network request, and the network request can carry network capability information, thereby requesting the establishment of a network capability corresponding to the network capability information. Internet connection. Of course, in practical applications, the network request may also carry other information, for example, the network request may also carry the application identifier of the second application that sends the network request, the sharing mode used to describe the network connection with the network capability. Shared schema information, etc.
其中,第二应用可以是该终端已安装的任一应用程序。应用标识用于唯一标识一个应用程序,应用标识可以是应用程序的UID或应用程序的Package Name(包名)。当然,在实际应用中,应用标识还可以是其它能够唯一标识一个应用程序的标识。Wherein, the second application may be any application program already installed by the terminal. The application identifier is used to uniquely identify an application, and the application identifier can be the UID of the application or the Package Name (package name) of the application. Of course, in practical applications, the application identifier may also be other identifiers that can uniquely identify an application.
需要说明的是,该网络能力信息用于说明请求建立的网络连接的网络能力,该网络能力用于说明网络连接传输网络数据的能力。比如,网络能力信息是NetworkCapabilities.NET_CAPABILITY_MMS时,说明请求建立的网络连接的网络能力为MMS。当然,实际应用中,该网络能力信息还可以是其它格式,且该网络能力信息所请求建立网络连接的网络能力可以是其它网络能力,比如Internet(因特网)、SUPL(Secure UserPlane Location,安全用户平面定位服务)、FOTA(Firmware Over-The-Air,空中下载软件升级)等网络能力。It should be noted that the network capability information is used to describe the network capability of the network connection requested to be established, and the network capability is used to describe the capability of the network connection to transmit network data. For example, when the network capability information is NetworkCapabilities.NET_CAPABILITY_MMS, it indicates that the network capability of the network connection requested to be established is MMS. Of course, in practical applications, the network capability information may also be in other formats, and the network capability requested by the network capability information to establish a network connection may be other network capabilities, such as Internet (Internet), SUPL (Secure UserPlane Location, Secure User Plane Location). Location service), FOTA (Firmware Over-The-Air, over-the-air software upgrade) and other network capabilities.
进一步地,由于当通过具有不同网络能力的网络连接传输网络数据时,所需的共享模式通常也不同,比如,当该终端中某个具有定位功能的应用程序,通过具有SUPL能力的网络连接传输网络数据,从而为该终端定位时,可以只允许传输针对该具有定位功能的应用程序的网络数据。因此,为了提高传输网络数据的效果,并降低用户使用该终端的成本,该终端可以确定具有该网络能力的网络连接的共享模式。Further, when network data is transmitted through network connections with different network capabilities, the required sharing modes are usually different. For example, when an application program with a positioning function in the terminal is transmitted through a network connection with SUPL capabilities network data, so that when locating the terminal, only the network data for the application program with the positioning function can be allowed to be transmitted. Therefore, in order to improve the effect of transmitting network data and reduce the cost of using the terminal for the user, the terminal may determine the sharing mode of the network connection with the network capability.
其中,该共享模式可以包括私有模式、群组模式和全局模式中的一种或多种。群组模式用于指示与第二应用属于同一应用群组的应用程序均能够共享具有该网络能力的网络连接,该私有模式用于指示第二应用能够使用具有该网络能力的网络连接但其他应用程序不能共享具有该网络能力的网络连接,该全局模式用于指示安装的所有应用程序均能够共享具有该网络能力的网络连接。由前述可知,第二应用为发送该网络请求的应用程序,因此,对于群组模式,与第二应用属于同一应用群组的应用程序均能够共享具有该网络能力的网络连接,即指只有与发送该请求的应用程序处于同一应用群组的应用程序能够共享具有该网络能力的网络连接。对于私有模式,第二应用能够使用具有该网络能力的网络连接但其他应用程序不能共享具有该网络能力的网络连接,即指只有发送该网络请求的应用程序能够使用具有该网络能力的网络连接。Wherein, the sharing mode may include one or more of private mode, group mode and global mode. The group mode is used to indicate that all applications belonging to the same application group as the second application can share the network connection with the network capability, and the private mode is used to indicate that the second application can use the network connection with the network capability but other applications Programs cannot share network connections with this network capability, this global mode is used to indicate that all installed applications can share network connections with this network capability. It can be seen from the foregoing that the second application is the application that sends the network request. Therefore, for the group mode, the applications that belong to the same application group as the second application can share the network connection with the network capability, that is, only the The applications that send the request are in the same application group and can share the network connection with the network capability. For private mode, the second application can use the network connection with the network capability but other applications cannot share the network connection with the network capability, that is, only the application sending the network request can use the network connection with the network capability.
需要说明的是,该共享模式可以通过一个字符或字符串表示,比如,可以用数字0表示私有模式、用数字1表示群组模式、用于数字2表示全局模式。当然,在实际应用中,还可以通过其它形式或种类的字符或字符串来标识该共享模式。It should be noted that the shared mode may be represented by a character or a string, for example, the number 0 may be used to represent the private mode, the number 1 may be used to represent the group mode, and the number 2 may be used to represent the global mode. Of course, in practical applications, the sharing mode can also be identified by other forms or types of characters or character strings.
其中,该终端至少可以通过下述四种实现方式确定具有该网络能力的网络连接的共享模式:Wherein, the terminal can determine the sharing mode of the network connection with the network capability through at least the following four implementation manners:
第一种实现方式,为了减少与用户之间的交互,提高确定共享模式的效率,将预先设置的共享模式确定为具有该网络能力的网络连接的共享模式。In the first implementation manner, in order to reduce the interaction with the user and improve the efficiency of determining the sharing mode, the preset sharing mode is determined as the sharing mode of the network connection with the network capability.
其中,该终端可以预先为每个网络能力设置一个共享模式,之后,该终端可以直接将该网络能力预先设置的共享模式确定具有该网络能力的网络连接的共享模式。Wherein, the terminal may preset a sharing mode for each network capability, and then the terminal may directly determine the sharing mode of the network connection with the network capability from the sharing mode preset by the network capability.
例如,该网络请求携带的网络能力信息对应的网络能力为SUPL,且网络能力SUPL预先设置的共享模式为私有模式,因此,该终端可以将具有SUPL能力的网络连接的共享模式确定为私有模式。For example, the network capability corresponding to the network capability information carried in the network request is SUPL, and the shared mode preset by the network capability SUPL is the private mode. Therefore, the terminal may determine the shared mode of the network connection with the SUPL capability as the private mode.
第二种实现方式,为了提高确定共享模式的准确率,进而提高传输网络数据的效果,可以在每次接收到网络请求时,由用户确定具有该网络能力的网络连接的共享模式,即显示多个共享模式,当基于该多个共享模式接收到共享模式选择指令时,将该共享模式选择指令所选择的共享模式确定为具有该网络能力的网络连接的共享模式。In the second implementation manner, in order to improve the accuracy of determining the sharing mode, and thus improve the effect of transmitting network data, the user can determine the sharing mode of the network connection with the network capability each time a network request is received, that is, display multiple network connections. There are several sharing modes, and when a sharing mode selection instruction is received based on the plurality of sharing modes, the sharing mode selected by the sharing mode selection instruction is determined as the sharing mode of the network connection with the network capability.
其中,该终端可以通过窗口或弹窗的方式显示该多个共享模式,当然,在实际应用中,该终端还可以通过其它方式显示该多个共享模式。The terminal may display the multiple sharing modes in a window or a pop-up window. Of course, in practical applications, the terminal may also display the multiple sharing modes in other manners.
需要说明的是,该共享模式选择指令用于选择一个共享模式,该共享模式选择指令可以由用户通过执行预设操作触发,该预设操作可以为点击操作、触摸操作、按键操作等,当然,在实际应用中,该预设操作还可以是其它操作。It should be noted that the sharing mode selection instruction is used to select a sharing mode, and the sharing mode selection instruction can be triggered by the user by performing a preset operation, and the preset operation can be a click operation, a touch operation, a key operation, etc. Of course, In practical applications, the preset operation may also be other operations.
第三种实现方式,为了减少与用户之间的交互,提高确定共享模式的效率,当该网络请求中携带共享模式信息时,基于该共享模式信息确定具有该网络能力的网络连接的共享模式。In the third implementation manner, in order to reduce the interaction with the user and improve the efficiency of determining the sharing mode, when the network request carries the sharing mode information, the sharing mode of the network connection with the network capability is determined based on the sharing mode information.
其中,该共享模式信息用于说明该网络请求所请求建立的具有该网络能力的网络连接的共享模式。比如,当该共享模式信息为“共享模式:0”时,则确定该网络请求所请求建立的具有该网络能力的网络连接的共享模式为私有模式。Wherein, the sharing mode information is used to describe the sharing mode of the network connection with the network capability requested to be established by the network request. For example, when the sharing mode information is "sharing mode: 0", it is determined that the sharing mode of the network connection with the network capability requested by the network request is the private mode.
第四种实现方式,为了提高确定共享模式的准确率,进而提高传输网络数据的效果,可以基于发送该网络请求的第二应用,确定具有该网络能力的网络连接的共享模式。In the fourth implementation manner, in order to improve the accuracy of determining the sharing mode and thus improve the effect of transmitting network data, the sharing mode of the network connection with the network capability can be determined based on the second application that sends the network request.
其中,对于该终端安装的每个应用程序,该终端可以预先设置该应用程序所能够请求建立的网络连接的共享模式,因此,当该终端接收该网络请求时,可以基于发送该网络请求的第二应用,来确定具有该网络能力的网络连接的共享模式。也即是,同一应用程序所能够请求建立的网络连接的共享模式相同。Wherein, for each application program installed by the terminal, the terminal can preset the sharing mode of the network connection that the application program can request to establish. Therefore, when the terminal receives the network request, it can send the network request based on the first The second application is to determine the sharing mode of the network connection with the network capability. That is, the sharing modes of the network connections that the same application can request to establish are the same.
例如,该终端通过该网络连接管理服务接收到APP(Application,应用)1发送的网络请求,且该终端为APP1预先设置的APP1所能够请求建立的网络连接的共享模式为群组模式,因此,该终端将APP1当前请求建立的具有该网络能力的网络连接的共享模式确定为群组模式。For example, the terminal receives the network request sent by APP (Application, application) 1 through the network connection management service, and the sharing mode of the network connection that can be requested to be established by APP1 preset by the terminal for APP1 is the group mode. Therefore, The terminal determines the sharing mode of the network connection with the network capability currently requested by APP1 to be established as the group mode.
另外,由于该全局模式用于指示安装的所有应用程序均能够共享具有该网络能力的网络连接,因此,当该共享模式为全局模式时,该终端也可以不执行下述步骤202-203所述的操作,而是直接判断当前是否已建立具有该网络能力的网络连接,如果没有则建立具有该网络能力的网络连接,如果有则将与该网络数据对应的网络白名单进行删除。In addition, since the global mode is used to indicate that all installed applications can share the network connection with the network capability, when the sharing mode is the global mode, the terminal may not perform steps 202-203 described below. Instead, directly determine whether a network connection with the network capability has been established, if not, establish a network connection with the network capability, and if so, delete the network whitelist corresponding to the network data.
其中,该终端可以通过该网络连接管理服务来判断当前已建立的网络连接中是否包括具有该网络能力的网络连接,如果当前已建立的网络连接中包括具有该网络能力的网络连接,则确定当前已建立有具有该网络能力的网络连接,如果当前已建立的网络连接中不包括具有该网络能力的网络连接,则确定当前未建立具有该网络能力的网络连接。Wherein, the terminal can use the network connection management service to determine whether the currently established network connection includes a network connection with the network capability, and if the currently established network connection includes a network connection with the network capability, then determine the current A network connection with the network capability has been established, and if the currently established network connection does not include a network connection with the network capability, it is determined that the network connection with the network capability is not currently established.
例如,当该终端为安装有安卓操作系统的终端时,该终端可以通过ConnectivityService来判断当前是否已建立具有该网络能力的网络连接,如果没有,则通过NetworkFactory(网络工厂)建立具有该网络能力的网络连接。For example, when the terminal is a terminal with an Android operating system installed, the terminal can use ConnectivityService to determine whether a network connection with the network capability has been established, and if not, establish a network connection with the network capability through NetworkFactory (network factory). Internet connection.
另外,该终端在建立具有该网络能力的网络连接时,可以为具有该网络能力的网络连接确定一个数据接口,以便于之后通过该数据接口传输网络数据。In addition, when establishing a network connection with the network capability, the terminal may determine a data interface for the network connection with the network capability, so as to transmit network data through the data interface later.
其中,该终端可以从预先设置的多个数据接口(比如,该多个数据接口可以是相关技术人员预先设置的数据接口,且每个数据接口分别对应一种网络能力)选择对该网络能力对应的数据接口。Wherein, the terminal may select the corresponding network capability from multiple preset data interfaces (for example, the multiple data interfaces may be data interfaces preset by relevant technicians, and each data interface corresponds to a network capability respectively). data interface.
需要说明的是,该终端可以在预先设置该多个数据接口时,确定每个数据接口所对应的网络能力,并将该数据接口的接口标识与该网络能力存储至接口标识与网络能力之间的对应关系中。之后,该终端可以基于该网络能力,从接口标识与网络能力之间的对应关系中,确定与该网络能力对应的数据接口。It should be noted that, when the multiple data interfaces are preset, the terminal may determine the network capability corresponding to each data interface, and store the interface identifier of the data interface and the network capability between the interface identifier and the network capability. in the corresponding relationship. Afterwards, the terminal may determine the data interface corresponding to the network capability from the correspondence between the interface identifier and the network capability based on the network capability.
当然,在实际应用中,该终端建立具有该网络能力的网络连接时,也可以通过其它方式来确定一个数据端口,(比如,该终端也可以为该网络能力新生成一个数据端口)并将确定的数据接口的接口标识与该网络能力存储至接口标识与网络能力之间的对应关系中。Of course, in practical applications, when the terminal establishes a network connection with the network capability, a data port may also be determined in other ways, (for example, the terminal may also generate a new data port for the network capability) and will determine The interface identifier of the data interface and the network capability are stored in the corresponding relationship between the interface identifier and the network capability.
步骤202:该终端基于该共享模式确定至少一个应用标识。Step 202: The terminal determines at least one application identifier based on the sharing mode.
需要说明的是,该网络白名单用于存储当前能够使用具有该网络能力的网络连接的应用程序的应用标识。It should be noted that the network whitelist is used to store application identifiers of applications that can currently use the network connection with the network capability.
由于不同的共享模式所指示的能够使用具有该网络能力的网络连接的应用不同,因此需要基于该共享模式确定至少一个应用标识,以确保该至少一个应用标识能够使用具有该网络能力的网络连接。Since different sharing modes indicate different applications that can use the network connection with the network capability, at least one application identifier needs to be determined based on the sharing mode to ensure that the at least one application identifier can use the network connection with the network capability.
其中,由于共享模式可以包括私有模式、群组模式和全局模式中的一种或多种,因此,当该共享模式为私有模式时,确定第二应用的应用标识,将该第二应用的应用标识确定为该至少一个应用标识。当该共享模式为全局模式时,将当前已安装的每个应用程序的应用标识均确定为该至少一个应用标识。当该共享模式为群组模式时,确定第二应用的应用标识,从存储的网络能力与应用群组之间对应关系中,确定与该网络能力信息对应且包括该第二应用的应用标识的应用群组,将该应用群组包括的应用标识确定为该至少一个应用标识。Wherein, since the sharing mode may include one or more of the private mode, the group mode and the global mode, when the sharing mode is the private mode, the application identifier of the second application is determined, and the application ID of the second application is determined. The identification is determined to be the at least one application identification. When the sharing mode is the global mode, the application identifier of each currently installed application is determined as the at least one application identifier. When the sharing mode is the group mode, the application identifier of the second application is determined, and from the stored correspondence between the network capability and the application group, the application identifier corresponding to the network capability information and including the application identifier of the second application is determined. an application group, and the application identifier included in the application group is determined as the at least one application identifier.
例如,该终端通过该网络连接管理服务接收到APP1发送的网络请求,该网络请求携带的网络信息对应的网络能力为MMS,该终端确定APP1请求建立的网络连接1的共享模式为群组模式,其中,网络连接1为具有MMS能力的网络连接。因此,该终端基于该APP1的应用标识UID1,从存储的如下表1所述的网络能力与应用群组之间对应关系中,确定与MMS对应的应用群组为群组1和群组2,其中群组1包括的应用标识为UID1、UID2、UID3,群组2包括的应用标识为UID4、UID5、UID6。由于群组1中包括UID1,因此,该终端将群组1包括的UID1、UID2、UID3确定为该至少一个应用标识。For example, the terminal receives a network request sent by APP1 through the network connection management service, the network capability corresponding to the network information carried in the network request is MMS, and the terminal determines that the sharing mode of the network connection 1 requested by APP1 is group mode, The network connection 1 is a network connection with MMS capability. Therefore, based on the application identifier UID1 of the APP1, the terminal determines that the application groups corresponding to the MMS are group 1 and group 2 from the stored correspondence between network capabilities and application groups as described in Table 1 below, The application identifiers included in group 1 are UID1, UID2, and UID3, and the application identifiers included in group 2 are UID4, UID5, and UID6. Since group 1 includes UID1, the terminal determines UID1, UID2, and UID3 included in group 1 as the at least one application identifier.
表1Table 1
需要说明的是,本发明实施例仅以表1所述的网络能力与应用群组之间的对应关系为例进行说明,上述表1并不对本发明实施例构成限定。It should be noted that the embodiments of the present invention only take the correspondence between network capabilities and application groups described in Table 1 as an example for description, and the above Table 1 does not limit the embodiments of the present invention.
进一步地,该终端可以在从存储的网络能力与应用群组之间对应关系中,确定与该网络能力信息对应且包括该第二应用的应用标识的应用群组之前,获取当前已安装的所有应用程序的应用标识,基于该网络能力和获取到的应用标识确定至少一个应用群组,每个应用群组中包括至少一个能够发出该网络请求并请求具有该网络能力的网络连接的应用程序的应用标识,将该网络能力与该至少一个应用群组存储在该网络能力与应用群组之间的对应关系中。Further, before determining the application group corresponding to the network capability information and including the application identifier of the second application from the stored correspondence between the network capability and the application group, the terminal may obtain all currently installed applications. The application identifier of the application program, at least one application group is determined based on the network capability and the obtained application identifier, and each application group includes at least one application program capable of issuing the network request and requesting a network connection with the network capability. An application identifier, and the network capability and the at least one application group are stored in the corresponding relationship between the network capability and the application group.
例如,该终端获取到的应用标识为UID1、UID2、UID3、UID4、UID5、UID6、UID7、UID8、UID9、UID10、UID11和UID12,其中,UID n即为APP n的应用标识。如果APP1和APP4具有发送网络请求从而请求建立网络连接1的能力,APP 1、APP 2、APP 3、APP 4、APP 5和APP 6需要使用网络连接1传输网络数据,因此,该终端可以基于MMS和获取到的12个应用标识,确定与网络能力MMS对应的2个应用群组分别为群组1和群组2,其中群组1包括UID1、UID2和UID3,群组2包括UID4、UID5和UID6。For example, the application identifiers obtained by the terminal are UID1, UID2, UID3, UID4, UID5, UID6, UID7, UID8, UID9, UID10, UID11 and UID12, where UID n is the application identifier of APP n. If APP1 and APP4 have the ability to send network requests to request the establishment of network connection 1, APP 1, APP 2, APP 3, APP 4, APP 5 and APP 6 need to use network connection 1 to transmit network data, so the terminal can be based on MMS and the obtained 12 application identifiers, determine that the 2 application groups corresponding to the network capability MMS are group 1 and group 2 respectively, wherein group 1 includes UID1, UID2 and UID3, and group 2 includes UID4, UID5 and UID6.
其中,该终端可以显示分组提示信息,该分组提示信息包括获取到的应用标识,该分组提示信息用于提示用户对获取到的应用标识进行分组,当基于显示的分组提示信息接收到分组指令时,基于该分组指令确定该至少一个应用群组。The terminal may display grouping prompt information, where the grouping prompt information includes the acquired application identifier, and the grouping prompt information is used to prompt the user to group the acquired application identifiers. When a grouping instruction is received based on the displayed grouping prompt information , and determine the at least one application group based on the grouping instruction.
需要说明的是,该终端可以通过窗口或弹窗等方式显示该网络配置提示信息,当然,在实际应用中,该终端可以通过其它方式显示该网络配置提示信息。It should be noted that the terminal may display the network configuration prompt information in a window or a pop-up window, and of course, in practical applications, the terminal may display the network configuration prompt information in other ways.
还需要说明的是,该分组指令用于对获取到的应用标识进行分组,该分组指令可以由用户通过执行预设操作触发。It should also be noted that the grouping instruction is used to group the acquired application identifiers, and the grouping instruction may be triggered by the user performing a preset operation.
其中,对于该终端已安装的所有应用程序中的每个应用程序,该终端可以在基于该网络能力和获取到的应用标识确定至少一个应用群组之前(比如,在该应用程序安装完成时或者首次运行时),显示网络配置提示信息,以提示用户该应用程序是否需要使用网络连接、如果需要使用网络连接,该应用程序所需的网络连接的网络能力、是否能够发起网络请求、如果能够发起网络请求,所发起的网络请求携带的网络能力信息所对应的网络能力等信息。当然,在实际应用中,该终端还可以通过其它方式来提示用户该应用程序是否需要使用网络连接、如果需要使用网络连接,该应用程序所需的网络连接的网络能力、是否能够发起网络请求、如果能够发起网络请求,所发起的网络请求携带的网络能力信息所对应的网络能力等信息。Wherein, for each application in all the applications installed by the terminal, the terminal may determine at least one application group based on the network capability and the acquired application identifier (for example, when the application is installed or When running for the first time), a network configuration prompt is displayed to prompt the user whether the application needs to use a network connection, if it needs to use a network connection, the network capability of the network connection required by the application, whether it can initiate a network request, and if it can initiate a network connection Network request, information such as network capability corresponding to the network capability information carried by the initiated network request. Of course, in practical applications, the terminal can also prompt the user whether the application needs to use a network connection in other ways, if it needs to use a network connection, the network capability of the network connection required by the application, whether it can initiate a network request, If a network request can be initiated, information such as network capability corresponding to the network capability information carried in the initiated network request.
需要说明的是,该终端可以通过窗口或弹窗等方式显示该网络配置提示信息,当然,在实际应用中,该终端可以通过其它方式显示该网络配置提示信息。It should be noted that the terminal may display the network configuration prompt information in a window or a pop-up window, and of course, in practical applications, the terminal may display the network configuration prompt information in other ways.
进一步地,为了提高获取到该至少一个应用标识的准确率,每个应用程序可以只存在于该至少一个群组中的一个群组中,也即是,该至少一个群组中任意两个群组中不会包括同一个应用程序的应用标识。Further, in order to improve the accuracy of obtaining the at least one application identifier, each application may only exist in one group of the at least one group, that is, any two groups in the at least one group. App IDs for the same app will not be included in the group.
进一步地,由于该终端已安装的所有应用中通常也会包括不需要使用该网络能力的网络连接的应用程序,因此,为了提高确定该至少一个应用群组的灵活性,该至少一个群组包括的应用标识的数目可以小于或等于该终端获取到的应用标识的数目,也即是,该至少一个群组可以不包括该终端已安装的某个应用程序的应用标识。Further, since all applications installed by the terminal usually also include applications that do not need to use the network connection of the network capability, therefore, in order to improve the flexibility of determining the at least one application group, the at least one group includes The number of application identifiers obtained by the terminal may be less than or equal to the number of application identifiers obtained by the terminal, that is, the at least one group may not include the application identifiers of an application program installed by the terminal.
另外,对于该终端能够建立的具有任一网络能力的网络连接,该终端都可以基于该网络能力和获取到的应用标识,确定与该网络能力信息对应的至少一个应用群组。In addition, for a network connection with any network capability that can be established by the terminal, the terminal can determine at least one application group corresponding to the network capability information based on the network capability and the acquired application identifier.
步骤203:基于该网络能力信息判断当前是否已建立具有该网络能力的网络连接,如果当前没有建立具有该网络能力的网络连接,则基于该网络能力信息建立具有该网络能力的网络连接,基于该至少一个应用标识生成与该网络能力对应的网络白名单,如果当前已建立具有该网络能力的网络连接,则将该至少一个应用标识添加至与该网络能力对应的网络白名单中。Step 203: Based on the network capability information, determine whether a network connection with the network capability is currently established. If a network connection with the network capability is not currently established, a network connection with the network capability is established based on the network capability information. At least one application identifier generates a network whitelist corresponding to the network capability, and if a network connection with the network capability is currently established, the at least one application identifier is added to the network whitelist corresponding to the network capability.
由于当接收到第二应用的网络请求时,可能当前已建立有具有该网络能力的网络连接,也可能没有建立具有该能力的网络连接,因此,为了减少重复建立具有同一网络能力的网络连接的几率,从而减少浪费该终端的系统资源,该终端可以判断的当前是否已建立具有该网络能力的网络连接。Since when a network request of the second application is received, a network connection with the network capability may or may not be established at present. Therefore, in order to reduce the number of times when a network connection with the same network capability is repeatedly established This reduces the waste of system resources of the terminal, and the terminal can determine whether a network connection with the network capability has been established currently.
其中,该终端可以创建与该网络能力对应的网络白名单,将该至少一个应用标识添加至该网络白名单中,从而基于该至少一个应用标识生成与该网络能力对应的网络白名单。The terminal may create a network whitelist corresponding to the network capability, add the at least one application identifier to the network whitelist, and generate a network whitelist corresponding to the network capability based on the at least one application identifier.
需要说明的是,如果当前已建立具有该网络能力的网络连接,则说明当前已创建有与该网络能力对应的网络白名单,因此,可以直接将该至少一个应用标识添加至当前已有的与该网络能力对应的网络白名单。当然,为了确保能够将该至少一个应用标识添加至与该网络能力对应的白名单的准确率,从而提高传输网络数据的效果,该终端将该至少一个应用标识添加至当前已有的与该网络能力对应的网络白名单之前,可以先判断当前是否已创建有与该网络能力对应的网络白名单,如果有则将该至少一个应用标识添加至当前已有的与该网络能力对应的网络白名单,如果没有则创建与该网络能力对应的网络白名单,将该至少一个应用标识添加至该网络白名单中。It should be noted that if a network connection with the network capability is currently established, it means that a network whitelist corresponding to the network capability has been created. Therefore, the at least one application identifier can be directly added to the currently existing and existing network whitelists. The network whitelist corresponding to the network capability. Of course, in order to ensure the accuracy of adding the at least one application identifier to the whitelist corresponding to the network capability, thereby improving the effect of transmitting network data, the terminal adds the at least one application identifier to the currently existing network with the network. Before the network whitelist corresponding to the capability, you can first determine whether a network whitelist corresponding to the network capability has been created, and if so, add the at least one application identifier to the currently existing network whitelist corresponding to the network capability , if not, create a network whitelist corresponding to the network capability, and add the at least one application identifier to the network whitelist.
进一步地,如果与该网络能力对应的网络白名单包括的应用标识的数目与该终端当前安装得到应用程序的数目相同,也即是,与该网络能力对应的网络白名单中包括该终端当前安装的每个应用程序的应用标识,该终端可以删除与该网络能力对应的网络白名单。Further, if the number of application identifiers included in the network whitelist corresponding to the network capability is the same as the number of applications currently installed by the terminal, that is, the network whitelist corresponding to the network capability includes the current installation of the terminal. The application identifier of each application program, the terminal can delete the network whitelist corresponding to the network capability.
进一步地,在步骤203之后,该终端还可以基于该至少一个应用标识,通知该至少一个应用标识对应的应用程序具有该网络能力的网络连接已经建立完成,从而确保该至少一个应用标识对应的应用程序可以使用具有该网络能力的网络连接。Further, after
其中,该终端可以通过广播的形式对该至少一个应用标识对应的应用程序进行通知,当然,也可以分别向该至少一个应用标识对应的每个应用程序分别发送通知消息,以对该至少一个应用标识对应的应用程序进行通知。Wherein, the terminal may notify the application program corresponding to the at least one application identifier in the form of broadcasting, and of course, it may also send notification messages to each application program corresponding to the at least one application identifier respectively, so as to the at least one application program corresponding to the at least one application identifier. Identifies the corresponding application for notification.
通过上述步骤201-203,该终端接收到了第二应用的网络请求,确定了第二应用所请求建立的网络连接的网络能力以及与具有该网络能力的网络连接的共享模式,并基于该共享模式确定了与该网络能力对应的网络白名单,因此,在接下来的步骤204-205中,可以基于与该网络能力对应的网络白名单,对使用具有该网络能力的网络连接的应用程序进行过滤,从而减少多个应用程序同时使用同一网络能力的网络连接进行传输,提高传输网络数据的效果,节省该终端的流量成本。Through the above steps 201-203, the terminal receives the network request of the second application, determines the network capability of the network connection requested by the second application and the sharing mode of the network connection with the network capability, and based on the sharing mode The network whitelist corresponding to the network capability is determined, therefore, in the next steps 204-205, based on the network whitelist corresponding to the network capability, the applications using the network connection with the network capability can be filtered , thereby reducing the simultaneous transmission of multiple applications using a network connection with the same network capability, improving the effect of transmitting network data, and saving the traffic cost of the terminal.
步骤204:当该终端通过网络连接管理服务包括的数据接口检测到针对第一应用的网络数据时,根据该数据接口的接口标识确定传输该网络数据所需的网络连接的网络能力。Step 204: When the terminal detects network data for the first application through the data interface included in the network connection management service, the network capability of the network connection required for transmitting the network data is determined according to the interface identifier of the data interface.
其中,该终端可以根据该数据接口的接口标识,从存储的接口标识与网络能力的对应关系中,确定传输该网络数据所需的网络连接的网络能力。The terminal may determine the network capability of the network connection required for transmitting the network data from the stored correspondence between the interface identifier and the network capability according to the interface identifier of the data interface.
需要说明的是,上面所描述的第一应用与第二应用可以是同一个应用程序,也可以是不同的应用程序。It should be noted that, the first application and the second application described above may be the same application program, or may be different application programs.
步骤205:当传输该网络数据所需的网络连接的网络能力为该网络能力时,该终端从本地存储中确定与该网络能力对应的网络白名单,当该网络白名单中包括该第一应用的应用标识时,通过具有该网络能力的网络连接传输该网络数据。Step 205: When the network capability of the network connection required for transmitting the network data is the network capability, the terminal determines a network whitelist corresponding to the network capability from the local storage, and when the network whitelist includes the first application The network data is transmitted through the network connection with the network capability when the application identifier is specified.
例如,当该终端为安装有安卓操作系统的终端时,该终端可以通过在Iptables(防火墙)包括的Filter Chain(过滤链)中添加相应地过滤规则,从而确保该终端中只有该网络白名单包括的应用标识所对应的应用程序,才能够使用具有该网络能力的网络连接。For example, when the terminal is a terminal with an Android operating system installed, the terminal can add corresponding filtering rules to the Filter Chain (filter chain) included in the Iptables (firewall) to ensure that only the network whitelist in the terminal includes Only the application corresponding to the application ID can use the network connection with the network capability.
其中,当与该网络能力对应的网络白名单中只包括一个应用程序的应用标识时,具有该网络能力的网络连接的共享模式可以是私有模式,第一应用与第二应用为同一应用程序,即只有请求建立具有该网络能力的网络连接的应用程序才能使用具有该网络能力的网络连接。如果与该网络能力对应的网络白名单中只包括一个以上的应用程序的应用标识,当第二应用发起网络请求时,该终端确定的具有该网络能力的网络连接的共享模式可以包括三种情况:第一种情况,具有该网络能力的网络连接的共享模式为私有模式,该一个以上的应用程序均发送了该网络请求,从而请求建立具有该网络能力的网络连接;第二种情况,具有该网络能力的网络连接的共享模式为群组模式,该一个以上的应用程序可以为同一应用程序或同一群组中的应用程序,即同一应用群组中某个应用程序请求建立具有该网络能力的网络连接之后,该应用群组的其它应用程序均可以共享具有该网络能力的网络连接;第三种情况,具有该网络能力的网络连接的共享模式为全局模式,该一个以上的应用程序可以是该终端当前已安装的任意应用程序,即只要该终端中任一应用程序发送了该网络请求,该终端当前已安装的每个应用程序都可以使用具有该网络能力的网络连接。Wherein, when only the application identifier of one application is included in the network whitelist corresponding to the network capability, the sharing mode of the network connection with the network capability may be the private mode, and the first application and the second application are the same application, That is, only an application that requests to establish a network connection with the network capability can use the network connection with the network capability. If the network whitelist corresponding to the network capability includes only the application identifiers of more than one application, when the second application initiates a network request, the terminal determines that the sharing mode of the network connection with the network capability may include three cases : In the first case, the sharing mode of the network connection with the network capability is the private mode, and the one or more applications all send the network request, thereby requesting the establishment of a network connection with the network capability; in the second case, with The network connection sharing mode of the network capability is group mode, and the more than one application can be the same application or an application in the same group, that is, an application in the same application group requests to establish a network capability with the network capability After the network connection is established, other applications in the application group can share the network connection with the network capability; in the third case, the sharing mode of the network connection with the network capability is the global mode, and the more than one application can It is any application program currently installed on the terminal, that is, as long as any application program in the terminal sends the network request, each application program currently installed on the terminal can use the network connection with the network capability.
例如,该终端当前已安装的应用程序的应用标识为UID1、UID2、UID3、UID4、UID5、UID6、UID7、UID8、UID9、UID10、UID11和UID12。如果与网络能力MMS对应的网络白名单中包括UID1和UID4,可以是APP1和APP 4均发送了请求建立网络连接1的网络请求,且终端在通过网络连接管理服务接收到APP1和APP 4发送的该网络请求时,均确定网络连接1均的共享模式为私有模式。如果与网络能力MMS对应的网络白名单中包括UID1、UID2、UID3、UID4,可以是APP1和APP 4均发送了该网络请求,且终端在通过网络连接管理服务接收到APP1发送的该网络请求时,确定网络连接1的共享模式为群组模式,从而使APP1、APP 2和APP 3能够使用网络连接1,终端在通过网络连接管理服务接收到APP4发送的该网络请求时,确定网络连接1的共享模式为私有模式,即在APP4所在的群组中只有APP4能够使用网络连接1。如果与网络能力MMS对应的网络白名单中包括UID1、UID2、UID3、UID4、UID5和UID6,可以是APP1和APP 4均发送了该网络请求,该终端在通过网络连接管理服务接收到APP1和APP 4发送的该网络请求时,均确定网络连接1的共享模式为群组模式。如果与网络能力MMS对应的网络白名单中包括UID1、UID2、UID3、UID4、UID5、UID6、UID7、UID8、UID9、UID10、UID11和UID12,可以是APP1或APP 4发送了该网络请求,该终端在通过网络连接管理服务接收到APP1或APP4发送的该网络请求时,确定网络连接1的共享模式为全局模式。For example, the application identifiers of the applications currently installed on the terminal are UID1, UID2, UID3, UID4, UID5, UID6, UID7, UID8, UID9, UID10, UID11 and UID12. If the network whitelist corresponding to the network capability MMS includes UID1 and UID4, it may be that both APP1 and APP4 have sent a network request for establishing network connection 1, and the terminal is receiving the information sent by APP1 and APP4 through the network connection management service. When the network request is made, it is determined that the sharing mode of the network connection 1 is the private mode. If the network whitelist corresponding to the network capability MMS includes UID1, UID2, UID3, and UID4, it may be that both APP1 and APP4 have sent the network request, and the terminal receives the network request sent by APP1 through the network connection management service. , determine that the sharing mode of the network connection 1 is the group mode, so that APP1, APP 2 and APP 3 can use the network connection 1. When the terminal receives the network request sent by APP4 through the network connection management service, it determines the network connection 1. The sharing mode is private mode, that is, only APP4 can use the network connection 1 in the group where APP4 is located. If the network whitelist corresponding to the network capability MMS includes UID1, UID2, UID3, UID4, UID5 and UID6, it may be that both APP1 and APP4 have sent the network request, and the terminal receives APP1 and APP through the network connection management service. When the network request is sent by 4, it is determined that the sharing mode of the network connection 1 is the group mode. If the network whitelist corresponding to the network capability MMS includes UID1, UID2, UID3, UID4, UID5, UID6, UID7, UID8, UID9, UID10, UID11 and UID12, it may be that APP1 or APP4 sent the network request, and the terminal When the network request sent by APP1 or APP4 is received through the network connection management service, it is determined that the sharing mode of the network connection 1 is the global mode.
需要说明的是,当该终端无法确定与该网络能力对应的网络白名单,也即是,当前未创建有与该网络能力对应的网络白名单时,该终端也可以直接通过具有该网络能力的网络连接传输该网络数据,也即是,不对使用具有该网络能力的网络连接的应用程序进行过滤。It should be noted that when the terminal cannot determine the network whitelist corresponding to the network capability, that is, when the network whitelist corresponding to the network capability is not currently created, the terminal can also directly pass the network whitelist with the network capability. The network connection transmits the network data, that is, without filtering applications using the network connection with the network capabilities.
进一步地,为了节省成本或其它原因,该终端还可以对具有该网络能力的网络连接断开,比如,当检测到具有该网络能力的网络连接的空闲时长大于预设时长时,该终端可以断开具有该网络能力的网络连接。Further, in order to save costs or other reasons, the terminal may also disconnect the network connection with the network capability. For example, when it is detected that the idle duration of the network connection with the network capability is greater than the preset duration, the terminal may disconnect. Open a network connection with that network capability.
例如,当该终端为安装有安卓操作系统的终端时,该终端可以通过IBinder.DeathRecipient回调函数来断开具有该网络能力的网络连接。For example, when the terminal is a terminal installed with an Android operating system, the terminal may disconnect the network connection with the network capability through the IBinder.DeathRecipient callback function.
在本发明实施例中,首先,可以在通过数据接口检测到针对第一应用的网络数据时,根据该数据接口的接口标识确定传输该网络数据所需的网络连接的网络能力,之后,可以确定与该网络能力对应的网络白名单,并在该网络白名单中包括第一应用的应用标识时,通过具有该网络能力的网络连接传输该网络数据,也即是,能够通过与该网络能力对应的网络白名单,对使用具有网络能力的网络连接的应用程序进行过滤,减少了该终端中任一应用程序都可以通过具有该网络能力的网络连接传输网络数据的几率,与现有的无过滤的网络数据传输方法相比,能够减少多个应用程序同时使用同一网络能力的网络连接进行传输,提高了传输网络数据的效果,节省了该终端的流量成本。其次,该终端在接收对具有该网络能力的网络连接的请求时,可以确定具有该网络能力的网络连接的共享模式,并基于该共享模式确定至少一个应用标识,将该至少一个应用标识添加至与该网络能力对应的网络白名单中,由于当该共享模式不同时,与该网络能力对应的网络白名单可以包括不同的应用标识,从而确保在不同的共享模式下,该终端能够基于与该网络能力对应的网络白名单,对使用具有该网络能力的网络连接的应用程序进行过滤,进一步提高了传输网络数据的效果。另外,当该共享模式为私有模式时,该终端可以只允许发送该网络请求的应用程序使用具有该网络能力的网络连接,当该共享模式为群组模式时,该终端可以只允许与发送该网络请求的应用程序处于同一应用群组的应用程序使用具有该网络能力的网络连接,减少了该终端中任一应用程序都可以使用具有该网络能力的网络连接的几率,进一步降低了使用该终端的流量成本。In this embodiment of the present invention, first, when network data for the first application is detected through the data interface, the network capability of the network connection required for transmitting the network data may be determined according to the interface identifier of the data interface, and then the network capability of the network connection required for transmitting the network data may be determined. The network whitelist corresponding to the network capability, and when the network whitelist includes the application identifier of the first application, the network data is transmitted through the network connection with the network capability, that is, the network data can be transmitted through the network connection corresponding to the network capability. The network whitelist, which filters the applications using the network connection with network capability, reduces the probability that any application in the terminal can transmit network data through the network connection with the network capability. Compared with the traditional network data transmission method, it can reduce the simultaneous use of network connections of the same network capability for transmission of multiple applications, improve the effect of transmitting network data, and save the traffic cost of the terminal. Secondly, when receiving the request for the network connection with the network capability, the terminal may determine the sharing mode of the network connection with the network capability, and determine at least one application identifier based on the sharing mode, and add the at least one application identifier to the In the network whitelist corresponding to the network capability, when the sharing mode is different, the network whitelist corresponding to the network capability may include different application identifiers, thereby ensuring that under different sharing modes, the terminal can The network whitelist corresponding to the network capability filters the applications using the network connection with the network capability, which further improves the effect of transmitting network data. In addition, when the sharing mode is the private mode, the terminal may only allow the application that sends the network request to use the network connection with the network capability, and when the sharing mode is the group mode, the terminal may only allow and send the network request. The application that requests the network and is in the same application group uses the network connection with the network capability, reducing the probability that any application in the terminal can use the network connection with the network capability, further reducing the use of the terminal. traffic costs.
上面结合具体实施方式和附图对本发明的传输图像数据的方法进行了说明,下面将结合附图对与上述方法对应的装置进行说明。The method for transmitting image data of the present invention has been described above with reference to the specific embodiments and the accompanying drawings, and the apparatus corresponding to the above method will be described below with reference to the accompanying drawings.
图3是本发明实施例提供的一种传输网络数据的装置的框图,参见图3,该装置包括:第一确定模块301,第二确定模块302和传输模块303。FIG. 3 is a block diagram of an apparatus for transmitting network data according to an embodiment of the present invention. Referring to FIG. 3 , the apparatus includes: a
第一确定模块301,用于当通过网络连接管理服务包括的数据接口检测到针对第一应用的网络数据时,根据该数据接口的接口标识确定传输该网络数据所需的网络连接的网络能力,该网络能力用于说明网络连接传输网络数据的能力;The first determining
第二确定模块302,用于从本地存储中确定与该网络能力对应的网络白名单,其中,该网络白名单用于存储能够使用具有该网络能力的网络连接的应用程序的应用标识;A second determining
传输模块303,用于当该网络白名单中包括该第一应用的应用标识时,通过具有该网络能力的网络连接传输该网络数据。The
可选地,该装置还包括:Optionally, the device also includes:
第三确定模块,用于当通过该网络连接管理服务接收到网络请求且该网络请求中携带与该网络能力对应的网络能力信息时,确定具有该网络能力的网络连接的共享模式,基于该共享模式确定至少一个应用标识,该共享模式用于指示能够共享具有该网络能力的网络连接的应用程序,该网络能力信息用于说明请求建立的网络连接的网络能力;A third determining module, configured to determine the sharing mode of the network connection with the network capability when a network request is received through the network connection management service and the network request carries network capability information corresponding to the network capability, based on the sharing The mode determines at least one application identifier, the sharing mode is used to indicate an application program that can share a network connection with the network capability, and the network capability information is used to describe the network capability of the network connection requested to be established;
判断模块,用于基于该网络能力信息判断当前是否已建立具有该网络能力的网络连接;a judging module for judging whether a network connection with the network capability is currently established based on the network capability information;
建立模块,用于如果当前没有建立具有该网络能力的网络连接,则基于该网络能力信息建立具有该网络能力的网络连接,基于该至少一个应用标识生成与该网络能力对应的网络白名单;A establishing module, configured to establish a network connection with the network capability based on the network capability information if the network connection with the network capability is not currently established, and generate a network whitelist corresponding to the network capability based on the at least one application identifier;
添加模块,用于如果当前已建立具有该网络能力的网络连接,则将该至少一个应用标识添加至与该网络能力对应的网络白名单中。The adding module is configured to add the at least one application identifier to a network whitelist corresponding to the network capability if a network connection with the network capability is currently established.
可选地,该第三确定模块包括:Optionally, the third determining module includes:
第一确定子模块,用于当该共享模式为群组模式时,确定第二应用的应用标识,该第二应用为发送该网络请求的应用程序,该群组模式用于指示与该第二应用属于同一应用群组的应用程序均能够共享具有该网络能力的网络连接;The first determination sub-module is used to determine the application identifier of the second application when the sharing mode is the group mode, the second application is the application program that sends the network request, and the group mode is used to indicate the connection with the second application. All applications belonging to the same application group can share the network connection with the network capability;
第二确定子模块,用于从存储的网络能力信息与应用群组之间对应关系中,确定与该网络能力信息对应且包括该第二应用的应用标识的应用群组;a second determination submodule, configured to determine an application group corresponding to the network capability information and including the application identifier of the second application from the stored correspondence between the network capability information and the application group;
第三确定子模块,用于将该应用群组包括的应用标识确定为该至少一个应用标识。The third determination submodule is configured to determine the application identifier included in the application group as the at least one application identifier.
可选地,该第三确定模块还包括:Optionally, the third determining module further includes:
获取子模块,用于获取当前已安装的所有应用程序的应用标识;Get the submodule, which is used to get the application IDs of all currently installed applications;
第四确定子模块,用于基于该网络能力信息和获取到的应用标识确定至少一个应用群组,每个应用群组中包括至少一个能够发出该网络请求以请求建立具有该网络能力的网络连接的应用程序的应用标识;a fourth determination sub-module, configured to determine at least one application group based on the network capability information and the acquired application identifier, each application group includes at least one application group capable of sending the network request to request the establishment of a network connection with the network capability the application ID of the application;
存储子模块,用于将该网络能力信息与该至少一个应用群组存储在该网络能力信息与应用群组之间的对应关系中。The storage submodule is used for storing the network capability information and the at least one application group in the corresponding relationship between the network capability information and the application group.
可选地,该第三确定模块包括:Optionally, the third determining module includes:
第五确定子模块,用于当该共享模式为私有模式时,确定第二应用的应用标识,该私有模式用于指示该第二应用能够使用具有该网络能力的网络连接但其他应用程序不能共享具有该网络能力的网络连接,将该第二应用的应用标识确定为该至少一个应用标识;或者,The fifth determination submodule is used to determine the application identifier of the second application when the sharing mode is the private mode, and the private mode is used to indicate that the second application can use the network connection with the network capability but cannot be shared by other applications For a network connection with the network capability, the application identifier of the second application is determined as the at least one application identifier; or,
第六确定子模块,用于当该共享模式为全局模式时,将当前已安装的每个应用程序的应用标识均确定为该至少一个应用标识,该全局模式用于指示安装的所有应用程序均能够共享具有该网络能力的网络连接。The sixth determination submodule is used to determine the application identifier of each currently installed application as the at least one application identifier when the shared mode is the global mode, and the global mode is used to indicate that all the installed applications are A network connection with this network capability can be shared.
可选地,该第三确定模块包括:Optionally, the third determining module includes:
第七确定子模块,用于将预先设置的共享模式确定为具有该网络能力的网络连接的共享模式;或者,A seventh determination submodule, configured to determine the preset sharing mode as the sharing mode of the network connection with the network capability; or,
显示子模块,用于显示多个共享模式,当基于该多个共享模式接收到共享模式选择指令时,将该共享模式选择指令所选择的共享模式确定为具有该网络能力的网络连接的共享模式;或者,A display sub-module for displaying a plurality of sharing modes, and when receiving a sharing mode selection instruction based on the multiple sharing modes, determining the sharing mode selected by the sharing mode selection instruction as the sharing mode of the network connection with the network capability ;or,
第八确定子模块,用于当该网络请求中携带共享模式信息时,基于该共享模式信息确定具有该网络能力的网络连接的共享模式;或者,an eighth determining submodule, configured to determine the sharing mode of the network connection with the network capability based on the sharing mode information when the network request carries the sharing mode information; or,
第九确定子模块,用于基于发送该网络请求的第二应用,确定具有该网络能力的网络连接的共享模式。The ninth determination submodule is configured to determine the sharing mode of the network connection with the network capability based on the second application that sends the network request.
在本发明实施例中,首先,可以在通过数据接口检测到针对第一应用的网络数据时,根据该数据接口的接口标识确定传输该网络数据所需的网络连接的网络能力,之后,可以确定与该网络能力对应的网络白名单,并在该网络白名单中包括第一应用的应用标识时,通过具有该网络能力的网络连接传输该网络数据,也即是,能够通过与该网络能力对应的网络白名单,对使用具有网络能力的网络连接的应用程序进行过滤,减少了该终端中任一应用程序都可以通过具有该网络能力的网络连接传输网络数据的几率,与现有的无过滤的网络数据传输方法相比,能够减少多个应用程序同时使用同一网络能力的网络连接进行传输,改善了传输网络数据的效果,节省了该终端的流量成本。In this embodiment of the present invention, first, when network data for the first application is detected through the data interface, the network capability of the network connection required for transmitting the network data may be determined according to the interface identifier of the data interface, and then the network capability of the network connection required for transmitting the network data may be determined. The network whitelist corresponding to the network capability, and when the network whitelist includes the application identifier of the first application, the network data is transmitted through the network connection with the network capability, that is, the network data can be transmitted through the network connection corresponding to the network capability. The network whitelist, which filters the applications using the network connection with network capability, reduces the probability that any application in the terminal can transmit network data through the network connection with the network capability. Compared with the traditional network data transmission method, it can reduce the simultaneous transmission of multiple applications using the network connection of the same network capability, improve the effect of transmitting network data, and save the traffic cost of the terminal.
需要说明的是:上述实施例提供的传输网络数据的装置在传输网络数据时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的传输网络数据的装置与传输网络数据的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the device for transmitting network data provided by the above embodiments transmits network data, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions may be allocated to different functional modules as required. To complete, that is, to divide the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the apparatus for transmitting network data provided by the above embodiments and the method embodiments for transmitting network data belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.
图4是本发明实施例提供的一种传输网络数据的装置结构示意图。参见图4,装置400可以包括通信单元410、包括有一个或一个以上计算机可读存储介质的存储器420、输入单元430、显示单元440、传感器450、音频电路460、WIFI(Wireless Fidelity,无线保真)模块470、包括有一个或者一个以上处理核心的处理器480、以及电源490等部件。本领域技术人员可以理解,图4中示出的装置结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:FIG. 4 is a schematic structural diagram of an apparatus for transmitting network data according to an embodiment of the present invention. 4, the
通信单元410可用于收发信息或通话过程中,信号的接收和发送,该通信单元410可以为RF(Radio Frequency,射频)电路、路由器、调制解调器、等网络通信设备。特别地,当通信单元410为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器480处理;另外,将涉及上行的数据发送给基站。通常,作为通信单元的RF电路包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,通信单元410还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(GeneralPacket Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(LongTerm Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。存储器420可用于存储软件程序以及模块,处理器480通过运行存储在存储器420的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据装置400的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器420还可以包括存储器控制器,以提供处理器480和输入单元430对存储器420的访问。The
输入单元430可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。优选地,输入单元430可包括触敏表面431以及其他输入设备432。触敏表面431,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面431上或在触敏表面431附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器480,并能接收处理器480发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面431。除了触敏表面431,输入单元430还可以包括其他输入设备432。优选地,其他输入设备432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元440可用于显示由用户输入的信息或提供给用户的信息以及装置400的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元440可包括显示面板441,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板441。进一步的,触敏表面431可覆盖显示面板441,当触敏表面431检测到在其上或附近的触摸操作后,传送给处理器480以确定触摸事件的类型,随后处理器480根据触摸事件的类型在显示面板441上提供相应的视觉输出。虽然在图4中,触敏表面431与显示面板441是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面431与显示面板441集成而实现输入和输出功能。The
装置400还可包括至少一种传感器450,比如光传感器、运动传感器以及其他传感器。光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板441的亮度,接近传感器可在装置400移动到耳边时,关闭显示面板441和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于装置400还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路460、扬声器461,传声器462可提供用户与装置400之间的音频接口。音频电路460可将接收到的音频数据转换后的电信号,传输到扬声器461,由扬声器461转换为声音信号输出;另一方面,传声器462将收集的声音信号转换为电信号,由音频电路460接收后转换为音频数据,再将音频数据输出处理器480处理后,经通信单元410以发送给比如另一装置,或者将音频数据输出至存储器420以便进一步处理。音频电路460还可能包括耳塞插孔,以提供外设耳机与装置400的通信。
为了实现无线通信,该装置上可以配置有无线通信单元470,该无线通信单元470可以为WIFI模块。WIFI属于短距离无线传输技术,装置400通过无线通信单元470可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图中示出了无线通信单元470,但是可以理解的是,其并不属于装置400的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。In order to realize wireless communication, a
处理器480是装置400的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器420内的数据,执行装置400的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器480可包括一个或多个处理核心;优选的,处理器480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器480中。The
装置400还包括给各个部件供电的电源490(比如电池),优选的,电源可以通过电源管理系统与处理器480逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源460还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The
尽管未示出,装置400还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the
在本实施例中,装置还包括有一个或者一个以上的程序,这一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行,所述一个或者一个以上程序包含用于进行本发明实施例提供的如下所述的传输网络数据的指令,包括:In this embodiment, the device also includes one or more programs stored in memory and configured to be executed by one or more processors, the one or more programs including The following instructions for transmitting network data provided by the embodiments of the present invention include:
当通过网络连接管理服务包括的数据接口检测到针对第一应用的网络数据时,根据该数据接口的接口标识确定传输该网络数据所需的网络连接的网络能力,该网络能力用于说明网络连接传输网络数据的能力;When network data for the first application is detected through the data interface included in the network connection management service, the network capability of the network connection required for transmitting the network data is determined according to the interface identifier of the data interface, and the network capability is used to describe the network connection the ability to transmit network data;
从本地存储中确定与该网络能力对应的网络白名单,其中,该网络白名单用于存储能够使用具有该网络能力的网络连接的应用程序的应用标识;Determine a network whitelist corresponding to the network capability from the local storage, where the network whitelist is used to store application identifiers of applications that can use the network connection with the network capability;
当该网络白名单中包括该第一应用的应用标识时,通过具有该网络能力的网络连接传输该网络数据。When the network whitelist includes the application identifier of the first application, the network data is transmitted through a network connection with the network capability.
可选地,从本地存储中确定与该网络能力对应的网络白名单之前,还包括:Optionally, before determining the network whitelist corresponding to the network capability from the local storage, the method further includes:
当通过该网络连接管理服务接收到网络请求且该网络请求中携带与该网络能力对应的网络能力信息时,确定具有该网络能力的网络连接的共享模式,基于该共享模式确定至少一个应用标识,该共享模式用于指示能够共享具有该网络能力的网络连接的应用程序,该网络能力信息用于说明请求建立的网络连接的网络能力;When a network request is received through the network connection management service and the network request carries network capability information corresponding to the network capability, a sharing mode of the network connection with the network capability is determined, and at least one application identifier is determined based on the sharing mode, The sharing mode is used to indicate an application that can share a network connection with the network capability, and the network capability information is used to describe the network capability of the network connection requested to be established;
基于该网络能力信息判断当前是否已建立具有该网络能力的网络连接;Determine whether a network connection with the network capability is currently established based on the network capability information;
如果当前没有建立具有该网络能力的网络连接,则基于该网络能力信息建立具有该网络能力的网络连接,基于该至少一个应用标识生成与该网络能力对应的网络白名单;If a network connection with the network capability is not currently established, a network connection with the network capability is established based on the network capability information, and a network whitelist corresponding to the network capability is generated based on the at least one application identifier;
如果当前已建立具有该网络能力的网络连接,则将该至少一个应用标识添加至与该网络能力对应的网络白名单中。If a network connection with the network capability is currently established, the at least one application identifier is added to a network whitelist corresponding to the network capability.
可选地,基于该共享模式确定至少一个应用标识,包括:Optionally, determining at least one application identifier based on the sharing mode includes:
当该共享模式为群组模式时,确定第二应用的应用标识,该第二应用为发送该网络请求的应用程序,该群组模式用于指示与该第二应用属于同一应用群组的应用均能够共享具有该网络能力的网络连接;When the sharing mode is a group mode, an application identifier of a second application is determined, the second application is an application program that sends the network request, and the group mode is used to indicate an application belonging to the same application group as the second application be able to share a network connection with that network capability;
从存储的网络能力信息与应用群组之间对应关系中,确定与该网络能力信息对应且包括该第二应用的应用标识的应用群组;From the stored correspondence between the network capability information and the application group, determine an application group corresponding to the network capability information and including the application identifier of the second application;
将该应用群组包括的应用标识确定为该至少一个应用标识。An application identifier included in the application group is determined as the at least one application identifier.
可选地,从存储的网络能力信息与应用群组之间对应关系中,确定与该网络能力信息对应且包括该第二应用的应用标识的应用群组之前,还包括:Optionally, from the stored correspondence between the network capability information and the application group, before determining the application group corresponding to the network capability information and including the application identifier of the second application, the method further includes:
获取当前已安装的所有应用程序的应用标识;Get the application IDs of all currently installed applications;
基于该网络能力信息和获取到的应用标识确定至少一个应用群组,每个应用群组中包括至少一个能够发出该网络请求以请求建立具有该网络能力的网络连接的应用程序的应用标识;Determine at least one application group based on the network capability information and the acquired application identifier, and each application group includes at least one application identifier of an application that can send the network request to request the establishment of a network connection with the network capability;
将该网络能力信息与该至少一个应用群组存储在该网络能力信息与应用群组之间的对应关系中。The network capability information and the at least one application group are stored in a corresponding relationship between the network capability information and the application group.
可选地,基于该共享模式确定至少一个应用标识,包括:Optionally, determining at least one application identifier based on the sharing mode includes:
当该共享模式为私有模式时,确定第二应用的应用标识,该私有模式用于指示该第二应用能够使用具有该网络能力的网络连接但其他应用程序不能共享具有该网络能力的网络连接,将该第二应用的应用标识确定为该至少一个应用标识;或者,When the sharing mode is the private mode, the application identifier of the second application is determined, and the private mode is used to indicate that the second application can use the network connection with the network capability but other applications cannot share the network connection with the network capability, determining the application identifier of the second application as the at least one application identifier; or,
当该共享模式为全局模式时,将当前已安装的每个应用程序的应用标识均确定为该至少一个应用标识,该全局模式用于指示安装的所有应用程序均能够共享具有该网络能力的网络连接。When the sharing mode is the global mode, the application identifier of each currently installed application is determined as the at least one application identifier, and the global mode is used to indicate that all installed applications can share the network with the network capability connect.
可选地,确定具有该网络能力的网络连接的共享模式,包括:Optionally, determining the sharing mode of the network connection with the network capability includes:
将预先设置的共享模式确定为具有该网络能力的网络连接的共享模式;或者,Determine the preset sharing mode as the sharing mode of the network connection with the network capability; or,
显示多个共享模式,当基于该多个共享模式接收到共享模式选择指令时,将该共享模式选择指令所选择的共享模式确定为具有该网络能力的网络连接的共享模式;或者,Displaying multiple sharing modes, when receiving a sharing mode selection instruction based on the multiple sharing modes, determining the sharing mode selected by the sharing mode selection instruction as the sharing mode of the network connection with the network capability; or,
当该网络请求中携带共享模式信息时,基于该共享模式信息确定具有该网络能力的网络连接的共享模式;或者,When the sharing mode information is carried in the network request, the sharing mode of the network connection with the network capability is determined based on the sharing mode information; or,
基于发送该网络请求的第二应用,确定具有该网络能力的网络连接的共享模式。Based on the second application sending the network request, a sharing mode of the network connection with the network capability is determined.
在本发明实施例中,首先,可以在通过数据接口检测到针对第一应用的网络数据时,根据该数据接口的接口标识确定传输该网络数据所需的网络连接的网络能力,之后,可以确定与该网络能力对应的网络白名单,并在该网络白名单中包括第一应用的应用标识时,通过具有该网络能力的网络连接传输该网络数据,也即是,能够通过与该网络能力对应的网络白名单,对使用具有网络能力的网络连接的应用程序进行过滤,减少了该终端中任一应用程序都可以通过具有该网络能力的网络连接传输网络数据的几率,与现有的无过滤的网络数据传输方法相比,能够减少多个应用程序同时使用同一网络能力的网络连接进行传输,改善传输网络数据的效果,节省流量成本。In this embodiment of the present invention, first, when network data for the first application is detected through the data interface, the network capability of the network connection required for transmitting the network data may be determined according to the interface identifier of the data interface, and then the network capability of the network connection required for transmitting the network data may be determined. The network whitelist corresponding to the network capability, and when the network whitelist includes the application identifier of the first application, the network data is transmitted through the network connection with the network capability, that is, the network data can be transmitted through the network connection corresponding to the network capability. The network whitelist, which filters the applications using the network connection with network capability, reduces the probability that any application in the terminal can transmit network data through the network connection with the network capability. Compared with the traditional network data transmission method, it can reduce the simultaneous use of network connections of the same network capability for transmission by multiple applications, improve the effect of transmitting network data, and save traffic costs.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710034840.3A CN106817370B (en) | 2017-01-18 | 2017-01-18 | Method and device for transmitting network data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710034840.3A CN106817370B (en) | 2017-01-18 | 2017-01-18 | Method and device for transmitting network data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106817370A CN106817370A (en) | 2017-06-09 |
| CN106817370B true CN106817370B (en) | 2020-03-03 |
Family
ID=59113163
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710034840.3A Active CN106817370B (en) | 2017-01-18 | 2017-01-18 | Method and device for transmitting network data |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106817370B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107566398B (en) * | 2017-09-30 | 2019-02-05 | Oppo广东移动通信有限公司 | Flow control method and device, computer equipment and computer readable storage medium |
| CN112153633B (en) * | 2019-06-29 | 2021-12-03 | 华为技术有限公司 | Method and equipment for sending and receiving capability information |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1878083A (en) * | 2005-06-09 | 2006-12-13 | 华为技术有限公司 | Method and system for recording usage network capability and application therefor |
| CN103634470A (en) * | 2013-12-02 | 2014-03-12 | 无锡交大联云科技有限公司 | Human-computer interaction prediction method based on terminal mobile data access network Qos |
| CN105704066A (en) * | 2016-01-12 | 2016-06-22 | 北京奇虎科技有限公司 | Networking control method, device and system, security gateway and mobile terminal |
-
2017
- 2017-01-18 CN CN201710034840.3A patent/CN106817370B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1878083A (en) * | 2005-06-09 | 2006-12-13 | 华为技术有限公司 | Method and system for recording usage network capability and application therefor |
| CN103634470A (en) * | 2013-12-02 | 2014-03-12 | 无锡交大联云科技有限公司 | Human-computer interaction prediction method based on terminal mobile data access network Qos |
| CN105704066A (en) * | 2016-01-12 | 2016-06-22 | 北京奇虎科技有限公司 | Networking control method, device and system, security gateway and mobile terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106817370A (en) | 2017-06-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10635449B2 (en) | Method and apparatus for running game client | |
| CN106332307B (en) | Method for accessing application program to network and mobile terminal | |
| WO2015144054A1 (en) | Method, apparatus, and system for processing desktop data of mobile terminal | |
| CN107040610B (en) | Data synchronization method, device, storage medium, terminal and server | |
| CN107172671B (en) | A channel switching method, device, storage medium and terminal | |
| WO2019052554A1 (en) | Method for reducing ue capability signalling structural content, and storage medium and mobile phone | |
| CN106982097A (en) | Radio frequency interference elimination method, device, storage medium and terminal | |
| CN107391198B (en) | Task scheduling method and device, computer readable storage medium and mobile terminal | |
| WO2017096909A1 (en) | Data connection establishing method and apparatus | |
| CN104142868A (en) | Connection establishment method and device | |
| CN106341809B (en) | Data transmission method and equipment | |
| CN105389259B (en) | A kind of method, apparatus and system for carrying out Application testing | |
| WO2018040813A1 (en) | Audio/video communication method, terminal, server, and storage medium | |
| CN103491240B (en) | A kind of alarm clock ringing method, device and mobile terminal | |
| WO2015081880A1 (en) | Method, device and system for processing cluster service attribute | |
| CN107220344B (en) | Document processing methods and related products | |
| CN107463395B (en) | Component calling method and device | |
| CN113039517B (en) | Method, device and electronic equipment for invoking audio resources | |
| CN106817370B (en) | Method and device for transmitting network data | |
| CN104254020B (en) | The player method of media data, device and terminal | |
| CN106899959B (en) | Method, device, terminal and system for obtaining SIM card information | |
| CN105703808A (en) | Method and device for transmitting data | |
| WO2017076279A1 (en) | Method of updating forward information base item, and device and system utilizing same | |
| CN106454728B (en) | A network control method, device and terminal for terminal application | |
| CN106210325B (en) | A method, device and terminal for setting ringtones for social applications |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder |
Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |
|
| CP01 | Change in the name or title of a patent holder |