Shared atomization service method and system, terminal and medium
By building a shared architecture of shared atomized service installation packages between devices and using distributed file services to realize the copying and transmission of installation packages, the problem of sharing and dependence on network environment between devices in the existing technology is solved, and the shared atomized service is improved Efficiency and scalability ensure that shared operations between different devices can be smoothly carried out regardless of the network environment.
Patent Information
- Application Number
- CN202411023021.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-26
AI Technical Summary
Existing shared atomized service solutions cannot achieve effective sharing between different devices without poor network environment or networking, affecting the user experience.
By building a shared architecture based on sharing atomized service installation packages between the initiator equipment and the target equipment, the distributed file service is used to realize the copying and transmission of the installation packages, avoiding dependence on the network environment, and using a shared directory for information transmission.
It improves the efficiency and scalability of shared atomized services, ensures that shared operations between different devices can be carried out smoothly regardless of the network environment, and improves the user experience.
Smart Images

Figure CN119025129A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of atomic service technology, and in particular to a shared atomic service method, system, terminal and medium. Background Art
[0002] Atomic service is a lightweight application that does not require explicit installation by the user. It is silently installed by the system when in use. It also supports migration from one device to another through sharing.
[0003] At present, the existing shared atomic service sharing solution has a brief process as follows: Figure 1 As shown, the operation of sharing atomic services between different devices needs to be performed under the condition of networking, and if the atomic service does not exist on the migration destination device, it is necessary to be able to download the installation package of the atomic service from the cloud server and install it silently. However, if the network environment where the different devices that need to share the atomic service are located has bandwidth delay or the cloud server is overloaded, it is likely that the sharing operation between different devices cannot be realized in time; even if the two devices that need to share the atomic service are not in an Internet environment, the atomic service cannot be shared, which affects the user experience.
[0004] It can be seen that the existing shared atomic service sharing solutions cannot guarantee the timeliness or feasibility of sharing atomic services between different devices when the network environment is poor or there is no network connection. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a shared atomic service method, system, terminal and medium, aiming to solve the problem in the prior art that the implementation of atomic service sharing functions between different devices is dependent on the network environment.
[0006] In order to achieve the above object, the first aspect of the present invention provides a shared atomic service method, which is applied to an initiator device of a sharing action, and includes the following steps:
[0007] Initiate a sharing request to the target atomic service;
[0008] In response to finding the installation package of the target atomic service, obtaining the installation package to be shared;
[0009] The installation package to be shared is copied to a shared directory, and the installation package to be shared is sent to the target device through the shared directory.
[0010] Optionally, initiating a sharing request to the target atomic service includes:
[0011] Searching for the installation package of the target atomic service and the storage path of the installation package to obtain the target atomic service;
[0012] Based on the installation package name of the target atomic service, a sharing request is initiated to the target atomic service.
[0013] Optionally, sending the installation package to be shared to the target device through the shared directory includes:
[0014] In response to monitoring that the target device is online, a communication session is established between the daemon process of the initiator device and the daemon process of the target device through the shared directory, and the installation package to be shared is sent to the target device.
[0015] Optionally, also include:
[0016] The running status of the target atomic service is shared to the target device.
[0017] A second aspect of the present invention provides a shared atomic service method, which is applied to a target device of a shared action, and includes the following steps:
[0018] In response to receiving a sharing request initiated by an initiator device, obtaining a sharing message;
[0019] In response to receiving the installation package information corresponding to the sharing message, obtaining the installation package to be shared;
[0020] Install the installation package to be shared to obtain the target atomic service.
[0021] Optionally, installing the installation package to be shared to obtain a target atomic service includes:
[0022] Based on the shared message, determine the running state information of the atomic service before sharing;
[0023] Install the installation package to be shared to obtain the initial target atomic service;
[0024] Starting the initial target atomic service, and restoring the running state of the target atomic service before sharing according to the running state information, and determining the target running state;
[0025] Based on the initial target atomic service and the target operating state, a target atomic service is obtained.
[0026] A third aspect of the present invention provides a shared atomic service system, which is used to implement the function of any of the above-mentioned shared atomic service methods applied to an initiator device, and the system includes:
[0027] The request module is used to initiate a sharing request to the target atomic service;
[0028] A shared installation package query module, configured to obtain the installation package to be shared in response to finding the installation package of the target atomic service;
[0029] The shared installation package sending module is used to send the installation package to be shared to the target device.
[0030] A fourth aspect of the present invention provides a shared atomic service system for implementing the functions of any of the above-mentioned shared atomic service methods applied to a target device, the system comprising:
[0031] The request module is used to initiate a sharing request to the target atomic service;
[0032] A shared installation package query module, configured to obtain the installation package to be shared in response to finding the installation package of the target atomic service;
[0033] The shared installation package sending module is used to send the installation package to be shared to the target device.
[0034] The fifth aspect of the present invention provides an intelligent terminal, which includes a memory, a processor, and a shared atomic service program stored in the memory and executable on the processor, wherein the shared atomic service program implements any step of the above-mentioned shared atomic service method when executed by the processor.
[0035] A sixth aspect of the present invention provides a computer-readable storage medium, on which a shared atomic service program is stored. When the shared atomic service program is executed by a processor, the steps of any one of the above-mentioned shared atomic service methods are implemented.
[0036] Compared with the prior art, the beneficial effects of this solution are as follows:
[0037] The present invention constructs an atomic service sharing architecture based on sharing atomic service installation packages between devices between the initiator device and the target device, and designs shared atomic service methods for the initiator device side and the target device side respectively based on the architecture. For the initiator device side, it mainly initiates a sharing request to the target atomic service; in response to finding the installation package of the target atomic service, obtains the installation package to be shared; copies the installation package to be shared to a shared directory, and sends the installation package to be shared to the target device through the shared directory. For the target device side, it mainly responds to receiving a sharing request initiated by the initiator device to obtain a sharing message; in response to receiving the installation package information corresponding to the sharing message, obtains the installation package to be shared; installs the installation package to be shared, and obtains the target atomic service. It can be seen that the sharing and transmission of target atomic service information between the initiator device side and the target device side in the same local area network is realized through the shared directory, which no longer depends on the network environment, and effectively improves the efficiency and scalability of shared atomic services. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0039] Figure 1 A flow chart of the method for sharing existing shared atomic services;
[0040] Figure 2 A schematic diagram of the atomic service sharing process based on sharing the atomic service installation package between devices of the present invention;
[0041] Figure 3 A complete flow chart of the atomic service sharing method of the present invention;
[0042] Figure 4 It is a flow chart of the shared atomic service method on the initiator device side of the present invention;
[0043] Figure 5 This is a flow chart of the shared atomic service method on the target device side of the present invention;
[0044] Figure 6 It is a schematic diagram of the shared atomic service system module on the initiator device side of the present invention;
[0045] Figure 7 It is a schematic diagram of a shared atomic service system module on the target device side of the present invention;
[0046] Figure 8 It is a schematic diagram of the structure of the intelligent terminal of the present invention. DETAILED DESCRIPTION
[0047] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0048] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0049] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0050] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0051] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0052] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0054] Atomic service is a lightweight application that does not require explicit installation by the user. It is silently installed by the system when used and supports migration from one device to another through sharing.
[0055] Currently, the sharing of atomic services must be done in an Internet-connected environment. The flow chart of the existing method of sharing atomic services is as follows: Figure 1 As shown, for device 1 and device 2 installed with OpenHarmony system / HarmonyOS system, first, an atomic service in device 1 (such as atomic service 1, atomic service 2 or atomic service n) initiates an atomic service sharing request to the operating system of device 1, and the operating system of device 1 performs a sharing action to device 2 by carrying the running status of the atomic service. Then, after receiving the sharing request from device 1, the operating system of device 2 requests the cloud server to download the installation package of the atomic service, downloads the installation package and silently installs it in device 2, and finally, the installed atomic service is started through the operating system of device 2 and the running status is restored, thereby realizing the sharing of the atomic service between device 1 and device 2.
[0056] It can be seen that if the existing technical solution is to complete the sharing of atomic services between different devices, both devices need to maintain an Internet environment. However, in many cases, the two devices sharing the atomic service are not in an Internet environment. At this time, the two devices cannot share the atomic service. Secondly, even if the atomic service is shared in an Internet state, there is often bandwidth delay in the process of the destination device requesting to download and install the atomic service from the cloud, and the cloud server is heavily loaded, which may cause the sharing process to take a long time, thereby affecting the user experience.
[0057] Compared with the installation of applications / atomic services in traditional systems, the application framework of the OpenHarmony system not only saves the configuration information of the atomic service, copies the library files and executable files of the atomic service to the specified system directory, but also saves the installation package of the atomic service when installing the atomic service. The difference comparison table between the application installation of the traditional system and the atomic service installation of OpenHarmony is shown in Table 1.
[0058] Table 1:
[0059] Comparison Items Traditional software / applications Atomic Service System configuration file modification have have Library / executable file copy have have Copying and saving the installation package none have
[0060] Since the OpenHarmony system application framework will save the installation packages of all atomic services, the present invention newly designs the following functions in the OpenHarmony system application framework: one is the atomic service installation package retrieval function, which is used to find the installation package name of the atomic service and the full path of the system where it is located according to the service name of the atomic service; the other is the atomic service installation package copy function, which is used to copy the installation package of the atomic service to a specified directory.
[0061] Atomic service is implemented based on distributed file service, that is, the purpose of file sharing between interconnected devices is achieved through distributed file service, and it can also inherit the advantages of distributed file service. For example, since the files are divided and redundantly stored on multiple devices, the risk of data loss can be effectively reduced; when the storage capacity needs to be increased, the system can be expanded by adding more servers or devices, which is simple and convenient; because it supports parallel read and write operations of files and load balancing, the system can handle multiple clients accessing files at the same time, improving the system's operating efficiency and user experience. The implementation steps of file sharing between interconnected devices mainly include: the initiator device monitors the online and offline of the device, that is, monitors whether there is a new target device joining the local area network where the initiator device is located, and interconnects with the initiator device. When a target device is online, the daemon process of the shared directory of the initiator device establishes a communication session with the daemon process of the shared directory of the target device, so as to read the file content in the shared directory of the target device.
[0062] In view of the problem in the prior art that the realization of the sharing function of atomic services between different devices is dependent on the network environment, the present invention proposes an atomic service sharing architecture based on sharing atomic service installation packages between devices, and elaborates on the sharing process of atomic services between different devices from the sender device side and the target device side respectively. The shared atomic service method proposed in the embodiment of the present invention is deployed on electronic devices such as computers and servers, and is applied to scenarios where atomic services need to be shared between different devices installed with OpenHarmony / HarmonyOS systems. It is aimed at the situation where there is no Internet, only a local area network needs to be formed between devices, and the sharing of atomic services is achieved by sharing the installation package of atomic services between different devices. It can also be said that the migration of atomic services from one device to another is achieved through sharing.
[0063] Among them, the atomic service in the present invention refers to a future-oriented service model provided by the Hongmeng ecosystem, which includes OpenHarmony and HarmonyOS. It is oriented to the full-scenario, full-connected, and full-intelligent era, and aims to build a framework and platform for the operating system of intelligent terminal devices, with the characteristics of distributed and full-scenario, and supports multiple hardware platforms and device types. Atomic services are user application forms that have independent entrances (users can directly trigger by clicking), are free of installation (no need to display installation, and can be used after being installed by the system program framework background), and can provide users with one or more convenient services. For example, a traditional "shopping application A" that needs to be installed becomes a "shopping atomic service A" that can be installed free of charge after adjusting the design according to the atomic service concept. Compared with traditional applications, atomic services do not have application icons on the device desktop, but display important information in the service center or desktop in the form of service cards. Users can enter the service interface of atomic services by clicking on the service card, and each atomic service includes at least one service card, which can be presented in multiple forms such as icons, cards, and voices to flexibly meet user needs. Atomic services support circulation on multiple devices, such as mobile phones, tablets, smart screens, etc., breaking device boundaries and realizing multi-device linkage.
[0064] Based on the atomic service sharing architecture proposed in the embodiment of the present invention, a complete flow chart of implementing atomic service sharing is shown as follows: Figure 2 As shown, first, the initiator device initiates a shared atomic service request for a certain atomic service (such as atomic service 2), and copies the installation package of the atomic service to the shared directory of the distributed file service through the application framework where the initiator device is located; then, the application framework where the initiator device is located carries the running status of the atomic service to initiate a sharing request to the target device; then, a communication session is established through the daemon process of the distributed file service module in the initiator device and the daemon process of the distributed file service module in the target device, so that the target device reads the content in the shared directory of all interconnected devices, thereby downloading the installation package of the atomic service and silently installing it; finally, the atomic service is started through the application framework where the target device is located and the running status is restored, so that the atomic service is shared only to the target device. Among them, the shared directory refers to a public directory in the distributed file service module for access by both devices, which can be a network shared folder, a cloud storage service, or a file server in a local area network, etc. All shared atomic service information and storage paths can be queried through the shared directory, that is, the implementation of the atomic service is based on the establishment of a bridge based on the shared directory. It is worth stating that Figure 2 and Figure 3The meaning of "migration" and "sharing" in the "operation of migrating / sharing atomic services" or "sharing messages" refers to achieving the purpose of sharing or migrating atomic services by sharing the installation package of atomic services between different devices. The technical means adopted by the present invention to achieve sharing or migrating atomic services are the same. For the convenience of description, the present invention mainly elaborates on sharing atomic services as the research purpose, but in fact, the purpose of silently migrating atomic services is also achieved by sharing atomic services.
[0065] Based on the above analysis, the embodiments of the present invention respectively elaborate on the implementation process of shared atomic service from the perspectives of the initiator device and the target device, as follows:
[0066] For the initiator device that initiates the shared atomic service, this embodiment proposes a method for sharing the atomic service, such as Figure 2 , Figure 3 and Figure 4 As shown, the steps of the method in this embodiment include:
[0067] Step S100: Initiate a sharing request to the target atomic service.
[0068] Specifically, the atomic service installation package retrieval function of the application framework is used to search for the installation package of the target atomic service and the storage path of the installation package to obtain the target atomic service; before the sharing or migration request is initiated, the current running status information of the target atomic service is captured, including service-related data, user settings, progress information, etc.; and then based on the installation package name of the target atomic service, a sharing or migration request is initiated to the target atomic service.
[0069] Step S200: In response to finding the installation package of the target atomic service, obtaining the installation package to be shared.
[0070] Specifically, in response to finding the installation package of the target atomic service by using the atomic service installation package retrieval function of the application framework, the installation package to be shared is obtained. Then, the installation package to be shared is copied to the shared directory to obtain an updated shared directory, and the installation package to be shared is synchronized to the network through the daemon process of the updated shared directory. The network here refers to the local area network where the initiator device and the target device are located. The local area network may include only these two devices, or may include other devices in addition to these two devices. The present invention does not make specific restrictions on this, and all devices in the local area network can realize shared atomic services.
[0071] Step S300: copy the installation package to be shared to a shared directory, and send the installation package to be shared to a target device through the shared directory.
[0072] Specifically, the installation package to be shared is copied to a shared directory using the copy function of the atomic service installation package of the application framework. The copy process can be completed through a file manager, a command line tool, or a dedicated file transfer software. After the installation package to be shared is copied to the shared directory, the daemon process of the distributed file service module synchronizes the file information newly added to the shared directory to other devices in the network. Specifically, in response to monitoring that the target device is online, a communication session is established between the daemon process of the initiator device and the daemon process of the target device through the shared directory, and the installation package to be shared is sent to the target device.
[0073] Furthermore, in order to improve the security of information transmission, the installation package to be shared may be copied and transmitted in an encrypted manner to prevent data leakage or tampering.
[0074] Furthermore, it also includes sharing the running status of the target atomic service to the target device, specifically, the initiator device sends a sharing message to the target device, wherein the content of the sharing message includes shared target atomic service information and the running status information of the target atomic service, as well as the installation package information in the corresponding shared directory.
[0075] To ensure the integrity of data transmission, you can choose Bluetooth, NFC and other transmission mechanisms to transmit data.
[0076] For a target device receiving a shared atomic service, this embodiment proposes a method for sharing an atomic service, such as Figure 2 , Figure 3 and Figure 5 As shown, the steps of the method in this embodiment include:
[0077] Step S400: in response to receiving a sharing request initiated by an initiator device, obtaining a sharing message.
[0078] Specifically, in response to the application framework of the target device receiving a sharing request initiated by the initiator device, a sharing message is obtained, wherein the sharing message includes installation information of the target atomic service and operating status information of the target atomic service, as well as one or more of the installation package information in the corresponding shared directory.
[0079] It is easy to understand that when sending a sharing request and transmitting information between the initiator device and the target device, it is necessary to ensure that both devices have the permission to access the above shared directory. For example, according to the actual network environment, you can configure the access rights of the LAN file server, or set network sharing permissions, share cloud storage links or passwords to ensure the access rights of both devices.
[0080] Step S500: In response to receiving the installation package information corresponding to the sharing message, obtaining the installation package to be shared.
[0081] Specifically, in response to receiving the installation package information of the target atomic service corresponding to the shared message through the shared directory of the distributed file service module, the installation package to be shared, that is, the installation package of the target atomic service, is obtained, and the installation package of the target atomic service is shared from the initiator device to the receiving device.
[0082] Step S600: Install the installation package to be shared to obtain the target atomic service.
[0083] Specifically, based on the sharing message, determine the running status information of the atomic service before sharing; silently install the installation package to be shared to obtain the initial target atomic service; start the initial target atomic service, and restore the running status of the target atomic service before sharing according to the running status information to determine the target running status. Specifically, the running status information of the target atomic service before sharing can be restored or synchronized to the target atomic service that has just been started through a state recovery mechanism; finally, based on the initial target atomic service and the target running status, obtain the target atomic service, so that the target atomic service in the target device and the initiator device maintain the same running status.
[0084] Furthermore, an error handling mechanism is constructed. This error handling mechanism is used to promptly notify users and provide necessary interactive interfaces when an abnormality occurs in the installation or recovery of the running status of the installation package of the target atomic service, and even record relevant operation logs, so that problems can be quickly located and repaired when they occur, thereby ensuring the correct recovery of the service status and the normal operation of the functions.
[0085] It is worth noting that since atomic service is a lightweight service form running on the HarmonyOS system, the compatibility and stability of the system also need to be considered during the migration and sharing process. Ensure that the service can switch seamlessly and continue to run between different devices, thereby providing a consistent and continuous user experience. The flow of atomic services can be recommended by the system or manually by the user, enabling close and fast sharing. For developers, atomic services enable one-time development and multi-terminal deployment, reducing development costs and improving application distribution efficiency and conversion rates. For users, atomic services provide new services and interaction methods, reducing interference to users during the installation process and improving the service experience.
[0086] The method of the present invention realizes the sharing and transmission of target atomic service information between the initiator device side and the target device side in the same local area network through a shared directory, which is no longer dependent on the network environment, and effectively improves the efficiency and scalability of the shared atomic service. It is easy to understand that the method of the embodiment of the present invention can not only exchange information between devices in the same local area network through the shared directory in the distributed file service module, thereby realizing shared atomic services; it can also enable the devices of both parties to realize information interaction through the cloud shared atomic service in a networked state (equivalent to the function of the shared directory being realized by the cloud), thereby realizing shared atomic services, and the present invention does not make specific restrictions on comparison.
[0087] like Figure 6 As shown, corresponding to the above-mentioned shared atomic service method applied to the initiator device side of the sharing action, an embodiment of the present invention provides a shared atomic service system, which includes:
[0088] A request sending module 610 is used to initiate a sharing request to a target atomic service;
[0089] A shared installation package query module 620, configured to obtain the installation package to be shared in response to finding the installation package of the target atomic service;
[0090] The shared installation package sending module 630 is used to send the installation package to be shared to the target device.
[0091] Specifically, in this embodiment, the specific functions of the above-mentioned shared atomic service system can also refer to the corresponding description in the above-mentioned shared atomic service method applied to the initiator device side of the sharing action, and will not be repeated here.
[0092] like Figure 7 As shown, corresponding to the above-mentioned shared atomic service method applied to the target device side of the sharing action, an embodiment of the present invention provides a shared atomic service system, which includes:
[0093] The request information receiving module 710 is used to obtain a sharing message in response to receiving a sharing request initiated by an initiator device;
[0094] The shared installation package receiving module 720 is used to obtain the installation package to be shared in response to receiving the installation package information corresponding to the sharing message;
[0095] The atomic service implementation module 730 is used to install the installation package to be shared and obtain the target atomic service.
[0096] Specifically, in this embodiment, the specific functions of the above-mentioned shared atomic service system can also refer to the corresponding description in the above-mentioned shared atomic service method applied to the target device side of the sharing action, and will not be repeated here.
[0097] Based on the above embodiments, the present invention further provides an intelligent terminal, whose principle block diagram can be shown as follows: Figure 8 As shown. The above-mentioned intelligent terminal includes a processor, a memory, a network interface and a display screen connected through a system bus. Among them, the processor of the intelligent terminal is used to provide computing and control capabilities. The memory of the intelligent terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a shared atomic service program. The internal memory provides an environment for the operating system in the non-volatile storage medium and the operation based on the shared atomic service program. The network interface of the intelligent terminal is used to communicate with an external terminal through a network connection. When the shared atomic service program is executed by the processor, the steps of any of the above-mentioned shared atomic service methods are implemented. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen.
[0098] Those skilled in the art will understand that Figure 8 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the smart terminal to which the scheme of the present invention is applied. The specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0099] In one embodiment, a smart terminal is provided, which includes a memory, a processor, and a shared atomic service program stored in the memory and executable on the processor. When the shared atomic service program is executed by the processor, the steps of any one of the shared atomic service methods provided in the embodiments of the present invention are implemented.
[0100] An embodiment of the present invention further provides a computer-readable storage medium, on which a shared atomic service program is stored. When the shared atomic service program is executed by a processor, the steps of any one of the shared atomic service methods provided in the embodiment of the present invention are implemented.
[0101] It should be understood that the serial numbers of the steps in the above embodiments do not imply a sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0102] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0103] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0104] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0105] In the embodiments provided by the present invention, it should be understood that the disclosed apparatus / terminal equipment and method can be implemented in other ways. For example, the apparatus / terminal equipment embodiments described above are only illustrative, for example, the division of the above modules or units is only a logical function division, and in actual implementation, other division methods can be used, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0106] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features therein may be replaced by equivalents. However, these modifications or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A shared atomic service method, characterized in that: The initiator device applied to the sharing action includes the following steps: Initiate a sharing request to the target atomic service; In response to finding the installation package of the target atomic service, obtaining the installation package to be shared; The installation package to be shared is copied to a shared directory, and the installation package to be shared is sent to the target device through the shared directory.
2. The shared atomic service method according to claim 1, characterized in that: The initiating a sharing request to the target atomic service includes: Searching for the installation package of the target atomic service and the storage path of the installation package to obtain the target atomic service; Based on the installation package name of the target atomic service, a sharing request is initiated to the target atomic service.
3. The shared atomic service method according to claim 1 or 2, characterized in that: The step of sending the installation package to be shared to the target device through the shared directory includes: In response to monitoring that the target device is online, a communication session is established between the daemon process of the initiator device and the daemon process of the target device through the shared directory, and the installation package to be shared is sent to the target device.
4. The shared atomic service method according to claim 3, characterized in that: Also includes: The running status of the target atomic service is shared to the target device.
5. A shared atomic service method, characterized in that: The target device applied to the sharing action includes the following steps: In response to receiving a sharing request initiated by an initiator device, obtaining a sharing message; In response to receiving the installation package information corresponding to the sharing message, obtaining the installation package to be shared; Install the installation package to be shared to obtain the target atomic service.
6. The shared atomic service method according to claim 5, characterized in that: The step of installing the installation package to be shared and obtaining a target atomic service includes: Based on the shared message, determine the running state information of the atomic service before sharing; Install the installation package to be shared to obtain the initial target atomic service; Starting the initial target atomic service, and restoring the running state of the target atomic service before sharing according to the running state information, and determining the target running state; Based on the initial target atomic service and the target operating state, a target atomic service is obtained.
7. A shared atomic service system, characterized in that: The system is used to implement the function of the shared atomic service method according to any one of claims 1 to 4, and includes: The request module is used to initiate a sharing request to the target atomic service; A shared installation package query module, configured to obtain the installation package to be shared in response to finding the installation package of the target atomic service; The shared installation package sending module is used to send the installation package to be shared to the target device.
8. A shared atomic service system, characterized in that: The system is used to implement the function of the shared atomic service method according to any one of claims 1 to 4, and includes: A request information receiving module, configured to obtain a sharing message in response to receiving a sharing request initiated by an initiator device; A shared installation package receiving module, configured to obtain the installation package to be shared in response to receiving the installation package information corresponding to the shared message; The atomic service implementation module is used to install the installation package to be shared and obtain the target atomic service.
9. An intelligent terminal, characterized in that: The intelligent terminal includes a memory, a processor, and a shared atomic service program stored in the memory and executable on the processor. When the shared atomic service program is executed by the processor, the steps of the shared atomic service method as described in any one of claims 1-4 or 5-6 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a shared atomic service program, and when the shared atomic service program is executed by the processor, the steps of the shared atomic service method as described in any one of claims 1-4 or 5-6 are implemented.
