CN114035863A - Method, device and equipment for operating android application in Linux system - Google Patents

Method, device and equipment for operating android application in Linux system Download PDF

Info

Publication number
CN114035863A
CN114035863A CN202111335023.4A CN202111335023A CN114035863A CN 114035863 A CN114035863 A CN 114035863A CN 202111335023 A CN202111335023 A CN 202111335023A CN 114035863 A CN114035863 A CN 114035863A
Authority
CN
China
Prior art keywords
android
android application
request
information
linux
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111335023.4A
Other languages
Chinese (zh)
Inventor
王锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 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 CN202111335023.4A priority Critical patent/CN114035863A/en
Publication of CN114035863A publication Critical patent/CN114035863A/en
Priority to PCT/CN2022/108670 priority patent/WO2023082716A1/en
Pending legal-status Critical Current

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
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • 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/4401Bootstrapping
    • G06F9/4406Loading of operating system

Abstract

The disclosure provides a method, a device and equipment for operating android application in a Linux system, and relates to the technical field of computers. The method comprises the following steps: detecting a request for operating an android application in a Linux system, wherein android system services are started in the Linux system; acquiring the file packet information of the android application according to the request; and sending the file packet information to the android system service, and triggering the android system service to execute the operation aiming at the android application according to the file packet information. According to the technical scheme, Android application can be operated in the Linux system without the Linux and Android dual-system synchronous operation, cross-system data interaction is not needed, the memory consumption of the Linux system is saved, the operation performance is improved, and the efficiency of operating the Android application is improved.

Description

Method, device and equipment for operating android application in Linux system
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the field of Linux and Android compatibility technologies.
Background
At present, when an Android APK (Application Package) is installed and uninstalled in a Linux system, a Linux and Android dual-system synchronous operation mode is generally adopted, and the installation and uninstallation of the Android Application Package can be completed only by switching from the Linux system to the Android system.
Because the above scheme involves data interaction across systems, the interaction is not only complex, but also has a certain influence on the memory consumption and the running performance of the system, resulting in the reduction of the installation and uninstallation efficiency.
Disclosure of Invention
The present disclosure provides a method, an apparatus, an electronic device, a storage medium, and a computer program product for operating an android application in a Linux system.
According to an aspect of the present disclosure, there is provided a method for operating an android application in a Linux system, comprising:
detecting a request for operating an android application in a Linux system, wherein android system services are started in the Linux system;
acquiring the file packet information of the android application according to the request;
and sending the file packet information to the android system service, and triggering the android system service to execute the operation aiming at the android application according to the file packet information.
According to another aspect of the present disclosure, there is provided an apparatus for operating an android application in a Linux system, including:
the android application operating system comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting a request for operating the android application in a Linux system, and the Linux system starts android system service;
the obtaining module is used for obtaining the file package information of the android application according to the request;
and the triggering module is used for sending the file packet information to the android system service and triggering the android system service to execute operation aiming at the android application according to the file packet information.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method in any embodiment of the disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform a method in any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method in any of the embodiments of the present disclosure.
According to the technical scheme of the embodiment of the disclosure, the Android system service is started in the Linux system, the file packet information of the Android application is acquired and sent to the Android system service when the request for operating the Android application is detected, the Android application is triggered to execute the operation aiming at the Android application according to the file packet information, and the Android application can be operated in the Linux system without the need of synchronous operation of the Linux system and the Android system, such as installation or unloading. Because cross-system data interaction is not needed, the memory consumption of the Linux system is saved, the running performance is improved, and the efficiency of operating android applications is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram of a method of operating an android application in a Linux system according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a method of operating an android application in a Linux system according to an embodiment of the present disclosure;
FIG. 3a is a schematic diagram of a prior art dual system framework according to an embodiment of the present disclosure;
FIG. 3b is a schematic diagram of a Linux system framework including an android container, according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a file structure in a Linux system according to an embodiment of the present disclosure;
FIG. 5 is a schematic flow diagram for installing an application in a Linux system according to an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart illustrating the unloading of an application in a Linux system according to an embodiment of the present disclosure;
FIG. 7 is a block diagram of an apparatus for operating an android application in a Linux system according to an embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device used to implement the method of operating an android application in a Linux system of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The technical scheme of the embodiment of the disclosure is applied to the Linux system, the Android system runs in the host Linux system in a container mode, and a user can directly execute various operations on Android applications in the Linux system, including but not limited to: installation or uninstallation, etc. By starting the Android system service in the Linux system and sending the file packet information of the Android application to the Android system service when a request for operating the Android application exists, the Android application is triggered to execute the operation aiming at the Android application, cross-system data interaction of Linux and Android is avoided, memory consumption of the Linux system is saved, running performance is improved, and efficiency for operating the Android application is improved.
Fig. 1 is a schematic diagram of a method for operating an android application in a Linux system according to an embodiment of the present disclosure. As shown in fig. 1, the method includes:
s101: detecting a request for operating the android application in a Linux system, wherein the Linux system has started android system service;
s102: acquiring the information of the file packet of the android application according to the request;
s103: and sending the file packet information to an android system service, and triggering the android system service to execute the operation aiming at the android application according to the file packet information.
In the embodiment of the present disclosure, the android system Service refers to one Service of four major components of the android system. The Android component is an Android component which is specially used for processing long-time tasks in the background, does not provide interface presentation, and is a solution for realizing background running of programs in the Android. It is well suited to perform tasks that do not require interaction with the user and that also require long runs. The service is operated independently of any user interface, and can still keep normal operation even if the program is switched to the background or the user opens another application program.
In one embodiment, the step S103 may include:
and sending the file package information to a package management service PKMS in the android system service, and triggering the PKMS to execute the operation aiming at the android application according to the file package information.
In the embodiment of the present disclosure, a PKMS (Package management Service) is one of core services in an Android system, and manages all tasks related to Package, such as application installation, application uninstallation, or application information query.
In one embodiment, sending the package of files information to the android system service includes:
and sending the information of the file package to android system service through interprocess communication.
In one embodiment, the step S102 may include:
and if the request is to install the android application, acquiring the path information of the installation file package of the android application according to the request.
In one embodiment, the step S102 may include:
and if the request is to unload the android application, acquiring the path information of the unloaded file packet of the android application according to the request.
In one embodiment, the method may further include:
an android container is started in a Linux system in advance, and android system services are started in the android container and comprise a package management service (PKMS).
In an embodiment, the file package of the android application has an access right in a storage directory in a Linux system, and the Linux system and the android system service.
According to the method provided by the embodiment of the disclosure, Android applications can be operated in the Linux system without the need of synchronous operation of the Linux system and the Android system, such as installation or uninstallation. Because cross-system data interaction is not needed, the use complexity is reduced, the memory consumption of the Linux system is saved, the running performance is improved, the running speed is accelerated, and the efficiency of operating android applications is improved.
Fig. 2 is a schematic diagram of a method for operating an android application in a Linux system according to an embodiment of the present disclosure. As shown in fig. 2, the method includes:
s201: starting an android container in a Linux system in advance, and starting android system service in the android container, wherein the android system service comprises PKMS;
the Android system related files are stored in a partition of the Linux system in a container mode, and are mounted to/var/lib/lxc/Android of the Linux file system.
Fig. 3a is a schematic diagram of a prior art dual system framework according to an embodiment of the present disclosure. As shown in fig. 3a, in the prior art, a Linux system and an Android system operate simultaneously in one device, the Linux system and the Android system perform dual-system communication, and communication can be realized only by data interaction across systems, which is high in complexity and slow in operation speed, so that the system operation performance is reduced, and the operation efficiency of Android application is not high.
Fig. 3b is a schematic diagram of a Linux system framework including an android container according to an embodiment of the present disclosure. As shown in fig. 3b, in an embodiment, Android can be started in a container mode in a Linux system, and this mode has the advantage that the Linux and Android dual systems do not need to be run synchronously, but the Android service started in an Android container is used to implement a corresponding function, so that the complexity of the system is reduced, the operation is more convenient and faster, and further, the operation efficiency of Android application is improved.
S202: detecting a request for operating an android application in a Linux system;
s203: acquiring the information of the file packet of the android application according to the request;
in the embodiment of the present disclosure, the Android application Package is an APK (Android application Package), which is an application Package file format used by an Android operating system and is used for distributing and installing mobile applications and middleware.
S204: and sending the file packet information to the PKMS through the inter-process communication IPC, and triggering the PKMS to execute the operation aiming at the android application according to the file packet information.
In the embodiments of the present disclosure, IPC (Inter-Process Communication) refers to information being propagated or exchanged between different processes. There is a corresponding IPC mechanism under either operating system. The process address spaces under the IPC mechanism are mutually independent, each process has different user address spaces, the processes cannot access each other, and data exchange can be carried out only through a kernel. The interprocess communication usually adopts the following communication modes: half-duplex Unix pipes, FIFOs named pipes, Message queues (Message Queue), semaphores (semaphores), shared memory, sockets (Socket), and so forth. Since the file manager and the PKMS are two different processes, the data transfer between the processes needs to be realized by IPC inter-process communication.
In one embodiment, the step S203 may include one of the following steps:
if the request is for installing the android application, acquiring path information of an installation file package of the android application according to the request; or the like, or, alternatively,
and if the request is to unload the android application, acquiring the path information of the unloaded file packet of the android application according to the request.
In the embodiment of the present disclosure, the file package of the android application has an access right in a storage directory in a Linux system, and the Linux system and the android system service both have access rights.
Fig. 4 is a schematic diagram of a file structure in the Linux system according to an embodiment of the present disclosure. As shown in fig. 4, in an embodiment, a package of an android application may be set and stored in a specified directory in the Linux system, for example, may be set and stored in directories such as usr, etc., lib, media, mnt, proc, var, home, and the like as needed, and is not limited specifically as long as it is ensured that both the Linux system and the android system service have an authority to access the directories.
Fig. 5 is a schematic flowchart illustrating an application installation process in a Linux system according to an embodiment of the present disclosure. As shown in fig. 5, in one embodiment, the process of installing the application in the Linux system includes:
s501: a file manager of the Linux system detects a request for installing an application;
illustratively, when a user clicks on an APK file stored under a directory, such as a home directory or the like, a request to install an application is detected.
S502: judging whether the application requested to be installed is an android application, and if so, executing S503; otherwise, executing S506;
for example, whether the clicked file is an APK format file or not can be judged, if yes, the android application is requested to be installed, and otherwise, the Linux application is requested to be installed.
S503: acquiring path information of an installation file package of the android application;
illustratively, the complete directory of the APK file may be obtained to obtain the path information of the installation file package.
S504: sending the path information of the installation file package to the started android PKMS through IPC;
s505: after receiving the path information of the file packet, the android PKMS executes a flow for installing the android application according to the path information, and the flow is ended;
s506: and confirming that the application requested to be installed is the Linux application, running the installation process of the Linux application, and ending the process.
FIG. 6 is a schematic flow chart illustrating uninstalling an application in a Linux system according to an embodiment of the present disclosure. As shown in fig. 6, in an embodiment, a flow of uninstalling an application in a Linux system includes:
s601: detecting a request for uninstalling an application in a Linux system;
illustratively, when there is a user in a Linux system clicking to uninstall an application at a Linux desktop or an application store, a request to uninstall the application is detected.
S602: judging whether the application requested to be uninstalled is an android application, if so, executing S603; otherwise, executing S606;
s603: acquiring path information of an uninstalled file package of the android application;
s604: sending the path information of the uninstalled file package to the started android PKMS through IPC;
s605: after receiving the path information of the file packet, the android PKMS executes a flow for unloading the android application according to the path information, and the flow is ended;
s606: and confirming that the application requested to be uninstalled is the Linux application, running the uninstalling process of the Linux application, and ending the process.
According to the method provided by the embodiment of the disclosure, Android applications can be operated in the Linux system without the need of synchronous operation of the Linux system and the Android system, such as installation or uninstallation. Because cross-system data interaction is not needed, the use complexity is reduced, the memory consumption of the Linux system is saved, the running performance is improved, the running speed is accelerated, and the efficiency of operating android applications is improved.
FIG. 7 is a block diagram of an apparatus for operating an android application in a Linux system according to an embodiment of the present disclosure. As shown in fig. 7, the apparatus includes:
the detecting module 701 is used for detecting a request for operating the android application in the Linux system, wherein the Linux system starts android system service;
an obtaining module 702, configured to obtain, according to a request, package information of an android application;
the triggering module 703 is configured to send the package information to the android system service, and trigger the android system service to execute an operation for the android application according to the package information.
In one embodiment, the triggering module 703 may be configured to:
and sending the file package information to a package management service PKMS in the android system service, and triggering the PKMS to execute the operation aiming at the android application according to the file package information.
In an embodiment, the triggering module 703 sends the information of the bundle file to the android system service specifically through inter-process communication.
In one embodiment, the obtaining module 702 may be configured to:
and if the request is to install the android application, acquiring the path information of the installation file package of the android application according to the request.
In one embodiment, the obtaining module 702 may be configured to:
and if the request is to unload the android application, acquiring the path information of the unloaded file packet of the android application according to the request.
In one embodiment, the apparatus may further include:
the initialization module is used for starting an android container in the Linux system in advance, starting android system services in the android container, and enabling the android system services to comprise a package management service (PKMS).
In an embodiment, the file package of the android application has an access right in a storage directory in a Linux system, and the Linux system and the android system service.
According to the device provided by the embodiment of the disclosure, Android applications can be operated in the Linux system without the need of synchronous operation of the Linux system and the Android system, such as installation or uninstallation. Because cross-system data interaction is not needed, the use complexity is reduced, the memory consumption of the Linux system is saved, the running performance is improved, the running speed is accelerated, and the efficiency of operating android applications is improved.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 8 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data required for the operation of the device 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 801 executes the respective methods and processes described above. For example, in some embodiments, the above-described methods may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM 802 and/or communications unit 809. When loaded into RAM803 and executed by the computing unit 801, may perform one or more steps of the methods described above. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the above-described method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (16)

1. A method of operating an android application in a Linux system, comprising:
detecting a request for operating an android application in a Linux system, wherein android system services are started in the Linux system;
acquiring the file packet information of the android application according to the request;
and sending the file packet information to the android system service, and triggering the android system service to execute the operation aiming at the android application according to the file packet information.
2. The method of claim 1, wherein the sending the bundle of files information to the android system service, triggering the android system service to perform operations for the android application according to the bundle of files information, comprises:
and sending the file package information to a package management service PKMS in the android system service, and triggering the PKMS to execute operation aiming at the android application according to the file package information.
3. The method of claim 1, wherein the sending the bundle information to the android system service comprises:
and sending the file packet information to the android system service through interprocess communication.
4. The method of claim 1, wherein the obtaining of the package information of the android application according to the request comprises:
and if the request is for installing the android application, acquiring the path information of the installation file package of the android application according to the request.
5. The method of claim 1, wherein the obtaining of the package information of the android application according to the request comprises:
and if the request is to unload the android application, acquiring the path information of the unloaded file packet of the android application according to the request.
6. The method of claim 1, further comprising:
and starting an android container in the Linux system in advance, and starting the android system service in the android container, wherein the android system service comprises a package management service (PKMS).
7. The method according to any one of claims 1-6, wherein the package of android application files is a saved directory in the Linux system, the Linux system and the android system service each having access rights.
8. An apparatus for operating an android application in a Linux system, comprising:
the android application operating system comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting a request for operating the android application in a Linux system, and the Linux system starts android system service;
the obtaining module is used for obtaining the file package information of the android application according to the request;
and the triggering module is used for sending the file packet information to the android system service and triggering the android system service to execute operation aiming at the android application according to the file packet information.
9. The apparatus of claim 8, wherein the triggering module is to:
and sending the file package information to a package management service PKMS in the android system service, and triggering the PKMS to execute operation aiming at the android application according to the file package information.
10. The apparatus according to claim 8, wherein the trigger module sends the bundle information to the android system service specifically through inter-process communication.
11. The apparatus of claim 8, wherein the means for obtaining is configured to:
and if the request is for installing the android application, acquiring the path information of the installation file package of the android application according to the request.
12. The apparatus of claim 8, wherein the means for obtaining is configured to:
and if the request is to unload the android application, acquiring the path information of the unloaded file packet of the android application according to the request.
13. The apparatus of claim 8, further comprising:
and the initialization module is used for starting an android container in the Linux system in advance, starting the android system service in the android container, and enabling the android system service to comprise a package management service (PKMS).
14. The apparatus according to any one of claims 8-13, wherein the package of android application files is a saved directory in the Linux system, and the Linux system and the android system service each have access rights.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN202111335023.4A 2021-11-11 2021-11-11 Method, device and equipment for operating android application in Linux system Pending CN114035863A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111335023.4A CN114035863A (en) 2021-11-11 2021-11-11 Method, device and equipment for operating android application in Linux system
PCT/CN2022/108670 WO2023082716A1 (en) 2021-11-11 2022-07-28 Method and apparatus for operating android application in linux system, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111335023.4A CN114035863A (en) 2021-11-11 2021-11-11 Method, device and equipment for operating android application in Linux system

Publications (1)

Publication Number Publication Date
CN114035863A true CN114035863A (en) 2022-02-11

Family

ID=80137377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111335023.4A Pending CN114035863A (en) 2021-11-11 2021-11-11 Method, device and equipment for operating android application in Linux system

Country Status (2)

Country Link
CN (1) CN114035863A (en)
WO (1) WO2023082716A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114756326A (en) * 2022-04-14 2022-07-15 重庆长安汽车股份有限公司 Vehicle-mounted terminal dual system and implementation method thereof
WO2023082716A1 (en) * 2021-11-11 2023-05-19 北京字节跳动网络技术有限公司 Method and apparatus for operating android application in linux system, and device
WO2023109138A1 (en) * 2021-12-14 2023-06-22 抖音视界有限公司 Method and apparatus for starting android application in linux system, and electronic device

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204913A (en) * 2015-10-20 2015-12-30 福建升腾资讯有限公司 Method and system for running Linux application on Android operating system and system
CN105550046A (en) * 2015-12-11 2016-05-04 北京奇虎科技有限公司 Virtual control method, device and system
US20180137308A1 (en) * 2016-11-16 2018-05-17 Foundation Of Soongsil University-Industry Cooperation Duo operating system for android security, mobile device having the same, method of securing mobile device having the same
CN108170503A (en) * 2018-01-24 2018-06-15 腾讯科技(深圳)有限公司 A kind of method, terminal and the storage medium of cross-system operation Android application
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
CN111026449A (en) * 2019-12-10 2020-04-17 深圳市智多互动科技有限公司 Method for running virtual android system on android system
US20200143041A1 (en) * 2018-11-01 2020-05-07 Foundation Of Soongsil University-Industry Cooperation Hybrid trust execution environment based android security framework, android device equipped with the same and method of executing trust service in android device
CN111290827A (en) * 2018-12-07 2020-06-16 华为技术有限公司 Data processing method and device and server
CN111339541A (en) * 2020-02-20 2020-06-26 Oppo广东移动通信有限公司 Multiplex method and device for inter-process communication IPC mechanism based on binder drive
US20200210213A1 (en) * 2019-01-02 2020-07-02 Boe Technology Group Co., Ltd. Display method of multi-application based on android system, and terminal device
CN111722850A (en) * 2019-03-21 2020-09-29 成都鼎桥通信技术有限公司 Method, device and system for processing application among multiple systems
CN111782226A (en) * 2020-06-24 2020-10-16 长沙摩智云计算机科技有限公司 Method, system, equipment and medium for directly and quickly installing android application
CN112099923A (en) * 2020-11-17 2020-12-18 江苏北弓智能科技有限公司 Android virtualization system running on Linux operating system
CN113157464A (en) * 2021-04-27 2021-07-23 麒麟软件有限公司 Method for sharing Linux end input event to Android
CN113190282A (en) * 2021-04-07 2021-07-30 北京鲸鲮信息系统技术有限公司 Android operating environment construction method and device
CN113204307A (en) * 2021-05-06 2021-08-03 技德技术研究所(武汉)有限公司 File sending method and device compatible with Android system running on Linux
CN113254154A (en) * 2021-05-21 2021-08-13 技德技术研究所(武汉)有限公司 Application starting method and device for compatibly running Android system on Linux
CN113282271A (en) * 2021-07-22 2021-08-20 北京麟卓信息科技有限公司 Audio processing method and device for android application on Linux platform

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388473A (en) * 2018-09-19 2019-02-26 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Android compatible layer implementation method and system based on mobile operating system
CN111625246A (en) * 2020-05-15 2020-09-04 武汉蓝星科技股份有限公司 Desktop management method of Linux-Android terminal dual system
CN112114916B (en) * 2020-08-31 2021-06-08 北京技德系统技术有限公司 Method and device for compatibly running Android application on Linux operating system
CN112269604B (en) * 2020-11-11 2021-06-01 北京技德系统技术有限公司 Window interaction method and device for compatibly running Android application on Linux
CN114035863A (en) * 2021-11-11 2022-02-11 北京鲸鲮信息系统技术有限公司 Method, device and equipment for operating android application in Linux system
CN113934464A (en) * 2021-12-14 2022-01-14 北京鲸鲮信息系统技术有限公司 Method and device for starting android application in Linux system and electronic equipment

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204913A (en) * 2015-10-20 2015-12-30 福建升腾资讯有限公司 Method and system for running Linux application on Android operating system and system
CN105550046A (en) * 2015-12-11 2016-05-04 北京奇虎科技有限公司 Virtual control method, device and system
US20180137308A1 (en) * 2016-11-16 2018-05-17 Foundation Of Soongsil University-Industry Cooperation Duo operating system for android security, mobile device having the same, method of securing mobile device having the same
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
CN108170503A (en) * 2018-01-24 2018-06-15 腾讯科技(深圳)有限公司 A kind of method, terminal and the storage medium of cross-system operation Android application
US20200143041A1 (en) * 2018-11-01 2020-05-07 Foundation Of Soongsil University-Industry Cooperation Hybrid trust execution environment based android security framework, android device equipped with the same and method of executing trust service in android device
CN111290827A (en) * 2018-12-07 2020-06-16 华为技术有限公司 Data processing method and device and server
US20200210213A1 (en) * 2019-01-02 2020-07-02 Boe Technology Group Co., Ltd. Display method of multi-application based on android system, and terminal device
CN111722850A (en) * 2019-03-21 2020-09-29 成都鼎桥通信技术有限公司 Method, device and system for processing application among multiple systems
CN111026449A (en) * 2019-12-10 2020-04-17 深圳市智多互动科技有限公司 Method for running virtual android system on android system
CN111339541A (en) * 2020-02-20 2020-06-26 Oppo广东移动通信有限公司 Multiplex method and device for inter-process communication IPC mechanism based on binder drive
CN111782226A (en) * 2020-06-24 2020-10-16 长沙摩智云计算机科技有限公司 Method, system, equipment and medium for directly and quickly installing android application
CN112099923A (en) * 2020-11-17 2020-12-18 江苏北弓智能科技有限公司 Android virtualization system running on Linux operating system
CN113190282A (en) * 2021-04-07 2021-07-30 北京鲸鲮信息系统技术有限公司 Android operating environment construction method and device
CN113157464A (en) * 2021-04-27 2021-07-23 麒麟软件有限公司 Method for sharing Linux end input event to Android
CN113204307A (en) * 2021-05-06 2021-08-03 技德技术研究所(武汉)有限公司 File sending method and device compatible with Android system running on Linux
CN113254154A (en) * 2021-05-21 2021-08-13 技德技术研究所(武汉)有限公司 Application starting method and device for compatibly running Android system on Linux
CN113282271A (en) * 2021-07-22 2021-08-20 北京麟卓信息科技有限公司 Audio processing method and device for android application on Linux platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MAGESH MARUTHAMUTHU: "Anbox:在Linux上运行Android应用程序的简单方式", 知乎, pages 2 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023082716A1 (en) * 2021-11-11 2023-05-19 北京字节跳动网络技术有限公司 Method and apparatus for operating android application in linux system, and device
WO2023109138A1 (en) * 2021-12-14 2023-06-22 抖音视界有限公司 Method and apparatus for starting android application in linux system, and electronic device
CN114756326A (en) * 2022-04-14 2022-07-15 重庆长安汽车股份有限公司 Vehicle-mounted terminal dual system and implementation method thereof

Also Published As

Publication number Publication date
WO2023082716A1 (en) 2023-05-19

Similar Documents

Publication Publication Date Title
WO2023109138A1 (en) Method and apparatus for starting android application in linux system, and electronic device
CN114035863A (en) Method, device and equipment for operating android application in Linux system
CN109218356B (en) Method and apparatus for managing stateful applications on a server
US8874638B2 (en) Interactive analytics processing
US10810220B2 (en) Platform and software framework for data intensive applications in the cloud
CN113626224A (en) NFC data interaction method and device, electronic equipment and storage medium
US11099915B2 (en) Optimizing startup time for event-driven functions
CN114077367A (en) Method and device for realizing shortcut of android application in Linux system
CN112905537B (en) File processing method and device, electronic equipment and storage medium
KR20220151585A (en) Business data processing method, apparatus, electronic apparatus, storage media and computer program
CN112612467A (en) Method and device for processing micro front-end architecture based on qiankun
US10824486B1 (en) Two-way clipboard exchange in virtual console
US20160253376A1 (en) Updating Object Attributes in a Lock-Coupled Namespace Traversal
CN115904761A (en) System on chip, vehicle and video processing unit virtualization method
US9058239B2 (en) Hypervisor subpartition as concurrent upgrade
CN114443076A (en) Mirror image construction method, device, equipment and storage medium
CN114185734A (en) Cluster monitoring method and device and electronic equipment
CN113377487A (en) Method, apparatus and computer program product for managing virtual machine upgrades
CN112965836B (en) Service control method, device, electronic equipment and readable storage medium
CN113986476A (en) Sensor equipment virtualization method and device, electronic equipment and storage medium
CN115048060A (en) Storage management method and device, electronic equipment and storage medium
CN113840271A (en) NFC data transmission method and device, electronic equipment and storage medium
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
CN106843851A (en) Implementation method and device based on ActiveMQ isomery Classloader unserializings
CN111767489A (en) Method, device and equipment for accelerating running of webpage and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20220330

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: 100080 floor 2, No. 39, West Street, Haidian District, Haidian District, Beijing 2005

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