Method, apparatus and device for operating an Android application in a Linux system

By starting Android system services in the Linux system and processing the file package information of Android applications, the complex cross-system data interaction caused by the synchronization of Linux and Android systems is solved, and efficient operation of Android applications in the Linux system is achieved.

CN114035863BActive Publication Date: 2025-06-17DOUYIN VISION CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111335023.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-11
Publication Date
2025-06-17
Estimated Expiration
2041-11-11

AI Technical Summary

Technical Problem

When installing and uninstalling Android APK in Linux systems, the existing technology requires dual systems of Linux and Android to run simultaneously, resulting in complex cross-system data interaction, increasing system memory consumption and operating performance impact, and reducing operational efficiency.

Method used

Start the Android system service in the Linux system, and when a request to operate the Android application is detected, it obtains the file package information of the Android application and sends it to the Android system service, triggering it to perform operations on the Android application to avoid cross-system data interaction.

Benefits of technology

Without the need for dual Linux and Android systems to run synchronously, Android applications can be operated in the Linux system, saving memory consumption of the Linux system, improving operating performance, and improving the efficiency of operating Android applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114035863B_ABST
    Figure CN114035863B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, apparatus, and device for operating an Android application in a Linux system, relating to the field of computer technologies. The method includes: detecting a request to operate an Android application in the Linux system, where the Android system service has been started in the Linux system; obtaining the file package information of the Android application according to the request; and sending the file package information to the Android system service to trigger the Android system service to perform an operation on the Android application according to the file package information. The technical solution of the present disclosure can realize operating an Android application in the Linux system without the need for the dual systems of Linux and Android to run synchronously, without cross-system data interaction, saving the memory consumption of the Linux system, improving the running performance, and enhancing the efficiency of operating the Android application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and particularly to the field of Linux and Android compatibility technologies. Background Art

[0002] Currently, when installing and uninstalling Android APKs (Application Packages) in a Linux system, the method of synchronously running a dual-system of Linux and Android is generally adopted, and the installation and uninstallation of Android application packages can be completed only by switching from the Linux system to the Android system.

[0003] Since the above solution involves cross-system data interaction, it not only has complex interaction, but also has a certain impact on the memory consumption and running performance of the system, resulting in a reduction in the efficiency of installation and uninstallation. Summary of the Invention

[0004] The present disclosure provides a method, an apparatus, an electronic device, a storage medium, and a computer program product for operating Android applications in a Linux system.

[0005] According to one aspect of the present disclosure, there is provided a method for operating an Android application in a Linux system, including:

[0006] Detecting a request for operating an Android application in the Linux system, where the Android system service has been started in the Linux system;

[0007] Obtaining the file package information of the Android application according to the request;

[0008] Sending the file package information to the Android system service, and triggering the Android system service to perform an operation on the Android application according to the file package information.

[0009] According to another aspect of the present disclosure, there is provided an apparatus for operating an Android application in a Linux system, including:

[0010] A detection module, configured to detect a request for operating an Android application in the Linux system, where the Android system service has been started in the Linux system;

[0011] An obtaining module, configured to obtain the file package information of the Android application according to the request;

[0012] A triggering module, configured to send the file package information to the Android system service, and trigger the Android system service to perform an operation on the Android application according to the file package information.

[0013] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute the method in any embodiment of the present disclosure.

[0017] According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method in any embodiment of the present disclosure.

[0018] According to another aspect of the present disclosure, there is provided a computer program product, comprising a computer program which, when executed by a processor, implements the method in any embodiment of the present disclosure.

[0019] The technical solution of the embodiment of the present disclosure starts an Android system service in the Linux system, and when a request to operate an Android application is detected, obtains the file package information of the Android application and sends it to the Android system service, triggering it to perform an operation on the Android application according to the file package information. Without the need for the Linux and Android dual systems to run synchronously, it is possible to operate Android applications in the Linux system, such as installation or uninstallation, etc. Since there is no need for cross-system data interaction, the memory consumption of the Linux system is saved, the running performance is improved, and the efficiency of operating Android applications is increased.

[0020] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:

[0022] Figure 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;

[0023] Figure 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;

[0024] Figure 3a is a schematic diagram of a prior art dual-system framework according to an embodiment of the present disclosure;

[0025] Figure 3b It is a schematic diagram of the Linux system framework including an Android container according to an embodiment of the present disclosure;

[0026] Figure 4 It is a schematic diagram of the file structure in the Linux system according to an embodiment of the present disclosure;

[0027] Figure 5 It is a schematic diagram of the process of installing an application in the Linux system according to an embodiment of the present disclosure;

[0028] Figure 6 It is a schematic diagram of the process of uninstalling an application in the Linux system according to an embodiment of the present disclosure;

[0029] Figure 7 It is a block diagram of a device for operating an Android application in the Linux system according to an embodiment of the present disclosure;

[0030] Figure 8 It is a block diagram of an electronic device for implementing the method of operating an Android application in the Linux system according to an embodiment of the present disclosure. Detailed implementation manners

[0031] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, descriptions of well-known functions and structures are omitted for clarity and conciseness.

[0032] The technical solution of the embodiment of the present disclosure is applied to the Linux system, and the Android system runs in the host Linux system in the form of a container. Users can directly perform 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 package information of the Android application to the Android system service when there is a request to operate the Android application, the execution of the operation on the Android application is triggered, avoiding cross-system data interaction between Linux and Android, saving the memory consumption of the Linux system, improving the running performance, and enhancing the efficiency of operating Android applications.

[0033] Figure 1 It is a schematic diagram of the method for operating an Android application in the Linux system according to an embodiment of the present disclosure. As Figure 1 shown, the method includes:

[0034] S101: Detect a request to operate an Android application in the Linux system where the Android system service has been started;

[0035] S102: Obtain the file package information of the Android application according to the above request;

[0036] S103: Send the file package information to the Android system service, triggering the Android system service to perform operations on the above Android application according to the file package information.

[0037] In the embodiments of the present disclosure, the Android system service refers to Service, one of the four major components of the Android system. It is an Android component specifically for processing long - term tasks in the background, does not provide interface presentation, and is a solution for implementing the background operation of programs in Android. It is very suitable for performing tasks that do not require interaction with users and require long - term operation. The operation of the service does not depend on any user interface. Even if the program is switched to the background or the user opens another application, the service can still run normally.

[0038] In one implementation, step S103 may include:

[0039] Send the file package information to the Package Management Service PKMS in the Android system service, triggering PKMS to perform operations on the Android application according to the file package information.

[0040] In the embodiments of the present disclosure, PKMS (Package Manager Service) is one of the core services in the Android system, managing all work related to packages, such as application installation, application uninstallation, or application information query, etc.

[0041] In one implementation, sending the file package information to the Android system service includes:

[0042] Send the file package information to the Android system service through inter - process communication.

[0043] In one implementation, step S102 may include:

[0044] If the request is to install an Android application, obtain the path information of the installation file package of the Android application according to the request.

[0045] In one implementation, step S102 may include:

[0046] If the request is to uninstall an Android application, obtain the path information of the uninstallation file package of the Android application according to the request.

[0047] In one implementation, the above method may further include:

[0048] Pre - start an Android container in the Linux system, and start Android system services in the Android container. The Android system services include the Package Management Service (PKMS).

[0049] In one implementation, the storage directory of the above - mentioned Android application package in the Linux system has access permissions for both the Linux system and the Android system services.

[0050] The method provided by the embodiments of the present disclosure can operate Android applications in the Linux system, such as installation or uninstallation, etc., without the need for the synchronous operation of the Linux and Android dual - systems. Since there is no need for cross - system data interaction, it not only reduces the usage complexity but also saves the memory consumption of the Linux system, improves the running performance, speeds up the running speed, and improves the efficiency of operating Android applications.

[0051] Figure 2 It is a schematic diagram of the method for operating Android applications in the Linux system in an embodiment of the present disclosure. As Figure 2 shown, the method includes:

[0052] S201: Pre - start an Android container in the Linux system, and start Android system services in the Android container. The Android system services include PKMS;

[0053] Among them, Android system - related files exist in a partition of the Linux system in the form of a container and are mounted under / var / lib / lxc / android of the Linux file system.

[0054] Figure 3a It is a schematic diagram of the dual - system framework of the prior art in an embodiment of the present disclosure. As Figure 3a shown, in the prior art, the Linux system and the Android system run simultaneously in a device. For the two to communicate between the dual - systems, cross - system data interaction is required to achieve communication, which has high complexity, slow running speed, resulting in reduced system running performance, and the operation efficiency of Android applications is also not high.

[0055] Figure 3b It is a schematic diagram of the Linux system framework including an Android container in an embodiment of the present disclosure. As Figure 3b shown, in one implementation, Android can be started in the Linux system in the form of a container. The advantage of this method is that there is no need to synchronously run the Linux and Android dual - systems. Instead, the corresponding functions are implemented through the Android services started in the Android container, reducing the complexity of the system, making the operation more convenient and fast, and thus improving the operation efficiency of Android applications.

[0056] S202: Detect a request to operate an Android application in the Linux system;

[0057] S203: Obtain the file package information of the Android application according to the request;

[0058] In the embodiments of the present disclosure, the file package of the Android application refers to an APK (Android application Package), which is a file format of application program packages used by the Android operating system for distributing and installing mobile applications and middleware.

[0059] S204: Send the file package information to the PKMS through Inter-Process Communication (IPC), triggering the PKMS to perform an operation on the Android application according to the file package information.

[0060] In the embodiments of the present disclosure, IPC (Inter-Process Communication) refers to the propagation or exchange of information between different processes. There is a corresponding IPC mechanism under any operating system. Under the IPC mechanism, the process address spaces are independent of each other, and each process has a different user address space. Processes cannot access each other and must exchange data through the kernel. The following several communication methods are usually adopted for inter-process communication: half-duplex Unix pipes, FIFOs named pipes, message queues, semaphores, shared memory, sockets, etc. Since the file manager and the PKMS are two different processes, data needs to be transferred between processes through the IPC inter-process communication method.

[0061] In one implementation, the above step S203 may include one of the following:

[0062] If the above request is to install an Android application, obtain the path information of the installation file package of the Android application according to the request; or,

[0063] If the above request is to uninstall an Android application, obtain the path information of the uninstallation file package of the Android application according to the request.

[0064] In the embodiments of the present disclosure, the Linux system and the Android system services both have access rights to the save directory of the above file package of the Android application in the Linux system.

[0065] Figure 4 This is a schematic diagram of the file structure in the Linux system in an embodiment of the present disclosure. As Figure 4As shown, in one embodiment, the file package of the Android application can be set to be stored in a specified directory in the Linux system. For example, it can be stored in directories such as usr, etc, lib, media, mnt, proc, var, home, etc. according to needs. There is no specific limitation as long as both the Linux system and the Android system services have permission to access the above directories.

[0066] Figure 5 This is a schematic flow chart of installing an application in the Linux system according to an embodiment of the present disclosure. As Figure 5 shown, in one embodiment, the process of installing an application in the Linux system includes:

[0067] S501: The file manager of the Linux system detects a request to install an application;

[0068] Exemplarily, when the user clicks on an APK file stored in a certain directory, a request to install an application is detected. Such a directory can be the home directory, etc.

[0069] S502: Determine whether the application to be installed is an Android application. If so, execute S503; otherwise, execute S506;

[0070] Exemplarily, it can be determined whether the clicked file is an APK format file. If so, it is determined that the requested application to be installed is an Android application; otherwise, it is determined that the requested application to be installed is a Linux application.

[0071] S503: Obtain the path information of the installation file package of the Android application;

[0072] Exemplarily, the complete directory of the above APK file can be obtained to get the path information of the installation file package.

[0073] S504: Send the path information of the installation file package to the started Android PKMS through IPC;

[0074] S505: After receiving the path information of the file package, the Android PKMS executes the process of installing the Android application according to the path information, and the process ends;

[0075] S506: Confirm that the application to be installed is a Linux application, run the installation process of the Linux application, and the process ends.

[0076] Figure 6 This is a schematic flow chart of uninstalling an application in the Linux system according to an embodiment of the present disclosure. As Figure 6 shown, in one embodiment, the process of uninstalling an application in the Linux system includes:

[0077] S601: Detect a request to uninstall an application in the Linux system;

[0078] Exemplarily, when a user clicks to uninstall a certain application on the Linux desktop or in the application store in the Linux system, a request to uninstall the application is detected.

[0079] S602: Determine whether the application to be uninstalled is an Android application. If so, execute S603; otherwise, execute S606;

[0080] S603: Obtain the path information of the uninstallation file package of the Android application;

[0081] S604: Send the path information of the uninstallation file package to the started Android PKMS through IPC;

[0082] S605: After receiving the path information of the file package, the Android PKMS executes the process of uninstalling the Android application according to the path information, and the process ends;

[0083] S606: Confirm that the application to be uninstalled is a Linux application, run the uninstallation process of the Linux application, and the process ends.

[0084] The above method provided by the embodiments of the present disclosure can realize operating Android applications in the Linux system, such as installation or uninstallation, etc., without the need for the Linux and Android dual systems to run synchronously. Since there is no need for cross-system data interaction, it not only reduces the usage complexity, but also saves the memory consumption of the Linux system, improves the running performance, speeds up the running speed, and improves the efficiency of operating Android applications.

[0085] Figure 7 It is a block diagram of a device for operating an Android application in the Linux system according to an embodiment of the present disclosure. As Figure 7 shown, the device includes:

[0086] A detection module 701, configured to detect a request to operate an Android application in the Linux system, and the Android system service has been started in the Linux system;

[0087] An acquisition module 702, configured to obtain the file package information of the Android application according to the request;

[0088] A trigger module 703, configured to send the file package information to the Android system service, and trigger the Android system service to execute an operation on the Android application according to the file package information.

[0089] In an implementation manner, the trigger module 703 may be used for:

[0090] Send the file package information to the Package Management Service (PKMS) in the Android system service, triggering the PKMS to perform operations on the Android application according to the file package information.

[0091] In one embodiment, the triggering module 703 specifically sends the file package information to the Android system service through inter-process communication.

[0092] In one embodiment, the obtaining module 702 can be used for:

[0093] If the request is to install an Android application, obtain the path information of the installation file package of the Android application according to the request.

[0094] In one embodiment, the obtaining module 702 can be used for:

[0095] If the request is to uninstall an Android application, obtain the path information of the uninstallation file package of the Android application according to the request.

[0096] In one embodiment, the above device may further include:

[0097] An initialization module, configured to start an Android container in the Linux system in advance, and start the Android system service in the Android container, where the Android system service includes the Package Management Service (PKMS).

[0098] In one embodiment, the storage directory of the file package of the above Android application in the Linux system has access permissions for both the Linux system and the Android system service.

[0099] The above device provided by the embodiments of the present disclosure can operate on Android applications in the Linux system, such as installation or uninstallation, etc., without the need for the Linux and Android dual systems to run synchronously. Since there is no need for cross-system data interaction, it not only reduces the usage complexity, but also saves the memory consumption of the Linux system, improves the running performance, speeds up the running speed, and improves the efficiency of operating Android applications.

[0100] According to the embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0101] Figure 8FIG. 0 shows a schematic block diagram of an exemplary electronic device 800 that can be used to implement embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, for example, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as, for example, personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementations of the present disclosure described and / or claimed herein.

[0102] As Figure 8 shown, the device 800 includes a computing unit 801 that can perform various appropriate actions and processes in accordance with 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 RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0103] A plurality of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as, for example, a keyboard, a mouse, etc.; an output unit 807, such as, for example, various types of displays, speakers, etc.; a storage unit 808, such as, for example, a magnetic disk, an optical disk, etc.; and a communication unit 809, such as, for example, a network card, a modem, a 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.

[0104] The computing unit 801 can be various general-purpose 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, etc. The computing unit 801 executes the various methods and processes described above. For example, in some embodiments, the above methods can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the methods described above can be executed. Alternatively, in other embodiments, the computing unit 801 can be configured to execute the above methods in any other suitable way (e.g., by means of firmware).

[0105] Various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a dedicated or general-purpose programmable processor, receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0106] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to the processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing devices, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program codes can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0107] In the context of this disclosure, a machine-readable medium can 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. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, 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.

[0108] To provide for interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide for interaction with the 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 can be received in any form (including acoustic, speech, or tactile input).

[0109] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, 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: a local area network (LAN), a wide area network (WAN), and the Internet.

[0110] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is generated by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.

[0111] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and no limitations are imposed herein.

[0112] The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub - combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the protection scope of this disclosure.

Claims

1. A method for operating an Android application in a Linux system, which is applied to the Linux system and includes: Start an Android container in the Linux system and start Android system services in the Android container. The Android system services include the Package Management Service (PKMS). The Android container is located in a partition of the Linux system. Detect a request to operate an Android application in the Linux system. Obtain the file package information of the Android application according to the request. The file package information of the Android application includes the path information of the file package of the Android application. The file package of the Android application is saved in the Linux system. The save directory of the file package of the Android application in the Linux system has access permissions for both the Android system service and the Linux system. Send the file package information to the Android system service, triggering the Android system service to perform an operation on the Android application according to the file package information. Among them, the sending the file package information to the Android system service and triggering the Android system service to perform an operation on the Android application according to the file package information includes: Send the file package information to the PKMS in the Android system service, triggering the PKMS to perform an operation on the Android application according to the file package information. The operation includes installing or uninstalling the Android application in the Android system service.

2. The method according to claim 1, wherein, The sending the file package information to the Android system service includes: Send the file package information to the Android system service through inter-process communication.

3. The method according to claim 1, wherein, The obtaining the file package information of the Android application according to the request includes: If the request is to install an Android application, obtain the path information of the installation file package of the Android application according to the request.

4. The method according to claim 1, wherein, The obtaining the file package information of the Android application according to the request includes: If the request is to uninstall an Android application, obtain the path information of the uninstall file package of the Android application according to the request.

5. A device for operating an Android application in a Linux system, which is applied to the Linux system and includes: An initialization module for starting an Android container in the Linux system and starting Android system services in the Android container. The Android system services include the Package Management Service (PKMS). The Android container is located in a partition of the Linux system. A detection module for detecting a request to operate an Android application in the Linux system. An obtaining module for obtaining the file package information of the Android application according to the request. The file package information of the Android application includes the path information of the file package of the Android application. The file package of the Android application is saved in the Linux system. The save directory of the file package of the Android application in the Linux system has access permissions for both the Android system service and the Linux system. A trigger module for sending the file package information to the Android system service and triggering the Android system service to perform an operation on the Android application according to the file package information. Among them, the trigger module is used for: Send the file package information to the PKMS in the Android system service, triggering the PKMS to perform operations on the Android application according to the file package information; the operations include installing or uninstalling the Android application in the Android system service.

6. The device according to claim 5, wherein, The triggering module specifically sends the file package information to the Android system service through inter-process communication.

7. The device according to claim 5, wherein, The obtaining module is used for: If the request is to install an Android application, obtain the path information of the installation file package of the Android application according to the request.

8. The device according to claim 5, wherein, The obtaining module is used for: If the request is to uninstall an Android application, obtain the path information of the uninstallation file package of the Android application according to the request.

9. An electronic device, including: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1-4.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Data processing method and device and server

    CN111290827A

  • Multiplexing method and device of inter-process communication IPC mechanism based on binder driving

    CN111339541A

  • Method, device and system for processing application among multiple systems

    CN111722850A