Summary of the invention
For above-mentioned defect, the object of the present invention is to provide a kind of method to intelligent terminal teleprocessing APK file and device thereof, when downloading and installing APK file by other-ends such as PCs to intelligent terminal to solve between the other-end such as intelligent terminal and PC the problem of reciprocating operation.
For reaching this object, the invention provides a kind of method to intelligent terminal teleprocessing APK file, comprising the following steps:
Periodically obtain the image of intelligent terminal screen;
By the image mapped of described intelligent terminal screen to the interface of presetting;
Transmit pretreated APK file to described intelligent terminal;
Obtain mouse at described interface the coordinate for the first operational order and corresponding described first operational order of installing or delete described APK file;
By the coordinate that the coordinate conversion of described first operational order is described intelligent terminal screen;
The coordinate of described first operational order and described intelligent terminal screen is sent to described intelligent terminal, performs described first operational order to install or to delete described APK file to make described intelligent terminal at the coordinate of described intelligent terminal screen.
Preferably, before the pretreated APK file of described transmission to described intelligent terminal, also comprise:
To obtain and the touch screen storing described intelligent terminal opens the second operational order of the first store path for receiving described APK file and the coordinate of described second operational order on described intelligent terminal screen;
After the pretreated APK file of described transmission to described intelligent terminal, also comprise:
Get the default transferring status data of APK file, the coordinate of the second operational order and described second operational order is sent to described intelligent terminal, performs described second operational order to open described first store path to make described intelligent terminal at the coordinate place of described second operational order.
Preferably, described in get the default transferring status data of described APK file, comprising:
The transmission getting described APK file is carried out status information, is transmitted interruption status information or transmit complete status information.
Preferably, also comprise, the described coordinate by described first operational order and described intelligent terminal screen also comprises before being sent to described intelligent terminal:
To obtain and the touch screen storing described intelligent terminal opens described APK file unloading the 3rd operational order at interface and the coordinate of the 3rd operational order on described intelligent terminal screen;
The described coordinate by described first operational order and described intelligent terminal screen also comprises after being sent to described intelligent terminal:
Get unloading command, the coordinate of described 3rd operational order and the 3rd operational order is sent to described intelligent terminal, perform described 3rd operational order to open described APK file unloading interface to make described intelligent terminal at the coordinate of the 3rd operational order;
Obtain mouse at described interface the coordinate for the 4th operational order and corresponding described 4th operational order that unload described APK file;
By the coordinate that the coordinate conversion of described 4th operational order is described intelligent terminal screen;
The coordinate of described 4th operational order and described intelligent terminal screen is sent to described intelligent terminal, performs described 4th operational order to unload described APK file to make described intelligent terminal at the coordinate of described intelligent terminal screen.
Preferably, the described coordinate conversion by described first operational order becomes the coordinate of described intelligent terminal screen, is specially: the absolute coordinates coordinate conversion of described first operational order being become described intelligent terminal screen; The described coordinate conversion by described 4th operational order is the coordinate of described intelligent terminal screen, is specially: the absolute coordinates coordinate conversion of described 4th operational order being become described intelligent terminal screen; The coordinate of described second operational order and the coordinate of described 3rd operational order are the absolute coordinates of intelligent terminal screen.
Preferably, described by before described image mapped to the interface of presetting, also comprise:
Obtain the absolute coordinates at 4 angles of intelligent terminal screen, set up the interface with intelligent terminal screen identical aspect ratio according to the absolute coordinates at 4 angles.
For reaching this object, present invention also offers a kind of device to intelligent terminal teleprocessing APK file, comprising:
Image acquisition unit, for periodically obtaining the image of intelligent terminal screen;
Map unit, for by the image mapped of described intelligent terminal screen to preset interface;
Document backup unit, for transmitting pretreated APK file to described intelligent terminal;
First instruction fetch unit, for obtain mouse at described interface the coordinate for the first operational order and corresponding described first operational order of installing or delete described APK file;
First coordinate transformation unit, for by the coordinate conversion of described first operational order being the coordinate of described intelligent terminal screen;
First instruction sending unit, for the coordinate of described first operational order and described intelligent terminal screen is sent to described intelligent terminal, perform described first operational order to install or to delete described APK file to make described intelligent terminal at the coordinate of described intelligent terminal screen.
Preferably, also comprise
Second instruction fetch unit, for obtain and the touch screen storing described intelligent terminal opens the second operational order of the first store path for receiving described APK file and the coordinate of described second operational order on described intelligent terminal screen before execute file delivery unit;
Second refers to transmitting element, for getting the default transferring status data of APK file after execute file delivery unit, by the second operational order and described second operation, the coordinate of instruction is sent to described intelligent terminal, performs described second operational order to open described first store path to make described intelligent terminal at the coordinate place of described second operational order.
Preferably, also comprise:
3rd instruction fetch unit, for obtaining before described first instruction sending unit and the touch screen storing described intelligent terminal is opened described APK file and unloaded the 3rd operational order at interface and the coordinate of the 3rd operational order on described intelligent terminal screen performing;
4th instruction fetch unit, unloading command is got after performing described first instruction sending unit, the coordinate of described 3rd operational order and the 3rd operational order is sent to described intelligent terminal, performs described 3rd operational order to open described APK file unloading interface to make described intelligent terminal at the coordinate of the 3rd operational order;
5th instruction fetch unit, for obtain mouse at described interface the coordinate for the 4th operational order and corresponding described 4th operational order that unload described APK file;
Second coordinate transformation unit, for by the coordinate conversion of described 4th operational order being the coordinate of described intelligent terminal screen;
Second instruction sending unit, for the coordinate of described 4th operational order and described intelligent terminal screen is sent to described intelligent terminal, perform described 4th operational order to unload described APK file to make described intelligent terminal at the coordinate of described intelligent terminal screen.
Preferably, described first coordinate transformation unit is specifically for becoming the absolute coordinates of described intelligent terminal screen by the coordinate conversion of described first operational order; Described second coordinate transformation unit is specifically for becoming the absolute coordinates of described intelligent terminal screen by the coordinate conversion of described 4th operational order; The coordinate of described second operational order and the coordinate of described 3rd operational order are the absolute coordinates of intelligent terminal screen.
The present invention adopts technique scheme, compared with existing technical scheme, has following useful effect:
Do not need to switch between control terminal and intelligent terminal at PC etc. to check, realize on PC operation can Long-distance Control intelligent terminal to the installation of APK file, unloading operation, and intuitively see that the APK of intelligent terminal operates process; Terminate in download, download interrupts or when starting to download APK file, intelligent terminal screen jumps to the browser interface of store path, be convenient to find the data transmission issues in downloading process, and directly can carry out next step installation or deletion action; Can by arranging the coordinate and the corresponding intelligent terminal screen left side of operational order and instruction that mouse clicks, and send intelligent terminal to, if realizing installing unsuccessfully the installation of APK file in intelligent terminal or trying out is unsatisfied with, can send steering order by control terminals such as PCs makes intelligent terminal screen enter unloading interface, and carries out unloading operation by mouse to program.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Accompanying drawing 1-3 is the process flow diagram of a kind of method to intelligent terminal teleprocessing APK file provided by the invention, can be realized by PC the method for intelligent terminal teleprocessing APK file, also can be realized by the combination of other-end or PC and other-end, intelligent terminal is based on Android operation system and with the mobile phone, PAD, display etc. of touch screen, adopt PC to intelligent terminal teleprocessing APK file in the present embodiment, comprise the following steps:
S1:PC machine periodically obtains the image of intelligent terminal screen.
S2: by the interface that the image mapped of intelligent terminal screen to PC is preset, the general cycle obtaining image is preset as and is less than 1/24s, and after being mapped to interface, human eye just can see continuous print image.Map and be generally according to showing the position correspondence mappings of image or carrying out correspondence mappings according to the transfer algorithm of different resolution, according to mapping relations, the image that touch screen shows is shown on default interface, and PC sends an Image Acquisition request to intelligent terminal to obtain the image of the current display of intelligent terminal at interval of the set time.
Touch screen adopts absolute coordinates to carry out recognition instruction, before this step, first the absolute coordinates at 4 angles of intelligent terminal screen is obtained, according to the absolute coordinates at 4 angles, and the length breadth ratio of intelligent terminal screen can be calculated according to four of a touch screen point coordinate, set up the interface with intelligent terminal screen identical aspect ratio, and the interface of will the image mapped of intelligent terminal screen to PC be preset.
S3: transmit pretreated APK file to intelligent terminal.
At least one the APK file bag needed is sent to the first store path from PC.APK can be sent in intelligent terminal by the web download such as the Internet, LAN (Local Area Network) or the mode of local transmission by PC.
Before this step, need the first store path storing APK file in default intelligent terminal, the first store path is generally default path or user-defined path, and the path of unified downloaded stored, facilitates the operation of post-processed APK file.
S4: obtain mouse at interface the coordinate for the first operational order and corresponding first operational order of installing APK file; First operational order can be the operational order of the intelligent terminal click touch screen that single left button mouse click, double left button mouse click or a mouse click right button are corresponding, a mouse click right button correspondence jumps out the operational order that right-click menu selects the click touch screen of other correspondences, press operational order of slip touch screen corresponding to motion mouse after left mouse button etc., different operational order corresponding relations can be set according to each one operating habit.
S5: the absolute coordinates by the coordinate conversion of the first operational order being intelligent terminal screen.Coordinate conversion mapping relations are consistent with the mapping relations of map image in S2.
S6: the coordinate of the first operational order and intelligent terminal screen is sent to intelligent terminal, performs the first operational order to install or to delete APK file to make intelligent terminal at the coordinate of intelligent terminal screen.
The first operational order obtained by mouse click interface and the coordinate of the first operational order install APK file, if file corruption, document backup interrupt or do not mate cannot install with intelligent terminal model, directly delete APK file by mouse.
Before S3, also comprise S3A:PC machine to obtain and the touch screen storing intelligent terminal opens the second operational order of the first store path for receiving APK file and the coordinate of the second operational order on intelligent terminal screen, namely before APK file is transferred to intelligent terminal, just intelligent terminal is opened the first store path instruction and coordinate are buffered in PC, be generally after intelligent terminal screen resets to display top table face, open the first store path again instruction and coordinate, the first store path can be opened in intelligent terminal operation at the first store path pre-setting intelligent terminal simultaneously, PC is made to remember the coordinate of the second operational order that this path is opened and the second operational order, or the store path unfolding mode that intelligent terminal is given tacit consent to is write in advance and is stored in PC.Wherein the second operational order can be the set of some operation stepss, and the coordinate of the second operational order is then the set of the intelligent terminal screen absolute coordinates of some operation stepss difference correspondence.
After S3, also comprise the default transferring status data that S3B:PC machine gets APK file, the coordinate of the second operational order and the second operational order is sent to intelligent terminal, performs the second operational order to open the first store path to make intelligent terminal at the coordinate place of the second operational order.The screen being generally intelligent terminal is in top table face or sends after the instruction of HOME key makes intelligent terminal screen reset to top table face, then the coordinate sending the second operational order and the second operational order is to intelligent terminal, to avoid misoperation.The default transferring status data that PC gets APK file is specially the one that the transmission getting APK file is carried out status information, transmitted interruption status information or transmit in complete status information, can make APK file transmission go wrong interrupt time, when transmitting, or when transmitting complete, automatically the first store path redirect is opened, be convenient to follow-up installation or deletion action, and do not need all to put out the first store path at every turn, avoid unnecessary troublesome operation.On PC interface, APK program is tried out by mouse transmit operation instruction and coordinate after file installs, if effect is dissatisfied, cannot run or system prompt running memory too low, then can be operated on interface by mouse and APK file is unloaded, in order to avoid take the internal memory of intelligent terminal.
Therefore, before S6, also comprise: S6A:PC machine obtains and the touch screen storing intelligent terminal opens APK file unloading the 3rd operational order at interface and the coordinate of the 3rd operational order on intelligent terminal screen; Namely before process APK file, just intelligent terminal is opened storage interface instruction and coordinate are buffered in PC, can be stored in PC by the coordinate of the 3rd operational order and the 3rd operational order of opening the unloading interface of intelligent terminal in advance according to the model of different Android system, the coordinate of usual 3rd operational order and the 3rd operational order is after intelligent terminal screen resets to display top table face, open the first store path again instruction and coordinate.Wherein the 3rd operational order is the set of some operation stepss, and the coordinate of the 3rd operational order is then the set of the intelligent terminal screen absolute coordinates of some operation stepss difference correspondence.
After S6, also comprise S7:PC machine and get unloading command, the coordinate of the 3rd operational order and the 3rd operational order is sent to described intelligent terminal, performs described 3rd operational order to open described APK file unloading interface to make described intelligent terminal at the coordinate of the 3rd operational order.The screen being generally intelligent terminal is in top table face or sends after the instruction of HOME key makes intelligent terminal screen reset to top table face, then the coordinate sending the 3rd operational order and the 3rd operational order is to intelligent terminal, to avoid misoperation.The unloading command preset can be with coordinate mouse action instruction, also can be specific shortcut in keyboard, also can be the instruction options in right mouse button menu, PC is by just automatically jumping to unloading interface after mouse and/or Keyboard accelerator input unloading command, be convenient to follow-up unloading operation, and do not need all putting a year interface of starting discharging, avoid unnecessary troublesome operation. at every turn
S8:PC machine obtain mouse at interface the coordinate for the 4th operational order and corresponding 4th operational order that unload APK file.The same S4 of principle.
S9: the absolute coordinates by the coordinate conversion of the 4th operational order being intelligent terminal screen.The same S5 of principle.
S10: the coordinate of the 4th operational order and intelligent terminal screen is sent to intelligent terminal, performs the 4th operational order to unload APK file to make intelligent terminal at the coordinate of intelligent terminal screen.The same S6 of principle.
In the above step of this method, step S1, S2 run in the process of the whole method to intelligent terminal teleprocessing APK file, the work of monitoring intelligent terminal intuitively.
Installing, deleting or unloading in the overall process of APK, specific the checking that PC obtains mouse or shortcut input arranges instruction, then the coordinate of the 5th operational order and the 5th operational order is sent to intelligent terminal, opens specific intelligent terminal to make intelligent terminal direct control and should be used as a little simple information inspection or setting.Wherein the coordinate of the 5th operational order and the 5th operational order is prestore in PC, its touch screen being intelligent terminal is opened and is checked interface or click operational order step and the coordinate thereof that intelligent terminal arranges key on intelligent terminal screen, input specific check instruction is set can by the form of the form of right-click menu of clicking the mouse or shortcut, check with the short message carrying out realizing not reading in intelligent terminal on interface, refusal of sending a telegram here, the quiet of intelligent terminal arrange, improve Consumer's Experience.Accompanying drawing 4-6 is the block diagram of a kind of device to intelligent terminal teleprocessing APK file provided by the invention, comprises image acquisition unit 41, map unit 42, document backup unit 43, first instruction fetch unit 44, first coordinate transformation unit 45 and the first instruction sending unit 46.
Image acquisition unit 41, periodically obtains the image of intelligent terminal screen for PC.
Map unit 42, for the interface of will the image mapped of intelligent terminal screen to PC be preset, the general cycle obtaining image is preset as and is less than 1/24s, and after being mapped to interface, human eye just can see continuous print image.Map and be generally according to showing the position correspondence mappings of image or carrying out correspondence mappings according to the transfer algorithm of different resolution, according to mapping relations, the image that touch screen shows is shown on default interface, and PC sends an Image Acquisition request to intelligent terminal to obtain the image of the current display of intelligent terminal at interval of the set time.
Touch screen adopts absolute coordinates to carry out recognition instruction, perform before mapping, first the absolute coordinates at 4 angles of intelligent terminal screen is obtained, according to the absolute coordinates at 4 angles, and the length breadth ratio of intelligent terminal screen can be calculated according to four of a touch screen point coordinate, set up the interface with intelligent terminal screen identical aspect ratio, and the interface of will the image mapped of intelligent terminal screen to PC be preset.
Document backup unit 43, for transmitting pretreated APK file to intelligent terminal.
At least one the APK file bag needed is sent to the first store path from PC.APK can be sent in intelligent terminal by the web download such as the Internet, LAN (Local Area Network) or the mode of local transmission by PC.
Before this unit of this execution, need the first store path storing APK file in default intelligent terminal, the first store path is generally default path or user-defined path, and the path of unified downloaded stored, facilitates the operation of post-processed APK file.
First instruction fetch unit 44, for obtain mouse at interface the coordinate for the first operational order and corresponding first operational order of installing APK file; First operational order can be the operational order of the intelligent terminal click touch screen that single left button mouse click, double left button mouse click or a mouse click right button are corresponding, a mouse click right button correspondence jumps out the operational order that right-click menu selects the click touch screen of other correspondences, press operational order of slip touch screen corresponding to motion mouse after left mouse button etc., different operational order corresponding relations can be set according to each one operating habit.
First coordinate transformation unit 45, for by the coordinate conversion of the first operational order being the absolute coordinates of intelligent terminal screen.Coordinate conversion mapping relations are consistent with the mapping relations of map image in S2.
First instruction sending unit 46, for the coordinate of the first operational order and intelligent terminal screen is sent to intelligent terminal, performs the first operational order to install or to delete APK file to make intelligent terminal at the coordinate of intelligent terminal screen.
The first operational order obtained by mouse click interface and the coordinate of the first operational order install APK file, if file corruption, document backup interrupt or do not mate cannot install with intelligent terminal model, directly delete APK file by mouse.
Also comprise the second instruction fetch unit 51, for before execute file delivery unit 43, PC obtains and the touch screen storing intelligent terminal opens the second operational order of the first store path for receiving APK file and the coordinate of the second operational order on intelligent terminal screen, namely before APK file is transferred to intelligent terminal, just intelligent terminal is opened the first store path instruction and coordinate are buffered in PC, be generally after intelligent terminal screen resets to display top table face, open the first store path again instruction and coordinate, the first store path can be opened in intelligent terminal operation at the first store path pre-setting intelligent terminal simultaneously, PC is made to remember the coordinate of the second operational order that this path is opened and the second operational order, or the store path unfolding mode that intelligent terminal is given tacit consent to is write in advance and is stored in PC.Wherein the second operational order can be the set of some operation stepss, and the coordinate of the second operational order is then the set of the intelligent terminal screen absolute coordinates of some operation stepss difference correspondence.
Also comprise the second finger transmitting element 52, for after execute file delivery unit 43, PC gets the default transferring status data of APK file, the coordinate of the second operational order and the second operational order is sent to intelligent terminal, performs the second operational order to open the first store path to make intelligent terminal at the coordinate place of the second operational order.The screen being generally intelligent terminal is in top table face or sends after the instruction of HOME key makes intelligent terminal screen reset to top table face, then the coordinate sending the second operational order and the second operational order is to intelligent terminal, to avoid misoperation.The default transferring status data that PC gets APK file is specially the one that the transmission getting APK file is carried out status information, transmitted interruption status information or transmit in complete status information, can make APK file transmission go wrong interrupt time, when transmitting, or when transmitting complete, automatically the first store path redirect is opened, be convenient to follow-up installation or deletion action, and do not need all to put out the first store path at every turn, avoid unnecessary troublesome operation.
On PC interface, APK program is tried out by mouse transmit operation instruction and coordinate after file installs, if effect is dissatisfied, cannot run or system prompt running memory too low, then can be operated on interface by mouse and APK file is unloaded, in order to avoid take the internal memory of intelligent terminal.Therefore also comprise: the 3rd instruction fetch unit 61, the 4th instruction fetch unit 62, the 5th instruction fetch unit 63, second coordinate transformation unit 64 and the second instruction sending unit 65.
3rd instruction fetch unit 61, for before execution first instruction sending unit 46, PC obtains and the touch screen storing intelligent terminal opens APK file unloading the 3rd operational order at interface and the coordinate of the 3rd operational order on intelligent terminal screen; Namely before process APK file, just intelligent terminal is opened storage interface instruction and coordinate are buffered in PC, can be stored in PC by the coordinate of the 3rd operational order and the 3rd operational order of opening the unloading interface of intelligent terminal in advance according to the model of different Android system, the coordinate of usual 3rd operational order and the 3rd operational order is after intelligent terminal screen resets to display top table face, open the first store path again instruction and coordinate.Wherein the 3rd operational order is the set of some operation stepss, and the coordinate of the 3rd operational order is then the set of the intelligent terminal screen absolute coordinates of some operation stepss difference correspondence.
4th instruction fetch unit 62, for after execution first instruction sending unit 46, PC gets unloading command, the coordinate of the 3rd operational order and the 3rd operational order is sent to described intelligent terminal, performs described 3rd operational order to open described APK file unloading interface to make described intelligent terminal at the coordinate of the 3rd operational order.The screen being generally intelligent terminal is in top table face or sends after the instruction of HOME key makes intelligent terminal screen reset to top table face, then the coordinate sending the 3rd operational order and the 3rd operational order is to intelligent terminal, to avoid misoperation.The unloading command preset can be with coordinate mouse action instruction, also can be specific shortcut in keyboard, also can be the instruction options in right mouse button menu, PC is by just automatically jumping to unloading interface after mouse and/or Keyboard accelerator input unloading command, be convenient to follow-up unloading operation, and do not need all putting a year interface of starting discharging, avoid unnecessary troublesome operation. at every turn
5th instruction fetch unit 63, for PC obtain mouse at interface the coordinate for the 4th operational order and corresponding 4th operational order that unload APK file.Principle is with the first instruction fetch unit 44.
Second coordinate transformation unit 64, for by the coordinate conversion of the 4th operational order being the absolute coordinates of intelligent terminal screen.Principle is with the first coordinate transformation unit 45.
Second instruction sending unit 65, for the coordinate of the 4th operational order and intelligent terminal screen is sent to intelligent terminal, performs the 4th operational order to unload APK file to make intelligent terminal at the coordinate of intelligent terminal screen.Principle, with the first instruction sending unit 46, controls by PC end to unload the APK program be arranged in intelligent terminal, simple to operation, avoids taking of internal memory.
In this device, image acquisition unit 41 and map unit 43 real-time working are run, the work of monitoring intelligent terminal intuitively.
In this device, also comprise and check setting unit, specific the checking obtaining mouse or shortcut input for PC arranges instruction, then the coordinate of the 5th operational order and the 5th operational order is sent to intelligent terminal, opens specific intelligent terminal to make intelligent terminal direct control and should be used as a little simple information inspection or setting.Wherein the coordinate of the 5th operational order and the 5th operational order is prestore in PC, its touch screen being intelligent terminal is opened and is checked interface or click operational order step and the coordinate thereof that intelligent terminal arranges key on intelligent terminal screen, input specific check instruction is set can by the form of the form of right-click menu of clicking the mouse or shortcut, check with the short message carrying out realizing not reading in intelligent terminal on interface, refusal of sending a telegram here, the quiet of intelligent terminal arrange, improve Consumer's Experience.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.