Cross-system data migration method and electronic equipment
By transferring and converting application package names between electronic devices across operating systems, the problem of incomplete data migration across brands and operating system devices is solved, and automatic installation of the same third-party applications is achieved, reducing power consumption and improving user experience.
Patent Information
- Application Number
- CN202411120386.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2044-08-14
AI Technical Summary
Existing device replacement technology cannot achieve complete data migration between electronic devices across brands and operating systems, resulting in users having to manually install third-party applications.
Data migration across operating systems is achieved by transmitting the package name of the application between the first device and the second device and performing format conversion on the server side.
This enables automatic installation of the same third-party applications as those on old electronic devices in new electronic devices, reducing the processing power consumption of the electronic devices and improving the user experience.
Smart Images

Figure CN120743291A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to a cross-system data migration method and electronic device. Background Art
[0002] When users upgrade their electronic devices, they often need to manually configure the new device, such as downloading apps and setting up contacts. To address this issue, some device manufacturers offer device-to-device swapping technology, enabling data migration from the old device to the new one. However, existing device-to-device swapping technology only works for devices of the same brand and operating system. It still cannot support complete and effective data migration between devices of different brands and operating systems. Summary of the Invention
[0003] The present application provides a cross-system data migration method and electronic device, which is applied to a communication system including a first device, a second device and a first server, wherein the first device runs a first operating system, the second device runs a second operating system, and the first operating system is different from the second operating system. The method includes: the second device sends the second package name of the third-party application to the first device, and the format of the second package name corresponds to the second operating system. The first device sends the second package name to the first server, and the first server converts the second package name into the first package name, and the format of the first package name corresponds to the first operating system; based on the first package name, the first server sends the first installation package corresponding to the third-party application to the first device, and the first installation package is an installation package adapted to the first operating system; the first device installs the first installation package corresponding to the third-party application.
[0004] In the first aspect, the present application provides a cross-system data migration method, which is applied to a communication system including a first device, a second device and a first server, the first device running a first operating system, the second device running a second operating system, and the first operating system being different from the second operating system; the method comprising: the second device sending the second package name corresponding to each application in a first group of applications to the first device, the first group of applications including one or more third-party applications, the format of the second package name being the format in which the second operating system records the application package name; the first device sending the second package name corresponding to each application in the first group of applications to the first server; the first server converting the second package name corresponding to each application in the first group of applications into a first package name corresponding to each application in the first group of applications, the format of the first package name being the format in which the first operating system records the application package name; the first server sending the first installation package corresponding to each application in the first group of applications to the first device based on the first package name corresponding to each application in the first group of applications, the first installation package being an installation package adapted to the first operating system; the first device installing the first installation package corresponding to each application in the first group of applications.
[0005] After implementing the method provided in the first aspect, when replacing old electronic devices with new ones using different operating systems, the same third-party application as the old electronic device can be automatically installed in the new electronic device, and the installation package of the same third-party application is adapted to the operating system of the new electronic device.
[0006] In combination with the method described in the first aspect, before the first device sends the second package names corresponding to each application in the first group of applications to the first server, the method also includes: the second device sends the identifier of the second operating system to the first device; and the first device determines that the second operating system is different from the first operating system.
[0007] In this way, the first device can detect the operating system of the second device, and when it determines that the operating system of the second device is different from the operating system of the first device, it will send the second package name of the third-party application to the first server for package name conversion, thereby avoiding sending the package name to the first server and performing additional package name conversion when migrating data between the same operating systems, saving unnecessary power consumption.
[0008] In combination with the method described in the first aspect, before the first device sends the second package name corresponding to each application in the first group of applications to the first server, the method also includes: the first device receives an operation for logging in to the first server, and the first device establishes a connection with the first server.
[0009] In this way, the user can log in to the first server and let the first server provide package name conversion service. The package name conversion service set on the first server can not only reduce the processing power consumption of electronic devices, but also provide package name conversion services for a large number of devices in a unified manner. It is also convenient for developers to maintain the package name conversion service in the first server in real time according to changes in third-party applications.
[0010] In combination with the method described in the first aspect, before the first server converts the second package name corresponding to each application in the first group of applications into the first package name corresponding to each application in the first group of applications, the method also includes: the first device displays a first folder on the desktop, the first folder containing the identifiers corresponding to each application in the first group of applications, and the first folder indicates that the applications it contains are applications to be converted.
[0011] In this way, the applications to be converted can be displayed on the desktop to remind users that data migration is not complete, providing users with more data recovery entrances and improving user experience.
[0012] In combination with the method described in the first aspect, the communication system also includes a second server; the first server downloads and sends the first installation packages corresponding to each application in the first group of applications to the first device based on the first package names corresponding to each application in the first group of applications, specifically including: the first server sends the first package names corresponding to the first group of applications to the second server; the second server obtains the first installation packages corresponding to the first group of applications based on the first package names corresponding to each application in the first group of applications, and sends them to the first device.
[0013] In this way, the first server can directly interact with the second server, thereby automatically downloading the first installation package of the third-party application adapted for the first device to the first device, thereby improving user experience.
[0014] In combination with the method described in the first aspect, the method also includes: the second device sends system data to the first device, the system data including one or more of the following: contacts, pictures, videos, schedules; the first device imports the system data into the storage directory of the corresponding system application.
[0015] In combination with the method described in the first aspect, a first device-changing application is installed in the first device, and a second device-changing application is installed in the second device; the second device sends the second package name corresponding to each application in the first group of applications to the first device, specifically including: the second device obtains the second package name corresponding to each application in the first group of applications through the second device-changing application, and sends the second package name corresponding to each application in the first group of applications to the first device-changing application.
[0016] In this way, the first device and the second device can achieve cross-system data migration by installing the device switching application.
[0017] In combination with the method described in the first aspect, the first device-changing application is an application developed by the manufacturer of the first device, and the second device-changing application is an application developed by the manufacturer of the second device.
[0018] In this way, mutually compatible mobile switching applications developed by different manufacturers can be used, thereby avoiding the need to additionally download multiple mobile switching applications in the second device.
[0019] In combination with the method described in the first aspect, before the second device sends the second package names corresponding to the first group of applications to the first device, the method further includes: the second device receiving an operation of selecting the first group of applications.
[0020] In this way, users can freely choose the data to be migrated.
[0021] In combination with the method described in the first aspect, the first device switching application and the second device switching application are both applications developed by the manufacturer of the first device.
[0022] In this way, the first device and the second device can install the same application, such as a device replacement application developed by the manufacturer of the first device, so that data migration services can be provided to the first device more conveniently.
[0023] In combination with the method described in the first aspect, the second switching application stores a whitelist, which includes second package names corresponding to the names of one or more applications; the second device obtains the second package names corresponding to each application in the first group of applications through the second switching application, specifically including: the second device obtains the second package names corresponding to each application in the first group of applications from the whitelist through the second switching application.
[0024] In this way, even though the switching application used by the second device is not its own switching application, the switching application can still obtain the second package name corresponding to the third-party application selected by the user by presetting the whitelist.
[0025] In combination with the method described in the first aspect, before the second device sends the second package names corresponding to the first group of applications to the first device, the method further includes: the second device receiving an operation of selecting the first group of applications.
[0026] In combination with the method described in the first aspect, the whitelist also includes global resource positioning schemes (URL schemes) corresponding to the names of one or more applications; before the second device sends the second package names corresponding to the first group of applications to the first device, the method also includes: the second device opens the URL schemes of one or more applications in the whitelist in sequence through the second switching application; the second device displays the identification of the application corresponding to the successfully opened URL schemes; the second device receives an operation of selecting the first group of applications, specifically including: the second device receives an operation of selecting the identification of the first group of applications.
[0027] In this way, even though the switching application used by the second device is not a native switching application, the switching application can still obtain the applications installed in the second device by presetting the whitelist.
[0028] In a second aspect, the present application provides a cross-system data migration method, which is applied to a first device, and the first device runs a first operating system. The method includes: the first device receives the second package name corresponding to each application in a first group of applications sent by the second device, the first group of applications includes one or more third-party applications, the second device runs a second operating system, the first operating system is different from the second operating system, and the format of the second package name is the format in which the second operating system records the application package name; the first device sends the second package name corresponding to each application in the first group of applications to the first server, so that the first server converts the second package name corresponding to each application in the first group of applications into the first package name corresponding to each application in the first group of applications, and the first server sends the first installation package corresponding to each application in the first group of applications to the first device based on the first package name corresponding to each application in the first group of applications, the format of the first package name is the format in which the first operating system records the application package name, and the first installation package is an installation package adapted to the first operating system; the first device installs the first installation package corresponding to each application in the first group of applications.
[0029] After implementing the method provided in the second aspect, when replacing old electronic devices with new ones using different operating systems, the same third-party application as the old electronic device can be automatically installed in the new electronic device, and the installation package of the same third-party application is adapted to the operating system of the new electronic device.
[0030] In combination with the method described in the second aspect, before the first device sends the second package name corresponding to each application in the first group of applications to the first server, the method also includes: the first device receives the identifier of the second operating system sent by the second device; the first device determines that the second operating system is different from the first operating system.
[0031] In this way, the first device can detect the operating system of the second device, and when it determines that the operating system of the second device is different from the operating system of the first device, it will send the second package name of the third-party application to the first server for package name conversion, thereby avoiding sending the package name to the first server and performing additional package name conversion when migrating data between the same operating systems, saving unnecessary power consumption.
[0032] In combination with the method described in the second aspect, before the first device sends the second package name corresponding to each application in the first group of applications to the first server, the method also includes: the first device receives an operation for logging in to the first server, and the first device establishes a connection with the first server.
[0033] In this way, the user can log in to the first server and let the first server provide package name conversion service. The package name conversion service set on the first server can not only reduce the processing power consumption of electronic devices, but also provide package name conversion services for a large number of devices in a unified manner. It is also convenient for developers to maintain the package name conversion service in the first server in real time according to changes in third-party applications.
[0034] In combination with the method described in the second aspect, before the first server converts the second package names corresponding to each application in the first group of applications into the first package names corresponding to each application in the first group of applications, the method also includes: the first device displays a first folder on the desktop, the first folder containing identifiers corresponding to each application in the first group of applications, and the first folder indicates that the applications it contains are applications to be converted.
[0035] In this way, the applications to be converted can be displayed on the desktop to remind users that data migration is not complete, providing users with more data recovery entrances and improving user experience.
[0036] In combination with the method described in the second aspect, the method also includes: the first device also receives system data sent by the second device, the system data including one or more of the following: contacts, pictures, videos, schedules; the first device imports the system data into the storage directory of the corresponding system application.
[0037] In combination with the method described in the second aspect, a first device-changing application is installed in the first device, and a second device-changing application is installed in the second device; the first device receives the second package names corresponding to each application in the first group of applications sent by the second device, specifically including: the first device-changing application receives the second package names corresponding to each application in the first group of applications sent by the second device-changing application.
[0038] In this way, the first device and the second device can achieve cross-system data migration by installing the device switching application.
[0039] In combination with the method described in the second aspect, the first device-changing application is an application developed by the manufacturer of the first device, and the second device-changing application is an application developed by the manufacturer of the second device.
[0040] In this way, mutually compatible mobile switching applications developed by different manufacturers can be used, thereby avoiding the need to additionally download multiple mobile switching applications in the second device.
[0041] In combination with the method described in the second aspect, the first device switching application and the second device switching application are both applications developed by the manufacturer of the first device.
[0042] In this way, the first device and the second device can install the same application, such as a device replacement application developed by the manufacturer of the first device, so that data migration services can be provided to the first device more conveniently.
[0043] In a third aspect, the present application provides an electronic device comprising one or more memories, one or more processors, and a computer program stored on the memory, wherein the processor executes the computer program to implement the steps of any one of the methods in the second aspect.
[0044] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods in the second aspect.
[0045] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1A A schematic diagram of an application scenario provided in an embodiment of the present application;
[0047] Figure 1B A schematic diagram of another application scenario provided by an embodiment of the present application;
[0048] Figure 2A-2L A schematic diagram of a set of user interface operations provided in an embodiment of the present application;
[0049] Figure 3 A schematic diagram of a cross-system data migration method provided in an embodiment of the present application;
[0050] Figure 4 A schematic diagram of the hardware architecture of the first device provided in this application;
[0051] Figure 5 A schematic diagram of the hardware architecture of the second device provided in this application;
[0052] Figure 6 A schematic diagram of the software architecture of the first device provided in this application;
[0053] Figure 7 A schematic diagram of the software architecture of the second device provided in this application;
[0054] Figure 8 A schematic diagram of the hardware architecture of a server provided for this application. DETAILED DESCRIPTION
[0055] The following is a clear and detailed description of the technical solutions in the embodiments of the present application, with reference to the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of "or." For example, A / B can represent A or B. "and / or" in the text is merely a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone.
[0056] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0057] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0058] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0059] There are many operating systems for electronic devices, for example, operating system( operationsystem), Apple operating system ( operation system, ), ( operation system, ) and so on. Various operating systems generally adopt a modular and hierarchical design. In order to maintain stability and versatility, system data is usually set in the kernel and other bottom layers. This design makes the management and storage of system data highly consistent across different operating systems. Third-party applications run in a higher layer. There is no unified standard for application data between different operating systems. They rely on the bottom interface of a specific operating system. In other words, different operating systems have their own specific application installation package formats and development specifications. This means that even for the same application, the installation packages required on different operating systems will be different, and the format of the package name used to identify the installation package will also be different. Therefore, the data management and storage of third-party applications will vary with different operating systems. Based on this, old electronic devices and new electronic devices using the same operating system can achieve more complete data migration, including system data and third-party application data. However, old electronic devices and new electronic devices using different operating systems only support the migration of part of the system data, and do not support the migration of third-party application data, resulting in users having to manually install each third-party application corresponding to the old electronic device in the new electronic device.
[0060] For details, please refer to Table 1, which exemplifies the data migration situation when a Honor brand electronic device is used as a new device and other types of electronic devices are used as old devices.
[0061] Table 1
[0062]
[0063] As shown in Table 1, when using When using Honor brand electronic devices with the operating system as new devices, if the old devices also use If the old device is a Honor brand electronic device using the operating system, the replacement technology can achieve the migration of all data from the old device to the new device; if the old device is a Honor brand electronic device using the operating system If the operating system is not a Honor brand electronic device, the replacement technology can be used to migrate some system data and third-party applications from the old device to the new device; if the old device is a Honor brand electronic device, the replacement technology can be used to migrate some system data and third-party applications from the old device to the new device; If the operating system is not a Honor brand electronic device, the replacement technology can only achieve the migration of part of the system data from the old device to the new device; if the old device is a non-Honor brand electronic device, the replacement technology can only achieve the migration of part of the system data from the old device to the new device; For electronic devices whose operating systems are not of the Honor brand, the replacement technology can only migrate part of the system data from the old device to the new device.
[0064] In order to solve the problem of incomplete data migration when changing devices across systems. The present application provides a cross-system data migration method, which is applied to a communication system including a first device, a second device and a first server, wherein the first device runs a first operating system, the second device runs a second operating system, and the first operating system is different from the second operating system. The method includes: the second device sends the second package name corresponding to each application in the first group of applications to the first device, the first group of applications includes one or more third-party applications, and the format of the second package name is the format in which the second operating system records the application package name; the first device sends the second package name corresponding to each application in the first group of applications to the first server; the first server converts the second package name corresponding to each application in the first group of applications into the first package name corresponding to each application in the first group of applications, and the format of the first package name is the format in which the first operating system records the application package name; based on the first package name corresponding to each application in the first group of applications, the first server sends the first installation package corresponding to each application in the first group of applications to the first device, and the first installation package is an installation package adapted to the first operating system; the first device installs the first installation package corresponding to each application in the first group of applications.
[0065] After implementing the method provided in the embodiments of this application or applying the electronic device provided in this application, the following beneficial effects can be brought about: when replacing old electronic devices with new ones using different operating systems, it is possible to automatically install the same third-party application as the old electronic device in the new electronic device, and the installation package of the same third-party application is adapted to the playground system of the new electronic device.
[0066] Next, the relevant concepts involved in this application are introduced.
[0067] System data: System data includes data of system-level applications in electronic devices, such as contact information in the address book, information in text messages, pictures and videos in photos, schedules and memos in the calendar, etc.
[0068] Third-party application data: Third-party application data includes the package name of the third-party application in the electronic device. Optionally, it may also include the name, icon, etc. of the third-party application, such as data of various third-party applications such as social applications and online shopping applications.
[0069] Device migration application: refers to an application used to provide data migration services between new electronic devices and old electronic devices. Generally, when migrating data across systems, both the new and old electronic devices need to install the device migration application, and the device migration applications installed on both can be the same application or different applications. When the device migration application on the new electronic device and the device migration application on the old electronic device are the same device migration application, it is necessary to ensure that the same device migration application on both ends is adapted to the operating system of each electronic device (for details, please refer to the following section on device migration). Figure 1A ), when the replacement application on the new electronic device is different from the replacement application on the old electronic device, it is necessary to ensure that the two applications are compatible with each other (for details, please refer to the following section on Figure 1B It can be understood that the name of the phone-changing application is only an example and should not constitute a limitation to this application. For the specific functions provided by the phone-changing application, please refer to the detailed description of the UI implementation examples and method implementations below, which will not be repeated here.
[0070] refer to Figure 1A , Figure 1A An application scenario provided by this application is exemplified.
[0071] like Figure 1A As shown, the application scenario involves a communication system 10, which includes a first device, a second device, a first server, and a second server.
[0072] The first device refers to a new electronic device in the switching system, that is, an electronic device for receiving data. Operating system for electronic devices.
[0073] The second device refers to the old electronic device in the replacement system, that is, the electronic device used to send data. Operating system for electronic devices.
[0074] The first server refers to the cloud used for converting third-party applications in the switch system.
[0075] The second server refers to the cloud side of the application market for new electronic devices in the replacement system.
[0076] In the embodiment of the present application, the first device and the second device can both install the switching application A, and then the switching application A in the second device can send the data to be migrated selected by the user, such as system data or third-party application data, to the switching application A in the first device. If the data to be migrated includes third-party application data, in an optional specific implementation, the switching application A in the second device can send an adaptation request to the switching application A in the first device. The package name of the third-party application, the first device's switching application A will receive the adapter The package name of the third-party application is sent to the first server, and the first server adapts the The package name of the third-party application is converted to the adapter The package name of the third-party application, and the adapted The package name of the third-party application is sent to the second server, so that the second server can Get the package name of the third-party application to adapt The first device installs the third-party application.
[0077] The first device's device-switching application A and the second device's device-switching application A are identical applications adapted for different operating systems. Their differences are discussed later and are not detailed here. Optionally, the device-switching application A may be developed by the manufacturer of the first device, so the device-switching application A in the second device does not have system-level permissions.
[0078] Among them, the It can be called the first operating system. It can be called the second operating system. The package name of the third-party application can also be called the first package name, adapted It means that the format of the first package name is The format of the application package name recorded in the operating system. The package name of the third-party application can also be called the second package name, adapted It means that the format of the second package name is, The format of the application package name recorded in the operating system. The installation package of the third-party application can also be called the first installation package. The switching application A on the first device side is called the first switching application, and the switching application A on the second device side can be called the second switching application.
[0079] Optionally, the first server and the second server in the communication system 10 may be two independent servers, or may be the same server, which may provide the first device with services related to package name conversion and installation package downloading.
[0080] Figure 1A The scenario shown only takes the example of a new electronic device and an old electronic device both using the replacement application A developed by the manufacturer of the new electronic device. In addition to using the replacement application A developed by the manufacturer of the new electronic device, if the old electronic device itself provides a replacement application C that is compatible with the replacement application A on the new electronic device side, the old electronic device side can also use the replacement application C instead of the replacement application A.
[0081] refer to Figure 1B , Figure 1B Another application scenario provided by this application is exemplified.
[0082] like Figure 1B As shown, the application scenario involves a communication system 20, which includes a first device, a second device, a first server, and a second server.
[0083] The first device refers to a new electronic device in the switching system, that is, an electronic device for receiving data. Operating system for electronic devices.
[0084] The second device refers to the old electronic device in the replacement system, that is, the electronic device used to send data. Operating system for electronic devices.
[0085] The first server refers to the cloud used for converting third-party applications in the switch system.
[0086] The second server refers to the cloud side of the application market for new electronic devices in the replacement system.
[0087] In the embodiment of the present application, the first device can be installed with a switching application A, and the second device can be installed with a switching application B. Then, the switching application B in the second device can send the user-selected data to be migrated, such as system data or third-party application data, to the switching application A in the first device. If the data to be migrated includes third-party application data, in an optional specific implementation, the switching application B in the second device can send an adaptation request to the switching application A in the first device. The package name of the third-party application, the first device's switching application A will receive the adapter The package name of the third-party application is sent to the first server, and the first server adapts the The package name of the third-party application is converted to the adapter The package name of the third-party application, and the adapted The package name of the third-party application is sent to the second server, so that the second server can Get the package name of the third-party application to adapt The first device installs the third-party application.
[0088] The first device's device-switching application A and the second device's device-switching application B are two different, compatible applications. Optionally, the first device's device-switching application A can be developed by the manufacturer of the first device, and the second device's device-switching application B can be developed by the manufacturer of the second device. Therefore, the second device's device-switching application B has system-level permissions on the second device.
[0089] Among them, the It can be called the first operating system. It can be called the second operating system. The package name of the third-party application can also be called the first package name, adapted It means that the format of the first package name is The format of the application package name recorded in the operating system. The package name of the third-party application can also be called the second package name, adapted It means that the format of the second package name is, The format of the application package name recorded in the operating system. The installation package of the third-party application can also be called the first installation package. The switching application A on the first device side is called the first switching application, and the switching application B on the second device side can be called the second switching application.
[0090] Optionally, the first server and the second server in the communication system 20 may be two independent servers, or may be the same server, which may provide the first device with services related to package name conversion and installation package downloading.
[0091] Figure 1B The scenario shown is only described by taking the new electronic device using its own replacement application A and the old electronic device using its own replacement application B as an example. In addition to using its own replacement application B, the old electronic device can also use the adapter developed by the manufacturer of the new electronic device. Replacement application A.
[0092] Next, the user interface involved in the cross-system data migration method provided by this application is described using an example in which a first device uses a device-switching application A and a second device also uses a device-switching application A. The cross-system data migration method in which a first device uses a device-switching application A and a second device uses a device-switching application B is similar to the cross-system data migration method in which a first device uses a device-switching application A and a second device also uses a device-switching application A. The corresponding user interfaces may be the same or slightly different, and this is not limited in this embodiment of the present application.
[0093] refer to Figure 2A-2D , Figure 2A-2D The operating interface for connecting new and old devices provided by this application is exemplified.
[0094] like Figure 2A As shown, the first device displays a user interface a21, in which an icon a211 of the device switching application A is displayed. The second device displays a user interface b21, in which an icon b211 of the device switching application A is displayed.
[0095] Figure 2A Although the device-changing application A in the first device and the device-changing application A in the second device shown in the figure are the same device-changing application, since the operating systems of the first device and the second device are different, the installation packages of the device-changing application A in the two devices are different, and they need to adapt to their respective operating systems, and the icons of the device-changing application A in the two devices may also be different.
[0096] Optionally, the operating system used by the first device is, for example, the one described above. The operating system used by the second device is or Alternatively, the operating system used by the first device is the one described above. The operating system used by the second device is, for example, or Alternatively, the operating system used by the first device is the one described above. The operating system used by the second device is, for example, or etc.
[0097] In response to the operation on the icon a211 of the phone switching application A in the first device, the first device runs the phone switching application A and displays the following Figure 2B In response to the operation on the icon b211 of the switch application A in the second device, the second device runs the switch application A and displays the user interface a22 as shown. Figure 2B Optionally, the operation method for starting the switching application A in the first device and the operation method for starting the switching application A in the second device are not limited to Figure 2AThe operations shown may also be other types of operations, such as voice commands, etc., which will not be described in detail in the embodiments of the present application.
[0098] like Figure 2B As shown, the first device displays user interface a22, which displays options a221 and a222. Option a221 identifies the device as a new device, while option a222 identifies the device as an old device. The second device displays user interface b22, which displays options b221 and b222. Option b221 identifies the device as a new device, while option b222 identifies the device as an old device.
[0099] In response to the operation on option a221 in the first device, the first device uses the device-changing application A to use the device as a new device to receive data, and displays the following information: Figure 2C In response to the operation on option b222 in the second device, the second device uses the device-changing application A to use the device as the old device for sending data, and displays the following information: Figure 2C User interface b23 is shown.
[0100] like Figure 2C As shown, the first device displays a user interface a23, which displays connection information, such as a QR code a231, a WLAN identifier and password, etc. The second device displays a user interface b23, which displays a QR code scanning box b231 and prompt information for manual connection, etc.
[0101] When the user uses the QR code scanning box b231 of the second device to scan the QR code a231 in the first device, the second device and the first device are successfully connected, and the display is as follows: Figure 2D The user interface shown.
[0102] like Figure 2D As shown, the first device displays user interface a24, which is a successful connection details page. Specifically, it displays a prompt message for notifying the user of a successful connection, a prompt message prompting the user to select the data to be migrated on the old device, and a cancel control a241, etc. WLAN identification and password, etc. The second device displays user interface b24, which displays the data to be migrated and the corresponding controls, such as control b241 for contacts, control b242 for messages, control b243 for call logs, control b244 for gallery, control b245 for application X, control b246 for application Y, control b247 for select all, and control b248 for next step.
[0103] The user can cancel the data migration to the new device by clicking the cancel control a241 in the first device. The user can also trigger the second device to migrate the user-selected data to the first device by selecting the control corresponding to any data in the second device and then clicking the next control b248.
[0104] refer to Figure 2E-2G , Figure 2E-2G The following is an example of the data migration interface provided by this application.
[0105] like Figure 2E As shown, the second device displays a user interface b25. The information displayed in the user interface b25 is the same as the information displayed in the aforementioned user interface b24, which will not be described in detail here. When the second device receives the user's operation of selecting the control b241 corresponding to the contact, the control b244 corresponding to the gallery, the control b245 corresponding to the application X, and the control b246 corresponding to the application Y, the status of these controls displayed by the second device is changed to Figure 2D The unchecked state shown changes to Figure 2E The selected state is shown. Application X and Application Y can be referred to as the first group of applications. After the second device receives the user's selection of the control corresponding to the data to be migrated, it can also receive an operation of clicking the next control b248. In response to this operation, the second device obtains the user-selected data through the device switching application A and then sends it to the first device.
[0106] like Figure 2E As shown, the first device displays a user interface a25, which is a details page being received, specifically displaying the reception progress of the data selected by the user, and a control a251 for canceling the reception.
[0107] like Figure 2F As shown, the second device displays the data sending details page, and the sending progress displayed in the data sending details page gradually increases. The first device continues to display the data receiving details page, and the data receiving progress displayed in the data receiving details page also gradually increases accordingly.
[0108] Figure 2G As shown, the second device displays a data sending success details page, which displays a prompt message indicating that the sending is completed. The first device displays a data recovery details page, which displays a prompt message indicating that the received data has been recovered.
[0109] refer to Figure 2H-2L , Figure 2H-2L The operation interface for converting applications by logging into the cloud service provided by this application is exemplified.
[0110] like Figure 2HAs shown, the first device displays a user interface a26, which displays a prompt message prompting the user that application X and application Y have failed to be restored and requires logging into the cloud for restoration, as well as a cancel control a261 and a de-login control a262.
[0111] If the first device receives the user's operation on the de-login control a262, in response to the operation, the first device directly displays the following Figure 2J User interface a28 is shown.
[0112] If the first device receives the user's operation on the cancel control a261, in response to the operation, the first device's switch application A temporarily stops logging into the cloud to restore data, but a temporary folder provided by the switch application A will be displayed on the desktop of the first device. The temporary folder contains the identifier of the application to be restored, which is used to prompt the user to continue logging into the cloud to restore data. For details, please refer to the following description. Figure 2I-2K The user interface shown.
[0113] like Figure 2I As shown, the first device displays a user interface a27, which displays a temporary folder a271. The temporary folder a271 contains the identifiers of the application X and the application Y that were not successfully restored by the first device. Figure 2I Only the application name is used as an example. The optional application identifier may also include an application icon, etc., which is not limited in this embodiment of the present application.
[0114] If the first device receives the user's operation on the temporary folder a271, in response to the operation, the first device jumps to the cloud login interface, see Figure 2J Optionally, if the user does not want to restore application X and application Y, the user can also delete the temporary folder a271 by long pressing the temporary folder a271.
[0115] like Figure 2J As shown, the first device displays a user interface a28, which displays a prompt message that application X and application Y have failed to be restored and requires logging in to the cloud for recovery. It also displays a cloud account input field, a password input field, a cancel control a281, and a login control a282.
[0116] If the first device receives an operation in which the user enters the account number and password and clicks the login control a282, in response to the operation, the first device logs in to the cloud, causing the cloud to restore application X and application Y. That is, application X and application Y are converted from a package name format adapted for the second device to a package name format adapted for the first device, and then application X and application Y adapted for the first device are downloaded from the application market.
[0117] like Figure 2KAs shown, the first device displays a user interface a29, which is an installation management details page. The installation management details page displays the download and installation progress of application X and application Y that have been restored in the cloud.
[0118] like Figure 2L As shown, the first device displays a desktop which no longer displays the temporary folder a271 but displays the icons of application X and application Y that have been restored.
[0119] Based on the UI implementation example introduced above, Figure 3 A cross-system data migration method provided in an embodiment of the present application is described in detail.
[0120] Figure 3 A flow chart of a cross-system data migration method provided in an embodiment of the present application is exemplified.
[0121] like Figure 3 As shown, the method includes the following steps:
[0122] S31: The first device activates a first device switching application.
[0123] The first switching application is the switching application A installed in the aforementioned first device. The method for enabling the first switching application may be, for example, the method described above. Figure 2A The operation on the icon a211 of the phone switching application A in the user interface a21 shown may also be other touch operations or voice commands, etc., which are not limited in this embodiment of the present application.
[0124] S32: The second device activates a second device switching application.
[0125] The second switching application is the switching application A installed in the aforementioned second device. The method for enabling the second switching application may be, for example, the method described above. Figure 2A The operation on the icon b211 of the phone switching application A in the user interface b21 shown may also be other touch operations or voice commands, etc., which are not limited in this embodiment of the present application.
[0126] Optionally, the second device-switching application installed on the second device may be, in addition to device-switching application A, device-switching application B. Device-switching application A installed on the second device is the same device-switching application as the first device, except that their installation packages are adapted for the operating systems of their respective devices. Device-switching application B installed on the second device is a separate device-switching application from device-switching application A. For more information about device-switching application A and device-switching application B, please refer to the previous description and will not be repeated here. Whether the second device-changing application used in the second device is specifically device-changing application A or device-changing application B depends on whether the second device itself has installed device-changing application B that is compatible with device-changing application A in the first device. If the second device itself has installed device-changing application B that is compatible with device-changing application A in the first device, device-changing application B can be used first. This is because device-changing application B is a system-level application of the second device and has system-level permissions. It can directly read the data to be migrated selected by the user. If the second device itself does not have installed device-changing application B that is compatible with device-changing application A in the first device, device-changing application A can be used first. This is because device-changing application A is an application developed by the manufacturer of the first device to adapt to different operating systems, so that cross-system data migration can be achieved.
[0127] This application does not limit the execution order of S31 and S32. That is, S31 can be executed first and then S32, or S32 can be executed first and then S31.
[0128] S33: The first device and the second device establish a connection through the device switching application.
[0129] Specifically, after enabling the first switching application in the first device and enabling the second switching application in the second device, the user can operate the first switching application and the second switching application to establish a connection between the first device and the second device through the switching application. Figure 2B-2D The illustrated operation mode enables the first switching application of the first device to establish a connection with the second switching application of the second device.
[0130] Optionally, during the process of establishing a connection between the first device and the second device, the first device and the second device may send information of the devices to each other, such as an identification of an operating system, a model of the device, and the like.
[0131] S34: The second device receives an operation of selecting data.
[0132] Specifically, after the second device successfully establishes a connection with the first device, the second device displays data to be migrated for the user to select, and the second device can receive the user's operation of selecting data. Optionally, the data to be migrated displayed for the user to select in the second device includes, for example, Figure 2DOptionally, the operation for selecting data is, for example, an operation on a control b241 corresponding to a contact, a control b244 corresponding to a gallery, a control b245 corresponding to application X, and a control b246 corresponding to application Y.
[0133] S35: The second device obtains the selected data through the second device switching application.
[0134] The selected data obtained by the second device through the second switching application includes but is not limited to the system data and third-party application data in the second device. Figure 2E In the example shown, for selecting a contact, a gallery, application X, and application Y, the selected data obtained by the second device through the second switching application includes contact information, photos and videos in the gallery, the second package name of application X, and the second package name of application Y. Optionally, the selected data obtained by the second device through the second switching application may also include the name and icon of application X and the name and icon of application Y.
[0135] (1) In one feasible manner, if the second switching application installed in the second device is the switching application A provided by the manufacturer of the first device, since the switching application A does not have system-level permissions of the second device, the switching application A cannot directly obtain the data in the second device, and thus cannot directly obtain the data to be migrated selected by the user.
[0136] Based on this, the present application realizes the acquisition of data in the second device by presetting and maintaining a whitelist in the switching application A on the second device side. Specifically, the whitelist includes: the name of the third-party application, and the corresponding relationship between the second package name of the third-party application and the second global resource location scheme url schemes of the third-party application. The third-party applications in the whitelist are relative to the system applications developed by the manufacturer of the second device. The number of third-party applications can be one or more, and the developer of the switching application A can implement and maintain the third-party applications in the whitelist as the third-party applications in the application market change. The second package name in the whitelist is also obtained by the developer in advance by testing the third-party application in the second device. The second url schemes in the whitelist are also obtained by the developer by decompiling when pulling the third-party application in the second device.
[0137] Optionally, after the switching application A in the second device establishes a connection with the switching application A in the first device, the switching application A in the second device needs to try to open the third-party application in the second device through the second URL schemes in the whitelist. If it can be opened successfully, it means that the third-party application is installed in the second device. Therefore, the corresponding identifier of the third-party application, such as name, icon, etc., can be displayed in the interface of the data to be selected. For details, please refer to Figure 2D Application X, application Y, etc. in the user interface b24 are shown.
[0138] Optionally, after the user selects the data to be migrated from the second device, the second device switching application A obtains the second package name corresponding to the third-party application selected by the user based on the whitelist. Optionally, the second device switching application A can also obtain the name, icon, etc. of the third-party application.
[0139] (2) In another feasible manner, if the second switching application installed in the second device is a switching application B provided by the second device itself, since the switching application B has system-level permissions of the second device, the switching application B can directly obtain the data in the second device, and then directly obtain the data to be migrated selected by the user.
[0140] S36: The second device sends the selected data including the second package name of the third-party application to the first device.
[0141] Specifically, after the second device obtains the data selected by the user, the selected data can be sent to the first device switching application in the first device through the second device switching application. Optionally, before the second device sends the selected data to the first device, the second device can receive a trigger operation, such as the aforementioned Figure 2E The operation shown acts on the next step control b248.
[0142] S41: The first device determines that the second device uses a specific operating system.
[0143] Specifically, during the aforementioned S33 between the first device and the second device, that is, during the process of establishing a connection, the first device and the second device send device identifications to each other, such as the identification of the device's operating system, the device model and other information. Therefore, after S33, the first device can determine whether the second device adopts a specific operating system based on the identification of the second device's operating system. The specific operating system includes: other operating systems different from the first operating system adopted by the first device, such as a second operating system.
[0144] Because the second operating system used by the second device is a specific operating system, third-party application data in different systems is incompatible. Therefore, after receiving the third-party application data sent by the second device, the first device cannot directly restore it and can only successfully restore the system data. Therefore, the first device switching application in the first device needs to restore the third-party application data through the first server, as described in S43-S49 below. Data recovery refers to parsing the data and importing it into the corresponding storage directory.
[0145] Optionally, when the first device fails to restore the third-party application data, a prompt message indicating the failure of the restoration may be displayed. For example, the first device may display the message as described above. Figure 2H Optionally, when the first device fails to successfully restore the third-party application data, a temporary folder may be displayed, which includes the identifier of the unrestored third-party application, to prompt the user to log in to the cloud for restoration. For example, the first device may display the above-mentioned Figure 2I The user can log in to the cloud by operating the de-login control a262 in the user interface a26 or operating the temporary folder a271, and use the first server to restore the third-party application data.
[0146] S42: The first device displays a temporary folder of the third-party application, prompting the user that the third-party application has not been restored.
[0147] Optionally, after the first device receives the data sent by the second device and restores it, if there is any unrestored third-party application data, the user will be prompted to log in to the cloud to restore it, for example, the aforementioned UI implementation will be displayed. Figure 2H In the login prompt information in the user interface a26 shown, if the user cancels the login to the cloud to restore, the first device will display a temporary folder (also called the first folder), such as the above UI implementation Figure 2I The temporary folder a271 is shown.
[0148] S43, the first device logs in to the first server.
[0149] Specifically, after receiving the user's login operation, the first device logs in to the first server. The entry for the login operation can be the aforementioned UI implementation. Figure 2H The login prompt information in the user interface a26 shown, or the login prompt information in the aforementioned UI implementation Figure 2I The temporary folder a271 shown, etc., is not limited in this embodiment of the present application.
[0150] S44: The first device sends the second package name of the third-party application to the first server.
[0151] Specifically, after the first device logs in to the first server, the second package name of the third-party application that was not successfully restored is sent to the first server. Figure 2E When the contacts, gallery, application X, application Y, etc. are shown, the data of application X and application Y cannot be successfully restored and are thus sent to the first server.
[0152] S45: The first server converts the second package name of the third-party application into the first package name.
[0153] Specifically, the first server pre-stores a package name conversion table, an example of which can be seen in Table 2 below. The package name conversion table includes: the correspondence between the package names of one or more third-party applications in the specific operating system and the first package names in the first operating system. Specifically, when the specific operating system is the second operating system, the package name in the specific operating system is the second package name. After receiving the second package name of the third-party application sent by the first device, the first server obtains the converted first package name based on the pre-stored package name conversion table.
[0154] Table 2
[0155] OS-specific package names The first package name of the first operating system The second package name corresponding to application X of the second operating system The first package name corresponding to application X of the first operating system The second package name corresponding to application Y of the second operating system The first package name corresponding to application X of the first operating system The second package name corresponding to the application Z of the second operating system The first package name corresponding to the application Z of the first operating system …… ……
[0156] S46: The first server sends the first package name of the third-party application to the second server.
[0157] Specifically, after the first server obtains the first package name of the third-party application through conversion, it needs to download the corresponding third-party application for the first device based on the first package name of the third-party application. In one optional method, the first server can send the converted package name of the third-party application to the second server of the application market of the first device, thereby enabling subsequent download of the third-party application for the first device. In another optional method, the first server can send the converted package name of the third-party application to the first device, so that the first device can download the corresponding third-party application from the second server of the application market based on the first package name.
[0158] S47: The second server obtains a first installation package corresponding to the third-party application based on the first package name.
[0159] Specifically, the second server is the server of the application market of the first device, which is used to provide services such as application downloading for the electronic device. The second server stores the first package name of one or more applications and the corresponding first installation package, so the second server can obtain the corresponding first installation package based on the first package name.
[0160] S48: The second server sends the first installation package corresponding to the third-party application to the first device.
[0161] S49: The first device installs a first installation package corresponding to the third-party application.
[0162] Specifically, after the first device receives the first installation package sent by the second server, it installs the third-party application. Optionally, taking application X and application Y as an example, the first device installs the first installation package corresponding to application X and the first installation package corresponding to application Y, and displays the first installation package as shown in the previous example. Figure 2K The installation management interface shown, as well as the display of the previous Figure 2L The icon of application X and the icon of application Y are shown.
[0163] It is understood that in another possible implementation, the first server and the second server can be two independent servers, or can also refer to the same server, which can provide package name conversion and installation package download related services for the first device. When the first server and the second server are the same server, the same server directly obtains the corresponding first installation package after converting the registration name into the first package name, and then sends it to the first device.
[0164] Next, the software and hardware architecture and product form of the electronic device involved in this application are introduced.
[0165] The first device and the second device described in this application may both be equipped with or portable terminal devices with other operating systems, such as mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices and / or smart city devices, etc.
[0166] Figure 4 A schematic diagram of the hardware architecture of the first device is shown.
[0167] like Figure 4The first device shown may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 180, a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, etc.
[0168] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the first device. In other embodiments of the present application, the first device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0169] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0170] The controller can be the nerve center and command center of the first device. The controller can generate operation control signals based on instruction operation codes and timing signals to complete the control of instruction fetching and execution.
[0171] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0172] In an embodiment of the present application, the processor 110 is used to run the first switching application to thereby establish a connection between the aforementioned first device side and the second device, receive data from the second device, send the first package name of the third-party application to the first server, receive the first installation package sent by the second server, install the first installation package of the third-party application, etc., which will not be described one by one here. For specific implementation, please refer to the detailed description of the method flow in the previous article.
[0173] In some embodiments, the processor 110 may include one or more interfaces, such as a universal serial bus (USB) interface.
[0174] USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. USB interface 130 can be used to connect a charger to charge the first device, or to transfer data between the first device and a peripheral device. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.
[0175] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely a schematic illustration and does not constitute a structural limitation on the first device. In other embodiments of the present application, the first device may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.
[0176] The wireless communication function of the first device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0177] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0178] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the first device. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0179] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs the sound signal through the audio device or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
[0180] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied on the first device. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0181] In some embodiments, antenna 1 of the first device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that the first device can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0182] In an embodiment of the present application, the first device can establish a connection with the second device through the aforementioned mobile communication module 150 and / or wireless communication module 160 to realize data transmission, and can also establish a connection with the first server, the second server, etc. to realize data transmission, etc., which will not be elaborated here one by one.
[0183] The first device implements display functionality through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0184] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display screen panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniLED, a microLED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the first device can include one or N display screens 194, where N is a positive integer greater than one.
[0185] In an embodiment of the present application, the first device can display the interface provided by the first device switching application and the desktop of the first device, etc. through the display screen 194. For details, please refer to the content introduced in the previous UI embodiment.
[0186] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0187] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0188] The non-volatile memory may include a disk storage device and a flash memory. The non-volatile memory may also store executable programs and user and application data, etc., and may be pre-loaded into the random access memory for direct reading and writing by the processor 110.
[0189] The external memory interface 120 can be used to connect to an external non-volatile memory device to expand the storage capacity of the first device. The external non-volatile memory device communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory device.
[0190] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The first device determines the intensity of the pressure based on the change in capacitance. When a touch operation is applied to display screen 194, the first device detects the intensity of the touch operation based on pressure sensor 180A. The first device can also calculate the location of the touch based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.
[0191] Touch sensor 180B, also known as a "touch panel," can be disposed on display screen 194. Touch sensor 180B and display screen 194 form a touch screen, also known as a "touch screen." Touch sensor 180B is configured to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via display screen 194. In other embodiments, touch sensor 180B can also be disposed on the surface of the first device, at a location different from that of display screen 194.
[0192] In an embodiment of the present application, the first device may receive user operations through the pressure sensor 180A and / or the touch sensor 180B, such as receiving a series of operations on the first switching application as described in the previous UI embodiment.
[0193] Figure 5 A schematic diagram of the hardware architecture of the second device is shown.
[0194] like Figure 5 The second device shown may include: a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, a sensor module 280, a display screen 294, etc. The sensor module 280 may include a pressure sensor 280A, a touch sensor 280B, etc.
[0195] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the second device. In other embodiments of the present application, the second device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0196] The processor 210 may include one or more processing units. For example, the processor 210 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0197] The controller can be the nerve center and command center of the second device. The controller can generate operation control signals based on instruction operation codes and timing signals to complete the control of instruction fetching and execution.
[0198] Processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 210. If processor 210 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 210 latency, and thus improves system efficiency.
[0199] In an embodiment of the present application, the processor 210 is used to run the second switching application to thereby realize the aforementioned connection between the second device side and the first device, data sent to the first device, etc., which will not be described one by one here. For specific implementation, please refer to the detailed description of the method flow above.
[0200] In some embodiments, the processor 210 may include one or more interfaces, such as a universal serial bus (USB) interface.
[0201] USB interface 230 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. USB interface 230 can be used to connect a charger to charge a second device, or to transfer data between the second device and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.
[0202] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely a schematic illustration and does not constitute a structural limitation on the second device. In other embodiments of the present application, the second device may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.
[0203] The wireless communication function of the second device can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor and baseband processor.
[0204] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the second device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0205] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the second device. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the same device as at least some of the modules of the processor 210.
[0206] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs the sound signal through the audio device or displays an image or video through the display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be provided in the same device as the mobile communication module 250 or other functional modules.
[0207] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied on the second device. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0208] In some embodiments, antenna 1 of the second device is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, so that the second device can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0209] In the embodiment of the present application, the second device can establish a connection with the first device through the aforementioned mobile communication module 250 and / or wireless communication module 260 to achieve data transmission, which will not be described in detail here.
[0210] The second device implements display functionality through a GPU, display screen 294, and an application processor. A GPU is a microprocessor for image processing that connects display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or modify display information.
[0211] Display screen 294 is used to display images, videos, etc. Display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD). The display screen panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniLED, a microLED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the second device can include one or N display screens 294, where N is a positive integer greater than one.
[0212] In the embodiment of the present application, the second device can display the interface provided by the second switching application and the desktop of the second device through the display screen 294. For details, please refer to the content introduced in the above UI embodiment.
[0213] The internal memory 221 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0214] The random access memory can be directly read and written by the processor 210, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0215] The non-volatile memory may include a disk storage device and a flash memory. The non-volatile memory may also store executable programs and user and application data, etc., and may be pre-loaded into the random access memory for direct reading and writing by the processor 210.
[0216] External memory interface 220 can be used to connect to an external non-volatile memory device to expand the storage capacity of the second device. The external non-volatile memory device communicates with processor 210 via external memory interface 220 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory device.
[0217] Pressure sensor 280A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 280A can be located on display screen 294. There are many types of pressure sensors 280A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 280A, the capacitance between the electrodes changes. The second device determines the intensity of the pressure based on the change in capacitance. When a touch operation is applied to display screen 294, the second device detects the intensity of the touch operation based on pressure sensor 280A. The second device can also calculate the location of the touch based on the detection signal from pressure sensor 280A. In some embodiments, touch operations applied to the same touch location but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.
[0218] Touch sensor 280B, also known as a "touch panel," can be disposed on display screen 294. Touch sensor 280B and display screen 294 form a touch screen, also known as a "touch screen." Touch sensor 280B is configured to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via display screen 294. In other embodiments, touch sensor 280B can also be disposed on the surface of the second device, at a location different from that of display screen 294.
[0219] In the embodiment of the present application, the second device can receive user operations through the pressure sensor 280A and / or the touch sensor 280B, such as receiving a series of operations on the second switching application introduced in the above UI embodiment, etc.
[0220] The software system of the first device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Taking the operating system as an example, the software architecture of the first device is illustrated.
[0221] Figure 6 This is a software structure block diagram of the first device in an embodiment of the present application.
[0222] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, The operating system is divided into three layers: application layer, system service layer, and kernel layer.
[0223] The application layer can include a series of application packages.
[0224] like Figure 6 As shown, the application package may include the switching application A, camera, gallery, calendar, call, map, WLAN, Bluetooth, short message and other applications.
[0225] The device-changing application A is the first device-changing application installed on the first device. The device-changing application A is adapted to The version of the operating system, the switching application A includes a data recovery module and a system desktop management module. The data recovery module is used to recover the data sent by the second switching application of the second device to the local machine, specifically including: parsing the data transmitted by the second device through the file parsing module, and then recovering the parsed data through the application data recovery module. If it is detected that the second device uses a specific operating system, the third-party application data cannot be successfully recovered. Therefore, it is also necessary to extract the second package name of the third-party application from the parsed data through the application package name processing module, and then send the second package name to the first server through the cloud processing module. The cloud processing module is responsible for displaying the cloud login interface, for example, displaying the above Figure 2J As shown in the login interface, the cloud processing module is also responsible for communicating with the cloud (ie, the first server), and the cloud processing module is also responsible for uploading the second package name data of the third-party application to the cloud for parsing.
[0226] Optionally, the first device further extracts the third-party application's icon, application name, etc. from the parsed data through the application package name processing module and sends it to the application package name temporary file management module. The application package name temporary file management module is responsible for displaying the application package name temporary data, such as the name and icon of the third-party application. For details, please refer to the previous Figure 2I The temporary folder a271 shown in the application package name is also displayed. Furthermore, the application package name temporary file management module also allows the user to open the cloud login interface after clicking the temporary folder a271, and clear the temporary folder a271 on the desktop after the first device uploads the second package name to the first server. Furthermore, the application package name temporary file management module also allows the user to long-press the temporary folder a271 to delete temporary data.
[0227] The system service layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer.
[0228] like Figure 6As shown, the system service layer may include a network manager service, a backup manager service, an activity manager service, etc. It may also include Figure 6 Not shown are the window manager, content provider, view system, telephony manager, resource manager, notification manager, etc.
[0229] The network manager is responsible for managing and monitoring the status of network connections, including various network types such as Wi-Fi, mobile data, and Bluetooth. It provides functions such as querying network status, monitoring network changes, and obtaining network information. In this application, when a first device establishes a connection with a second device through a first switching application, the network manager can be used to query the network status and provide network query services for the first and second devices to establish a connection.
[0230] The backup manager is responsible for storing important data such as application data, contacts, text messages, system settings, and files on the first device to the cloud. For example, after the first device receives data transmitted by the second device, it can send the important data to the cloud for backup.
[0231] The activity manager is responsible for activities corresponding to the user interface managed and displayed by the first device, for example, managing the desktop displayed by the first device in the aforementioned UI implementation, the interface of the first switching application, and so on.
[0232] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0233] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0234] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0235] The phone manager is used to provide communication functions of the first device, such as management of call status (including answering, hanging up, etc.).
[0236] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0237] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0238] The kernel layer is the layer between hardware and software. It includes at least the Bluetooth driver, WLAN driver, and display driver. The Bluetooth and WLAN drivers are used to drive the Bluetooth and WLAN chipsets when a first device establishes a connection with a second device and transmits data.
[0239] The software system of the second device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Taking the operating system as an example, the software architecture of the second device is illustrated.
[0240] Figure 7 This is a software structure block diagram of the second device in an embodiment of the present application.
[0241] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, The operating system is divided into three layers: application layer, system service layer, and kernel layer.
[0242] The application layer can include a series of application packages.
[0243] like Figure 7 As shown, the application package may include application programs such as phone switching application A, camera, gallery, calendar, call, WLAN, Bluetooth, short message, application X, application Y, etc.
[0244] Among them, the switching application A is the second switching application installed on the second device, and the switching application A is adapted The version of the operating system, the device switching application A includes a data transmission module. The data transmission module is used to send the data of the second device selected by the user to the first device, specifically including: obtaining the data in the second device through the data backup module, and then displaying the obtained data for user migration in the second device. For details, please refer to the above description Figure 2DThe data backup module stores a whitelist. For an introduction to the whitelist, please refer to the above description and will not be described here. The transmission progress display module is responsible for displaying the progress of the selected data being transmitted to the second device, such as displaying the data as described above. Figure 2F The 2.4G / 5G transmission module is responsible for sending the user-selected data to the first device using 2.4G / 5G transmission technology.
[0245] The system service layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer.
[0246] like Figure 7 As shown, the system service layer may include a network manager service, a backup manager service, an activity manager service, and the like.
[0247] The network manager is responsible for managing and monitoring the status of network connections, including Wi-Fi, mobile data, Bluetooth, and other network types. It provides functions such as querying network status, monitoring network changes, and obtaining network information. In this application, when the second device establishes a connection with the first device's first device through the second device switching application, the network manager can be used to query the network status and provide network query services for the second device and the first device to establish a connection.
[0248] The backup manager is responsible for storing important data such as application data, contacts, text messages, system settings, and files on the second device to the cloud.
[0249] The activity manager is responsible for activities corresponding to the user interface managed and displayed by the second device, for example, managing the desktop displayed by the second device in the aforementioned UI implementation, the interface of the second switching application, and so on.
[0250] The kernel layer is the layer between hardware and software. It includes at least the Bluetooth driver, WLAN driver, and display driver. The Bluetooth and WLAN drivers are used to drive the Bluetooth and WLAN chipsets when the second device establishes a connection with the first device and transmits data.
[0251] refer to Figure 8 , Figure 8 The following is a schematic diagram showing an exemplary hardware architecture of a server. Both the first server and the second server described in this application may adopt this hardware architecture.
[0252] like Figure 8 As shown, the server may include: one or more processors 801, memory 802, communication interface 803, transmitter 805, receiver 806, coupler 807 and antenna 808. These components may be connected via bus 804 or other means. Figure 8 Take the connection via bus 804 as an example.
[0253] The processor 801 may be configured to read and execute computer-readable instructions. Specifically, the processor 801 may be configured to call a program stored in the memory 802, such as a program provided in an embodiment of the present application that converts a second package name of a third-party application reported by a first device into a first package name, obtains a first installation package corresponding to the first package name, and sends the first installation package to the first device for implementation on a server.
[0254] Memory 802 is coupled to processor 801 and is used to store various software programs and / or multiple sets of instructions. Specifically, memory 802 may include high-speed random access memory and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
[0255] The memory 802 may store an operating system (hereinafter referred to as "system"), such as an embedded operating system such as uCOS, VxWorks, or RTLinux. The memory 802 may also store a network communication program that can be used to communicate with the first device, etc. The memory 802 may also store a package name conversion table, a first installation package corresponding to a third-party application, etc.
[0256] The communication interface 803 can be used for the server to communicate with other communication devices, such as the first device. Specifically, the communication interface 803 can be a 3G communication interface, a long-term evolution (LTE) (4G) communication interface, a 5G communication interface, a WLAN communication interface, a WAN communication interface, etc. The server is not limited to a wireless communication interface. The server can also be configured with a wired communication interface 803 to support wired communication. For example, the link between the server and the first device can be a wired communication connection.
[0257] In some embodiments of the present application, the transmitter 805 and the receiver 806 can be regarded as a wireless modem. The transmitter 805 can be used to transmit and process the signal output by the processor 801. The receiver 806 can be used to receive the signal. In the server, the number of transmitters 805 and receivers 806 can be one or more. The antenna 808 can be used to convert electromagnetic energy in the transmission line into electromagnetic waves in free space, or to convert electromagnetic waves in free space into electromagnetic energy in the transmission line. The coupler 807 can be used to divide the mobile communication signal into multiple paths and distribute them to multiple receivers 806. It is understandable that the antenna 808 of the network device can be implemented as a large-scale antenna array.
[0258] It should be understood that each step in the above method embodiment can be completed by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
[0259] The present application also provides an electronic device, which may include a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement the method performed by the electronic device in any of the above embodiments.
[0260] The present application also provides a chip system, including a processing circuit and an interface circuit, wherein the interface circuit is used to receive computer instructions and transmit them to the processing circuit, and the processing circuit is used to execute the computer instructions to implement a method executed by an electronic device as in any of the above embodiments.
[0261] The present application also provides a chip system, which includes at least one processor for implementing the method executed by the electronic device in any of the above embodiments. In one possible design, the chip system also includes a memory for storing program instructions and data, and the memory is located within or outside the processor.
[0262] A chip system can be composed of chips or include chips and other discrete devices.
[0263] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0264] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips. The embodiments of the present application do not specifically limit the type of memory or the configuration of the memory and the processor.
[0265] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0266] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method executed by the electronic device in any one of the above embodiments is implemented.
[0267] The present application also provides a computer program product, including a computer program, which implements the method executed by the electronic device in any of the above embodiments when the computer program is executed by a processor.
[0268] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.
[0269] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0270] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A cross-system data migration method, characterized in that: The method is applied to a communication system including a first device, a second device, and a first server, wherein the first device runs a first operating system, the second device runs a second operating system, and the first operating system is different from the second operating system; the method includes: The second device sends, to the first device, a second package name corresponding to each application in the first group of applications, where the first group of applications includes one or more third-party applications, and the format of the second package name is a format in which the second operating system records the application package name; The first device sends the second package name corresponding to each application in the first group of applications to the first server; The first server converts the second package name corresponding to each application in the first group of applications into the first package name corresponding to each application in the first group of applications, where the format of the first package name is the format in which the first operating system records the application package name; The first server sends, based on the first package name corresponding to each application in the first group of applications, a first installation package corresponding to each application in the first group of applications to the first device, where the first installation package is an installation package adapted to the first operating system; The first device installs a first installation package corresponding to each application in the first group of applications.
2. The method according to claim 1, characterized in that Before the first device sends the second package name corresponding to each application in the first group of applications to the first server, the method further includes: The second device sends an identifier of the second operating system to the first device; The first device determines that the second operating system is different from the first operating system.
3. The method according to claim 1 or 2, characterized in that Before the first device sends the second package name corresponding to each application in the first group of applications to the first server, the method further includes: The first device receives an operation for logging into the first server, and the first device establishes a connection with the first server.
4. The method according to any one of claims 1 to 3, characterized in that Before the first server converts the second package name corresponding to each application in the first group of applications into the first package name corresponding to each application in the first group of applications, the method further includes: The first device displays a first folder on the desktop, where the first folder contains identifiers corresponding to respective applications in the first group of applications, and the first folder indicates that the applications contained therein are applications to be converted.
5. The method according to any one of claims 1 to 4, characterized in that The communication system further includes a second server; The first server downloads and sends the first installation packages corresponding to the respective applications in the first group of applications to the first device based on the first package names corresponding to the respective applications in the first group of applications, specifically including: The first server sends the first package names corresponding to the first group of applications to the second server; The second server obtains first installation packages corresponding to the first group of applications based on first package names corresponding to the respective applications in the first group of applications, and sends the first installation packages to the first device.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The second device sends system data to the first device, where the system data includes one or more of the following: contacts, pictures, videos, and schedules; The first device imports the system data into a storage directory of a corresponding system application.
7. The method according to any one of claims 1 to 6, characterized in that A first device switching application is installed in the first device, and a second device switching application is installed in the second device; The second device sends the second package name corresponding to each application in the first group of applications to the first device, specifically including: the second device obtains the second package name corresponding to each application in the first group of applications through the second switching application, and sends the second package name corresponding to each application in the first group of applications to the first switching application of the first device.
8. The method according to claim 7, characterized in that The first device switching application is an application developed by a manufacturer of the first device, and the second device switching application is an application developed by a manufacturer of the second device.
9. The method according to claim 8, characterized in that Before the second device sends the second package names corresponding to the first group of applications to the first device, the method further includes: The second device receives an operation of selecting the first group of applications.
10. The method according to claim 7, characterized in that The first device switching application and the second device switching application are both applications developed by a manufacturer of the first device.
11. The method according to claim 10, characterized in that The second switching application stores a whitelist, wherein the whitelist includes second package names corresponding to the names of one or more applications; The second device obtains the second package name corresponding to each application in the first group of applications through the second switching application, specifically including: the second device obtains the second package name corresponding to each application in the first group of applications from the whitelist through the second switching application.
12. The method according to claim 11, characterized in that Before the second device sends the second package names corresponding to the first group of applications to the first device, the method further includes: The second device receives an operation of selecting the first group of applications.
13. The method according to claim 9, characterized in that The whitelist also includes one or more application names corresponding to the global resource location schemes url schemes; Before the second device sends the second package names corresponding to the first group of applications to the first device, the method further includes: the second device sequentially opening the URL schemes of one or more applications in the whitelist through the second switching application; The second device displays the identification of the application corresponding to the successfully opened URL scheme; The second device receives the operation of selecting the first group of applications, which specifically includes: the second device receives the operation of selecting the identifier of the first group of applications.
14. A cross-system data migration method, characterized in that: The method is applied to a first device, where the first device runs a first operating system, and includes: The first device receives, sent by the second device, a second package name corresponding to each application in a first group of applications, the first group of applications including one or more third-party applications, the second device running a second operating system, the first operating system being different from the second operating system, and the second package name being in a format that the second operating system uses to record application package names; The first device sends the second package name corresponding to each application in the first group of applications to the first server, so that the first server converts the second package name corresponding to each application in the first group of applications into the first package name corresponding to each application in the first group of applications, and causes the first server to send the first installation package corresponding to each application in the first group of applications to the first device based on the first package name corresponding to each application in the first group of applications, where the format of the first package name is the format in which the first operating system records the application package name, and the first installation package is an installation package adapted to the first operating system; The first device installs a first installation package corresponding to each application in the first group of applications.
15. The method according to claim 14, characterized in that Before the first device sends the second package name corresponding to each application in the first group of applications to the first server, the method further includes: The first device receives an identifier of the second operating system sent by the second device; The first device determines that the second operating system is different from the first operating system.
16. The method according to claim 14 or 15, characterized in that Before the first device sends the second package name corresponding to each application in the first group of applications to the first server, the method further includes: The first device receives an operation for logging into the first server, and the first device establishes a connection with the first server.
17. The method according to any one of claims 14 to 16, characterized in that Before the first server converts the second package name corresponding to each application in the first group of applications into the first package name corresponding to each application in the first group of applications, the method further includes: The first device displays a first folder on the desktop, where the first folder contains identifiers corresponding to respective applications in the first group of applications, and the first folder indicates that the applications contained therein are applications to be converted.
18. The method according to any one of claims 14 to 17, characterized in that The method further comprises: The first device further receives system data sent by the second device, the system data including one or more of the following: contacts, pictures, videos, and schedules; The first device imports the system data into a storage directory of a corresponding system application.
19. The method according to any one of claims 14 to 18, characterized in that A first device switching application is installed in the first device, and a second device switching application is installed in the second device; The first device receiving the second package name corresponding to each application in the first group of applications sent by the second device specifically includes: the first switching application of the first device receiving the second package name corresponding to each application in the first group of applications sent by the second switching application of the second device.
20. The method according to claim 19, characterized in that The first device switching application is an application developed by a manufacturer of the first device, and the second device switching application is an application developed by a manufacturer of the second device.
21. The method according to claim 19, wherein The first device switching application and the second device switching application are both applications developed by a manufacturer of the first device.
22. An electronic device, characterized in that: The method comprises one or more memories, one or more processors, and a computer program stored on the memory, wherein the processor executes the computer program to implement the steps of the method according to any one of claims 14 to 21.
23. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 14 to 21 are implemented.
24. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 14 to 21 are implemented.
Citation Information
Patent Citations
Operating system switching method and device, computer readable medium and electronic equipment
CN113407318A
System and method for running Android application program on Web operating system
CN115827112A
Application management method, server, electronic equipment and system
CN118227222A
Migrating configuration across information handling systems agnostic of operating systems
US11330081B1