CN107256188A - Control method, device, terminal and the storage medium of Android device - Google Patents

Control method, device, terminal and the storage medium of Android device Download PDF

Info

Publication number
CN107256188A
CN107256188A CN201710527204.4A CN201710527204A CN107256188A CN 107256188 A CN107256188 A CN 107256188A CN 201710527204 A CN201710527204 A CN 201710527204A CN 107256188 A CN107256188 A CN 107256188A
Authority
CN
China
Prior art keywords
android device
orders
android
adb
authentication
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.)
Granted
Application number
CN201710527204.4A
Other languages
Chinese (zh)
Other versions
CN107256188B (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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710527204.4A priority Critical patent/CN107256188B/en
Publication of CN107256188A publication Critical patent/CN107256188A/en
Application granted granted Critical
Publication of CN107256188B publication Critical patent/CN107256188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter

Abstract

The embodiment of the invention discloses a kind of control method of Android device, device, terminal and storage medium, wherein, methods described includes:Control device sets the USB port being connected with the Android device to be USB Host patterns;The authentication challenge that Android device is sent is received, and password is responded according to authentication challenge generation authentication;The authentication is returned to Android device and responds password, to realize authentication of the Android device to control device;Using ADB agreements, ADB orders are generated, the ADB orders are sent to Android device, to cause the Android device to perform the ADB orders.The technical problem of Android device can not be controlled by WinCE operating systems by solving, and can be realized on the premise of without carrying out hardware modifications to existing car-mounted terminal and Android device and pass through control of the car-mounted terminal to Android device.

Description

Control method, device, terminal and the storage medium of Android device
Technical field
The present embodiments relate to car networking technology field, more particularly to a kind of control method of Android device, device, end End and storage medium.
Background technology
According to the definition of car networking industrial technology innovation strategic alliances, car networking is with in-car net, car border net and vehicle-mounted shifting Based on dynamic internet, according to the communication protocol and Data Exchange Standard of agreement.In car-X (X:Car, road, pedestrian and internet Deng) between, the big grid exchanged with information is communicated wirelessly, intelligent traffic management, Intelligent Dynamic is that by Information service and the integrated network of Vehicular intelligentization control, are typical case application of the technology of Internet of things in field of transportation system.
In car networking system, car-mounted terminal and intelligent terminal, particularly smart mobile phone interconnect at this stage It is significant.Because car-mounted terminal is defined for collection in early stage and obtains the information of vehicle, driving shape is perceived State and environment, and the terminal of simple amusement and navigation Service is provided the user, its information processing capability is weaker, operational capability It is low.Need to interact with smart mobile phone, to realize the data communication with other vehicles or car networking platform, provide the user more Application service.
Because current car-mounted terminal generally uses WinCE operating systems, and smart mobile phone uses Android at present (Android) information exchange can not be carried out between system, two kinds of systems.At present, mirrorlink car networking standards are generally used The connection of Android device and car-mounted terminal is realized, and Android device is controlled by car-mounted terminal using the standard.But this method Need car-mounted terminal and Android device all to support the standard, and only have a small amount of car-mounted terminal to support the standard at present, for exhausted Most car-mounted terminal still can not realize control Android device.
The content of the invention
The present invention provides a kind of control method of Android device, device, terminal and storage medium, to solve in the prior art The technical problem of Android device can not be controlled by WinCE operating systems.
In a first aspect, the embodiments of the invention provide the control method of kind of Android device, it is characterised in that including:
Control device sets the USB port being connected with the Android device to be USB Host patterns;
The authentication challenge that Android device is sent is received, and password is responded according to authentication challenge generation authentication;
The authentication is returned to Android device and responds password, to realize authentication of the Android device to control device;
Using ADB agreements, ADB orders are generated, the ADB orders are sent to Android device, to cause the Android to set It is standby to perform the ADB orders..
Second aspect, the embodiment of the present invention additionally provides a kind of control device of Android device, it is characterised in that including:
Setup module, it is USB Host patterns that the USB port being connected with the Android device is set for control device;
Authentication responds command generation module, the authentication challenge for receiving Android device transmission, and according to the authentication mouth Order generation authentication responds password;
Module is returned, password is responded for returning to the authentication to Android device, to realize Android device to control device Authentication;
Order generation module, for utilizing ADB agreements, generates ADB orders, the ADB orders is sent to Android device, To cause the Android device to perform the ADB orders.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processing Device realizes the control method of the Android device provided such as above-mentioned embodiment.
Fourth aspect, the embodiment of the present invention additionally provides a kind of storage medium for including computer executable instructions, described The control for institute's Android device that computer executable instructions are provided when being performed by computer processor for such as above-mentioned embodiment Method.
Control method, device, terminal and the storage medium of Android device provided in an embodiment of the present invention, by by USB ends Mouth is set to USB Host patterns, and after by the authentication with Android device, using ADB agreements, phase is generated in car-mounted terminal The ADB virtual machines answered, can generate the ADB orders that Android device is able to carry out, to cause Android device to perform using ADB virtual machines The ADB orders of generation.The technical problem of Android device can not be controlled by WinCE operating systems by solving, can be without right On the premise of existing car-mounted terminal and Android device carry out hardware modifications, realize and pass through control of the car-mounted terminal to Android device System.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the flow chart of the control method for the Android device that the embodiment of the present invention one is provided;
Fig. 2 is the flow chart of the control method for the Android device that the embodiment of the present invention two is provided;
Fig. 3 is the flow chart of the control method for the Android device that the embodiment of the present invention three is provided;
Fig. 4 is the flow chart of the control method for the Android device that the embodiment of the present invention four is provided;
Fig. 5 is the flow chart of the control method for the Android device that the embodiment of the present invention five is provided;
Fig. 6 is the structure chart of the control device for the Android device that the embodiment of the present invention six is provided;
Fig. 7 is the structure chart for the terminal that the embodiment of the present invention seven is provided.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is the flow chart of the control method for the Android device that the embodiment of the present invention one is provided, and the present embodiment is applicable to Situation about being controlled by car-mounted terminal to Android device, this method can be performed by the control device of Android device, tool Body comprises the following steps:
Step 110, control device set the USB port being connected with the Android device to be USB Host patterns.
At present, USB (Universal Serial Bus, USB) port is equipped with car-mounted terminal, is used Data transfer between USB disk drive, or charged according to USB electrical standard for the equipment of connection.Utilize USB human interface device (Human Interface Device, HID) agreement can be handed over other parts external equipment Mutually, without installing driving.
For Android device, it is simultaneously not belonging to the external equipment of plug and play, it is impossible to use HID protocol, can only by Just it can be identified after installing corresponding driving for car-mounted terminal.And in the present embodiment, because car-mounted terminal is generally matched somebody with somebody Put relatively low, and the driving of every kind of Android device is differed again, car-mounted terminal can not install the driving of all Android devices in advance.Cause This, in the present embodiment, it is necessary to the USB port being connected with the Android device is set into USB Host patterns, to realize To Android device without identification on the premise of, carry out information exchange with it.
USB Host patterns are a kind of patterns in usb communication, and the purpose is to regard current equipment as main equipment (HOST), main equipment can obtain data from slave unit (Slave).The USB device of connection can be considered as to one can be by The end points of access, therefore, it can be communicated with car-mounted terminal in the case where that need not recognize Android device.Using USB Host Mode access Android device, compared with other communication modes, because its communication is man-to-man mode, the data protocol of use is more Plus it is easy and effective, especially in the case where the configuration of WinCE car-mounted terminals is relatively low, the efficient communication with Android device can be achieved.
Step 120, the authentication challenge for receiving Android device transmission, and mouth is responded according to authentication challenge generation authentication Order.
When using debugging bridge (Android Debug Bridge, ADB) and carrying out the Android system of management simulation, real peace Tall and erect equipment, it is necessary to be authenticated to ADB such as Android mobile phone.Farthest to ensure safety.Current authentication policy is Corresponding authentication challenge is sent by Android device, and requires accordingly to be confirmed within the default regulation time limit.Therefore, pass through Corresponding communication interface receives the authentication challenge of Android device, and responds password according to the corresponding authentication of authentication challenge generation.
Step 130, to Android device return it is described authentication respond password, to realize mirror of the Android device to control device Power.
The authentication response password that above-mentioned steps are generated is sent to Android device, Android device is receiving authentication response mouth After order, password can be responded to the authentication received and judged, after confirmation is errorless, completed to control device, such as WinCE The authentication of system onboard terminal.
Step 140, using ADB agreements, ADB orders are generated, the ADB orders are sent to Android device, to cause State Android device and perform the ADB orders.
ADB can be regarded as a client-server end program, and wherein client can be car-mounted terminal, server end It is then Android device.Using the ADB agreements installed in car-mounted terminal, an Android virtual machine can be generated in car-mounted terminal. Corresponding ADB orders can be generated.Exemplary, corresponding ADB lives can be generated according to user to the operation on car-mounted terminal Order.For example, 10086 start-up operation is dialed in extraneous input equipment of the user by car-mounted terminal, such as button, progress.It is vehicle-mounted Android virtual machine in terminal generates ADB start-a android.intent.action.CALL-d according to aforesaid operations tel:10086 orders, and the order is sent to the Android device, Android, which is set, performs the order for dialing 10086, and generation is dialled Make a call to 10086 active process.By ADB orders, the purpose being controlled by car-mounted terminal to Android device can be reached.
Exemplary, it is described that corresponding ADB orders are generated according to the operation of user, the ADB orders are sent to Android Equipment, to cause the Android device to perform the ADB orders, can include:Push orders are generated, to cause Android device to answer The file of control device storage processed;Pull orders are generated, to cause control device to replicate the file of the Android device storage; With or generation shell-command, with inquire about and or the management Android device running status.
Exemplary, when needing to replicate the file of WinCE car-mounted terminals to Android device, corresponding ADB can be generated Push orders, its specific form can be:
ADB push-copy file/dir to device。
For example, Android device performs order ADB push D:File.txt/system/temp/, can be by WinCE cars File.txt file copies under mounted terminal D packing catalogues to Android device /system/temp/ catalogues under.
Exemplary, when needing to replicate the file of WinCE car-mounted terminals to Android device, corresponding ADB can be generated Push orders, its specific form can be:ADB push-copy file/dir.
For example:Android device performs order ADB pull/sdcard/**.txt D:Can be by Android device storage card Some file copy under WinCE car-mounted terminal D packing catalogues.
ADB shell can be considered as man-machine interaction program, and the corresponding control to android terminal can be completed using shell System.And the details of Android device and the operation shape of the management Android device by shell-command, can be obtained State.Exemplary, the shell-command can include:Including:Ps, kill, getprop and am order.
For example:The attribute information of current Android can be got by ADB shell getprop orders, the equipment Version information can include:Version information of equipment etc..
The corresponding Activity, Boradcast, Service of Android device can be started by ADB shell am orders Deng.Various activities process, broadcast and service etc. can be started.
Current process can be checked by ADB shell ps orders.Which process is being may determine that using the order Operation and operation state, whether process terminates, process occupies excessive resource etc. either with or without ossified, which process.
The process that Android device is currently run can be killed by ADB shell kill orders, certain can be individually killed One specific process, some processes can also be killed in batches.
Shell orders comprise more than mentioned order, can realize to enter the running status of Android device using mentioned order Row inquiry, can also be managed to Android device running status, can realize the control to Android device.For example, can profit With am orders operation, some is applied, and some unexpected processes stopped etc. are killed by kill.
The embodiment of the present invention by USB port by being set to USB Host patterns, after by the authentication with Android device, Using ADB agreements, corresponding ADB virtual machines are generated in car-mounted terminal, can generate Android device using ADB virtual machines can hold Capable ADB orders, to cause Android device to perform the ADB orders of generation.Solving can not control to pacify by WinCE operating systems The technical problem of tall and erect equipment, can be realized logical on the premise of without being improved to existing car-mounted terminal and Android device Cross control of the car-mounted terminal to Android device.
Embodiment two
Fig. 2 is the schematic flow sheet of the control method for the Android device that the embodiment of the present invention two is provided.It is more than the present embodiment State and optimize based on embodiment, in the present embodiment, password, tool responded according to authentication challenge generation authentication by described Body is optimized for:Password is responded using preassembled cryptographic libraries generation authentication corresponding with the authentication challenge.Accordingly, this reality The control method for the Android device that example is provided is applied, is specifically included:
Step 210, control device set the USB port being connected with the Android device to be USB Host patterns.
Step 220, the authentication challenge for receiving Android device transmission, and utilize the generation of preassembled cryptographic libraries and the mirror Weigh the corresponding authentication of password and respond password.
It is man-to-man mapping relations that authentication, which responds password with authentication challenge, i.e., each authentication challenge only has unique authentication Password is responded to correspond.Accordingly, it would be desirable in Android device and WinCE system onboard terminal profiles identical rule, so that Obtain Android device and WinCE system onboards terminal and password is responded according to identical rule generation identical authentication.In the present embodiment In, WinCE system onboards terminal and Android device install identical cryptographic libraries in advance, and WinCE system onboards terminal is described in Cryptographic libraries respond password according to the corresponding authentication of authentication challenge generation received.Exemplary, the preassembled password Storehouse can be OpenSSL cryptographic libraries, and OpenSSL is a security socket layer cryptographic libraries, include main cryptographic algorithm, commonly use Key and certificate encapsulation manager function and ssl protocol, can provide secret transmission.Ensure the confidentiality of communication and reliable Property, support can be realized simultaneously in server end and user terminal.The privacy of authentication information can be effectively ensured.
Step 230, to Android device return it is described authentication respond password, to realize mirror of the Android device to control device Power;
Step 240, utilize ADB agreements, generate ADB orders, by the ADB orders transmission to Android device, to cause State Android device and perform the ADB orders.
The present embodiment by described by, according to authentication challenge generation authentication response password, being specifically optimized for:Using pre- The cryptographic libraries generation authentication corresponding with the authentication challenge first installed responds password.It can be realized automatically pair using cryptographic libraries The authentication of WinCE system onboard terminals, and the security and privacy of authentication can be improved, effectively increase the reliability of authentication.
Embodiment three
Fig. 3 is the schematic flow sheet of the control method for the Android device that the embodiment of the present invention two is provided.It is more than the present embodiment State and optimize based on embodiment, in the present embodiment, the generation ADB orders send the ADB orders to Android Equipment, to cause the Android device to perform the ADB orders, is specifically optimized for:Generate forward orders, foundation with it is described Android device interacts the data transmission channel of customizing messages.Accordingly, the control method for the Android device that the present embodiment is provided, Specifically include:
Step 310, control device set the USB port being connected with the Android device to be USB Host patterns.
Step 320, the authentication challenge for receiving Android device transmission, and mouth is responded according to authentication challenge generation authentication Order.
Step 330, to Android device return it is described authentication respond password, to realize mirror of the Android device to control device Power.
Step 340, generation forward orders, set up the data transmission channel that customizing messages is interacted with the Android device.
Using ADB forward orders, the data transfer with the data transmission channel of the Android device can be set up and led to Road can be directed to application-specific, the application-specific can active user specify, or the application being currently running.It is i.e. special Surely it can be transmitted using corresponding data by the data transmission channel of above-mentioned foundation., can by the data transmission channel So that interactive data to be directly distributed to the application bottom port for handling the data, the effect of transmission data and processing data is improved Rate.Exemplary, it is possible to use one COM1 of ADB forward command definitions, can be to Android device using the port Receive and send the data of the application for realizing car networking function.
The present embodiment is described to cause by the way that by the generation ADB orders, the ADB orders are sent to Android device Android device performs the ADB orders, is specifically optimized for:Forward orders are generated, foundation interacts specific with the Android device The data transmission channel of information.The passage that specific information is set up by forward orders can be made in android terminal and car Interacted between mounted terminal, the data that each passage is transmitted are orientable to transfer to specific application program to be handled.Avoid Various information mix, and effectively increase the efficiency of data processing.
Example IV
Fig. 3 is the schematic flow sheet of the control method for the Android device that the embodiment of the present invention two is provided.It is more than the present embodiment State and optimize based on embodiment, in the present embodiment, setting up data biography that customizing messages is interacted with the Android device After defeated passage, increase following steps:By the data transmission channel receive Android device send audio and or video counts According to;Show the audio and or video data.Accordingly, the control method for the Android device that the present embodiment is provided, specific bag Include:
Step 410, control device set the USB port being connected with the Android device to be USB Host patterns.
Step 420, the authentication challenge for receiving Android device transmission, and mouth is responded according to authentication challenge generation authentication Order.
Step 430, to Android device return it is described authentication respond password, to realize mirror of the Android device to control device Power.
Step 440, generation forward orders, set up the data transmission channel that customizing messages is interacted with the Android device.
Step 450, by the data transmission channel receive Android device send audio and or video data.
At present, mainstream operation system is all to be interacted by way of graphical interfaces with user, and user is each without grasping Kind of complicated operational order, can be achieved to interact with operating system by other operations such as the click to graphic interface.Therefore, User is controlled by the operation in car-mounted terminal to Android device, it is necessary to show that Android is set in car-mounted terminal for convenience Standby present image.Or when playing audio or video online using Android device, it is necessary in car-mounted terminal synchronization progress Display and broadcasting.To achieve the above object, at Android device end, can by the present image of Android device and or it is currently playing Sound generate corresponding video and or voice data, and by above-mentioned set up data transmission channel by the video and Or voice data is sent to car-mounted terminal.
Step 460, show the audio and or video data.
The technology contents disclosed as described above understand, by data transmission channel can by the audio received and or video Be sent directly to for handle audio and or video application program bottom.The application program can be by the audio received He or video are decoded, and generate corresponding image and sound, and shown or played in car-mounted terminal.To cause car Mounted terminal can show the currently displayed image of Android device and or currently playing audio.
After the present embodiment with the Android device in foundation by interacting the data transmission channel of customizing messages, increase is such as Lower step:By the data transmission channel receive Android device send audio and or video data;Show the audio With or video data.The graphic interface and sound that can currently show Android device are sent directly to car-mounted terminal processing The application program bottom of above-mentioned data, with enable car-mounted terminal quickly to the audio and or video data at Reason, can reduce simultaneous display Android device present image and or play present video time delay.
Embodiment five
Fig. 5 is the schematic flow sheet of the control method for the Android device that the embodiment of the present invention five is provided.It is more than the present embodiment State and optimize based on embodiment, in the present embodiment, show the audio and or video data after, increase as follows Step:According to user's operation generation ADB orders, the Android device is controlled to run by the ADB orders.Accordingly, this reality The control method for the Android device that example is provided is applied, is specifically included:
Step 510, control device set the USB port being connected with the Android device to be USB Host patterns.
Step 520, the authentication challenge for receiving Android device transmission, and mouth is responded according to authentication challenge generation authentication Order.
Step 530, to Android device return it is described authentication respond password, to realize mirror of the Android device to control device Power.
Step 540, generation forward orders, set up the data transmission channel that customizing messages is interacted with the Android device.
Step 550, by the data transmission channel receive Android device send audio and or video data.
Step 560, show the audio and or video data.
Step 570, according to user's operation generation ADB orders, pass through ADB orders control Android device operation.
According to the above method, the image synchronization that Android device is currently shown can be shown in car-mounted terminal, user Can be operated for example, by the input equipment of the mobile units such as navigation keys, acknowledgement key and knob, car-mounted terminal according to The operation at family generates corresponding ADB orders.And send the ADB orders to Android device, for example, user can pass through navigation Key chooses some application currently shown, and clicks the application by acknowledgement key.Car-mounted terminal can utilize ADB agreements, root ADB am orders are generated according to the aforesaid operations of user, and the ADB am orders are sent to Android device, Android device can be held The row ADB am orders, start the application of the selection.
And for example, the operation of file can be replicated to Android device according to user, corresponding ADB push orders are generated, and will The ADB push orders are sent to Android device, and Android device can perform the ADB push orders, by the order middle finger Fixed file is copied to the specified location of Android device.
Accordingly, the operation of file can be replicated to car-mounted terminal according to user, corresponding ADB pull orders are generated, and The ADB pull orders are sent to Android device, Android device can perform the ADB pull orders, by the order The file specified is copied to the specified location of car-mounted terminal.
Accordingly, the life such as corresponding ADB kill, ADB ps and ADB getprop can be also generated according to the operation of user Order, by mentioned order so that Android device performs kill process, checks process and obtains system information respectively.
The present embodiment by show the audio and or video data after, increase following steps:Operated according to user ADB orders are generated, control the Android device to run by the ADB orders.The premise of graphic interface is provided in car-mounted terminal Under, operation that can be according to user in car-mounted terminal side generates corresponding ADB orders, reaches the mesh of control Android device operation 's.It can allow the user to intuitively carry out operational control to Android device in car-mounted terminal, simplify to Android device control Operation.
Embodiment six
Fig. 6 is the structural representation of the control device for the Android device that the embodiment of the present invention six is provided, as shown in fig. 6, institute Stating device includes:
Setup module 610, it is USBHost patterns that the USB port being connected with the Android device is set for control device;
Authentication responds command generation module 620, the authentication challenge for receiving Android device transmission, and according to institute+state mirror Weigh password generated authentication and respond password;
Module 630 is returned, password is responded for returning to the authentication to Android device, to realize that Android device is set to control Standby authentication;
Order generation module 640, for utilizing ADB agreements, generates ADB orders, the ADB orders is sent to Android and set It is standby, to cause the Android device to perform the ADB orders.
On the basis of the various embodiments described above, the authentication responds command generation module, including:
Authentication responds password generated unit, corresponding with the authentication challenge for being generated using preassembled cryptographic libraries Authentication responds password.
On the basis of the various embodiments described above, the order generation module, including:
Data transmission channel sets up unit, and for generating forward orders, foundation interacts specific letter with the Android device The data transmission channel of breath.
On the basis of the various embodiments described above, described device also includes:
Receiving module, for by the data transmission channel receive Android device send audio and or video data;
Display module, for show the audio and or video data.
On the basis of the various embodiments described above, the order generation module is used for:
Push orders are generated, to cause the file of Android device copying control device storage;
Pull orders are generated, to cause control device to replicate the file of the Android device storage;With or
Generate shell-command, with inquire about and or the management Android device running status.
On the basis of the various embodiments described above, described device also includes:
Operation control module, for according to user's operation generation ADB orders, the Android to be controlled by the ADB orders Equipment is run.
On the basis of the various embodiments described above, the operation control module is used for:
According to user's operation generation pull orders, to cause control device to replicate the file of the Android device storage;
According to user's operation generation push orders, to cause the file of Android device copying control device storage;
According to user's operation generation shell-command, with inquire about and or the management Android device running status.
On the basis of the various embodiments described above, the shell-command, including:
Ps, kill, getprop and am order.
The control device for the Android device that the embodiment of the present invention is provided can perform what any embodiment of the present invention was provided The control method of Android device, possesses the corresponding functional module of execution method and beneficial effect.
Embodiment seven
Fig. 7 is a kind of structural representation for terminal organ that the embodiment of the present invention seven is provided.Fig. 7 is shown suitable for being used for realizing The block diagram of the exemplary terminal 12 of embodiment of the present invention.The terminal 12 that Fig. 7 is shown is only an example, should not be to the present invention The function of embodiment and use range band come any limitation.
As shown in fig. 7, terminal 12 is showed in the form of universal computing device.The component of terminal 12 can include but not limit In:One or more processor or processing unit 16, system storage 28, connection different system component (including system is deposited Reservoir 28 and processing unit 16) bus 18.
Bus 18 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.Lift For example, these architectures include but is not limited to industry standard architecture (ISA) bus, MCA (MAC) Bus, enhanced isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) bus.
Terminal 12 typically comprises various computing systems computer-readable recording medium.These media can be it is any can be by terminal 12 The usable medium of access, including volatibility and non-volatile media, moveable and immovable medium.
System storage 28 can include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Terminal 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for read-write it is irremovable , non-volatile magnetic media (Fig. 7 do not show, commonly referred to as " hard disk drive ").Although not shown in Fig. 7, use can be provided In the disc driver to may move non-volatile magnetic disk (such as " floppy disk ") read-write, and to may move anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.Memory 28 can include at least one program product, The program product has one group of (for example, at least one) program module, and these program modules are configured to perform each implementation of the invention The function of example.
Program/utility 40 with one group of (at least one) program module 42, can be stored in such as memory 28 In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and The realization of network environment is potentially included in each or certain combination in routine data, these examples.Program module 42 is usual Perform the function and/or method in embodiment described in the invention.
Terminal 12 can also communicate with one or more external equipments 14 (such as keyboard, sensing equipment, display 24), The equipment communication interacted with the equipment/terminal/server 12 can be also enabled a user to one or more, and/or with causing Any equipment (such as network interface card, modem etc.) that the terminal 12 can be communicated with one or more of the other computing device Communication.This communication can be carried out by input/output (I/O) interface 22.Also, terminal 12 can also pass through network adapter 20 lead to one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) Letter.As illustrated, network adapter 20 is communicated by bus 18 with other modules of terminal 12.Although it should be understood that in figure not Show, terminal 12 can be combined and use other hardware and/or software module, included but is not limited to:Microcode, device driver, Redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, thus perform various function application and Data processing, for example, realize the control method for the Android device that the embodiment of the present invention is provided.
Embodiment eight
The embodiment of the present invention eight additionally provides a kind of storage medium for including computer executable instructions, and the computer can Control method of the execute instruction when being performed by computer processor for the execution such as Android device that above-mentioned embodiment is provided.
The computer-readable storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any combination above.The more specifically example (non exhaustive list) of computer-readable recording medium includes:Tool There are the electrical connections of one or more wires, portable computer diskette, hard disk, random access memory (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be it is any include or storage program tangible medium, the program can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media can be included in a base band or as the data-signal of carrier wave part propagation, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limit In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for Used by instruction execution system, device or device or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but do not limit In wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with one or more programming languages or its combination for performing the computer that the present invention is operated Program code, described program design language includes object oriented program language-such as Java, Smalltalk, C++, Also include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with Fully perform, partly perform on the user computer on the user computer, as independent software kit execution, a portion Divide part execution or the execution completely on remote computer or server on the remote computer on the user computer. Be related in the situation of remote computer, remote computer can be by the network of any kind --- including LAN (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (is for example carried using Internet service Come for business by Internet connection).
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art it is various it is obvious change, Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (14)

1. a kind of control method of Android device, it is characterised in that including:
Control device sets the USB port being connected with the Android device to be USB Host patterns;
The authentication challenge that Android device is sent is received, and password is responded according to authentication challenge generation authentication;
The authentication is returned to Android device and responds password, to realize authentication of the Android device to control device;
Using ADB agreements, ADB orders are generated, the ADB orders are sent to Android device, to cause the Android device to hold The row ADB orders.
2. control method according to claim 1, it is characterised in that described to be responded according to authentication challenge generation authentication Password, including:
Password is responded using preassembled cryptographic libraries generation authentication corresponding with the authentication challenge.
3. according to the method described in claim 1, it is characterised in that the generation ADB orders, the ADB orders are sent extremely Android device, to cause the Android device to perform the ADB orders, including:
Forward orders are generated, the data transmission channel that customizing messages is interacted with the Android device is set up.
4. method according to claim 3, it is characterised in that setting up the data biography with the Android device information exchange After defeated passage, in addition to:
By the data transmission channel receive Android device send audio and or video data;
Show the audio and or video data.
5. according to the method described in claim 1, it is characterised in that described that corresponding ADB orders are generated according to the operation of user, The ADB orders are sent to Android device, to cause the Android device to perform the ADB orders, including:
Push orders are generated, to cause the file of Android device copying control device storage;
Pull orders are generated, to cause control device to replicate the file of the Android device storage;With or
Generate shell-command, with inquire about and or the management Android device running status.
6. method according to claim 4, it is characterised in that show the audio and or video data after, also wrap Include:
According to user's operation generation ADB orders, the Android device is controlled to run by the ADB orders.
7. method according to claim 6, it is characterised in that described according to user's operation generation ADB orders, by described ADB orders control the Android device operation, including:
According to user's operation generation pull orders, to cause control device to replicate the file of the Android device storage;
According to user's operation generation push orders, to cause the file of Android device copying control device storage;
According to user's operation generation shell-command, with inquire about and or the management Android device running status.
8. the method according to claim 5 or 7, it is characterised in that the shell-command, including:
Ps, kill, getprop and am order.
9. a kind of control device of Android device, it is characterised in that including:
Setup module, it is USB Host patterns that the USB port being connected with the Android device is set for control device;
Authentication responds command generation module, the authentication challenge for receiving Android device transmission, and according to institute+state authentication challenge life Password is responded into authentication;
Module is returned, password is responded for returning to the authentication to Android device, to realize mirror of the Android device to control device Power;
Order generation module, for utilizing ADB agreements, generates ADB orders, the ADB orders is sent to Android device, so that Obtain the Android device and perform the ADB orders.
10. device according to claim 9, it is characterised in that the order generation module module, including:
Transmission channel sets up unit, for generating forward orders, sets up the data that customizing messages is interacted with the Android device Transmission channel.
11. device according to claim 10, it is characterised in that described device also includes:
Receiving module, for by the data transmission channel receive Android device send audio and or video data;
Display module, for show the audio and or video data.
12. device according to claim 11, it is characterised in that described device also includes:
Operation control module, for according to user's operation generation ADB orders, the Android device to be controlled by the ADB orders Operation
13. a kind of terminal, it is characterised in that the terminal includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors are real The existing control method of the Android device as described in any in claim 1-9.
14. a kind of storage medium for including computer executable instructions, the computer executable instructions are by computer disposal The control method of Android device when device is performed for execution as described in claim 1-9 is any.
CN201710527204.4A 2017-06-30 2017-06-30 Android device control method and device, terminal and storage medium Active CN107256188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710527204.4A CN107256188B (en) 2017-06-30 2017-06-30 Android device control method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710527204.4A CN107256188B (en) 2017-06-30 2017-06-30 Android device control method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107256188A true CN107256188A (en) 2017-10-17
CN107256188B CN107256188B (en) 2021-05-28

Family

ID=60024783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710527204.4A Active CN107256188B (en) 2017-06-30 2017-06-30 Android device control method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107256188B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536491A (en) * 2018-02-07 2018-09-14 武汉光庭信息技术股份有限公司 A kind of processing method and system of mobile unit Reverse Turning Control Android mobile terminal
CN108712415A (en) * 2018-05-17 2018-10-26 深圳市灵星雨科技开发有限公司 A kind of data transmission method based on android system
CN110244928A (en) * 2018-03-09 2019-09-17 上海大唐移动通信设备有限公司 A kind of extracting method and device of user terminal Volte information
CN111629020A (en) * 2019-12-03 2020-09-04 蘑菇车联信息科技有限公司 Remote input method, device, PC (personal computer) terminal, android device and system
CN113157500A (en) * 2020-01-23 2021-07-23 阿里巴巴集团控股有限公司 Equipment testing method, device, computer system and readable storage medium
CN114968456A (en) * 2022-05-07 2022-08-30 麒麟合盛网络技术股份有限公司 Method and device for controlling terminal
CN116204257A (en) * 2022-12-30 2023-06-02 珠海视熙科技有限公司 Image preview method and device, storage medium and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201845546U (en) * 2010-11-18 2011-05-25 西安龙飞软件有限公司 Device capable of controlling mobile phone through speech
CN103365688A (en) * 2013-06-28 2013-10-23 深圳市掌讯通讯设备有限公司 Method for automatic installation and synchronization of software between Android intelligent devices
CN103377526A (en) * 2012-04-25 2013-10-30 方园 Method and device for achieving Android mobile device payment through USB interface
CN104391695A (en) * 2014-11-06 2015-03-04 北京凌阳益辉科技有限公司 Method for performing synchronous control through external equipment and device thereof
CN105022949A (en) * 2015-07-02 2015-11-04 盘石软件(上海)有限公司 Handheld device for evidence fixing of Android phones and fixing method
JP2016144312A (en) * 2015-02-02 2016-08-08 株式会社ソシオネクスト Power supply circuit, charging circuit, charging system, power supply method, and charging method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201845546U (en) * 2010-11-18 2011-05-25 西安龙飞软件有限公司 Device capable of controlling mobile phone through speech
CN103377526A (en) * 2012-04-25 2013-10-30 方园 Method and device for achieving Android mobile device payment through USB interface
CN103365688A (en) * 2013-06-28 2013-10-23 深圳市掌讯通讯设备有限公司 Method for automatic installation and synchronization of software between Android intelligent devices
CN104391695A (en) * 2014-11-06 2015-03-04 北京凌阳益辉科技有限公司 Method for performing synchronous control through external equipment and device thereof
JP2016144312A (en) * 2015-02-02 2016-08-08 株式会社ソシオネクスト Power supply circuit, charging circuit, charging system, power supply method, and charging method
CN105022949A (en) * 2015-07-02 2015-11-04 盘石软件(上海)有限公司 Handheld device for evidence fixing of Android phones and fixing method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536491A (en) * 2018-02-07 2018-09-14 武汉光庭信息技术股份有限公司 A kind of processing method and system of mobile unit Reverse Turning Control Android mobile terminal
CN108536491B (en) * 2018-02-07 2021-11-05 武汉光庭信息技术股份有限公司 Processing method and system for reversely controlling android mobile terminal by vehicle-mounted equipment
CN110244928A (en) * 2018-03-09 2019-09-17 上海大唐移动通信设备有限公司 A kind of extracting method and device of user terminal Volte information
CN108712415A (en) * 2018-05-17 2018-10-26 深圳市灵星雨科技开发有限公司 A kind of data transmission method based on android system
CN108712415B (en) * 2018-05-17 2021-08-20 深圳市灵星雨科技开发有限公司 Data transmission method based on android system
CN111629020A (en) * 2019-12-03 2020-09-04 蘑菇车联信息科技有限公司 Remote input method, device, PC (personal computer) terminal, android device and system
CN113157500A (en) * 2020-01-23 2021-07-23 阿里巴巴集团控股有限公司 Equipment testing method, device, computer system and readable storage medium
CN114968456A (en) * 2022-05-07 2022-08-30 麒麟合盛网络技术股份有限公司 Method and device for controlling terminal
CN114968456B (en) * 2022-05-07 2024-03-08 麒麟合盛网络技术股份有限公司 Method and device for controlling terminal
CN116204257A (en) * 2022-12-30 2023-06-02 珠海视熙科技有限公司 Image preview method and device, storage medium and computer equipment
CN116204257B (en) * 2022-12-30 2024-03-15 珠海视熙科技有限公司 Image preview method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN107256188B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN107256188A (en) Control method, device, terminal and the storage medium of Android device
US8850610B2 (en) Mobile device peripherals management system and multi-data stream technology (MdS)
EP3926500B1 (en) Device upgrade method and related device
CN108990002A (en) A kind of block chain data processing method, device, terminal and storage medium
CN102243590A (en) Method for communicating between applications on an external device and vehicle systems
US8798541B1 (en) System and method for socket backed host controller interface emulation for virtual bluetooth adapter
US20030172271A1 (en) Apparatus and method for wireless device set-up and authentication using audio authentication_information
CN103164260B (en) Application management system and method for mobile terminal
CN110781528B (en) Collaborative secure operating system and electronic device
US20180107493A1 (en) Synchronous control method and device via external apparatus
WO2010087829A1 (en) Selectively communicating data of a peripheral device to plural sending computers
CN110083465A (en) A kind of data transferring method between applying of lodging
EP3982587A1 (en) Authentication method, device, and system
CN109951295A (en) Key handling and application method, device, equipment and medium
CN112291364A (en) Message pushing processing method and device
CN110362318A (en) Using dispositions method, device, equipment and storage medium
CN109976922A (en) Discovery method, equipment and computer storage medium between small routine platform
KR102177407B1 (en) An AVN system of a vehicle using a virtualization and an operating method of the AVN system
JP2003158518A (en) Method for signing messages with digital signature
CN112543431A (en) Account synchronization method, medium and server
CN103699853B (en) A kind of intelligent SD card and control system thereof and method
CN109688151B (en) Traffic information transmission method, transmission system and transmission equipment
CN109933960B (en) Service calling control method, service calling method, device and terminal
CN112134768A (en) Car-home interconnection method and system
CN109660988A (en) Communicate authentication processing method, device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant