WO2016095686A1 - 浏览器与移动终端之间进行通信的方法及浏览器装置 - Google Patents

浏览器与移动终端之间进行通信的方法及浏览器装置 Download PDF

Info

Publication number
WO2016095686A1
WO2016095686A1 PCT/CN2015/095804 CN2015095804W WO2016095686A1 WO 2016095686 A1 WO2016095686 A1 WO 2016095686A1 CN 2015095804 W CN2015095804 W CN 2015095804W WO 2016095686 A1 WO2016095686 A1 WO 2016095686A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
information
browser
page
module
Prior art date
Application number
PCT/CN2015/095804
Other languages
English (en)
French (fr)
Inventor
李煜
田新超
杨晓兵
孟凡磊
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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
Priority claimed from CN201410802571.7A external-priority patent/CN104394237B/zh
Priority claimed from CN201410805374.0A external-priority patent/CN104461559B/zh
Application filed by 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Priority to US15/537,849 priority Critical patent/US10193737B2/en
Publication of WO2016095686A1 publication Critical patent/WO2016095686A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a method and a browser device for communicating between a browser and a mobile terminal.
  • the data communication between the browser and the mobile terminal needs to be accessed by the client where the browser is located, and the USB data line or WIFI.
  • the user needs to download the application on the browser side to the client where the browser is located, and then
  • the mobile terminal is connected to the client where the browser is located through the USB data line or WIFI, and the application is transmitted to the mobile terminal, and the data transmission cannot be directly performed between the browser and the mobile terminal, and the user needs to switch during the process of browsing the webpage on the Internet.
  • the stored data information and/or device information in the mobile terminal can be viewed, making the user's operation cumbersome.
  • the present invention has been made in order to provide a method and corresponding browser device for communicating between a browser and a mobile terminal that overcomes the above problems or at least partially solves the above problems.
  • a method for communication between a browser and a mobile terminal comprising:
  • the startup page process loads a preset page, and the page process notifies the browser that the first process establishes a data communication channel with the mobile terminal;
  • the page process After the data communication channel is established, the page process notifies the browser that the first process requests the mobile terminal for the stored data information and/or the device information in the mobile terminal;
  • the page process acquires stored data information and/or device information in the mobile terminal transmitted via the browser first process and displays it in a preset page.
  • a method for communicating between a browser and a mobile terminal wherein the browser performs the first transmission tool program installed on a client where the browser is located with the mobile terminal Data communication, the method includes:
  • the startup page process loads a preset page, and the page process notifies the browser main program to establish a data communication channel with the first transmission tool program;
  • the page process After the data communication channel is established, the page process notifies the browser main program to request the first transmission tool program to store the data information and/or the device information in the mobile terminal;
  • the page process acquisition is returned by the first transfer tool program transmitted via the browser main program
  • the data terminal and/or device information in the mobile terminal is stored and displayed in the preset page.
  • a browser apparatus including: a first process module running a first process of a browser; and a first page process module running a page process;
  • the first process module is adapted to: trigger a read request for storing data information and/or device information in a mobile terminal bound to the browser on a browser side; and start a page process to load a preset page, according to The notification of the page process module establishes a data communication channel with the mobile terminal;
  • the first page process module includes:
  • a first calling module configured to notify the first process module to request, by the mobile terminal, the stored data information and/or the device information in the mobile terminal;
  • a first acquiring module configured to acquire storage data information and/or device information in the mobile terminal transmitted by the first process module
  • the first loading module is adapted to load the stored data information and/or device information in the mobile terminal and display it in the preset page.
  • a browser device that performs data communication with a mobile terminal through a first transfer tool program installed on a client where the browser device is located, the browser device including : running the main program module of the browser main program and the second page process module running the page process;
  • the main program module is adapted to: trigger a read request for storing data information and/or device information in a mobile terminal bound to the browser on a browser side; and start a page process to load a preset page, Establishing a data communication channel with the first transfer tool program according to the notification of the page process module;
  • the second page process module includes:
  • a second calling module configured to notify the main program module to request, by the first transfer tool program, the stored data information and/or the device information in the mobile terminal;
  • a second acquiring module configured to acquire storage data information and/or device information in the mobile terminal returned by the first transmission tool program transmitted by the main program module;
  • the second loading module is adapted to load and store the stored data information and/or device information in the mobile terminal in the preset page.
  • a computer program comprising computer readable code that, when executed on a computing device, causes the computing device to perform any of the browsers and moves described above A method of communicating between terminals.
  • a computer readable medium storing the above computer program is provided.
  • the data communication channel between the browser and the mobile terminal is established by using the preset page, so that the browser can directly perform data transmission with the mobile terminal, and the browser can acquire the mobile terminal without using other auxiliary applications.
  • the user in the process of browsing the webpage by the user, if the user wants to view the stored data information and/or the device information in the mobile terminal, the user does not need to switch the program interface, and can directly view the preset page through the trigger button provided by the browser. Easy to operate.
  • the data communication channel between the browser and the first transmission tool program can also be established by using the preset page, so that the browser can perform data transmission with the mobile terminal, and the browser can acquire the first transmission.
  • the data information and/or device information stored in the mobile terminal returned by the tool program is loaded and displayed on the preset page for the user to view.
  • FIG. 1 shows a flow chart of a method of communication between a browser and a mobile terminal in accordance with one embodiment of the present invention
  • FIG. 2 is a flow chart showing a method of communication between a browser and a mobile terminal according to another embodiment of the present invention
  • FIG. 3 shows device information of a mobile terminal displayed in an information area of a preset page
  • FIG. 4 shows device information of the mobile terminal displayed in the information area of the preset page after updating
  • FIG. 5 is a flowchart showing a method of communication between a browser and a mobile terminal according to another embodiment of the present invention.
  • Figure 6 shows an application market subpage obtained from a server
  • FIG. 7 shows stored data information of a mobile terminal in an application market area of a preset page
  • FIG. 8 is a block diagram showing the structure of a browser device according to an embodiment of the present invention.
  • FIG. 9 is a block diagram showing the structure of a browser device according to another embodiment of the present invention.
  • FIG. 10 is a flow chart showing a method of communication between a browser and a mobile terminal according to still another embodiment of the present invention.
  • FIG. 11 is a flowchart showing a method of communication between a browser and a mobile terminal according to still another embodiment of the present invention.
  • FIG. 12 shows another device information of a mobile terminal displayed in an information area of a preset page
  • FIG. 13 shows another updated device information of the mobile terminal displayed in the information area of the preset page
  • FIG. 14 is a flowchart showing a method of communication between a browser and a mobile terminal according to still another embodiment of the present invention.
  • Figure 15 shows another application market sub-page obtained from the server
  • Figure 16 is a diagram showing stored data information of a mobile terminal of an application market area of another preset page
  • FIG. 17 is a block diagram showing the structure of a browser device according to still another embodiment of the present invention.
  • FIG. 18 is a block diagram showing the structure of a browser device according to still another embodiment of the present invention.
  • Figure 19 is a block diagram schematically showing a computing device for performing a method of communicating between a browser and a mobile terminal in accordance with the present invention
  • Fig. 20 schematically shows a storage unit for holding or carrying program code for implementing a method of communicating between a browser and a mobile terminal according to the present invention.
  • a browser is a piece of software that can display the contents of an HTML file on a web server or file system and let users interact with these files.
  • a mobile terminal refers to a computer device that can be used on the move, such as a mobile phone, a notebook, or a tablet.
  • direct data communication can be implemented between the browser and the mobile terminal without using any auxiliary application.
  • the present invention needs to pre-configure the ADB component associated with the mobile terminal operating system and the ADB component on the browser side. Provides multiple DLL interfaces for the specified functions that are available to the first process of the browser. After the ADB component is configured on the browser side, the browser can connect to all Android devices for data communication by calling the DLL interface in the ADB component.
  • ADB (Android Debug Bridge) is a general debugging tool in the Android SDK. It can be used to directly manage Android emulators or real Android devices (such as Samsung mobile phones). Its main functions are: 1, the shell of the running device (command line); 2, port mapping of the management simulator or device; 3, upload / download files between the computer and the device; 4, install the local apk software to the simulator Or an Android device.
  • ADB is a client-server program, in which the client program is installed on the PC used by the user, and the server program is installed on the Android device.
  • the ADB client program is installed in the browser, and the ADB server program is installed in the mobile terminal device.
  • FIG. 1 shows a flow chart of a method of communication between a browser and a mobile terminal in accordance with one embodiment of the present invention. As shown in Figure 1, the method includes the following steps:
  • Step S100 triggering a read request for storing data information and/or device information in a mobile terminal bound to the browser on the browser side.
  • the browser interface includes a trigger button of the mobile phone assistant. After the user opens the browser through the client, the user activates the stored data information and/or the mobile terminal bound to the browser by clicking the trigger button of the mobile assistant. Read request for device information.
  • Step S101 the startup page process loads a preset page, and the page process notifies the browser first process to establish a data communication channel with the mobile terminal.
  • the preset page is a page that is displayed on the browser side after clicking the trigger button of the mobile assistant, the preset page The page is the local page of the browser.
  • a request for starting the page process is initiated to the first process of the browser, and the first process of the browser starts the page process according to the request, and the preset process is loaded by the page process.
  • the page process sends a notification to the first process of the browser to establish a data communication channel between the first process of the browser and the mobile terminal when the preset page is loaded.
  • Step S102 after the data communication channel is established, the page process notifies the browser that the first process requests the mobile terminal for the stored data information and/or the device information in the mobile terminal.
  • the mobile terminal can connect to the client where the browser is located through the WIFI or USB data cable.
  • the first process of the browser detects whether the mobile terminal is connected. In the case that the mobile terminal is connected, the first process of the browser notifies the page process that the mobile terminal is connected.
  • the page process After receiving the notification that the mobile terminal sent by the first process of the browser is connected, the page process notifies the browser that the first process sends a request for acquiring the stored data information and/or device information in the mobile terminal to the mobile terminal, and the browser first The process sends a command to the mobile terminal to request storage of data information and/or device information in the mobile terminal through the ADB component.
  • Step S103 The page process acquires stored data information and/or device information in the mobile terminal transmitted through the first process of the browser, and loads and displays the data in the preset page.
  • the mobile terminal returns the stored data information and/or the device information in the mobile terminal to the first process of the browser by using the ADB component, and the first process of the browser returns the stored data information and/or device information in the obtained mobile terminal to the page. process.
  • the page process obtains the stored data information and/or device information returned by the first process of the browser, the information is loaded and displayed on the preset page.
  • the data communication channel between the browser and the mobile terminal is established by using the preset page, so that the browser can directly perform data transmission with the mobile terminal, and the browser can acquire the data without using other auxiliary applications.
  • the data information and/or device information in the mobile terminal is stored and displayed in a preset page for the user to view.
  • the first process of the browser may be specifically a main process of the browser, wherein the page process communicates with the main process of the browser through a pre-written JS program in the preset page, and the main process of the browser is pre-configured by calling The DLL interface in the ADB component associated with the mobile terminal operating system communicates with the mobile terminal.
  • the first process of the browser is specifically a process set independently of the main process of the browser, and the first process of the browser communicates with the page process via the main process of the browser by means of inter-process communication, wherein the inter-process communication refers to at least two processes.
  • the page process communicates with the main process of the browser through a pre-written JS program in the preset page, and the first process of the browser is operated by calling the pre-configured mobile terminal.
  • the DLL interface in the ADB component associated with the system communicates with the mobile terminal.
  • the mobile terminal is used as a mobile phone and the client is a PC as an example.
  • the method includes the following steps:
  • Step S200 triggering reading of device information in the mobile phone bound to the browser on the browser side of the PC Take the request.
  • the device information in the mobile phone includes status information of the mobile phone and a screenshot of the mobile phone desktop.
  • the status information of the mobile phone includes one or more of the following information: the name and model of the mobile phone, the total storage capacity information of the mobile phone, and the remaining storage amount information, and SD card information of the mobile phone.
  • the browser interface includes a trigger button of the mobile assistant, for example, adding a trigger button of the mobile assistant in the toolbar or the sidebar of the browser. After the user opens the browser in the PC, the trigger button of the mobile assistant is triggered. A read request for device information in a mobile phone bound to the browser.
  • Step S201 the startup page process loads a preset page.
  • a request to start the page process is initiated to the main process of the browser, and the main process of the browser starts the page process according to the request, and the preset process is loaded by the page process, that is, the mobile assistant page.
  • the mobile assistant page is a page that is displayed on the browser side after clicking the trigger button of the mobile assistant.
  • the mobile assistant page is a page local to the browser, and is not a page requested from the network side.
  • Scripts (JS) programs for implementing various functions are pre-written in the mobile phone assistant page. These JS programs provide corresponding JS interfaces for page process calls. When the page process calls a JS interface, the browser main process calls.
  • the corresponding DLL interface provided by the ADB component implements the corresponding functions.
  • the JS interface supporting the page process call includes but is not limited to the following:
  • AppStore_getMobileInfo() Get the status information interface of the mobile phone
  • AppStore_start() the calling interface when the page starts, used to establish a data communication channel
  • AppStore_isEnable() Query whether to support the interface to open the phone function
  • AppStore_getMobileScreenImage() Get the interface of the mobile phone desktop screenshot
  • the Mobile Assistant page also provides a JS interface for notification status that can be called by the browser's main process, including but not limited to:
  • Step S202 the page process notifies the browser main process to call the first DLL interface provided by the ADB component, so that the mobile phone responds to the call request of the first DLL interface, and establishes a data communication channel with the browser.
  • the page process calls the AppStore_start() interface, and the browser main process calls the first DLL interface provided by the ADB component according to the notification of the page process, and can establish a data communication channel with the mobile phone by calling the first DLL interface. Request to pass directly to the phone. Since the ADB component is a client-server program, the mobile phone can respond to the call request of the browser main process and establish a data communication channel with the browser, and the data communication channel enables the browser to perform data transmission with the mobile phone. .
  • Step S203 after the data communication channel is established, the page process notifies the browser main process to request the device information of the connected mobile phone from the mobile phone.
  • the device information of the mobile phone contains the status information of the mobile phone and a screenshot of the mobile phone desktop.
  • the status information of the mobile phone includes one or more of the following information: the name and model of the mobile phone, the total storage capacity information of the mobile phone and the remaining storage amount information, and the SD card information of the mobile phone.
  • An already connected mobile phone refers to a mobile phone device that has established a connection with a PC on which the browser is located via a WIFI or USB data cable.
  • the page process notifies the browser main process to call the second DLL interface provided by the ADB component, so that the mobile phone responds to the call request of the second DLL interface, and returns the state information of the mobile phone and the mobile phone desktop screenshot to the main browser process.
  • the main process of the browser detects whether the mobile phone is connected. When the mobile phone is connected, the main process of the browser calls back the AppStore_onConnect() interface to notify the page process that the mobile phone is connected. After receiving the notification that the mobile phone sent by the main process of the browser is connected, the page process calls the AppStore_getMobileInfo() interface and the AppStore_getMobileScreenImage() interface, and the browser main process calls the second DLL interface provided by the ADB component to the mobile phone according to the notification of the page process.
  • the assistant requests status information of the mobile phone and a screenshot of the mobile phone desktop.
  • Step S204 The page process acquires device information in the mobile phone transmitted through the main process of the browser, and loads and displays the device information in the mobile phone assistant page, so that the user on the browser side selects the mobile phone for data transmission.
  • the browser main process obtains the status information of the mobile phone and the screenshot of the mobile phone desktop
  • the status information of the mobile phone and the screenshot of the mobile phone desktop are provided to the page process;
  • the page process displays the status information of the mobile phone and the screenshot of the mobile phone desktop in the information area of the preset page.
  • a drop-down menu can be used to load and display the status information of each mobile phone and the desktop screenshot according to the user's selection.
  • the user also needs to select a mobile phone that transmits data to the browser.
  • the mobile phone returns the status information of the mobile phone and the screenshot of the mobile phone desktop to the main process of the browser through the ADB component according to the request sent by the main process of the browser, and the main process of the browser obtains the status information of the mobile phone returned by the mobile phone and the screenshot of the mobile phone desktop.
  • callback AppStore_setMobileInfo(string Phone_info_json) interface, AppStore_setMobileScreenImage (string screen_snapshot_data) interface used to provide the phone's status information and mobile phone desktop screenshots to the page process.
  • the page process will get the name of the mobile phone obtained from the main process of the browser: OPPO Find5, the total storage capacity information of the mobile phone: 4G and the remaining storage capacity information 1.6G, the SD card information of the mobile phone: total amount: 14.5G Remaining: 7.2G and the desktop of the current mobile phone are displayed in the information area of the preset page, and the information area of the preset page is displayed as “Manage My Phone”, as shown in FIG. 3 .
  • the mobile phone desktop screenshot in the information area of the mobile assistant page is the default robot style, and the place for displaying the mobile phone name will display “no mobile phone connected”, information The button at the bottom of the area will appear as "Connect Phone”.
  • the mobile phone assistant page in this embodiment may also display the device information of the updated mobile phone. Specifically, when the device information in the mobile phone is updated, the mobile phone actively notifies the device information in the updated mobile phone to the main process of the browser through the ADB component, and the main process of the browser provides the device information in the updated mobile phone to the page. Process for the page process to reload and display the mobile assistant page based on the device information in the updated phone.
  • the mobile phone when the remaining storage capacity of the mobile phone is changed from 1.6G to 0.7G, and the other device information does not change, the mobile phone notifies the device process of the updated mobile phone to the main process of the browser through the ADB component, and the browser
  • the main process provides the device information in the updated mobile phone to the page process, and the page process reloads and displays the mobile assistant page according to the device information in the updated mobile phone, wherein the information area of the mobile assistant page is displayed: OPPO Find5,
  • a data communication channel between the browser and the mobile terminal is established by using the preset page, so that the browser can perform data transmission with the mobile terminal, and the browser can obtain the mobile returned by the mobile terminal.
  • the device information in the terminal is loaded and displayed on the preset page for the user to view.
  • the device information of the mobile terminal can be conveniently grasped in real time, so that the user can operate the mobile terminal and avoid the storage of the mobile terminal. Insufficient amount leads to defects in the user's useless work.
  • FIG. 5 illustrates a flow chart of a method of communication between a browser and a mobile terminal in accordance with another embodiment of the present invention.
  • the mobile terminal is used as a mobile phone and the client is a PC as an example.
  • the method includes the following steps:
  • Step S500 triggering a read request for device information in the mobile phone bound to the browser on the browser side of the PC.
  • the stored data information in the mobile phone includes but is not limited to the application list information of the mobile phone, and the application list information includes multiple data items, each data item carries information of an installed application in the mobile phone, and each data item carries one of the mobile terminals.
  • the information for the installed app contains: the name, version information, size, and storage location information of the installed app.
  • Step S501 the startup page process loads a preset page.
  • This step is similar to step S201 in the embodiment shown in FIG. 2, and details are not described herein again.
  • Step S502 the page process requests the application market sub-page from the server, and loads the application market sub-page to display the application market area of the preset page.
  • the page process sends a request for obtaining the application market subpage to the server, and the server returns a corresponding application market subpage to the page process according to the request sent by the page process, and the page process returns the application market returned by the server end.
  • the subpage loads the application market area displayed on the preset page. For example, an application with a high number of recent downloads may be displayed in an application market area of a preset page, or an application obtained from a server may be displayed according to an application category, such as system input, chat communication, video and audio, reading learning, life map, Wallpaper theme, office business and other classified display, as shown in Figure 6.
  • Step S503 the page process notifies the browser main process to call the first DLL interface provided by the ADB component, so that the mobile phone responds to the call request of the first DLL interface, and establishes a data communication channel with the browser.
  • This step is similar to step S202 in the embodiment shown in FIG. 2, and details are not described herein again.
  • step S503 can also be performed before step S502 or in synchronization with step S502.
  • Step S504 the page process notifies the browser main process to call the third DLL interface provided by the ADB component, so that the mobile phone responds to the call request of the third DLL interface, and returns the application list information of the mobile phone to the main browser process.
  • the main process of the browser detects whether the mobile phone is connected.
  • the main process of the browser calls the AppStore_onConnect() interface to notify the page process that the mobile phone is connected.
  • the page process calls the AppStore_getAppList() interface, and the browser main process calls the third DLL interface provided by the ADB component to request the mobile phone application list information from the mobile phone.
  • Step S505 After obtaining the application list information of the mobile phone, the main process of the browser provides the application list information of the mobile phone to the page process.
  • the ADB component of the mobile phone side After receiving the request for calling the application list information of the mobile phone sent by the ADB component on the browser side, the ADB component of the mobile phone side returns the application list information of the mobile phone to the main process of the browser through the ADB component, and the main process of the browser obtains the application list information of the mobile phone. After that, the AppStore_setAppList(string app_list_json) interface is called back and the application list information of the mobile phone is provided to the page process.
  • Step S506 the page process loads the application list information of the mobile phone in the mobile terminal management area of the preset page.
  • the mobile terminal management area of the preset page displays the name, size, and storage location information of each installed application, and loads an uninstall option for displaying each installed application; and determines that the upgrade needs to be performed according to the version information of the installed application.
  • the app is installed and the upgrade options for displaying the installed app are loaded.
  • the mobile apps acquired by the page process are: 360 browser, 360 mobile assistant, 360 file manager, AppBackup, Chrome, Flappy Bird, Paperama, SD Card. Speed Test, Table Tennis, the mobile terminal management area of the preset page will be as shown in Figure 7.
  • the mobile terminal management area of the preset page will display “Reading the installed software of the mobile phone, please wait”.
  • the embodiment can also be used to determine whether an installed application requires an upgrade. Specifically, comparing the version information of the installed application with the version information of the same application in the application market subpage, if the version information of the installed application is the same as the version information of the same application in the application market subpage, the installed application is not Need to rise Level, if the version information of the installed application is different from the version information of the same application in the application market subpage, the installed application needs to be upgraded.
  • the "upgrade” option will be displayed in the management area of the mobile terminal. Click the "Upgrade” option to upgrade the application.
  • the “Upgrade” option includes two types of speed upgrades and upgrades. When the application can be upgraded by means of a rapid upgrade, the page will also display "Speed Up XX% Upgrade". prompt.
  • the embodiment may also manage an application in the mobile phone, for example, upgrading or uninstalling an application in the mobile phone, or installing an application displayed on an application market subpage on the mobile phone.
  • the page process notifies the main process of the browser of the application ID of the specified application, and the main process of the browser invokes the installation/upgrade provided by the ADB component.
  • Unloading the fourth DLL interface corresponding to the operation command of the specified application for the mobile terminal to respond to the call request of the fourth DLL interface, installing/upgrading/uninstalling the specified application in the mobile terminal.
  • the application ID here may be an identifier of the application or an application name. Each application has a unique application ID from which the application to be operated can be identified.
  • the page process calls AppStore_installApp(string app_name) to install the interface, the corresponding upgrade interface (not specifically defined in this article), or AppStore_uninstallApp(string app_name) to uninstall the interface.
  • the app_name of the specified application is respectively delivered to the installation interface, the upgrade interface, and the uninstall interface, and the browser main process invokes the fourth DLL interface corresponding to the operation command for installing/upgrading/uninstalling the specified application provided by the ADB component according to the notification of the page process.
  • install/upgrade/uninstall the specified application in the mobile terminal for the mobile terminal to respond to the call request of the fourth DLL interface, install/upgrade/uninstall the specified application in the mobile terminal.
  • This embodiment can not only facilitate the operation of the mobile phone by the user, but also display the operation result to the user after the user operates the mobile phone, and update the display content of the preset page in time.
  • the browser main process acquires a success or failure notification message of the mobile terminal installing/upgrading/uninstalling the specified application, and provides the success or failure notification message of the mobile terminal installation/upgrade/uninstallation of the specified application.
  • the page process is provided for the page process to update the display content of the preset page according to the success or failure notification message.
  • the browser main process installs the mobile phone by calling AppStore_setApkInstallStatus(string install_status_json), installing the application's process status notification interface, upgrading the application's process status notification interface, and AppStore_setApkUninstallStatus(string uninstall_status_json) (unloading the application's process status notification interface).
  • the upgrade/uninstallation of the specified application's success or failure notification message is provided to the page process for the page process to update the presentation content of the preset page according to the success or failure notification message.
  • the preset page in this embodiment may also display the stored data information of the updated mobile terminal.
  • the mobile terminal actively notifies the browser main process to the stored main data and/or device information in the updated mobile terminal; the browser main process Providing the stored data information and/or device information in the updated mobile terminal to the page process, so that the page process reloads and displays the preset page according to the stored data information and/or device information in the updated mobile terminal, so that The user can know the stored data information in the mobile terminal in real time, and avoid unnecessary operations, such as secondary installation.
  • the embodiment can also be used to detect whether the mobile terminal is disconnected or not, and in the case that the connection is disconnected,
  • the preset page is used to show the user that the connection has been disconnected. Specifically, after the mobile terminal disconnects from the client where the browser is located, the browser main process receives the connection disconnection event message; the browser main process provides the connection disconnection event message to the page process for the page process to be based on. The disconnect event message reloads and displays the preset page.
  • the method can quickly and visually inform the user that the connection has been disconnected if the user network is unstable or the user unintentionally disconnects the mobile terminal from the mobile terminal, and the user can choose to reconnect or stop the subsequent operation after learning that the connection is disconnected.
  • the preset page does not update the display content in time after the connection is disconnected, causing the user to perform some meaningless operations.
  • the information area of the preset page can display the mobile phone name, but the mobile phone desktop screenshot will display the screenshot of the robot when the mobile phone is not connected, and the bottom of the information area displays “Management”.
  • My mobile phone the application market area will display "Your mobile phone is offline, please connect to your mobile phone before you can manage the mobile phone application, and provide the option of 'connecting mobile phone' in the application market area"; connect the mobile phone through WIFI
  • the information area of the preset page can display the name of the mobile phone, but the screenshot of the mobile phone desktop will display the default picture of the WIFI style, and the bottom of the information area will display “Manage my mobile phone”; the application market area will display “Require your authorization for you. For mobile phone data security, please click the button below and follow the prompts to complete the authorization confirmation on the mobile phone and provide the 'Read mobile phone application list' option in the application market area.
  • the browser can not only obtain the data in the mobile terminal, but also the browser can send the rich data provided by the network side to the mobile terminal.
  • the page process notifies the browser main process to the mobile terminal.
  • the function of the device for sending data wherein the data includes: the URL information of the webpage element in the webpage loaded by the browser or the downloaded file or the downloaded webpage element.
  • the data further includes: an operation command and an operand for the specified APP in the mobile terminal.
  • the data of the browser side is transmitted to the mobile terminal by using the established data communication channel, which solves the defect that the browser cannot transmit data with the mobile terminal, but needs to copy or download the network content and then transfer to the mobile terminal, so that the user
  • the mobile terminal can be directly operated through the browser, which facilitates the user to directly transfer the network content acquired by the browser from the server to the mobile terminal when using the browser to access the Internet.
  • the embodiment can not only install the browser side application to the mobile terminal, but also install the client program corresponding to the APP program in the mobile terminal according to the stored data information in the mobile terminal, which is convenient for the user. Install and use the corresponding client program. Specifically, the page process automatically loads the corresponding browser plug-in information to install the client program corresponding to the APP program on the browser side according to the APP program information in the stored data information in the mobile terminal.
  • a data communication channel between the browser and the mobile terminal is established by using the preset page, so that the browser can perform data transmission with the mobile terminal, and the browser can acquire the stored data in the mobile terminal.
  • the information is loaded and displayed on the preset page for the user to view.
  • the page process communicates with the main process of the browser through a pre-written JS program in the preset page, and the main process of the browser utilizes the pre-configured ADB component and The mobile terminal communicates.
  • the browser side is provided with a first process for directly performing data communication with the mobile phone, that is, a process for implementing an ADB client program, and the first process is a process independently set with a browser main process, and the first process
  • the process communicates with the main process of the browser through inter-process communication, and the main process of the browser communicates with the page process through a pre-written JS program in the preset page. That is to say, the page process is to perform data communication with the mobile phone through the main process of the browser and the first process in sequence.
  • FIG. 8 is a block diagram showing the structure of a browser device according to an embodiment of the present invention.
  • the browser side is pre-configured with an ADB component associated with the mobile terminal operating system, and the ADB component provides a plurality of DLL interfaces for the specified function to be called by the first process module.
  • the browser device includes: a first process module 800 running a first process of the browser, and a first page process module 810 running a page process, where the first page process module 810 includes: a first calling module 811.
  • the first obtaining module 812 and the first loading module 813 is a block diagram showing the structure of a browser device according to an embodiment of the present invention.
  • the browser side is pre-configured with an ADB component associated with the mobile terminal operating system, and the ADB component provides a plurality of DLL interfaces for the specified function to be called by the first process module.
  • the browser device includes: a first process module 800 running a first process of the browser, and a first page process module 810 running a page
  • the first process module 800 is adapted to: trigger a read request for storing data information and/or device information in a mobile terminal bound to the browser on the browser side; start the page process to load a preset page, according to the page
  • the notification of the process module establishes a data communication channel with the mobile terminal.
  • the storage data information in the mobile terminal includes application list information of the mobile terminal; the application list information includes a plurality of data items, each data item carries information of an installed application in the mobile terminal, and each data item carries one of the mobile terminals.
  • the information of the installed application includes: the name, version information, size and storage location information of the installed application; the device information of the mobile terminal includes the status information of the mobile terminal and the desktop screenshot of the mobile terminal; the status information of the mobile terminal includes one of the following information: One or more kinds: the name and model of the mobile terminal, the total storage amount information of the mobile terminal and the remaining storage amount information, and the SD card information of the mobile terminal.
  • the first invoking module 811 is adapted to notify the first process module to request the mobile terminal to store the data information and/or the device information in the mobile terminal.
  • the first obtaining module 812 is adapted to acquire stored data information and/or device information in the mobile terminal transmitted by the first process module.
  • the first loading module 813 is adapted to load and store the stored data information and/or device information in the mobile terminal in a preset page.
  • the first process module 800 is further adapted to: invoke the first DLL interface provided by the ADB component according to the notification of the page process module, so that the mobile terminal responds to the call request of the first DLL interface, and establishes a data communication channel with the browser. .
  • the first process module 800 is further adapted to: request, according to the notification of the page process module, the device information of the connected mobile terminal to the mobile terminal.
  • the first loading module 813 is further adapted to display the device information of the connected mobile terminal in the preset page, so that the browser side user selects the mobile terminal that performs data transmission.
  • the first process module 800 is further adapted to: invoke the second DLL interface provided by the ADB component according to the notification of the page process module, so that the mobile terminal returns the status information of the mobile terminal to the first process module in response to the call request of the second DLL interface;
  • the mobile terminal desktop screenshot ; and after obtaining the status information of the mobile terminal and the mobile terminal desktop screenshot, providing the mobile terminal's status information and the mobile terminal desktop screenshot to the acquisition module.
  • the first loading module 813 is further adapted to: display the status information of the mobile terminal and the mobile terminal desktop screenshot loading on the information area of the preset page.
  • the data communication channel between the browser and the mobile terminal is established by using the preset page, so that the browser can perform data transmission with the mobile terminal, and the browser can obtain the return by the mobile terminal.
  • the device information in the mobile terminal is loaded and displayed on the preset page for the user to view.
  • the user in order to view the device information in the mobile terminal, the user does not need to switch the program interface, and can directly view the preset button through the trigger button provided by the browser, and the operation is convenient.
  • the device information of the mobile terminal can be conveniently grasped in real time, so that the user can operate the mobile terminal and avoid the storage of the mobile terminal. Insufficient amount leads to defects in the user's useless work.
  • FIG. 9 is a block diagram showing the structure of a browser device according to another embodiment of the present invention.
  • the browser device includes: a first process module 900 running a first process of the browser, and a first page process module 910 running a page process, where the first page process module 910 includes: a first calling module 911.
  • the first process module 900 is adapted to: trigger a read request of the stored data information in a mobile terminal bound to the browser on the browser side; start the page process to load a preset page, and establish according to the notification of the page process module A data communication channel with the mobile terminal.
  • the first invoking module 911 is adapted to notify the first process module 900 to request the stored data information in the mobile terminal from the mobile terminal.
  • the first obtaining module 912 is adapted to obtain the stored data information in the mobile terminal transmitted by the first process module 900.
  • the first loading module 913 is adapted to load the stored data information in the mobile terminal and display it in the preset page.
  • the first process module 900 is further adapted to: invoke the first DLL interface provided by the ADB component according to the notification of the page process module 910, so that the mobile terminal responds to the call request of the first DLL interface, and establishes data communication with the browser. aisle.
  • the first process module 900 is further adapted to: invoke the third DLL interface provided by the ADB component according to the notification of the page process module 910, for the mobile terminal to respond to the call request of the third DLL interface, and return the application list of the mobile terminal to the first process module. Information; and after obtaining the application list information of the mobile terminal, providing the application list information of the mobile terminal to the acquisition module.
  • the first loading module 913 is further adapted to: load the application list information of the mobile terminal to display the mobile terminal management area of the preset page.
  • the first loading module 913 is further adapted to: display the name, size, and storage location information of each installed application in the mobile terminal management area of the preset page, and load an uninstall option that displays each installed application;
  • the version information identifies the installed app that needs to be upgraded, and loads the upgrade option that shows the installed app.
  • the first loading module 913 is further adapted to: load the preset page, and display the application market subpage requested from the server in the application market area of the preset page.
  • the first page process module 910 further includes: a first comparison module 914, configured to compare version information of the installed application with version information of the same application in the application market subpage to determine whether the installed application needs to be upgraded.
  • the first page process module 910 further includes: a first notification module 915, configured to notify the first process module 900 of the application ID of the specified application according to a trigger request for the installation/upgrade/uninstall option of the specified application in the preset page.
  • a first notification module 915 configured to notify the first process module 900 of the application ID of the specified application according to a trigger request for the installation/upgrade/uninstall option of the specified application in the preset page.
  • the first process module 900 is further adapted to: invoke a fourth DLL interface provided by the ADB component corresponding to the operation command for installing/upgrading/uninstalling the specified application, for the mobile terminal to respond to the call request of the fourth DLL interface, and installing in the mobile terminal /Upgrade/uninstall the specified app.
  • the first process module 900 is further adapted to: obtain a success or failure notification message of the mobile terminal installing/upgrading/uninstalling the specified application, and provide the success or failure notification message of the mobile terminal installation/upgrade/unloading of the specified application to the obtaining module 912.
  • the first loading module 913 is further adapted to: update the presentation content of the preset page according to the success or failure notification message.
  • the first process module 900 is further adapted to: receive the stored data information and/or device information in the updated mobile terminal that is actively notified when the stored data information and/or the device information in the mobile terminal is updated; and, after the update The stored data information and/or device information in the mobile terminal is provided to the acquisition module.
  • the first loading module 913 is further adapted to: reload and display the preset page according to the stored data information and/or device information in the updated mobile terminal.
  • the first process module 900 is further adapted to: receive a disconnection event message sent after the mobile terminal disconnects from the client where the browser is located; and provide the connection disconnection event message to the acquisition module.
  • the first loading module 913 is further adapted to: reload and display the preset page according to the connection disconnect event message.
  • the page process module 910 further includes: a first sending module 916, configured to notify the first process module to send data to the mobile terminal device, where the data includes: the browser loads the URL information of the webpage element in the webpage or the downloaded file or downloaded A web page element, the data further comprising: an operation command and an operand for the specified APP in the mobile terminal device.
  • a first sending module 916 configured to notify the first process module to send data to the mobile terminal device, where the data includes: the browser loads the URL information of the webpage element in the webpage or the downloaded file or downloaded A web page element, the data further comprising: an operation command and an operand for the specified APP in the mobile terminal device.
  • the first process module 900 is further adapted to: automatically load the corresponding browser plug-in information to install the client program corresponding to the APP program on the browser side according to the APP program information in the stored data information in the mobile terminal.
  • the data communication channel between the browser and the mobile terminal is established by using the preset page, so that the browser can perform data transmission with the mobile terminal, and the browser can acquire the data in the mobile terminal.
  • the browser device in the process of browsing the webpage by the user, if the user wants to view the stored data information in the mobile terminal, the user does not need to switch the program interface, and can directly view the preset page through the trigger button provided by the browser, and the operation is convenient.
  • the user's operation is simplified, and the defect that the setting operation of the mobile terminal is complicated when downloading data to the client and connecting the USB data line or using WIFI is solved.
  • the first process module may be specifically a main process module, and the first page process module and the main process module are performed by using a pre-written JS program in the preset page. Communication, the main process module communicates with the mobile terminal using pre-configured ADB components.
  • the first process module includes a main process module and a first process submodule that is independently set with the main process module, and the first process submodule communicates with the page process module via the main process module by means of interprocess communication.
  • the browser device is provided with a first process sub-module for directly performing data communication with the mobile phone, that is, a process sub-module implementing the ADB client program, and the first process sub-module is a sub-module independently set with the main process module.
  • the process module, the first process sub-module communicates with the main process module by means of inter-process communication, and the main process module communicates with the page process module through a pre-written JS program in the preset page. That is to say, the page process module sequentially performs data communication with the mobile phone through the main process module and the first process submodule.
  • the data communication between the browser and the mobile terminal can also be through the auxiliary application, such as a mobile phone assistant, through which the browser communicates with the mobile terminal.
  • the first transmission tool program in the following embodiments is such an auxiliary application.
  • the present invention will be described in detail by taking a mobile phone assistant as an example, but the first transmission tool program is not limited to the mobile phone assistant, and those skilled in the art according to practical applications. Other auxiliary applications may be needed, and are not specifically limited herein.
  • FIG. 10 shows a flow chart of a method of communication between a browser and a mobile terminal in accordance with still another embodiment of the present invention. As shown in Figure 1, the method includes the following steps:
  • Step S1000 triggering a read request for storing data information and/or device information in a mobile terminal bound to the browser on the browser side.
  • the browser interface includes a trigger button of the first transmission tool program, and after the user opens the browser through the client, the trigger button of the first transmission tool program is triggered to trigger the mobile terminal bound to the browser.
  • a read request to store data information and/or device information.
  • Step S1001 The startup page process loads a preset page, and the page process notifies the browser main program to establish a data communication channel with the first transmission tool program.
  • the preset page is a page that is displayed on the browser side after clicking the trigger button of the first transfer tool program, and the preset page is a page local to the browser.
  • a request to start the page process is initiated to the browser main program, and the browser main program starts the page process according to the request, and the preset process page is loaded by the page process.
  • the page process sends a notification to the browser main program to establish a data communication channel between the browser main program and the first transfer tool program when the preset page is loaded.
  • Step S1002 after the data communication channel is established, the page process notifies the browser main program to request the first transmission tool program to store the data information and/or the device information in the mobile terminal.
  • the mobile terminal can connect to the client where the browser is located through the WIFI or USB data cable.
  • the browser main program detects whether the mobile terminal is connected. When the mobile terminal is connected, the browser main program notifies the page process that the mobile terminal is connected. . After receiving the notification that the mobile terminal sent by the browser main program has been connected, the page process notifies the browser main program to send a request for acquiring the stored data information and/or the device information in the mobile terminal to the first transmission tool program.
  • Step S1003 The page process acquires stored data information and/or device information in the mobile terminal returned by the first transmission tool program transmitted via the browser main program, and loads and displays the data in the preset page.
  • the first transmission tool program acquires, from the mobile terminal, the application list information of the mobile terminal, the status information of the mobile terminal, and the desktop screenshot of the mobile terminal according to the request sent by the browser main program, and the first transmission tool program will obtain the movement from the mobile terminal.
  • the application list information of the terminal, the status information of the mobile terminal, and the screenshot of the desktop of the mobile terminal are returned to the main program of the browser, and the application program information of the mobile terminal acquired by the main program of the browser and the status information of the mobile terminal is obtained from the first transmission tool program.
  • the mobile terminal desktop screenshot is returned to the page process. After the page process gets the browser main program returned, the information is loaded and displayed in the preset page.
  • the data communication channel between the browser and the first transmission tool program is established by using the preset page, so that the browser can perform data transmission with the mobile terminal, and the browser can obtain the first
  • the data information and/or device information stored in the mobile terminal returned by the transfer tool program is loaded and displayed on the preset page for the user to view.
  • FIG. 11 is a flow chart showing a method of communication between a browser and a mobile terminal in accordance with still another embodiment of the present invention.
  • the mobile terminal is used as the mobile phone
  • the client is the PC
  • the first transmission tool program is used as the mobile assistant.
  • the method includes the following steps:
  • step S1100 a read request for device information in the mobile phone bound to the browser is triggered on the browser side of the PC.
  • the device information in the mobile phone includes status information of the mobile phone and a screenshot of the mobile phone desktop.
  • the status information of the mobile phone includes one or more of the following information: the name and model of the mobile phone, the total storage capacity information of the mobile phone, and the remaining storage amount information, and SD card information of the mobile phone.
  • the browser interface includes a trigger button of the first transfer tool program, for example, adding a trigger button of the mobile assistant in the toolbar or the sidebar of the browser, and after the user opens the browser in the PC, by clicking the trigger button of the mobile assistant That is, a read request for device information in the mobile phone bound to the browser is triggered.
  • a trigger button of the first transfer tool program for example, adding a trigger button of the mobile assistant in the toolbar or the sidebar of the browser, and after the user opens the browser in the PC, by clicking the trigger button of the mobile assistant That is, a read request for device information in the mobile phone bound to the browser is triggered.
  • step S1101 the startup page process loads a preset page.
  • a request for starting the page process is initiated to the main program of the browser, and the main program of the browser starts the page process according to the request, and the preset process is loaded by the page process, that is, the mobile assistant page.
  • the mobile assistant page is a page that is displayed on the browser side after clicking the trigger button of the mobile assistant.
  • the mobile assistant page is a page local to the browser, and is not a page requested from the network side.
  • Scripts (JS) programs for implementing various functions are pre-written in the mobile phone assistant page. These JS programs provide corresponding JS interfaces for page process calls. When the page process calls a JS interface, the browser main program will Execute the JS program corresponding to the JS interface to implement the functions provided by the JS program.
  • the JS interface supporting the page process call includes but is not limited to the following:
  • AppStore_getMobileInfo() Get the status information interface of the mobile phone
  • AppStore_start() the calling interface when the page starts, used to establish a data communication channel
  • AppStore_isEnable() Query whether to support the interface to open the phone function
  • AppStore_getMobileScreenImage() Get the interface of the mobile phone desktop screenshot
  • the Mobile Assistant page also provides a JS interface for notification status that can be called by the browser's main program, including but not limited to:
  • Step S1102 The page process invokes the first JS interface of the mobile phone assistant page, and the browser main program establishes a data communication channel with the mobile assistant by executing the JS program corresponding to the first JS interface.
  • the page process calls the AppStore_start() interface (ie, the first JS interface of the mobile assistant page), and the browser main program establishes a data communication channel with the mobile assistant by executing the JS program corresponding to the AppStore_start() interface.
  • the data communication channel allows the browser to transfer data with the mobile assistant.
  • Step S1103 after the data communication channel is established, the page process notifies the browser main program to request the device information of the connected or bound mobile phone to the mobile phone assistant.
  • a mobile phone that has been connected or bound refers to a mobile phone device that has established a connection with a PC on the browser through a WIFI or USB data cable or has been connected with a PC where the browser is located.
  • the page process invokes the second JS interface of the mobile phone assistant page, and the browser main program requests the mobile phone assistant to obtain the status information of the mobile phone and the mobile phone desktop screenshot by executing the JS program corresponding to the second JS interface.
  • the main program of the browser detects whether the mobile phone is connected. When the mobile phone is connected, the main program of the browser calls back the AppStore_onConnect() interface to notify the page that the mobile phone is connected. The page process receives the connected connection of the mobile phone sent by the browser main program. After knowing, the AppStore_getMobileInfo() interface and the AppStore_getMobileScreenImage() interface are called. The browser main program requests the mobile phone assistant to request the mobile phone's status information and the mobile phone desktop screenshot by executing the JS program corresponding to the AppStore_getMobileInfo() interface and the AppStore_getMobileScreenImage() interface.
  • the browser main program If the browser main program also detects the phone that sets the binding relationship, it also notifies the page process.
  • the page process calls the corresponding JS interface to request the status information of the bound mobile phone to the mobile assistant.
  • Step S1104 The page process acquires device information of the connected or bound mobile phone returned by the mobile phone assistant transmitted by the browser main program, and loads and displays the device information on the mobile phone assistant page, so that the browser side user selects data transmission. Phone.
  • the browser main program After the browser main program obtains the status information of one or more mobile phones returned by the mobile assistant and the screenshot of the desktop, the third JS interface is called back, and the status information of one or more mobile phones and the screenshot of the desktop are provided to the page process; the page process will The status information of one or more mobile phones and the desktop screenshots are loaded and displayed in the information area of the preset page.
  • a drop-down menu can be used to load and display the status information of each mobile phone and the desktop screenshot according to the user's selection.
  • the user also needs to select a mobile phone that transmits data to the browser.
  • the mobile phone assistant requests the mobile phone to obtain the status information of the mobile phone and the screenshot of the mobile phone desktop according to the request sent by the main program of the browser, and the mobile assistant returns the status information of the obtained mobile phone and the screenshot of the mobile phone desktop to the main program of the browser, the browser
  • the AppStore_setMobileInfo(string phone_info_json) interface and the AppStore_setMobileScreenImage(string screen_snapshot_data) interface are used to provide the status information of the mobile phone and the screenshot of the mobile phone to the page process.
  • the page process loads this information into the information area of the preset page.
  • the page process will get the name of the mobile phone from the browser main program: OPPO Find5, the total storage capacity information of the mobile phone: 4G and the remaining storage capacity information 1.6G, the SD card information of the mobile phone: Total amount: 14.5G Remaining: 7.2G and the desktop of the current mobile phone are displayed in the information area of the preset page, and the information area of the preset page is displayed as "Manage My Phone", as shown in FIG.
  • the mobile phone desktop screenshot in the information area of the mobile assistant page is the default robot style, and the place for displaying the mobile phone name will display “no mobile phone connected”, information The button at the bottom of the area will appear as "Connect Phone”.
  • the mobile phone assistant page in this embodiment may also display the device information of the updated mobile phone.
  • the mobile phone assistant actively notifies the device information in the updated mobile phone to the main program of the browser, and the main program of the browser provides the device information in the updated mobile phone to the page process.
  • the page process For the page process to reload and display the mobile assistant page based on the device information in the updated mobile phone.
  • the mobile phone assistant notifies the browser main program, the browser main program, the updated device information of the mobile phone.
  • the device information in the updated mobile phone is provided to the page process, and the page process reloads and displays the mobile assistant page according to the device information in the updated mobile phone, wherein the information area of the mobile assistant page is displayed: OPPO Find5, mobile phone Total storage information: 4G, remaining storage information 0.7G, and SD card information of the mobile phone: Total information: 14.5G, remaining information: 7.2G, as shown in Figure 13.
  • the data communication channel between the browser and the first transmission tool program is established by using the preset page, so that the browser can perform data transmission with the mobile terminal, and the browser can obtain the first
  • the device information in the mobile terminal returned by the transfer tool program is loaded and displayed on the preset page for the user to view.
  • the device information of the mobile terminal can be conveniently grasped in real time, so that the user can operate the mobile terminal and avoid the storage of the mobile terminal. Insufficient amount leads to defects in the user's useless work.
  • the mobile terminal is used as the mobile phone
  • the client is the PC
  • the first transmission tool program is used as the mobile assistant.
  • the method includes the following steps:
  • Step S1400 triggering a read request for stored data information in the mobile phone bound to the browser on the browser side of the PC.
  • the stored data information in the mobile phone includes but is not limited to the application list information of the mobile phone, and the application list information includes multiple data items, each data item carries information of an installed application in the mobile phone, and each data item carries one of the mobile terminals.
  • the information for the installed app contains: the name, version information, size, and storage location information of the installed app.
  • step S1401 the startup page process loads a preset page.
  • step S1101 is similar to step S1101 in the embodiment shown in FIG. 11, and details are not described herein again.
  • step S1402 the page process requests the application market sub-page from the server, and loads the application market sub-page to display the application market area of the preset page.
  • the page process sends a request for obtaining the application market subpage to the server, and the server returns a corresponding application market subpage to the page process according to the request sent by the page process, and the page process returns the application market returned by the server end.
  • the subpage loads the application market area displayed on the preset page. For example, an application with a high number of recent downloads may be displayed in an application market area of a preset page, or an application obtained from a server may be displayed according to an application category, such as system input, chat communication, video and audio, reading learning, life map, Wallpaper theme, office business and other classified display, as shown in Figure 15.
  • Step S1403 The page process invokes the first JS interface of the preset page, and the browser main program establishes a data communication channel with the mobile assistant by executing the JS program corresponding to the first JS interface.
  • step S1102 is similar to step S1102 in the embodiment shown in FIG. 11, and details are not described herein again.
  • step S1403 may also be performed before step S1402 or in synchronization with step S1402.
  • Step S1404 After the data communication channel is established, the page process invokes the fourth JS interface of the preset page, and the browser main program requests the mobile phone assistant to apply the application list information of the mobile terminal by executing the JS program corresponding to the fourth JS interface.
  • the main program of the browser After the data communication channel between the browser and the mobile assistant is established, the main program of the browser detects whether the mobile phone is connected. When the mobile phone is connected, the main program of the browser calls the AppStore_onConnect() interface. The notification page process phone is connected. After receiving the notification that the mobile phone sent by the main program of the browser is connected, the page process calls the AppStore_getAppList() interface, and the main program of the browser requests the mobile phone assistant to apply the application list information of the mobile phone by executing the JS program corresponding to the AppStore_getAppList() interface.
  • Step S1405 After obtaining the application list information of the mobile phone fed back by the mobile phone assistant, the browser main program calls back the fifth JS interface, and provides the application list information of the mobile phone to the page process.
  • the mobile phone assistant After receiving the request for obtaining the application list information of the mobile phone sent by the main program of the browser, the mobile phone assistant obtains the application list information of the mobile phone from the mobile phone, and feeds back the application list information of the obtained mobile phone to the main program of the browser, the browser After the main program obtains the application list information of the mobile phone fed back by the mobile assistant, the AppStore_setAppList(string app_list_json) interface is called back, and the application list information of the mobile phone is provided to the page process.
  • step S1406 the page process loads the application list information of the mobile phone in the mobile terminal management area of the preset page.
  • the mobile terminal management area of the preset page displays the name, size, and storage location information of each installed application, and loads an uninstall option for displaying each installed application; and determines that the upgrade needs to be performed according to the version information of the installed application.
  • the app is installed and the upgrade options for displaying the installed app are loaded.
  • the mobile apps acquired by the page process are: 360 browser, 360 mobile assistant, 360 file manager, AppBackup, Chrome, Flappy Bird, Paperama, SD Card. Speed Test, Table Tennis, the mobile terminal management area of the preset page will be as shown in Figure 16.
  • the mobile terminal management area of the preset page will display “Reading the installed software of the mobile phone, please wait”.
  • the embodiment can also be used to determine whether an installed application requires an upgrade. Specifically, comparing the version information of the installed application with the version information of the same application in the application market subpage, if the version information of the installed application is the same as the version information of the same application in the application market subpage, the installed application is not If the version information of the installed application is different from the version information of the same application in the application market sub-page, the installed application needs to be upgraded.
  • the “Upgrade” option will be displayed in the management area of the mobile terminal. When the user clicks the "upgrade” option, the application is upgraded.
  • the “upgrade” option includes two types of speed upgrade and upgrade. When the application can be upgraded by means of rapid upgrade, the page will also display "speed up XX% upgrade”. Tips.
  • the embodiment may also manage an application in the mobile phone, for example, upgrading or uninstalling an application in the mobile phone, or installing an application displayed on an application market subpage on the mobile phone.
  • the page process invokes the sixth JS interface corresponding to the install/upgrade/uninstall option of the preset page, and specifies the application ID of the application.
  • the browser main program sends an operation request for installing/upgrading/uninstalling the specified application to the first transfer tool program by executing the JS program corresponding to the sixth JS interface, so that the first transfer tool program can be based on the application ID.
  • the mobile terminal sends an operation command to install/upgrade/uninstall the specified application.
  • the application ID here may be an identifier of the application or an application name. Each application has a unique application ID from which the application to be operated can be identified.
  • the page process calls the AppStore_installApp(string app_name) installation interface, the corresponding upgrade interface (not specifically defined herein), or The AppStore_uninstallApp(string app_name) uninstalls the interface, and passes the app_name of the specified application to the installation interface, the upgrade interface, and the uninstall interface.
  • the browser main program executes the installation interface, the upgrade interface, and the uninstalled interface corresponding to the JS program to the first transfer tool program. Send an install/upgrade/uninstall operation request for the specified application.
  • This embodiment can not only facilitate the operation of the mobile phone by the user, but also display the operation result to the user after the user operates the mobile phone, and update the display content of the preset page in time.
  • the browser main program acquires a success or failure notification message of the mobile terminal installing/upgrading/unloading the specified application fed back by the first transmission tool program, and calls back the seventh JS interface, and the mobile terminal is Install/Upgrade/Uninstall
  • the specified application's success or failure notification message is provided to the page process for the page process to update the presentation content of the preset page based on the success or failure notification message.
  • the browser main program installs the mobile phone by calling AppStore_setApkInstallStatus(string install_status_json), installing the application's process status notification interface, upgrading the application's process status notification interface, and AppStore_setApkUninstallStatus(string uninstall_status_json) (unloading the application's process status notification interface).
  • the upgrade/uninstallation of the specified application's success or failure notification message is provided to the page process for the page process to update the presentation content of the preset page according to the success or failure notification message.
  • the preset page in this embodiment may also display the stored data information of the updated mobile terminal.
  • the first transmission tool program actively notifies the stored main data in the updated mobile terminal to the browser main program, and the browser main program will be updated in the mobile terminal.
  • the stored data information is provided to the page process, so that the page process reloads and displays the preset page according to the stored data information in the updated mobile terminal, so that the user can know the stored data information in the mobile terminal in real time, thereby preventing the user from performing unnecessary Operation, such as secondary installation.
  • the embodiment can also be used to detect whether the mobile terminal is disconnected or not.
  • the user can be shown that the connection has been disconnected through the preset page.
  • the browser main program receives the connection disconnection event message sent by the first transmission tool program; the browser main program provides the connection disconnection event message to the page process.
  • the page process For the page process to reload and display the preset page based on the connection disconnect event message.
  • the method can quickly and visually inform the user that the connection has been disconnected in the case that the user network is unstable or the user unintentionally disconnects the mobile terminal from the mobile assistant, and the user can choose to reconnect or stop the subsequent operation after learning that the connection is disconnected.
  • the preset page does not update the display content in time after the connection is disconnected, causing the user to perform some meaningless operations.
  • the information area of the preset page can display the mobile phone name, but the mobile phone desktop screenshot will display the screenshot of the robot when the mobile phone is not connected, and the bottom of the information area displays “Management”.
  • My mobile phone the application market area will display "Your mobile phone is offline, please connect to your mobile phone before you can manage the mobile phone application, and provide the option of 'connecting mobile phone' in the application market area"; connect the mobile phone through WIFI
  • the information area of the preset page can display the name of the mobile phone, but the screenshot of the mobile phone desktop will display the default picture of the WIFI style, and the bottom of the information area will display “Manage my mobile phone”; the application market area will display “Require your authorization for you. For mobile phone data security, please click the button below and follow the prompts to complete the authorization confirmation on the mobile phone and provide the 'Read mobile phone application list' option in the application market area.
  • the browser can not only obtain the data in the mobile terminal, but also the browser can send the rich data provided by the network side to the mobile terminal.
  • the page process has the notification that the browser main program passes the first The function of the transmission tool program transmitting data to the mobile terminal device, wherein the data comprises: the browser loading the URL information of the webpage element in the webpage or the downloaded file or the downloaded webpage element.
  • the data further includes: an operation command and an operand for the specified APP in the mobile terminal.
  • the data of the browser side is transmitted to the mobile terminal by using the established data communication channel, which solves the defect that the browser cannot transmit data with the mobile terminal, but needs to copy or download the network content and then transfer to the mobile terminal, so that the user
  • the mobile terminal can be directly operated through the browser, which facilitates the user to directly transfer the network content acquired by the browser from the server to the mobile terminal when using the browser to access the Internet.
  • the embodiment can not only install the browser side application to the mobile terminal, but also install the client program corresponding to the APP program in the mobile terminal according to the stored data information in the mobile terminal, which is convenient for the user. Install and use the corresponding client program. Specifically, the page process automatically loads the corresponding browser plug-in information to install the client program corresponding to the APP program on the browser side according to the APP program information in the stored data information in the mobile terminal returned by the first transmission tool program.
  • the data communication channel between the browser and the first transmission tool program is established by using the preset page, so that the browser can perform data transmission with the mobile terminal, and the browser can obtain the first
  • the data information stored in the mobile terminal returned by the transfer tool program is loaded and displayed on the preset page for the user to view.
  • FIG. 17 is a block diagram showing the structure of a browser device according to still another embodiment of the present invention.
  • the browser device performs data communication with the mobile terminal through a first transmission tool program installed on a client where the browser device is located.
  • the browser device includes a main program module 1700 running a browser main program, and a second page process module 1710 running a page process.
  • the second page process module 1710 includes: a second calling module 1711.
  • the main program module 1700 is adapted to trigger, on the browser side, a read request for storing data information and/or device information in a mobile terminal bound to the browser; and the startup page process loads a preset page according to the page process.
  • the notification of the module establishes a data communication channel with the first transfer tool program.
  • the second invoking module 1711 is adapted to notify the main program module to request the stored data information and/or device information in the mobile terminal from the first transmission tool program.
  • the second obtaining module 1712 is adapted to obtain stored data information and/or device information in the mobile terminal returned by the first transmission tool program transmitted by the main program module.
  • the storage data information in the mobile terminal includes application list information of the mobile terminal; the application list information includes a plurality of data items, each data item carries information of an installed application in the mobile terminal, and each data item carries one of the mobile terminals.
  • the information of the installed application includes: the name, version information, size and storage location information of the installed application; the device information of the mobile terminal includes the status information of the mobile terminal and the mobile terminal table
  • the status information of the mobile terminal includes one or more of the following information: the name and model of the mobile terminal, the total storage amount information of the mobile terminal and the remaining storage amount information, and the SD card information of the mobile terminal.
  • the second loading module 1713 is adapted to load and store the stored data information and/or device information in the mobile terminal in a preset page.
  • the second calling module 1711 is further adapted to: invoke the first JS interface of the preset page.
  • the main program module 1700 is further adapted to: establish a data communication channel with the first transfer tool program by executing a JS program corresponding to the first JS interface.
  • the main program module 1700 is further adapted to: request, according to the notification of the page process module, the device information of the mobile terminal that has been connected or bound to the first transmission tool program.
  • the second loading module 1713 is further adapted to display device information of the mobile terminal that has been connected or bound in the preset page, so that the browser side user selects the mobile terminal that performs data transmission.
  • the second invocation module 1711 is further adapted to: invoke a second JS interface of the preset page.
  • the main program module 1700 is further adapted to: request, by the JS program corresponding to the second JS interface, the status information of the mobile terminal and the desktop screenshot of the mobile terminal to the first transmission tool program; and acquire the mobile terminal returned by the first transmission tool program After the status information and the screenshot of the mobile terminal desktop, the third JS interface of the callback preset page is provided, and the status information of the mobile terminal and the desktop screenshot of the mobile terminal are provided to the acquisition module.
  • the second loading module 1713 is further adapted to: display the status information of the mobile terminal and the mobile terminal desktop screenshot loading on the information area of the preset page.
  • the data communication channel between the browser and the first transmission tool program is established by using the preset page, so that the browser can perform data transmission with the mobile terminal, and the browser can obtain the data.
  • the device information in the mobile terminal returned by the first transmission tool program is displayed and displayed in the preset page for the user to view.
  • the user in order to view the device information in the mobile terminal, the user does not need to switch the program interface, and can directly view the preset button through the trigger button provided by the browser, and the operation is convenient.
  • the device information of the mobile terminal can be conveniently grasped in real time, so that the user can operate the mobile terminal and avoid the storage of the mobile terminal. Insufficient amount leads to defects in the user's useless work.
  • FIG. 18 is a block diagram showing the structure of a browser device according to still another embodiment of the present invention.
  • the browser device includes: a main program module 1800 running a browser main program, and a page process module 1810 running a page process.
  • the second page process module 1810 includes: a second calling module 1811, a second The obtaining module 1812, the second loading module 1813, the second comparing module 1814, and the second sending module 1815.
  • the main program module 1800 is adapted to trigger a read request for storing data information in a mobile terminal bound to the browser on the browser side; the startup page process loads a preset page, and is established according to the notification of the page process module.
  • the data communication channel of the first transmission tool program is adapted to trigger a read request for storing data information in a mobile terminal bound to the browser on the browser side; the startup page process loads a preset page, and is established according to the notification of the page process module.
  • the second invoking module 1811 is adapted to notify the main program module to request the stored data information in the mobile terminal from the first transmission tool program.
  • the second obtaining module 1812 is adapted to obtain the stored data information in the mobile terminal returned by the first transmission tool program transmitted by the main program module.
  • the second loading module 1813 is adapted to load the stored data information in the mobile terminal and display it in the preset page.
  • the second invoking module 1811 is further adapted to: invoke a fourth JS interface of the preset page.
  • the main program module 1800 is further adapted to: request the application list information of the mobile terminal from the first transfer tool program by executing the JS program corresponding to the fourth JS interface; and acquire the application list information of the mobile terminal fed back by the first transfer tool program After that, the fifth JS interface of the preset page is called back, and the application list information of the mobile terminal is provided to the acquiring module.
  • the second loading module 1813 is further adapted to: load the application list information of the mobile terminal to display the mobile terminal management area of the preset page.
  • the second loading module 1813 is further adapted to: display the name, size, and storage location information of each installed application in the mobile terminal management area of the preset page, and load an uninstall option that displays each installed application;
  • the version information identifies the installed app that needs to be upgraded, and loads the upgrade option that shows the installed app.
  • the second loading module 1813 is further adapted to: load the preset page, and display the application market subpage requested from the server in the application market area of the preset page.
  • the second page process module 1810 further includes: a second comparison module 1814, configured to compare version information of the installed application with version information of the same application in the application market subpage to determine whether the installed application needs to be upgraded.
  • the second invoking module 1811 is further adapted to: invoke a sixth JS interface corresponding to the installation/upgrade/uninstall option of the preset page according to a trigger request for the installation/upgrade/uninstall option of the specified application in the preset page, and specify The application ID of the application is passed to the sixth JS interface.
  • the main program module 1800 is further adapted to: send an operation request for installing/upgrading/uninstalling the specified application to the first transmission tool program by executing the JS program corresponding to the sixth JS interface, so that the first transmission tool program sends the operation request to the mobile terminal according to the application ID. Install/upgrade/uninstall the operation commands for the specified application.
  • the main program module 1800 is further adapted to: acquire a success or failure notification message of the mobile terminal installing/upgrading/unloading the specified application fed back by the first transmission tool program, call back a seventh JS interface of the preset page, and install/upgrade the mobile terminal/ The success or failure notification message for uninstalling the specified application is provided to the acquisition module.
  • the second loading module 1813 is further adapted to: update the presentation content of the preset page according to the success or failure notification message.
  • the main program module 1800 is further adapted to: receive the stored data information and/or device information in the updated mobile terminal actively notified by the first transmission tool program when the stored data information and/or the device information is updated in the mobile terminal; And storing the stored data information and/or device information in the updated mobile terminal to the acquiring module.
  • the second loading module 1813 is further adapted to: reload and display the preset page according to the stored data information and/or the device information in the updated mobile terminal.
  • the main program module 1800 is further adapted to: receive a connection disconnection event message sent by the first transfer tool program after the mobile terminal disconnects from the first transfer tool program; and provide a disconnection event message to the acquisition module.
  • the second loading module 1813 is further adapted to: reload and display the preset page in accordance with the connection disconnect event message.
  • the second page process module 1810 further includes: a second sending module 1815, configured to notify the main program module to send data to the mobile terminal device by using the first transfer tool program, where the data includes: the browser loads the URL information of the webpage element in the webpage Or downloaded files or downloaded web page elements.
  • the data further includes: an operation command and an operand for the specified APP in the mobile terminal device.
  • the main program module 1800 is further adapted to: automatically load the corresponding browser plug-in information to install the client program corresponding to the APP program on the browser side according to the APP program information in the stored data information in the mobile terminal returned by the first transfer tool program.
  • the data communication channel between the browser and the first transmission tool program is established by using the preset page, so that the browser can perform data transmission with the mobile terminal, and the browser can obtain the data.
  • the data information stored in the mobile terminal returned by the first transmission tool program is displayed and displayed in a preset page for the user to view.
  • the page process can call back the JS interface according to the main program of the browser, and can quickly display the stored data information in the mobile terminal in real time, so that the user can operate the stored data information in the mobile terminal accordingly.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Unless otherwise stated, this specification (package)
  • Each of the features disclosed in the accompanying claims, the abstract and the drawings may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of a browser device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 19 illustrates a computing device that can implement a method of communicating between a browser and a mobile terminal in accordance with the present invention.
  • the computing device conventionally includes a processor 1910 and a computer program product or computer readable medium in the form of a memory 1920.
  • the memory 1920 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 1920 has a memory space 1930 for program code 1931 for performing any of the method steps described above.
  • storage space 1930 for program code may include various program code 1931 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similar to the storage 1920 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 1931', ie, code that can be read by, for example, a processor such as 1910, which when executed by a computing device causes the computing device to perform each of the methods described above step.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种浏览器与移动终端之间进行通信的方法及浏览器装置。其中方法包括:在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;启动页面进程加载一预置页面,由页面进程通知浏览器第一进程建立与移动终端的数据通信通道;在数据通信通道建立之后,页面进程通知浏览器第一进程向移动终端请求移动终端中的存储数据信息和/或设备信息;页面进程获取经由浏览器第一进程传输过来的移动终端中的存储数据信息和/或设备信息,并将其加载展示在预置页面中。本发明利用所建立的数据通信通道,使得浏览器可以与移动终端进行数据传输,操作便捷。

Description

浏览器与移动终端之间进行通信的方法及浏览器装置 技术领域
本发明涉及互联网技术领域,具体涉及一种浏览器与移动终端之间进行通信的方法及浏览器装置。
背景技术
现有技术中,浏览器与移动终端之间的数据通信需要借助于浏览器所在的客户端以及USB数据线或WIFI,用户需要先将浏览器侧的应用下载到浏览器所在的客户端,然后通过USB数据线或WIFI将移动终端与浏览器所在的客户端连接,将应用传递到移动终端,浏览器与移动终端之间无法直接进行数据传输,而且用户在上网浏览网页的过程中,需要切换到程序界面,才可以查看移动终端中的存储数据信息和/或设备信息,使得用户操作繁琐。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的浏览器与移动终端之间进行通信的方法和相应的浏览器装置。
根据本发明的一个方面,提供了一种浏览器与移动终端之间进行通信的方法,方法包括:
在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;
启动页面进程加载一预置页面,由页面进程通知浏览器第一进程建立与移动终端的数据通信通道;
在数据通信通道建立之后,页面进程通知浏览器第一进程向移动终端请求移动终端中的存储数据信息和/或设备信息;
页面进程获取经由浏览器第一进程传输过来的移动终端中的存储数据信息和/或设备信息,并将其加载展示在预置页面中。
根据本发明的另一个方面,提供了一种浏览器与移动终端之间进行通信的方法,其中所述浏览器通过浏览器所在的客户端上安装的第一传输工具程序与所述移动终端进行数据通信,所述方法包括:
在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;
启动页面进程加载一预置页面,由所述页面进程通知浏览器主程序建立与第一传输工具程序的数据通信通道;
在所述数据通信通道建立之后,所述页面进程通知浏览器主程序向第一传输工具程序请求所述移动终端中的存储数据信息和/或设备信息;
所述页面进程获取经由所述浏览器主程序传输过来的由第一传输工具程序返回 的所述移动终端中的存储数据信息和/或设备信息,并将其加载展示在所述预置页面中。
根据本发明的再一方面,提供了一种浏览器装置,包括:运行浏览器第一进程的第一进程模块和运行页面进程的第一页面进程模块;
其中,第一进程模块适于:在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;启动页面进程加载一预置页面,根据页面进程模块的通知建立与移动终端的数据通信通道;
所述第一页面进程模块包括:
第一调用模块,适于通知第一进程模块向移动终端请求移动终端中的存储数据信息和/或设备信息;
第一获取模块,适于获取第一进程模块传输过来的移动终端中的存储数据信息和/或设备信息;
第一加载模块,适于加载移动终端中的存储数据信息和/或设备信息并将其展示在预置页面中。
根据本发明的又一方面,提供了一种浏览器装置,所述浏览器装置通过浏览器装置所在的客户端上安装的第一传输工具程序与移动终端进行数据通信,所述浏览器装置包括:运行浏览器主程序的主程序模块和运行页面进程的第二页面进程模块;
其中,所述主程序模块适于:在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;启动页面进程加载一预置页面,根据页面进程模块的通知建立与第一传输工具程序的数据通信通道;
所述第二页面进程模块包括:
第二调用模块,适于通知主程序模块向第一传输工具程序请求所述移动终端中的存储数据信息和/或设备信息;
第二获取模块,适于获取所述主程序模块传输过来的由第一传输工具程序返回的所述移动终端中的存储数据信息和/或设备信息;
第二加载模块,适于加载所述移动终端中的存储数据信息和/或设备信息并将其展示在所述预置页面中。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行任一上述的浏览器与移动终端之间进行通信的方法。
根据本发明的又一个方面,提供了一种计算机可读介质,其中存储了上述的计算机程序。
根据本发明提供的方案,利用预置页面建立浏览器与移动终端之间的数据通信通道,使得浏览器可以与移动终端直接进行数据传输,无需借助其他辅助应用程序,浏览器可获取移动终端中的存储数据信息和/或设备信息,并将其加载展示在预置页面中,以供用户查看。通过该方法,用户在上网浏览网页的过程中,如要查看移动终端中的存储数据信息和/或设备信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷。
根据本发明提供的方案,也可以利用预置页面建立浏览器与第一传输工具程序之间的数据通信通道,使得浏览器可以与移动终端之间进行数据传输,浏览器可获取由第一传输工具程序返回的移动终端中的存储数据信息和/或设备信息,并将其加载展示在预置页面中,以供用户查看。通过该方法,用户在上网浏览网页的过程中,如要查看移动终端中的存储数据信息和/或设备信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了根据本发明一个实施例的浏览器与移动终端之间进行通信的方法的流程图;
图2示出了根据本发明另一个实施例的浏览器与移动终端之间进行通信的方法的流程图;
图3示出了展示在预置页面的信息区域的移动终端的设备信息;
图4示出了更新后的展示在预置页面的信息区域的移动终端的设备信息;
图5示出了根据本发明另一个实施例的浏览器与移动终端之间进行通信的方法的流程图;
图6示出了从服务端获取到的应用市场子页面;
图7示出了预置页面的应用市场区域的移动终端的存储数据信息;
图8示出了根据本发明一个实施例的浏览器装置的结构框图;
图9示出了根据本发明另一个实施例的浏览器装置的结构框图;
图10示出了根据本发明再一个实施例的浏览器与移动终端之间进行通信的方法的流程图;
图11示出了根据本发明又一个实施例的浏览器与移动终端之间进行通信的方法的流程图;
图12示出了另一展示在预置页面的信息区域的移动终端的设备信息;
图13示出了另一更新后的展示在预置页面的信息区域的移动终端的设备信息;
图14示出了根据本发明又一个实施例的浏览器与移动终端之间进行通信的方法的流程图;
图15示出了另一从服务端获取到的应用市场子页面;
图16示出了另一预置页面的应用市场区域的移动终端的存储数据信息;
图17示出了根据本发明再一个实施例的浏览器装置的结构框图;
图18示出了根据本发明又一个实施例的浏览器装置的结构框图;
图19示意性地示出了用于执行根据本发明的浏览器与移动终端之间进行通信的方法的计算设备的框图;以及
图20示意性地示出了用于保持或者携带实现根据本发明的浏览器与移动终端之间进行通信的方法的程序代码的存储单元。
具体实施方式
下面结合附图和具体的实施方式对本发明作进一步的描述。
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
浏览器是指可以显示网页服务器或者文件系统的HTML文件内容,并让用户与这些文件交互的一种软件。移动终端指可以在移动中使用的计算机设备,例如,手机、笔记本、平板电脑。
在本发明中,浏览器与移动终端之间可以实现直接进行数据通信,无需借助于任何辅助应用程序,本发明需要在浏览器侧预先配置安装有与移动终端操作系统关联的ADB组件,ADB组件提供可供浏览器第一进程调用的用于实现指定功能的多个DLL接口。浏览器侧配置ADB组件后,浏览器通过调用ADB组件中的DLL接口可以与所有Android设备进行连接,进行数据通信。
ADB(Android Debug Bridge)是Android SDK里的一个通用的调试工具,利用这个工具可以直接操作管理Android模拟器或者真实的Android设备(如三星手机)。它的主要功能有:1、运行设备的shell(命令行);2、管理模拟器或设备的端口映射;3、计算机和设备之间上传/下载文件;4、将本地apk软件安装至模拟器或Android设备。
ADB是一个客户端-服务端程序,其中客户端程序安装于使用者用于操作的PC中,服务端程序安装于Android设备中。在本发明中,ADB的客户端程序安装于浏览器中,ADB的服务端程序安装于移动终端设备中。
图1示出了根据本发明一个实施例的浏览器与移动终端之间进行通信的方法的流程图。如图1所示,该方法包括以下步骤:
步骤S100,在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求。
具体地,浏览器界面包含手机助手的触发按钮,用户通过客户端打开浏览器后,通过点击手机助手的触发按钮即触发了对与该浏览器绑定的移动终端中的存储数据信息和/或设备信息的读取请求。
步骤S101,启动页面进程加载一预置页面,由页面进程通知浏览器第一进程建立与移动终端的数据通信通道。
预置页面是点击手机助手的触发按钮后在浏览器侧加载显示的页面,该预置页 面为浏览器本地的页面。在点击手机助手的触发按钮后,即向浏览器第一进程发起了启动页面进程的请求,浏览器第一进程根据该请求启动页面进程,由该页面进程加载预置页面。具体地,页面进程在加载预置页面时向浏览器第一进程发送在浏览器第一进程与移动终端之间建立数据通信通道的通知。
步骤S102,在数据通信通道建立之后,页面进程通知浏览器第一进程向移动终端请求移动终端中的存储数据信息和/或设备信息。
本实施例中,移动终端可以通过WIFI或者USB数据线与浏览器所在的客户端进行连接。在浏览器与移动终端之间的数据通信通道建立之后,浏览器第一进程会检测移动终端是否连接,在移动终端已连接的情况下,浏览器第一进程会通知页面进程移动终端已连接。页面进程在接收到浏览器第一进程发送的移动终端已连接的通知后,通知浏览器第一进程向移动终端发送获取移动终端中的存储数据信息和/或设备信息的请求,浏览器第一进程通过ADB组件向移动终端发送请求移动终端中的存储数据信息和/或设备信息的命令。
步骤S103,页面进程获取经由浏览器第一进程传输过来的移动终端中的存储数据信息和/或设备信息,并将其加载展示在预置页面中。
移动终端利用ADB组件向浏览器第一进程返回移动终端中的存储数据信息和/或设备信息,浏览器第一进程再将获取到的移动终端中的存储数据信息和/或设备信息返回给页面进程。页面进程获取浏览器第一进程返回的存储数据信息和/或设备信息后,将这些信息加载展示在预置页面中。
根据本发明上述实施例提供的方法,利用预置页面建立浏览器与移动终端之间的数据通信通道,使得浏览器可以与移动终端直接进行数据传输,无需借助其他辅助应用程序,浏览器可获取移动终端中的存储数据信息和/或设备信息,并将其加载展示在预置页面中,以供用户查看。通过该方法,用户在上网浏览网页的过程中,如要查看移动终端中的存储数据信息和/或设备信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷。
本发明中,浏览器第一进程可以具体为浏览器主进程,其中,页面进程与浏览器主进程之间通过预置页面中预先写入的JS程序进行通信,浏览器主进程通过调用预先配置的与移动终端操作系统关联的ADB组件中的DLL接口与移动终端进行通信。
或者,浏览器第一进程具体为与浏览器主进程独立设置的进程,浏览器第一进程通过进程间通信的方式经由浏览器主进程与页面进程进行通信,其中,进程间通信指至少两个进程间传送数据或信号信息的一些技术或方法,页面进程与浏览器主进程之间通过预置页面中预先写入的JS程序进行通信,浏览器第一进程通过调用预先配置的与移动终端操作系统关联的ADB组件中的DLL接口与移动终端进行通信。
以下实施例均以浏览器第一进程为浏览器主进程为例,进行详细介绍。
图2示出了根据本发明另一个实施例的浏览器与移动终端之间进行通信的方法的流程图。本实施例中,以移动终端为手机、客户端为PC为例进行介绍。如图2所示,该方法包括以下步骤:
步骤S200,在PC的浏览器侧触发对与该浏览器绑定的手机中的设备信息的读 取请求。
其中,手机中的设备信息包含手机的状态信息以及手机桌面截图,手机的状态信息包含以下信息的一种或多种:手机的名称和型号、手机的总存储量信息和剩余存储量信息、以及手机的SD卡信息。
具体地,浏览器界面包含手机助手的触发按钮,例如在浏览器的工具栏或侧边栏添加手机助手的触发按钮,用户打开PC中的浏览器后,通过点击手机助手的触发按钮即触发了对与该浏览器绑定的手机中的设备信息的读取请求。
步骤S201,启动页面进程加载一预置页面。
在点击手机助手的触发按钮后,即向浏览器主进程发起了启动页面进程的请求,浏览器主进程根据该请求启动页面进程,由该页面进程加载预置页面,即手机助手页面。
手机助手页面是点击手机助手的触发按钮后在浏览器侧加载显示的页面,该手机助手页面为浏览器本地的页面,并非从网络侧请求回来的页面。在该手机助手页面中预先写入用于实现各种功能的脚本(JS)程序,这些JS程序提供对应的JS接口以供页面进程调用,当页面进程调用某JS接口时,浏览器主进程调用ADB组件提供的对应的DLL接口实现相应的功能。
本发明中,支持页面进程调用的JS接口包含但不仅限于如下:
AppStore_instal lApp(string app_name);安装应用接口,参数为应用名称
AppStore_uninstal lApp(string app_name);卸载应用接口,参数应用名称
AppStore_getMobileInfo();获取手机的状态信息接口
AppStore_getAppList();获取手机应用列表信息接口
AppStore_start();页面启动时的调用接口,用于建立数据通信通道
AppStore_isEnable();查询是否支持打通手机功能的接口
AppStore_getMobileScreenImage();获取手机桌面截图的接口
AppStore_multiUpdateApp(string app_list_json);批量更新应用的接口
AppStore_cancelUpdateApp(string app_list_json);取消批量更新应用的接口
除了以上可供页面进程调用的JS接口以外,手机助手页面还提供了可供浏览器主进程调用的用于通知状态的JS接口,包括但不仅限于:
AppStore_onConnect(string connection_status);手机连接上以后,通知页面的接口
AppStore_setApkInstallStatus(string install_status_json);安装应用的过程状态通知接口
AppStore_setApkUninstallStatus(string uninstall_status_json);卸载应用的过程状态通知接口
AppStore_setAppList(string app_list_json);返回获取到手机上面的应用列表的接口
AppStore_setMobileInfo(string phone_info_json);返回手机的状态信息 的接口
AppStore_setMobileScreenImage(string screen_snapshot_data);返回手机屏幕截图的接口。
需要说明的是,以上各个JS接口的名称为自定义名称,不能作为对JS接口的限制,凡是用于实现上述功能的JS接口都是属于本发明需要保护的范围。
步骤S202,页面进程通知浏览器主进程调用ADB组件提供的第一DLL接口,以供手机响应第一DLL接口的调用请求,建立与浏览器的数据通信通道。
在手机助手页面启动时,页面进程调用AppStore_start()接口,浏览器主进程根据页面进程的通知,调用ADB组件提供的第一DLL接口,通过调用第一DLL接口可将与手机建立数据通信通道的请求直接传到手机中。由于ADB组件是一个客户端-服务端程序,因此,手机可以对浏览器主进程的调用请求做出响应,建立与浏览器的数据通信通道,该数据通信通道使得浏览器可以与手机进行数据传输。
步骤S203,在数据通信通道建立之后,页面进程通知浏览器主进程向手机请求已经连接的手机的设备信息。
手机的设备信息包含手机的状态信息以及手机桌面截图。其中,手机的状态信息包含以下信息的一种或多种:手机的名称和型号、手机的总存储量信息和剩余存储量信息、以及手机的SD卡信息。
已经连接的手机指通过WIFI或者USB数据线与浏览器所在的PC已经建立连接的手机设备。
具体地,页面进程通知浏览器主进程调用ADB组件提供的第二DLL接口,以供手机响应第二DLL接口的调用请求,向浏览器主进程返回手机的状态信息以及手机桌面截图。
在浏览器与手机之间的数据通信通道建立之后,浏览器主进程会检测手机是否连接,在手机已连接的情况下,浏览器主进程回调AppStore_onConnect()接口,通知页面进程手机已连接。页面进程在接收到浏览器主进程发送的手机已连接的通知后,调用AppStore_getMobileInfo()接口、AppStore_getMobileScreenImage()接口,浏览器主进程根据页面进程的通知,调用ADB组件提供的第二DLL接口向手机助手请求手机的状态信息以及手机桌面截图。
步骤S204,页面进程获取经由浏览器主进程传输过来的手机中的设备信息,将其加载展示在手机助手页面中,以便浏览器侧用户选择进行数据传输的手机。
浏览器主进程获取到手机的状态信息以及手机桌面截图之后,将手机的状态信息以及手机桌面截图提供给页面进程;页面进程将手机的状态信息以及手机桌面截图加载展示在预置页面的信息区域。当有多个手机与浏览器连接,可采用下拉菜单的方式,根据用户的选择分别加载展示各个手机的状态信息以及桌面截图。另外,用户还需要从中选择一个与浏览器进行数据传输的手机。
具体地,手机根据浏览器主进程发送的请求,通过ADB组件将手机的状态信息以及手机桌面截图返回给浏览器主进程,浏览器主进程获取到由手机返回的手机的状态信息以及手机桌面截图之后,回调AppStore_setMobileInfo(string  phone_info_json)接口、AppStore_setMobileScreenImage(string screen_snapshot_data)接口,用于将手机的状态信息以及手机桌面截图提供给页面进程。
以OPPO手机为例,页面进程将从浏览器主进程获取到的手机名称:OPPO Find5、手机的总存储量信息:4G和剩余存储量信息1.6G、手机的SD卡信息:总量:14.5G剩余:7.2G以及当前手机的桌面展示在预置页面的信息区域,并在预置页面的信息区域显示为“管理我的手机”,如图3所示。
在用户未连接手机的情况下,手机助手页面加载完成后,手机助手页面的信息区域中的手机桌面截图为默认的机器人样式,用于显示手机名称的地方则会显示“没有连接手机”,信息区域底部的按钮会显示为“连接手机”。
此外,本实施例中的手机助手页面还可以显示更新后的手机的设备信息。具体地,在手机中的设备信息发生更新时,手机通过ADB组件将更新后的手机中的设备信息主动通知给浏览器主进程,浏览器主进程将更新后的手机中的设备信息提供给页面进程,以供页面进程根据更新后的手机中的设备信息重新加载并展示手机助手页面。以上述OPPO手机为例,当手机的剩余存储量由1.6G变为0.7G,其他设备信息不发生变化时,手机通过ADB组件将更新后的手机的设备信息通知给浏览器主进程,浏览器主进程将更新后的手机中的设备信息提供给页面进程,由页面进程根据更新后的手机中的设备信息重新加载并展示手机助手页面,其中,手机助手页面的信息区域将显示:OPPO Find5、手机的总存储量信息:4G、剩余存储量信息0.7G、以及手机的SD卡信息:总量信息:14.5G、剩余信息:7.2G,如图4所示。
根据本发明上述实施例提供的方法,利用预置页面建立浏览器与移动终端之间的数据通信通道,使得浏览器可以与移动终端之间进行数据传输,浏览器可获取由移动终端返回的移动终端中的设备信息,并将其加载展示在预置页面中,以供用户查看。通过该方法,用户在上网浏览网页的过程中,如要查看移动终端中的设备信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷。通过将移动终端的设备信息展示在预置页面的信息区域并对移动终端的设备信息实时更新,可以方便实时地掌握移动终端的设备信息,方便用户对移动终端进行操作,避免了移动终端的存储量不足导致用户进行无用功操作的缺陷。
图5示出了根据本发明另一个实施例的浏览器与移动终端之间进行通信的方法的流程图。本实施例中,以移动终端为手机、客户端为PC为例进行介绍。如图5所示,该方法包括以下步骤:
步骤S500,在PC的浏览器侧触发对与该浏览器绑定的手机中的设备信息的读取请求。
其中,手机中的存储数据信息包含但不仅限于手机的应用列表信息,应用列表信息包含多个数据项,每个数据项携带手机中一个已安装应用的信息,每个数据项携带移动终端中一个已安装应用的信息又包含:已安装应用的名称、版本信息、大小和存储位置信息。
步骤S501,启动页面进程加载一预置页面。
本步骤与图2所示实施例中的步骤S201类似,在此不再赘述。
步骤S502,页面进程从服务端请求获取应用市场子页面,将应用市场子页面加载展示在预置页面的应用市场区域。
页面进程加载预置页面的过程中,页面进程向服务器发出获取应用市场子页面的请求,服务器根据页面进程发送的请求向页面进程返回相应的应用市场子页面,页面进程将服务器端返回的应用市场子页面加载展示在预置页面的应用市场区域。例如,可以在预置页面的应用市场区域展示近期下载次数高的应用,或者按照应用的类别展示从服务器端获取到的应用,例如按照系统输入、聊天通讯、影音影像、阅读学习、生活地图、壁纸主题、办公商务等分类展示,如图6所示。
步骤S503,页面进程通知浏览器主进程调用ADB组件提供的第一DLL接口,以供手机响应第一DLL接口的调用请求,建立与浏览器的数据通信通道。
本步骤与图2所示实施例中的步骤S202类似,在此不再赘述。
上述步骤S503也可以在步骤S502之前执行,或与步骤S502同步执行。
步骤S504,页面进程通知浏览器主进程调用ADB组件提供的第三DLL接口,以供手机响应第三DLL接口的调用请求,向浏览器主进程返回手机的应用列表信息。
在浏览器与手机之间的数据通信通道建立之后,浏览器主进程会检测手机是否连接,在手机已连接的情况下,浏览器主进程调用AppStore_onConnect()接口,通知页面进程手机已连接。页面进程在接收到浏览器主进程发送的手机已连接的通知后,调用AppStore_getAppList()接口,浏览器主进程调用ADB组件提供的第三DLL接口向手机请求手机的应用列表信息。
步骤S505,浏览器主进程获取到手机的应用列表信息之后,将手机的应用列表信息提供给页面进程。
手机侧ADB组件接收到浏览器侧ADB组件发送的调用手机的应用列表信息的请求后,将手机的应用列表信息通过ADB组件返回给浏览器主进程,浏览器主进程获取到手机的应用列表信息之后,回调AppStore_setAppList(string app_list_json)接口,并将手机的应用列表信息提供给页面进程。
步骤S506,页面进程将手机的应用列表信息加载展示在预置页面的移动终端管理区域。
其中,在预置页面的移动终端管理区域展示每个已安装应用的名称、大小和存储位置信息,并加载展示每个已安装应用的卸载选项;对于根据已安装应用的版本信息确定需要升级的已安装应用,加载展示该已安装应用的升级选项,例如,页面进程获取到的手机应用分别为:360浏览器、360手机助手、360文件管理器、AppBackup、Chrome、Flappy Bird、Paperama、SD Card Speed Test、Table Tennis,则预置页面的移动终端管理区域将如图7所示。而在手机的应用列表信息加载过程中,预置页面的移动终端管理区域将显示“正在读取手机已安装软件,请稍后”。
此外,本实施例还可用于确定已安装应用是否需要升级。具体地,将已安装应用的版本信息与应用市场子页面中相同应用的版本信息进行比较,若已安装应用的版本信息与应用市场子页面中相同应用的版本信息相同,则该已安装应用不需要升 级,若已安装应用的版本信息与应用市场子页面中相同应用的版本信息不相同,则该已安装应用需要升级,此时,将在移动终端的管理区域中显示“升级”选项,当用户点击该“升级”选项,则对该应用进行升级,“升级”选项包括极速升级与升级两种,在应用可以通过极速升级的方式进行升级时,页面还将显示“可提速XX%升级”的提示。
可选地,本实施例还可对手机中的应用进行管理,例如,对手机中的应用进行升级或卸载,或者在手机上安装应用市场子页面所展示的应用。具体地,根据对预置页面中指定应用的安装/升级/卸载选项的触发请求,页面进程将指定应用的应用ID通知给浏览器主进程,浏览器主进程调用ADB组件提供的与安装/升级/卸载指定应用的操作命令对应的第四DLL接口,以供移动终端响应第四DLL接口的调用请求,在移动终端中安装/升级/卸载指定应用。
这里的应用ID可以是应用的标识,也可以是应用名称。每一应用都有唯一的应用ID,根据该应用ID可以识别所需要操作的应用。用户在触发预置页面中指定应用的安装/升级/卸载选项后,页面进程调用AppStore_installApp(string app_name)安装接口、相应的升级接口(本文未给出具体定义)、或AppStore_uninstallApp(string app_name)卸载接口,将所指定应用的app_name传递分别给安装接口、升级接口、卸载接口,浏览器主进程根据页面进程的通知调用ADB组件提供的与安装/升级/卸载指定应用的操作命令对应的第四DLL接口,以供移动终端响应第四DLL接口的调用请求,在移动终端中安装/升级/卸载指定应用。
本实施例不仅可以方便用户对手机进行操作,还可以在用户对手机进行操作之后,向用户展示操作结果,并且及时更新预置页面的展示内容。在移动终端安装/升级/卸载指定应用之后,浏览器主进程获取移动终端安装/升级/卸载指定应用的成功或失败通知消息,将移动终端安装/升级/卸载指定应用的成功或失败通知消息提供给页面进程,以供页面进程根据成功或失败通知消息更新预置页面的展示内容。
具体地,浏览器主进程通过回调AppStore_setApkInstallStatus(string install_status_json)(安装应用的过程状态通知接口)、升级应用的过程状态通知接口、AppStore_setApkUninstallStatus(string uninstall_status_json)(卸载应用的过程状态通知接口)将手机安装/升级/卸载指定应用的成功或失败通知消息提供给页面进程,以供页面进程根据成功或失败通知消息更新预置页面的展示内容。
此外,本实施例中的预置页面还可以显示更新后的移动终端的存储数据信息。具体地,在移动终端中的存储数据信息和/或设备信息发生更新时,移动终端将更新后的移动终端中的存储数据信息和/或设备信息主动通知给浏览器主进程;浏览器主进程将更新后的移动终端中的存储数据信息和/或设备信息提供给页面进程,以供页面进程根据更新后的移动终端中的存储数据信息和/或设备信息重新加载并展示预置页面,使得用户可以实时获知移动终端中存储数据信息,避免用户进行不必要的操作,例如二次安装。
本实施例还可用于检测移动终端是否已连接断开,在连接断开的情况下,可以 通过预置页面向用户展示连接已断开。具体地,在移动终端与浏览器所在的客户端断开连接之后,浏览器主进程接收到连接断开事件消息;浏览器主进程将连接断开事件消息提供给页面进程,以供页面进程根据连接断开事件消息重新加载并展示预置页面。该方法能够在用户网络不稳定或者用户无意识断开移动终端与移动终端连接的情况下,快速且形象地告知用户连接已断开,用户在获知连接断开后可选择重新连接或者停止后续操作,避免了连接断开后预置页面没有及时更新展示内容,造成用户进行一些无意义操作。在手机已经连接断开时,在通过USB数据线连接手机的情况下,预置页面的信息区域可以显示手机名称,但是手机桌面截图将显示未连接手机时的机器人截图,信息区域底部显示“管理我的手机”;应用市场区域将显示“您的手机已离线,请连接上您的手机,然后才能管理手机应用,并在应用市场区域提供有‘连接手机’选项”;在通过WIFI连接手机的情况下,预置页面的信息区域可以显示手机名称,但是手机桌面截图将显示WIFI样式的默认图片,信息区域底部显示“管理我的手机”;应用市场区域将显示“需要您的授权,为了您的手机数据安全,请点击以下按钮,并根据提示,在手机上完成授权确认,并在应用市场区域提供有‘读取手机应用列表’选项”。
此外,在数据通信通道建立之后,浏览器不仅可以获取移动终端中的数据,浏览器还可以将网络侧提供的丰富数据发送给移动终端,具体地,页面进程具有通知浏览器主进程向移动终端设备发送数据的功能,其中,数据包括:浏览器加载网页中的网页元素的URL信息或者下载的文件或者下载的网页元素。其中,数据进一步包括:针对移动终端中的指定APP的操作命令以及操作数。利用所建立的数据通信通道将浏览器侧的数据传递到移动终端,解决了浏览器无法与移动终端进行数据传输,而需要将网络内容拷贝或下载后再转移到移动终端上的缺陷,使得用户可以直接通过浏览器对移动终端进行操作,方便了用户在利用浏览器上网时,将浏览器从服务器获取的网络内容直接转移给移动终端。
可选地,本实施例不仅可以将浏览器侧应用安装于移动终端,还可根据移动终端的中存储数据信息在浏览器所在的客户端安装移动终端中APP程序对应的客户端程序,方便用户安装以及使用对应的客户端程序。具体地,页面进程依据移动终端中的存储数据信息中的APP程序信息,自动在浏览器侧加载对应的浏览器插件信息安装APP程序对应的客户端程序。
根据本发明上述实施例提供的方法,利用预置页面建立浏览器与移动终端之间的数据通信通道,使得浏览器可以与移动终端之间进行数据传输,浏览器可获取移动终端中的存储数据信息,并将其加载展示在预置页面中,以供用户查看。通过该方法,用户在上网浏览网页的过程中,如要查看移动终端中的存储数据信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷,简化了用户的操作,解决了将数据下载到客户端以及连接USB数据线或利用WIFI时对移动终端的设置操作繁琐的缺陷。
在本发明上述图2和图5所示的实施例中,页面进程与浏览器主进程之间通过预置页面中预先写入的JS程序进行通信,浏览器主进程利用预先配置的ADB组件与 移动终端进行通信。
作为另一种实施方式,浏览器侧设置有与手机直接进行数据通信的第一进程,即实现ADB客户端程序的进程,该第一进程是与浏览器主进程独立设置的进程,该第一进程通过进程间通信的方式与浏览器主进程进行通信,浏览器主进程与页面进程之间通过预置页面中预先写入的JS程序进行通信。也就是说,页面进程是依次通过浏览器主进程、第一进程与手机进行数据通信。
图8示出了根据本发明一个实施例的浏览器装置的结构框图。浏览器侧预先配置安装有与移动终端操作系统关联的ADB组件,ADB组件提供可供第一进程模块调用的用于实现指定功能的多个DLL接口。如图8所示,该浏览器装置包括:运行浏览器第一进程的第一进程模块800、运行页面进程的第一页面进程模块810,其中,第一页面进程模块810包括:第一调用模块811、第一获取模块812、第一加载模块813。
第一进程模块800适于:在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;启动页面进程加载一预置页面,根据页面进程模块的通知建立与移动终端的数据通信通道。
其中,移动终端中的存储数据信息包含移动终端的应用列表信息;应用列表信息包含多个数据项,每个数据项携带移动终端中一个已安装应用的信息,每个数据项携带移动终端中一个已安装应用的信息又包含:已安装应用的名称、版本信息、大小和存储位置信息;移动终端的设备信息包含移动终端的状态信息以及移动终端桌面截图;移动终端的状态信息包含以下信息的一种或多种:移动终端的名称和型号、移动终端的总存储量信息和剩余存储量信息、以及移动终端的SD卡信息。
第一调用模块811,适于通知第一进程模块向移动终端请求移动终端中的存储数据信息和/或设备信息。
第一获取模块812,适于获取第一进程模块传输过来的移动终端中的存储数据信息和/或设备信息。
第一加载模块813,适于加载移动终端中的存储数据信息和/或设备信息并将其展示在预置页面中。
可选地,第一进程模块800进一步适于:根据页面进程模块的通知调用ADB组件提供的第一DLL接口,以供移动终端响应第一DLL接口的调用请求,建立与浏览器的数据通信通道。
第一进程模块800进一步适于:根据页面进程模块的通知向移动终端请求已经连接的移动终端的设备信息。
第一加载模块813,进一步适于将已经连接的移动终端的设备信息展示在预置页面中,以便浏览器侧用户选择进行数据传输的移动终端。
第一进程模块800进一步适于:根据页面进程模块的通知调用ADB组件提供的第二DLL接口,以供移动终端响应第二DLL接口的调用请求,向第一进程模块返回移动终端的状态信息以及移动终端桌面截图;以及在获取到移动终端的状态信息以及移动终端桌面截图之后,将移动终端的状态信息以及移动终端桌面截图提供给获取模块。
第一加载模块813进一步适于:将移动终端的状态信息以及移动终端桌面截图加载展示在预置页面的信息区域。
根据本发明上述实施例提供的浏览器装置,利用预置页面建立浏览器与移动终端之间的数据通信通道,使得浏览器可以与移动终端之间进行数据传输,浏览器可获取由移动终端返回的移动终端中的设备信息,并将其加载展示在预置页面中,以供用户查看。利用该浏览器装置,用户在上网浏览网页的过程中,如要查看移动终端中的设备信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷。通过将移动终端的设备信息展示在预置页面的信息区域并对移动终端的设备信息实时更新,可以方便实时地掌握移动终端的设备信息,方便用户对移动终端进行操作,避免了移动终端的存储量不足导致用户进行无用功操作的缺陷。
图9示出了根据本发明另一个实施例的浏览器装置的结构框图。如图9所示,该浏览器装置包括:运行浏览器第一进程的第一进程模块900、运行页面进程的第一页面进程模块910,其中,第一页面进程模块910包括:第一调用模块911、第一获取模块912、第一加载模块913、第一比较模块914、第一通知模块915、第一发送模块916。
第一进程模块900适于:在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息的读取请求;启动页面进程加载一预置页面,根据页面进程模块的通知建立与移动终端的数据通信通道。
第一调用模块911,适于通知第一进程模块900向移动终端请求移动终端中的存储数据信息。
第一获取模块912,适于获取第一进程模块900传输过来的移动终端中的存储数据信息。
第一加载模块913,适于加载移动终端中的存储数据信息并将其展示在预置页面中。
可选地,第一进程模块900进一步适于:根据页面进程模块910的通知调用ADB组件提供的第一DLL接口,以供移动终端响应第一DLL接口的调用请求,建立与浏览器的数据通信通道。
第一进程模块900进一步适于:根据页面进程模块910的通知调用ADB组件提供的第三DLL接口,以供移动终端响应第三DLL接口的调用请求,向第一进程模块返回移动终端的应用列表信息;以及在获取到移动终端的应用列表信息之后,将移动终端的应用列表信息提供给获取模块。
第一加载模块913进一步适于:将移动终端的应用列表信息加载展示在预置页面的移动终端管理区域。
第一加载模块913进一步适于:在预置页面的移动终端管理区域展示每个已安装应用的名称、大小和存储位置信息,并加载展示每个已安装应用的卸载选项;对于根据已安装应用的版本信息确定需要升级的已安装应用,加载展示该已安装应用的升级选项。
第一加载模块913还适于:加载预置页面,在预置页面的应用市场区域展示从服务端请求回来的应用市场子页面。
第一页面进程模块910还包括:第一比较模块914,适于将已安装应用的版本信息与应用市场子页面中相同应用的版本信息进行比较,确定已安装应用是否需要升级。
第一页面进程模块910还包括:第一通知模块915,适于根据对预置页面中指定应用的安装/升级/卸载选项的触发请求,将指定应用的应用ID通知给第一进程模块900。
第一进程模块900进一步适于:调用ADB组件提供的与安装/升级/卸载指定应用的操作命令对应的第四DLL接口,以供移动终端响应第四DLL接口的调用请求,在移动终端中安装/升级/卸载指定应用。
第一进程模块900还适于:获取移动终端安装/升级/卸载指定应用的成功或失败通知消息,将移动终端安装/升级/卸载指定应用的成功或失败通知消息提供给获取模块912。
第一加载模块913进一步适于:根据成功或失败通知消息更新预置页面的展示内容。
第一进程模块900还适于:接收在移动终端中的存储数据信息和/或设备信息发生更新时主动通知的更新后的移动终端中的存储数据信息和/或设备信息;以及,将更新后的移动终端中的存储数据信息和/或设备信息提供给获取模块。
第一加载模块913进一步适于:根据更新后的移动终端中的存储数据信息和/或设备信息重新加载并展示预置页面。
第一进程模块900还适于:接收在移动终端与浏览器所在的客户端断开连接之后发送的连接断开事件消息;以及,将连接断开事件消息提供给获取模块。
第一加载模块913进一步适于:根据连接断开事件消息重新加载并展示预置页面。
页面进程模块910还包括:第一发送模块916,适于通知第一进程模块向移动终端设备发送数据,其中,数据包括:浏览器加载网页中的网页元素的URL信息或者下载的文件或者下载的网页元素,该数据进一步包括:针对移动终端设备中的指定APP的操作命令以及操作数。
第一进程模块900进一步适于:依据移动终端中的存储数据信息中的APP程序信息,自动在浏览器侧加载对应的浏览器插件信息安装APP程序对应的客户端程序。
根据本发明上述实施例提供的浏览器装置,利用预置页面建立浏览器与移动终端之间的数据通信通道,使得浏览器可以与移动终端之间进行数据传输,浏览器可获取移动终端中的存储数据信息,并将其加载展示在预置页面中,以供用户查看。利用该浏览器装置,用户在上网浏览网页的过程中,如要查看移动终端中的存储数据信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷,简化了用户的操作,解决了将数据下载到客户端以及连接USB数据线或利用WIFI时对移动终端的设置操作繁琐的缺陷。
在本发明上述图8和图9所示的实施例中,第一进程模块可以具体为主进程模块,第一页面进程模块与主进程模块之间通过预置页面中预先写入的JS程序进行通信,主进程模块利用预先配置的ADB组件与移动终端进行通信。
作为另一种实施方式,第一进程模块包括主进程模块和与主进程模块独立设置的第一进程子模块,第一进程子模块通过进程间通信的方式经由主进程模块与页面进程模块进行通信。在该实施方式中,浏览器装置设置有与手机直接进行数据通信的第一进程子模块,即实现ADB客户端程序的进程子模块,该第一进程子模块是与主进程模块独立设置的子进程模块,该第一进程子模块通过进程间通信的方式与主进程模块进行通信,主进程模块与页面进程模块之间通过预置页面中预先写入的JS程序进行通信。也就是说,页面进程模块是依次通过主进程模块、第一进程子模块与手机进行数据通信。
进一步的,在本发明中,浏览器与移动终端之间的数据通信还可以借助于辅助应用程序例如手机助手,浏览器通过该辅助应用程序与移动终端进行数据通信。以下实施例中的第一传输工具程序即为这种辅助应用程序,本发明将以手机助手为例进行详细介绍,但第一传输工具程序并不限于手机助手,本领域技术人员根据实际应用的需要可以采用其他辅助应用程序,在此不做具体限定。
图10示出了根据本发明再一个实施例的浏览器与移动终端之间进行通信的方法的流程图。如图1所示,该方法包括以下步骤:
步骤S1000,在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求。
具体地,浏览器界面包含第一传输工具程序的触发按钮,用户通过客户端打开浏览器后,通过点击第一传输工具程序的触发按钮即触发了对与该浏览器绑定的移动终端中的存储数据信息和/或设备信息的读取请求。
步骤S1001,启动页面进程加载一预置页面,由页面进程通知浏览器主程序建立与第一传输工具程序的数据通信通道。
预置页面是点击第一传输工具程序的触发按钮后在浏览器侧加载显示的页面,该预置页面为浏览器本地的页面。在点击第一传输工具程序的触发按钮后,即向浏览器主程序发起了启动页面进程的请求,浏览器主程序根据该请求启动页面进程,由该页面进程加载预置页面。具体地,页面进程在加载预置页面时向浏览器主程序发送在浏览器主程序与第一传输工具程序之间建立数据通信通道的通知。
步骤S1002,在数据通信通道建立之后,页面进程通知浏览器主程序向第一传输工具程序请求移动终端中的存储数据信息和/或设备信息。
本实施例中,移动终端可以通过WIFI或者USB数据线与浏览器所在的客户端进行连接。在浏览器与第一传输工具程序之间的数据通信通道建立之后,浏览器主程序会检测移动终端是否连接,在移动终端已连接的情况下,浏览器主程序会通知页面进程移动终端已连接。页面进程在接收到浏览器主程序发送的移动终端已连接的通知后,通知浏览器主程序向第一传输工具程序发送获取移动终端中的存储数据信息和/或设备信息的请求。
步骤S1003,页面进程获取经由浏览器主程序传输过来的由第一传输工具程序返回的移动终端中的存储数据信息和/或设备信息,并将其加载展示在预置页面中。
第一传输工具程序根据浏览器主程序发送的请求,向移动终端获取移动终端的应用列表信息、移动终端的状态信息以及移动终端桌面截图,第一传输工具程序将从移动终端将获取到的移动终端的应用列表信息、移动终端的状态信息以及移动终端桌面截图返回给浏览器主程序,浏览器主程序再将从第一传输工具程序获取到的移动终端的应用列表信息、移动终端的状态信息以及移动终端桌面截图返回给页面进程。页面进程获取浏览器主程序返回的将后,将这些信息加载展示在预置页面中。
根据本发明上述实施例提供的方法,利用预置页面建立浏览器与第一传输工具程序之间的数据通信通道,使得浏览器可以与移动终端之间进行数据传输,浏览器可获取由第一传输工具程序返回的移动终端中的存储数据信息和/或设备信息,并将其加载展示在预置页面中,以供用户查看。通过该方法,用户在上网浏览网页的过程中,如要查看移动终端中的存储数据信息和/或设备信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷。
图11示出了根据本发明又一个实施例的浏览器与移动终端之间进行通信的方法的流程图。本实施例中,以移动终端为手机、客户端为PC、第一传输工具程序为手机助手为例进行介绍。如图11所示,该方法包括以下步骤:
步骤S1100,在PC的浏览器侧触发对与该浏览器绑定的手机中的设备信息的读取请求。
其中,手机中的设备信息包含手机的状态信息以及手机桌面截图,手机的状态信息包含以下信息的一种或多种:手机的名称和型号、手机的总存储量信息和剩余存储量信息、以及手机的SD卡信息。
具体地,浏览器界面包含第一传输工具程序的触发按钮,例如在浏览器的工具栏或侧边栏添加手机助手的触发按钮,用户打开PC中的浏览器后,通过点击手机助手的触发按钮即触发了对与该浏览器绑定的手机中的设备信息的读取请求。
步骤S1101,启动页面进程加载一预置页面。
在点击手机助手的触发按钮后,即向浏览器主程序发起了启动页面进程的请求,浏览器主程序根据该请求启动页面进程,由该页面进程加载预置页面,即手机助手页面。
手机助手页面是点击手机助手的触发按钮后在浏览器侧加载显示的页面,该手机助手页面为浏览器本地的页面,并非从网络侧请求回来的页面。在该手机助手页面中预先写入用于实现各种功能的脚本(JS)程序,这些JS程序提供对应的JS接口以供页面进程调用,当页面进程调用某JS接口时,浏览器主程序会执行该JS接口对应的JS程序进行实现JS程序提供的功能。
本发明中,支持页面进程调用的JS接口包含但不仅限于如下:
AppStore_installApp(string app_name);安装应用接口,参数为应用名称
AppStore_uninstallApp(string app_name);卸载应用接口,参数应用名称
AppStore_getMobileInfo();获取手机的状态信息接口
AppStore_getAppList();获取手机应用列表信息接口
AppStore_start();页面启动时的调用接口,用于建立数据通信通道
AppStore_isEnable();查询是否支持打通手机功能的接口
AppStore_getMobileScreenImage();获取手机桌面截图的接口
AppStore_multiUpdateApp(string app_list_json);批量更新应用的接口
AppStore_cancelUpdateApp(string app_list_json);取消批量更新应用的接口
除了以上可供页面进程调用的JS接口以外,手机助手页面还提供了可供浏览器主程序调用的用于通知状态的JS接口,包括但不仅限于:
AppStore_onConnect(string connection_status);手机连接上以后,通知页面的接口
AppStore_setApkInstallStatus(string install_status_json);安装应用的过程状态通知接口
AppStore_setApkUninstallStatus(string uninstall_status_json);卸载应用的过程状态通知接口
AppStore_setAppList(string app_list_json);返回获取到手机上面的应用列表的接口
AppStore_setMobileInfo(string phone_info_json);返回手机的状态信息的接口
AppStore_setMobileScreenImage(string screen_snapshot_data);返回手机屏幕截图的接口。
需要说明的是,以上各个JS接口的名称为自定义名称,不能作为对JS接口的限制,凡是用于实现上述功能的JS接口都是属于本发明需要保护的范围。
步骤S1102,页面进程调用手机助手页面的第一JS接口,浏览器主程序通过执行第一JS接口对应的JS程序建立与手机助手的数据通信通道。
在手机助手页面启动时,页面进程调用AppStore_start()接口(即手机助手页面的第一JS接口),浏览器主程序通过执行AppStore_start()接口对应的JS程序建立与手机助手的数据通信通道,该数据通信通道使得浏览器可以与手机助手进行数据传输。
步骤S1103,在数据通信通道建立之后,页面进程通知浏览器主程序向手机助手请求已经连接或绑定过的手机的设备信息。
已经连接或绑定过的手机指手机通过WIFI或者USB数据线与浏览器所在的PC已经建立连接或者与浏览器所在的PC之前连接过并设定绑定关系的手机设备。
具体地,页面进程调用手机助手页面的第二JS接口,浏览器主程序通过执行第二JS接口对应的JS程序向手机助手请求手机的状态信息以及手机桌面截图。
在浏览器与手机助手之间的数据通信通道建立之后,浏览器主程序会检测手机是否连接,在手机已连接的情况下,浏览器主程序回调AppStore_onConnect()接口,通知页面进程手机已连接。页面进程在接收到浏览器主程序发送的手机已连接的通 知后,调用AppStore_getMobileInfo()接口、AppStore_getMobileScreenImage()接口,浏览器主程序通过执行AppStore_getMobileInfo()接口、AppStore_getMobileScreenImage()接口对应的JS程序向手机助手请求手机的状态信息以及手机桌面截图。
如果浏览器主程序还检测到设定绑定关系的手机,也会通知页面进程。页面进程调用相应的JS接口向手机助手请求绑定的手机的状态信息。
步骤S1104,页面进程获取经由浏览器主程序传输过来的由手机助手返回的已经连接或绑定过的手机的设备信息,将其加载展示在手机助手页面中,以便浏览器侧用户选择进行数据传输的手机。
浏览器主程序获取到由手机助手返回的一个或多个手机的状态信息以及桌面截图之后,回调第三JS接口,将一个或多个手机的状态信息以及桌面截图提供给页面进程;页面进程将一个或多个手机的状态信息以及桌面截图加载展示在预置页面的信息区域。当有多个手机与浏览器连接或绑定过,可采用下拉菜单的方式,根据用户的选择分别加载展示各个手机的状态信息以及桌面截图。另外,用户还需要从中选择一个与浏览器进行数据传输的手机。
具体地,手机助手根据浏览器主程序发送的请求,向手机请求获取手机的状态信息以及手机桌面截图,手机助手将获取到的手机的状态信息以及手机桌面截图返回给浏览器主程序,浏览器主程序获取到由手机助手返回的手机的状态信息以及手机桌面截图之后,回调AppStore_setMobileInfo(string phone_info_json)接口、AppStore_setMobileScreenImage(string screen_snapshot_data)接口,用于将手机的状态信息以及手机桌面截图提供给页面进程。页面进程将这些信息加载展示在预置页面的信息区域。
以OPPO手机为例,页面进程将从浏览器主程序获取到的手机名称:OPPO Find5、手机的总存储量信息:4G和剩余存储量信息1.6G、手机的SD卡信息:总量:14.5G剩余:7.2G以及当前手机的桌面展示在预置页面的信息区域,并在预置页面的信息区域显示为“管理我的手机”,如图12所示。
在用户未连接手机的情况下,手机助手页面加载完成后,手机助手页面的信息区域中的手机桌面截图为默认的机器人样式,用于显示手机名称的地方则会显示“没有连接手机”,信息区域底部的按钮会显示为“连接手机”。
此外,本实施例中的手机助手页面还可以显示更新后的手机的设备信息。具体地,在手机中的设备信息发生更新时,手机助手将更新后的手机中的设备信息主动通知给浏览器主程序,浏览器主程序将更新后的手机中的设备信息提供给页面进程,以供页面进程根据更新后的手机中的设备信息重新加载并展示手机助手页面。以上述OPPO手机为例,当手机的剩余存储量由1.6G变为0.7G,其他设备信息不发生变化时,手机助手将更新后的手机的设备信息通知给浏览器主程序,浏览器主程序将更新后的手机中的设备信息提供给页面进程,由页面进程根据更新后的手机中的设备信息重新加载并展示手机助手页面,其中,手机助手页面的信息区域将显示:OPPO Find5、手机的总存储量信息:4G、剩余存储量信息0.7G、以及手机的SD卡信息: 总量信息:14.5G、剩余信息:7.2G,如图13所示。
根据本发明上述实施例提供的方法,利用预置页面建立浏览器与第一传输工具程序之间的数据通信通道,使得浏览器可以与移动终端之间进行数据传输,浏览器可获取由第一传输工具程序返回的移动终端中的设备信息,并将其加载展示在预置页面中,以供用户查看。通过该方法,用户在上网浏览网页的过程中,如要查看移动终端中的设备信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷。通过将移动终端的设备信息展示在预置页面的信息区域并对移动终端的设备信息实时更新,可以方便实时地掌握移动终端的设备信息,方便用户对移动终端进行操作,避免了移动终端的存储量不足导致用户进行无用功操作的缺陷。
图14示出了根据本发明又一个实施例的浏览器与移动终端之间进行通信的方法的流程图。本实施例中,以移动终端为手机、客户端为PC、第一传输工具程序为手机助手为例进行介绍。如图14所示,该方法包括以下步骤:
步骤S1400,在PC的浏览器侧触发对与该浏览器绑定的手机中的存储数据信息的读取请求。
其中,手机中的存储数据信息包含但不仅限于手机的应用列表信息,应用列表信息包含多个数据项,每个数据项携带手机中一个已安装应用的信息,每个数据项携带移动终端中一个已安装应用的信息又包含:已安装应用的名称、版本信息、大小和存储位置信息。
步骤S1401,启动页面进程加载一预置页面。
本步骤与图11所示实施例中的步骤S1101类似,在此不再赘述。
步骤S1402,页面进程从服务端请求获取应用市场子页面,将应用市场子页面加载展示在预置页面的应用市场区域。
页面进程加载预置页面的过程中,页面进程向服务器发出获取应用市场子页面的请求,服务器根据页面进程发送的请求向页面进程返回相应的应用市场子页面,页面进程将服务器端返回的应用市场子页面加载展示在预置页面的应用市场区域。例如,可以在预置页面的应用市场区域展示近期下载次数高的应用,或者按照应用的类别展示从服务器端获取到的应用,例如按照系统输入、聊天通讯、影音影像、阅读学习、生活地图、壁纸主题、办公商务等分类展示,如图15所示。
步骤S1403,页面进程调用预置页面的第一JS接口,浏览器主程序通过执行第一JS接口对应的JS程序建立与手机助手的数据通信通道。
本步骤与图11所示实施例中的步骤S1102类似,在此不再赘述。
上述步骤S1403也可以在步骤S1402之前执行,或与步骤S1402同步执行。
步骤S1404,在数据通信通道建立之后,页面进程调用预置页面的第四JS接口,浏览器主程序通过执行第四JS接口对应的JS程序向手机助手请求移动终端的应用列表信息。
在浏览器与手机助手之间的数据通信通道建立之后,浏览器主程序会检测手机是否连接,在手机已连接的情况下,浏览器主程序调用AppStore_onConnect()接口, 通知页面进程手机已连接。页面进程在接收到浏览器主程序发送的手机已连接的通知后,调用AppStore_getAppList()接口,浏览器主程序通过执行AppStore_getAppList()接口对应的JS程序向手机助手请求手机的应用列表信息。
步骤S1405,浏览器主程序获取到由手机助手反馈的手机的应用列表信息之后,回调第五JS接口,将手机的应用列表信息提供给页面进程。
手机助手在接收到浏览器主程序发送的获取手机的应用列表信息的请求后,向手机获取手机的应用列表信息,并将所获取到的手机的应用列表信息反馈给浏览器主程序,浏览器主程序获取到由手机助手反馈的手机的应用列表信息之后,回调AppStore_setAppList(string app_list_json)接口,并将手机的应用列表信息提供给页面进程。
步骤S1406,页面进程将手机的应用列表信息加载展示在预置页面的移动终端管理区域。
其中,在预置页面的移动终端管理区域展示每个已安装应用的名称、大小和存储位置信息,并加载展示每个已安装应用的卸载选项;对于根据已安装应用的版本信息确定需要升级的已安装应用,加载展示该已安装应用的升级选项,例如,页面进程获取到的手机应用分别为:360浏览器、360手机助手、360文件管理器、AppBackup、Chrome、Flappy Bird、Paperama、SD Card Speed Test、Table Tennis,则预置页面的移动终端管理区域将如图16所示。而在手机的应用列表信息加载过程中,预置页面的移动终端管理区域将显示“正在读取手机已安装软件,请稍后”。
此外,本实施例还可用于确定已安装应用是否需要升级。具体地,将已安装应用的版本信息与应用市场子页面中相同应用的版本信息进行比较,若已安装应用的版本信息与应用市场子页面中相同应用的版本信息相同,则该已安装应用不需要升级,若已安装应用的版本信息与应用市场子页面中相同应用的版本信息不相同,则该已安装应用需要升级,此时,将在移动终端的管理区域中显示“升级”选项,当用户点击该“升级”选项,则对该应用进行升级,“升级”选项包括极速升级与升级两种,在应用可以通过极速升级的方式进行升级时,页面还将显示“可提速XX%升级”的提示。
可选地,本实施例还可对手机中的应用进行管理,例如,对手机中的应用进行升级或卸载,或者在手机上安装应用市场子页面所展示的应用。具体地,根据对预置页面中指定应用的安装/升级/卸载选项的触发请求,页面进程调用预置页面的与安装/升级/卸载选项对应的第六JS接口,并将指定应用的应用ID传递给第六JS接口,浏览器主程序通过执行第六JS接口对应的JS程序向第一传输工具程序发送安装/升级/卸载指定应用的操作请求,以供第一传输工具程序根据应用ID向移动终端发送安装/升级/卸载指定应用的操作命令。
这里的应用ID可以是应用的标识,也可以是应用名称。每一应用都有唯一的应用ID,根据该应用ID可以识别所需要操作的应用。用户在触发预置页面中指定应用的安装/升级/卸载选项后,页面进程调用AppStore_installApp(string app_name)安装接口、相应的升级接口(本文未给出具体定义)、或 AppStore_uninstallApp(string app_name)卸载接口,将所指定应用的app_name传递分别给安装接口、升级接口、卸载接口,浏览器主程序通过执行安装接口、升级接口、卸载接口对应的JS程序向第一传输工具程序发送安装/升级/卸载指定应用的操作请求。
本实施例不仅可以方便用户对手机进行操作,还可以在用户对手机进行操作之后,向用户展示操作结果,并且及时更新预置页面的展示内容。在移动终端安装/升级/卸载指定应用之后,浏览器主程序获取由第一传输工具程序反馈的移动终端安装/升级/卸载指定应用的成功或失败通知消息,回调第七JS接口,将移动终端安装/升级/卸载指定应用的成功或失败通知消息提供给页面进程,以供页面进程根据成功或失败通知消息更新预置页面的展示内容。
具体地,浏览器主程序通过回调AppStore_setApkInstallStatus(string install_status_json)(安装应用的过程状态通知接口)、升级应用的过程状态通知接口、AppStore_setApkUninstallStatus(string uninstall_status_json)(卸载应用的过程状态通知接口)将手机安装/升级/卸载指定应用的成功或失败通知消息提供给页面进程,以供页面进程根据成功或失败通知消息更新预置页面的展示内容。
此外,本实施例中的预置页面还可以显示更新后的移动终端的存储数据信息。具体地,在移动终端中的存储数据信息发生更新时,第一传输工具程序将更新后的移动终端中的存储数据信息主动通知给浏览器主程序,浏览器主程序将更新后的移动终端中的存储数据信息提供给页面进程,以供页面进程根据更新后的移动终端中的存储数据信息重新加载并展示预置页面,使得用户可以实时获知移动终端中存储数据信息,避免用户进行不必要的操作,例如二次安装。
本实施例还可用于检测移动终端是否已连接断开,在连接断开的情况下,可以通过预置页面向用户展示连接已断开。具体地,在移动终端与第一传输工具程序断开连接之后,浏览器主程序接收第一传输工具程序发送的连接断开事件消息;浏览器主程序将连接断开事件消息提供给页面进程,以供页面进程根据连接断开事件消息重新加载并展示预置页面。该方法能够在用户网络不稳定或者用户无意识断开移动终端与手机助手连接的情况下,快速且形象地告知用户连接已断开,用户在获知连接断开后可选择重新连接或者停止后续操作,避免了连接断开后预置页面没有及时更新展示内容,造成用户进行一些无意义操作。在手机已经连接断开时,在通过USB数据线连接手机的情况下,预置页面的信息区域可以显示手机名称,但是手机桌面截图将显示未连接手机时的机器人截图,信息区域底部显示“管理我的手机”;应用市场区域将显示“您的手机已离线,请连接上您的手机,然后才能管理手机应用,并在应用市场区域提供有‘连接手机’选项”;在通过WIFI连接手机的情况下,预置页面的信息区域可以显示手机名称,但是手机桌面截图将显示WIFI样式的默认图片,信息区域底部显示“管理我的手机”;应用市场区域将显示“需要您的授权,为了您的手机数据安全,请点击以下按钮,并根据提示,在手机上完成授权确认,并在应用市场区域提供有‘读取手机应用列表’选项”。
此外,在数据通信通道建立之后,浏览器不仅可以获取移动终端中的数据,浏览器还可以将网络侧提供的丰富数据发送给移动终端,具体地,页面进程具有通知浏览器主程序通过第一传输工具程序向移动终端设备发送数据的功能,其中,数据包括:浏览器加载网页中的网页元素的URL信息或者下载的文件或者下载的网页元素。其中,数据进一步包括:针对移动终端中的指定APP的操作命令以及操作数。利用所建立的数据通信通道将浏览器侧的数据传递到移动终端,解决了浏览器无法与移动终端进行数据传输,而需要将网络内容拷贝或下载后再转移到移动终端上的缺陷,使得用户可以直接通过浏览器对移动终端进行操作,方便了用户在利用浏览器上网时,将浏览器从服务器获取的网络内容直接转移给移动终端。
可选地,本实施例不仅可以将浏览器侧应用安装于移动终端,还可根据移动终端的中存储数据信息在浏览器所在的客户端安装移动终端中APP程序对应的客户端程序,方便用户安装以及使用对应的客户端程序。具体地,页面进程依据第一传输工具程序返回的移动终端中的存储数据信息中的APP程序信息,自动在浏览器侧加载对应的浏览器插件信息安装APP程序对应的客户端程序。
根据本发明上述实施例提供的方法,利用预置页面建立浏览器与第一传输工具程序之间的数据通信通道,使得浏览器可以与移动终端之间进行数据传输,浏览器可获取由第一传输工具程序返回的移动终端中的存储数据信息,并将其加载展示在预置页面中,以供用户查看。通过该方法,用户在上网浏览网页的过程中,如要查看移动终端中的存储数据信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷。页面进程根据浏览器主程序回调JS接口,可以实时快速展示移动终端中的存储数据信息,方便用户对移动终端中的存储数据信息进行相应地操作。
图17示出了根据本发明再一个实施例的浏览器装置的结构框图。其中,浏览器装置通过浏览器装置所在的客户端上安装的第一传输工具程序与移动终端进行数据通信。如图17所示,该浏览器装置包括:运行浏览器主程序的主程序模块1700、运行页面进程的第二页面进程模块1710,其中,第二页面进程模块1710包括:第二调用模块1711、第二获取模块1712、第二加载模块1713。
主程序模块1700,适于在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;启动页面进程加载一预置页面,根据页面进程模块的通知建立与第一传输工具程序的数据通信通道。
第二调用模块1711,适于通知主程序模块向第一传输工具程序请求移动终端中的存储数据信息和/或设备信息。
第二获取模块1712,适于获取主程序模块传输过来的由第一传输工具程序返回的移动终端中的存储数据信息和/或设备信息。
其中,移动终端中的存储数据信息包含移动终端的应用列表信息;应用列表信息包含多个数据项,每个数据项携带移动终端中一个已安装应用的信息,每个数据项携带移动终端中一个已安装应用的信息包含:已安装应用的名称、版本信息、大小和存储位置信息;移动终端的设备信息包含移动终端的状态信息以及移动终端桌 面截图;移动终端的状态信息包含以下信息的一种或多种:移动终端的名称和型号、移动终端的总存储量信息和剩余存储量信息、以及移动终端的SD卡信息。
第二加载模块1713,适于加载移动终端中的存储数据信息和/或设备信息并将其展示在预置页面中。
可选地,第二调用模块1711进一步适于:调用预置页面的第一JS接口。
主程序模块1700进一步适于:通过执行第一JS接口对应的JS程序建立与第一传输工具程序的数据通信通道。
主程序模块1700进一步适于:根据页面进程模块的通知向第一传输工具程序请求已经连接或绑定过的移动终端的设备信息。
第二加载模块1713,进一步适于将已经连接或绑定过的移动终端的设备信息展示在预置页面中,以便浏览器侧用户选择进行数据传输的移动终端。
第二调用模块1711进一步适于:调用预置页面的第二JS接口。
主程序模块1700进一步适于:通过执行第二JS接口对应的JS程序向第一传输工具程序请求移动终端的状态信息以及移动终端桌面截图;以及在获取到由第一传输工具程序返回的移动终端的状态信息以及移动终端桌面截图之后,回调预置页面的第三JS接口,将移动终端的状态信息以及移动终端桌面截图提供给获取模块。
第二加载模块1713进一步适于:将移动终端的状态信息以及移动终端桌面截图加载展示在预置页面的信息区域。
根据本发明上述实施例提供的浏览器装置,利用预置页面建立浏览器与第一传输工具程序之间的数据通信通道,使得浏览器可以与移动终端之间进行数据传输,浏览器可获取由第一传输工具程序返回的移动终端中的设备信息,并将其加载展示在预置页面中,以供用户查看。利用该浏览器装置,用户在上网浏览网页的过程中,如要查看移动终端中的设备信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷。通过将移动终端的设备信息展示在预置页面的信息区域并对移动终端的设备信息实时更新,可以方便实时地掌握移动终端的设备信息,方便用户对移动终端进行操作,避免了移动终端的存储量不足导致用户进行无用功操作的缺陷。
图18示出了根据本发明又一个实施例的浏览器装置的结构框图。如图18所示,该浏览器装置包括:运行浏览器主程序的主程序模块1800、运行页面进程的页面进程模块1810,其中,第二页面进程模块1810包括:第二调用模块1811、第二获取模块1812、第二加载模块1813、第二比较模块1814、第二发送模块1815。
主程序模块1800,适于在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息的读取请求;启动页面进程加载一预置页面,根据页面进程模块的通知建立与第一传输工具程序的数据通信通道。
第二调用模块1811,适于通知主程序模块向第一传输工具程序请求移动终端中的存储数据信息。
第二获取模块1812,适于获取主程序模块传输过来的由第一传输工具程序返回的移动终端中的存储数据信息。
第二加载模块1813,适于加载移动终端中的存储数据信息并将其展示在预置页面中。
可选地,第二调用模块1811进一步适于:调用预置页面的第四JS接口。
主程序模块1800进一步适于:通过执行第四JS接口对应的JS程序向第一传输工具程序请求移动终端的应用列表信息;以及在获取到由第一传输工具程序反馈的移动终端的应用列表信息之后,回调预置页面的第五JS接口,将移动终端的应用列表信息提供给获取模块。
第二加载模块1813进一步适于:将移动终端的应用列表信息加载展示在预置页面的移动终端管理区域。
第二加载模块1813进一步适于:在预置页面的移动终端管理区域展示每个已安装应用的名称、大小和存储位置信息,并加载展示每个已安装应用的卸载选项;对于根据已安装应用的版本信息确定需要升级的已安装应用,加载展示该已安装应用的升级选项。
第二加载模块1813还适于:加载预置页面,在预置页面的应用市场区域展示从服务端请求回来的应用市场子页面。
第二页面进程模块1810还包括:第二比较模块1814,适于将已安装应用的版本信息与应用市场子页面中相同应用的版本信息进行比较,确定已安装应用是否需要升级。
第二调用模块1811还适于:根据对预置页面中指定应用的安装/升级/卸载选项的触发请求,调用预置页面的与安装/升级/卸载选项对应的第六JS接口,并将指定应用的应用ID传递给第六JS接口。
主程序模块1800还适于:通过执行第六JS接口对应的JS程序向第一传输工具程序发送安装/升级/卸载指定应用的操作请求,以供第一传输工具程序根据应用ID向移动终端发送安装/升级/卸载指定应用的操作命令。
主程序模块1800还适于:获取由第一传输工具程序反馈的移动终端安装/升级/卸载指定应用的成功或失败通知消息,回调预置页面的第七JS接口,将移动终端安装/升级/卸载指定应用的成功或失败通知消息提供给获取模块。
第二加载模块1813进一步适于:根据成功或失败通知消息更新预置页面的展示内容。
主程序模块1800还适于:接收第一传输工具程序在移动终端中的存储数据信息和/或设备信息发生更新时主动通知的更新后的移动终端中的存储数据信息和/或设备信息;以及,将更新后的移动终端中的存储数据信息和/或设备信息提供给获取模块。
第二加载模块1813进一步适于:根据更新后的移动终端中的存储数据信息和/或设备信息重新加载并展示预置页面。
主程序模块1800还适于:接收第一传输工具程序在移动终端与第一传输工具程序断开连接之后发送的连接断开事件消息;以及,将连接断开事件消息提供给获取模块。
第二加载模块1813进一步适于:根据连接断开事件消息重新加载并展示预置页面。
第二页面进程模块1810还包括:第二发送模块1815,适于通知主程序模块通过第一传输工具程序向移动终端设备发送数据,其中,数据包括:浏览器加载网页中的网页元素的URL信息或者下载的文件或者下载的网页元素。其中,数据进一步包括:针对移动终端设备中的指定APP的操作命令以及操作数。
主程序模块1800进一步适于:依据第一传输工具程序返回的移动终端中的存储数据信息中的APP程序信息,自动在浏览器侧加载对应的浏览器插件信息安装APP程序对应的客户端程序。
根据本发明上述实施例提供的浏览器装置,利用预置页面建立浏览器与第一传输工具程序之间的数据通信通道,使得浏览器可以与移动终端之间进行数据传输,浏览器可获取由第一传输工具程序返回的移动终端中的存储数据信息,并将其加载展示在预置页面中,以供用户查看。利用该浏览器装置,用户在上网浏览网页的过程中,如要查看移动终端中的存储数据信息,无需切换程序界面,可直接通过浏览器提供的触发按钮在预置页面中查看,操作便捷。页面进程根据浏览器主程序回调JS接口,可以实时快速展示移动终端中的存储数据信息,方便用户对移动终端中的存储数据信息进行相应地操作。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包 括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图19示出了可以实现根据本发明的浏览器与移动终端之间进行通信的方法的计算设备。该计算设备传统上包括处理器1910和以存储器1920形式的计算机程序产品或者计算机可读介质。存储器1920可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器1920具有用于执行上述方法中的任何方法步骤的程序代码1931的存储空间1930。例如,用于程序代码的存储空间1930可以包括分别用于实现上面的方法中的各种步骤的各个程序代码1931。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图20所述的便携式或者固定存储单元。该存储单元可以具有与图19的计算设备中的存储器1920类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码1931’,即可以由例如诸如1910之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (70)

  1. 一种浏览器与移动终端之间进行通信的方法,所述方法包括:
    在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;
    启动页面进程加载一预置页面,由所述页面进程通知浏览器第一进程建立与所述移动终端的数据通信通道;
    在所述数据通信通道建立之后,所述页面进程通知浏览器第一进程向所述移动终端请求所述移动终端中的存储数据信息和/或设备信息;
    所述页面进程获取经由所述浏览器第一进程传输过来的所述移动终端中的存储数据信息和/或设备信息,并将其加载展示在所述预置页面中。
  2. 根据权利要求1所述的方法,所述浏览器侧预先配置安装有与所述移动终端操作系统关联的ADB组件,所述ADB组件提供可供所述浏览器第一进程调用的用于实现指定功能的多个DLL接口。
  3. 根据权利要求2所述的方法,所述页面进程通知浏览器第一进程建立与所述移动终端的数据通信通道具体为:所述页面进程通知浏览器第一进程调用所述ADB组件提供的第一DLL接口,以供所述移动终端响应所述第一DLL接口的调用请求,建立与浏览器的数据通信通道。
  4. 根据权利要求2所述的方法,在所述数据通信通道建立之后,所述页面进程通知浏览器第一进程向移动终端请求所述移动终端中的设备信息进一步包括:所述页面进程通知浏览器第一进程向移动终端请求已经连接的移动终端的设备信息;
    将所述移动终端中的设备信息加载展示在所述预置页面中进一步包括:所述页面进程将已经连接的移动终端的设备信息展示在所述预置页面中,以便浏览器侧用户选择进行数据传输的移动终端。
  5. 根据权利要求4所述的方法,所述移动终端的设备信息包含移动终端的状态信息以及移动终端桌面截图;
    所述页面进程通知浏览器第一进程向移动终端请求所述移动终端中的设备信息具体包括:所述页面进程通知浏览器第一进程调用所述ADB组件提供的第二DLL接口,以供移动终端响应所述第二DLL接口的调用请求,向浏览器第一进程返回所述移动终端的状态信息以及移动终端桌面截图;
    所述页面进程获取经由所述浏览器第一进程传输过来的所述移动终端中的设备信息,并将其加载展示在所述预置页面中具体包括:所述浏览器第一进程获取到所述移动终端的状态信息以及移动终端桌面截图之后,将所述移动终端的状态信息以及移动终端桌面截图提供给所述页面进程;所述页面进程将所述移动终端的状态信息以及移动终端桌面截图加载展示在所述预置页面的信息区域。
  6. 根据权利要求5所述的方法,所述移动终端的状态信息包含以下信息的一种或多种:所述移动终端的名称和型号、所述移动终端的总存储量信息和剩余存储量信息、以及所述移动终端的SD卡信息。
  7. 根据权利要求2所述的方法,所述移动终端中的存储数据信息包含移动终端的应用列表信息;所述应用列表信息包含多个数据项,每个数据项携带移动终端中一个已安装应用的信息;
    所述页面进程通知浏览器第一进程向所述移动终端请求所述移动终端中的存储数据信息具体包括:所述页面进程通知浏览器第一进程调用所述ADB组件提供的第三DLL接口,以供移动终端响应所述第三DLL接口的调用请求,向浏览器第一进程返回所述移动终端的应用列表信息;
    所述页面进程获取经由所述浏览器第一进程传输过来的所述移动终端中的存储数据信息,并将其加载展示在所述页面中具体包括:所述浏览器第一进程获取到所述移动终端的应用列表信息之后,将所述移动终端的应用列表信息提供给所述页面进程;所述页面进程将所述移动终端的应用列表信息加载展示在所述预置页面的移动终端管理区域。
  8. 根据权利要求7所述的方法,所述每个数据项携带移动终端中一个已安装应用的信息包含:已安装应用的名称、版本信息、大小和存储位置信息;
    所述页面进程将所述移动终端的应用列表信息加载展示在所述预置页面的移动终端管理区域具体包括:在预置页面的移动终端管理区域展示每个已安装应用的名称、大小和存储位置信息,并加载展示每个已安装应用的卸载选项;对于根据已安装应用的版本信息确定需要升级的已安装应用,加载展示该已安装应用的升级选项。
  9. 根据权利要求8所述的方法,所述方法还包括:所述页面进程从服务端请求获取应用市场子页面,将所述应用市场子页面加载展示在所述预置页面的应用市场区域。
  10. 根据权利要求9所述的方法,所述方法还包括:将已安装应用的版本信息与应用市场子页面中相同应用的版本信息进行比较,确定已安装应用是否需要升级。
  11. 根据权利要求2-10任一项所述的方法,在将其加载展示在所述页面中之后,所述方法还包括:
    根据对所述预置页面中指定应用的安装/升级/卸载选项的触发请求,所述页面进程将所述指定应用的应用ID通知给所述浏览器第一进程;
    所述浏览器第一进程调用所述ADB组件提供的与安装/升级/卸载所述指定应用的操作命令对应的第四DLL接口,以供所述移动终端响应所述第四DLL接口的调用请求,在移动终端中安装/升级/卸载所述指定应用。
  12. 根据权利要求11所述的方法,在所述移动终端中安装/升级/卸载所述指定应用之后,所述方法还包括:所述浏览器第一进程获取所述移动终端安装/升级/卸载所述指定应用的成功或失败通知消息,将所述移动终端安装/升级/卸载所述指定应用的成功或失败通知消息提供给所述页面进程,以供所述页面进程根据所述成功或失败通知消息更新所述预置页面的展示内容。
  13. 根据权利要求2所述的方法,在将其加载展示在所述页面中之后,所述方法还包括:
    在所述移动终端中的存储数据信息和/或设备信息发生更新时,所述移动终端将 更新后的所述移动终端中的存储数据信息和/或设备信息主动通知给所述浏览器第一进程;
    所述浏览器第一进程将更新后的所述移动终端中的存储数据信息和/或设备信息提供给所述页面进程,以供所述页面进程根据更新后的所述移动终端中的存储数据信息和/或设备信息重新加载并展示所述预置页面。
  14. 根据权利要求2所述的方法,在将其加载展示在所述页面中之后,所述方法还包括:
    在所述移动终端与浏览器所在的客户端断开连接之后,所述浏览器第一进程接收到连接断开事件消息;
    所述浏览器第一进程将所述连接断开事件消息提供给页面进程,以供所述页面进程根据所述连接断开事件消息重新加载并展示所述预置页面。
  15. 根据权利要求2所述的方法,还包括:在所述数据通信通道建立之后,所述页面进程通知浏览器第一进程向移动终端设备发送数据,其中,所述数据包括:浏览器加载网页中的网页元素的URL信息或者下载的文件或者下载的网页元素。
  16. 根据权利要求15所述的方法,所述数据进一步包括:针对移动终端中的指定APP的操作命令以及操作数。
  17. 根据权利要求2所述的方法,在所述页面进程获取经由所述浏览器第一进程传输过来的所述移动终端中的存储数据信息之后还包括:
    所述页面进程依据所述移动终端中的存储数据信息中的APP程序信息,自动在浏览器侧加载对应的浏览器插件信息安装APP程序对应的客户端程序。
  18. 根据权利要求1-17任一项所述的方法,其中:
    所述浏览器第一进程具体为浏览器主进程;
    或者,所述浏览器第一进程具体为与浏览器主进程独立设置的进程,所述浏览器第一进程通过进程间通信的方式经由浏览器主进程与所述页面进程进行通信。
  19. 一种浏览器与移动终端之间进行通信的方法,其中所述浏览器通过浏览器所在的客户端上安装的第一传输工具程序与所述移动终端进行数据通信,所述方法包括:
    在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;
    启动页面进程加载一预置页面,由所述页面进程通知浏览器主程序建立与第一传输工具程序的数据通信通道;
    在所述数据通信通道建立之后,所述页面进程通知浏览器主程序向第一传输工具程序请求所述移动终端中的存储数据信息和/或设备信息;
    所述页面进程获取经由所述浏览器主程序传输过来的由第一传输工具程序返回的所述移动终端中的存储数据信息和/或设备信息,并将其加载展示在所述预置页面中。
  20. 根据权利要求19所述的方法,所述页面进程通知浏览器主程序建立与第一传输工具程序的数据通信通道具体为:所述页面进程调用所述预置页面的第一JS接 口,所述浏览器主程序通过执行所述第一JS接口对应的JS程序建立与第一传输工具程序的数据通信通道。
  21. 根据权利要求19所述的方法,在所述数据通信通道建立之后,所述页面进程通知浏览器主程序向第一传输工具程序请求所述移动终端中的设备信息进一步包括:所述页面进程通知浏览器主程序向第一传输工具程序请求已经连接或绑定过的移动终端的设备信息;
    将所述移动终端中的设备信息加载展示在所述预置页面中进一步包括:所述页面进程将已经连接或绑定过的移动终端的设备信息展示在所述预置页面中,以便浏览器侧用户选择进行数据传输的移动终端。
  22. 根据权利要求20或21所述的方法,所述移动终端的设备信息包含移动终端的状态信息以及移动终端桌面截图;
    所述页面进程通知浏览器主程序向第一传输工具程序请求所述移动终端中的设备信息具体包括:所述页面进程调用所述预置页面的第二JS接口,所述浏览器主程序通过执行第二JS接口对应的JS程序向第一传输工具程序请求所述移动终端的状态信息以及移动终端桌面截图;
    所述页面进程获取经由所述浏览器主程序传输过来的由第一传输工具程序返回的所述移动终端中的设备信息,并将其加载展示在所述预置页面中具体包括:所述浏览器主程序获取到由第一传输工具程序返回的所述移动终端的状态信息以及移动终端桌面截图之后,回调所述预置页面的第三JS接口,将所述移动终端的状态信息以及移动终端桌面截图提供给所述页面进程;所述页面进程将所述移动终端的状态信息以及移动终端桌面截图加载展示在所述预置页面的信息区域。
  23. 根据权利要求22所述的方法,所述移动终端的状态信息包含以下信息的一种或多种:所述移动终端的名称和型号、所述移动终端的总存储量信息和剩余存储量信息、以及所述移动终端的SD卡信息。
  24. 根据权利要求19所述的方法,所述移动终端中的存储数据信息包含移动终端的应用列表信息;所述应用列表信息包含多个数据项,每个数据项携带移动终端中一个已安装应用的信息;
    所述页面进程通知浏览器主程序向第一传输工具程序请求所述移动终端中的存储数据信息具体包括:所述页面进程调用所述预置页面的第四JS接口,所述浏览器主程序通过执行第四JS接口对应的JS程序向第一传输工具程序请求所述移动终端的应用列表信息;
    所述页面进程获取经由所述浏览器主程序传输过来的由第一传输工具程序返回的所述移动终端中的存储数据信息,并将其加载展示在所述页面中具体包括:所述浏览器主程序获取到由第一传输工具程序反馈的所述移动终端的应用列表信息之后,回调所述预置页面的第五JS接口,将所述移动终端的应用列表信息提供给所述页面进程;所述页面进程将所述移动终端的应用列表信息加载展示在所述预置页面的移动终端管理区域。
  25. 根据权利要求24所述的方法,所述每个数据项携带移动终端中一个已安装 应用的信息包含:已安装应用的名称、版本信息、大小和存储位置信息;
    所述页面进程将所述移动终端的应用列表信息加载展示在所述预置页面的移动终端管理区域具体包括:在预置页面的移动终端管理区域展示每个已安装应用的名称、大小和存储位置信息,并加载展示每个已安装应用的卸载选项;对于根据已安装应用的版本信息确定需要升级的已安装应用,加载展示该已安装应用的升级选项。
  26. 根据权利要求25所述的方法,所述方法还包括:所述页面进程从服务端请求获取应用市场子页面,将所述应用市场子页面加载展示在所述预置页面的应用市场区域。
  27. 根据权利要求26所述的方法,所述方法还包括:将已安装应用的版本信息与应用市场子页面中相同应用的版本信息进行比较,确定已安装应用是否需要升级。
  28. 根据权利要求19-27任一项所述的方法,在将其加载展示在所述页面中之后,所述方法还包括:
    根据对所述预置页面中指定应用的安装/升级/卸载选项的触发请求,所述页面进程调用预置页面的与所述安装/升级/卸载选项对应的第六JS接口,并将所述指定应用的应用ID传递给所述第六JS接口;
    所述浏览器主程序通过执行所述第六JS接口对应的JS程序向第一传输工具程序发送安装/升级/卸载所述指定应用的操作请求,以供所述第一传输工具程序根据所述应用ID向所述移动终端发送安装/升级/卸载所述指定应用的操作命令。
  29. 根据权利要求28所述的方法,在所述移动终端安装/升级/卸载所述指定应用之后,所述方法还包括:所述浏览器主程序获取由第一传输工具程序反馈的所述移动终端安装/升级/卸载所述指定应用的成功或失败通知消息,回调所述预置页面的第七JS接口,将所述移动终端安装/升级/卸载所述指定应用的成功或失败通知消息提供给所述页面进程,以供所述页面进程根据所述成功或失败通知消息更新所述预置页面的展示内容。
  30. 根据权利要求19所述的方法,在将其加载展示在所述页面中之后,所述方法还包括:
    在所述移动终端中的存储数据信息和/或设备信息发生更新时,所述第一传输工具程序将更新后的所述移动终端中的存储数据信息和/或设备信息主动通知给所述浏览器主程序;
    所述浏览器主程序将更新后的所述移动终端中的存储数据信息和/或设备信息提供给所述页面进程,以供所述页面进程根据更新后的所述移动终端中的存储数据信息和/或设备信息重新加载并展示所述预置页面。
  31. 根据权利要求19所述的方法,在将其加载展示在所述页面中之后,所述方法还包括:
    在所述移动终端与所述第一传输工具程序断开连接之后,所述浏览器主程序接收所述第一传输工具程序发送的连接断开事件消息;
    所述浏览器主程序将所述连接断开事件消息提供给页面进程,以供所述页面进程根据所述连接断开事件消息重新加载并展示所述预置页面。
  32. 根据权利要求19所述的方法,还包括:在所述数据通信通道建立之后,所述页面进程通知浏览器主程序通过第一传输工具程序向移动终端设备发送数据,其中,所述数据包括:浏览器加载网页中的网页元素的URL信息或者下载的文件或者下载的网页元素。
  33. 根据权利要求32所述的方法,所述数据进一步包括:针对移动终端中的指定APP的操作命令以及操作数。
  34. 根据权利要求19所述的方法,在所述页面进程获取经由所述浏览器主程序传输过来的由第一传输工具程序返回的所述移动终端中的存储数据信息之后还包括:
    所述页面进程依据第一传输工具程序返回的所述移动终端中的存储数据信息中的APP程序信息,自动在浏览器侧加载对应的浏览器插件信息安装APP程序对应的客户端程序。
  35. 一种浏览器装置,包括:运行浏览器第一进程的第一进程模块和运行页面进程的第一页面进程模块;
    其中,所述第一进程模块适于:在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;启动页面进程加载一预置页面,根据页面进程模块的通知建立与所述移动终端的数据通信通道;
    所述第一页面进程模块包括:
    第一调用模块,适于通知第一进程模块向所述移动终端请求所述移动终端中的存储数据信息和/或设备信息;
    第一获取模块,适于获取所述第一进程模块传输过来的所述移动终端中的存储数据信息和/或设备信息;
    第一加载模块,适于加载所述移动终端中的存储数据信息和/或设备信息并将其展示在所述预置页面中。
  36. 根据权利要求35所述的浏览器装置,所述浏览器侧预先配置安装有与所述移动终端操作系统关联的ADB组件,所述ADB组件提供可供所述第一进程模块调用的用于实现指定功能的多个DLL接口。
  37. 根据权利要求36所述的浏览器装置,所述第一进程模块进一步适于:根据所述页面进程模块的通知调用所述ADB组件提供的第一DLL接口,以供所述移动终端响应所述第一DLL接口的调用请求,建立与浏览器的数据通信通道。
  38. 根据权利要求36所述的浏览器装置,所述第一进程模块进一步适于:
    根据所述页面进程模块的通知向移动终端请求已经连接的移动终端的设备信息;
    所述加载模块,进一步适于将已经连接的移动终端的设备信息展示在所述预置页面中,以便浏览器侧用户选择进行数据传输的移动终端。
  39. 根据权利要求38所述的浏览器装置,所述移动终端的设备信息包含移动终端的状态信息以及移动终端桌面截图;
    所述第一进程模块进一步适于:根据所述页面进程模块的通知调用所述ADB组 件提供的第二DLL接口,以供移动终端响应所述第二DLL接口的调用请求,向第一进程模块返回所述移动终端的状态信息以及移动终端桌面截图;以及在获取到所述移动终端的状态信息以及移动终端桌面截图之后,将所述移动终端的状态信息以及移动终端桌面截图提供给所述获取模块;
    所述第一加载模块进一步适于:将所述移动终端的状态信息以及移动终端桌面截图加载展示在所述预置页面的信息区域。
  40. 根据权利要求39所述的浏览器装置,所述移动终端的状态信息包含以下信息的一种或多种:所述移动终端的名称和型号、所述移动终端的总存储量信息和剩余存储量信息、以及所述移动终端的SD卡信息。
  41. 根据权利要求36所述的浏览器装置,所述移动终端中的存储数据信息包含移动终端的应用列表信息;所述应用列表信息包含多个数据项,每个数据项携带移动终端中一个已安装应用的信息;
    所述第一进程模块进一步适于:根据所述页面进程模块的通知调用所述ADB组件提供的第三DLL接口,以供移动终端响应所述第三DLL接口的调用请求,向第一进程模块返回所述移动终端的应用列表信息;以及在获取到所述移动终端的应用列表信息之后,将所述移动终端的应用列表信息提供给所述获取模块;
    所述第一加载模块进一步适于:将所述移动终端的应用列表信息加载展示在所述预置页面的移动终端管理区域。
  42. 根据权利要求41所述的浏览器装置,所述每个数据项携带移动终端中一个已安装应用的信息包含:已安装应用的名称、版本信息、大小和存储位置信息;
    所述第一加载模块进一步适于:在预置页面的移动终端管理区域展示每个已安装应用的名称、大小和存储位置信息,并加载展示每个已安装应用的卸载选项;对于根据已安装应用的版本信息确定需要升级的已安装应用,加载展示该已安装应用的升级选项。
  43. 根据权利要求42所述的浏览器装置,所述第一加载模块还适于:加载所述预置页面,在所述预置页面的应用市场区域展示从服务端请求回来的应用市场子页面。
  44. 根据权利要求43所述的浏览器装置,所述第一页面进程模块还包括:第一比较模块,适于将已安装应用的版本信息与应用市场子页面中相同应用的版本信息进行比较,确定已安装应用是否需要升级。
  45. 根据权利要求36-44任一项所述的浏览器装置,所述第一页面进程模块还包括:第一通知模块,适于根据对所述预置页面中指定应用的安装/升级/卸载选项的触发请求,将所述指定应用的应用ID通知给所述第一进程模块;
    所述第一进程模块进一步适于:调用所述ADB组件提供的与安装/升级/卸载所述指定应用的操作命令对应的第四DLL接口,以供所述移动终端响应所述第四DLL接口的调用请求,在移动终端中安装/升级/卸载所述指定应用。
  46. 根据权利要求45所述的浏览器装置,所述第一进程模块还适于:获取所述移动终端安装/升级/卸载所述指定应用的成功或失败通知消息,将所述移动终端安 装/升级/卸载所述指定应用的成功或失败通知消息提供给所述获取模块;
    所述第一加载模块进一步适于:根据所述成功或失败通知消息更新所述预置页面的展示内容。
  47. 根据权利要求36所述的浏览器装置,所述第一进程模块还适于:接收在所述移动终端中的存储数据信息和/或设备信息发生更新时主动通知的更新后的所述移动终端中的存储数据信息和/或设备信息;以及,将更新后的所述移动终端中的存储数据信息和/或设备信息提供给所述获取模块;
    所述第一加载模块进一步适于:根据更新后的所述移动终端中的存储数据信息和/或设备信息重新加载并展示所述预置页面。
  48. 根据权利要求36所述的浏览器装置,所述第一进程模块还适于:接收在所述移动终端与浏览器所在的客户端断开连接之后发送的连接断开事件消息;以及,将所述连接断开事件消息提供给所述获取模块;
    所述第一加载模块进一步适于:根据所述连接断开事件消息重新加载并展示所述预置页面。
  49. 根据权利要求36所述的浏览器装置,所述第一页面进程模块还包括:第一发送模块,适于通知第一进程模块向移动终端设备发送数据,其中,所述数据包括:浏览器加载网页中的网页元素的URL信息或者下载的文件或者下载的网页元素。
  50. 根据权利要求49所述的浏览器装置,所述数据进一步包括:针对移动终端设备中的指定APP的操作命令以及操作数。
  51. 根据权利要求36所述的浏览器装置,所述第一进程模块进一步适于:依据所述移动终端中的存储数据信息中的APP程序信息,自动在浏览器侧加载对应的浏览器插件信息安装APP程序对应的客户端程序。
  52. 根据权利要求35-51任一项所述的浏览器装置,其中:
    所述第一进程模块具体为主进程模块;
    或者,所述第一进程模块包括主进程模块和与主进程模块独立设置的第一进程子模块,所述第一进程子模块通过进程间通信的方式经由主进程模块与所述页面进程模块进行通信。
  53. 一种浏览器装置,所述浏览器装置通过浏览器装置所在的客户端上安装的第一传输工具程序与移动终端进行数据通信,所述浏览器装置包括:运行浏览器主程序的主程序模块和运行页面进程的第二页面进程模块;
    其中,所述主程序模块适于:在浏览器侧触发对与该浏览器绑定的一移动终端中的存储数据信息和/或设备信息的读取请求;启动页面进程加载一预置页面,根据页面进程模块的通知建立与第一传输工具程序的数据通信通道;
    所述第二页面进程模块包括:
    第二调用模块,适于通知主程序模块向第一传输工具程序请求所述移动终端中的存储数据信息和/或设备信息;
    第二获取模块,适于获取所述主程序模块传输过来的由第一传输工具程序返回的所述移动终端中的存储数据信息和/或设备信息;
    第二加载模块,适于加载所述移动终端中的存储数据信息和/或设备信息并将其展示在所述预置页面中。
  54. 根据权利要求53所述的浏览器装置,所述第二调用模块进一步适于:调用所述预置页面的第一JS接口;
    所述主程序模块进一步适于:通过执行所述第一JS接口对应的JS程序建立与第一传输工具程序的数据通信通道。
  55. 根据权利要求53所述的浏览器装置,所述主程序模块进一步适于:
    根据所述页面进程模块的通知向第一传输工具程序请求已经连接或绑定过的移动终端的设备信息;
    所述第二加载模块,进一步适于将已经连接或绑定过的移动终端的设备信息展示在所述预置页面中,以便浏览器侧用户选择进行数据传输的移动终端。
  56. 根据权利要求53或55所述的浏览器装置,所述移动终端的设备信息包含移动终端的状态信息以及移动终端桌面截图;
    所述第二调用模块进一步适于:调用所述预置页面的第二JS接口;
    所述主程序模块进一步适于:通过执行第二JS接口对应的JS程序向第一传输工具程序请求所述移动终端的状态信息以及移动终端桌面截图;以及在获取到由第一传输工具程序返回的所述移动终端的状态信息以及移动终端桌面截图之后,回调所述预置页面的第三JS接口,将所述移动终端的状态信息以及移动终端桌面截图提供给所述获取模块;
    所述第二加载模块进一步适于:将所述移动终端的状态信息以及移动终端桌面截图加载展示在所述预置页面的信息区域。
  57. 根据权利要求56所述的浏览器装置,所述移动终端的状态信息包含以下信息的一种或多种:所述移动终端的名称和型号、所述移动终端的总存储量信息和剩余存储量信息、以及所述移动终端的SD卡信息。
  58. 根据权利要求53所述的浏览器装置,所述移动终端中的存储数据信息包含移动终端的应用列表信息;所述应用列表信息包含多个数据项,每个数据项携带移动终端中一个已安装应用的信息;
    所述第二调用模块进一步适于:调用所述预置页面的第四JS接口;
    所述主程序模块进一步适于:通过执行第四JS接口对应的JS程序向第一传输工具程序请求所述移动终端的应用列表信息;以及在获取到由第一传输工具程序反馈的所述移动终端的应用列表信息之后,回调所述预置页面的第五JS接口,将所述移动终端的应用列表信息提供给所述获取模块;
    所述第二加载模块进一步适于:将所述移动终端的应用列表信息加载展示在所述预置页面的移动终端管理区域。
  59. 根据权利要求58所述的浏览器装置,所述每个数据项携带移动终端中一个已安装应用的信息包含:已安装应用的名称、版本信息、大小和存储位置信息;
    所述第二加载模块进一步适于:在预置页面的移动终端管理区域展示每个已安装应用的名称、大小和存储位置信息,并加载展示每个已安装应用的卸载选项;对 于根据已安装应用的版本信息确定需要升级的已安装应用,加载展示该已安装应用的升级选项。
  60. 根据权利要求59所述的浏览器装置,所述第二加载模块还适于:加载所述预置页面,在所述预置页面的应用市场区域展示从服务端请求回来的应用市场子页面。
  61. 根据权利要求60所述的浏览器装置,所述第二页面进程模块还包括:第二比较模块,适于将已安装应用的版本信息与应用市场子页面中相同应用的版本信息进行比较,确定已安装应用是否需要升级。
  62. 根据权利要求53-61任一项所述的浏览器装置,所述第二调用模块还适于:根据对所述预置页面中指定应用的安装/升级/卸载选项的触发请求,调用预置页面的与所述安装/升级/卸载选项对应的第六JS接口,并将所述指定应用的应用ID传递给所述第六JS接口;
    所述主程序模块还适于:通过执行所述第六JS接口对应的JS程序向第一传输工具程序发送安装/升级/卸载所述指定应用的操作请求,以供所述第一传输工具程序根据所述应用ID向所述移动终端发送安装/升级/卸载所述指定应用的操作命令。
  63. 根据权利要求62所述的浏览器装置,所述主程序模块还适于:获取由第一传输工具程序反馈的所述移动终端安装/升级/卸载所述指定应用的成功或失败通知消息,回调所述预置页面的第七JS接口,将所述移动终端安装/升级/卸载所述指定应用的成功或失败通知消息提供给所述获取模块;
    所述第二加载模块进一步适于:根据所述成功或失败通知消息更新所述预置页面的展示内容。
  64. 根据权利要求53所述的浏览器装置,所述主程序模块还适于:接收所述第一传输工具程序在所述移动终端中的存储数据信息和/或设备信息发生更新时主动通知的更新后的所述移动终端中的存储数据信息和/或设备信息;以及,将更新后的所述移动终端中的存储数据信息和/或设备信息提供给所述获取模块;
    所述第二加载模块进一步适于:根据更新后的所述移动终端中的存储数据信息和/或设备信息重新加载并展示所述预置页面。
  65. 根据权利要求53所述的浏览器装置,所述主程序模块还适于:接收所述第一传输工具程序在所述移动终端与所述第一传输工具程序断开连接之后发送的连接断开事件消息;以及,将所述连接断开事件消息提供给所述获取模块;
    所述第二加载模块进一步适于:根据所述连接断开事件消息重新加载并展示所述预置页面。
  66. 根据权利要求53所述的浏览器装置,所述第二页面进程模块还包括:第二发送模块,适于通知主程序模块通过第一传输工具程序向移动终端设备发送数据,其中,所述数据包括:浏览器加载网页中的网页元素的URL信息或者下载的文件或者下载的网页元素。
  67. 根据权利要求66所述的浏览器装置,所述数据进一步包括:针对移动终端设备中的指定APP的操作命令以及操作数。
  68. 根据权利要求53所述的浏览器装置,所述主程序模块进一步适于:依据第一传输工具程序返回的所述移动终端中的存储数据信息中的APP程序信息,自动在浏览器侧加载对应的浏览器插件信息安装APP程序对应的客户端程序。
  69. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-34中的任一个所述的浏览器与移动终端之间进行通信的方法。
  70. 一种计算机可读介质,其中存储了如权利要求69所述的计算机程序。
PCT/CN2015/095804 2014-12-19 2015-11-27 浏览器与移动终端之间进行通信的方法及浏览器装置 WO2016095686A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/537,849 US10193737B2 (en) 2014-12-19 2015-11-27 Method for performing communication between browser and mobile terminal, and browser apparatus

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201410802571.7A CN104394237B (zh) 2014-12-19 2014-12-19 浏览器与移动终端之间进行通信的方法及浏览器装置
CN201410805374.0 2014-12-19
CN201410805374.0A CN104461559B (zh) 2014-12-19 2014-12-19 浏览器与移动终端之间进行通信的方法及浏览器装置
CN201410802571.7 2014-12-19

Publications (1)

Publication Number Publication Date
WO2016095686A1 true WO2016095686A1 (zh) 2016-06-23

Family

ID=56125877

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095804 WO2016095686A1 (zh) 2014-12-19 2015-11-27 浏览器与移动终端之间进行通信的方法及浏览器装置

Country Status (2)

Country Link
US (1) US10193737B2 (zh)
WO (1) WO2016095686A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463499A (zh) * 2017-08-08 2017-12-12 百度在线网络技术(北京)有限公司 Adb远程连接方法、装置、设备及存储介质
CN109684586A (zh) * 2018-11-21 2019-04-26 平安科技(深圳)有限公司 页面优化显示方法、装置、计算机设备及存储介质
JP2019530089A (ja) * 2016-09-19 2019-10-17 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited ウェブページとネイティブアプリケーションの間の通信を実現する方法及び装置並びに電子装置

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554290B (zh) * 2020-11-27 2024-05-24 青岛海信宽带多媒体技术有限公司 一种iptv浏览器容错处理方法、装置及终端

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269396A (zh) * 2013-05-02 2013-08-28 百度在线网络技术(北京)有限公司 一种对移动终端进行管理的方法和系统
CN103678505A (zh) * 2013-11-20 2014-03-26 北京奇虎科技有限公司 一种在浏览器中运行应用程序的方法、装置和浏览器
CN104008096A (zh) * 2013-02-21 2014-08-27 腾讯科技(深圳)有限公司 一种基于浏览器的应用操作方法和装置
CN104394237A (zh) * 2014-12-19 2015-03-04 北京奇虎科技有限公司 浏览器与移动终端之间进行通信的方法及浏览器装置
CN104461559A (zh) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 浏览器与移动终端之间进行通信的方法及浏览器装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8024745B2 (en) * 2002-06-28 2011-09-20 Autodesk, Inc. Communication mechanism between disconnected applications in a web browser
US8601363B2 (en) * 2009-07-20 2013-12-03 Facebook, Inc. Communicating information about a local machine to a browser application
US9436838B2 (en) * 2012-12-20 2016-09-06 Intel Corporation Secure local web application data manager

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104008096A (zh) * 2013-02-21 2014-08-27 腾讯科技(深圳)有限公司 一种基于浏览器的应用操作方法和装置
CN103269396A (zh) * 2013-05-02 2013-08-28 百度在线网络技术(北京)有限公司 一种对移动终端进行管理的方法和系统
CN103678505A (zh) * 2013-11-20 2014-03-26 北京奇虎科技有限公司 一种在浏览器中运行应用程序的方法、装置和浏览器
CN104394237A (zh) * 2014-12-19 2015-03-04 北京奇虎科技有限公司 浏览器与移动终端之间进行通信的方法及浏览器装置
CN104461559A (zh) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 浏览器与移动终端之间进行通信的方法及浏览器装置

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019530089A (ja) * 2016-09-19 2019-10-17 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited ウェブページとネイティブアプリケーションの間の通信を実現する方法及び装置並びに電子装置
EP3518109A4 (en) * 2016-09-19 2020-04-08 Alibaba Group Holding Limited METHOD AND APPARATUS FOR ESTABLISHING COMMUNICATION BETWEEN A WEB PAGE AND A NATIVE APPLICATION AND ELECTRONIC DEVICE
US10783212B2 (en) 2016-09-19 2020-09-22 Alibaba Group Holding Limited Method and apparatus for realizing communication between web page and native application, and electronic device
TWI713770B (zh) * 2016-09-19 2020-12-21 開曼群島商創新先進技術有限公司 實現網路頁面與本體應用通信的方法、裝置和電子設備
CN107463499A (zh) * 2017-08-08 2017-12-12 百度在线网络技术(北京)有限公司 Adb远程连接方法、装置、设备及存储介质
CN107463499B (zh) * 2017-08-08 2020-10-13 百度在线网络技术(北京)有限公司 Adb远程连接方法、装置、设备及存储介质
CN109684586A (zh) * 2018-11-21 2019-04-26 平安科技(深圳)有限公司 页面优化显示方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
US10193737B2 (en) 2019-01-29
US20170359213A1 (en) 2017-12-14

Similar Documents

Publication Publication Date Title
CN110221860B (zh) 一种配置文件处理方法、装置、终端及介质
US10503490B2 (en) Mobile application processing
US20190213019A1 (en) Application program page processing method and device
US9584612B2 (en) Systems and methods for pushing applications
US8370826B2 (en) Automatically managing versioning of mashup widgets
US9519654B2 (en) Method, device, processing center and system for desktop synchronization
US9503520B2 (en) Application synchronization among multiple computing devices
US9367403B2 (en) Terminal and application restoring method
US20160054990A1 (en) Method Of And Terminal For Updating Library File In System Application
US20190034243A1 (en) Using scripts to bootstrap applications with metadata from a template
CN110780930B (zh) 启动Android系统的方法、装置、电子设备及存储介质
WO2015021860A1 (en) Method and apparatus for loading rendering engine
WO2016095686A1 (zh) 浏览器与移动终端之间进行通信的方法及浏览器装置
CN110113391B (zh) 一种客户端上线方法、装置及一种客户端运行方法、装置
US9009737B2 (en) Apparatus and method of terminal for providing file system function
US20130226975A1 (en) Method for file management and mobile device using the same
CN107577472B (zh) 软件安装方法、装置及计算机可读存储介质
KR101907837B1 (ko) 애플리케이션 활성화 프레임워크
CN104461559B (zh) 浏览器与移动终端之间进行通信的方法及浏览器装置
CN105740027A (zh) 应用程序更新方法和装置
CN110968331A (zh) 应用程序运行的方法和装置
CN104394237A (zh) 浏览器与移动终端之间进行通信的方法及浏览器装置
US20110231837A1 (en) Virtual application package reconstitution
CN108268261B (zh) 一种智能终端的ui定制方法、存储介质及智能终端
EP4318213A1 (en) Method and apparatus for controlling android app, and terminal device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15869194

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 15537849

Country of ref document: US

122 Ep: pct application non-entry in european phase

Ref document number: 15869194

Country of ref document: EP

Kind code of ref document: A1