Application processing method, computer readable storage medium, electronic device and computer program product

By detecting the application status and resource usage of the device, and migrating the application to a device with more abundant resources when the conditions are met, the problem of interruption of the background application of the mobile device due to resource limitations and insufficient power is solved, and the stability and battery life of the application are improved.

CN120085977APending Publication Date: 2025-06-03ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411981566.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

Due to system resource limitations and insufficient power, background applications on mobile devices are easily interrupted, affecting the user experience.

Method used

By detecting the application status and resource usage of the first and second devices, if the preset migration conditions are met, the target application is migrated to the second device with more abundant resources to run to achieve the keep-alive processing of the application.

Benefits of technology

It effectively solves the problem of background application interruption caused by resource limitations and insufficient power, reduces resource consumption of mobile devices, and improves battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120085977A_ABST
    Figure CN120085977A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an application processing method, a computer readable storage medium, an electronic device and a computer program product, and the method comprises the steps: obtaining a first application state and a first resource use condition of first equipment, and obtaining a second application state and a second resource use condition of second equipment, the first equipment is connected with the second equipment through a network; and in response to the condition that the first application state, the second application state, the first resource use condition and the second resource use condition meet a preset migration condition, migrating part or all of one or more target applications of the first equipment to the second equipment to run, so as to keep alive the one or more target applications, the problem of background application interruption caused by system resource limitation and insufficient electric quantity in related technologies can be solved, the resource consumption of the mobile equipment is effectively reduced, and the cruising ability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of communications, and more particularly, to an application processing method, a computer-readable storage medium, an electronic device, and a computer program product. Background Art

[0002] On mobile devices, the operating system usually restricts or even closes background-running applications to save power or system resources, which affects the user experience in some applications that need to run in the background for a long time (such as navigation, real-time communication, data collection, etc.).

[0003] Regarding the problem of background application interruption caused by system resource limitations and insufficient power in related technologies, no solution has been proposed yet. Summary of the Invention

[0004] Embodiments of the present application provide an application processing method, a computer-readable storage medium, an electronic device, and a computer program product to at least solve the problem of background application interruption caused by system resource limitations and insufficient power in related technologies.

[0005] According to an embodiment of the present application, an application processing method is provided, which is applied to a first device. The method includes:

[0006] Obtaining a first application state and a first resource usage of the first device, and obtaining a second application state and a second resource usage of a second device, where the first device and the second device are connected through a network;

[0007] In response to the first application state, the second application state, the first resource usage, and the second resource usage satisfying a preset migration condition, migrating part or all of one or more target applications of the first device to the second device for running to perform a keep-alive process on the one or more target applications.

[0008] According to another embodiment of the present application, an application processing method is provided, which is applied to a second device. The method includes:

[0009] Receiving a migration indication message for migrating part or all of one or more target applications from a first device;

[0010] Obtaining a second application state and a second resource usage of the second device, where the first device and the second device are connected through a network;

[0011] In response to the second application state and the second resource usage satisfying a preset migration condition, running the one or more target applications to perform a keep-alive process on the one or more target applications.

[0012] According to another embodiment of the present application, there is also provided a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.

[0013] According to another embodiment of the present application, there is also provided an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0014] According to another embodiment of the present application, there is also provided a computer program product including a computer program, and the computer program implements the steps in any one of the above method embodiments when executed by a processor.

[0015] Through the above embodiments of the present application, by detecting the running application status and resource usage on the device and migrating the target application to run on the connected second device when the detected application status and resource usage meet the preset migration conditions, the problem of background application interruption caused by system resource limitations and insufficient battery power in the related art can be solved, effectively reducing the resource consumption of the mobile device and improving the battery life. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a hardware structure block diagram of the mobile terminal on which the method embodiment of the present application runs;

[0017] Figure 2 is the flow of the application processing method according to the embodiment of the present application Figure 1 ;

[0018] Figure 3 is the flow of the application processing method according to the embodiment of the present application Figure 2 ;

[0019] Figure 4 is a flowchart of the method for application migration processing between devices according to the embodiment of the present application;

[0020] Figure 5 is the block of the application processing device according to the embodiment of the present application Figure 1 ;

[0021] Figure 6 is the block of the application processing device according to the embodiment of the present application Figure 2 . DETAILED DESCRIPTION OF THE EMBODIMENTS

[0022] The embodiments of the present application will be described in detail below with reference to the drawings and in conjunction with the embodiments.

[0023] It should be noted that the terms "first", "second", etc. in the description, claims and the above-mentioned drawings of this application are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence.

[0024] The method embodiments provided in the embodiments of this application can be executed on a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 is a hardware structure block diagram of the mobile terminal on which the method embodiment of this application runs. As Figure 1 shown, the mobile terminal may include one or more ( Figure 1 only one is shown in the figure) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Among them, the above-mentioned mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown is only schematic and does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may further include more or fewer components than Figure 1 shown in the figure, or have a different configuration from Figure 1 shown in the figure.

[0025] The memory 104 can be used to store computer programs. For example, software programs and modules of application software, such as the computer program corresponding to the application processing method in the embodiments of this application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above-mentioned method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely set relative to the processor 102, and these remote memories can be connected to the mobile terminal through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and their combinations.

[0026] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the mobile terminal. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (Radio Frequency, abbreviated as RF) module, which is used to communicate with the Internet wirelessly.

[0027] In this embodiment, an application processing method running on the above-mentioned mobile terminal or network architecture is provided. Figure 2 It is the flow of the application processing method according to the embodiments of the present application. Figure 1 , such as Figure 2 shown, applied to the first device, and the flow includes the following steps:

[0028] Step S202, obtain the first application state and the first resource usage of the first device, and obtain the second application state and the second resource usage of the second device, where the first device and the second device are connected through a network;

[0029] The first device and the second device in the embodiments of the present application can be one or more of a mobile phone, a tablet, a computer, a monitor, a private server, etc. The first device and the second device are connected in a high-bandwidth and low-latency communication network through a 5G cellular network or near-field communication (NFC, wi-Fi Direct, etc.) to achieve high-speed data transmission and real-time interconnection between devices.

[0030] Step S204, in response to the first application state, the second application state, the first resource usage, and the second resource usage meeting the preset migration conditions, migrate part or all of one or more target applications of the first device to the second device for running, so as to perform a keep-alive process on the one or more target applications. Migrating part or all of the target application to the second device can be only migrating part of the application data related to the target application, such as the running process, etc.; it can also be migrating all the application data of the target application to the second device and running the application on the second device.

[0031] Through the above steps S202 to S204, the problem of background application interruption caused by system resource limitations and insufficient battery power in the related art is solved, the resource consumption of the mobile device is effectively reduced, and the battery life is improved.

[0032] Embodiments of the present application can be widely applied to various scenarios of multi-device collaborative work, such as smart home, smart office, smart education, smart healthcare, etc. In the smart home scenario, users can migrate resource-intensive applications (such as high-definition video playback, large games, etc.) from their mobile phones to smart TVs or game consoles to obtain a better entertainment experience. In the smart office scenario, users can migrate compute-intensive applications (such as video conferencing, large file processing, etc.) from their laptops to desktops or servers to improve work efficiency. In the smart education scenario, teachers can migrate teaching applications from personal devices to smart devices in the classroom to provide richer teaching resources. In the smart healthcare scenario, doctors can migrate medical applications from personal devices to medical devices in the hospital to provide more accurate medical services. In addition, the method of the present application can also be applied to cloud service scenarios, such as cloud gaming, cloud office, cloud education, etc. By migrating applications to run on cloud servers, remote access and control of applications can be achieved, improving the availability and convenience of applications.

[0033] In embodiments of the present application, in cases where resources are scarce or the network is unstable, by migrating applications to devices with more abundant resources, it is possible to effectively prevent applications from being terminated by the system due to insufficient resources, ensuring the continuous operation of applications, especially the continuous operation of background-running applications, and enhancing the user experience. Application scenarios include, but are not limited to, the interconnection between mobile devices and home smart devices, such as application migration between mobile phones and TVs, tablets, smart speakers, etc., to make full use of the resources in the home network.

[0034] Detect the application status on the first device. Once it is detected that the application enters the background or faces system resource limitations, the application status, data, and process information are transferred to an idle second device through a migration mechanism. The migration mechanism needs to transfer data through efficient protocols (such as gRPC, WebSocket) to ensure that the application status can be seamlessly transferred to the background environment of the second device for operation.

[0035] Deploy a virtual machine or lightweight container environment on the second device (such as a PC, server) to run the application program transferred from the first device. These devices provide computing power support. Through load balancing and dynamic allocation mechanisms, their CPU, memory, storage, and other resources are allocated to ensure the stable operation of the application on this device. Technologies such as Docker or Kubernetes can be used to achieve containerized deployment to ensure that the application can run flexibly between different platforms.

[0036] The target application runs on the second device for real-time data synchronization. Through streaming technology, the application interface and interactive operations on the second device are streamed back to the first device, allowing users to continue using and controlling the application on the first device, thus achieving cross-device real-time interaction. High-quality streaming can be achieved with technologies such as RTSP and WebRTC to ensure a smooth experience with low latency and high bandwidth.

[0037] Dynamically select a suitable device for application migration based on factors such as network status, battery power, and computing power requirements. When the application needs to be migrated back to the first device, automatically migrate the application state and data from the second device back to the first device to achieve seamless application switching and ensure the continuity of the user experience.

[0038] In one embodiment, during device interconnection and data migration, user data privacy and security can be ensured through means such as encryption (e.g., AES, TLS protocols) and authentication (e.g., OAuth, two-factor authentication). Resources and data accessible by different devices can also be restricted to prevent unauthorized operations.

[0039] In the embodiment of this application, the above step S204 may specifically include: in response to the first application state, the second application state, the first resource usage, and the second resource usage meeting the preset migration conditions, display the currently connected multiple devices on the display interface; in response to a trigger instruction to migrate to the second device among the multiple devices, migrate one or more target applications to the second device for running to keep one or more target applications alive; or in response to whether the first application state, the second application state, the first resource usage, and the second resource usage meet the preset migration conditions, select the second device from the currently connected multiple devices according to the preset selection rule; migrate one or more target applications to the second device for running to keep one or more target applications alive. Through this intelligent selection mechanism, it is ensured that the application can run on the best device, which not only improves the running efficiency of the application but also optimizes the resource allocation between devices and avoids resource waste. It is particularly applicable to office environments, such as application migration between laptops and desktops, and projection devices in conference rooms, to adapt to different work requirements and environmental changes.

[0040] In one embodiment, if the first application state is running in the background, the first resource usage is such that the remaining resource amount is less than the first preset threshold and / or the network latency is greater than the second preset threshold, it is determined that the first application state and the first resource usage meet the preset migration condition; if the second application state is installed, the second resource usage is such that the remaining resource amount is greater than the first preset threshold and / or the network latency is less than the second preset threshold, it is determined that the second application state and the second resource usage meet the preset migration condition; wherein, the first resource usage and the second resource usage include the value of the remaining resources and the network latency, and the remaining resources include at least one of the following: remaining battery power, remaining CPU. By setting thresholds, the resource status of the device can be automatically identified, application migration can be achieved, the trouble of manual operation by the user is reduced, and it is particularly suitable for automatically migrating applications to a fixed device for running when the mobile device has low power or high CPU load to ensure the stability and continuity of the application.

[0041] Further, specifically, displaying multiple currently connected devices on the display interface may include: obtaining the resource usage corresponding to the multiple devices, wherein the resource usage includes the value of the remaining resources and the network latency, and the remaining resources include at least one of the following: remaining battery power, remaining CPU; determining the migration recommendation index of the multiple devices according to the resource usage, wherein the migration recommendation index is in a direct proportion relationship with the value of the remaining resources, and the migration recommendation index is in an inverse proportion relationship with the network latency; sorting the multiple devices according to the magnitude of the migration recommendation index of the multiple devices, and displaying the multiple devices according to the sorting result. This sorting mechanism based on resource usage provides an intuitive device selection interface for the user, enabling the user to quickly identify which devices are more suitable for running specific applications, and improving the efficiency and accuracy of application migration. Application scenarios include a home entertainment center, such as migrating a game application from a mobile phone to a game console or a smart TV for a better gaming experience.

[0042] In the embodiment of the present application, specifically, the second device may be selected from the multiple currently connected devices in the following manner: obtaining the resource usage corresponding to the multiple devices, wherein the resource usage includes the remaining resource amount; determining the migration recommendation index of the multiple devices according to the resource usage, wherein the migration recommendation index is in a direct proportion relationship with the remaining resource amount, that is, the greater the remaining resource amount, the greater the migration recommendation index; determining the device with the largest migration recommendation index as the second device. This mechanism can automatically select the device with the most abundant resources for application migration, which is particularly suitable for scenarios such as cloud gaming and cloud office, ensuring that the application runs on the device with the optimal resources and improving the running quality and user experience of the application.

[0043] In another embodiment, the first device and the second device can also synchronize data. On the one hand, the associated data of the current state of one or more target applications are respectively encapsulated into data packets; the data packets of one or more target applications are encrypted and transmitted to the second device, so that the second device loads the one or more target applications to the corresponding current state. The encrypted transmission of data packets ensures the security of application data and prevents data leakage and tampering during transmission. It is particularly suitable for application migration involving personal privacy and sensitive information, such as banking applications, health applications, etc., and enhances user trust and security in application migration.

[0044] On the other hand, during the migration process, the data stream generated by the state changes and interactive operations of one or more target applications on the second device is received at a preset time period; the data of the one or more target applications on the second device are synchronized according to the data stream. This data synchronization mechanism can update the state of the application on the first device in real time, so that the user can monitor the running status of the application on the second device in real time on the first device, which is particularly suitable for remote monitoring and collaboration scenarios, such as distance education, telemedicine, etc., and improves the availability and convenience of the application.

[0045] In another embodiment, one or more target application operation monitoring windows are displayed at a preset position of the current interface, and the operation status of the one or more target applications on the second device is displayed in the operation monitoring window. The design of this operation monitoring window provides the user with an intuitive application operation status view, so that the user can understand the operation status of the application on the second device in real time, which is particularly suitable for scenarios that require real-time monitoring of the application operation status, such as stock trading, real-time data analysis, etc., and improves the real-time performance and accuracy of the application.

[0046] Furthermore, a control instruction for controlling one or more target applications in the running monitoring window is received; one or more target applications are controlled according to the control instruction, and the data generated by the control is synchronized to the second device. This control instruction synchronization mechanism enables the user to control the application on the second device in real time on the first device, which is particularly suitable for scenarios such as remote office and remote education, and improves the interactivity and collaboration efficiency of the application.

[0047] Furthermore, a migration control button can be displayed at a preset position in the running monitoring window, wherein the migration control button includes: pause, resume, and re-migrate; in response to a touch command on the migration control button, the migration is adjusted accordingly. This design of the migration control button provides users with flexible application migration control, allowing users to pause, resume, or re-migrate applications at any time according to actual needs. It is particularly suitable for scenarios that require frequent device switching, such as mobile office, mobile education, etc., and improves the flexibility and convenience of application migration.

[0048] During the data transmission process, at least one of the following information about the data transmission can also be recorded: time, device, and status. By recording the data transmission information, a detailed application migration history record can be provided to the user, which is particularly suitable for scenarios where the application migration process needs to be traced, such as enterprise resource management, equipment troubleshooting, etc., improving the traceability and management efficiency of application migration.

[0049] In another embodiment, after the above step S204, the above method further includes: receiving a migration instruction that triggers the migration of one or more target applications, migrating one or more target applications from the second device; or migrating one or more target applications from the second device in response to meeting a preset migration condition. This migration mechanism enables applications to be flexibly switched between devices, and is particularly suitable for scenarios where the device resource status changes, such as when a mobile device recovers from a low power state to a normal power state, the application is automatically migrated back to the mobile device for operation to meet the user's mobile needs, thereby improving the flexibility of the application and the user experience.

[0050] In this embodiment, another application processing method running on the above mobile terminal or network architecture is provided. Figure 3 The process of the application processing method according to the embodiment of the present application is Figure 2 ,like Figure 3 As shown, applied to a second device, the method includes:

[0051] Step S302, receiving a migration instruction message for a first device to migrate part or all of one or more target applications;

[0052] Step S304, obtaining a second application state and a second resource usage of the second device, wherein the first device and the second device are connected via a network;

[0053] Step S306 , in response to the second application state and the second resource usage satisfying a preset migration condition, running one or more target applications to perform a keep-alive process on the one or more target applications.

[0054] Through the above steps S302 to S306, the resources of the second device can be effectively utilized to provide a continuous running environment for the application on the first device. This is particularly suitable for resource complementarity between mobile devices and fixed devices to ensure that the application runs on a device with more abundant resources, thereby improving the application's operating efficiency and user experience.

[0055] In one embodiment, if the second application state is installed, the second resource usage is that the remaining resource amount is greater than the first preset threshold and / or the network delay is less than the second preset threshold, it is determined that the second application state and the second resource usage meet the preset migration condition; wherein the second resource usage includes the value of the remaining resource and the network delay, and the remaining resource includes at least one of the following: remaining power, remaining CPU. By setting the threshold, the resource state of the second device can be automatically identified, and the automatic reception and operation of the application can be realized, which reduces the trouble of manual operation by the user, and is particularly suitable for fixed devices to automatically receive applications on mobile devices when resources are sufficient to ensure the stability and continuity of the application.

[0056] In another embodiment, a data packet of one or more target applications sent by a first device is received; the data packet is decapsulated to obtain the associated data of the current state of the one or more target applications; and the one or more target applications are loaded to the current state according to the associated data. This data packet receiving and decapsulation mechanism can quickly and accurately load the application to the second device, and is particularly suitable for scenarios that require fast device switching, such as when a mobile device is low on power, quickly migrating the application to a fixed device to run, to ensure the continuity and efficiency of the application.

[0057] Furthermore, after loading one or more target applications to the current state according to the associated data, the above method also includes: if it is to migrate part of one or more target applications, perform power-related processing in the current state and send the processing results to the first device; if it is to migrate all of one or more target applications, send the state changes and interactive operations of one or more target applications to the first device in a preset time period. The data stream generated by the operation is synchronized with the first device. This data processing and synchronization mechanism can ensure the consistency of the state of the application on the first device and the second device, and is particularly suitable for application scenarios that require real-time synchronization of data, such as online collaboration, real-time data analysis, etc., which improves the real-time performance and accuracy of the application.

[0058] In another embodiment, the first application state and the first resource load of the first device are obtained; in response to the first application state and the first resource usage satisfying the preset migration condition, a prompt is displayed on the interface to migrate one or more target applications back to the first device; in response to a migration trigger instruction that triggers the migration of one or more target applications, the one or more target applications are migrated back to the first device for operation. This migration prompt mechanism can intelligently prompt the user to migrate the application back to the first device for operation based on the resource state of the first device, and is particularly suitable for automatically migrating the application back to the mobile device when the mobile device resources are restored, so as to meet the user's mobile needs and improve the flexibility of the application and the user experience.

[0059] Embodiments of this application are applicable to users who own multiple smart devices (such as mobile phones, tablets, PCs, private servers), and these devices can be interconnected through 5G, Wi-Fi, or near-field communication. It supports users to seamlessly migrate computing tasks among mobile devices, home PCs, company computers, and tablets, especially suitable for situations where background applications need to run continuously in mobile scenarios.

[0060] Embodiments of this application rely on high-bandwidth and low-latency network connection environments, such as 5G, Wi-Fi 6, etc., to ensure that the data transmission speed and response time between devices meet the requirements. Such network environments can support fast data synchronization and application migration between devices, enabling real-time streaming of application interfaces to achieve a high degree of smoothness.

[0061] In a smart home or smart office environment, users' devices can be more conveniently interconnected and share resources. For example, devices such as private servers, smart TVs, and office computers at home can be connected as a whole to provide computing support for mobile devices. In this environment, users can switch devices at any time at home or in the office to achieve a more efficient workflow.

[0062] During going out or long-term movement, the power and computing power of mobile devices such as mobile phones may face shortages. When the user goes out or moves, applications can be migrated to the cloud or a private server to run, so as to save the power of mobile devices, extend the battery life of the devices, and enable users to continuously access their applications and services to meet the real-time operation requirements of applications such as navigation, social media, and video calls.

[0063] In industries such as healthcare and finance, the requirements for data privacy and security are relatively high. By migrating application operations and data storage to a private server or a secure device, it can protect user data privacy while meeting the background operation requirements. In this environment, data transmission and permission management between devices need to be encrypted and authenticated to ensure that sensitive information is protected during migration and streaming.

[0064] In scenarios that require real-time data processing and operation, such as online games, virtual reality (VR), augmented reality (AR) applications, or high-definition video conferencing scenarios, low-latency real-time data synchronization and smooth multi-device interaction are particularly important. Embodiments of this application utilize 5G and near-field communication to achieve fast response and streaming between devices, ensuring real-time switching between different devices and high-quality interaction experiences.

[0065] Taking the first device as a mobile device and the second device as a target device as an example, embodiments of this application will be illustrated below.

[0066] Figure 4 is a flowchart of the method for processing application migration between devices according to an embodiment of this application, as Figure 4 shown, including:

[0067] Step S401, Device connection and environment initialization;

[0068] Interconnection of terminal devices: Establish a network connection between the mobile device and other terminal devices (PC, tablet, server, etc.) through 5G, Wi-Fi, or near-field communication (such as NFC) to ensure a high-bandwidth and low-latency communication environment.

[0069] Environment detection and preparation: Detect the current environment on the mobile device, including information such as battery power, CPU load, and network quality, and initialize the computing resource environment (such as virtual machines or containers) on other terminal devices to prepare for receiving application migration.

[0070] Step S402, Application status monitoring and migration trigger;

[0071] Background status detection: Real-time monitor the application status through the mobile device. Once the application enters the background or it is detected that the resources of the mobile device are insufficient (computing power, battery power, memory, etc.), trigger the migration decision-making process.

[0072] Migration condition judgment: Judge whether migration is required according to the application requirements and device resource status (computing power, battery power, memory), and select the most suitable target device. If the migration conditions are met, execute the application migration operation.

[0073] Active migration: Perform migration through the user's active background suspension and pointing to other devices. The migratable devices will be directly displayed on the UI interface.

[0074] Task migration: When the user is running a local large model for graphics (generating pictures, generating videos, etc.) or the resources are insufficient, the task is automatically transferred to other devices that have been started for completion, and the result is directly returned.

[0075] Step S403, Data migration and encrypted transmission;

[0076] Utilize AI image recognition to apply the current status: The mobile device encapsulates the current status of the application, including process data, UI status, cache, interface location, game interface operation information, etc., into a transmissible data packet.

[0077] Data encryption and transmission: Encrypt the data packet (such as AES, TLS encryption), and then securely transmit it to the target device through the communication management module. The target device receives the application data after decryption and initializes the application, directly loading and operating it to the corresponding status.

[0078] Step S404, Application operation and resource allocation on the target device;

[0079] Initialize the operating environment: On the target device (such as a PC or server), use virtual machines or container technology to deploy the migrated application data and allocate the required resources (such as CPU and memory) to it.

[0080] Background operation and resource management: The computing resource management module on the target device is responsible for allocating computing resources to the application and dynamically adjusting the allocation according to demand to ensure the stable operation of the application in the background.

[0081] Step S405, data synchronization and interface streaming;

[0082] Application interface streaming: Through the data synchronization and streaming module, the application's running interface and interactive operations on the target device are streamed back to the mobile device in real time, ensuring that users can continue to operate and monitor the application on the mobile device.

[0083] Real-time data synchronization: The target device will synchronize the application status changes, data updates, etc. to the mobile device in real time to ensure the consistent running experience of the application between the two devices. The use of technologies such as WebRTC and RTSP can ensure low-latency interface and data streaming transmission.

[0084] Step S406, intelligent scheduling and dynamic migration;

[0085] Dynamic scheduling monitoring: Continuously monitor the status of mobile devices and target devices, including power, network, resource load, etc. Dynamically adjust the running device of the application according to the changes, such as triggering the migration and relocation of the application when necessary.

[0086] Data migration: When the application needs to return to the foreground of the mobile device, the current application state data is migrated from the target device back to the mobile device to ensure data integrity and consistency.

[0087] Fetch and restore: The mobile device restores the application after receiving the application state, ensuring a seamless and continuous user experience.

[0088] Step S407: security and rights management.

[0089] Authentication and permission management: During the entire migration process, multi-factor authentication and data encryption are used to ensure the security of data transmission and prevent unauthorized device access or data leakage.

[0090] Data logging: During migration and streaming operations, data transmission time, device, status and other information are automatically recorded to facilitate subsequent monitoring, analysis and troubleshooting.

[0091] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0092] In this embodiment, an application processing device is further provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated. Applied to the first device, Figure 5 is a block diagram of the application processing device according to an embodiment of the present application Figure 1 as Figure 5 shown, the device includes:

[0093] An acquisition module 52, configured to acquire the first application state and the first resource usage of the first device, and acquire the second application state and the second resource usage of the second device, where the first device and the second device are connected through a network;

[0094] A migration module 54, configured to, in response to the first application state, the second application state, the first resource usage, and the second resource usage satisfying a preset migration condition, migrate part or all of one or more target applications of the first device to the second device for running, so as to perform a keep-alive process on the one or more target applications.

[0095] In this embodiment, another application processing device is further provided, which is applied to the second device. Figure 6 is a block diagram of the application processing device according to an embodiment of the present application Figure 2 as Figure 6 shown, the device includes:

[0096] A receiving module 62, configured to receive a migration indication message for migrating part or all of one or more target applications from the first device;

[0097] A second acquisition module 64, configured to acquire the second application state and the second resource usage of the second device, where the first device and the second device are connected through a network;

[0098] An operation module 66, configured to run one or more target applications in response to the second application state and the second resource usage condition satisfying a preset migration condition, so as to perform a keep-alive process on the one or more target applications.

[0099] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned various modules are respectively located in different processors in any combination form.

[0100] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is configured to execute the steps in any one of the above method embodiments when running.

[0101] In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks, or optical disks and other various media that can store computer programs.

[0102] An embodiment of the present application also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0103] In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input / output device. Wherein, the transmission device is connected to the above-mentioned processor, and the input / output device is connected to the above-mentioned processor.

[0104] Specific examples in this embodiment may refer to the examples described in the above embodiments and exemplary embodiments, and will not be repeated here.

[0105] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order than here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.

[0106] The above are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application shall be included within the protection scope of the present application.

Claims

1. An application processing method, characterized in that: Applied to a first device, the method includes: Acquire a first application state and a first resource usage of the first device, and acquire a second application state and a second resource usage of a second device, wherein the first device and the second device are connected via a network; In response to the first application state, the second application state, the first resource usage and the second resource usage satisfying preset migration conditions, part or all of one or more target applications of the first device are migrated to the second device for execution to keep the one or more target applications alive.

2. The method according to claim 1, characterized in that In response to the first application state, the second application state, the first resource usage, and the second resource usage satisfying a preset migration condition, migrating one or more target applications to the connected second device for execution to keep the one or more target applications alive includes: In response to the first application state, the second application state, the first resource usage, and the second resource usage satisfying the preset migration condition, displaying multiple currently connected devices on a display interface; in response to a trigger instruction to trigger migration to a second device among the multiple devices, migrating the one or more target applications to the second device for execution, so as to keep the one or more target applications alive; or In response to whether the first application state, the second application state, the first resource usage and the second resource usage meet the preset migration condition, select a second device from multiple currently connected devices according to a preset selection rule; migrate the one or more target applications to the second device for execution to keep the one or more target applications alive.

3. The method according to claim 2, characterized in that The method further comprises: If the first application state is background running, the first resource usage is that the remaining resource amount is less than a first preset threshold and / or the network delay is greater than a second preset threshold, it is determined that the first application state and the first resource usage meet the preset migration condition; If the second application state is installed, the second resource usage is that the remaining resource amount is greater than the first preset threshold and / or the network delay is less than the second preset threshold, determine that the second application state and the second resource usage meet the preset migration condition; The first resource usage and the second resource usage include a value of remaining resources and a network delay, and the remaining resources include at least one of the following: remaining power and remaining CPU.

4. The method according to claim 2, characterized in that: The display interface shows the multiple devices currently connected, including: Obtain resource usage corresponding to the multiple devices, wherein the resource usage includes the value of remaining resources and network delay, and the remaining resources include at least one of the following: remaining power and remaining CPU; Determine migration recommendation indexes of the multiple devices according to the resource usage, wherein the migration recommendation index is directly proportional to the value of the remaining resources, and the migration recommendation index is inversely proportional to the network delay; The multiple devices are sorted according to the migration recommendation indexes of the multiple devices, and the multiple devices are displayed according to the sorting result.

5. The method according to claim 2, characterized in that: Selecting a second device from multiple currently connected devices according to a preset selection rule includes: Obtain resource usage corresponding to the multiple devices, wherein the resource usage includes the remaining resource amount; Determine migration recommendation indexes of the plurality of devices according to the resource usage, wherein the migration recommendation indexes are in direct proportion to the remaining resource amounts; It is determined that the device with the largest migration recommendation index is the second device.

6. The method according to claim 2, characterized in that The method further comprises: Encapsulating the associated data of the current status of the one or more target applications into data packets respectively; The data packets of the one or more target applications are encrypted and transmitted to the second device respectively, so that the second device loads the one or more target applications to the corresponding current states.

7. The method according to claim 6, characterized in that The method further comprises: receiving data streams generated by state changes and interactive operations of the one or more target applications on the second device at a preset time period; The data of the one or more target applications on the second device are synchronized according to the data stream.

8. The method according to claim 7, characterized in that The method further comprises: An operation monitoring window of the one or more target applications is displayed at a preset position of the current interface, and the operation monitoring window displays the operation status of the one or more target applications on the second device.

9. The method according to claim 8, characterized in that The method further comprises: receiving a control instruction for controlling the one or more target applications in the operation monitoring window; The one or more target applications are manipulated according to the manipulation instruction, and data generated by the manipulation is synchronized to the second device.

10. The method according to claim 8, characterized in that The method further comprises: Displaying a migration control button at a preset position of the operation monitoring window, wherein the migration control button includes: pause, resume, and return; In response to a touch instruction on the migration control button, the migration is adjusted accordingly.

11. The method according to claim 6 or 7, characterized in that: The method further comprises: During the data transmission process, at least one of the following information of the data transmission is recorded: time, device, and status.

12. The method according to claim 2, characterized in that: In response to the first application state, the second application state, the first resource usage, and the second resource usage satisfying a preset migration condition, after partially or completely migrating one or more target applications of the first device to the second device for execution to keep the one or more target applications alive, the method further includes: receiving a migration instruction for triggering migration of the one or more target applications, and migrating the one or more target applications from the second device; or In response to satisfying a preset migration condition, the one or more target applications are migrated back from the second device.

13. An application processing method, characterized in that: Applied to the second device, the method includes: Receiving a migration indication message from the first device to migrate part or all of one or more target applications; Acquire a second application state and a second resource usage of the second device, wherein the first device and the second device are connected via a network; In response to the second application state and the second resource usage satisfying a preset migration condition, the one or more target applications are run to perform keep-alive processing on the one or more target applications.

14. The method according to claim 13, characterized in that The method further comprises: If the second application state is installed, the second resource usage is that the remaining resource amount is greater than the first preset threshold and / or the network delay is less than the second preset threshold, determine that the second application state and the second resource usage meet the preset migration condition; The second resource usage includes the value of remaining resources and network delay, and the remaining resources include at least one of the following: remaining power and remaining CPU.

15. The method according to claim 13, characterized in that The method further comprises: receiving data packets of the one or more target applications sent by the first device; Decapsulating the data packet to obtain associated data of the current status of the one or more target applications; The one or more target applications are loaded into the current state according to the associated data.

16. The method according to claim 15, characterized in that After loading the one or more target applications into the current state according to the association data, the method further includes: If it is part of migrating the one or more target applications, performing computing power-related processing in the current state, and sending the processing result to the first device; If all of the one or more target applications are to be migrated, a data stream generated by state changes and interactive operations of the one or more target applications is sent to the first device at a preset time period to synchronize data with the first device.

17. The method according to claim 13, characterized in that The method further comprises: Obtaining a first application state and a first resource load condition of the first device; In response to the first application status and the first resource usage satisfying the preset migration condition, a prompt is displayed on the display interface to migrate the one or more target applications back to the first device; in response to a migration trigger instruction for triggering the migration of the one or more target applications, the one or more target applications are migrated back to the first device for execution.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 12 and 13 to 17 when executed by a processor.

19. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 12 and 13 to 17 are implemented.

20. A computer program product, characterized in that The invention comprises a computer program, which implements the steps of the method described in any one of claims 1 to 12 and 13 to 17 when being executed by a processor.