CN103914423B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

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
identifier
condition
connection
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410098090.2A
Other languages
Chinese (zh)
Other versions
CN103914423A (en
Inventor
刘晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410098090.2A priority Critical patent/CN103914423B/en
Publication of CN103914423A publication Critical patent/CN103914423A/en
Application granted granted Critical
Publication of CN103914423B publication Critical patent/CN103914423B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Information processing method and electronic equipment
Technical Field
The present invention relates to a connection management technology in the field of intelligent terminals, and in particular, to an information processing method and an electronic device.
Background
At present, more and more electronic devices are connected with other electronic devices to download and install applications from the other electronic devices, for example, the electronic devices are connected with a computer through an Android Debug bus (ADB, Android Debug Bridge) to obtain applications from the computer and install the applications.
However, when the electronic device downloads and installs the application through the ADB, some unnecessary applications may be used, which may affect the use experience, and sometimes may threaten the use security of the electronic device, for example, a user may download malicious software or automatically and repeatedly install the software.
Disclosure of Invention
In view of this, an object of the present invention is to provide an information processing method and an electronic device, which can ensure the use safety of the electronic device and ensure the use experience of the user.
The embodiment of the invention provides an information processing method, which is applied to first electronic equipment, wherein the first electronic equipment runs an ADB driver and is connected with second electronic equipment; the method comprises the following steps:
determining a port connected with the second electronic device as a first port by using the ADB driver;
when detecting that the first port receives a connection request of a first application sent by the second electronic device, acquiring an identifier of the first application;
judging whether the first application meets a first condition or not according to the identifier of the first application;
and when the first application meets a first condition, rejecting the connection request of the first application.
In the foregoing solution, the first condition is: the identifier of the first application is in a preset first list, and the first list comprises identifiers corresponding to one or more applications rejecting connection;
or,
the identifier of the first application is not in a preset second list, and the second list comprises identifiers corresponding to one or more applications allowing connection.
In the foregoing solution, after determining whether the first application meets the first condition, the method further includes:
receiving a connection request of the first application when the first application does not meet a first condition;
determining a connection speed for receiving the first application according to a preset connection parameter;
connecting the first application according to the connection speed.
In the foregoing solution, after determining whether the first application meets the first condition, the method further includes:
when the first application does not meet the first condition,
connecting the first application, and acquiring the identifier of the first application;
judging whether the first application is an installed application or not according to the identifier of the first application;
and refusing to install the first application when the application is an installed application.
In the foregoing solution, after determining whether the first application meets the first condition, the method further includes:
when the first application does not meet the first condition,
connecting the first application, acquiring an identifier of the first application, and determining the installation times of the first application according to the identifier of the first application;
detecting whether the installation times of the first application exceed a preset threshold value,
and if so, refusing to install the first application.
In the foregoing solution, the determining the number of times of installation of the first application according to the identifier of the first application includes:
obtaining a first time of connection of the first application,
and acquiring the installation times of the first application in a preset time range before the first moment according to the identifier of the first application.
An embodiment of the present invention further provides an electronic device, where the electronic device includes:
the connection management unit is used for operating the ADB driver to be connected with the second electronic equipment; determining a port connected with the second electronic device as a first port by using the ADB driver;
the processing unit is used for acquiring an identifier of a first application when detecting that the first port receives a connection request of the first application sent by the second electronic equipment; judging whether the first application meets a first condition or not according to the identifier of the first application; and when the first application meets a first condition, rejecting the connection request of the first application.
In the foregoing solution, the first condition is: the identifier of the first application is in a preset first list, and the first list comprises identifiers corresponding to one or more applications rejecting connection; or the identifier of the first application is not in a preset second list, and the second list contains identifiers corresponding to one or more applications allowed to be connected.
In the foregoing solution, the processing unit is further configured to receive a connection request of the first application when the first application does not meet a first condition; determining a connection speed for receiving the first application according to a preset connection parameter; and connecting the first application through a connection management unit according to the connection speed.
In the foregoing solution, the processing unit is further configured to connect the first application to obtain an identifier of the first application when the first application does not meet a first condition; judging whether the first application is an installed application or not according to the identifier of the first application; and refusing to install the first application when the application is an installed application.
In the foregoing solution, the processing unit is further configured to connect the first application through a connection management unit when the first application does not meet a first condition; acquiring an identifier of the first application, and determining the installation times of the first application according to the identifier of the first application; and detecting whether the installation times of the first application exceed a preset threshold value, and if so, refusing to install the first application.
In the foregoing solution, the processing unit is specifically configured to obtain a first time when the first application is connected, and obtain, according to an identifier of the first application, the installation times of the first application within a preset time range before the first time.
The information processing method and the electronic equipment provided by the invention can judge whether the application meets the first condition or not when the ADB driver receives the connection request of any application, and reject the connection request of the application once the application does not meet the first condition. Therefore, the connection request of the unnecessary application can not be received through the ADB drive, so that the use safety of the electronic equipment is ensured, and the use experience of a user is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a first flowchart illustrating an information processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second information processing method according to an embodiment of the present invention;
FIG. 3 is a third schematic flow chart of an information processing method according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart illustrating an information processing method according to an embodiment of the present invention;
fig. 5 is a schematic view of a composition structure of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. In the present application, the embodiments and features of the embodiments may be arbitrarily combined with each other without conflict. The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The first embodiment,
The information processing method provided by the embodiment of the invention is applied to first electronic equipment, wherein the first electronic equipment can be a smart phone, a tablet personal computer or the like, the first electronic equipment runs an ADB driver and is connected with second electronic equipment, and the second electronic equipment can be a desktop computer, a notebook computer or the like; as shown in fig. 1, the method includes:
step 101: determining a port connected with the second electronic device as a first port by using the ADB driver;
step 102: when detecting that the first port receives a connection request of a first application sent by the second electronic device, acquiring an identifier of the first application;
step 103: judging whether the first application meets a first condition or not according to the identifier of the first application;
step 104: and when the first application meets a first condition, rejecting the connection request of the first application.
Here, the first condition may be: the identifier of the first application is in a preset first list, where the first list includes identifiers corresponding to one or more applications that refuse connection, for example, a list composed of applications that refuse connection is often called a blacklist at present, that is, the first list may be a blacklist;
alternatively, the identifier of the first application is not in a preset second list, where the second list includes identifiers corresponding to one or more applications that are allowed to connect, for example, a list formed by the applications that are allowed to connect is generally referred to as a white list, that is, the second list may be a white list.
The ADB driver may determine a port for the first electronic device, connect to the second electronic device using the determined port, and transmit information through the determined port.
The identification of the first application may be a name of the application.
In a use scenario of the above scheme, for example, the first electronic device is a smartphone running an android system, the second electronic device may be a desktop, and the smartphone is connected to the desktop through an ADB driver;
after the smart phone determines to use the first port to be connected with the desktop through the ADB driver;
detecting whether the first port receives a connection request of any application sent by a desktop computer in real time;
when a connection request of any application is received, extracting an identifier corresponding to the application from the connection request;
and searching a pre-stored blacklist according to the identifier, judging whether the blacklist has the same identifier, and if so, rejecting the connection request of the application.
Therefore, by using the scheme, when the ADB driver receives the connection request of any application, whether the application meets the first condition or not can be judged, and once the application does not meet the first condition, the connection request of the application is rejected. Therefore, the connection request of the unnecessary application can not be received through the ADB drive, so that the use safety of the electronic equipment is ensured, and the use experience of a user is ensured.
Example II,
The information processing method provided by the embodiment of the invention is applied to first electronic equipment, wherein the first electronic equipment can be a smart phone, a tablet personal computer or the like, the first electronic equipment runs an ADB driver and is connected with second electronic equipment, and the second electronic equipment can be a desktop computer, a notebook computer or the like; as shown in fig. 2, the method includes:
step 201: determining, with the ADB driver, a port connected with the second electronic device as a first port.
Step 202: when detecting that the first port receives a connection request of a first application sent by the second electronic device, acquiring an identifier of the first application.
Step 203: judging whether the first application meets a first condition or not according to the identifier of the first application, and executing step 204 when the first application meets the first condition; otherwise, step 205 is performed.
Step 204: and when the first application meets the first condition, rejecting the connection request of the first application, and ending the processing flow.
Step 205: when the first application does not meet a first condition, receiving a connection request of the first application.
Step 206: and determining the connection speed for receiving the first application according to preset connection parameters.
Step 207: connecting the first application according to the connection speed.
Here, the first condition may be: the identifier of the first application is in a preset first list, where the first list includes identifiers corresponding to one or more applications that refuse connection, for example, a list composed of applications that refuse connection is often called a blacklist at present, that is, the first list may be a blacklist;
alternatively, the identifier of the first application is not in a preset second list, where the second list includes identifiers corresponding to one or more applications that are allowed to connect, for example, a list formed by the applications that are allowed to connect is generally referred to as a white list, that is, the second list may be a white list.
The ADB driver may determine a port for the first electronic device, connect to the second electronic device using the determined port, and transmit information through the determined port.
The identification of the first application may be a name of the application.
The determining, according to the preset connection parameter, the connection speed of receiving the first application may be determining the connection speed of the first application according to a right corresponding to the first application in the first list or the second list; the authority corresponding to the first application in the first list or the second list may be preset according to an actual situation, and details are not repeated here.
In a use scenario of the above scheme, for example, the first electronic device is a smartphone running an android system, the second electronic device may be a desktop, and the smartphone is connected to the desktop through an ADB driver;
after the smart phone determines to use the first port to be connected with the desktop through the ADB driver;
detecting whether the first port receives a connection request of any application sent by a desktop computer in real time;
when a connection request of any application is received, extracting an identifier corresponding to the application from the connection request;
searching a pre-stored blacklist according to the identifier, judging whether the blacklist has the same identifier, and if so, rejecting the connection request of the application; and if not, determining the connection speed of the application according to preset connection parameters.
Therefore, by using the scheme, when the ADB driver receives the connection request of any application, whether the application meets the first condition or not can be judged, and once the application does not meet the first condition, the connection request of the application is rejected. Therefore, the connection request of the unnecessary application can not be received through the ADB drive, so that the use safety of the electronic equipment is ensured, and the use experience of a user is ensured.
Example III,
The information processing method provided by the embodiment of the invention is applied to first electronic equipment, wherein the first electronic equipment can be a smart phone, a tablet personal computer or the like, the first electronic equipment runs an ADB driver and is connected with second electronic equipment, and the second electronic equipment can be a desktop computer, a notebook computer or the like; as shown in fig. 3, the method includes:
step 301: determining, with the ADB driver, a port connected with the second electronic device as a first port.
Step 302: when detecting that the first port receives a connection request of a first application sent by the second electronic device, acquiring an identifier of the first application.
Step 303: judging whether the first application meets a first condition or not according to the identifier of the first application, and executing a step 304 when the first application meets the first condition; otherwise, step 305 is performed.
Step 304: and when the first application meets the first condition, rejecting the connection request of the first application, and ending the processing flow.
Step 305: and when the first application does not meet the first condition, connecting the first application and acquiring the identifier of the first application.
Step 306: judging whether the first application is an installed application or not according to the identifier of the first application; and refusing to install the first application when the application is an installed application.
Here, the first condition may be: the identifier of the first application is in a preset first list, where the first list includes identifiers corresponding to one or more applications that refuse connection, for example, a list composed of applications that refuse connection is often called a blacklist at present, that is, the first list may be a blacklist;
alternatively, the identifier of the first application is not in a preset second list, where the second list includes identifiers corresponding to one or more applications that are allowed to connect, for example, a list formed by the applications that are allowed to connect is generally referred to as a white list, that is, the second list may be a white list.
The ADB driver may determine a port for the first electronic device, connect to the second electronic device using the determined port, and transmit information through the determined port.
The identification of the first application may be a name of the application.
The determining, according to the preset connection parameter, the connection speed of receiving the first application may be determining the connection speed of the first application according to a right corresponding to the first application in the first list or the second list; the authority corresponding to the first application in the first list or the second list may be preset according to an actual situation, and details are not repeated here.
Judging whether the first application is an installed application or not according to the identifier of the first application; when the application is an installed application, refusing to install the first application may include: after receiving a first application, acquiring an identifier of the first application, detecting whether the first application is an installed application according to identifiers of all installed applications recorded by the first application, and if the first application is the installed application, refusing to install the first application again; otherwise, the first application is installed.
By using the scheme, when the ADB driver receives the connection request of any application, whether the application meets the first condition or not can be judged, and the connection request of the application is rejected once the application does not meet the first condition; therefore, the connection request of the unnecessary application can not be received through the ADB drive, so that the use safety of the electronic equipment is ensured, and the use experience of a user is ensured. In addition, whether the installation operation is executed can be determined by judging whether the application is the installed application after receiving the application; therefore, the system space occupied by a certain application in multiple times of installation can be prevented, and the use experience of a user is improved.
Example four,
The information processing method provided by the embodiment of the invention is applied to first electronic equipment, wherein the first electronic equipment can be a smart phone, a tablet personal computer or the like, the first electronic equipment runs an ADB driver and is connected with second electronic equipment, and the second electronic equipment can be a desktop computer, a notebook computer or the like; as shown in fig. 4, the method includes:
step 401: determining, with the ADB driver, a port connected with the second electronic device as a first port.
Step 402: when detecting that the first port receives a connection request of a first application sent by the second electronic device, acquiring an identifier of the first application.
Step 403: judging whether the first application meets a first condition or not according to the identifier of the first application, and executing a step 404 when the first application meets the first condition; otherwise, step 405 is performed.
Step 404: and when the first application meets the first condition, rejecting the connection request of the first application, and ending the processing flow.
Step 405: and when the first application does not meet a first condition, connecting the first application, acquiring the identifier of the first application, and determining the installation times of the first application according to the identifier of the first application.
Step 406: and detecting whether the installation times of the first application exceed a preset threshold value, and if so, refusing to install the first application.
Here, the first condition may be: the identifier of the first application is in a preset first list, where the first list includes identifiers corresponding to one or more applications that refuse connection, for example, a list composed of applications that refuse connection is often called a blacklist at present, that is, the first list may be a blacklist;
alternatively, the identifier of the first application is not in a preset second list, where the second list includes identifiers corresponding to one or more applications that are allowed to connect, for example, a list formed by the applications that are allowed to connect is generally referred to as a white list, that is, the second list may be a white list.
The ADB driver may determine a port for the first electronic device, connect to the second electronic device using the determined port, and transmit information through the determined port.
The identification of the first application may be a name of the application.
The determining, according to the preset connection parameter, the connection speed of receiving the first application may be determining the connection speed of the first application according to a right corresponding to the first application in the first list or the second list; the authority corresponding to the first application in the first list or the second list may be preset according to an actual situation, and details are not repeated here.
Preferably, through the above steps 405 to 406, after receiving the first application, acquiring an identifier of the first application, detecting whether the first application is an application that has been installed multiple times according to the identifiers of all installed applications recorded by the first application and the number of times of installing the first application, and if the first application is an application that has been installed multiple times, refusing to install the first application again; otherwise, the first application is installed.
The determining the installation times of the first application according to the identifier of the first application may include: and acquiring a first moment of connecting the first application, and acquiring the installation times of the first application within a preset time range before the first moment according to the identifier of the first application. In this way, when a certain application is installed for multiple times in a short time, the application is refused to be installed again, so that the situation that the useful application cannot be installed again after a certain period of time due to the fact that the certain application is installed for multiple times can be avoided; and the influence of malicious software on the electronic equipment can be reduced.
By using the scheme, when the ADB driver receives the connection request of any application, whether the application meets the first condition or not can be judged, and the connection request of the application is rejected once the application does not meet the first condition; therefore, the connection request of the unnecessary application can not be received through the ADB drive, so that the use safety of the electronic equipment is ensured, and the use experience of a user is ensured. In addition, whether the installation operation is executed can be determined by judging whether the application is the installed application after receiving the application; therefore, the system space occupied by a certain application in multiple times of installation can be prevented, and the use experience of a user is improved.
Example V,
In an embodiment of the present invention, an electronic device may be a smart phone or a tablet computer, and as shown in fig. 5, the electronic device includes:
a connection management unit 51 for operating the ADB driver to connect with the second electronic device; determining a port connected with the second electronic device as a first port by using the ADB driver;
the processing unit 52 is configured to, when it is detected that the first port receives a connection request of a first application sent by the second electronic device, obtain an identifier of the first application; judging whether the first application meets a first condition or not according to the identifier of the first application; and when the first application meets a first condition, rejecting the connection request of the first application.
Wherein the first condition may be: the identifier of the first application is in a preset first list, where the first list includes identifiers corresponding to one or more applications that refuse connection, for example, a list composed of applications that refuse connection is often referred to as a blacklist, that is, the first list may be a blacklist; alternatively, the identifier of the first application is not in a preset second list, where the second list includes identifiers corresponding to one or more applications that are allowed to connect, for example, a list formed by the applications that are allowed to connect is generally referred to as a white list, that is, the second list may be a white list.
Wherein the ADB driver may determine a port, connect with the second electronic device using the determined port, and transmit information through the determined port.
The identification of the first application may be a name of the application.
In a use scenario of the above scheme, for example, the electronic device is a smartphone running an android system, the second electronic device may be a desktop, and the smartphone is connected to the desktop through an ADB driver installed in the connection management unit 51;
after the connection management unit 51 determines to connect with the desktop using the first port by the ADB driver;
the processing unit 52 detects whether the first port receives a connection request of any application from the desktop computer in real time; when a connection request of any application is received, extracting an identifier corresponding to the application from the connection request; and searching a pre-stored blacklist according to the identifier, judging whether the blacklist has the same identifier, and if so, rejecting the connection request of the application.
Therefore, by using the scheme, when the ADB driver receives the connection request of any application, whether the application meets the first condition or not can be judged, and once the application does not meet the first condition, the connection request of the application is rejected. Therefore, the connection request of the unnecessary application can not be received through the ADB drive, so that the use safety of the electronic equipment is ensured, and the use experience of a user is ensured.
Example six,
In an embodiment of the present invention, an electronic device may be a smart phone or a tablet computer, and as shown in fig. 5, the electronic device includes:
a connection management unit 51 for operating the ADB driver to connect with the second electronic device; determining a port connected with the second electronic device as a first port by using the ADB driver;
the processing unit 52 is configured to, when it is detected that the first port receives a connection request of a first application sent by the second electronic device, obtain an identifier of the first application; judging whether the first application meets a first condition or not according to the identifier of the first application; and when the first application meets a first condition, rejecting the connection request of the first application.
Wherein the first condition may be: the identifier of the first application is in a preset first list, where the first list includes identifiers corresponding to one or more applications that refuse connection, for example, a list composed of applications that refuse connection is often called a blacklist at present, that is, the first list may be a blacklist; alternatively, the identifier of the first application is not in a preset second list, where the second list includes identifiers corresponding to one or more applications that are allowed to connect, for example, a list formed by the applications that are allowed to connect is generally referred to as a white list, that is, the second list may be a white list.
The ADB driver may determine a port for the first electronic device, connect to the second electronic device using the determined port, and transmit information through the determined port.
The identification of the first application may be a name of the application.
Preferably, the processing unit 52 is further configured to receive a connection request of the first application when the first application does not meet the first condition; determining a connection speed for receiving the first application according to a preset connection parameter; the first application is connected through the connection management unit 51 according to the connection speed. The determining of the connection speed for receiving the first application according to the preset connection parameter may be determining the connection speed of the first application according to a right corresponding to the first application in the first list or the second list; the authority corresponding to the first application in the first list or the second list may be preset according to an actual situation, and details are not repeated here.
In a use scenario of the above scheme, for example, the electronic device is a smartphone running an android system, the second electronic device may be a desktop, and the second electronic device is connected to the desktop through an ADB driver connected to the management unit 51;
after determining to connect with the desktop using the first port by the ADB driver;
the processing unit 52 detects whether the first port receives a connection request of any application from the desktop computer in real time; when a connection request of any application is received, extracting an identifier corresponding to the application from the connection request; searching a pre-stored blacklist according to the identifier, judging whether the blacklist has the same identifier, and if so, rejecting the connection request of the application; and if not, determining the connection speed of the application according to preset connection parameters.
Therefore, by using the scheme, when the ADB driver receives the connection request of any application, whether the application meets the first condition or not can be judged, and once the application does not meet the first condition, the connection request of the application is rejected. Therefore, the connection request of the unnecessary application can not be received through the ADB drive, so that the use safety of the electronic equipment is ensured, and the use experience of a user is ensured.
Example seven,
In an embodiment of the present invention, an electronic device may be a smart phone or a tablet computer, and as shown in fig. 5, the electronic device includes:
a connection management unit 51 for operating the ADB driver to connect with the second electronic device; determining a port connected with the second electronic device as a first port by using the ADB driver;
the processing unit 52 is configured to, when it is detected that the first port receives a connection request of a first application sent by the second electronic device, obtain an identifier of the first application; judging whether the first application meets a first condition or not according to the identifier of the first application; and when the first application meets a first condition, rejecting the connection request of the first application.
Wherein the first condition may be: the identifier of the first application is in a preset first list, where the first list includes identifiers corresponding to one or more applications that refuse connection, for example, a list composed of applications that refuse connection is often called a blacklist at present, that is, the first list may be a blacklist; alternatively, the identifier of the first application is not in a preset second list, where the second list includes identifiers corresponding to one or more applications that are allowed to connect, for example, a list formed by the applications that are allowed to connect is generally referred to as a white list, that is, the second list may be a white list.
The ADB driver may determine a port for the first electronic device, connect to the second electronic device using the determined port, and transmit information through the determined port.
The identification of the first application may be a name of the application.
Preferably, the processing unit 52 is further configured to receive a connection request of the first application when the first application does not meet the first condition; determining a connection speed for receiving the first application according to a preset connection parameter; connecting the first application through a connection management unit 51 according to the connection speed; when the first application is connected, acquiring the identifier of the first application; judging whether the first application is an installed application or not according to the identifier of the first application; and refusing to install the first application when the application is an installed application.
The determining of the connection speed for receiving the first application according to the preset connection parameter may be determining the connection speed of the first application according to a right corresponding to the first application in the first list or the second list; the authority corresponding to the first application in the first list or the second list may be preset according to an actual situation, and details are not repeated here.
Preferably, the processing unit 52 is specifically configured to, after receiving the first application, obtain an identifier of the first application, detect whether the first application is an installed application according to identifiers of all installed applications recorded by the processing unit, and if the first application is an installed application, refuse to install the first application again; otherwise, the first application is installed.
By using the scheme, when the ADB driver receives the connection request of any application, whether the application meets the first condition or not can be judged, and the connection request of the application is rejected once the application does not meet the first condition; therefore, the connection request of the unnecessary application can not be received through the ADB drive, so that the use safety of the electronic equipment is ensured, and the use experience of a user is ensured. In addition, whether the installation operation is executed can be determined by judging whether the application is the installed application after receiving the application; therefore, the system space occupied by a certain application in multiple times of installation can be prevented, and the use experience of a user is improved.
Example eight,
In an embodiment of the present invention, an electronic device may be a smart phone or a tablet computer, and as shown in fig. 5, the electronic device includes:
a connection management unit 51 for operating the ADB driver to connect with the second electronic device; determining a port connected with the second electronic device as a first port by using the ADB driver;
the processing unit 52 is configured to, when it is detected that the first port receives a connection request of a first application sent by the second electronic device, obtain an identifier of the first application; judging whether the first application meets a first condition or not according to the identifier of the first application; and when the first application meets a first condition, rejecting the connection request of the first application.
Wherein the first condition may be: the identifier of the first application is in a preset first list, where the first list includes identifiers corresponding to one or more applications that refuse connection, for example, a list composed of applications that refuse connection is often called a blacklist at present, that is, the first list may be a blacklist; alternatively, the identifier of the first application is not in a preset second list, where the second list includes identifiers corresponding to one or more applications that are allowed to connect, for example, a list formed by the applications that are allowed to connect is generally referred to as a white list, that is, the second list may be a white list.
The ADB driver may determine a port for the first electronic device, connect to the second electronic device using the determined port, and transmit information through the determined port.
The identification of the first application may be a name of the application.
The processing unit 52 is further configured to receive a connection request of the first application when the first application does not meet a first condition; determining a connection speed for receiving the first application according to a preset connection parameter; the first application is connected through the connection management unit 51 according to the connection speed.
The processing unit 52 is further configured to connect the first application through the connection management unit 51 when the first application does not meet the first condition; acquiring an identifier of the first application, and determining the installation times of the first application according to the identifier of the first application; and detecting whether the installation times of the first application exceed a preset threshold value, and if so, refusing to install the first application.
The processing unit 52 is specifically configured to acquire a first time when the first application is connected, and acquire, according to the identifier of the first application, the installation frequency of the first application within a preset time range before the first time. Thus, after receiving the first application, the identifier of the first application can be acquired, whether the first application is an application installed for multiple times or not is detected according to the identifiers of all installed applications recorded by the first application and the number of times of installing the first application, and if the first application is an application installed for multiple times, the first application is refused to be installed again; otherwise, the first application is installed.
The determining the installation times of the first application according to the identifier of the first application may include: and acquiring a first moment of connecting the first application, and acquiring the installation times of the first application within a preset time range before the first moment according to the identifier of the first application. In this way, when a certain application is installed for multiple times in a short time, the application is refused to be installed again, so that the situation that the useful application cannot be installed again after a certain period of time due to the fact that the certain application is installed for multiple times can be avoided; and the influence of malicious software on the electronic equipment can be reduced.
The determining, according to the preset connection parameter, the connection speed of receiving the first application may be determining the connection speed of the first application according to a right corresponding to the first application in the first list or the second list; the authority corresponding to the first application in the first list or the second list may be preset according to an actual situation, and details are not repeated here.
By using the scheme, when the ADB driver receives the connection request of any application, whether the application meets the first condition or not can be judged, and the connection request of the application is rejected once the application does not meet the first condition; therefore, the connection request of the unnecessary application can not be received through the ADB drive, so that the use safety of the electronic equipment is ensured, and the use experience of a user is ensured. In addition, whether the installation operation is executed can be determined by judging whether the application is the installed application after receiving the application; therefore, the system space occupied by a certain application in multiple times of installation can be prevented, and the use experience of a user is improved.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. An information processing method is applied to first electronic equipment, wherein the first electronic equipment runs an Android Debug Bus (ADB) driver and is connected with second electronic equipment; the method comprises the following steps:
determining a port connected with the second electronic device as a first port by using the ADB driver;
when detecting that the first port receives a connection request of a first application sent by the second electronic device, extracting and acquiring an identifier of the first application from the connection request;
judging whether the first application meets a first condition or not according to the identifier of the first application;
rejecting a connection request of the first application when the first application meets a first condition;
the method further comprises the following steps: when the first application does not meet a first condition, acquiring a connection speed, or judging whether the first application is an installed application or not according to an identifier of the first application, or detecting whether the installation frequency of the first application exceeds a preset threshold value or not;
the method further comprises the following steps: and acquiring a first moment of connecting the first application, and acquiring the installation times of the first application within a preset time range before the first moment according to the identifier of the first application.
2. The method of claim 1, wherein the first condition is:
the identifier of the first application is in a preset first list, and the first list comprises identifiers corresponding to one or more applications rejecting connection;
or,
the identifier of the first application is not in a preset second list, and the second list comprises identifiers corresponding to one or more applications allowing connection.
3. The method of claim 1, wherein obtaining the connection speed when the first application does not meet a first condition comprises:
receiving a connection request of the first application when the first application does not meet a first condition;
determining a connection speed for receiving the first application according to a preset connection parameter;
connecting the first application according to the connection speed.
4. The method of claim 1, wherein when the first application does not meet the first condition, determining whether the first application is an installed application according to the identifier of the first application comprises:
when the first application does not meet the first condition,
connecting the first application, and acquiring the identifier of the first application;
judging whether the first application is an installed application or not according to the identifier of the first application;
and refusing to install the first application when the application is an installed application.
5. The method of claim 1, wherein detecting whether the number of installations of the first application exceeds a preset threshold when the first application does not meet a first condition comprises:
when the first application does not meet the first condition,
connecting the first application, acquiring an identifier of the first application, and determining the installation times of the first application according to the identifier of the first application;
detecting whether the installation times of the first application exceed a preset threshold value,
and if so, refusing to install the first application.
6. An electronic device, the electronic device comprising:
the connection management unit is used for operating the ADB driver to be connected with the second electronic equipment; determining a port connected with the second electronic device as a first port by using the ADB driver;
the processing unit is used for acquiring an identifier of a first application when detecting that the first port receives a connection request of the first application sent by the second electronic equipment; judging whether the first application meets a first condition or not according to the identifier of the first application; rejecting a connection request of the first application when the first application meets a first condition;
the processing unit is used for acquiring a connection speed when the first application does not meet a first condition, or judging whether the first application is an installed application or not according to an identifier of the first application, or detecting whether the installation frequency of the first application exceeds a preset threshold value or not;
the processing unit is specifically configured to acquire a first time when the first application is connected, and acquire, according to an identifier of the first application, the installation times of the first application within a preset time range before the first time.
7. The electronic device of claim 6,
the first condition is: the identifier of the first application is in a preset first list, and the first list comprises identifiers corresponding to one or more applications rejecting connection;
or the identifier of the first application is not in a preset second list, and the second list contains identifiers corresponding to one or more applications allowed to be connected.
8. The electronic device of claim 6,
the processing unit is further used for receiving a connection request of the first application when the first application does not meet a first condition; determining a connection speed for receiving the first application according to a preset connection parameter; and connecting the first application through a connection management unit according to the connection speed.
9. The electronic device of claim 6,
the processing unit is further configured to connect the first application to obtain an identifier of the first application when the first application does not meet a first condition; judging whether the first application is an installed application or not according to the identifier of the first application; and refusing to install the first application when the application is an installed application.
10. The electronic device of claim 6,
the processing unit is further used for connecting the first application through the connection management unit when the first application is not in accordance with the first condition; acquiring an identifier of the first application, and determining the installation times of the first application according to the identifier of the first application; and detecting whether the installation times of the first application exceed a preset threshold value, and if so, refusing to install the first application.
CN201410098090.2A 2014-03-14 2014-03-14 A kind of information processing method and electronic equipment Active CN103914423B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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
CN102938703A (en) * 2011-08-15 2013-02-20 联想(北京)有限公司 Application management method and device
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
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
US10498731B2 (en) Apparatus and method for controlling wireless network access and wireless data traffic
CN106201574B (en) Application interface starting method and device
CN104767713B (en) Account binding method, server and system
CN106709325B (en) Method and device for monitoring program
CN109547449B (en) Safety detection method and related device
CN103826215A (en) Method and apparatus for carrying out root authority management at terminal equipment
CN104346569A (en) Method and device for identifying malicious advertisements in mobile terminal and mobile terminal
EP2985695A1 (en) Method and device for setting application program state
CN113766487B (en) Cloud mobile phone information acquisition method, device, equipment and medium
CN103944893A (en) Communication method and user equipment
CN103065083A (en) Method and system for monitoring application program interface of intelligent mobile terminal
CN106656985B (en) Backup account login method, device and system
CN104809046A (en) Application program networking control method and application program networking control device
CN105260655A (en) Application program starting protection method, device and system
CN106557404B (en) Application control method and mobile terminal
CN103914423B (en) A kind of information processing method and electronic equipment
CN103678125A (en) Method and system for debugging codes
CN108650702B (en) Broadcast information processing method and user terminal
WO2016197827A1 (en) Method and apparatus for processing malicious bundled software
WO2020007250A1 (en) Pseudo base station identification on-off control method and device, mobile terminal, and storage medium
CN104298924A (en) Method and device for ensuring system safety and terminal
CN104050044A (en) Terminal and method and device for releasing memory
CN109711193B (en) Storage space sharing method and device
CN109699030B (en) Unmanned aerial vehicle authentication method, device, equipment and computer readable storage medium
CN108391281B (en) Bridging method of wireless network, terminal equipment and storage medium

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