Application backup and recovery method, device, storage medium and program product

By including permission configuration information in the application backup and recovery method, the problem of application permission mismatch after replacing a new device is solved, and the normal operation and compatibility improvement of the application on the new device is achieved.

CN113835928BActive Publication Date: 2025-03-18QINGDAO HISENSE MOBILE COMM TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111119776.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-24
Publication Date
2025-03-18
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

After replacing the new device, the target application cannot run normally, mainly because the application permission configuration does not match the system permission status of the new device, resulting in the application function being unavailable.

Method used

Provides an application backup and recovery method, by obtaining the permission configuration information of the target application, packaging it into a backup data packet, and installing and recovering application data on a new device, configuring operation permissions to ensure that the application runs normally on the new device.

Benefits of technology

It solves the application crash problem caused by abnormal application permissions, improves the compatibility of old applications with new Android terminals, improves user experience, simplifies the operation of one-click replacement function, and improves system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113835928B_ABST
    Figure CN113835928B_ABST
Patent Text Reader

Abstract

The present application relates to the field of intelligent terminal technology, and provides an application backup and recovery method, device, storage medium and program product to solve the problem that the target application cannot run after replacing a new device. During backup, the permission configuration data of the target application is obtained by calling the backup and recovery service, and then the permission configuration information of the target application, the program package of the target application and the application data of the target application are packaged into a backup data packet, and then the backup data packet is sent to the replaced terminal. During recovery, the backup data packet is decompressed, the target application is installed first, and then the target application data is decompressed to a specified location, and then the permission configuration file is read, and the operation permissions of the target application are configured based on the permission configuration information to ensure that the target application can run on the new Android terminal. In summary, the embodiment of the present application can make the permissions of the target application compatible with the system of the new terminal after replacing the new terminal, so as to ensure that the target application can run on the new terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent terminal technology, and in particular to backup and recovery methods, devices, storage media and program products for applications. Background Art

[0002] With the development and update of Android terminal devices, more and more user configurations and data are stored in the devices. When changing to a new terminal device, the one-click device switching function currently provided by major mobile phone manufacturers or other third-party platforms only installs the application itself and copies the application data. This results in the need to reconfigure the applications that have been configured with permissions after the user changes the device, which is cumbersome to operate. There is even a phenomenon that the application cannot be used because the application permission status stored in the application does not match the system permission status of the current device.

[0003] Therefore, how to make old applications compatible with new devices and enable old applications to run normally on new devices has become a concern in the industry. Summary of the invention

[0004] The purpose of this application is to provide an application backup and recovery method, device, storage medium and program product to solve the problem that the target application cannot run after replacing a new device.

[0005] In a first aspect, the present application provides an application backup method, applied to a first terminal, the method comprising:

[0006] Get the permission configuration information of the target application;

[0007] Packing the permission configuration information of the target application, the program package of the target application, and the application data of the application into a backup data package;

[0008] The backup data packet is sent to the second terminal.

[0009] In some embodiments, obtaining permission configuration information of the target application includes:

[0010] For the target application, sending a request for obtaining permission configuration information to a permission backup service, so that the permission backup service calls a permission management service in the system of the first terminal to obtain the permission configuration information;

[0011] Receive the permission configuration information returned by the permission backup service.

[0012] In some embodiments, before packaging the permission configuration information of the target application, the program package of the target application, and the application data of the application into a backup data package, the method further includes:

[0013] Parsing the permission configuration information;

[0014] The permission configuration information is saved as a permission configuration extensible markup language xml file.

[0015] In some embodiments, sending the backup data packet to the second terminal includes:

[0016] The data is sent to the second terminal by wireless network or memory card copy.

[0017] In a second aspect, the present application further provides an application recovery method, which is applied to a second terminal, and the method includes:

[0018] Receive a backup data packet of a target application, wherein the backup data packet includes permission configuration information of the target application, a program package of the target application, and application data of the application;

[0019] Installing the target application based on the program package in the backup data package;

[0020] storing the application data to a designated location associated with the target application;

[0021] The operation permissions of the target application are configured based on the permission configuration information.

[0022] In some embodiments, the permission configuration information is stored in a permission configuration extensible markup language xml file, and configuring the operation permission of the target application based on the permission configuration information includes:

[0023] Read the permission configuration extensible markup language xml file to obtain the permission configuration information of the target application;

[0024] Sending the permission configuration information of the target application to a permission backup service;

[0025] The interface of the rights management service in the second terminal is called to grant the target application the operating rights when it is running.

[0026] In some embodiments, the permission configuration information includes:

[0027] A set of runtime permissions applied for by the target application;

[0028] The granting status of the runtime permissions of the target application;

[0029] The permission flags flags when the target application permissions are granted.

[0030] In a third aspect, the present application further provides a terminal device, including:

[0031] A display, for displaying a user interface of a target application;

[0032] A memory for storing executable instructions of the processor;

[0033] A processor is used to execute the executable instructions to implement any method provided in the first aspect and / or the second aspect of the present application.

[0034] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor of a terminal device, the terminal device is enabled to execute any method provided in the first aspect and / or second aspect of the present application.

[0035] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any method provided in the first aspect and / or the second aspect of the present application.

[0036] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0037] Based on the above application backup and recovery method, when the user uses the target application after changing to a new device, the application crash caused by abnormal application permissions is avoided, so that the application permissions of the Android device after the device is changed are more compatible, and a method for backing up and restoring applications is provided to the user, which improves the user experience, improves the operational convenience and system stability of the one-click device switching function, and improves the compatibility of old applications with new Android terminals.

[0038] It should be understood that the above general description and the following detailed description are only exemplary and explanatory and cannot limit the present application. Based on the common sense in the art, the above preferred conditions can be combined arbitrarily to obtain the preferred embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0041] Figure 2 A schematic diagram of the software architecture of a terminal device provided in an embodiment of the present application;

[0042] Figure 3A flowchart of an application backup method provided in an embodiment of the present application;

[0043] Figure 4 A flowchart of an application recovery method provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of a process of backing up a target application on a first terminal provided in an embodiment of the present application;

[0045] Figure 6 A flowchart of a recovery process of a target application in a second terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Among them, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0047] Furthermore, in the description of the embodiments of the present application, unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. The “and / or” in the text is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “plurality” refers to two or more than two.

[0048] In the following, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more.

[0049] The following is an introduction to the method for managing application permissions provided by this application in conjunction with an embodiment.

[0050] The embodiment of the present application mainly solves the problem that the target application cannot run after replacing a new device. The inventive concept of the present application can be summarized as follows: when the one-key switch function is executed, a backup and recovery process of the permission configuration of the target application is added on the basis of the original backup and recovery process. During backup, the permission configuration data of the target application is obtained by calling the backup and recovery service, and then the permission configuration information of the target application, the program package of the target application, and the application data of the target application are packaged into a backup data packet, and then the backup data packet is sent to the replaced terminal. During recovery, the backup data packet is decompressed, the target application is installed first, and then the target application data is decompressed to a specified location, and then the permission configuration file is read, and the operation permissions of the target application are configured based on the permission configuration information to ensure that the target application can run on the new Android terminal. In summary, the embodiment of the present application can use the target application after replacing the new terminal, and can achieve the consistency of the permission configuration of the target application in the old terminal and the permission configuration of the target application after the backup in the new terminal through the backup and recovery process of the permission configuration of the target application, so as to solve the problem of abnormal operation of the backup application. It provides users with a method to back up and restore applications, improves user experience, simplifies the operation of the one-click device switching function, improves system stability, and improves the compatibility of old applications with new Android terminals.

[0051] After introducing the main inventive ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In specific implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0052] first, Figure 1 A schematic structural diagram of a terminal device 100 is shown.

[0053] The following embodiment is specifically described by taking the terminal device 100 as an example. It should be understood that: Figure 1 The terminal device 100 shown is only an example, and the terminal device 100 may have more Figure 1 The more or less components shown in the figure can be combined with two or more components, or can have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0054] Figure 1 FIG. 1 is a block diagram showing a hardware configuration of a terminal device 100 according to an exemplary embodiment. Figure 1As shown, the terminal device 100 includes: a radio frequency (RF) circuit 110, a memory 120, a display unit 130, a camera 140, a sensor 150, an audio circuit 160, a wireless fidelity (Wi-Fi) module 170, a processor 180, a Bluetooth module 181, and a power supply 190 and other components.

[0055] The RF circuit 110 can be used to receive and send signals during the process of sending and receiving information or making calls. It can receive downlink data from the base station and hand it over to the processor 180 for processing; it can send uplink data to the base station. Generally, the RF circuit includes but is not limited to antennas, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer and other devices.

[0056] The memory 120 can be used to store software programs and data. The processor 180 executes various functions and data processing of the terminal device 100 by running the software programs or data stored in the memory 120. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 120 stores an operating system that enables the terminal device 100 to run. In the present application, the memory 120 can store an operating system and various application programs, and can also store program codes for executing the method described in the embodiments of the present application.

[0057] The display unit 130 may be used to receive input digital or character information and generate signal input related to user settings and function control of the terminal device 100. Specifically, the display unit 130 may include a touch screen 131 disposed on the front of the terminal device 100, which may collect user touch operations on or near it, such as clicking a button to allow authorization, clicking a button to deny authorization, dragging a scroll box, etc.

[0058] The display unit 130 can also be used to display information input by the user or information provided to the user and a graphical user interface (GUI) of various menus of the terminal device 100. Specifically, the display unit 130 may include a display screen 132 disposed on the front of the terminal device 100. The display screen 132 may be configured in the form of a liquid crystal display, a light emitting diode, etc. The display unit 130 may be used to display the user interface of the target application in this application, the data backup process, etc.

[0059] The touch screen 131 may be covered on the display screen 132, or the touch screen 131 and the display screen 132 may be integrated to realize the input and output functions of the terminal device 100, and the integrated touch screen may be referred to as a touch display screen. In the present application, the display unit 130 may display the application and the corresponding operation steps.

[0060] The camera 140 can be used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then passed to the processor 180 for conversion into a digital image signal.

[0061] The terminal device 100 may further include at least one sensor 150, such as an acceleration sensor 151, a distance sensor 152, a fingerprint sensor 153, and a temperature sensor 154. The terminal device 100 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor.

[0062] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 100. The audio circuit 160 can transmit the electrical signal converted from the received audio data to the speaker 161, which is converted into a sound signal for output. The terminal device 100 can also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then outputs the audio data to the RF circuit 110 to send to, for example, another terminal device, or outputs the audio data to the memory 120 for further processing. In this application, the microphone 162 can obtain the user's voice.

[0063] Wi-Fi is a short-range wireless transmission technology. The terminal device 100 can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 170, which provides users with wireless broadband Internet access.

[0064] The processor 180 is the control center of the terminal device 100. It uses various interfaces and lines to connect various parts of the entire terminal device. It executes various functions of the terminal device 100 and processes data by running or executing software programs stored in the memory 120 and calling data stored in the memory 120. In some embodiments, the processor 180 may include one or more processing units; the processor 180 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the baseband processor mainly processes wireless communications. It is understandable that the above-mentioned baseband processor may not be integrated into the processor 180. In this application, the processor 180 can run the operating system, application programs, user interface display and touch response, as well as the processing method described in the embodiment of the present application. In addition, the processor 180 is coupled to the display unit 130.

[0065] The Bluetooth module 181 is used to exchange information with other Bluetooth devices having Bluetooth modules through the Bluetooth protocol. For example, the terminal device 100 can establish a Bluetooth connection with a wearable terminal device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 181 to exchange data.

[0066] The terminal device 100 also includes a power supply 190 (such as a battery) for supplying power to various components. The power supply can be logically connected to the processor 180 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption. The terminal device 100 can also be configured with a power button for powering on and off the terminal device, as well as locking the screen and other functions.

[0067] Figure 2 It is a software structure block diagram of the terminal device 100 according to an embodiment of the present application.

[0068] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0069] The application layer can include a series of application packages.

[0070] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0071] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0072] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0073] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0074] 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, short messages, etc.

[0075] The view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including an authorization prompt box can include a view for displaying text and a view for displaying images.

[0076] The phone manager is used to provide communication functions of the terminal device 100, such as management of call status (including connection, disconnection, etc.).

[0077] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, etc.

[0078] The notification manager enables applications to display notification information (such as message summaries and message contents) in a floating window. It can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.

[0079] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0080] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0081] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0082] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0083] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0084] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0085] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0086] A 2D (animation mode) graphics engine is a drawing engine for 2D drawing.

[0087] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0088] The terminal device 100 in the embodiment of the present application may be a terminal device such as a mobile phone, a tablet computer, a wearable device, and a television, which can be installed with an Android system.

[0089] Based on the above description, an application backup method provided in an embodiment of the present application is applied to a first terminal, and the overall flow chart is as follows: Figure 3 As shown, it can be implemented as the following steps:

[0090] In step 301, the permission configuration information of the target application is obtained.

[0091] In one embodiment, for the target application, a request for obtaining permission configuration information is sent to a permission backup service, so that the permission backup service calls the permission management service in the system of the first terminal to obtain the permission configuration information, and then the permission backup service receives the permission configuration information returned by the permission backup service.

[0092] It should be noted that before packaging the permission configuration information of the target application, the program package of the target application and the application data of the application into a backup data packet, in order to facilitate the transmission and management of the permission configuration information, the obtained permission configuration information can be parsed in the present application, and then the permission configuration information can be saved as a permission configuration extensible markup language xml file.

[0093] Then in step 302, the permission configuration information of the target application, the program package of the target application, and the application data of the application are packaged into a backup data package.

[0094] In step 303, the backup data packet is sent to the second terminal. The backup data packet may be sent to the second terminal via a wireless network or by copying the data to a memory card.

[0095] Accordingly, an application recovery method provided in an embodiment of the present application is applied to a second terminal, which receives a backup data packet of a first terminal. The overall process is as follows: Figure 4 Can be implemented as:

[0096] In step 401, a backup data package of a target application is received, the backup data package including permission configuration information of the target application, a program package of the target application, and application data of the target application. In step 402, the target application is installed based on the program package in the backup data package.

[0097] In step 403, the application data is stored in a designated location associated with the target application. For example, the designated location is: / data / data / target application package name / , that is, the application data is stored in / data / data / target application package name / .

[0098] In step 404, the operation permissions of the target application are configured based on the permission configuration information.

[0099] In one embodiment, configuring the operation permission of the target application based on the permission configuration information includes: reading the permission configuration extensible markup language xml file, obtaining the permission configuration information of the target application, and then sending the permission configuration information of the target application to the permission backup service; calling the interface of the permission management service in the second terminal to grant the target application runtime operation permission. At this time, each version of the Android system has differences in the structure and configuration of the runtime permission, and special processing is required according to the permission differences of different versions of the Android system before and after the backup. Among them, the permission configuration information includes a set of runtime permissions applied by the target application, which refers to all runtime permissions required for the normal operation of all functions of the target application, such as the normal operation of WeChat requires storage, camera call and positioning permissions, and these permissions constitute a set to become part of the permission configuration information; the granting of the target application runtime permission, that is, the state of the target application runtime permission, such as WeChat allows positioning, but does not allow camera call, allowing positioning and not allowing camera call is the current state of WeChat permissions, and these states constitute the granting of the target application runtime permission; the permission flags when the target application permission is granted refer to the attributes of the target application permission, for example, WeChat allows the permission to call the camera, how the camera runs normally and the conditions for achieving normal operation, all of which belong to the attributes of the target application permission.

[0100] In summary, the first terminal and the second terminal can be used to restore the target application according to the backup process of the first terminal. Figure 5 Can be implemented as:

[0101] In step 501, the backup and restore application obtains the installation package of the target application and its application data.

[0102] In step 502, the backup and restore application calls the permission backup service (BackupService) to obtain the permission configuration information of the target application when it is running.

[0103] In step 503A, the permission backup service responds to the request from the backup and restore application, calls the permission management service, and queries the runtime permission configuration information applied for by the target application, including the permission set and the runtime permission granting status and the permission flag flags when the target application permissions are granted.

[0104] In step 503B, the rights management service returns the rights configuration information of the target application to the rights backup service.

[0105] In step 504, the permission backup service organizes the queried permission configuration information into data in a specific format and returns it to the backup and recovery application.

[0106] In step 505, the backup and restore application parses the returned data and then saves the data as a permission configuration xml file.

[0107] In step 506, the permission configuration information of the target application, the program package of the target application and the application data of the application are packaged to obtain a backup data package, which is then transferred to the second terminal via wifi or a memory card copy.

[0108] In some embodiments, when the second terminal receives the backup data packet from the first terminal, the backup recovery application can be restored in the process of restoring the runtime permissions of the target application in the second terminal as follows: Figure 6 , which can be implemented as:

[0109] In step 601, the backup and restore application divides the backup data package into the installation package apk of the target application, the target application data and the permission configuration xml file.

[0110] In step 602, based on the installation package apk of the target application, the application installation interface of the system is called to install the target application.

[0111] In step 603, the target application data is decompressed to a designated location associated with the target application after installation, for example: / data / data / application B package name / .

[0112] In step 604, the backup and restore application reads the permission configuration xml file, obtains the package name of the target application and the permission configuration data of the target application backup, and passes it to the permission backup service.

[0113] In some embodiments, the backup and recovery application reads and disassembles the permission configuration xml file. Since the permission configuration xml file contains all permission configuration information of an application, such as WeChat's location permission and camera call permission, it needs to be disassembled to obtain the permission configuration data of each permission backed up by the target application, and each permission configuration data is packaged into a specific data structure. For example, to configure location permission, the required data type is an array or a structure, so the specific data structure depends on the requirements of the permission interface, which implements authorization for the target application.

[0114] In step 605, the permission backup service parses the received permission configuration data of the target application when it is running on the first terminal, and calls the corresponding interface of the permission management service.

[0115] The permission backup service analyzes the matching degree between the second terminal system permissions and the permission configuration data obtained by the target application backup, that is, adapts the permission configuration data to the second terminal. For example, in the old version of the Android system, positioning only requires a permission collectively referred to as GPS to achieve the purpose of positioning, but in the new version of the Android system, positioning is divided into network positioning and satellite positioning. It is necessary to configure these two positioning permissions at the same time to achieve the purpose and effect of using the positioning permission of the old version of the Android system. Based on the compatibility adjustment of the positioning permission in the new version of the Android system, the present application packages the permission configuration data backed up by the target application into a specific data structure compatible with the second terminal system permission architecture, and finally sends this permission configuration data to the permission backup service to perform step 605 and subsequent operations.

[0116] In step 606, the rights management service configures the operating rights of the target application based on the rights configuration information, including a set of rights, the granting of rights at runtime, and the flags of the rights granted to the target application.

[0117] The above steps truly realize the management of application permissions after replacing a new terminal. By backing up the permission configuration information of the target application at the same time as the one-click switching function is backed up, users are provided with a method of backing up and restoring applications, which improves the user experience, enhances the operational convenience and system stability of the one-click switching function, and improves the compatibility of old applications with new Android terminals.

[0118] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0119] Similar parts between the embodiments provided in this application can be referenced to each other. The specific implementation methods provided above are only a few examples under the general concept of this application and do not constitute a limitation on the protection scope of this application. For those skilled in the art, any other implementation methods expanded based on the scheme of this application without creative work belong to the protection scope of this application.

[0120] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0121] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0124] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An application backup method, characterized in that: Applied to a first terminal, the method includes: Get the permission configuration information of the target application; Establishing a connection with a second terminal via a wireless network; Sending the permission configuration information of the target application, the program package of the target application, and the application data of the target application to the second terminal through the wireless network, so that the second terminal reads the permission configuration xml file through the backup recovery application of the second terminal and obtains the permission configuration information of the target application during the process of configuring the operation permission of the target application based on the permission configuration information; Decomposing the permission configuration information to obtain permission configuration data of each permission of the target application through the backup and recovery application of the second terminal, packaging the permission configuration data of each permission into a specific data structure, and sending the packaged permission configuration data to the permission backup service of the second terminal; Analyzing the matching degree between the second terminal system permissions and the permission configuration data of the target application through the permission backup service of the second terminal, adapting the permission configuration data to the second terminal, and obtaining the adapted permission configuration information; and The operation permission of the target application is configured based on the adapted permission configuration information through the permission management service of the second terminal.

2. The method according to claim 1, characterized in that: The step of obtaining the permission configuration information of the target application includes: For the target application, sending a request for obtaining permission configuration information to a permission backup service, so that the permission backup service calls a permission management service in the system of the first terminal to obtain the permission configuration information; Receive the permission configuration information returned by the permission backup service.

3. The method according to claim 2, characterized in that The method further comprises: Parsing the permission configuration information; The permission configuration information is saved as a permission configuration extensible markup language xml file.

4. An application recovery method, characterized in that: Applied to the second terminal, the method includes: Establishing a connection with the first terminal via a wireless network; receiving, via the wireless network, permission configuration information of a target application, a program package of the target application, and application data of the target application sent by the first terminal; the permission configuration information of the target application is obtained by the first terminal calling a permission management service in a system of the first terminal through a permission backup service of the first terminal; Installing the target application based on the program package of the target application; and storing the application data of the target application to a designated location associated with the target application; Read the permission configuration xml file through the backup and recovery application of the second terminal to obtain the permission configuration information of the target application; Decomposing the permission configuration information to obtain permission configuration data of each permission of the target application through the backup and recovery application of the second terminal, packaging the permission configuration data of each permission into a specific data structure, and sending the packaged permission configuration data to the permission backup service of the second terminal; Analyzing the matching degree between the second terminal system permissions and the permission configuration data of the target application through the permission backup service of the second terminal, adapting the permission configuration data to the second terminal, and obtaining the adapted permission configuration information; The operation permission of the target application is configured based on the adapted permission configuration information through the permission management service of the second terminal.

5. The method according to claim 4, characterized in that The permission configuration information includes a set of runtime permissions applied for by the target application, a granting status of the runtime permissions of the target application, and permission flags when the permissions of the target application are granted.

6. The method according to claim 4, characterized in that The specific data structure depends on the requirement of the permission interface of each permission, and the permission interface is used to authorize the target application.

7. A terminal device, characterized in that: include: A display, for displaying a user interface of a target application; A memory for storing executable instructions of the processor; A processor, configured to execute the executable instructions to implement the method according to any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a terminal device, the terminal device is enabled to execute the method according to any one of claims 1 to 6.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Data transferring method and system for intelligent terminals

    CN105786606A