CN106295312A - A kind of mobile terminal limits the method that application program accesses network - Google Patents

A kind of mobile terminal limits the method that application program accesses network Download PDF

Info

Publication number
CN106295312A
CN106295312A CN201610689777.2A CN201610689777A CN106295312A CN 106295312 A CN106295312 A CN 106295312A CN 201610689777 A CN201610689777 A CN 201610689777A CN 106295312 A CN106295312 A CN 106295312A
Authority
CN
China
Prior art keywords
network
application program
data base
interactive interface
accesses
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.)
Pending
Application number
CN201610689777.2A
Other languages
Chinese (zh)
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.)
Top Technology (shenzhen) Co Ltd
Original Assignee
Top Technology (shenzhen) Co 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 Top Technology (shenzhen) Co Ltd filed Critical Top Technology (shenzhen) Co Ltd
Priority to CN201610689777.2A priority Critical patent/CN106295312A/en
Publication of CN106295312A publication Critical patent/CN106295312A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Abstract

The invention discloses a kind of mobile terminal and limit the method that application program accesses network, comprise the steps: that obtaining user opens the signal of the interactive interface accessing network settings;Obtain the mount message of all application programs of described mobile terminal, and in data base, the network of all application programs accesses configuration information, and described data base is carried out simultaneously operating;Obtain the application program white list list of user setup;The access network whether monitoring users is provided with at least one application program by described interactive interface limits, if the most more new database, then judge whether user closes interactive interface, if user is not provided with whether also monitoring users closes interactive interface, if closing, then calling system API performs corresponding setting, if being not turned off, then continues whether monitoring users is configured.The inventive method is simple, and execution efficiency is higher.

Description

A kind of mobile terminal limits the method that application program accesses network
Technical field
The present invention relates to mobile terminal about controlling whether app has permission the side by WIFI or GPRS access network Method.
Background technology
The mode limiting application access network in specific mobile terminal in prior art is the realization by being similar to droidwall Which app is scheme, select forbid accessing network by user, then automatically generate a tediously long shell script, in start Time perform this script, by linux kernel iptables is carried out network package filtration, access reaching to limit specific app The function of network (GPRS or WIFI), this kind of method suffers from the drawback that
First: developer needs iptables rule chain familiar, but General System upper strata developer is come Say, stranger to iptables and linux kernel, use the most smoothly.
Second: performing this script and typically require root authority, after Android KK version, root authority is carried out by Google The biggest restriction, so user is difficult to obtain root authority.So such scheme realizes difficulty after Android M version Bigger.
Summary of the invention
The present invention is to solve technical problem present in above-mentioned prior art, propose a kind of mobile terminal and limit application journey Sequence accesses the method for network, comprises the steps:
Step 1: obtain user and open the signal of the interactive interface accessing network settings;
Step 2: obtain the mount message of all application programs of described mobile terminal, and the net of all application programs in data base Network accesses configuration information;
Step 3: described data base is carried out simultaneously operating according to the mount message got;
Step 4: obtain the application program white list list of user setup;
Step 5: the access network whether monitoring users is provided with at least one application program by described interactive interface limits, if It is then to continue step 6, if it is not, then end operation;
Step 6: the network of application program corresponding in more new database accesses configuration information;
Step 7: judge that user is closed and whether close the interactive interface accessing network settings, if it is not, then return step 5;The most then Continue next step;
Step 8: contrast step 2 accesses the difference of configuration information with the network of all application programs in data base in step 6, according to The set of difference, the application program being provided with network restriction is configured by calling system API.
Registration start unloading broadcast, and priority is risen to the highest.
When listening to start broadcast, also include step 9: inquire about current database information, according to data base applies journey The network of sequence accesses configuration information, and the application program being provided with network restriction is configured by calling system API.
When having listened to application program and being unloaded, also include step 10: the application list in more new database, clearly The application program that reason has unloaded.
The present invention, by relevant system fire wall API(Application Programming Interface, answers With Program Interfaces) call, and coordinate relevant calling opportunity, sqlite data base and system installation apk data are entered Row synchronizes, UI operation with call API and separate, get rid of the technology such as the specific unnecessary built-in system application carrying out limiting, In the case of root authority need not being obtained, it is achieved that limit specific app and access the function of network, and solve and call this API The problem of the UI operation card that time-consuming problem causes and the execution efficiency of raising.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the present invention.
Detailed description of the invention
Principle and method to the present invention are described in detail below in conjunction with the accompanying drawings.
As it is shown in figure 1, the mobile terminal that one embodiment of the invention provides limits the method that application program accesses network, specifically As a example by mobile phone, illustrate that the present invention's realizes step in detail.
When user opens interactive interface (interaction page) of network settings, at this time can obtain user and open access net The signal of the interactive interface that network is arranged is it is known that user prepares to proceed by be provided with.Now, mobile terminal all application journey is obtained The mount message of sequence, and in data base, the network of all application programs accesses configuration information, and according to the installation letter got Breath carries out simultaneously operating to described data base.
Obtaining the application program white list list of user setup, these are typically all some system program bags, or use Some software program package that family is very conventional.Meanwhile, whether monitoring users is provided with application by interactive interface (interactive interface) The access of program limits, if user only opens interactive interface, what does not the most operate, then whether monitoring users is closed visit Ask the interactive interface of network settings.If the access network being provided with at least one application program limits, in the most more new database The network of corresponding application program accesses configuration information.In this stage, the most only update data base, do not go according to data base Content go immediately to perform to operate accordingly because calling system API is the most time-consuming process, this be system design determine , if the user while networking arrange interface have changed the most continuously some application networking rule the most directly remove to call this API, will Interface card can be caused to pause, and execution efficiency is low because user may the same button of adopting consecutive click chemical reaction many times, above this Method will do a lot of idle work, wastes system resource, so temporarily not performing corresponding operating.
Then, it is judged that user closes whether close the interactive interface accessing network settings, if being not turned off, then prison is continued The access network listening user whether to be provided with application program limits, and then goes to perform corresponding database update.If user setup Complete, close the interactive interface accessing network settings, now contrast the data in the data base obtained at the beginning and with After data in the most more new database contrast, find out the network of all application programs in two database datas and access and set The difference of confidence breath, according to the set of difference, the application program being provided with network restriction is configured by calling system API.
In addition to aforesaid operations step, when listening to start broadcast, current database information can be inquired about, according to data In storehouse, the network of application program accesses configuration information, and the application program being provided with network restriction is configured by calling system API. This will by registration start radio receiver realize, and promote this start radio receiver priority to the highest, start shooting After, utilize this start broadcast to go to re-execute calling of a networking rule API, because after calling system API, if system weight Opening, the rule of all limited networked will be by Restore All.
When having listened to application program and being unloaded, the application list in more new database, cleaning has unloaded Application program.The radio receiver of registration application unloading, and promote the priority of this radio receiver to the highest, utilize this wide Broadcast the junk information of Clean Up Database, keep data base clean.
In the present embodiment, the design of data base is the simplest, it is only necessary to less information, and data base comprises Field information be: unique ID, application program access network program bag name, if allow wifi networking (0 for allow, 1 For forbidding), if allow GPRS networking (0 for allowing, and 1 for forbidding).And when opening the method for the present invention, can be by setting Putting an application lock switch, if opening this switch, and being provided with application lock (digital phase-locking and pattern lock), user enters this The method of invention, it will carry out password authentification, just promotes method to perform after checking is correct.Such being designed to prevents non-machine Primary user changes networking rule and arranges, and strengthens safety.
The present invention there is also some following advantages:
The now mobile phone application of the overwhelming majority all can in the case of ignorant access network stealthily, consumed flow, may produce The indescribable campus network of green hand's machine, is possible to prevent the appearance of this situation by the present invention.
Child or elder person, playing mobile phone when, owing to less understanding mobile phone operation, may compare consumption The certain operations of flow, such as downloads application, or sees video, and we can pass through this patent, even if at data in mobile phone flow The situation that switch (this switch refers to that data switch inside mobile phone state hurdle, does not refer to the switch of the present invention) is opened Under, still it is possible to prevent the situation of above a large amount of consumption GPRS flow to occur.But in the case of WIFI, child and elder person These operations but can not be affected, strengthen cell phone entertainment.
It is permissible that what the present invention realized carries out wifi or GPRS networking control (forbid or allow) respectively to specific application Reducing the networking power consumption of mobile phone, improve mobile phone flying power, make mobile phone more power saving, Consumer's Experience is more preferable.It is mounted with at your mobile phone In the case of relatively more application, by this patent, you forbid that the most more you does not wants to allow it at background access flow After application, can significantly extend stand-by time.
The advantage that this patent another one is bigger has just been to discriminate between the networking in the case of WIFI and GPRS mobile phone flow 2 kinds Rule, strengthens Consumer's Experience, recreational.
The present invention and linux kernel iptables carry out the mode that network package rule is configured and compare, the present invention Method fairly simple, operability is higher, and maintainability is more preferable.
Embodiments above is only in order to illustrate the structure of the present invention, and those of ordinary skill in the art is in the present invention Design under can make various deformation and change, these deformation and within change is included in protection scope of the present invention.

Claims (4)

1. a mobile terminal limits the method that application program accesses network, it is characterised in that comprise the steps:
Step 1: obtain user and open the signal of the interactive interface accessing network settings;
Step 2: obtain the mount message of all application programs of described mobile terminal, and the net of all application programs in data base Network accesses configuration information;
Step 3: described data base is carried out simultaneously operating according to the mount message got;
Step 4: obtain the application program white list list of user setup;
Step 5: the access network whether monitoring users is provided with at least one application program by described interactive interface limits, if It is then to continue step 6, if it is not, then forward step 7 to;
Step 6: the network of application program corresponding in more new database accesses configuration information;
Step 7: judge that user is closed and whether close the interactive interface accessing network settings, if it is not, then return step 5;The most then Continue next step;
Step 8: contrast step 2 accesses the difference of configuration information with the network of all application programs in data base in step 6, according to The set of difference, the application program being provided with network restriction is configured by calling system API.
2. the method for claim 1, it is characterised in that when listening to start broadcast, also includes step 9: inquiry is worked as Front database information, accesses configuration information according to the network of application program in data base, and calling system API is to being provided with network limit The application program of system is configured.
3. the method for claim 1, it is characterised in that when having listened to application program and being unloaded, also includes step 10: the application list in more new database, the application program that cleaning has unloaded.
4. the method as described in claims 1 to 3, it is characterised in that the field information in described data base includes: uniquely identify ID, application program accesses the program bag name of network, if allow wifi networking, if allow GPRS networking.
CN201610689777.2A 2016-08-19 2016-08-19 A kind of mobile terminal limits the method that application program accesses network Pending CN106295312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610689777.2A CN106295312A (en) 2016-08-19 2016-08-19 A kind of mobile terminal limits the method that application program accesses network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610689777.2A CN106295312A (en) 2016-08-19 2016-08-19 A kind of mobile terminal limits the method that application program accesses network

Publications (1)

Publication Number Publication Date
CN106295312A true CN106295312A (en) 2017-01-04

Family

ID=57660623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610689777.2A Pending CN106295312A (en) 2016-08-19 2016-08-19 A kind of mobile terminal limits the method that application program accesses network

Country Status (1)

Country Link
CN (1) CN106295312A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193601A (en) * 2017-05-25 2017-09-22 深圳天珑无线科技有限公司 Data load method and device
CN111031038A (en) * 2019-12-12 2020-04-17 惠州Tcl移动通信有限公司 Network processing method and device, storage medium and terminal equipment
CN114938294A (en) * 2022-05-05 2022-08-23 岚图汽车科技有限公司 Control method and control device for network access of vehicle-mounted system
WO2023056747A1 (en) * 2021-10-09 2023-04-13 深圳市广和通无线股份有限公司 Method and apparatus for controlling application program traffic, and device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779068A (en) * 2012-07-10 2012-11-14 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and application program networking control method
CN104092698A (en) * 2014-07-21 2014-10-08 北京网秦天下科技有限公司 Network resource access control method and device
CN104202323A (en) * 2014-09-05 2014-12-10 绿网天下(福建)网络科技股份有限公司 Method for controlling application software based on mobile terminal
CN104462978A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for application program authority management
CN104484259A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Application program traffic monitoring method and device, and mobile terminal
CN105704066A (en) * 2016-01-12 2016-06-22 北京奇虎科技有限公司 Networking control method, device and system, security gateway and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779068A (en) * 2012-07-10 2012-11-14 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and application program networking control method
CN104092698A (en) * 2014-07-21 2014-10-08 北京网秦天下科技有限公司 Network resource access control method and device
CN104202323A (en) * 2014-09-05 2014-12-10 绿网天下(福建)网络科技股份有限公司 Method for controlling application software based on mobile terminal
CN104484259A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Application program traffic monitoring method and device, and mobile terminal
CN104462978A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for application program authority management
CN105704066A (en) * 2016-01-12 2016-06-22 北京奇虎科技有限公司 Networking control method, device and system, security gateway and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
百度经验: "在手机上怎样禁止应用程序联网", 《百度经验》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193601A (en) * 2017-05-25 2017-09-22 深圳天珑无线科技有限公司 Data load method and device
CN111031038A (en) * 2019-12-12 2020-04-17 惠州Tcl移动通信有限公司 Network processing method and device, storage medium and terminal equipment
WO2023056747A1 (en) * 2021-10-09 2023-04-13 深圳市广和通无线股份有限公司 Method and apparatus for controlling application program traffic, and device and storage medium
CN114938294A (en) * 2022-05-05 2022-08-23 岚图汽车科技有限公司 Control method and control device for network access of vehicle-mounted system

Similar Documents

Publication Publication Date Title
CN110336720B (en) Equipment control method and equipment
CN105282731B (en) Processing configures the method for profile and the electronic device for supporting this method
US20170076080A1 (en) Method and system for processing input fingerprint information, and mobile terminal thereof
CN106295312A (en) A kind of mobile terminal limits the method that application program accesses network
CN105847067A (en) Method and device for upgrading Zigbee equipment
CN105553963B (en) The control method and device of positioning service
CN108768803A (en) Add the method, apparatus and storage medium of smart machine
CN106792640A (en) The communication means of virtual SIM card, mobile terminal and server
CN104102451B (en) A kind of information processing method and electronic equipment
CN104199691B (en) A kind of method and terminal of the start self-starting APK based on Android platform
KR102394625B1 (en) Method and Apparatus for Searching Networks
CN105843710A (en) Data backup and recovery device and method
CN105657805B (en) A kind of method and device of smart machine access wireless network
CN110958397A (en) Method and device for controlling intelligent camera
CN105246068B (en) SIM card selection method and device
CN104640174A (en) Method and device for promoting wireless network access points
CN104182704A (en) Safety strategy setting method, safety strategy setting device and terminal
CN110868693A (en) Application program flow control method, terminal device and storage medium
CN109195197A (en) Dual-card dual-standby terminal network selecting method, device, terminal device and storage medium
CN110876077A (en) Control method of smart television, mobile terminal and computer readable storage medium
WO2017000345A1 (en) Mobile communication method and terminal
CN106203143A (en) Method, device and the mobile terminal of a kind of application program locking
WO2016112602A1 (en) Shortcut operation method, shortcut operation device and terminal
KR102205935B1 (en) Method and terminal for adjusting screen-on duration of terminal
CN106874096A (en) Application management method and mobile terminal based on dual system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication