CN102446083A - Method for reading and storing Android cellphone screen display contents at PC terminal - Google Patents
Method for reading and storing Android cellphone screen display contents at PC terminal Download PDFInfo
- Publication number
- CN102446083A CN102446083A CN2011102644692A CN201110264469A CN102446083A CN 102446083 A CN102446083 A CN 102446083A CN 2011102644692 A CN2011102644692 A CN 2011102644692A CN 201110264469 A CN201110264469 A CN 201110264469A CN 102446083 A CN102446083 A CN 102446083A
- Authority
- CN
- China
- Prior art keywords
- picture
- android
- terminal
- value
- cell phone
- 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
Links
Images
Abstract
The invention provides a method for reading and storing Android cellphone screen display contents at a PC (Personal Computer) terminal, comprising the following steps of: 10, registering a channel to an operating system and starting an Andriod Debug Bridge driver through the channel; 20, building socket connection between the PC terminal and each Android cellphone device through the Tcp5037 port of the Andriod Debug Bridge; 30, sending an instruction: host: trans port: (serial-number), by the PC terminal so as to switch to the Android cellphone device specified by the (serial-number); 40, further sending an instruction framebuffer to the specified Android cellphone device by the PC terminal, and reading picture attributes including picture format, data length and picture width and height according to the return value of the Android cellphone device; and 50, further sending a byte having the value of 0 through socket by the PC terminak, and next, reading picture data according to the read picture attribute values and converting the picture data into a bitmap for display to users. The method provided in the invention is capable of showing the screen on the Android cellphone device at the PC terminal in real time and storing the same as a file in the picture format in the computer.
Description
[technical field]
The present invention relates to a kind of computer application system field, relate in particular to the method that a kind of PC end read and preserved Android mobile phone screen displaying contents.
[background technology]
Android is established by the Andy Rubin of the title of " father of Android " in early days; Google has merged in 2005 and has set up only 22 months the Android of high-tech enterprise; Launched business such as note, mobile phone retrieval, location, got into exploitation based on the general-purpose platform of Linux.Google company is in formal this operating system of announcing on November 5th, 2007.
At present; Obtaining screen display content from the Android end is very slowly; (be called for short ADB at Android Debug Bridge; With this instrument can direct control management android simulator or real andriod equipment) under the driver, obtain whole screen cache content and on PC, show through the Linux instruction, and cause display delayed often to take place the labor time.
In addition; Prior art will be obtained and discern mobile phone model automatically and be directed against the screen resolution that different model is obtained equipment; And also be suitable trouble according to the image that mobile phone correctly demonstrates horizontal screen or perpendicular screen mobile phone, software can produce image error or can't discern at all when identification automatically.
[summary of the invention]
The technical matters that the present invention will solve, the method that is to provide a kind of PC end to read and preserve Android mobile phone screen displaying contents, it can solve the mobile phone screen content is shown on computers and stores, further to carry out picture editor's problem.
The present invention is achieved in that the method that a kind of PC end read and preserved Android mobile phone screen displaying contents, specifically comprises the steps:
Step 10, start Andriod Debug Bridge driver to operating system registration pipeline and through pipeline;
Step 20, PC end are set up socket (being commonly referred to socket) through the Tcp5037 port of Andriod Debug Bridge with each Android cell phone apparatus and are connected;
Step 30, PC end send instruction " host:transport: < serial-number>" and switch the Android cell phone apparatus that is connected to < serial-number>(sequence number) appointment;
The Android cell phone apparatus of appointment is arrived in the instruction " framebuffer " of redispatching of step 40, PC end, reads the picture attribute that comprises picture format, data length, the wide height of picture according to the rreturn value of Android cell phone apparatus;
Step 50, PC end is 0 byte through the socket value of redispatching, and then, reads image data according to the picture property value that reads, and converts image data into bitmap and be shown to the user.
Further; In the said step 40, specifically comprise: read an integer according to the rreturn value of Android cell phone apparatus and judge picture format, if rreturn value is integer 1 then reads following picture property value in order: bitmap format; Size of data; The picture width, picture height, red start bit, red bit wide, blue start bit, blue bit wide, green start bit, green bit wide, Alpha start bit, Alpha bit wide; If rreturn value is the integer beyond the integer 1, then picture format is the value that is read, and reads following picture attribute in order: picture size, picture width, picture height.
The present invention has following advantage:
The inventive method can let the user that the picture on the current Android cell phone apparatus is shown at the PC end in real time; And the file storage that cell phone apparatus picture displaying contents saves as picture format before allowing the user to deserve is to computing machine, and this screen content that will make things convenient for the user to carry out mobile phone end is greatly demonstrated and sectional drawing.
[description of drawings]
Combine embodiment that the present invention is further described with reference to the accompanying drawings.
Fig. 1 is the principle schematic of the inventive method.
[embodiment]
See also shown in Figure 1ly, embodiments of the invention are carried out detailed explanation.
The method that a kind of PC end of the present invention read and preserved Android mobile phone screen displaying contents is characterized in that: specifically comprise the steps:
Step 10, start Andriod Debug Bridge driver to operating system registration pipeline and through pipeline;
Step 20, PC end are set up socket through the Tcp5037 port of Andriod Debug Bridge with each Android cell phone apparatus and are connected;
Step 30, PC end send instruction " host:transport: < serial-number>" and switch the Android cell phone apparatus that is connected to < serial-number>appointment;
Step 40, PC hold the Android cell phone apparatus of instruction " framebuffer " to appointment of redispatching; Read an integer according to the rreturn value of Android cell phone apparatus and judge picture format; If rreturn value is integer 1 then reads following picture property value in order: bitmap format, size of data, picture width; The picture height, red start bit, red bit wide, blue start bit, blue bit wide, green start bit, green bit wide, Alpha start bit, Alpha bit wide; If rreturn value is the integer beyond the integer 1, then picture format is the value that is read, and reads following picture attribute in order: picture size, picture width, picture height;
Step 50, PC end is 0 byte through the socket value of redispatching, and then, reads image data according to the picture property value that reads, and converts image data into bitmap and be shown to the user.
The above is merely preferred embodiment of the present invention, so can not limit the scope that the present invention implements according to this, the equivalence of promptly doing according to claim of the present invention and description changes and modifies, and all should still belong in the scope that the present invention contains.
Claims (2)
1. the method that the PC end read and preserved Android mobile phone screen displaying contents is characterized in that: specifically comprise the steps:
Step 10, start Andriod Debug Bridge driver to operating system registration pipeline and through pipeline;
Step 20, PC end are set up socket through the Tcp5037 port of Andriod Debug Bridge with each Android cell phone apparatus and are connected;
Step 30, PC end send instruction " host:transport: < serial-number>" and switch the Android cell phone apparatus that is connected to < serial-number>appointment;
The Android cell phone apparatus of appointment is arrived in the instruction " framebuffer " of redispatching of step 40, PC end, reads the picture attribute that comprises picture format, data length, the wide height of picture according to the rreturn value of Android cell phone apparatus;
Step 50, PC end is 0 byte through the socket value of redispatching, and then, reads image data according to the picture property value that reads, and converts image data into bitmap and be shown to the user.
2. the method that PC end according to claim 1 read and preserved Android mobile phone screen displaying contents; It is characterized in that: in the said step 40; Specifically comprise: read an integer according to the rreturn value of Android cell phone apparatus and judge picture format; If rreturn value is integer 1 then reads following picture property value in order: bitmap format, size of data, picture width; The picture height, red start bit, red bit wide, blue start bit, blue bit wide, green start bit, green bit wide, Alpha start bit, Alpha bit wide; If rreturn value is the integer beyond the integer 1, then picture format is the value that is read, and reads following picture attribute in order: picture size, picture width, picture height.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102644692A CN102446083A (en) | 2011-09-07 | 2011-09-07 | Method for reading and storing Android cellphone screen display contents at PC terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102644692A CN102446083A (en) | 2011-09-07 | 2011-09-07 | Method for reading and storing Android cellphone screen display contents at PC terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102446083A true CN102446083A (en) | 2012-05-09 |
Family
ID=46008606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011102644692A Pending CN102446083A (en) | 2011-09-07 | 2011-09-07 | Method for reading and storing Android cellphone screen display contents at PC terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102446083A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103309667A (en) * | 2013-06-14 | 2013-09-18 | 珠海全志科技股份有限公司 | Method for positioning UI (user interface) control and picture modifying position in Android system |
CN103927256A (en) * | 2013-01-16 | 2014-07-16 | 珠海市君天电子科技有限公司 | Method for controlling multiple Android devices |
WO2014187106A1 (en) * | 2013-05-20 | 2014-11-27 | 中兴通讯股份有限公司 | Method and device for starting debugging port of terminal, and terminal |
CN104751045A (en) * | 2015-04-14 | 2015-07-01 | 广东欧珀移动通信有限公司 | Screen unlocking method and device |
CN105808404A (en) * | 2014-12-31 | 2016-07-27 | 成都鼎桥通信技术有限公司 | Shared pipeline based Android device debug method |
CN105893067A (en) * | 2015-06-03 | 2016-08-24 | 福建创意嘉和软件有限公司 | Method for implementing running of Android system application based on PC machine |
CN109358920A (en) * | 2018-08-22 | 2019-02-19 | 中国平安人寿保险股份有限公司 | Screenshotss method, computer installation and computer readable storage medium |
CN111277659A (en) * | 2020-01-21 | 2020-06-12 | 上海悦易网络信息技术有限公司 | Method and device for detecting display state of transverse screen and vertical screen of mobile phone |
CN112367362A (en) * | 2020-10-23 | 2021-02-12 | 深圳市信锐网科技术有限公司 | Data processing method, device and equipment and computer storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020118200A1 (en) * | 2000-11-27 | 2002-08-29 | Shrijeet Mukherjee | Synchronization of vertical retrace for multiple participating graphics computers |
CN101212553A (en) * | 2007-12-25 | 2008-07-02 | 康佳集团股份有限公司 | Method for capturing images on TV screen through computer |
CN101697115A (en) * | 2009-10-30 | 2010-04-21 | 无敌科技(西安)有限公司 | Synchronous picture display device and method thereof |
CN102131308A (en) * | 2010-01-18 | 2011-07-20 | 盛大计算机(上海)有限公司 | Method for operating Android mobile phone file system at PC (Personal Computer) terminal |
-
2011
- 2011-09-07 CN CN2011102644692A patent/CN102446083A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020118200A1 (en) * | 2000-11-27 | 2002-08-29 | Shrijeet Mukherjee | Synchronization of vertical retrace for multiple participating graphics computers |
CN101212553A (en) * | 2007-12-25 | 2008-07-02 | 康佳集团股份有限公司 | Method for capturing images on TV screen through computer |
CN101697115A (en) * | 2009-10-30 | 2010-04-21 | 无敌科技(西安)有限公司 | Synchronous picture display device and method thereof |
CN102131308A (en) * | 2010-01-18 | 2011-07-20 | 盛大计算机(上海)有限公司 | Method for operating Android mobile phone file system at PC (Personal Computer) terminal |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927256A (en) * | 2013-01-16 | 2014-07-16 | 珠海市君天电子科技有限公司 | Method for controlling multiple Android devices |
WO2014187106A1 (en) * | 2013-05-20 | 2014-11-27 | 中兴通讯股份有限公司 | Method and device for starting debugging port of terminal, and terminal |
CN104184875A (en) * | 2013-05-20 | 2014-12-03 | 中兴通讯股份有限公司 | Opening method for terminal debugging port, device and terminal thereof |
CN104184875B (en) * | 2013-05-20 | 2019-01-11 | 中兴通讯股份有限公司 | Open method, device and the terminal of terminal debugging port |
US9501435B2 (en) | 2013-05-20 | 2016-11-22 | Zte Corporation | Enabling method and enabling device for debugging port of terminal, and terminal |
CN103309667A (en) * | 2013-06-14 | 2013-09-18 | 珠海全志科技股份有限公司 | Method for positioning UI (user interface) control and picture modifying position in Android system |
CN103309667B (en) * | 2013-06-14 | 2016-03-30 | 珠海全志科技股份有限公司 | The method of UI control and picture location revision is located in Android system |
CN105808404B (en) * | 2014-12-31 | 2018-10-23 | 成都鼎桥通信技术有限公司 | A kind of adjustment method of the Android device based on shared pipeline |
CN105808404A (en) * | 2014-12-31 | 2016-07-27 | 成都鼎桥通信技术有限公司 | Shared pipeline based Android device debug method |
CN104751045A (en) * | 2015-04-14 | 2015-07-01 | 广东欧珀移动通信有限公司 | Screen unlocking method and device |
CN105893067A (en) * | 2015-06-03 | 2016-08-24 | 福建创意嘉和软件有限公司 | Method for implementing running of Android system application based on PC machine |
CN109358920A (en) * | 2018-08-22 | 2019-02-19 | 中国平安人寿保险股份有限公司 | Screenshotss method, computer installation and computer readable storage medium |
CN111277659A (en) * | 2020-01-21 | 2020-06-12 | 上海悦易网络信息技术有限公司 | Method and device for detecting display state of transverse screen and vertical screen of mobile phone |
CN111277659B (en) * | 2020-01-21 | 2022-09-30 | 上海万物新生环保科技集团有限公司 | Method and device for detecting display state of transverse screen and vertical screen of mobile phone |
CN112367362A (en) * | 2020-10-23 | 2021-02-12 | 深圳市信锐网科技术有限公司 | Data processing method, device and equipment and computer storage medium |
CN112367362B (en) * | 2020-10-23 | 2024-01-09 | 深圳市信锐网科技术有限公司 | Data processing method, device, equipment and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102446083A (en) | Method for reading and storing Android cellphone screen display contents at PC terminal | |
US7545386B2 (en) | Unified mobile display emulator | |
US9161238B2 (en) | Mobile device monitoring and testing | |
CN103970516B (en) | Redundancy image deletion method and device | |
CN110852332B (en) | Training sample generation method and device, storage medium and electronic equipment | |
CN105468696B (en) | A kind of inspection itinerary map management system | |
CN111209193B (en) | Program debugging method and device | |
CN104951515B (en) | A method of it extracts and analyzes Android phone whereabouts trace information | |
CN102957773B (en) | A kind of cell phone software method of testing and system | |
CN106295353B (en) | Engine vulnerability detection method and detection device | |
CN110348219A (en) | Version comparison method, system, computer equipment and readable storage medium storing program for executing | |
CN102467442A (en) | Software testing method, system and equipment | |
CN104049974A (en) | Dynamic control assembly method and system | |
CN103369140A (en) | Display font amplification method, system and communication terminal | |
CN105045676A (en) | Device and method for recovering lost data based on SQLite database | |
KR20230006580A (en) | Image data encoding method and device, display method and device, electronic device | |
CN107426588B (en) | Method, system and storage device for acquiring television set configuration information | |
CN112416775A (en) | Software automation testing method and device based on artificial intelligence and electronic equipment | |
CN103209254B (en) | Method and device for managing mobile phone transaction by utilizing paper note | |
CN105224420B (en) | A kind of analysis method and system of automatic parsing terminal abnormal | |
CN111475237A (en) | Menu processing method and device, electronic equipment and storage medium | |
CN103136264B (en) | Attachment query method and user terminal | |
CN105404663A (en) | Android device file list display method and system | |
CN111857672A (en) | Business development method, device, equipment and medium based on SQL configuration | |
CN110865573A (en) | Control system based on python |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120509 |