CN105204884A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN105204884A
CN105204884A CN201410303007.0A CN201410303007A CN105204884A CN 105204884 A CN105204884 A CN 105204884A CN 201410303007 A CN201410303007 A CN 201410303007A CN 105204884 A CN105204884 A CN 105204884A
Authority
CN
China
Prior art keywords
application
operation layer
condition
installation request
installation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410303007.0A
Other languages
Chinese (zh)
Inventor
陈重
刘永峰
阮景春
刘晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201410303007.0A priority Critical patent/CN105204884A/en
Publication of CN105204884A publication Critical patent/CN105204884A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses an information processing method and electronic equipment. The method comprises the steps that when an installation request of a first application is detected by an Android debugging bus, whether the first application is in accordance with a first condition or not is judged according to the installation request of the first application, and the installation request of the first application is refused when the first application is in accordance with the first condition.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to management technologies of electronic devices, 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), and the applications are obtained from the computer and installed. However, when the electronic device installs the application through the ADB, some unnecessary applications may be installed under the request of the user without knowing, or even some applications for obtaining the privacy of the user may be installed, so that the security of using the electronic device is threatened, and the use experience of the user is affected.
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 improve the security when using the electronic device and ensure the user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides an information processing method, which is applied to first electronic equipment, wherein the first electronic equipment is connected with second electronic equipment through an ADB (address data bus), and the method comprises the following steps:
when the ADB detects an installation request of a first application;
judging whether the first application meets a first condition or not according to the installation request of the first application;
and when the first application meets a first condition, rejecting the installation request of the first application.
The present invention also provides an electronic device, including:
a connection unit for connecting with a second electronic device through the ADB;
the device comprises a processing unit and a processing unit, wherein the processing unit is used for judging whether a first application meets a first condition or not according to an installation request of the first application when the ADB detects the installation request of the first application; and when the first application meets a first condition, rejecting the installation request of the first application.
The information processing method and the electronic equipment provided by the invention can judge whether the first application is installed or not according to the installation request of the first application, and reject the installation request of the first application when the first application does not meet the first condition. Therefore, some unnecessary applications are prevented from being installed, even some applications with potential safety hazards are installed, so that the safety of electronic equipment is improved, and the use experience of a user is guaranteed.
Drawings
FIG. 1 is a first flowchart illustrating an information processing method according to an embodiment of the present invention;
FIG. 2 is an exemplary diagram of the logical components of an operating system in accordance with an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second information processing method according to an embodiment of the present invention;
FIG. 4 is a third schematic flow chart illustrating an information processing method according to an embodiment of the present invention;
FIG. 5 is a fourth flowchart illustrating an information processing method according to an embodiment of the present invention;
FIG. 6 is a fifth flowchart illustrating an information processing method according to an embodiment of the present invention;
FIG. 7 is a first schematic view of an electronic device according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a second electronic device according to an embodiment of the invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The first embodiment,
The embodiment provides an information processing method, which is applied to first electronic equipment, wherein the first electronic equipment is connected with second electronic equipment through an ADB (address data base); as shown in fig. 1, includes:
step 101: when the ADB detects an installation request of a first application; judging whether the first application meets a first condition or not according to the installation request of the first application;
step 102: and when the first application meets a first condition, rejecting the installation request of the first application.
Here, the first electronic device may be a device with an android operating system, such as a smartphone, a tablet computer, or the like; the second electronic device may be an ADB server, such as a user's personal computer or the like.
The operating system comprises four operating layers which are a first operating layer, a second operating layer, a third operating layer and a fourth operating layer respectively; as shown in fig. 2, the first operation layer may be a Linux operation system and driver layer, the second operation layer may be a native framework and Java runtime environment layer, the third operation layer may be an intermediate layer, i.e., a Java framework layer, and the fourth operation layer may include Java applications for application layers; the first operation layer may include an ADBD for establishing a connection with an ADB server.
The ADB detecting that the installation request of the first application may be: the ADBD at the first operational layer receives an instruction of "addnstallxxx.
Preferably, the method further comprises the following steps: when the first application does not meet a first condition, the operating system allows an installation request of the first application and installs the first application;
wherein the installing the first application may include: when the first operation layer receives the installation request, it receives and caches the installation package of the first application, for example, the instruction may be "pkg: apk ", wherein a and b can be understood as the path of the cache installation package in the electronic equipment;
the first operation layer starts a new installation process, and the installation process is used for controlling the installation of the first application; sending the installation process to a third operation layer through a second operation layer; and the third operation layer executes installation of the first application and then sends an installation completed message to the fourth operation layer.
When the installation request of the first application is rejected when the step 102 is executed, the step may further be executed according to the "pkg: apk' instruction, finding the position of the cache installation package, and deleting the installation package of the first application.
Preferably, the present embodiment may alternatively operate as:
when a second request aiming at the first application is detected, judging whether the first application meets a first condition or not according to the second request of the first application; when the first application meets a first condition, the operation bear refuses a second request of the first application;
the second request may be a request for transmitting or storing the first application, in addition to the installation request, for example, may be a request for transferring a file between the host and the target machine using adb, specifically, "adbpush { host _ path } { target _ path }"; in this way, it is possible to avoid receiving applications or files that have a potential safety hazard or that the user does not want to receive.
Therefore, by adopting the scheme, whether the first application is installed or not can be judged according to the installation request of the first application, and when the first application does not meet the first condition, the installation request of the first application is rejected. Therefore, some unnecessary applications are prevented from being installed, even some applications with potential safety hazards are installed, so that the safety of electronic equipment is improved, and the use experience of a user is guaranteed.
Example II,
The embodiment provides an information processing method, applied to a first electronic device, where the first electronic device is connected to a second electronic device through an ADB, as shown in fig. 3, including:
step 301: when the ADB detects an installation request of a first application; acquiring attribute information of the first application according to the installation request of the first application;
step 302: generating first prompt information according to the attribute information of the first application, wherein the first prompt information is used for inquiring whether the first application is installed;
step 303: receiving first response information corresponding to the first prompt information; and when the first response message is that the installation of the first application is refused, determining that the first application meets a first condition, and refusing the installation request of the first application.
Here, the first electronic device may be a device with an android operating system, such as a smartphone, a tablet computer, or the like; the second electronic device may be an ADB server, such as a user's personal computer or the like.
The operating system comprises four operating layers which are a first operating layer, a second operating layer, a third operating layer and a fourth operating layer respectively; as shown in fig. 2, the first operation layer may be a Linux operation system and driver layer, the second operation layer may be a native framework and Java runtime environment layer, the third operation layer may be an intermediate layer, i.e., a Java framework layer, and the fourth operation layer may include Java applications for application layers; the first operation layer may include an ADBD for establishing a connection with an ADB server.
The ADB detecting that the installation request of the first application may be: ADBD receives an instruction to "addnstallxxx.
The attribute information of the first application may be an identifier of the first application, for example, information such as a name or a number of the first application.
The receiving of the first response information corresponding to the first prompt information may be: when the user sees the first prompt message, the user selects to allow or refuse to install the first application according to the first prompt message, and the result selected by the user is obtained as the first response message.
Preferably, the method further comprises the following steps: when the first application does not meet a first condition, the operating system allows an installation request of the first application and installs the first application;
wherein the installing the first application may include: when the first operation layer receives the installation request, it receives and caches the installation package of the first application, for example, the instruction may be "pkg: apk ", wherein a and b can be understood as the path of the cache installation package in the electronic equipment;
the first operation layer starts a new installation process, and the installation process is used for controlling the installation of the first application; sending the installation process to a third operation layer through a second operation layer; and the third operation layer executes installation of the first application and then sends an installation completed message to the fourth operation layer.
Preferably, the present embodiment may alternatively operate as: when a second request aiming at the first application is detected, judging whether the first application meets a first condition or not according to the second request of the first application; when the first application meets a first condition, the operation bear refuses a second request of the first application;
the second request may be a request for transmitting or storing the first application, in addition to the installation request, for example, may be a request for transferring a file between the host and the target machine using adb, specifically, "adbpush { host _ path } { target _ path }"; in this way, it is possible to avoid receiving applications or files that have a potential safety hazard or that the user does not want to receive.
Therefore, by adopting the scheme, whether the first application is installed or not can be judged according to the installation request of the first application, and when the first application does not meet the first condition, the installation request of the first application is rejected. Therefore, some unnecessary applications are prevented from being installed, even some applications with potential safety hazards are installed, so that the safety of electronic equipment is improved, and the use experience of a user is guaranteed.
Example III,
The embodiment provides an information processing method, which is applied to first electronic equipment, wherein the first electronic equipment is connected with second electronic equipment through an ADB (advanced data bus), and the first electronic equipment supports to run an operating system; the method comprises the following steps:
when the ADB detects an installation request of a first application; judging whether the first application meets a first condition or not according to the installation request of the first application;
and when the first application meets a first condition, rejecting the installation request of the first application.
Here, the first electronic device may be a device with an android operating system, such as a smartphone, a tablet computer, or the like; the second electronic device may be an ADB server, such as a user's personal computer or the like.
The operating system comprises four operating layers which are a first operating layer, a second operating layer, a third operating layer and a fourth operating layer respectively; as shown in fig. 2, the first operation layer may be a Linux operation system and driver layer, the second operation layer may be a native framework and Java runtime environment layer, the third operation layer may be an intermediate layer, i.e., a Java framework layer, and the fourth operation layer may include Java applications for application layers; the first operation layer may include an ADBD for establishing a connection with an ADB server.
In the following, an implementation scenario of the information processing method is provided in combination with four operation layers in the operating system, specifically, as shown in fig. 4, the implementation scenario includes:
step 401: when the ADBD in the first operation layer detects that the second electronic device sends an installation request of a first application, the ADBD sends the installation request of the first application to a fourth operation layer of the operation system through a first preset interface; the first preset interface is used for transmitting information between the first operation layer and the fourth operation layer;
step 402: the fourth operation generates first prompt information according to the installation request of the first application;
step 403: when the fourth operation layer receives first response information corresponding to the first prompt information, whether the first application meets the first condition or not is judged according to the first response information;
step 404: and when the first application meets a first condition, rejecting the installation request of the first application.
The detecting of the installation request of the first application may be: ADBD receives an instruction to "addnstallxxx.
The generating of the first prompt message may include: generating first prompt information according to the attribute information of the first application; the attribute information of the first application may be an identifier of the first application, for example, information such as a name or a number of the first application.
The receiving of the first response information corresponding to the first prompt information may be: when the user sees the first prompt message, the first application is selected to be allowed or refused to be installed according to the first prompt message, and the fourth operation layer obtains a result selected by the user as first response information.
The establishing mode of the first preset interface may be: defining a socket service (server) interface in the ADBD driver of the first operation layer, and transmitting information between the first operation layer and the fourth operation layer through the socket service interface.
Preferably, the method further comprises the following steps: when the first application does not meet the first condition, the fourth operation layer informs the first operation layer of allowing the installation request of the first application through a first preset interface and installs the first application;
wherein the installing the first application may include: when the first operation layer receives the installation request, it receives and caches the installation package of the first application, for example, the instruction may be "pkg: apk ", wherein a and b can be understood as a path or location in the electronic device where the installation package is cached or stored;
the first operation layer starts a new installation process, and the installation process is used for controlling the installation of the first application; sending the installation process to a third operation layer through a second operation layer; and the third operation layer executes installation of the first application and then sends an installation completed message to the fourth operation layer.
When the installation request of the first application is rejected when the above step 404 is executed, the first operation layer may further perform the following operation according to the "pkg: apk' instruction, finding the position of the cache installation package, and deleting the installation package of the first application.
It is understood that the installation request of the first application may be replaced by a request for transmitting or storing the first application, in addition to the installation request, for example, a request for transferring a file between the host and the target machine using adb, specifically, "adbpush { host _ path } { target _ path }"; in this way, it is possible to avoid receiving applications or files that have a potential safety hazard or that the user does not want to receive.
Therefore, by adopting the scheme, the first prompt message can be generated according to the installation request of the first application, the user judges whether the installation of the first application is allowed or not according to the first prompt message, and the installation request of the first application is rejected when the first application does not meet the first condition. So, just make the user can control ADB's installation operation to avoid installing some applications that do not need, install some applications that possess the potential safety hazard even, promote the security when using electronic equipment, guaranteed user's use and experienced.
Example four,
The embodiment provides an information processing method applied to a first electronic device, wherein the first electronic device is connected with a second electronic device through an ADB, and the method includes:
when the ADB detects an installation request of a first application; judging whether the first application meets a first condition or not according to the installation request of the first application;
and when the first application meets a first condition, rejecting the installation request of the first application.
Here, the first electronic device may be a device with an android operating system, such as a smartphone, a tablet computer, or the like; the second electronic device may be an ADB server, such as a user's personal computer or the like.
The operating system comprises four operating layers which are a first operating layer, a second operating layer, a third operating layer and a fourth operating layer respectively; as shown in fig. 2, the first operation layer may be a Linux operation system and driver layer, the second operation layer may be a native framework and Java runtime environment layer, the third operation layer may be an intermediate layer, i.e., a Java framework layer, and the fourth operation layer may include Java applications for application layers; the first operation layer may include an ADBD for establishing a connection with an ADB server.
In the following, an implementation scenario of the information processing method is provided in combination with four operation layers in the operating system, specifically, as shown in fig. 5, the implementation scenario includes:
step 501: when the ADBD in the first operation layer detects that the second electronic device sends an installation request of a first application, notifying a third operation layer to install the first application, generating first prompt information aiming at the first application, and displaying the first prompt information through the fourth operation layer;
step 502: when the fourth operation layer receives first response information corresponding to the first prompt information, whether the first application meets the first condition or not is judged according to the first response information;
step 503: and when the first application meets a first condition, the third operation layer refuses the installation request of the first application.
The detecting of the installation request of the first application may be: ADBD receives an instruction to "addnstallxxx.
In addition, when an installation request of a first application is detected, an installation package for the first application is also received, for example, the instruction may be "pkg: apk ", wherein a and b may be understood as a path or location in the electronic device where the installation package is cached or stored.
Preferably, after completing step 503, the method may further comprise: and the third operation layer informs the ADBD of the first operation layer of rejecting the installation request of the first application, and the first operation layer deletes the cached installation package of the first application according to the notification.
The generating first prompt information for the first application may include: acquiring attribute information of the first application according to the installation request of the first application, and generating first prompt information according to the attribute information; the attribute information of the first application may be an identifier of the first application, for example, information such as a name or a number of the first application.
The receiving of the first response information corresponding to the first prompt information may be: when the user sees the first prompt message, the first application is selected to be allowed or refused to be installed according to the first prompt message, and the fourth operation layer obtains a result selected by the user as first response information.
Preferably, the method further comprises the following steps: when the first application does not meet a first condition, controlling a Package Manager (Manager) in the third operation layer to install the first application.
It is understood that the installation request of the first application may be replaced by a request for transmitting or storing the first application, in addition to the installation request, for example, a request for transferring a file between the host and the target machine using adb, specifically, "adbpush { host _ path } { target _ path }"; in this way, it is possible to avoid receiving applications or files that have a potential safety hazard or that the user does not want to receive.
Therefore, by adopting the scheme, the first prompt message can be generated according to the installation request of the first application, the user judges whether the installation of the first application is allowed or not according to the first prompt message, and the installation request of the first application is rejected when the first application does not meet the first condition. So, just make the user can control ADB's installation operation to avoid installing some applications that do not need, install some applications that possess the potential safety hazard even, promote the security when using electronic equipment, guaranteed user's use and experienced.
Example V,
The embodiment provides an information processing method, applied to a first electronic device, where the first electronic device is connected to a second electronic device through an ADB, as shown in fig. 6, including:
step 601: when the ADB detects an installation request of a first application; acquiring attribute information of the first application according to the installation request of the first application, and judging whether the identification information of the first application in the attribute information is in a preset first list or not, wherein if the identification information of the first application is in the first list, the first application meets a first condition; the first list is a list formed by identification information corresponding to a preset application refusing installation;
step 602: and when the first application meets a first condition, rejecting the installation request of the first application.
Here, the first electronic device may be a device with an android operating system, such as a smartphone, a tablet computer, or the like; the second electronic device may be an ADB server, such as a user's personal computer or the like.
The operating system comprises four operating layers which are a first operating layer, a second operating layer, a third operating layer and a fourth operating layer respectively; as shown in fig. 2, the first operation layer may be a Linux operation system and driver layer, the second operation layer may be a native framework and Java runtime environment layer, the third operation layer may be an intermediate layer, i.e., a Java framework layer, and the fourth operation layer may include Java applications for application layers; the first operation layer may include an ADBD for establishing a connection with an ADB server.
The ADB detecting that the installation request of the first application may be: the ADBD at the first operational layer receives an instruction of "addnstallxxx.
The obtaining of the attribute information of the first application may be: the ADBD of the first operation layer determines the identifier of the first application according to the installation request of the first application; the identification may be a name or number of the first application, etc.
The first list may be in an ADBD drive preset in a first operation layer; or may be preset in the packet manager of the third operation layer.
Accordingly, when the first list is set in the first operation layer, the embodiment may perform the operation of determining whether the first application meets the first condition in the first operation layer.
When the first list is set in the packet manager of the third operation layer, this embodiment may specifically include:
when the first operation layer detects an installation request of a first application; acquiring attribute information of the first application according to the installation request of the first application, starting an installation process by a first operation layer, wherein the installation process is used for controlling the installation of the first application;
sending the installation process to a third operation layer through a second operation layer;
before executing installation of the first application, a packet manager in the third operation layer judges whether identification information of the first application is in a preset first list, and if so, refuses to install the first application; otherwise, continuing to install the first application, and then sending an installation completion message to the fourth operation layer.
It is understood that the installation request of the first application may be replaced by a request for transmitting or storing the first application, in addition to the installation request, for example, a request for transferring a file between the host and the target machine using adb, specifically, "adbpush { host _ path } { target _ path }"; in this way, it is possible to avoid receiving applications or files that have a potential safety hazard or that the user does not want to receive.
Therefore, by adopting the scheme, whether the first application is installed or not can be automatically judged according to the installation request of the first application and the preset first list, and when the first application does not meet the first condition, the installation request of the first application is rejected. Therefore, some unnecessary applications can be prevented from being installed by controlling according to the preset list, and even some applications with potential safety hazards can be installed, so that the safety of using the electronic equipment is improved, and the use experience of a user is guaranteed.
Example six,
The present embodiment provides an electronic device, as shown in fig. 7, the electronic device includes:
a connection unit 71 for connecting with a second electronic device through the ADB;
a processing unit 72, configured to, when detecting an installation request of a first application through an ADB, determine whether the first application meets a first condition according to the installation request of the first application; and when the first application meets a first condition, rejecting the installation request of the first application.
Here, the electronic device may be a device with an android operating system, such as a smartphone, a tablet computer, or the like; the second electronic device may be an ADB server, such as a user's personal computer or the like.
The operating system comprises four operating layers which are a first operating layer, a second operating layer, a third operating layer and a fourth operating layer respectively; as shown in fig. 2, the first operation layer may be a Linux operation system and driver layer, the second operation layer may be a native framework and Java runtime environment layer, the third operation layer may be an intermediate layer, i.e., a Java framework layer, and the fourth operation layer may include Java applications for application layers; the first operation layer may include an ADBD for establishing a connection with an ADB server.
The processing unit 72 is specifically configured to obtain attribute information of the first application; generating first prompt information according to the attribute information of the first application, wherein the first prompt information is used for inquiring whether the first application is installed; receiving first response information corresponding to the first prompt information; and when the first response message is that the installation of the first application is refused, determining that the first application meets a first condition.
The attribute information of the first application may be an identifier of the first application, for example, information such as a name or a number of the first application.
The processing unit 72 is specifically configured to select, when the user sees the first prompt information, whether to allow or deny installation of the first application according to the first prompt information, and obtain a result selected by the user as the first response information.
Preferably, the processing unit 72 is further configured to allow, by the operating system, an installation request of the first application and install the first application when the first application does not meet a first condition;
wherein the installing the first application may include: when the first operation layer receives the installation request, it receives and caches the installation package of the first application, for example, the instruction may be "pkg: apk ", wherein a and b can be understood as a path or location in the electronic device where the installation package is cached or stored;
the first operation layer starts a new installation process, and the installation process is used for controlling the installation of the first application; sending the installation process to a third operation layer through a second operation layer; and the third operation layer executes installation of the first application and then sends an installation completed message to the fourth operation layer.
Preferably, the present embodiment may alternatively operate as: the processing unit 72 is configured to, when detecting a second request for the first application, determine whether the first application meets a first condition according to the second request of the first application; rejecting a second request of the first application when the first application meets a first condition;
the second request may be a request for transmitting or storing the first application, in addition to the installation request, for example, may be a request for transferring a file between the host and the target machine using adb, specifically, "adbpush { host _ path } { target _ path }"; in this way, it is possible to avoid receiving applications or files that have a potential safety hazard or that the user does not want to receive.
Therefore, by adopting the scheme, whether the first application is installed or not can be judged according to the installation request of the first application, and when the first application does not meet the first condition, the installation request of the first application is rejected. Therefore, some unnecessary applications are prevented from being installed, even some applications with potential safety hazards are installed, so that the safety of electronic equipment is improved, and the use experience of a user is guaranteed.
Example seven,
This embodiment provides an electronic device, including:
a connection unit for connecting with a second electronic device through the ADB;
the device comprises a processing unit and a processing unit, wherein the processing unit is used for judging whether a first application meets a first condition or not according to an installation request of the first application when the ADB detects the installation request of the first application; and when the first application meets a first condition, rejecting the installation request of the first application.
Here, the electronic device may be a device with an android operating system, such as a smartphone, a tablet computer, or the like; the second electronic device may be an ADB server, such as a user's personal computer or the like.
The processing unit supports running an operating system, the operating system comprising: four operational layers. Respectively a first operation layer, a second operation layer, a third operation layer and a fourth operation layer; as shown in fig. 2, the first operation layer may be a Linux operation system and driver layer, the second operation layer may be a native framework and Java runtime environment layer, the third operation layer may be an intermediate layer, i.e., a Java framework layer, and the fourth operation layer may include Java applications for application layers;
the first operation layer may include an ADBD, which is a daemon process of the ADB, and is disposed in the electronic device and used for establishing a connection with an ADB server.
In the following, an implementation scenario is provided in combination with the four operation layers in the above operating system, specifically, as shown in fig. 8, the processing unit includes:
the first processing subunit 81, configured to run an ADBD in a first operation layer of an operating system, and configured to send an installation request of a first application to a fourth operation layer through a first preset interface when detecting that the installation request of the first application is sent by the second electronic device; the first preset interface is used for transmitting information between the first operation layer and the fourth operation layer;
a fourth processing subunit 82, configured to run a fourth operation layer of the operating system, and configured to generate first prompt information according to the installation request of the first application; when first response information corresponding to the first prompt information is received, judging whether the first application meets the first condition or not according to the first response information; when the first application meets a first condition, the first processing subunit is informed to reject the installation request of the first application.
The first processing subunit 81 is specifically configured to receive an instruction of "adbinstallxxx.apk" through ADBD, that is, receive an instruction of installing a XXX application.
The fourth processing subunit 82 is specifically configured to generate first prompt information according to the attribute information of the first application; the attribute information of the first application may be an identifier of the first application, for example, information such as a name or a number of the first application.
The fourth processing subunit 82 is specifically configured to select, when the user sees the first prompt information, to allow or deny installation of the first application according to the first prompt information, and the fourth operation layer obtains a result selected by the user as the first response information.
The establishing mode of the first preset interface may be: in the ADBD driver of the first operation layer, a socket service (server) interface is defined, through which information is transmitted between the first operation layer and the fourth operation layer.
Preferably, the fourth processing subunit 82 is further configured to, when the first application does not meet the first condition, notify, by the fourth operation layer, the first operation layer, through a first preset interface, that the installation request of the first application is allowed; accordingly, the first processing subunit 81 is further configured to install the first application.
The processing unit may further include: a second processing subunit 83 and a third processing subunit 84; wherein,
the first processing subunit 81 is configured to receive and cache an installation package of the first application while the first operation layer receives the installation request, for example, the instruction may be "pkg: apk ", wherein a and b can be understood as a path or location in the electronic device where the installation package is cached or stored; the first operation layer starts a new installation process, the installation process is used for controlling installation of the first application, and an installation instruction of the first application is sent to the second processing subunit;
a second processing subunit 83, running a second operation layer of the operating system, and configured to send the installation process to a third operation layer;
the third processing subunit 84 runs the third operation layer of the operating system, and is configured to run the third operation layer to execute installation of the first application, and then send a message that installation is completed to the fourth operation layer.
The first processing subunit 81 is further configured to, when rejecting the installation request of the first application, enable the first operation layer to further perform, according to the "pkg: apk' instruction, finding the position of the cache installation package, and deleting the installation package of the first application.
It is understood that the installation request of the first application may be replaced by a request for transmitting or storing the first application, in addition to the installation request, for example, a request for transferring a file between the host and the target machine using adb, specifically, "adbpush { host _ path } { target _ path }"; in this way, it is possible to avoid receiving applications or files that have a potential safety hazard or that the user does not want to receive.
Therefore, by adopting the scheme, the first prompt message can be generated according to the installation request of the first application, the user judges whether the installation of the first application is allowed or not according to the first prompt message, and the installation request of the first application is rejected when the first application does not meet the first condition. So, just make the user can control ADB's installation operation to avoid installing some applications that do not need, install some applications that possess the potential safety hazard even, promote the security when using electronic equipment, guaranteed user's use and experienced.
Example eight,
This embodiment provides an electronic device, including:
a connection unit for connecting with a second electronic device through the ADB;
the device comprises a processing unit and a processing unit, wherein the processing unit is used for judging whether a first application meets a first condition or not according to an installation request of the first application when the ADB detects the installation request of the first application; and when the first application meets a first condition, rejecting the installation request of the first application.
Here, the electronic device may be a device with an android operating system, such as a smartphone, a tablet computer, or the like; the second electronic device may be an ADB server, such as a user's personal computer or the like.
The processing unit supports running an operating system, the operating system comprising: four operational layers. Respectively a first operation layer, a second operation layer, a third operation layer and a fourth operation layer; as shown in fig. 2, the first operation layer may be a Linux operation system and driver layer, the second operation layer may be a native framework and Java runtime environment layer, the third operation layer may be an intermediate layer, i.e., a Java framework layer, and the fourth operation layer may include Java applications for application layers; the first operation layer may include an ADBD for establishing a connection with an ADB server.
In the following, an implementation scenario is provided by combining four operation layers in the above operating system, and specifically, the processing unit includes:
the first processing subunit runs the ADBD in the first operation layer of the operating system, and is used for notifying a third operation layer to install the first application when detecting that the second electronic device sends an installation request of the first application;
the third processing subunit runs a third operation layer of an operating system, and is used for generating first prompt information aiming at the first application when receiving the notification of the installation process to install the first application and displaying the first prompt information through the fourth operation layer;
a fourth processing subunit, configured to run a fourth operating layer of an operating system, and configured to determine, when the fourth operating layer receives first response information corresponding to the first prompt information, whether the first application meets the first condition according to the first response information; and when the first application meets the first condition, informing the third operation layer to reject the installation request of the first application.
The detecting of the installation request of the first application may be: ADBD receives an instruction to "addnstallxxx.
In addition, when an installation request of a first application is detected, an installation package for the first application is also received, for example, the instruction may be "pkg: apk ", wherein a and b may be understood as a path or location in the electronic device where the installation package is cached or stored.
The generating first prompt information for the first application may include: acquiring attribute information of the first application according to the installation request of the first application, and generating first prompt information according to the attribute information; the attribute information of the first application may be an identifier of the first application, for example, information such as a name or a number of the first application.
The receiving of the first response information corresponding to the first prompt information may be: when the user sees the first prompt message, the first application is selected to be allowed or refused to be installed according to the first prompt message, and the fourth operation layer obtains a result selected by the user as first response information.
Preferably, the method further comprises the following steps: when the first application does not meet a first condition, controlling a Package Manager (Manager) in the third operation layer to install the first application.
It is understood that the installation request of the first application may be replaced by a request for transmitting or storing the first application, in addition to the installation request, for example, a request for transferring a file between the host and the target machine using adb, specifically, "adbpush { host _ path } { target _ path }"; in this way, it is possible to avoid receiving applications or files that have a potential safety hazard or that the user does not want to receive.
Therefore, by adopting the scheme, the first prompt message can be generated according to the installation request of the first application, the user judges whether the installation of the first application is allowed or not according to the first prompt message, and the installation request of the first application is rejected when the first application does not meet the first condition. So, just make the user can control ADB's installation operation to avoid installing some applications that do not need, install some applications that possess the potential safety hazard even, promote the security when using electronic equipment, guaranteed user's use and experienced.
Examples nine,
This embodiment provides an electronic device, including:
a connection unit for connecting with a second electronic device through the ADB;
the device comprises a processing unit and a processing unit, wherein the processing unit is used for judging whether a first application meets a first condition or not according to an installation request of the first application when the ADB detects the installation request of the first application; and when the first application meets a first condition, rejecting the installation request of the first application.
Here, the electronic device may be a device with an android operating system, such as a smartphone, a tablet computer, or the like; the second electronic device may be an ADB server, such as a user's personal computer or the like.
The operating system comprises four operating layers which are a first operating layer, a second operating layer, a third operating layer and a fourth operating layer respectively; as shown in fig. 2, the first operation layer may be a Linux operation system and driver layer, the second operation layer may be a native framework and Java runtime environment layer, the third operation layer may be an intermediate layer, i.e., a Java framework layer, and the fourth operation layer may include Java applications for application layers; the first operation layer may include an ADBD for establishing a connection with an ADB server.
The processing unit is specifically configured to acquire attribute information of the first application; generating first prompt information according to the attribute information of the first application, wherein the first prompt information is used for inquiring whether the first application is installed; receiving first response information corresponding to the first prompt information; and when the first response message is that the installation of the first application is refused, determining that the first application meets a first condition.
The attribute information of the first application may be an identifier of the first application, for example, information such as a name or a number of the first application.
The processing unit is specifically configured to select to allow or reject installation of the first application according to the first prompt information when the user sees the first prompt information, and obtain a result selected by the user as first response information.
Preferably, the processing unit 72 is further configured to allow, by the operating system, an installation request of the first application and install the first application when the first application does not meet a first condition;
wherein the installing the first application may include: when the first operation layer receives the installation request, it receives and caches the installation package of the first application, for example, the instruction may be "pkg: apk ", wherein a and b can be understood as a path or location in the electronic device where the installation package is cached or stored;
the first operation layer starts a new installation process, and the installation process is used for controlling the installation of the first application; sending the installation process to a third operation layer through a second operation layer; and the third operation layer executes installation of the first application and then sends an installation completed message to the fourth operation layer.
The processing unit is specifically configured to acquire attribute information of the first application, determine whether identification information of the first application in the attribute information is in a preset first list, and if the identification information of the first application is in the first list, determine that the first application meets a first condition; the first list is a list formed by preset identification information corresponding to the application refusing installation.
The first list may be preset in the ADBD of the first operation layer; or may be preset in the packet manager of the third operation layer.
Accordingly, when the first list is set in the first operation layer, the embodiment may perform the operation of determining whether the first application meets the first condition in the first operation layer.
When the first list is set in the packet manager of the third operation layer, this embodiment may specifically include:
when the first operation layer detects an installation request of a first application; acquiring attribute information of the first application according to the installation request of the first application, starting an installation process by a first operation layer, wherein the installation process is used for controlling the installation of the first application;
sending the installation process to a third operation layer through a second operation layer;
before executing installation of the first application, a packet manager in the third operation layer judges whether identification information of the first application is in a preset first list, and if so, refuses to install the first application; otherwise, continuing to install the first application, and then sending an installation completion message to the fourth operation layer.
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 removable memory 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 (12)

1. An information processing method is applied to first electronic equipment, wherein the first electronic equipment is connected with second electronic equipment through an Android Debug Bus (ADB), and the method comprises the following steps:
when the ADB detects an installation request of a first application;
judging whether the first application meets a first condition or not according to the installation request of the first application;
and when the first application meets a first condition, rejecting the installation request of the first application.
2. The method of claim 1, wherein the determining whether the first application meets the first condition is:
acquiring attribute information of the first application;
generating first prompt information according to the attribute information of the first application, wherein the first prompt information is used for inquiring whether the first application is installed;
receiving first response information corresponding to the first prompt information;
and when the first response message is that the installation of the first application is refused, determining that the first application meets a first condition.
3. The method of claim 2, wherein the first electronic device supports running an operating system, the operating system comprising: four operational layers.
4. The method of claim 3, wherein the detecting comprises sending an installation request for a first application from the second electronic device; judging whether the first application meets a first condition or not according to the installation request of the first application; rejecting an installation request of the first application when the first application meets a first condition, comprising:
when the ADBD in the first operation layer detects that the second electronic device sends an installation request of a first application, the ADBD sends the installation request of the first application to a fourth operation layer of the operation system through a first preset interface; the first preset interface is used for transmitting information between the first operation layer and the fourth operation layer;
the fourth operation generates first prompt information according to the installation request of the first application;
when the fourth operation layer receives first response information corresponding to the first prompt information, whether the first application meets the first condition or not is judged according to the first response information;
and when the first application meets a first condition, rejecting the installation request of the first application.
5. The method of claim 3, wherein the detecting comprises sending an installation request for a first application from the second electronic device; judging whether the first application meets a first condition or not according to the installation request of the first application; rejecting an installation request of the first application when the first application meets a first condition, comprising:
when the ADBD in the first operation layer detects that the second electronic device sends an installation request of a first application, notifying a third operation layer to install the first application, generating first prompt information aiming at the first application, and displaying the first prompt information through the fourth operation layer;
when the fourth operation layer receives first response information corresponding to the first prompt information, whether the first application meets the first condition or not is judged according to the first response information;
and when the first application meets a first condition, the third operation layer refuses the installation request of the first application.
6. The method of claim 1, wherein determining whether the first application meets a first condition comprises: acquiring attribute information of the first application, and judging whether the identification information of the first application in the attribute information is in a preset first list or not, wherein if the identification information of the first application in the attribute information is in the first list, the first application meets a first condition; the first list is a list formed by preset identification information corresponding to the application refusing installation.
7. An electronic device, the electronic device comprising:
a connection unit for connecting with a second electronic device through the ADB;
the device comprises a processing unit and a processing unit, wherein the processing unit is used for judging whether a first application meets a first condition or not according to an installation request of the first application when the ADB detects the installation request of the first application; and when the first application meets a first condition, rejecting the installation request of the first application.
8. The electronic device of claim 7,
the processing unit is specifically configured to acquire attribute information of the first application; generating first prompt information according to the attribute information of the first application, wherein the first prompt information is used for inquiring whether the first application is installed; receiving first response information corresponding to the first prompt information; and when the first response message is that the installation of the first application is refused, determining that the first application meets a first condition.
9. The electronic device of claim 8, wherein the processing unit supports running an operating system, the operating system comprising: four operational layers.
10. The electronic device of claim 9, wherein the processing unit comprises:
the first processing subunit is used for running the ADBD in the first operation layer of the operating system and sending the installation request of the first application to the fourth operation layer through a first preset interface when detecting that the installation request of the first application is sent by the second electronic device; the first preset interface is used for transmitting information between the first operation layer and the fourth operation layer;
the fourth processing subunit runs a fourth operation layer of the operating system and is used for generating first prompt information according to the installation request of the first application; when first response information corresponding to the first prompt information is received, judging whether the first application meets the first condition or not according to the first response information; when the first application meets a first condition, the first processing subunit is informed to reject the installation request of the first application.
11. The electronic device of claim 9, wherein the processing unit comprises:
the first processing subunit runs the ADBD in the first operation layer of the operating system, and is used for notifying a third operation layer to install the first application when detecting that the second electronic device sends an installation request of the first application;
the third processing subunit runs a third operation layer of the operating system, and is used for generating first prompt information aiming at the first application when receiving a notification to install the first application and displaying the first prompt information through the fourth operation layer;
a fourth processing subunit, configured to run a fourth operating layer of an operating system, and configured to determine, when the fourth operating layer receives first response information corresponding to the first prompt information, whether the first application meets the first condition according to the first response information; and when the first application meets the first condition, informing the third operation layer to reject the installation request of the first application.
12. The electronic device according to claim 7, wherein the processing unit is specifically configured to obtain attribute information of the first application, determine whether identification information of the first application in the attribute information is in a preset first list, and if the identification information is in the first list, determine that the first application meets a first condition; the first list is a list formed by preset identification information corresponding to the application refusing installation.
CN201410303007.0A 2014-06-27 2014-06-27 Information processing method and electronic equipment Pending CN105204884A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410303007.0A CN105204884A (en) 2014-06-27 2014-06-27 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410303007.0A CN105204884A (en) 2014-06-27 2014-06-27 Information processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN105204884A true CN105204884A (en) 2015-12-30

Family

ID=54952587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410303007.0A Pending CN105204884A (en) 2014-06-27 2014-06-27 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105204884A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188535A (en) * 2019-06-10 2019-08-30 南京领创信息科技有限公司 A method of apparatus management/control is realized based on android system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120151269A1 (en) * 2010-12-10 2012-06-14 Helix Technology Inc. Mobile communication terminal capable of testing application and method thereof
CN103279706A (en) * 2013-06-07 2013-09-04 北京奇虎科技有限公司 Method and device for intercepting installation of Android application program in mobile terminal
CN103440467A (en) * 2013-08-30 2013-12-11 广东欧珀移动通信有限公司 Method for controlling mobile terminal through ADB connection
CN103646215A (en) * 2013-12-23 2014-03-19 北京奇虎科技有限公司 Application installation control method, related system and related device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120151269A1 (en) * 2010-12-10 2012-06-14 Helix Technology Inc. Mobile communication terminal capable of testing application and method thereof
CN103279706A (en) * 2013-06-07 2013-09-04 北京奇虎科技有限公司 Method and device for intercepting installation of Android application program in mobile terminal
CN103440467A (en) * 2013-08-30 2013-12-11 广东欧珀移动通信有限公司 Method for controlling mobile terminal through ADB connection
CN103646215A (en) * 2013-12-23 2014-03-19 北京奇虎科技有限公司 Application installation control method, related system and related device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
华鹏: "基于Android平台增强权限管理研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
孙媛 等: "《嵌入式系统基础及应用》", 31 August 2009, 机械工业出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188535A (en) * 2019-06-10 2019-08-30 南京领创信息科技有限公司 A method of apparatus management/control is realized based on android system

Similar Documents

Publication Publication Date Title
US8639814B2 (en) Electronic apparatus, virtual machine providing apparatus, and method of using virtual machine service
US9549316B2 (en) Host device coupled to a mobile phone and method of operating the same
CN104980399B (en) File transmission method, client and proxy server
EP3742785B1 (en) Session management method and device
JP6327539B2 (en) Method for checking whether intelligent terminal hardware is operating abnormally and intelligent terminal
EP3509270B1 (en) Data backup method and device, storage medium and electronic apparatus
CN110838953B (en) Test method, test system, electronic equipment and storage medium
US11317276B2 (en) Methods and/or systems for activation and/or configuration of an electronic subscriber identity module (eSIM)
CN110650503B (en) Network access method, device, system and computer readable storage medium
US20180307498A1 (en) Driver Loading Method and Server
US20200174818A1 (en) Virtual machine management
CN110442426B (en) Password resetting method, device and storage medium
EP3959632B1 (en) File storage service initiation of antivirus software locally installed on a user device
CN106487798B (en) Data synchronization method and device
CN105518698A (en) Broker for evaluating application requests to access peripheral devices
EP2770768A2 (en) Method and system for replacing an se key of a mobile terminal
CN106528214B (en) A kind of installation method of OS, server and system
CN108563472B (en) Service plug-in loading method and device based on multi-open application
JP2014533862A5 (en)
US20150220726A1 (en) Authentication Method, Authentication Apparatus and Authentication Device
CN104375831B (en) Realize the methods, devices and systems of the webpage and inter-application communication on terminal device
CN106934272B (en) Application information verification method and device
CN106293851A (en) A kind of firmware upgrade method and equipment
CN105426272A (en) Backup method and device for application programs
CN105204884A (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
RJ01 Rejection of invention patent application after publication

Application publication date: 20151230

RJ01 Rejection of invention patent application after publication