CN114036369A - Method, apparatus, device, medium and product for browser to access application - Google Patents

Method, apparatus, device, medium and product for browser to access application Download PDF

Info

Publication number
CN114036369A
CN114036369A CN202111221707.1A CN202111221707A CN114036369A CN 114036369 A CN114036369 A CN 114036369A CN 202111221707 A CN202111221707 A CN 202111221707A CN 114036369 A CN114036369 A CN 114036369A
Authority
CN
China
Prior art keywords
container
application program
application
parameter
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111221707.1A
Other languages
Chinese (zh)
Other versions
CN114036369B (en
Inventor
梁天刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing Jingling Information System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingling Information System Technology Co Ltd filed Critical Beijing Jingling Information System Technology Co Ltd
Priority to CN202111221707.1A priority Critical patent/CN114036369B/en
Publication of CN114036369A publication Critical patent/CN114036369A/en
Application granted granted Critical
Publication of CN114036369B publication Critical patent/CN114036369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/953Querying, e.g. by the use of web search engines
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Abstract

The invention provides a method for accessing an application by a browser, which is applied to a Linux system, wherein the method enables an Android system in a container to start the application corresponding to a URL type through parameters of the application according to a first command by the browser, a shortcut corresponding to the URL type, a transit application and a container management module. The browser of the Linux system can call and open the application in the Android system in the container.

Description

Method, apparatus, device, medium and product for browser to access application
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, a medium, and a product for a browser to access an application.
Background
In an operating system, when the application is installed, a shortcut of a special URL can be opened in the registration, and the corresponding shortcut can be started by clicking and inputting the special URL in a webpage, namely, the application can be called and opened through a browser.
For example, a mailbox application can be opened by entering in the browser or the browser receiving a user click on a certain mail address, such as mailto: liangtiang @ syberos.
Disclosure of Invention
The invention provides a method, a device, equipment, a medium and a product for accessing an application by a browser, which realize that the browser of a Linux system can call and open the application in an Android system in a container.
In a first aspect, the present invention provides a method for accessing an application by a browser, which is applied to a Linux system, where the Linux system includes at least one container, and an Android system is deployed in the container, and the method includes: responding to the browser to receive address parameters which comprise URL types, and sending the address parameters to shortcuts corresponding to the URL types; responding to the corresponding shortcut to receive the address parameter, starting a transfer application program, determining the parameter of the application program of the Android system in the container corresponding to the address parameter and the identifier of the container by matching the URL type, and sending the address parameter, the parameter of the application program and the identifier of the container to the transfer application program; in response to the transit application receiving the address parameter, the application parameter and the container identifier, sending first data to a container management module, where the first data includes the address parameter, the application parameter, the container identifier and a first command to start the application, and the application parameter is used to characterize an interface of the application; responding to the first data received by the container management module, analyzing the first data, and sending the address parameter, the parameter of the application program and the first command to a container corresponding to the identifier of the container according to the analysis result, so that the Android system in the container starts the application program corresponding to the URL type through the parameter of the application program according to the first command.
Further, before responding to the browser receiving the address parameter, the method further includes: responding to second data sent by an Android system in the container and received by the container management module, analyzing the second data, and creating a shortcut of a URL (Uniform resource locator) type corresponding to the application program in the container according to an analysis result; the second data includes the URL type, parameters of the application, an identification of the container, and a second command to create the shortcut.
In a second aspect, the present invention provides a method for accessing an application by a browser, where the method is applied to an Android system, and the Android system is located in a container environment provided by a Linux system, and the method includes: receiving an address parameter sent by a Linux system, a parameter of an application program in an Android system in the container corresponding to the address parameter, and a first command for starting the application program, wherein the address parameter comprises a URL (uniform resource locator) type; and starting the application program corresponding to the URL type through the parameter of the application program according to the first command, wherein the parameter of the application program represents an interface of the application program.
Further, before the receiving the address parameter sent by the Linux system, the parameter of the application program in the Android system in the container corresponding to the address parameter, and the first command for starting the application program, the method further includes: responding to the newly installed application program, and inquiring a URL list of the application program to obtain the URL type and the parameters of the application program; and sending second data to the Linux system, wherein the second data comprises the URL type, the parameters of the application program, the identifier of the container and second command parameters for creating the shortcut corresponding to the URL type.
In a third aspect, the present invention further provides a device for accessing an application by a browser, where the device is applied to a Linux system, the Linux system includes at least one container, and an Android system is deployed in the container, and the device includes: the browser is used for responding to the received address parameters, the address parameters comprise URL types, and the address parameters are sent to shortcuts corresponding to the URL types; the shortcut is used for receiving the address parameters, starting a transfer application program, determining the parameters of the application program of the Android system in the container corresponding to the address parameters and the identifier of the container by matching the URL type, and sending the address parameters, the parameters of the application program and the identifier of the container to the transfer application program; the transfer application is used for responding to the received address parameters, the parameters of the application program and the identification of the container, and sending first data to a container management module, wherein the first data comprises the address parameters, the parameters of the application program, the identification of the container and a first command for starting the application program, and the parameters of the application program are used for characterizing an interface of the application program; the container management module is connected with and manages the container, and is used for responding to the received first data, analyzing the first data, and sending the address parameter, the parameter of the application program and the first command to the container corresponding to the identifier of the container according to the analysis result, so that the Android system in the container starts the application program corresponding to the URL type through the parameter of the application program according to the first command; the container is used for supporting and operating an Android system.
In a fourth aspect, the present invention further provides a device for accessing an application by a browser, where the device is applied to an Android system, and the Android system is located in a container environment provided by a Linux system, and includes: the receiving module is used for receiving address parameters sent by a Linux system, the parameters of the application programs in the Android system in the container corresponding to the address parameters and a first command for starting the application programs, wherein the address parameters comprise URL types; and starting the application program corresponding to the URL type through the parameter of the application program according to the first command, wherein the parameter of the application program represents an interface of the application program.
In a fifth aspect, the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the program to implement the steps of the method for accessing an application by a browser as described in any one of the above.
In a sixth aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for accessing an application by a browser as described in any one of the above.
In a seventh aspect, the present invention also provides a computer program product, including a computer program, wherein the computer program is configured to, when executed by a processor, implement the steps of the method for accessing an application by a browser as described in any one of the above.
The invention provides a method, a device, equipment, a medium and a product for accessing application by a browser.A Linux system sends address parameters to shortcuts corresponding to URL types by responding to the address parameters received by the browser, wherein the address parameters comprise URL types; responding to the received address parameters of the corresponding shortcut, starting a transfer application program, determining the parameters of the application program of the Android system in the container corresponding to the address parameters and the identifier of the container by matching URL types, and sending the address parameters, the parameters of the application program and the identifier of the container to the transfer application program; responding to the transit application program to receive the address parameter, the application program parameter and the container identifier, and sending first data to the container management module, wherein the first data comprises the address parameter, the application program parameter, the container identifier and a first command for starting the application program, and the application program parameter is used for representing an interface of the application program; responding to the first data received by the container management module, analyzing the first data, and sending an address parameter, an application program parameter and a first command to a container corresponding to the identifier of the container according to the analysis result, so that an Android system in the container starts an application program corresponding to the URL type according to the first command through the application program parameter; and the container is used for supporting and operating the Android system. The method realizes the opening of the application in the container in the Linux system.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram illustrating some embodiments of a method for a browser to access an application, in accordance with the present invention;
FIG. 2 is a schematic flow chart diagram illustrating further embodiments of a method for accessing an application by a browser in accordance with the present invention;
FIG. 3 is a schematic diagram of an application scenario for a method for accessing an application by a browser according to the present invention;
FIG. 4 is a schematic block diagram illustrating some embodiments of an apparatus for accessing an application by a browser, according to the present invention;
FIG. 5 is a schematic diagram of an alternate embodiment of an apparatus for accessing an application by a browser in accordance with the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in accordance with the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments of the present invention may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present invention are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in the present invention are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present invention are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
In the embodiments described below, Container (Container) refers to a Linux kernel-based derived technology, which is a series of processes that are isolated from the rest of the host system. All files needed to run these processes are provided by another operating system image, and the host operating system and the operating systems in the containers share the same operating system kernel.
In a specific implementation manner, the deployment and management of the container can be realized in various manners such as LXC, LXD, Docker, and the like, and the information communication and transfer between the host system and its application, and the system in the container and its application can be realized in various manners of IPC interprocess communication.
In the following embodiments, the Linux system, which is called GNU/Linux operating system in its entirety, is implemented as Ubuntu, Debian, RedHat, and the like. The Linux operating system is not limited to running on a physical machine, and may be an operating system hosted on another operating system, such as WSL in a Windows system.
In the following embodiments, the Android (Android) system, which covers Android OS issued by Google and AOSP and various derivative systems based on AOSP, such as MIUI, EMUI, One UI, etc.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for accessing an application by a browser according to some embodiments of the present invention. As shown in fig. 1, the method comprises the following steps:
step 101, responding to the browser receiving the address parameters, wherein the address parameters comprise URL types, and sending the address parameters to shortcuts corresponding to the URL types.
In some embodiments, the URL is a subset of a URI. It is an abbreviation for Uniform Resource Locator, translated as a "Uniform Resource Locator". In general, URLs are strings of characters describing information resources on the Internet, and are mainly used in various WWW client programs and server programs. The URL can be used for describing various information resources in a uniform format, including files, addresses and directories of servers and the like. URLs are one implementation of the URI concept. In the desktop and the webpage, a certain application can be opened through a special URL address, namely an address parameter. As an example, the address parameter may be "tel: 10086" or "sms: 10010" or "map: 12, 12" or "mailto:10086. cn". The "tel", "sms", "map" and "mailto" are URL types, and also indicate types of applications, for example, the URL types sequentially represent the applications such as telephone, sms, map and mailbox. The address parameters can also comprise other parameters required after the application is opened, and after the mailbox application is opened according to the URL type 'mailto', taking the address parameter 'mailto: 10086. cn' as an example, the mailbox interface of the corresponding user is opened according to the parameter '10086. cn'.
In an embodiment of the application, a shortcut is a kind of a general identification of an application that informs the operating system of the location of the application, the files or links that can be opened, or the type of operation. Specifically, according to the technical scheme of the application, the information of the shortcut is used for connecting the browser and the relay application program, so that the operating system can determine the application capable of responding to the URL through the URL received by the browser and start the application through the subsequent operation of the relay application.
In the embodiment of the application, the address parameter received by the browser may be a URL directly input by the user to an address bar of the browser, or may be a URL that the user clicks in the page content when the browser browses the page, or may be a URL that is sent to the browser by another application.
And step 102, responding to the received address parameters of the corresponding shortcut, starting a transfer application program, determining the parameters of the application program of the Android system in the container corresponding to the address parameters and the identifier of the container by matching the URL type, and sending the address parameters, the parameters of the application program and the identifier of the container to the transfer application program.
In some embodiments, when an application in a container needs to be opened in the Linux system, the transit application may be started by a shortcut, and the transit application may refer to the transit application as shown in fig. 3, determine parameters of the application in the container and an identifier of the container corresponding to the address parameter by matching the URL type, and send the address parameter, the parameters of the application (such as the application shown in fig. 3), and the identifier of the container to the transit application. As an example, the identification of the container may be "container": 1 "which indicates the first container, the parameter of the application may be" com.
Step 103, in response to the transit application receiving the address parameter, the parameter of the application and the identifier of the container, sending first data to the container management module, where the first data includes the address parameter, the parameter of the application, the identifier of the container, and a first command for starting the application, and the parameter of the application is used to characterize an interface of the application.
In some embodiments, the data may be sent to the container management module (e.g., the container management module shown in FIG. 3) by the transit application, or may be sent to the container management module by a shortcut. The data sent by the transit application to the container management module may be in the form of a character string or data conforming to the communication rule between the application and the container management module.
104, responding to the first data received by the container management module, analyzing the first data, and sending an address parameter, an application program parameter and a first command to a container corresponding to the identifier of the container according to the analysis result, so that an Android system in the container starts an application program corresponding to the URL type according to the first command through the application program parameter; and the container is used for supporting and operating the Android system.
As an example, when "mailto:10086. cn" is clicked in the browser of the Linux system, the shortcut entry parameter "mailto:10086. cn" is executed;
the shortcut execution transit application "/usr/bin/url 2 contact-c 1-cmn" com.android. Mail/. Mail "mailto:10086. cn";
the transfer application program sends the parameters to the container management module, and the sent parameters can refer to:
Figure BDA0003312880170000081
Figure BDA0003312880170000091
the container management module parses the parameters and starts the mail application in the container 1.
The method for accessing the application by the browser disclosed by some embodiments of the invention is applied to a Linux system, and the address parameters are sent to shortcuts corresponding to URL types by responding to the address parameters received by the browser, wherein the address parameters comprise URL types; responding to the received address parameters of the corresponding shortcut, starting a transfer application program, determining the parameters of the application program in the container corresponding to the address parameters and the identifier of the container by matching URL types, and sending the address parameters, the parameters of the application program and the identifier of the container to the transfer application program; responding to the transit application program to receive the address parameter, the application program parameter and the container identifier, and sending first data to the container management module, wherein the first data comprises the address parameter, the application program parameter, the container identifier and a first command for starting the application program in the container, and the application program parameter is used for representing an interface of the application program; responding to the first data received by the container management module, analyzing the first data, and sending an address parameter, an application program parameter and a first command to the container corresponding to the identifier of the container according to the analysis result, so that the Android system in the container starts the application program corresponding to the URL type according to the first command through the application program parameter. The method realizes the opening of the application in the container in the Linux system.
In some optional implementations, before the browser receives the address parameter, the method further includes: responding to second data sent by an Android system in the container received by the container management module, analyzing the second data, and creating a shortcut of a URL (uniform resource locator) type of a corresponding application program in the container according to an analysis result; the second data includes a URL type, parameters of the application, an identification of the container, and a second command to create a shortcut.
In some embodiments, by way of example, the URL type may be "mailto", the parameters of the application may be represented as "cmn": "com.android. Mail/. Mail", the identification of the container may be represented as "container": 1", and the second command parameter to create the shortcut to which the URL type corresponds may be represented as" cmd ": create _ URL _ handle". As an example, the container management module parses the parameters if the cmd is "create _ url _ handler"
The method comprises the following steps of establishing a shortcut of a Linux transfer program in a Linux system, wherein the shortcut parameters are as follows:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/usr/bin/url2contain-c 1-cmn"com.android.mail/.Mail"%u
name ═ mail #1
Categories=Application;Network;
MimeType=x-scheme-handler/mailto
It can be seen that the parameters of the shortcut include the URL type, the parameters of the application and the identification of the container.
Referring to fig. 2, fig. 2 is a flow diagram of further embodiments of a method for a browser to access an application, according to the present invention. As shown in fig. 2, the method for accessing an application by a browser includes the following steps:
step 201, receiving an address parameter sent by a Linux system, a parameter of an application program in an Android system in a container corresponding to the address parameter, and a first command for starting the application program, wherein the address parameter includes a URL type.
In some embodiments, the address parameter sent by the receiving Linux system may be "mailto 10086. cn", the parameter of the application in the container may be "cmn": com.android. Mail/. Mail ", and the first command may be" cmd ": open _ app _ by _ url".
Step 202, according to the first command, starting an application program corresponding to the URL type through a parameter of the application program, where the parameter of the application program represents an interface of the application program.
In some embodiments, also taking the above as an example, the first command may open the application program of the mailbox corresponding to the URL type "mailto" through the parameter "cmn" of the application program in the container, "com.
The method for accessing the application by the browser disclosed by the embodiments of the invention is applied to an Android system, and comprises the steps of receiving an address parameter sent by a Linux system, a parameter of an application program in a container where the Android system is located corresponding to the address parameter, and a first command for starting the application program in the container, wherein the address parameter comprises a URL (uniform resource locator) type; and starting the application program corresponding to the URL type through the parameter of the application program according to the first command, wherein the parameter of the application program represents an interface of the application program. The Android system application in the container is opened in the Linux system.
In some optional implementation manners, before receiving the address parameter sent by the Linux system, the parameter of the application program in the Android system in the container corresponding to the address parameter, and the first command for starting the application program, the method further includes: responding to the newly installed application program, and inquiring a URL list of the application program to obtain a URL type and parameters of the application program; and sending second data to the Linux system, wherein the second data comprises the URL type, the parameters of the application program, the identifier of the container and second command parameters for creating the shortcut corresponding to the URL type.
In some embodiments, the listening module shown in fig. 3 may listen to whether a new application is installed in the container. When a newly installed application program exists, a URL list of the application program can be inquired, the URL list is in a folder of the application program, and the URL type and the parameters of the application program are obtained through inquiry. As an example, as shown in fig. 3, a newly installed application is monitored in the container 1, a URL list is queried, and a parameter is sent to the container management module, where the parameter may be:
Figure BDA0003312880170000111
Figure BDA0003312880170000121
wherein "schema": mailto "indicates that the URL type is" mailto "," cmn ": com. android. Mail/. Mail" indicates a parameter of the application, and "name": Mail "indicates a name of the application, and" cmd ": create _ URL _ handle" indicates a command to create a shortcut, and "container": 1 "indicates the container 1.
Referring to fig. 4, fig. 4 is a schematic structural diagram of some embodiments of a device for accessing an application by a browser according to the present invention, which is applied to a Linux system, and as an implementation of the methods shown in the above figures, the present invention further provides some embodiments of a device for accessing an application by a browser, which correspond to the embodiments of the methods shown in fig. 1, and which can be applied to various electronic devices.
As shown in fig. 4, the browser application accessing device 400 of some embodiments includes a browser 401, a shortcut 402, a transit application 403, and a container management module 404: the browser 401 is configured to respond to receiving the address parameters, where the address parameters include URL types, and send the address parameters to shortcuts corresponding to the URL types; the shortcut 402 is used for receiving the address parameters, starting a transfer application program, determining the parameters of the Android system application program in the container corresponding to the address parameters and the identifier of the container by matching the URL type, and sending the address parameters, the parameters of the application program and the identifier of the container to the transfer application program; the transit application 403 is configured to send, in response to receiving the address parameter, the parameter of the application program, and the identifier of the container, first data to the container management module, where the first data includes the address parameter, the parameter of the application program, the identifier of the container, and a first command for starting the application program, and the parameter of the application program is used to characterize an interface of the application program; the container management module 404 is connected with and manages the container, and is configured to parse the first data in response to receiving the first data, and send an address parameter, an application parameter, and a first command to the container corresponding to the identifier of the container according to a parsing result, so that the Android system in the container starts the application corresponding to the URL type according to the first command through the application parameter; and the container is used for supporting and operating the Android system.
In an optional implementation of some embodiments, the apparatus further comprises: the container management module 404 is further configured to receive second data sent by the Android system in the container, analyze the second data, and create a shortcut of a URL type of a corresponding application in the container according to an analysis result; the second data includes a URL type, parameters of the application, an identification of the container, and a second command to create a shortcut.
It is understood that the modules recited in the apparatus 400 correspond to the steps in the method described with reference to fig. 1. Thus, the operations, features and advantages of the method described above are also applicable to the apparatus 400 and the modules and units included therein, and are not described herein again.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another embodiment of a device for accessing an application by a browser according to the present invention, which is applied to an Android system, and as an implementation of the methods shown in the above diagrams, the present invention further provides another embodiment of a device for accessing an application by a browser, where the embodiments of the devices correspond to the embodiments of the methods shown in fig. 2, and the device may be applied to various electronic devices.
As shown in fig. 5, the apparatus 500 for accessing an application by a browser of some embodiments includes a receiving module 501: the receiving module 501 is configured to receive an address parameter sent by a Linux system, a parameter of an application program in an Android system in a container corresponding to the address parameter, and a first command for starting the application program, where the address parameter includes a URL type; and starting the application program corresponding to the URL type through the parameter of the application program according to the first command, wherein the parameter of the application program represents an interface of the application program.
In an optional implementation of some embodiments, the apparatus further comprises: the query module is used for responding to the newly installed application program and querying a URL list of the application program to obtain a URL type and parameters of the application program; and the sending module is used for sending second data to the Linux system, wherein the second data comprises the URL type, the parameters of the application program, the identifier of the container and second command parameters for creating shortcuts corresponding to the URL type.
It is to be understood that the modules recited in the apparatus 500 correspond to the steps in the method described with reference to fig. 2. Thus, the operations, features and advantages of the method described above are also applicable to the apparatus 500 and the modules and units included therein, and are not described herein again.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor)610, a communication Interface (Communications Interface)620, a memory (memory)630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call logic instructions in the memory 630 to execute a method for accessing an application by a browser, the method being applied to a Linux system, the Linux system comprising at least one container, the Android system being deployed in the container, the method comprising: responding to the browser to receive the address parameters, wherein the address parameters comprise URL types, and sending the address parameters to shortcuts corresponding to the URL types; responding to the received address parameters of the corresponding shortcut, starting a transfer application program, determining the parameters of the application program of the Android system in the container corresponding to the address parameters and the identifier of the container by matching URL types, and sending the address parameters, the parameters of the application program and the identifier of the container to the transfer application program; responding to the transit application program to receive the address parameter, the application program parameter and the container identifier, and sending first data to the container management module, wherein the first data comprises the address parameter, the application program parameter, the container identifier and a first command for starting the application program, and the application program parameter is used for representing an interface of the application program; responding to the first data received by the container management module, analyzing the first data, and sending an address parameter, an application program parameter and a first command to a container corresponding to the identifier of the container according to the analysis result, so that an Android system in the container starts an application program corresponding to the URL type according to the first command through the application program parameter; and the container is used for supporting and operating the Android system.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer being capable of executing the method for accessing an application by a browser provided by the above methods, the method being applied to a Linux system, the Linux system including at least one container, the Android system being deployed in the container, the method including: responding to the browser to receive the address parameters, wherein the address parameters comprise URL types, and sending the address parameters to shortcuts corresponding to the URL types; responding to the received address parameters of the corresponding shortcut, starting a transfer application program, determining the parameters of the application program of the Android system in the container corresponding to the address parameters and the identifier of the container by matching URL types, and sending the address parameters, the parameters of the application program and the identifier of the container to the transfer application program; responding to the transit application program to receive the address parameter, the application program parameter and the container identifier, and sending first data to the container management module, wherein the first data comprises the address parameter, the application program parameter, the container identifier and a first command for starting the application program, and the application program parameter is used for representing an interface of the application program; responding to the first data received by the container management module, analyzing the first data, and sending an address parameter, an application program parameter and a first command to a container corresponding to the identifier of the container according to the analysis result, so that an Android system in the container starts an application program corresponding to the URL type according to the first command through the application program parameter; and the container is used for supporting and operating the Android system.
In yet another aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the methods for accessing an application by a browser provided in the foregoing, the methods being applied to a Linux system, the Linux system including at least one container, the Android system being deployed in the container, the method including: responding to the browser to receive the address parameters, wherein the address parameters comprise URL types, and sending the address parameters to shortcuts corresponding to the URL types; responding to the received address parameters of the corresponding shortcut, starting a transfer application program, determining the parameters of the application program of the Android system in the container corresponding to the address parameters and the identifier of the container by matching URL types, and sending the address parameters, the parameters of the application program and the identifier of the container to the transfer application program; responding to the transit application program to receive the address parameter, the application program parameter and the container identifier, and sending first data to the container management module, wherein the first data comprises the address parameter, the application program parameter, the container identifier and a first command for starting the application program, and the application program parameter is used for representing an interface of the application program; responding to the first data received by the container management module, analyzing the first data, and sending an address parameter, an application program parameter and a first command to a container corresponding to the identifier of the container according to the analysis result, so that an Android system in the container starts an application program corresponding to the URL type according to the first command through the application program parameter; and the container is used for supporting and operating the Android system.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the various embodiments or some parts of the above-described methods of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for accessing an application by a browser is applied to a Linux system, wherein the Linux system comprises at least one container, and an Android system is deployed in the container, and the method comprises the following steps:
responding to the browser to receive address parameters which comprise URL types, and sending the address parameters to shortcuts corresponding to the URL types;
responding to the corresponding shortcut to receive the address parameter, starting a transfer application program, determining the parameter of the application program of the Android system in the container corresponding to the address parameter and the identifier of the container by matching the URL type, and sending the address parameter, the parameter of the application program and the identifier of the container to the transfer application program;
in response to the transit application receiving the address parameter, the application parameter and the container identifier, sending first data to a container management module, where the first data includes the address parameter, the application parameter, the container identifier and a first command to start the application, and the application parameter is used to characterize an interface of the application;
responding to the first data received by the container management module, analyzing the first data, and sending the address parameter, the parameter of the application program and the first command to a container corresponding to the identifier of the container according to the analysis result, so that an Android system in the container starts the application program corresponding to the URL type through the parameter of the application program according to the first command; the container is used for supporting and operating an Android system.
2. The method for accessing an application by a browser according to claim 1, wherein before the response to the browser receiving the address parameter, the method further comprises:
responding to second data sent by an Android system in the container and received by the container management module, analyzing the second data, and creating a shortcut of a URL (Uniform resource locator) type corresponding to the application program in the container according to an analysis result; the second data includes the URL type, parameters of the application, an identification of the container, and a second command to create the shortcut.
3. A method for accessing an application by a browser is applied to an Android system, wherein the Android system is located in a container environment provided by a Linux system, and comprises the following steps:
receiving an address parameter sent by a Linux system, a parameter of an application program in an Android system in the container corresponding to the address parameter, and a first command for starting the application program, wherein the address parameter comprises a URL (uniform resource locator) type;
and starting the application program corresponding to the URL type through the parameter of the application program according to the first command, wherein the parameter of the application program represents an interface of the application program.
4. The method for accessing the application by the browser according to claim 3, wherein before receiving the address parameter sent by the Linux system, the parameter of the application program of the Android system in the container corresponding to the address parameter, and the first command for starting the application program, the method further comprises:
responding to the newly installed application program, and inquiring a URL list of the application program to obtain the URL type and the parameters of the application program;
and sending second data to the Linux system, wherein the second data comprises the URL type, the parameters of the application program, the identifier of the container and second command parameters for creating the shortcut corresponding to the URL type.
5. An apparatus for accessing an application by a browser is applied to a Linux system, wherein the Linux system comprises at least one container, and an Android system is deployed in the container, and the apparatus comprises:
the browser is used for responding to the received address parameters, the address parameters comprise URL types, and the address parameters are sent to shortcuts corresponding to the URL types;
the shortcut is used for receiving the address parameters, starting a transfer application program, determining the parameters of the application program of the Android system in the container corresponding to the address parameters and the identifier of the container by matching the URL type, and sending the address parameters, the parameters of the application program and the identifier of the container to the transfer application program;
the transfer application is used for responding to the received address parameters, the parameters of the application program and the identification of the container, and sending first data to a container management module, wherein the first data comprises the address parameters, the parameters of the application program, the identification of the container and a first command for starting the application program, and the parameters of the application program are used for characterizing an interface of the application program;
the container management module is connected with and manages the container, and is used for responding to the received first data, analyzing the first data, and sending the address parameter, the parameter of the application program and the first command to the container corresponding to the identifier of the container according to the analysis result, so that the Android system in the container starts the application program corresponding to the URL type through the parameter of the application program according to the first command; the container is used for supporting and operating an Android system.
6. The apparatus for accessing an application by a browser according to claim 5, wherein said apparatus further comprises:
the container management module is further configured to receive second data sent by an Android system in the container, analyze the second data, and create a shortcut corresponding to the URL type of the application program in the container according to an analysis result; the second data includes the URL type, parameters of the application, an identification of the container, and a second command to create the shortcut.
7. The device for accessing the application by the browser is applied to an Android system, wherein the Android system is located in a container environment provided by a Linux system, and comprises the following steps:
the receiving module is used for receiving address parameters sent by a Linux system, the parameters of the application programs in the Android system in the container corresponding to the address parameters and a first command for starting the application programs, wherein the address parameters comprise URL types; and starting the application program corresponding to the URL type through the parameter of the application program according to the first command, wherein the parameter of the application program represents an interface of the application program.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method for a browser to access an application according to any of claims 1 to 4 are implemented when the program is executed by the processor.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the method for a browser to access an application according to any one of claims 1 to 4.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the method for a browser to access an application according to any one of claims 1 to 4.
CN202111221707.1A 2021-10-20 2021-10-20 Method, device, equipment, medium and product for accessing application by browser Active CN114036369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111221707.1A CN114036369B (en) 2021-10-20 2021-10-20 Method, device, equipment, medium and product for accessing application by browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111221707.1A CN114036369B (en) 2021-10-20 2021-10-20 Method, device, equipment, medium and product for accessing application by browser

Publications (2)

Publication Number Publication Date
CN114036369A true CN114036369A (en) 2022-02-11
CN114036369B CN114036369B (en) 2024-04-30

Family

ID=80135266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111221707.1A Active CN114036369B (en) 2021-10-20 2021-10-20 Method, device, equipment, medium and product for accessing application by browser

Country Status (1)

Country Link
CN (1) CN114036369B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100319008A1 (en) * 2009-06-11 2010-12-16 Insyde Software Corporation Parallel processing method for dual operating system
KR20120053309A (en) * 2010-11-17 2012-05-25 (주)쉬프트웍스 Method of driving vaccine program of web browser in cell phone having android operating system
US20140053064A1 (en) * 2012-08-16 2014-02-20 Qualcomm Incorporated Predicting the usage of document resources
CN103678505A (en) * 2013-11-20 2014-03-26 北京奇虎科技有限公司 Method and device for running application program in browser and browser
US20140101289A1 (en) * 2012-10-09 2014-04-10 Agile Fusion Corporation Methods and systems for selecting device applications
CN103780959A (en) * 2012-10-18 2014-05-07 美国博通公司 Integration of untrusted applications and frameworks with a secure operating system environment
CN104854561A (en) * 2012-10-16 2015-08-19 思杰系统有限公司 Application wrapping for application management framework
CN105204913A (en) * 2015-10-20 2015-12-30 福建升腾资讯有限公司 Method and system for running Linux application on Android operating system and system
CN105491021A (en) * 2015-11-24 2016-04-13 华东师范大学 Android cloud application server and Android cloud application server system
CN106095530A (en) * 2016-06-08 2016-11-09 电子科技大学 The container of a kind of many android system automatically creates and startup method
CN108139922A (en) * 2015-09-14 2018-06-08 阿普克斯有限公司 Operation application on the computing device
CN109074274A (en) * 2016-05-23 2018-12-21 思杰系统有限公司 Virtual browser is integrated
US20190102566A1 (en) * 2017-09-29 2019-04-04 Foundation Of Soongsil University-Industry Cooperation Linux based android container platform, device equipped with the same and method for apply security system in linux based android container environment
CN110808897A (en) * 2019-11-06 2020-02-18 深信服科技股份有限公司 Proxy access method, user equipment, storage medium, device and system
CN112363632A (en) * 2020-11-03 2021-02-12 北京麟卓信息科技有限公司 Android application input method and device under Linux platform
US10922090B1 (en) * 2017-10-06 2021-02-16 EMC IP Holding Company LLC Methods and systems for executing a software application using a container
CN112612536A (en) * 2020-12-15 2021-04-06 麒麟软件有限公司 Method and device for controlling camera shooting based on Android application program in Linux system
CN113157362A (en) * 2021-04-27 2021-07-23 麒麟软件有限公司 Android multi-window display method applied to Linux

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100319008A1 (en) * 2009-06-11 2010-12-16 Insyde Software Corporation Parallel processing method for dual operating system
KR20120053309A (en) * 2010-11-17 2012-05-25 (주)쉬프트웍스 Method of driving vaccine program of web browser in cell phone having android operating system
US20140053064A1 (en) * 2012-08-16 2014-02-20 Qualcomm Incorporated Predicting the usage of document resources
US20140101289A1 (en) * 2012-10-09 2014-04-10 Agile Fusion Corporation Methods and systems for selecting device applications
CN104854561A (en) * 2012-10-16 2015-08-19 思杰系统有限公司 Application wrapping for application management framework
CN103780959A (en) * 2012-10-18 2014-05-07 美国博通公司 Integration of untrusted applications and frameworks with a secure operating system environment
CN103678505A (en) * 2013-11-20 2014-03-26 北京奇虎科技有限公司 Method and device for running application program in browser and browser
CN108139922A (en) * 2015-09-14 2018-06-08 阿普克斯有限公司 Operation application on the computing device
CN105204913A (en) * 2015-10-20 2015-12-30 福建升腾资讯有限公司 Method and system for running Linux application on Android operating system and system
CN105491021A (en) * 2015-11-24 2016-04-13 华东师范大学 Android cloud application server and Android cloud application server system
CN109074274A (en) * 2016-05-23 2018-12-21 思杰系统有限公司 Virtual browser is integrated
CN106095530A (en) * 2016-06-08 2016-11-09 电子科技大学 The container of a kind of many android system automatically creates and startup method
US20190102566A1 (en) * 2017-09-29 2019-04-04 Foundation Of Soongsil University-Industry Cooperation Linux based android container platform, device equipped with the same and method for apply security system in linux based android container environment
US10922090B1 (en) * 2017-10-06 2021-02-16 EMC IP Holding Company LLC Methods and systems for executing a software application using a container
CN110808897A (en) * 2019-11-06 2020-02-18 深信服科技股份有限公司 Proxy access method, user equipment, storage medium, device and system
CN112363632A (en) * 2020-11-03 2021-02-12 北京麟卓信息科技有限公司 Android application input method and device under Linux platform
CN112612536A (en) * 2020-12-15 2021-04-06 麒麟软件有限公司 Method and device for controlling camera shooting based on Android application program in Linux system
CN113157362A (en) * 2021-04-27 2021-07-23 麒麟软件有限公司 Android multi-window display method applied to Linux

Also Published As

Publication number Publication date
CN114036369B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
CN111314459B (en) Service request method, device, electronic equipment and storage medium
CN109683998B (en) Internationalization realization method, device and system
US9444899B2 (en) Use of internet information services logging to collect user information in an asynchronous manner
CN104079673B (en) A kind of methods, devices and systems for preventing DNS from kidnapping in application downloading
CN107809383B (en) MVC-based path mapping method and device
JP6414855B2 (en) Page operation processing method and apparatus, and terminal
CN107291759B (en) Method and device for processing browser page resources
CN109902073B (en) Log processing method and device, computer equipment and computer readable storage medium
CN103491543A (en) Method for detecting malicious websites through wireless terminal, and wireless terminal
US20120185529A1 (en) Application server management system, application server management method, management apparatus, application server and computer program
CN103873918A (en) Picture processing method, device and terminal
US20130290898A1 (en) Method for presenting prompt message, terminal and server
CN111563015B (en) Data monitoring method and device, computer readable medium and terminal equipment
CN103986731A (en) Method and device for detecting phishing web pages through picture matching
CN106790593B (en) Page processing method and device
CN108667768B (en) Network application fingerprint identification method and device
JP5535184B2 (en) Browser execution script conversion system and browser execution script conversion program
CN114036369B (en) Method, device, equipment, medium and product for accessing application by browser
JP2013229021A (en) Mobile broadband device, and mobile broadband service processing method for mobile broadband device
CN111209325A (en) Service system interface identification method, device and storage medium
US20220084048A1 (en) Server apparatus, method of controlling server apparatus, computer-readable medium, genuine product determining system, and method of controlling genuine product determining system
CN106411891B (en) File processing method and device, server and equipment
CN104793957A (en) Method and device for detecting website existing in server and device
US10044728B1 (en) Endpoint segregation to prevent scripting attacks
CN114157485A (en) Resource access method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220407

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address before: 2005, floor 2, No. 39, West Street, Haidian District, Beijing 100082

Applicant before: Beijing jingling Information System Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant