CN107343279A - Method for connecting network, device, terminal device and storage medium - Google Patents
Method for connecting network, device, terminal device and storage medium Download PDFInfo
- Publication number
- CN107343279A CN107343279A CN201710550456.9A CN201710550456A CN107343279A CN 107343279 A CN107343279 A CN 107343279A CN 201710550456 A CN201710550456 A CN 201710550456A CN 107343279 A CN107343279 A CN 107343279A
- Authority
- CN
- China
- Prior art keywords
- wifi
- network
- terminal device
- networks
- network connections
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of method for connecting network, device, terminal device and storage medium, this method includes:When detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are default network, if the Wifi networks being currently accessed are not the default networks, then the function privilege of application program in terminal device is limited, the Wifi network connections instruction is responded and carries out Wifi network connections.This programme improves security during terminal equipment access network, avoids leakage of information.
Description
Technical field
The present embodiments relate to computer technology, more particularly to a kind of method for connecting network, device, terminal device and deposit
Storage media.
Background technology
Wifi is a kind of technology for allowing terminal device to be connected to WLAN (WLAN), usually using 2.4G UHF or
5G SHF ISM radio frequency bands.The WLAN that terminal device is connected to can also be out by cryptoguard
Put, under some public arenas in order to terminal device can fast, easily connect wireless network, businessman or supplier can carry
For public free Wifi so that terminal device accesses.
In the prior art, terminal device by public Wifi access wireless network surfed the Net when existing defects, it is necessary to
Improve.
The content of the invention
The invention provides a kind of method for connecting network, device, terminal device and storage medium, improves terminal device and connects
Enter security during network, avoid leakage of information.
In a first aspect, the embodiments of the invention provide a kind of method for connecting network, including:
When detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are default network;
If the Wifi networks being currently accessed are not the default networks, to the work(of application program in terminal device
Energy authority is limited;
Respond the Wifi network connections instruction and carry out Wifi network connections.
Second aspect, the embodiment of the present invention additionally provide a kind of network connection device, including:
Detection module, during for detecting Wifi network connections instruction, whether judge the current Wifi networks for preparing access
To preset network;
Authority modified module, if not being the default network for the Wifi networks being currently accessed, to terminal
The function privilege of application program is limited in equipment;
Link block, Wifi network connections are carried out for responding the Wifi network connections instruction.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal device, including:Processor, memory and storage
On a memory and the computer program that can run on a processor, realized described in the computing device during computer program with
Lower step:
When detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are default network;
If the Wifi networks being currently accessed are not the default networks, to the work(of application program in terminal device
Energy authority is limited;
Respond the Wifi network connections instruction and carry out Wifi network connections.
Fourth aspect, the embodiment of the present invention additionally provide a kind of storage medium for including terminal device executable instruction, institute
Terminal device executable instruction is stated to be used to perform a kind of method for connecting network, this method when being performed by terminal device control unit
Including:
When detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are default network;
If the Wifi networks being currently accessed are not the default networks, to the work(of application program in terminal device
Energy authority is limited;
Respond the Wifi network connections instruction and carry out Wifi network connections.
In technical scheme provided in an embodiment of the present invention, when terminal device is carrying out the process of network connection by Wifi
In, Wifi network conditions are detected, when judge using do not meet testing conditions i.e. unsafe Wifi networks progress
During network connection, the function privilege of application program is limited to avoid leakage of information, improves internet security.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached
Figure:
Fig. 1 is a kind of application scenarios schematic diagram of network connection device provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of method for connecting network provided in an embodiment of the present invention;
The schematic diagram of preset table in a kind of Fig. 3 method for connecting network provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another method for connecting network provided in an embodiment of the present invention;
Fig. 5 is the flow chart of another method for connecting network provided in an embodiment of the present invention;
Fig. 6 is the structural representation of network connection device provided in an embodiment of the present invention;
Fig. 7 is the structural representation of terminal device provided in an embodiment of the present invention.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, and principle of the invention is to implement one
Illustrated in appropriate computing environment.The following description is based on the illustrated specific embodiment of the invention, and it should not be by
It is considered as the limitation present invention other specific embodiments not detailed herein.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments
In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
The embodiment of the present invention provides a kind of method for connecting network, and the executive agent of the method for connecting network can be the present invention
A kind of network connection device that embodiment provides, or the terminal device of the network connection device is integrated with, wherein the net
Network attachment means can be realized by the way of hardware or software, the terminal device can be smart mobile phone, car-mounted terminal,
The equipment such as tablet personal computer, desktop computer, notebook, palm PC.
Referring to Fig. 1, Fig. 1 is a kind of application scenarios schematic diagram of network connection device provided in an embodiment of the present invention, should
Network connection device has been integrated in terminal device (such as:Smart mobile phone) in, the terminal device can pass through network connection (link 1:
Wifi networks, link 2:Mobile network) and server progress data interaction, when it detects Wifi network connections instruction, judge
Whether the current Wifi networks for preparing access are default network, if the Wifi networks being currently accessed are not the default nets
Network, then the function privilege of application program in terminal device is limited, respond the Wifi network connections instruction and carry out Wifi
Network connection.
Fig. 2 is a kind of schematic flow sheet of method for connecting network provided in an embodiment of the present invention, the method for connecting network
Including:
When step S101, detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are pre-
If network, if the Wifi networks being currently accessed are not default networks, step S102 is performed, if it is, directly holding
Row step S103.
In one embodiment, when user needs to use terminal equipment access network, terminal device receives user's point
After hitting the operation of WLAN icons, attachable Wifi networks are shown.Now, user can be by clicking on connecting for display
Wifi lists in any one to carry out network connection, specifically connection opening process in, the Wifi nets added with password
Network need user input accordingly after correct password can network connection success, in the case of without password authentification, Yong Huke
The Wifi networks for wanting to connect are clicked directly on directly to be successfully connected with network.The method of supplying of usual Wifi networks can be:Family
The router installed in front yard provides, and public place businessman provides, and computing device focus provides etc..
In one embodiment, when detecting Wifi network connections instruction, judge that the current Wifi networks for preparing access are
No is default network.Wifi network connections instruction can be that the connection of a certain item triggering in user's click Wifi lists refers to
Order.The default network includes:Wifi network names are stored in the network in preset table.As shown in figure 3, Fig. 3 present invention is implemented
The schematic diagram of preset table in a kind of method for connecting network that example provides, the network of safe Wifi networks is have recorded in the preset table
Title.The title of safe Wifi networks in the preset table can be added manually by user, or be obtained from network side.It is exemplary
, can also be in preset table the equipment of the offer Wifi networks of record mark or other can determine the marks of Wifi networks,
The present embodiment is not construed as limiting, i.e., when detecting Wifi network connections instruction, the title for the Wifi networks for judging to be currently accessed is
It is no to be recorded in preset table.
In another embodiment, the default network includes:Private network.Wherein, private network can be that user exists
The Wifi networks provided in family by router, can also be the Wifi networks of office space.
Step S102, the function privilege of application program in terminal device is limited, after the completion of function privilege limits, held
Row step S103.
In one embodiment, it is right if the title of the Wifi networks being currently accessed is not recorded in preset table
The function privilege of application program is limited in terminal device.Wherein, application program includes the application being arranged in terminal device
Software and system application, function privilege include payment function authority, file-sharing authority, message registration access rights or
At least one of position information share authority.When (including front stage operation and running background) network side in application program running
The function privilege that server can be opened by application program carries out acquisition of information, and the function privilege was generally applied in user installation
It is arranged to allow the state opened in journey, if the Wifi internet securities of terminal device access are poor, such as public place
Public Wifi networks, then the information in terminal device is easily acquired, and then information security is caused a hidden trouble.In the present embodiment,
When detecting that the current security of network environment for preparing access is poor, before accessing to a network or after access network first when
Between the function privilege of application program is defined, set with avoiding illegal program from obtaining terminal by reserved function privilege interface
Data message in standby.Optionally, payment function of the mode of restriction including disabling applications, file-sharing function, call
Record access function and position information share function.
In another embodiment, if the Wifi networks being currently accessed are not private networks, to terminal device
The function privilege of middle application program is limited., wherein it is desired to access current network if not private network then easily by
To security threat, therefore the limitation of application function authority is carried out when terminal device accesses common network, prevent information leakage.
Step S103, respond the Wifi network connections instruction and carry out Wifi network connections.
In one embodiment, if Wifi networks are default network, direct basis Wifi network connections instruction connection
Corresponding Wifi networks.In another embodiment, if the current Wifi networks for preparing connection have potential safety hazard, inciting somebody to action
After the function privilege of application program is limited in terminal device, respond the Wifi network connections instruction and carry out Wifi nets
Network is connected so that the terminal device and the webserver interact.
From the foregoing, method for connecting network provided in an embodiment of the present invention, when carrying out Wifi network connections, judging should
Whether Wifi networks are safe, for the Wifi network connections of potential safety hazard be present, are related to privacy information to application program in advance
Function limited, to avoid due to information leakage caused by network security problem.
Fig. 4 is the flow chart of another method for connecting network provided in an embodiment of the present invention, gives one kind and specifically sentences
Disconnecting enter network whether be private network mode.Optionally, the current Wifi networks for preparing access are obtained by mobile network
Associated data, judge whether the Wifi networks are private network according to the associated data.As shown in figure 4, technical scheme
It is specific as follows:
When step S201, detecting Wifi network connections instruction, the current Wifi for preparing access is obtained by mobile network
The associated data of network.
Step S202, judge whether the Wifi networks are private network according to the associated data, if described current
The Wifi networks of access are not private networks, then perform step S203, if it is, directly performing step S204.
In one embodiment, terminal device can obtain current preparation in the server by mobile network (2G/3G/4G)
The associated data of the Wifi networks of connection, wherein, the server record has different Wifi network hotspot data messages, the data
Information can be that the information uploaded to multiple different terminal devices is recorded to obtain, still can be by network mode from
Other database service interfaces obtain.The associated data of the current Wifi networks for preparing access is obtained by mobile network, according to institute
State associated data and judge whether the Wifi networks are private network, specifically, the associated data can be Wifi network insertions
The quantity of the accessing user of point.Exemplary, when the Wifi Network Access Points, access has great amount of terminals equipment or gone through simultaneously
Multiple different access devices are have recorded in Records of the Historian record (such as:200 different access devices), then it can be defined as non-private
Common network.
In another embodiment, determine whether that the mode of private network can also be taken and judge the current net for preparing connection
The title of network determines, is determined as that it is common network if public printed words or Merchant name is carried in title, belongs to non-private
Network.In another embodiment, whether password can also be needed to determine whether as private by the network for judging to be currently accessed
There is network, if the network being currently accessed can connect without cipher authentication, it is determined that it is common network.
Step S203, the function privilege of application program in terminal device is limited, after the completion of function privilege limits, held
Row step S204.
Step S204, respond the Wifi network connections instruction and carry out Wifi network connections.
Step S205, after detecting that the Wifi network connections disconnect, to the function of application program in the terminal device
Authority is recovered.
After Wifi network connections are disconnected, the function privilege of application program can be recovered accordingly, that is, reset
Function privilege corresponding to application program is available, then next time connect Wifi networks when, re-execute the above method.
In the method for connecting network that the present embodiment provides, when carrying out Wifi network connections, carrying out Wifi networks first is
The no identification for private network, if not private network, then the authority of each application program in terminal device is limited,
Certainly, specific limitation mode does not limit, and can also be in the realization of terminal device system level to security privacy be present
The deactivation for the function of threatening.
Fig. 5 is the flow chart of another method for connecting network provided in an embodiment of the present invention, gives a kind of connecting not
The mode paid during secure network, as shown in figure 5, technical scheme is as follows:
When step S301, detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are pre-
If network, if the Wifi networks being currently accessed are not the default networks, step S302 is performed, if it is, directly
Connect and perform step S303.
Step S302, the function privilege of application program in terminal device is limited, after the completion of function privilege limits, held
Row step S304.
Step S303, respond the Wifi network connections instruction and carry out Wifi network connections.
When step S304, detecting that the application program in the terminal device opens payment function, by the terminal device
Internetwork connection mode by current Wifi network connections switch to mobile network connection, release the limitation to payment function.
In one embodiment, the payment function can be the application program installed in terminal device (such as:Wechat, payment
It is precious) payment function that uses.Exemplary, the unlatching for detecting payment function can detect application program payment interface quilt
Point open or bank settlement in sweep and sweep button by point, now, by the internetwork connection mode of the terminal device by current
Wifi network connections switch to mobile network's connection.Mobile network is being connect for terminal device for the operators such as telecommunications, UNICOM offer
The network entered, internet security is stronger, when the Wifi networks of connection have potential safety hazard, needs to perform some specific functions again
When (such as payment function), current Wifi network connections are switched into mobile network's connection, while release the limit to payment function
Make to complete payment process.
In another embodiment, when detecting at least one of wooden horse, virus or third party's plug-in unit, disconnect current
Wifi network connections, and provide network security threats prompting.Exemplary, terminal device can lead to when using unsecured network
Cross antivirus software or system carries guard process and monitors whether the menace such as wooden horse and virus program, script be present in real time, once
It was found that then disconnecting Wifi network connections immediately, to prevent information by net leakage, the network of terminal device is further increased
Safety.
Step S305, when detecting that payment is completed, the Wifi network connections before current network connection is switched to,
Payment function is limited simultaneously.
Step S306, after detecting that the Wifi network connections disconnect, to the function of application program in the terminal device
Authority is recovered.
The method for connecting network that the present embodiment provides, solves and carries out risk being present under unsafe Wifi network environments
The problem of operation causes leakage of information, improve Information Security.
For ease of preferably implementing method for connecting network provided in an embodiment of the present invention, the embodiment of the present invention also provides one kind
Network connection device.Wherein the implication of noun is identical with above-mentioned method for connecting network, and specific implementation details may be referred to method
Explanation in embodiment.
Referring to Fig. 6, Fig. 6 is the structural representation of network connection device provided in an embodiment of the present invention.Network connection fills
Putting 400 can include:Detection module 401, authority modified module 402, link block 403.
Detection module 401, during for detecting Wifi network connections instruction, judge that the current Wifi networks for preparing access are
No is default network.
When user needs to use terminal equipment access network, terminal device receives the operation that user clicks on WLAN icons
Afterwards, attachable Wifi networks are shown.Now, appointing in the attachable Wifi lists that user can be by clicking on display
Meaning one is to carry out network connection, and in specifically connection opening process, the Wifi networks added with password need user corresponding
Input after correct password can network connection success, in the case of without password authentification, user can click directly on desired connection
Wifi networks be directly successfully connected with network.The method of supplying of usual Wifi networks can be:The router installed in family
There is provided, public place businessman provides, and computing device focus provides etc..When detecting Wifi network connections instruction, judge current accurate
Whether the Wifi networks of standby access are default network.Wifi network connections instruction can be certain in user's click Wifi lists
The link order of one triggering.The default network includes:Wifi network names are stored in the network in preset table.It is described default
Network can also be:Private network.Wherein, private network can be the Wifi networks that user is provided by router at home,
It can also be the Wifi networks of office space.
Authority modified module 402, if not being the default network for the Wifi networks being currently accessed, to end
The function privilege of application program is limited in end equipment.
If the title of the Wifi networks being currently accessed is not recorded in preset table, to applying journey in terminal device
The function privilege of sequence is limited.Wherein, application program includes application software and the system application being arranged in terminal device
Program, function privilege include payment function authority, file-sharing authority, message registration access rights or position information share authority
At least one of.When (including front stage operation and running background) network side server can pass through application in application program running
The function privilege that program is opened carries out acquisition of information, and the function privilege generally is arranged to allow in user installation application process
The state of unlatching, it is such as the public Wifi networks of public place, then whole if the Wifi internet securities of terminal device access are poor
Information in end equipment is easily acquired, and then information security is caused a hidden trouble.In the present embodiment, currently prepare to connect when detecting
When the security of network environment entered is poor, before accessing to a network or the very first time after access network is to the function of application program
Authority is defined, to avoid illegal program from passing through the data message in reserved function privilege interface acquisition terminal device.Can
Choosing, the mode of restriction includes payment function, file-sharing function, message registration access function and the position of disabling applications
Confidence ceases sharing functionality.
In another embodiment, if the Wifi networks being currently accessed are not private networks, to terminal device
The function privilege of middle application program is limited., wherein it is desired to access current network if not private network then easily by
To security threat, therefore the limitation of application function authority is carried out when terminal device accesses common network, prevent information leakage.
Link block 403, Wifi network connections are carried out for responding the Wifi network connections instruction.
In one embodiment, if Wifi networks are default network, direct basis Wifi network connections instruction connection
Corresponding Wifi networks.In another embodiment, if the current Wifi networks for preparing connection have potential safety hazard, inciting somebody to action
After the function privilege of application program is limited in terminal device, respond the Wifi network connections instruction and carry out Wifi nets
Network is connected so that the terminal device and the webserver interact.
In a kind of possible embodiment, the default network includes the net that Wifi network names are stored in preset table
Network;
The authority modified module 402 is specifically used for:
If the title of the Wifi networks being currently accessed is not recorded in preset table, to applying journey in terminal device
The function privilege of sequence is limited.
In a kind of possible embodiment, the default network includes private network;
The authority modified module 402 is specifically used for:
If the Wifi networks being currently accessed are not private networks, the function of application program in terminal device is weighed
Limited.
In a kind of possible embodiment, the detection module 401 is specifically used for:
The associated data of the current Wifi networks for preparing access is obtained by mobile network, is judged according to the associated data
Whether the Wifi networks are private network.Terminal device can be obtained currently in the server by mobile network (2G/3G/4G)
Prepare the associated data of the Wifi networks of connection, wherein, the server record has different Wifi network hotspot data messages, should
Data message can be that the information uploaded to multiple different terminal devices is recorded to obtain, and still can be to pass through network side
Formula obtains from other database service interfaces.The associated data of the current Wifi networks for preparing access is obtained by mobile network, according to
Judge whether the Wifi networks are private network according to the associated data, specifically, the associated data can be Wifi networks
The quantity of the accessing user of access point.It is exemplary, when the Wifi Network Access Points access simultaneously have great amount of terminals equipment or
Multiple different access devices are have recorded in historical record (such as:200 different access devices), then it can be defined as non-
Privately owned common network.In another embodiment, determining whether the mode of private network can also take judgement is current to prepare
The title of the network of connection determines, is determined as that it is common network if public printed words or Merchant name is carried in title, belongs to
In non-private network.In another embodiment, by the network for judging to be currently accessed password whether can also be needed to determine
Whether it is private network, if the network being currently accessed can connect without cipher authentication, it is determined that it is common network.
In a kind of possible embodiment, the authority of the application program includes the payment function power of the application program
At least one of limit, file-sharing authority, message registration access rights or position information share authority;
Described device also includes handover module 404, for carrying out Wifi in the response Wifi network connections instruction
After network connection, when detecting that the application program in the terminal device opens payment function, by the net of the terminal device
Network connected mode switches to mobile network's connection by current Wifi network connections, releases the limitation to payment function.At one
In embodiment, the payment function can be the application program installed in terminal device (such as:Wechat, Alipay) the payment work(that uses
Energy.Exemplary, the unlatching for detecting payment function can detect that application program payment interface is put out or bank settlement
In sweep and sweep button by point, now, the internetwork connection mode of the terminal device is cut by current Wifi network connections
Shift to mobile network's connection.Mobile network is the network for terminal device access that the operators such as telecommunications, UNICOM provide, and network is pacified
Full property is stronger, will when the Wifi networks of connection have potential safety hazard, need to perform some specific functions (such as payment function) again
Current Wifi network connections switch to mobile network's connection, while release the limitation to payment function to complete payment process.
In a kind of possible embodiment, described device also includes security module 405, for described in the response
After Wifi network connections instruction carries out Wifi network connections, when detecting at least one of wooden horse, virus or third party's plug-in unit
When, current Wifi network connections are disconnected, and provide network security threats prompting.
In a kind of possible embodiment, the link block 403 is additionally operable to:
After detecting that the Wifi network connections disconnect, the function privilege progress to application program in the terminal device is extensive
It is multiple.
From the foregoing, method for connecting network provided in an embodiment of the present invention, when carrying out Wifi network connections, judging should
Whether Wifi networks are safe, for the Wifi network connections of potential safety hazard be present, are related to privacy information to application program in advance
Function limited, to avoid due to leakage of information caused by network security problem.
The embodiment of the present invention also provides a kind of terminal device, such as tablet personal computer, mobile phone.Referring to Fig. 7, Fig. 7 is this hair
The structural representation for the terminal device that bright embodiment provides.The terminal device 500 can include radio frequency (RF, Radio
Frequency) circuit 501, include memory 502, the input block of one or more computer-readable recording mediums
503rd, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module
507th, the part such as one or the processor 508 of more than one processing core and power supply 509 is included.People in the art
Member is appreciated that the terminal device structure shown in Fig. 7 does not form the restriction to terminal device, can include more more than illustrating
Or less part, either combine some parts or different parts arrangement.
Radio circuit 501 can be communicated by radio communication with the network equipment or other electronic equipments, and completion is set with network
Information transmit-receive between standby or other electronic equipments.
Memory 502 can be used for storage application program and data.Include and can hold in the application program that memory 502 stores
Line code.Application program can form various functions module.Processor 508 is stored in the application journey of memory 502 by operation
Sequence, so as to perform various function application and data processing.
Input block 503 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and
Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.Specifically
Ground, in a specific embodiment, input block 503 may include touch sensitive surface and other input equipments.Touch sensitive surface,
Referred to as touch display screen or Trackpad, collect user on or near it touch operation (such as user using finger, touch
The operations of any suitable object or annex on touch sensitive surface or near touch sensitive surface such as pen), and according to set in advance
Formula drives corresponding attachment means.
Display unit 504 can be used for display by the information of user's input or be supplied to the information and terminal device of user
Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.
Display unit 504 may include display panel.Optionally, liquid crystal display (LCD, Liquid Crystal can be used
Display), the form such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configures display surface
Plate.
Terminal device may also include at least one sensor 505, such as optical sensor, motion sensor and other sensings
Device.
Voicefrequency circuit 506 can provide the COBBAIF between user and terminal device by loudspeaker, microphone.Audio-frequency electric
The voice data received can be converted into electric signal by road 506, be transferred to loudspeaker, and it is defeated to be converted to voice signal by loudspeaker
Go out;On the other hand, the voice signal of collection is converted to electric signal by microphone, and audio is converted to after being received by voicefrequency circuit 506
Data, then after voice data output processor 508 is handled, through radio circuit 501 to be sent to such as another terminal device, or
Person exports voice data to memory 502 further to handle.Voicefrequency circuit 506 is also possible that earphone jack, to carry
For the communication of peripheral hardware earphone and terminal device.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and terminal device can be with by wireless fidelity module 507
Help user to send and receive e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet
Access.
Processor 508 is the control centre of terminal device, utilizes each of various interfaces and the whole terminal device of connection
Individual part, by running or performing the application program being stored in memory 502, and call and be stored in memory 502
Data, the various functions and processing data of terminal device are performed, so as to carry out integral monitoring to terminal device.Optionally, handle
Device 508 may include one or more processing cores;Preferably, processor 508 can integrate application processor and modulation /demodulation processing
Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located
Manage radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Terminal device also includes the power supply 509 (such as battery) to all parts power supply.Preferably, power supply can pass through electricity
Management system and processor 508 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.
Although not shown in Fig. 7, terminal device can also include camera, bluetooth module etc., will not be repeated here.
Specifically in the present embodiment, processor 508 in terminal device can according to following instruction, by one or one with
On application program process corresponding to executable code be loaded into memory 502, and be stored in by processor 508 to run
Application program in memory 502, so as to realize various functions:
When detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are default network;Such as
The Wifi networks being currently accessed described in fruit are not the default networks, then the function privilege of application program in terminal device are carried out
Limitation;Respond the Wifi network connections instruction and carry out Wifi network connections.
In a possible embodiment, the default network includes the net that Wifi network names are stored in preset table
Network;Residing processor 508 is used for:If the title of the Wifi networks being currently accessed is not recorded in preset table, to end
The function privilege of application program is limited in end equipment.
In a possible embodiment, the default network includes private network;Residing processor 508 is used for:If
The Wifi networks being currently accessed are not private networks, then the function privilege of application program in terminal device are limited.
In a possible embodiment, the processor 508 is used for:Current preparation access is obtained by mobile network
The associated data of Wifi networks, judge whether the Wifi networks are private network according to the associated data.
In a possible embodiment, the authority of the application program includes the payment function power of the application program
At least one of limit, file-sharing authority, message registration access rights or position information share authority;The processor 508 is also
For:When detecting that the application program in the terminal device opens payment function, by the network connection side of the terminal device
Formula switches to mobile network's connection by current Wifi network connections, releases the limitation to payment function.
In a possible embodiment, the processor 508 is carried out in the response Wifi network connections instruction
After Wifi network connections, it is additionally operable to:When detecting at least one of wooden horse, virus or third party's plug-in unit, disconnect current
Wifi network connections, and provide network security threats prompting.
In a possible embodiment, the processor 508 is carried out in the response Wifi network connections instruction
After Wifi network connections, it is additionally operable to:After detecting that the Wifi network connections disconnect, to application program in the terminal device
Function privilege recovered.
The embodiment of the present invention also provides a kind of storage medium for including terminal device executable instruction, and the terminal device can
Execute instruction is used to perform a kind of method for connecting network when being performed by terminal device control unit, it is characterised in that this method
Including:
When detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are default network;
If the Wifi networks being currently accessed are not the default networks, to the work(of application program in terminal device
Energy authority is limited;
Respond the Wifi network connections instruction and carry out Wifi network connections.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap
Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums
(such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other
The memory of type or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed,
Or can be located in different second computer systems, second computer system is connected to the by network (such as internet)
One computer system.Second computer system can provide programmed instruction and be used to perform to the first computer." storage is situated between term
Matter " can include may reside within diverse location two of (such as in different computer systems by network connection) or
More storage mediums.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as implement
For computer program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer
The method for connecting network operation that executable instruction is not limited to the described above, can also carry out what any embodiment of the present invention was provided
Associative operation in method for connecting network.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
- A kind of 1. method for connecting network, it is characterised in that including:When detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are default network;If the Wifi networks being currently accessed are not the default networks, the function of application program in terminal device is weighed Limited;Respond the Wifi network connections instruction and carry out Wifi network connections.
- 2. according to the method for claim 1, it is characterised in that the default network is stored in pre- including Wifi network names If the network in table;Accordingly, if the Wifi networks being currently accessed are not the default networks, to being applied in terminal device The function privilege of program, which carries out limitation, to be included:If the title of the Wifi networks being currently accessed is not recorded in preset table, to application program in terminal device Function privilege is limited.
- 3. according to the method for claim 1, it is characterised in that the default network includes private network;Accordingly, if the Wifi networks being currently accessed are not the default networks, to being applied in terminal device The function privilege of program, which carries out limitation, to be included:If the Wifi networks being currently accessed are not private networks, the function privilege of application program in terminal device is entered Row limitation.
- 4. according to the method for claim 3, it is characterised in that the current Wifi networks for preparing access of judgement whether be Private network includes:The associated data of the current Wifi networks for preparing access is obtained by mobile network, according to described in associated data judgement Whether Wifi networks are private network.
- 5. according to the method any one of claim 1-4, it is characterised in that the authority of the application program includes described In the payment function authority of application program, file-sharing authority, message registration access rights or position information share authority at least It is a kind of;Accordingly, after the response Wifi network connections instruction carries out Wifi network connections, in addition to:When detecting that the application program in the terminal device opens payment function, by the internetwork connection mode of the terminal device Mobile network's connection is switched to by current Wifi network connections, releases the limitation to payment function.
- 6. according to the method any one of claim 1-4, it is characterised in that in the response Wifi network connections After instruction carries out Wifi network connections, in addition to:When detecting at least one of wooden horse, virus or third party's plug-in unit, current Wifi network connections are disconnected, and provide net Network security threat is prompted.
- 7. according to the method any one of claim 1-4, it is characterised in that in the response Wifi network connections After instruction carries out Wifi network connections, in addition to:After detecting that the Wifi network connections disconnect, the function privilege of application program in the terminal device is recovered.
- A kind of 8. network connection device, it is characterised in that including:Detection module, during for detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are pre- If network;Authority modified module, if not being the default network for the Wifi networks being currently accessed, to terminal device The function privilege of middle application program is limited;Link block, Wifi network connections are carried out for responding the Wifi network connections instruction.
- 9. a kind of terminal device, including:Processor, memory and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that realize following steps during computer program described in the computing device:When detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are default network;If the Wifi networks being currently accessed are not the default networks, the function of application program in terminal device is weighed Limited;Respond the Wifi network connections instruction and carry out Wifi network connections.
- 10. a kind of storage medium for including terminal device executable instruction, the terminal device executable instruction is set by terminal It is used to perform a kind of method for connecting network during standby computing device, it is characterised in that this method includes:When detecting Wifi network connections instruction, judge whether the current Wifi networks for preparing access are default network;If the Wifi networks being currently accessed are not the default networks, the function of application program in terminal device is weighed Limited;Respond the Wifi network connections instruction and carry out Wifi network connections.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710550456.9A CN107343279A (en) | 2017-07-07 | 2017-07-07 | Method for connecting network, device, terminal device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710550456.9A CN107343279A (en) | 2017-07-07 | 2017-07-07 | Method for connecting network, device, terminal device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107343279A true CN107343279A (en) | 2017-11-10 |
Family
ID=60219590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710550456.9A Pending CN107343279A (en) | 2017-07-07 | 2017-07-07 | Method for connecting network, device, terminal device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107343279A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108632955A (en) * | 2018-04-17 | 2018-10-09 | Oppo广东移动通信有限公司 | network connection setting method, device, storage medium and terminal device |
CN110225462A (en) * | 2019-07-19 | 2019-09-10 | 深圳市盛维智联科技有限公司 | A kind of method, system and device preventing network congestion |
CN111240875A (en) * | 2020-01-03 | 2020-06-05 | 北京小米移动软件有限公司 | Network exception handling method and device and storage medium |
CN111596846A (en) * | 2020-04-30 | 2020-08-28 | 维沃移动通信有限公司 | Application authority control method and device and electronic equipment |
WO2020182009A1 (en) * | 2019-03-12 | 2020-09-17 | Oppo广东移动通信有限公司 | Network connection method, terminal, base station, and computer storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103619014A (en) * | 2013-11-13 | 2014-03-05 | 广东欧珀移动通信有限公司 | Method and system preventing application data from leakage |
US8825057B2 (en) * | 2011-12-01 | 2014-09-02 | At&T Mobility Ii Llc | Range expansion in a wireless network environment |
CN104506561A (en) * | 2015-01-13 | 2015-04-08 | 深圳市中兴移动通信有限公司 | Terminal data access control method and device |
CN106156645A (en) * | 2015-03-30 | 2016-11-23 | 中兴通讯股份有限公司 | Terminal data protection method, terminal and equipment |
-
2017
- 2017-07-07 CN CN201710550456.9A patent/CN107343279A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8825057B2 (en) * | 2011-12-01 | 2014-09-02 | At&T Mobility Ii Llc | Range expansion in a wireless network environment |
CN103619014A (en) * | 2013-11-13 | 2014-03-05 | 广东欧珀移动通信有限公司 | Method and system preventing application data from leakage |
CN104506561A (en) * | 2015-01-13 | 2015-04-08 | 深圳市中兴移动通信有限公司 | Terminal data access control method and device |
CN106156645A (en) * | 2015-03-30 | 2016-11-23 | 中兴通讯股份有限公司 | Terminal data protection method, terminal and equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108632955A (en) * | 2018-04-17 | 2018-10-09 | Oppo广东移动通信有限公司 | network connection setting method, device, storage medium and terminal device |
WO2020182009A1 (en) * | 2019-03-12 | 2020-09-17 | Oppo广东移动通信有限公司 | Network connection method, terminal, base station, and computer storage medium |
CN110225462A (en) * | 2019-07-19 | 2019-09-10 | 深圳市盛维智联科技有限公司 | A kind of method, system and device preventing network congestion |
CN111240875A (en) * | 2020-01-03 | 2020-06-05 | 北京小米移动软件有限公司 | Network exception handling method and device and storage medium |
CN111240875B (en) * | 2020-01-03 | 2024-03-19 | 北京小米移动软件有限公司 | Network exception handling method, device and storage medium |
CN111596846A (en) * | 2020-04-30 | 2020-08-28 | 维沃移动通信有限公司 | Application authority control method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103891242B (en) | System and method for profile based filtering of outgoing information in a mobile environment | |
CN107343279A (en) | Method for connecting network, device, terminal device and storage medium | |
CN104125216B (en) | A kind of method, system and terminal for lifting credible performing environment security | |
CN103619020B (en) | Mobile payment security system for wireless data private network physical isolation internet | |
CN103679007B (en) | A kind of manage the method for application program authority, device and mobile device | |
CN105072255A (en) | Mobile equipment privacy authority control method, mobile equipment privacy authority control device and corresponding mobile phone equipment | |
US20080194296A1 (en) | System and method for securely managing data stored on mobile devices, such as enterprise mobility data | |
CN107040540B (en) | Cloud privacy data display method and device, server and mobile terminal | |
CN103514397A (en) | Server, terminal and authority management and permission method | |
CN106713266B (en) | Method, device, terminal and system for preventing information leakage | |
CN104901805B (en) | A kind of identification authentication methods, devices and systems | |
CN104281950A (en) | Method and device for improving electronic payment safety | |
CN106096450A (en) | A kind of application program freezing method and mobile terminal | |
CN107506637A (en) | Information displaying method and device, terminal and readable storage medium storing program for executing | |
CN105260660A (en) | Monitoring method, device and system of intelligent terminal payment environment | |
CN107635262A (en) | Terminal connects switching method, device, electronic equipment and the storage medium of network | |
CN107396364A (en) | A kind of method and apparatus for being used to carry out user equipment wireless connection pre-authorization | |
CN111695151A (en) | Application permission setting method and device, electronic equipment and readable storage medium | |
US20240314165A1 (en) | Method and system for detection of phishing emails and suspect malicious executable hyperlinks | |
CN113408006A (en) | Monitoring data access method and device, indoor monitoring system and storage medium | |
CN107396365A (en) | Data transmission method and mobile terminal | |
CN106529236A (en) | Unlocking method, apparatus and system | |
CN106447325A (en) | Processing method and device based on NFC (Near Filed Communication), and mobile terminal | |
CN106326768A (en) | Method and device for managing information and intelligent terminal | |
Zhang et al. | Android platform-based individual privacy information protection system |
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 | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171110 |
|
RJ01 | Rejection of invention patent application after publication |