CN104955123B - A kind of the networking method for limiting and device of mobile terminal application - Google Patents

A kind of the networking method for limiting and device of mobile terminal application Download PDF

Info

Publication number
CN104955123B
CN104955123B CN201510270650.2A CN201510270650A CN104955123B CN 104955123 B CN104955123 B CN 104955123B CN 201510270650 A CN201510270650 A CN 201510270650A CN 104955123 B CN104955123 B CN 104955123B
Authority
CN
China
Prior art keywords
application
list
limited networked
mobile terminal
port
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
Application number
CN201510270650.2A
Other languages
Chinese (zh)
Other versions
CN104955123A (en
Inventor
陈启安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510270650.2A priority Critical patent/CN104955123B/en
Publication of CN104955123A publication Critical patent/CN104955123A/en
Application granted granted Critical
Publication of CN104955123B publication Critical patent/CN104955123B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions

Abstract

The present invention is suitable for technical field of mobile terminals, provides a kind of the networking method for limiting and device of mobile terminal application, including:When having in the mobile terminal using networking, the port in the networking channel of the application is obtained;No. PID of the application is obtained, by described No. PID and the port association;The list of application of the limited networked of access preset finds the described No. PID associated port with the application in the list;The window size value of the port found is set as 0, so that the server of the application in the list is cancelled after detecting the window size value for applying corresponding port and being 0 to the mobile terminal PUSH message.The present invention is by changing the window size value of the corresponding networking access port of application, so as to cancel the network behavior to mobile terminal PUSH message, has achieved the purpose that, to applying limited networked, to have saved the Web vector graphic cost of user, ensured network security.

Description

A kind of the networking method for limiting and device of mobile terminal application
Technical field
The invention belongs to networking method for limiting and dress that technical field of mobile terminals more particularly to a kind of mobile terminal are applied It sets.
Background technology
For the Mobile operating system increased income, any developer can development and application on this system, lead to one It is unwitting in the networking download of application backstage in user during a little malice developers can apply the implantation of backstage network savvy Data to cause prodigious Network Security Vulnerabilities, and bring huge Web vector graphic cost for user.
Currently, technical way used by mobile terminal limitation application networking is:Limiting mobile terminal sends networking Solicited message, or networking solicited message is abandoned, however, once application is networked before taking limited networked means, So a networking channel, even if locally taking limited networked means in mobile terminal, application will be created in mobile terminal Server can also generate data volume automatically by the networking channel PUSH message that this is created.
Invention content
The embodiment of the present invention is designed to provide a kind of the networking method for limiting and device of mobile terminal application, it is intended to solve Certainly current application networking method for limiting can still result in application server to mobile terminal PUSH message, generate web database technology Problem.
The embodiment of the present invention is achieved in that a kind of networking method for limiting of mobile terminal application, including:
When having in the mobile terminal using networking, the port in the networking channel of the application is obtained;
No. PID of the application is obtained, by described No. PID and the port association;
The list of application of the limited networked of access preset finds described No. PID with the application in the list The associated port;
The window size value of the port found is set as 0, so that the server of the application in the list exists Detect this using corresponding port window size value be 0 after, cancel to the mobile terminal PUSH message.
The another object of the embodiment of the present invention is to provide a kind of networking limits device of mobile terminal application, including:
Acquiring unit, the end in the networking channel for when having in the mobile terminal using networking, obtaining the application Mouthful;
Associative cell has in No. PID of the acquisition application, by described No. PID and the port association;
Searching unit, the list of application of the limited networked for access preset are found and answering in the list No. PID associated port;
Setting unit, for the window size value of the port found to be set as 0, so that answering in the list Server is cancelled and being pushed to the mobile terminal after detecting the window size value for applying corresponding port and being 0 Message.
The embodiment of the present invention is by changing the window size value using corresponding networking access port, so that server detects It is 0 to the window size value, to cancel the network behavior to mobile terminal PUSH message, has reached to application limited networked Purpose has saved the Web vector graphic cost of user, has ensured network security.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the networking method for limiting of mobile terminal application provided in an embodiment of the present invention;
Fig. 2 is the implementation flow chart of the networking method for limiting for the mobile terminal application that another embodiment of the present invention provides;
Fig. 3 is the structure diagram of the networking limits device of mobile terminal application provided in an embodiment of the present invention.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc Body details understands the embodiment of the present invention to cut thoroughly.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Fig. 1 shows the implementation process of the networking method for limiting of mobile terminal application provided in an embodiment of the present invention, is described in detail It is as follows:
In S101, when having in the mobile terminal using networking, the port in the networking channel of the application is obtained.
Wherein, the mobile terminal, including but not limited to smart mobile phone, tablet, palm PC, camera, vehicle-mounted computer, Etc..
Can be that the application creates a networking channel in mobile terminal when networking request is initiated in the application of mobile terminal (channel socket (Socket)), so that using two-way communication link is played by the networking Path Setup between remote server It connects, realizes the exchange of data, meanwhile, transmission control protocol (Transmission Control Protocol, TCP) can also be One corresponding TCP port of the networking channel allocation.Therefore, in the present embodiment, supervised by being created in mobile terminal system Thread is listened, the network behavior of application is monitored, when listening to using networking request is initiated, it is the application to get TCP The port numbers of the port are known in the port of distribution.
In S102, No. PID of the application is obtained, by described No. PID and the port association.
When mobile terminal-opening os starting, or when the application mounted on mobile terminal starts operation, it is System can be each application distribute one it is No. PID unique, this No. PID corresponding to apply unique association, in S102, obtains To No. PID of the application for initiating networking request, and it is associated with the port that the application is assigned to by this No. PID.
In S103, the list of application of the limited networked of access preset is found and the application in the list No. PID associated port.
In the present embodiment, the list of application of preset limited networked is created and safeguards in the terminal in advance, uses It is arranged to the relevant information of the application of limited networked in record.Before S101, establishment process such as Fig. 2 institutes of the list of application Show:
In S105, the list of application of the preset limited networked is initialized.
First, an empty table, the relevant information for recording the application for needing limited networked are initialized in the terminal.
In S106, limited networked instruction input by user is received, determines the pointed application of the limited networked instruction.
User can be by the actions menu in application, or by the system setup menu of mobile terminal, to needing to limit The application of system networking sends out limited networked instruction, when detecting limited networked instruction input by user, determines that the limitation joins The pointed application of net instruction.
In S107, the pointed application of limited networked instruction is added to the application of the preset limited networked List.
The application that S106 is determined is added to one by one in the list of application being pre-created, and is stored in non-volatile deposit In reservoir, to complete the establishment and preservation of the list of application.
The list of application of preset limited networked is saved and safeguards in the terminal always, at this point, should by accessing List of application, the relevant information that can obtain the application for carrying out networking limitation are looked into for example, by the application name of the application No. PID that there is unique association relationship with the application is found, and further finds the port with No. PID associated port Number.
As an embodiment of the present invention, the S103 can be specially:
The list of application of the primary preset limited networked is accessed every prefixed time interval, is found and positioned at described The described No. PID associated port of the application in list.
Since user can take limited networked means to certain applications at any time in the operational process of mobile terminal, and it is right Limited networked means are cancelled in certain applications, therefore, the content of the list of application of the preset limited networked be continually changing, When user takes limited networked means to certain application, the relevant information for adding the application to the list of application is needed, user is worked as When cancelling limited networked means to certain application, the relevant information that the application is deleted from the list of application is needed, therefore, it is necessary to every The primary list of application is just accessed every prefixed time interval, avoids taking not in time the limited networked means of application, to Affect network security.
Preferably, can be in S107:
Pointed by limited networked instruction answering for the preset limited networked will be added to using corresponding No. PID Use list.
That is, when the application of limited networked will be needed to be added in preset list of application, directly find and the application It associated No. PID, is also added in the list of application, in this way, when S103 accesses list of application, can be directly obtained together Need the application of limited networked No. PID corresponding, to improve the efficiency of limited networked operation.
Meanwhile further, due to being all different using No. PID be assigned on startup every time, work as use By the pointed list of application for being added to the preset limited networked using corresponding No. PID of limited networked instruction When scheme, the method further includes:
In the mobile terminal-opening or when having using starting, refresh the list of application of the preset limited networked In No. PID.
That is, when having every time using starting, which is assigned new No. PID, then needs to refresh preset limitation connection No. PID in the list of application of net, to preserve the accuracy of information in the list of application, avoid the generation of invalid operation.
In S104, the window size value of the port found is set as 0, so that the application in the list Server is cancelled after detecting the window size value for applying corresponding port and being 0 to the mobile terminal PUSH message.
For the port found in S103, the sizes values of the window are set as 0, since server is every time to movement Before terminal PUSH message, the window size of TCP port all can be first detected, therefore, when the sizes values for detecting window are 0, Server just again can be to the TCP port PUSH message, to achieve the purpose that limited networked, and having saved the network of user makes With cost, network security has been ensured.
The embodiment of the present invention is by changing the window size value using corresponding networking access port, so that server detects It is 0 to the window size value, to cancel the network behavior to mobile terminal PUSH message, has reached to application limited networked Purpose has saved the Web vector graphic cost of user, has ensured network security.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to the networking method for limiting of the mobile terminal application described in foregoing embodiments, Fig. 3 shows implementation of the present invention The networking limits device of the structure diagram of the networking limits device for the mobile terminal application that example provides, the mobile terminal application can To be the list of the software unit being built in the application system of mobile terminal or mobile terminal, hardware cell either soft or hard combination Member.For convenience of description, only the parts related to this embodiment are shown.
With reference to Fig. 3, which includes:
Acquiring unit 31 obtains the port in the networking channel of the application when having in the mobile terminal using networking;
Associative cell 32 obtains No. PID of the application, by described No. PID and the port association;
Searching unit 33, the list of application of the limited networked of access preset are found and the application in the list The described No. PID associated port;
The window size value of the port found is set as 0 by setting unit 34, so that the application in the list Server detect this using corresponding port window size value be 0 after, cancel to the mobile terminal push disappears Breath.
Optionally, described device further includes:
Initialization unit initializes the list of application of the preset limited networked;
Determination unit receives limited networked instruction input by user, determines the pointed application of the limited networked instruction;
The pointed application of limited networked instruction is added to the application of the preset limited networked by adding device List.
Optionally, the adding device is specifically used for:
Pointed by limited networked instruction answering for the preset limited networked will be added to using corresponding No. PID Use list.
Optionally, described device further includes:
Refresh unit in the mobile terminal-opening or when having using starting, refreshes the preset limited networked List of application in No. PID.
Optionally, the searching unit is specifically used for:
The list of application of the primary preset limited networked is accessed every prefixed time interval.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device and method can pass through others Mode is realized.For example, system embodiment described above is only schematical, for example, the division of the module or unit, Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the embodiment of the present invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with software product in other words Form embody, which is stored in a storage medium, including some instructions use so that one Computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute this hair The all or part of step of bright each embodiment the method for embodiment.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, Read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic The various media that can store program code such as dish or CD.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or it replaces, the spirit and model of each embodiment technical solution of the embodiment of the present invention that it does not separate the essence of the corresponding technical solution It encloses.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.

Claims (8)

1. a kind of networking method for limiting of mobile terminal application, which is characterized in that including:
When having in the mobile terminal using networking, the port in the networking channel of the application is obtained;
No. PID of the application is obtained, by described No. PID and the port association;
The list of application of the limited networked of access preset finds and is located in the list of application of the preset limited networked The described No. PID associated port of application;Wherein, the content of the list of application of the preset limited networked is constantly to become Change, the list of application of the primary preset limited networked is accessed every prefixed time interval;
The window size value of the port found is set as 0, so that the server of the application in the list is detecting To this using corresponding port window size value be 0 after, cancel to the mobile terminal PUSH message.
2. the method as described in claim 1, which is characterized in that described when having in the mobile terminal using networking, obtain Before taking the port in networking channel of the application, the method further includes:
Initialize the list of application of the preset limited networked;
Limited networked instruction input by user is received, determines the pointed application of the limited networked instruction;
The pointed application of limited networked instruction is added to the list of application of the preset limited networked.
3. method as claimed in claim 2, which is characterized in that the application that limited networked instruction is pointed is added Include to the list of application of the preset limited networked:
The pointed application that the preset limited networked is added to using corresponding No. PID of limited networked instruction is arranged Table.
4. method as claimed in claim 3, which is characterized in that the method further includes:
In the mobile terminal-opening or when having using starting, refresh in the list of application of the preset limited networked No. PID.
5. a kind of networking limits device of mobile terminal application, which is characterized in that including:
Acquiring unit, the port in the networking channel for when having in the mobile terminal using networking, obtaining the application;
Associative cell has in No. PID of the acquisition application, by described No. PID and the port association;
Searching unit, the list of application of the limited networked for access preset find and are located at the preset limited networked List of application in application the described No. PID associated port;Wherein, the list of application of the preset limited networked Content be continually changing, the searching unit accesses answering for the primary preset limited networked every prefixed time interval Use list;
Setting unit, for the window size value of the port found to be set as 0, so that the application in the list Server is cancelled after detecting the window size value for applying corresponding port and being 0 to the mobile terminal PUSH message.
6. device as claimed in claim 5, which is characterized in that described device further includes:
Initialization unit, the list of application for initializing the preset limited networked;
Determination unit determines the pointed application of the limited networked instruction for receiving limited networked instruction input by user;
Adding device, the application for the pointed application of limited networked instruction to be added to the preset limited networked List.
7. device as claimed in claim 6, which is characterized in that the adding device is specifically used for:
The pointed application that the preset limited networked is added to using corresponding No. PID of limited networked instruction is arranged Table.
8. device as claimed in claim 7, which is characterized in that described device further includes:
Refresh unit, in the mobile terminal-opening or when having using starting, refreshing the preset limited networked List of application in No. PID.
CN201510270650.2A 2015-05-25 2015-05-25 A kind of the networking method for limiting and device of mobile terminal application Active CN104955123B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510270650.2A CN104955123B (en) 2015-05-25 2015-05-25 A kind of the networking method for limiting and device of mobile terminal application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510270650.2A CN104955123B (en) 2015-05-25 2015-05-25 A kind of the networking method for limiting and device of mobile terminal application

Publications (2)

Publication Number Publication Date
CN104955123A CN104955123A (en) 2015-09-30
CN104955123B true CN104955123B (en) 2018-09-14

Family

ID=54169382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510270650.2A Active CN104955123B (en) 2015-05-25 2015-05-25 A kind of the networking method for limiting and device of mobile terminal application

Country Status (1)

Country Link
CN (1) CN104955123B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107688740A (en) * 2017-08-14 2018-02-13 北京小米移动软件有限公司 Networking control method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101069144A (en) * 2004-10-26 2007-11-07 联想(新加坡)私人有限公司 Computer and method for on-demand network access control
CN102355462A (en) * 2011-10-09 2012-02-15 大唐移动通信设备有限公司 Method and device for realizing TCP (Transmission Control Protocol) transmission
CN102355667A (en) * 2011-06-30 2012-02-15 北京邮电大学 Method and system for controlling network connection of application programs in mobile intelligent terminal system
CN102546531A (en) * 2010-12-14 2012-07-04 联芯科技有限公司 Data traffic control method and user terminal
CN103283202A (en) * 2010-07-28 2013-09-04 麦克菲公司 System and method for network level protection against malicious software
CN104038558A (en) * 2014-06-26 2014-09-10 福建伊时代信息科技股份有限公司 Method and system for controlling application networking

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101069144A (en) * 2004-10-26 2007-11-07 联想(新加坡)私人有限公司 Computer and method for on-demand network access control
CN103283202A (en) * 2010-07-28 2013-09-04 麦克菲公司 System and method for network level protection against malicious software
CN102546531A (en) * 2010-12-14 2012-07-04 联芯科技有限公司 Data traffic control method and user terminal
CN102355667A (en) * 2011-06-30 2012-02-15 北京邮电大学 Method and system for controlling network connection of application programs in mobile intelligent terminal system
CN102355462A (en) * 2011-10-09 2012-02-15 大唐移动通信设备有限公司 Method and device for realizing TCP (Transmission Control Protocol) transmission
CN104038558A (en) * 2014-06-26 2014-09-10 福建伊时代信息科技股份有限公司 Method and system for controlling application networking

Also Published As

Publication number Publication date
CN104955123A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN110249307A (en) System and method for executing primary contract on block chain
CN104754062B (en) Information popularization method, server and user terminal based on internet
CN103412822B (en) Operation Nonvolatile memory and the method and relevant apparatus of data manipulation
CN104573093B (en) A kind of method and apparatus for managing file directory
CN104813327A (en) Apparatus and method for mobile communications and computing
CN109614147B (en) PHY register read-write method and device
CN103150154B (en) The implementation method and device of a kind of application plug
CN110301131B (en) Context-aware device permissions for hierarchical device collections
EP3313041A1 (en) Application download method and device
CN111767144A (en) Transaction routing determination method, device, equipment and system for transaction data
CN108829529A (en) Virutal machine memory sharing method, device, computer equipment and storage medium
CN104955123B (en) A kind of the networking method for limiting and device of mobile terminal application
CN104808953B (en) Control the method, device and mobile terminal of data storage
CN109445973A (en) Position the method and device of application crash
CN103677979A (en) Interactive method and device for application software and plugin
CN109298852A (en) Simplify the method and readable storage medium storing program for executing of virtual reality applications program development
CN103942149A (en) User mode application and kernel message interaction method and system
CN108900482A (en) Execution method, server management system and the storage medium of script
CN111858020B (en) User resource limiting method and device and computer storage medium
CN110222019B (en) Method and device for adjusting space occupied by file system
CN111580888A (en) Method, device and equipment for batch creation of server RAID (redundant array of independent disks) and storage medium
CN105144073A (en) Removable storage device identity and configuration information
US10635467B1 (en) Deployable console-based virtual application deployment and configuration systems and methods
CN106210025B (en) Application program download determines method and device
CN108958838A (en) A kind of method and device of improved replacement attribute information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: Guangdong Opel Mobile Communications Co., Ltd.