CN103873452A - Method and system for connecting android system by PC (personal computer) browser - Google Patents

Method and system for connecting android system by PC (personal computer) browser Download PDF

Info

Publication number
CN103873452A
CN103873452A CN201210551046.3A CN201210551046A CN103873452A CN 103873452 A CN103873452 A CN 103873452A CN 201210551046 A CN201210551046 A CN 201210551046A CN 103873452 A CN103873452 A CN 103873452A
Authority
CN
China
Prior art keywords
browser
android
local
android equipment
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210551046.3A
Other languages
Chinese (zh)
Inventor
张�杰
王京
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING ZHANGHUI TIANXIA TECHNOLOGY Co Ltd
Original Assignee
BEIJING ZHANGHUI TIANXIA 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 ZHANGHUI TIANXIA TECHNOLOGY Co Ltd filed Critical BEIJING ZHANGHUI TIANXIA TECHNOLOGY Co Ltd
Priority to CN201210551046.3A priority Critical patent/CN103873452A/en
Publication of CN103873452A publication Critical patent/CN103873452A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and a system for connecting an android system by a PC (personal computer) browser. The method comprises the following steps: S1) installing PC client side software in a PC; S2) comprising a local HTTP (hyper text transport protocol) service module in the PC client side software, and opening a local HTTP service port by the local HTTP service module; S3) when the PC browser needs to be communicated with the local android equipment in the process of browsing a certain website and accessing a remote HTTP service port, carrying out cross-domain access to the local HTTP service port; S4) carrying out both-way communication between the PC browser and the PC client side software, and realizing the operation to the local android equipment by the user in the PC browser. According to the method and the system for connecting the android system by the browser, which are disclosed by the invention, the optimal user experience is kept, the harsh requirement on the operation environment is avoided, the method and the system conform to the intuition and the use habit of a user, and therefore a user can conveniently install an APK (android package) file on a mobile phone, and can carry out more deep operations on the mobile phone.

Description

A kind of method and system of utilizing PC browser to connect Android equipment
Technical field
The invention belongs to computer and communication technique field, relate to a kind of method that connects Android equipment, relate in particular to a kind of method that the PC of utilization browser connects Android equipment; Meanwhile, the invention still further relates to the system that a kind of PC of utilization browser connects Android equipment.
Background technology
Android(Android) equipment popularized in recent years fast, and in smart mobile phone, the occupation rate of Android system exceedes 50%, and the method that at present known PC browser connects Android equipment mainly contains three kinds.
First method, first downloads and installs pc client, and pc client will be registered browser external protocol to operating system.Then the page in PC browser, the form of use " external protocol request ", calls the pc client of having installed, and pc client communicates with Android equipment again, forwards the request of sending in PC browser.
The advantage of this method is simple.Shortcoming is whether the program in (1) PC browser cannot detect pc client and install, and also cannot learn whether Android equipment connects; (2) information is unidirectional delivery, can only be from the simple information of PC browser transmission to pc client, and PC browser cannot obtain the information in any pc client, is therefore conventionally applied to installing the scene of an APK file to mobile phone.
The typical application that uses technique comprises: (1) pea pods Web mono-key installation+pea pods mobile phone spirit (PC version); (2) Hai Na of the Tengxun search mobile phone house keeper of Web+ Tengxun (PC version).In fact most existing application have been used technique.
Second method, is commonly referred to OTA (Over The Air) method, and specific practice is that user registers and logins in PC browser He in Android equipment in same service.Like this, the corresponding relation of PC browser and Android equipment has just been known in this service, and uses high in the clouds service to help the two to carry out information transmission.
The advantage of this method is between PC browser and Android equipment to be two-way communication, can carry out complicated deep operation.The shortcoming of this method is that (1) need to have wifi or operator's data to connect (GPRS/EDGE/3G etc.), and uses operator's data connection charge higher; (2) PC browser and Android equipment all need user to register and login, and need to operate at PC end and Android equipment end when use simultaneously, cumbersome.
The typical application that uses this technology comprises: pea pods application propelling movement+pea pods mobile phone spirit (Android version).
The third method, first ensure that PC browser and Android equipment are in same subnet (conventionally need under a wifi focus), then open a web services by the application in Android equipment, user uses this service of PC browser access, carries out message transmission with Android equipment.
The shortcoming of this method is that (1) requires harsher (2) to violate user's intuition and use habit to running environment, is relatively difficult to be accepted by user.Therefore use the application of these class methods little, the most typical AirDroid that is applied as.
Summary of the invention
Technical problem to be solved by this invention is: provide a kind of PC of utilization browser to connect the method for Android equipment, APK file can be installed easily to mobile phone, but also can carry out more more deep operations to mobile phone.
In addition, the present invention also provides a kind of PC of utilization browser to connect the system of Android equipment, APK file can be installed easily to mobile phone, but also can carry out more more deep operations to mobile phone.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
Utilize PC browser to connect a method for Android equipment, described method comprises the steps:
Step S1, pc client software is installed in PC; Step S2, pc client software comprise local HTTP service module, utilize described local HTTP service module to open a local HTTP serve port; Step S3, PC browser be browsing certain website, access in the process of long-range HTTP serve port, needs and when local Android devices communicating cross-domain access this locality HTTP serve port; Between step S4, PC browser and pc client software, carry out two-way communication, realize user's operation to local Android equipment in PC browser.
As a preferred embodiment of the present invention, in described step S3, described PC browser needs to communicate with application website and Android equipment simultaneously, so that user operates Android equipment on application website user interface, uses the cross-domain access characteristics of browser; Described application website provides long-range HTTP service, and Android equipment is realized local HTTP by pc client agency and served.
As a preferred embodiment of the present invention, in described step S3, specifically comprise the steps:
The HTTP service that step S31, PC browser provide by cross-domain access method and pc client communicates; Step S32, pc client, as ADB client, communicate with ADB server; ADB server be provided by Google for connecting the standard module of Android equipment; Step S33, ADB server connect by USB line or network TCP, and with Android devices communicating, Android equipment is carried out the desired various command of PC end ADB server.
Utilize PC browser to connect a system for Android equipment, described system comprises pc client software, PC browser, and described pc client software is installed in PC; Described pc client software comprises local HTTP service module, utilizes described local HTTP service module to open a local HTTP serve port; Described PC browser is browsing certain website, access in the process of long-range HTTP serve port, when needs and local Android devices communicating, the local HTTP serve port of cross-domain access, realize the two-way communication between PC browser and pc client software, realize user's operation to local Android equipment in PC browser.
As a preferred embodiment of the present invention, described PC browser utilizes JSONP class by the local HTTP serve port of the cross-domain access of cross-domain characteristic in label.
As a preferred embodiment of the present invention, described PC browser needs to communicate with application website and Android equipment simultaneously, so that user operates Android equipment on application website user interface, uses the cross-domain access characteristics of browser; Described application website provides long-range HTTP service, and Android equipment is realized local HTTP by pc client agency and served.
As a preferred embodiment of the present invention, the HTTP service that PC browser provides by cross-domain access method and pc client communicates; Pc client, as ADB client, communicates with ADB server; ADB server be provided by Google for connecting the standard module of Android equipment; ADB server connects by USB line or network TCP, and with Android devices communicating, Android equipment is carried out the desired various command of PC end ADB server.
Beneficial effect of the present invention is: what the present invention proposed utilizes PC browser to connect the method and system of Android equipment, both kept both having kept optimal user experience, avoid again the harsh requirement to running environment, meet user's intuition and use habit, make user APK file not only can be installed easily to mobile phone, but also can carry out more more deep operations to mobile phone.
Brief description of the drawings
Fig. 1 is that the present invention utilizes PC browser to connect the flow chart of Android device, method.
Fig. 2 is the flow chart of the local HTTP serve port of cross-domain access in the inventive method.
Fig. 3 is that the present invention utilizes PC browser to connect the composition schematic diagram of Android device systems.
Embodiment
Describe the preferred embodiments of the present invention in detail below in conjunction with accompanying drawing.
embodiment mono-
The present invention has utilized the first method of attachment being similar in background technology, but pc client is no longer registered browser external protocol to operating system, but utilizes local HTTP service module, opens a local HTTP serve port.Program in PC browser, no longer only and the HTTP service in high in the clouds communicate, and in needs and local Android devices communicating, utilize cross-domain access technique to connect local HTTP serve port.Like this, PC browser just can freedom and pc client between carry out two-way communication, be no longer limited to the mode of " external protocol request ".
Refer to Fig. 1, the present invention has disclosed a kind of method that the PC of utilization browser connects Android equipment, and described method comprises the steps:
[step S1] installs pc client software in PC.
[step S2] pc client software comprises local HTTP service module, utilizes described local HTTP service module to open a local HTTP serve port.
[step S3] PC browser is browsing certain website, access in the process of long-range HTTP serve port, needs and when local Android devices communicating cross-domain access this locality HTTP serve port.Because PC browser needs simultaneously to communicate with application website (long-range HTTP service is provided) and Android equipment (acting on behalf of Android equipment by pc client has realized local HTTP and serve), so that user operates Android equipment on application website user interface, therefore must use the cross-domain access characteristics of browser.JSONP is a kind of typical cross-domain access method of browser.
Step S3 comprises the steps:
The HTTP service that step 31, PC browser provide by cross-domain access method and pc client communicates.
Step 32, pc client, as ADB client, communicate with ADB server; ADB server be provided by Google for connecting the standard module of Android equipment.
Step 33, ADB server connect by USB line or network TCP, and with Android mobile communication, Android mobile phone is carried out the desired various command of PC end ADB server.
Between [step S4] PC browser and pc client software, carry out two-way communication, realize user's operation to local Android equipment in PC browser.
More than introduced the present invention and utilized PC browser to connect the flow process of Android equipment 20 methods, the present invention, in introducing said method, also discloses the system that a kind of PC of utilization browser connects Android equipment; Refer to Fig. 4, described system comprises pc client software 11, PC browser 12, and described pc client software is installed in PC10.
Described pc client software 11 comprises local HTTP service module, utilizes described local HTTP service module to open a local HTTP serve port.Described PC browser 12 is browsing certain website, access in the process of long-range HTTP serve port, when needs and local Android devices communicating, the local HTTP serve port of cross-domain access, realize the two-way communication between PC browser 12 and pc client software 11, realize user's operation to local Android equipment 20 in PC browser 12.
Realize local HTTP and served because PC browser 12 needs simultaneously to act on behalf of Android equipment with application website (long-range HTTP service is provided) and Android equipment 20(by pc client) communicate, so that user operates Android equipment on application website user interface, therefore must use the cross-domain access characteristics of browser.JSONP is a kind of typical cross-domain access method of browser.
Refer to Fig. 2, the method for the local HTTP serve port of the cross-domain access of described PC browser comprises:
The HTTP service that step 31, PC browser provide by cross-domain access method and pc client communicates; Step 32, pc client, as ADB client, communicate with ADB server; ADB server be provided by Google for connecting the standard module of Android equipment; Step 33, ADB server connect by USB line or network TCP, and with Android mobile communication, Android mobile phone is carried out the desired various command of PC end ADB server.
In sum, what the present invention proposed utilizes PC browser to connect the method and system of Android equipment, both kept both having kept optimal user experience, avoid again the harsh requirement to running environment, meet user's intuition and use habit, make user APK file not only can be installed easily to mobile phone, but also can carry out more more deep operations to mobile phone.
Here description of the invention and application is illustrative, not wants scope of the present invention to limit in the above-described embodiments.Here the distortion of disclosed embodiment and change is possible, and for those those of ordinary skill in the art, the various parts of the replacement of embodiment and equivalence are known.Those skilled in the art are noted that in the situation that not departing from spirit of the present invention or substantive characteristics, and the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts.In the situation that not departing from the scope of the invention and spirit, can carry out other distortion and change to disclosed embodiment here.

Claims (5)

1. utilize PC browser to connect a method for Android equipment, it is characterized in that, described method comprises the steps:
Step S1, pc client software is installed in PC;
Step S2, pc client software comprise local HTTP service module, utilize described local HTTP service module to open a local HTTP serve port;
Step S3, PC browser be browsing certain website, access in the process of long-range HTTP serve port, needs and when local Android devices communicating cross-domain access this locality HTTP serve port;
Between step S4, PC browser and pc client software, carry out two-way communication, realize user's operation to local Android equipment in PC browser.
2. the method for utilizing PC browser to connect Android equipment according to claim 1, is characterized in that:
In described step S3, PC browser needs to communicate with application website and Android equipment simultaneously, so that user operates Android equipment on application website user interface, uses the cross-domain access characteristics of browser; Described application website provides long-range HTTP service, and Android equipment is realized local HTTP by pc client agency and served.
3. the method for utilizing PC browser to connect Android equipment according to claim 1 and 2, is characterized in that:
In described step S3, specifically comprise the steps:
The HTTP service that step S31, PC browser provide by cross-domain access method and pc client communicates;
Step S32, pc client, as ADB client, communicate with ADB server; ADB server be provided by Google for connecting the standard module of Android equipment;
Step S33, ADB server connect by USB line or network TCP, and with Android devices communicating, Android equipment is carried out the desired various command of PC end ADB server.
4. utilize PC browser to connect a system for Android equipment, it is characterized in that, described system comprises pc client software, PC browser, and described pc client software is installed in PC;
Described pc client software comprises local HTTP service module, utilizes described local HTTP service module to open a local HTTP serve port;
Described PC browser is browsing certain website, access in the process of long-range HTTP serve port; when needs and local Android devices communicating; the local HTTP serve port of cross-domain access; realize the two-way communication between PC browser and pc client software, realize user's operation to local Android equipment in PC browser; Described Android equipment is realized local HTTP by pc client agency and is served; Described application website provides long-range HTTP service.
5. the system of utilizing PC browser to connect Android equipment according to claim 4, is characterized in that:
The HTTP service that described PC browser provides by cross-domain access method and pc client communicates;
Described pc client, as ADB client, communicates with ADB server; ADB server be provided by Google for connecting the standard module of Android equipment;
Described ADB server connects by USB line or network TCP, and with Android devices communicating, Android equipment is carried out the desired various command of PC end ADB server.
CN201210551046.3A 2012-12-18 2012-12-18 Method and system for connecting android system by PC (personal computer) browser Pending CN103873452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210551046.3A CN103873452A (en) 2012-12-18 2012-12-18 Method and system for connecting android system by PC (personal computer) browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210551046.3A CN103873452A (en) 2012-12-18 2012-12-18 Method and system for connecting android system by PC (personal computer) browser

Publications (1)

Publication Number Publication Date
CN103873452A true CN103873452A (en) 2014-06-18

Family

ID=50911581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210551046.3A Pending CN103873452A (en) 2012-12-18 2012-12-18 Method and system for connecting android system by PC (personal computer) browser

Country Status (1)

Country Link
CN (1) CN103873452A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486371A (en) * 2014-11-20 2015-04-01 北京安奇智联科技有限公司 Equipment and method for downloading file on batch
CN106250455A (en) * 2016-07-27 2016-12-21 北京奇虎科技有限公司 Mobile terminal document management method and system
CN106325876A (en) * 2016-08-29 2017-01-11 中山市天启智能科技有限公司 Method and system for graphically programming and controlling embedded equipment on line
CN108234136A (en) * 2018-01-25 2018-06-29 北京深思数盾科技股份有限公司 A kind of safety access method, terminal device and system
CN108289100A (en) * 2018-01-25 2018-07-17 北京深思数盾科技股份有限公司 A kind of safety access method, terminal device and system
CN115314484A (en) * 2022-06-15 2022-11-08 广州九尾信息科技有限公司 Local area network android test package automatic distribution device based on MQTT protocol

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309291A (en) * 2008-05-30 2008-11-19 中兴通讯股份有限公司 Tool and method for terminal data maintenance
CN102131308A (en) * 2010-01-18 2011-07-20 盛大计算机(上海)有限公司 Method for operating Android mobile phone file system at PC (Personal Computer) terminal
CN102185925A (en) * 2011-05-18 2011-09-14 中兴通讯股份有限公司 System, terminal and method for supporting terminal data processing of computer
US20110282978A1 (en) * 2010-05-14 2011-11-17 Avaya Inc. Browser plug-in
US20110317022A1 (en) * 2009-08-17 2011-12-29 Jianhua Cao Method and apparatus for live capture image-live streaming camera
CN102394967A (en) * 2011-09-07 2012-03-28 南京云恒瑞通网络科技有限责任公司 Unified PC (Personnel Computer) management method transparent to mobile terminal user
CN102541795A (en) * 2012-01-09 2012-07-04 南京航空航天大学 Method and system for USB (universal serial bus) dynamic real-time control based on Android system
CN102801746A (en) * 2011-05-24 2012-11-28 比亚迪股份有限公司 Method and system for sharing mobile terminal network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309291A (en) * 2008-05-30 2008-11-19 中兴通讯股份有限公司 Tool and method for terminal data maintenance
US20110317022A1 (en) * 2009-08-17 2011-12-29 Jianhua Cao Method and apparatus for live capture image-live streaming camera
CN102131308A (en) * 2010-01-18 2011-07-20 盛大计算机(上海)有限公司 Method for operating Android mobile phone file system at PC (Personal Computer) terminal
US20110282978A1 (en) * 2010-05-14 2011-11-17 Avaya Inc. Browser plug-in
CN102185925A (en) * 2011-05-18 2011-09-14 中兴通讯股份有限公司 System, terminal and method for supporting terminal data processing of computer
CN102801746A (en) * 2011-05-24 2012-11-28 比亚迪股份有限公司 Method and system for sharing mobile terminal network
CN102394967A (en) * 2011-09-07 2012-03-28 南京云恒瑞通网络科技有限责任公司 Unified PC (Personnel Computer) management method transparent to mobile terminal user
CN102541795A (en) * 2012-01-09 2012-07-04 南京航空航天大学 Method and system for USB (universal serial bus) dynamic real-time control based on Android system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486371A (en) * 2014-11-20 2015-04-01 北京安奇智联科技有限公司 Equipment and method for downloading file on batch
CN104486371B (en) * 2014-11-20 2018-11-23 北京安奇智联科技有限公司 Batch downloads the device and method of file
CN106250455A (en) * 2016-07-27 2016-12-21 北京奇虎科技有限公司 Mobile terminal document management method and system
CN106325876A (en) * 2016-08-29 2017-01-11 中山市天启智能科技有限公司 Method and system for graphically programming and controlling embedded equipment on line
CN106325876B (en) * 2016-08-29 2019-07-26 中山市天启智能科技有限公司 Method, the system of a kind of programming of inline graphicsization and control embedded device
CN108234136A (en) * 2018-01-25 2018-06-29 北京深思数盾科技股份有限公司 A kind of safety access method, terminal device and system
CN108289100A (en) * 2018-01-25 2018-07-17 北京深思数盾科技股份有限公司 A kind of safety access method, terminal device and system
CN108289100B (en) * 2018-01-25 2019-11-12 北京深思数盾科技股份有限公司 A kind of safety access method, terminal device and system
CN115314484A (en) * 2022-06-15 2022-11-08 广州九尾信息科技有限公司 Local area network android test package automatic distribution device based on MQTT protocol

Similar Documents

Publication Publication Date Title
CN103873452A (en) Method and system for connecting android system by PC (personal computer) browser
CN102158350B (en) Mobile broadband equipment and mobile broadband equipment management method
CN102262552B (en) A kind of application program striding equipment synchronous method and system
CN103685269B (en) A kind of web browser carries out the method and system of both-way communication with server
CN102523276B (en) A kind of method, equipment and system managing mobile broadband equipment
CN102752369B (en) The supplying method of TV applications service and virtual content service platform
CN102291437A (en) System and method for realizing application of cross-platform internet
CN111343020A (en) Unified management method and device for multi-protocol Internet of things equipment
CN102447720A (en) Method for remotely controlling personal computer (PC) by mobile phone
CN102904959A (en) Network accelerating method and gateway
CN102541795A (en) Method and system for USB (universal serial bus) dynamic real-time control based on Android system
CN103780685A (en) Method for adaptive data sharing among diversified intelligent equipment
CN103605798A (en) Method for directly operating file stored at cloud end
CN102299963A (en) File downloading system
CN103561402A (en) Data transmitting method, intelligent network access equipment and mobile equipment
CN105141536A (en) Intelligent router gateway
CN102185925B (en) A kind of support by the system of computer disposal terminal data, terminal and method
CN104125662A (en) Wireless access point centralized management device and method
RU2009132114A (en) METHOD FOR IDENTIFICATION OF DEVICES IN WORKING MEDIA OF MOBILE COMMUNICATION AND DESKTOP COMPUTERS
CN101931945A (en) Download and installation method for realizing (U) SIM card application by using PC terminal
CN103780478A (en) Information sharing method and mobile terminal
CN102880508A (en) Method and system for realizing PC (Personal Computer)-controlled Android terminal
CN102647451A (en) Automatic matching method and device for mobile terminal and cloud access
CN103686685A (en) Wireless communication module over-the-air upgrading method
CN203135933U (en) Portable wireless hand-held terminal software installation apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140618

WD01 Invention patent application deemed withdrawn after publication