CN103914423B - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN103914423B CN103914423B CN201410098090.2A CN201410098090A CN103914423B CN 103914423 B CN103914423 B CN 103914423B CN 201410098090 A CN201410098090 A CN 201410098090A CN 103914423 B CN103914423 B CN 103914423B
- Authority
- CN
- China
- Prior art keywords
- application
- mark
- electronic equipment
- condition
- connection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses a kind of information processing method, including:Bus is debugged using the Android(ADB)Driving determines that the port being connect with second electronic equipment is first port;When detecting that the first port receives the connection request of the first application that second electronic equipment is sent, the mark of first application is obtained;According to the mark of the described first application, judge whether first application meets first condition;When the described first application meets first condition, the connection request of refusal first application.The invention also discloses a kind of electronic equipment, and the safety in utilization of electronic equipment is can guarantee using the present invention, ensure the usage experience of user.
Description
Technical field
The present invention relates to the connection management technology in intelligent terminal field more particularly to a kind of information processing methods and electronics
Equipment.
Background technology
More and more electronic equipments are downloaded and are pacified from other electronic equipments by being connect with other electronic equipments at present
Dress application, for example bus is debugged by Android(ADB, Android Debug Bridge)It is connected with computer, is obtained from computer
Using and install.
But electronic equipment downloaded by ADB and install in application, it is possible that can by some unwanted applications, so as to
Usage experience is influenced, sometimes can also threaten the safety in utilization of electronic equipment, for example, may to download to malice soft by user
Part downloads to the automatic software for repeating installation.
Invention content
In view of this, the purpose of the present invention is to provide a kind of information processing method and electronic equipments, can guarantee that electronics is set
Standby safety in utilization ensures the usage experience of user.
An embodiment of the present invention provides a kind of information processing methods, and applied to the first electronic equipment, first electronics is set
Received shipment row ADB drivings are connect with the second electronic equipment;The method includes:
Determine that the port being connect with second electronic equipment is first port using ADB drivings;
When detecting that the first port receives the connection request of the first application that second electronic equipment is sent,
Obtain the mark of first application;
According to the mark of the described first application, judge whether first application meets first condition;
When the described first application meets first condition, the connection request of refusal first application.
In said program, the first condition is:The mark of first application is in preset first list, and described the
The corresponding mark of application of one or more refusal connections is included in one list;
Alternatively,
For the mark of first application not in preset second list, the second list includes one or more allow
The corresponding mark of application of connection.
In said program, it is described judge it is described first application whether meet first condition after, the method further includes:
When the described first application does not meet first condition, the connection request of first application is received;
According to preset Connecting quantity, determine to receive the connection speed of first application;
According to connection speed connection first application.
In said program, it is described judge it is described first application whether meet first condition after, the method further includes:
When the described first application does not meet first condition,
First application is connected, obtains the mark of first application;
Judge whether first application is to have installed application according to the mark of the described first application;
When to have installed in application, refusing installation first application.
In said program, it is described judge it is described first application whether meet first condition after, the method further includes:
When the described first application does not meet first condition,
First application is connected, obtains the mark of first application, institute is determined according to the mark of the described first application
State the installation number of the first application;
Whether the installation number for detecting first application is more than preset threshold value,
If being more than, refuse that first application is installed.
In said program, the mark according to the described first application determines the installation number of first application, including:
The first moment of connection first application is obtained,
According to the mark of the described first application, first application in preset time range before obtaining first moment
Installation number.
The embodiment of the present invention additionally provides a kind of electronic equipment, and the electronic equipment includes:
Connection management unit connect for running ADB drivings with the second electronic equipment;Using the ADB driving determine with
The port of the second electronic equipment connection is first port;
Processing unit detects that the first port receives the first application that second electronic equipment is sent for working as
Connection request when, obtain it is described first application mark;According to the mark of the described first application, judge that first application is
It is no to meet first condition;When the described first application meets first condition, the connection request of refusal first application.
In said program, the first condition is:The mark of first application is in preset first list, and described the
The corresponding mark of application of one or more refusal connections is included in one list;Alternatively, the mark of first application is not pre-
If second list in, the second list include one or more allow connection the corresponding marks of application.
In said program, the processing unit is additionally operable to when the described first application does not meet first condition, described in reception
The connection request of first application;According to preset Connecting quantity, determine to receive the connection speed of first application;According to described
Connection speed connects first application by connection management unit.
In said program, the processing unit is additionally operable to when the described first application does not meet first condition, described in connection
First application obtains the mark of first application;According to described first application mark judge it is described first apply whether be
Application has been installed;When to have installed in application, refusing installation first application.
In said program, the processing unit is additionally operable to, when the described first application does not meet first condition, pass through connection
Administrative unit connection first application;The mark of first application is obtained, institute is determined according to the mark of the described first application
State the installation number of the first application;Whether the installation number for detecting first application is more than preset threshold value, if being more than, is refused
First application is installed absolutely.
In said program, the processing unit, specifically for obtaining the first moment of connection first application, according to institute
The mark of the first application is stated, the described first installation number applied in preset time range before obtaining first moment.
Information processing method and electronic equipment provided by the present invention can drive in ADB and receive any one application
Connection request when, be judged as it is described application whether meet first condition, once do not meet, just refuse the application connection please
It asks.In this way, the connection request of unwanted application will not be received by ADB drivings, so as to ensure that the use of electronic equipment is pacified
Quan Xing ensures the usage experience of user.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention, for those of ordinary skill in the art, without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is information processing method of embodiment of the present invention flow diagram one;
Fig. 2 is information processing method of embodiment of the present invention flow diagram two;
Fig. 3 is information processing method of embodiment of the present invention flow diagram three;
Fig. 4 is information processing method of embodiment of the present invention flow diagram four;
Fig. 5 forms structure diagram for electronic equipment of the embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage to make the application are more clearly understood, below in conjunction in the embodiment of the present invention
Attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
It is part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's all other embodiments obtained without creative efforts, shall fall within the protection scope of the present invention.
In the case of not conflicting, the feature in embodiment and embodiment in the application mutually can be combined arbitrarily.In the flow of attached drawing
The step of illustrating can perform in the computer system of such as a group of computer-executable instructions.Although also, in flow
Logical order is shown in figure, but in some cases, can be performed with the sequence being different from herein shown or described
Step.
Below in conjunction with the accompanying drawings and specific embodiment the present invention is further described in more detail.
Embodiment one,
A kind of information processing method provided in an embodiment of the present invention, applied to the first electronic equipment, first electronics is set
Standby can be smart mobile phone or tablet computer etc., and the first electronic equipment operation ADB drivings are connect with the second electronic equipment, institute
It can be desktop computer or laptop etc. to state the second electronic equipment;As shown in Figure 1, the method includes:
Step 101:Determine that the port being connect with second electronic equipment is first port using ADB drivings;
Step 102:When detecting that the first port receives the company of the first application that second electronic equipment sends
When connecing request, the mark of first application is obtained;
Step 103:According to the mark of the described first application, judge whether first application meets first condition;
Step 104:When the described first application meets first condition, the connection request of refusal first application.
Here, the first condition can be:The mark of first application is in preset first list, and described first
The corresponding mark of application of one or more refusal connections is included in list, for example at present often forms the application for refusing connection
List be known as blacklist, i.e. first list can be blacklist;
Alternatively, the mark of first application, not in preset second list, the second list includes one or more
A corresponding mark of application for allowing connection, for example, the list that the application for allowing connection forms usually is known as white list, i.e., the
Two lists can be white list.
Wherein, the operation ADB drivings can be that the first electronic equipment is made to determine a port, use the determining port
It is connect with the second electronic equipment, and then passes through determining port transmission information.
The mark of first application can be the title of application.
One usage scenario of said program, such as the smart mobile phone that the first electronic equipment is operation Android system, second
Electronic equipment can be desktop computer, which is drivingly connected desktop computer by ADB;
Smart mobile phone is determined by ADB drivings after being connect using first port with desktop computer;
Whether detection first port receives the connection request of any one application that desktop computer is sent in real time;
When the connection request for receiving any one application, extraction is using corresponding mark from the connection request;
According to the blacklist that the identifier lookup prestores, judge whether there is identical mark in blacklist, if so, then refusing
The connection request of the application.
As it can be seen that by using this programme, can just sentence when ADB drives the connection request for receiving any one application
Whether the disconnected application meets first condition, once not meeting, just refuses the connection request of the application.In this way, it is driven by ADB
It will not receive the connection request of unwanted application, so as to ensure that the safety in utilization of electronic equipment, ensure the use of user
Experience.
Embodiment two,
A kind of information processing method provided in an embodiment of the present invention, applied to the first electronic equipment, first electronics is set
Standby can be smart mobile phone or tablet computer etc., and the first electronic equipment operation ADB drivings are connect with the second electronic equipment, institute
It can be desktop computer or laptop etc. to state the second electronic equipment;As shown in Fig. 2, the method includes:
Step 201:Determine that the port being connect with second electronic equipment is first port using ADB drivings.
Step 202:When detecting that the first port receives the company of the first application that second electronic equipment sends
When connecing request, the mark of first application is obtained.
Step 203:According to the mark of the described first application, judge whether first application meets first condition, work as institute
First is stated using when meeting first condition, performs step 204;Otherwise, step 205 is performed.
Step 204:When the described first application meets first condition, the connection request of refusal first application terminates
Process flow.
Step 205:When the described first application does not meet first condition, the connection request of first application is received.
Step 206:According to preset Connecting quantity, determine to receive the connection speed of first application.
Step 207:According to connection speed connection first application.
Here, the first condition can be:The mark of first application is in preset first list, and described first
The corresponding mark of application of one or more refusal connections is included in list, for example at present often forms the application for refusing connection
List be known as blacklist, i.e. first list can be blacklist;
Alternatively, the mark of first application, not in preset second list, the second list includes one or more
A corresponding mark of application for allowing connection, for example, the list that the application for allowing connection forms usually is known as white list, i.e., the
Two lists can be white list.
Wherein, the operation ADB drivings can be that the first electronic equipment is made to determine a port, use the determining port
It is connect with the second electronic equipment, and then passes through determining port transmission information.
The mark of first application can be the title of application.
It is described according to preset Connecting quantity, determine to receive first application connection speed can according to first row
First applies corresponding permission in table or second list, determines the connection speed of first application;Wherein, the first list
Or the first corresponding permission of application actual conditions can be preset according in second list, not repeated here.
One usage scenario of said program, such as the smart mobile phone that the first electronic equipment is operation Android system, second
Electronic equipment can be desktop computer, which is drivingly connected desktop computer by ADB;
Smart mobile phone is determined by ADB drivings after being connect using first port with desktop computer;
Whether detection first port receives the connection request of any one application that desktop computer is sent in real time;
When the connection request for receiving any one application, extraction is using corresponding mark from the connection request;
According to the blacklist that the identifier lookup prestores, judge whether there is identical mark in blacklist, if so, then refusing
The connection request of the application;If it is not, according to preset Connecting quantity, the connection speed of the application is determined.
As it can be seen that by using this programme, can just sentence when ADB drives the connection request for receiving any one application
Whether the disconnected application meets first condition, once not meeting, just refuses the connection request of the application.In this way, it is driven by ADB
It will not receive the connection request of unwanted application, so as to ensure that the safety in utilization of electronic equipment, ensure the use of user
Experience.
Embodiment three,
A kind of information processing method provided in an embodiment of the present invention, applied to the first electronic equipment, first electronics is set
Standby can be smart mobile phone or tablet computer etc., and the first electronic equipment operation ADB drivings are connect with the second electronic equipment, institute
It can be desktop computer or laptop etc. to state the second electronic equipment;As shown in figure 3, the method includes:
Step 301:Determine that the port being connect with second electronic equipment is first port using ADB drivings.
Step 302:When detecting that the first port receives the company of the first application that second electronic equipment sends
When connecing request, the mark of first application is obtained.
Step 303:According to the mark of the described first application, judge whether first application meets first condition, work as institute
First is stated using when meeting first condition, performs step 304;Otherwise, step 305 is performed.
Step 304:When the described first application meets first condition, the connection request of refusal first application terminates
Process flow.
Step 305:When the described first application does not meet first condition, connection first application obtains described first
The mark of application.
Step 306:Judge whether first application is to have installed application according to the mark of the described first application;When for
Installation is in application, refusal installation first application.
Here, the first condition can be:The mark of first application is in preset first list, and described first
The corresponding mark of application of one or more refusal connections is included in list, for example at present often forms the application for refusing connection
List be known as blacklist, i.e. first list can be blacklist;
Alternatively, the mark of first application, not in preset second list, the second list includes one or more
A corresponding mark of application for allowing connection, for example, the list that the application for allowing connection forms usually is known as white list, i.e., the
Two lists can be white list.
Wherein, the operation ADB drivings can be that the first electronic equipment is made to determine a port, use the determining port
It is connect with the second electronic equipment, and then passes through determining port transmission information.
The mark of first application can be the title of application.
It is described according to preset Connecting quantity, determine to receive first application connection speed can according to first row
First applies corresponding permission in table or second list, determines the connection speed of first application;Wherein, the first list
Or the first corresponding permission of application actual conditions can be preset according in second list, not repeated here.
Judge whether first application is to have installed application according to the mark of the described first application;When to have installed application
When, refusal installation first application can include:After receiving the first application, the mark of first application, root are obtained
According to the whole of self record installed application label detection this first application whether be mounted application, when be installed should
Used time, refusal install first application again;Otherwise, which is installed.
As it can be seen that by using this programme, can just sentence when ADB drives the connection request for receiving any one application
Whether the disconnected application meets first condition, once not meeting, just refuses the connection request of the application;In this way, it is driven by ADB
It will not receive the connection request of unwanted application, so as to ensure that the safety in utilization of electronic equipment, ensure the use of user
Experience.In addition it is possible to judge whether the application is to have installed application after receiving application, to determine whether to perform installation behaviour
Make;It so, it is possible to prevent some application repeatedly installation occupancy system space, so as to promote the usage experience of user.
Example IV,
A kind of information processing method provided in an embodiment of the present invention, applied to the first electronic equipment, first electronics is set
Standby can be smart mobile phone or tablet computer etc., and the first electronic equipment operation ADB drivings are connect with the second electronic equipment, institute
It can be desktop computer or laptop etc. to state the second electronic equipment;As shown in figure 4, the method includes:
Step 401:Determine that the port being connect with second electronic equipment is first port using ADB drivings.
Step 402:When detecting that the first port receives the company of the first application that second electronic equipment sends
When connecing request, the mark of first application is obtained.
Step 403:According to the mark of the described first application, judge whether first application meets first condition, work as institute
First is stated using when meeting first condition, performs step 404;Otherwise, step 405 is performed.
Step 404:When the described first application meets first condition, the connection request of refusal first application terminates
Process flow.
Step 405:When the described first application does not meet first condition, connection first application obtains described first
The mark of application determines the installation number of first application according to the mark of the described first application.
Step 406:Whether the installation number for detecting first application is more than preset threshold value, if being more than, refuses to pacify
Fill first application.
Here, the first condition can be:The mark of first application is in preset first list, and described first
The corresponding mark of application of one or more refusal connections is included in list, for example at present often forms the application for refusing connection
List be known as blacklist, i.e. first list can be blacklist;
Alternatively, the mark of first application, not in preset second list, the second list includes one or more
A corresponding mark of application for allowing connection, for example, the list that the application for allowing connection forms usually is known as white list, i.e., the
Two lists can be white list.
Wherein, the operation ADB drivings can be that the first electronic equipment is made to determine a port, use the determining port
It is connect with the second electronic equipment, and then passes through determining port transmission information.
The mark of first application can be the title of application.
It is described according to preset Connecting quantity, determine to receive first application connection speed can according to first row
First applies corresponding permission in table or second list, determines the connection speed of first application;Wherein, the first list
Or the first corresponding permission of application actual conditions can be preset according in second list, not repeated here.
Preferably, by above-mentioned steps 405- steps 406, described first can be obtained after the first application is received
The mark of application has installed the mark of application according to the whole of self record and has installed the number of first application, and detection should
First application whether be that multiple application has been installed, when be installed it is multiple in application, refusal install again this first application;
Otherwise, which is installed.
Wherein, the mark according to the described first application determines the installation number of first application, can include:It obtains
The first moment for connecting first application is taken, it is default before obtaining first moment according to the mark of the described first application
The installation number of first application in time range.It so, it is possible when some in the short time using repeatedly installing, refusal
The application is installed again, so as to both can guarantee will not due to some application repeatedly installation and cause this useful application can not every
It is installed again after when one section;Electronic equipment can be reduced again to be influenced by Malware.
As it can be seen that by using this programme, can just sentence when ADB drives the connection request for receiving any one application
Whether the disconnected application meets first condition, once not meeting, just refuses the connection request of the application;In this way, it is driven by ADB
It will not receive the connection request of unwanted application, so as to ensure that the safety in utilization of electronic equipment, ensure the use of user
Experience.In addition it is possible to judge whether the application is to have installed application after receiving application, to determine whether to perform installation behaviour
Make;It so, it is possible to prevent some application repeatedly installation occupancy system space, so as to promote the usage experience of user.
Embodiment five,
A kind of electronic equipment provided in an embodiment of the present invention, the electronic equipment can be smart mobile phone or tablet computer
Deng as shown in figure 5, the electronic equipment includes:
Connection management unit 51 connect for running ADB drivings with the second electronic equipment;It is determined using ADB drivings
The port being connect with second electronic equipment is first port;
Processing unit 52, for when detect that the first port receives first that second electronic equipment sends should
During connection request, the mark of first application is obtained;According to the mark of the described first application, first application is judged
Whether first condition is met;When the described first application meets first condition, the connection request of refusal first application.
Wherein, the first condition can be:The mark of first application is in preset first list, and described first
The corresponding mark of application of one or more refusal connections, such as the row for often forming the application for refusing connection are included in list
Table is known as blacklist, i.e. first list can be blacklist;Alternatively, the mark of first application is not in preset second list
In, the second list, which includes one or more, allows the corresponding mark of application of connection, for example, will usually allow answering for connection
It is known as white list with the list of composition, i.e. second list can be white list.
Wherein, the operation ADB drivings can determine a port, be connected using the determining port and the second electronic equipment
It connects, and then passes through determining port transmission information.
The mark of first application can be the title of application.
One usage scenario of said program, such as the smart mobile phone that electronic equipment is operation Android system, the second electronics
Equipment can be desktop computer, which is drivingly connected desktop computer by the ADB installed in connection management unit 51;
Connection management unit 51 is determined by ADB drivings after being connect using first port with desktop computer;
Whether the real-time detection first port of processing unit 52 receives connection of any one application that desktop computer is sent please
It asks;When the connection request for receiving any one application, extraction is using corresponding mark from the connection request;According to the mark
The blacklist to prestore is searched, judges whether there is identical mark in blacklist, if so, the connection for then refusing the application please
It asks.
As it can be seen that by using this programme, can just sentence when ADB drives the connection request for receiving any one application
Whether the disconnected application meets first condition, once not meeting, just refuses the connection request of the application.In this way, it is driven by ADB
It will not receive the connection request of unwanted application, so as to ensure that the safety in utilization of electronic equipment, ensure the use of user
Experience.
Embodiment six,
A kind of electronic equipment provided in an embodiment of the present invention, the electronic equipment can be smart mobile phone or tablet computer
Deng as shown in figure 5, the electronic equipment includes:
Connection management unit 51 connect for running ADB drivings with the second electronic equipment;It is determined using ADB drivings
The port being connect with second electronic equipment is first port;
Processing unit 52, for when detect that the first port receives first that second electronic equipment sends should
During connection request, the mark of first application is obtained;According to the mark of the described first application, first application is judged
Whether first condition is met;When the described first application meets first condition, the connection request of refusal first application.
Wherein, the first condition can be:The mark of first application is in preset first list, and described first
The corresponding mark of application of one or more refusal connections is included in list, for example at present often forms the application for refusing connection
List be known as blacklist, i.e. first list can be blacklist;Alternatively, the mark of first application is not preset second
In list, the second list, which includes one or more, allows the corresponding mark of application of connection, for example, will usually allow to connect
Application composition list be known as white list, i.e. second list can be white list.
Wherein, the operation ADB drivings can be that the first electronic equipment is made to determine a port, use the determining port
It is connect with the second electronic equipment, and then passes through determining port transmission information.
The mark of first application can be the title of application.
Preferably, the processing unit 52 is additionally operable to, when the described first application does not meet first condition, receive described the
The connection request of one application;According to preset Connecting quantity, determine to receive the connection speed of first application;According to the company
It connects speed and first application is connected by connection management unit 51.Wherein, it is described according to preset Connecting quantity, it determines to receive
The connection speed of first application first can apply corresponding permission according in first list or second list, determine institute
State the connection speed of the first application;Wherein, the first corresponding permission of application can be root in the first list or second list
It is preset according to actual conditions, is not repeated here.
One usage scenario of said program, such as the smart mobile phone that electronic equipment is operation Android system, the second electronics
Equipment can be desktop computer, and desktop computer is drivingly connected by the ADB of connection management unit 51;
It is determined after being connect using first port with desktop computer by ADB drivings;
Whether the real-time detection first port of processing unit 52 receives connection of any one application that desktop computer is sent please
It asks;When the connection request for receiving any one application, extraction is using corresponding mark from the connection request;According to the mark
The blacklist to prestore is searched, judges whether there is identical mark in blacklist, if so, the connection for then refusing the application please
It asks;If it is not, according to preset Connecting quantity, the connection speed of the application is determined.
As it can be seen that by using this programme, can just sentence when ADB drives the connection request for receiving any one application
Whether the disconnected application meets first condition, once not meeting, just refuses the connection request of the application.In this way, it is driven by ADB
It will not receive the connection request of unwanted application, so as to ensure that the safety in utilization of electronic equipment, ensure the use of user
Experience.
Embodiment seven,
A kind of electronic equipment provided in an embodiment of the present invention, the electronic equipment can be smart mobile phone or tablet computer
Deng as shown in figure 5, the electronic equipment includes:
Connection management unit 51 connect for running ADB drivings with the second electronic equipment;It is determined using ADB drivings
The port being connect with second electronic equipment is first port;
Processing unit 52, for when detect that the first port receives first that second electronic equipment sends should
During connection request, the mark of first application is obtained;According to the mark of the described first application, first application is judged
Whether first condition is met;When the described first application meets first condition, the connection request of refusal first application.
Wherein, the first condition can be:The mark of first application is in preset first list, and described first
The corresponding mark of application of one or more refusal connections is included in list, for example at present often forms the application for refusing connection
List be known as blacklist, i.e. first list can be blacklist;Alternatively, the mark of first application is not preset second
In list, the second list, which includes one or more, allows the corresponding mark of application of connection, for example, will usually allow to connect
Application composition list be known as white list, i.e. second list can be white list.
The operation ADB drivings can be that the first electronic equipment is made to determine a port, use the determining port and the
Two electronic equipments connect, and then pass through determining port transmission information.
The mark of first application can be the title of application.
Preferably, the processing unit 52 is additionally operable to, when the described first application does not meet first condition, receive described the
The connection request of one application;According to preset Connecting quantity, determine to receive the connection speed of first application;According to the company
It connects speed and first application is connected by connection management unit 51;And when connection described first in application, obtaining described the
The mark of one application;Judge whether first application is to have installed application according to the mark of the described first application;When to have pacified
Dress is in application, refusal installation first application.
Wherein, it is described according to preset Connecting quantity, determine that the connection speed for receiving first application can be according to
First applies corresponding permission in first list or second list, determines the connection speed of first application;Wherein, described
First actual conditions can be preset using corresponding permission according in one list or second list, not repeated here.
Preferably, the processing unit 52 after receiving the first application, obtains the mark of first application
Know, according to whole of self record installed application label detection this whether first to apply be mounted application, when being
Installation is in application, refusal installs first application again;Otherwise, which is installed.
As it can be seen that by using this programme, can just sentence when ADB drives the connection request for receiving any one application
Whether the disconnected application meets first condition, once not meeting, just refuses the connection request of the application;In this way, it is driven by ADB
It will not receive the connection request of unwanted application, so as to ensure that the safety in utilization of electronic equipment, ensure the use of user
Experience.In addition it is possible to judge whether the application is to have installed application after receiving application, to determine whether to perform installation behaviour
Make;It so, it is possible to prevent some application repeatedly installation occupancy system space, so as to promote the usage experience of user.
Embodiment eight,
A kind of electronic equipment provided in an embodiment of the present invention, the electronic equipment can be smart mobile phone or tablet computer
Deng as shown in figure 5, the electronic equipment includes:
Connection management unit 51 connect for running ADB drivings with the second electronic equipment;It is determined using ADB drivings
The port being connect with second electronic equipment is first port;
Processing unit 52, for when detect that the first port receives first that second electronic equipment sends should
During connection request, the mark of first application is obtained;According to the mark of the described first application, first application is judged
Whether first condition is met;When the described first application meets first condition, the connection request of refusal first application.
Wherein, the first condition can be:The mark of first application is in preset first list, and described first
The corresponding mark of application of one or more refusal connections is included in list, for example at present often forms the application for refusing connection
List be known as blacklist, i.e. first list can be blacklist;Alternatively, the mark of first application is not preset second
In list, the second list, which includes one or more, allows the corresponding mark of application of connection, for example, will usually allow to connect
Application composition list be known as white list, i.e. second list can be white list.
The operation ADB drivings can be that the first electronic equipment is made to determine a port, use the determining port and the
Two electronic equipments connect, and then pass through determining port transmission information.
The mark of first application can be the title of application.
The processing unit 52 is additionally operable to, when the described first application does not meet first condition, receive first application
Connection request;According to preset Connecting quantity, determine to receive the connection speed of first application;According to the connection speed
First application is connected by connection management unit 51.
The processing unit 52 is additionally operable to, when the described first application does not meet first condition, pass through connection management unit
51 connections, first application;The mark of first application is obtained, described first is determined according to the mark of the described first application
The installation number of application;Whether the installation number for detecting first application is more than preset threshold value, if being more than, refuses to install
First application.
Wherein, the processing unit 52, specifically for obtaining the first moment of connection first application, according to described the
The mark of one application, the described first installation number applied in preset time range before obtaining first moment.In this way, just
The mark of first application after the first application is received, can be obtained, application has been installed according to the whole of self record
Mark and the number of first application is installed, detect whether first application is to have installed multiple application, when being to have pacified
Dress it is multiple in application, refusal installs first application again;Otherwise, which is installed.
Wherein, the mark according to the described first application determines the installation number of first application, can include:It obtains
The first moment for connecting first application is taken, it is default before obtaining first moment according to the mark of the described first application
The installation number of first application in time range.It so, it is possible when some in the short time using repeatedly installing, refusal
The application is installed again, so as to both can guarantee will not due to some application repeatedly installation and cause this useful application can not every
It is installed again after when one section;Electronic equipment can be reduced again to be influenced by Malware.
It is described according to preset Connecting quantity, determine to receive first application connection speed can according to first row
First applies corresponding permission in table or second list, determines the connection speed of first application;Wherein, the first list
Or the first corresponding permission of application actual conditions can be preset according in second list, not repeated here.
As it can be seen that by using this programme, can just sentence when ADB drives the connection request for receiving any one application
Whether the disconnected application meets first condition, once not meeting, just refuses the connection request of the application;In this way, it is driven by ADB
It will not receive the connection request of unwanted application, so as to ensure that the safety in utilization of electronic equipment, ensure the use of user
Experience.In addition it is possible to judge whether the application is to have installed application after receiving application, to determine whether to perform installation behaviour
Make;It so, it is possible to prevent some application repeatedly installation occupancy system space, so as to promote the usage experience of user.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, only
A kind of division of logic function can have other dividing mode, such as in actual implementation:Multiple units or component can combine or
It is desirably integrated into another system or some features can be ignored or does not perform.In addition, shown or discussed each composition portion
Point mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, equipment or unit
Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, be shown as unit
The component shown can be or may not be physical unit, you can be located at a place, can also be distributed to multiple network lists
In member;Part or all of unit therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing module, also may be used
To be each unit individually as a unit, can also two or more units integrate in a unit;It is above-mentioned
The form that hardware had both may be used in integrated unit is realized, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and aforementioned program can be stored in a computer read/write memory medium, the program
When being executed, step including the steps of the foregoing method embodiments is performed;And aforementioned storage medium includes:It is movable storage device, read-only
Memory(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or
The various media that can store program code such as person's CD.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of information processing method, applied to the first electronic equipment, the first electronic equipment operation Android debugging bus ADB
Driving is connect with the second electronic equipment;The method includes:
Determine that the port being connect with second electronic equipment is first port using ADB drivings;
When detecting that the first port receives the connection request of the first application that second electronic equipment is sent, from institute
State the mark that extraction in connection request obtains first application;
According to the mark of the described first application, judge whether first application meets first condition;
When the described first application meets first condition, the connection request of refusal first application;
The method further includes:When the described first application does not meet first condition, connection speed is obtained or according to first
The mark of application judges whether the first application is to have installed application or detected whether the described first installation number applied surpasses
Cross preset threshold value;
The method further includes:The first moment of connection first application is obtained, according to the mark of the described first application, is obtained
The described first installation number applied in preset time range before first moment.
2. according to the method described in claim 1, it is characterized in that, the first condition is:
The mark of first application connects in preset first list in the first list comprising one or more refusals
The corresponding mark of application;
Alternatively,
Not in preset second list, the second list includes one or more to be allowed to connect the mark of first application
The corresponding mark of application.
3. according to the method described in claim 1, it is characterized in that, it is described when described first application do not meet first condition when,
Connection speed is obtained to include:
When the described first application does not meet first condition, the connection request of first application is received;
According to preset Connecting quantity, determine to receive the connection speed of first application;
According to connection speed connection first application.
4. according to the method described in claim 1, it is characterized in that, it is described when described first application do not meet first condition when,
Judge whether the first application is to have installed to apply to include according to the mark of the first application:
When the described first application does not meet first condition,
First application is connected, obtains the mark of first application;
Judge whether first application is to have installed application according to the mark of the described first application;
When to have installed in application, refusing installation first application.
5. according to the method described in claim 1, it is characterized in that, it is described when described first application do not meet first condition when,
Whether the installation number for detecting first application includes more than preset threshold value:
When the described first application does not meet first condition,
First application is connected, obtains the mark of first application, described the is determined according to the mark of the described first application
The installation number of one application;
Whether the installation number for detecting first application is more than preset threshold value,
If being more than, refuse that first application is installed.
6. a kind of electronic equipment, the electronic equipment includes:
Connection management unit connect for running ADB drivings with the second electronic equipment;Using the ADB driving determine with it is described
The port of second electronic equipment connection is first port;
Processing unit detects that the first port receives the company of the first application that second electronic equipment is sent for working as
When connecing request, the mark of first application is obtained;According to the mark of the described first application, judge whether first application accords with
Close first condition;When the described first application meets first condition, the connection request of refusal first application;
The processing unit, for when the described first application does not meet first condition, obtaining connection speed or according to the
The mark of one application judges whether the first application is to have installed application or whether detected the described first installation number applied
More than preset threshold value;
The processing unit, specifically for obtaining the first moment of connection first application, according to the mark of the described first application
Know, the described first installation number applied in preset time range before obtaining first moment.
7. electronic equipment according to claim 6, which is characterized in that
The first condition is:The mark of first application includes one in preset first list in the first list
The corresponding mark of application of a or multiple refusal connections;
Alternatively, the mark of first application, not in preset second list, the second list includes one or more fair
Perhaps the corresponding mark of application connected.
8. electronic equipment according to claim 6, which is characterized in that
The processing unit is additionally operable to, when the described first application does not meet first condition, receive the connection of first application
Request;According to preset Connecting quantity, determine to receive the connection speed of first application;Company is passed through according to the connection speed
Connect administrative unit connection first application.
9. electronic equipment according to claim 6, which is characterized in that
The processing unit is additionally operable to when the described first application does not meet first condition, and connection first application obtains institute
State the mark of the first application;Judge whether first application is to have installed application according to the mark of the described first application;When for
It has installed in application, refusing installation first application.
10. electronic equipment according to claim 6, which is characterized in that
The processing unit is additionally operable to, when the described first application does not meet first condition, institute be connected by connection management unit
State the first application;The mark of first application is obtained, the peace of first application is determined according to the mark of the described first application
Fill number;Whether the installation number for detecting first application is more than preset threshold value, if being more than, refuses to install described first
Using.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410098090.2A CN103914423B (en) | 2014-03-14 | 2014-03-14 | A kind of information processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410098090.2A CN103914423B (en) | 2014-03-14 | 2014-03-14 | A kind of information processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103914423A CN103914423A (en) | 2014-07-09 |
CN103914423B true CN103914423B (en) | 2018-07-03 |
Family
ID=51040118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410098090.2A Active CN103914423B (en) | 2014-03-14 | 2014-03-14 | A kind of information processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103914423B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106022106A (en) * | 2016-05-30 | 2016-10-12 | 努比亚技术有限公司 | Application installation method and device and terminal |
CN109344096A (en) * | 2018-09-07 | 2019-02-15 | 彩讯科技股份有限公司 | A kind of method, apparatus, equipment and storage medium connecting external equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279706A (en) * | 2013-06-07 | 2013-09-04 | 北京奇虎科技有限公司 | Method and device for intercepting installation of Android application program in mobile terminal |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7062260B2 (en) * | 2003-03-27 | 2006-06-13 | Nokia Corporation | Fetching application and driver for extension device from network |
JP2005217584A (en) * | 2004-01-28 | 2005-08-11 | Nec Corp | Control station, radio communication system, and radio communication method |
US7345585B2 (en) * | 2005-08-01 | 2008-03-18 | Cisco Technology, Inc. | Network based device for providing RFID middleware functionality |
CN102981914A (en) * | 2011-09-05 | 2013-03-20 | 联想(北京)有限公司 | Synchronized method and electronic device |
CN103092721B (en) * | 2011-10-31 | 2017-04-19 | 联想(北京)有限公司 | Application backing up method, electronic equipment and system |
CN102938703A (en) * | 2011-08-15 | 2013-02-20 | 联想(北京)有限公司 | Application management method and device |
-
2014
- 2014-03-14 CN CN201410098090.2A patent/CN103914423B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279706A (en) * | 2013-06-07 | 2013-09-04 | 北京奇虎科技有限公司 | Method and device for intercepting installation of Android application program in mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103914423A (en) | 2014-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104216840B (en) | The method and device that a kind of USB sets and operated to external equipment | |
CN104717344B (en) | Mobile terminal application model switching method, device and mobile terminal | |
CN110851387A (en) | Interface function configuration method and electronic equipment | |
CN104809046B (en) | A kind of application program networking control method and application program networking control device | |
CN106851779A (en) | A kind of method and mobile terminal for recognizing access point and focus | |
CN103914423B (en) | A kind of information processing method and electronic equipment | |
CN104125218A (en) | Equipment identification method, device and system | |
CN105574402A (en) | Control method and electronic equipment | |
CN106203111A (en) | Method and device for preventing clipboard data from being modified and terminal equipment | |
CN107111568A (en) | System and method for driver installation file to be presented when enabling USB equipment | |
CN114817115A (en) | Serial port communication method and related device | |
CN104268193A (en) | Advertisement webpage intercepting method and device | |
CN106598649A (en) | Application program installation method and device, and electronic equipment | |
CN105975306A (en) | Application program starting management method and application program starting management apparatus for electronic device | |
CN109347876A (en) | A kind of safety defense method and relevant apparatus | |
CN105912417B (en) | The detection method and related software operation method and relevant apparatus of virtual system | |
CN106445516B (en) | External radio trawl performance loading method and device | |
CN105430052A (en) | Arbitration method and arbitration device for cluster system | |
CN107346296B (en) | Driving method and device | |
CN104598243A (en) | Multi-user application program management method and device applied to intelligent terminal | |
CN107025126B (en) | Resource scheduling method, NFVO and system | |
WO2020007250A1 (en) | Pseudo base station identification on-off control method and device, mobile terminal, and storage medium | |
CN106301708A (en) | Processing method and processing device when a kind of information sends unsuccessfully | |
CN110162389A (en) | Application program starting method and device and intelligent interaction equipment | |
CN104239772A (en) | Information processing method and electronic equipment |
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 |