[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107018188A - Migrate the method and device of application data and the application data of storage migration - Google Patents

Migrate the method and device of application data and the application data of storage migration Download PDF

Info

Publication number
CN107018188A
CN107018188A CN201710205381.0A CN201710205381A CN107018188A CN 107018188 A CN107018188 A CN 107018188A CN 201710205381 A CN201710205381 A CN 201710205381A CN 107018188 A CN107018188 A CN 107018188A
Authority
CN
China
Prior art keywords
application data
terminal
script
compression
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710205381.0A
Other languages
Chinese (zh)
Inventor
宋亮
王双
皮素梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710205381.0A priority Critical patent/CN107018188A/en
Publication of CN107018188A publication Critical patent/CN107018188A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method and device for migrating application data and the application data of storage migration, belong to field of terminal technology.Methods described includes:Create the first system service with System Privileges;After the migration instruction for intended application data is received, the first script is enabled using the first system service;First script is performed to the intended application data being stored in the system directory of the first terminal, obtains compressing application data, and be readable write permission by the priority assignation of the compression application data;The compression application data is sent to the second terminal.The present invention can cause user after changes terminal, and new terminal can obtain setting data, historical data of conventional application etc. automatically so that user need not be configured after changes terminal on new terminal to application, so as to simplify operation.

Description

Migrate the method and device of application data and the application data of storage migration
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of first terminal migrates the side of application data to second terminal Method and device, and a kind of second terminal store the method and device of the application data of first terminal migration.
Background technology
Currently, due to the explosive growth of technology so that the speed ten that terminal (for example, mobile phone, tablet personal computer etc.) is regenerated Divide fast, this causes the frequency of user's changes terminal also to accelerate, according to statistics, user is average will to change end every 2 years or so End.In user's changes terminal, user needs to install oneself conventional application in new terminal, and should to what is installed in new terminal With being configured, to meet the use habit of itself.
In order to simplify the flow for installing application after user's changes terminal in new terminal, presently, there are a kind of application migration should With.Due to being generally fitted with the application that user commonly uses in the old terminal of user, therefore, the application migration application can be old by user The installation kit of application in terminal is sent into new terminal, and is automatically performed by new terminal the installation of application based on the installation kit, So that new terminal can be automatically performed the installation to the conventional application of user.
During the present invention is realized, inventor has found that prior art at least has problems with:
At present, after application installation, user also needs to be configured application, such as inputs user name, password and carries out Log in, change usual skin, obtain the historical data etc. of application, such operation is relatively complicated, and flexibility is poor.
The content of the invention
In order to solve the problem of prior art operation is cumbersome, flexibility is poor, the embodiments of the invention provide one kind first Terminal migrates the method and device of application data, and the application that a kind of second terminal storage first terminal is migrated to second terminal The method and device of data.The technical scheme is as follows:
First aspect applies number there is provided a kind of first terminal being applied in android system to second terminal migration According to method, including:
Create the first system service with System Privileges;
After the migration instruction for intended application data is received, the first pin is enabled using the first system service This;
First script is performed to the intended application data being stored in the system directory of the first terminal, obtained It is readable write permission to compression application data, and by the priority assignation of the compression application data;
The compression application data is sent to the second terminal.
Optionally, the described pair of intended application data being stored in the system directory of the first terminal perform described First script, obtains compressing application data, including:
The intended application data being stored in the system directory of the first terminal are performed in first script Tar instruction, obtain compressed format be tar forms the compression application data.
Optionally, methods described also includes:
After the migration instruction for intended application is received, the installation kit of the intended application is sent to described second Terminal, wherein, the intended application data are included in the data being related to during using the intended application.
Second aspect should there is provided a kind of second terminal storage first terminal migration being applied in android system With the method for data, including:
Create the second system service with System Privileges;
After the compression application data that the first terminal is sent is received, second is enabled using the second system service Script;
Second script is performed to the compression application data, obtains decompressing application data, and the decompression is applied The priority assignation of data is can not access limit;
By the decompression application data store into the system directory of the second terminal.
Optionally, the compressed format of the compression application data is tar forms, described that the compression application data is performed Second script, obtains decompressing application data, including:
The tar instructions in second script are performed to the compression application data, the decompression application data is obtained.
The third aspect applies number there is provided a kind of first terminal being applied in android system to second terminal migration According to device, including:
Creation module, for creating the first system service with System Privileges;
Module is enabled, for after the migration instruction for intended application data is received, being taken using the first system Business enables the first script;
Compression module, for performing institute to the intended application data being stored in the system directory of the first terminal The first script is stated, obtains compressing application data, and be readable write permission by the priority assignation of the compression application data;
Sending module, for the compression application data to be sent to the second terminal.
Optionally, the compression module, is used for:
The intended application data being stored in the system directory of the first terminal are performed in first script Tar instruction, obtain compressed format be tar forms the compression application data.
Optionally, the sending module, is additionally operable to:
After the migration instruction for intended application is received, the installation kit of the intended application is sent to described second Terminal, wherein, the intended application data are included in the data being related to during using the intended application.
Fourth aspect should there is provided a kind of second terminal storage first terminal migration being applied in android system With the device of data, including:
Creation module, for creating the second system service with System Privileges;
Module is enabled, for after the compression application data that the first terminal is sent is received, being using described second System service enables the second script;
Decompression module, for performing second script to the compression application data, obtains decompressing application data, and will The priority assignation of the decompression application data is can not access limit;
Memory module, for by it is described decompression application data store into the system directory of the second terminal.
Optionally, the compressed format of the compression application data is tar forms, and the decompression module is used for:
The tar instructions in second script are performed to the compression application data, the decompression application data is obtained.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By enabling the first script using the first system service with System Privileges in first terminal, with to being stored in Intended application data in the system directory of the first terminal perform first script, obtain compressing application data, and this is pressed The priority assignation of contracting application data is readable write permission, and then first terminal sends the compression application data to second terminal, So that user is after changes terminal, new terminal can obtain setting data, historical data of application etc. so that user is more Changing after terminal need not be configured to application manually in new terminal, so as to simplify operation.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is that a kind of first terminal provided in an embodiment of the present invention migrates application data and second terminal to second terminal Store the schematic diagram of the implementation environment of the method for the application data of first terminal migration.
Fig. 2 is the flow for the method that a kind of first terminal provided in an embodiment of the present invention migrates application data to second terminal Figure.
Fig. 3 is a kind of method of the application data of second terminal storage first terminal migration provided in an embodiment of the present invention Flow chart.
Fig. 4 A are that a kind of first terminal provided in an embodiment of the present invention migrates application data and second eventually to second terminal The flow chart of the method for the application data of end storage first terminal migration.
Fig. 4 B are the schematic diagrames that a kind of application provided in an embodiment of the present invention migrates interface.
Fig. 5 is the frame for the device that a kind of first terminal provided in an embodiment of the present invention migrates application data to second terminal Figure.
Fig. 6 is a kind of device of the application data of second terminal storage first terminal migration provided in an embodiment of the present invention Block diagram.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.The moving apparatus of application data
Fig. 1 be according to exemplary partial implement a kind of first terminal for exemplifying to second terminal migrate application data and The schematic diagram of implementation environment involved by the method for the application data of second terminal storage first terminal migration, as shown in figure 1, should Implementation environment can include first terminal 110 and second terminal 120, can pass through between first terminal 110 and second terminal 120 Communication or wired communication mode are communicated.Wherein, first terminal 110 and second terminal 120 can for mobile phone, Tablet personal computer or other-end equipment, the embodiment of the present invention are not limited this.In addition, in one embodiment of the present of invention In, it can carry Android (Android) operating system in the first terminal 110 and the second terminal 120.
Fig. 2 is the method that a kind of first terminal according to an exemplary embodiment migrates application data to second terminal Flow chart, the first terminal to second terminal migrate application data method can apply to implementation environment as shown in Figure 1 In, as shown in Fig. 2 the method that the first terminal migrates application data to second terminal comprises the following steps:
Step 201, first terminal create the first system service with System Privileges.
Step 202, first terminal are taken after the migration instruction for intended application data is received using the first system Business enables the first script.
Step 203, first terminal are performed to the intended application data being stored in the system directory of the first terminal should First script, obtains compressing application data, and be readable write permission by the priority assignation of the compression application data.
Step 204, first terminal send the compression application data to the second terminal.
In summary, the method that first terminal provided in an embodiment of the present invention migrates application data to second terminal, passes through The first script is enabled using the first system service with System Privileges in first terminal, with to being stored in the first terminal Intended application data in system directory perform first script, obtain compressing application data, and by the compression application data Priority assignation is readable write permission, and then first terminal sends the compression application data to second terminal, so that user After changes terminal, new terminal can obtain setting data, historical data of application etc. so that user is not required to after changes terminal Application is configured manually in new terminal, so as to simplify operation.
Fig. 3 is a kind of application data of second terminal storage first terminal migration according to an exemplary embodiment The flow chart of method, the second terminal storage first terminal migration application data method can apply to it is as shown in Figure 1 In implementation environment, as shown in figure 3, the method for the application data of second terminal storage first terminal migration comprises the following steps:
Step 301, second terminal create the second system service with System Privileges.
Step 302, second terminal utilize the second system after the compression application data of first terminal transmission is received Service enables the second script.
Step 303, second terminal perform second script to the compression application data, obtain decompressing application data, and will The priority assignation of the decompression application data is can not access limit.
Step 304, second terminal are by the decompression application data store into the system directory of the second terminal.
In summary, the method that first terminal provided in an embodiment of the present invention migrates application data to second terminal, passes through Second terminal receives the compression application data that first terminal is sent, and enables the second script using second system service, with to this Compress application data and perform the second script, obtain decompressing application data, and by the priority assignation of the decompression application data for can not Access limit, then second terminal by the decompression application data store in the system directory of second terminal so that user After changes terminal, new terminal can obtain setting data, historical data of application etc. so that user is not required to after changes terminal Application is configured manually in new terminal, so as to simplify operation.
Fig. 4 A be a kind of first terminal according to an exemplary embodiment to second terminal migrate application data and The flow chart of the method for the application data of second terminal storage first terminal migration, this method can apply to as shown in Figure 1 In implementation environment, as shown in Figure 4 A, this method comprises the following steps:
Step 401, first terminal create the first system service with System Privileges.
The application data being equipped with the terminal of Android operation system is typically all stored in system directory, and to be accessed and be System catalogue needs to have System Privileges, therefore, in order to which the application data in first terminal is migrated into second terminal, and first eventually End needs to create the first system service with System Privileges.Because the first system service has System Privileges, therefore its energy The system directory of first terminal is enough accessed, and the application data stored in system directory is handled, so as to realize first eventually Hold the application data migration to second terminal.Wherein, it is related to when the application data of a certain application is referred to using a certain application The data arrived, such as set data, historical data, skin data.
In one embodiment of the invention, the first system service can be backupAppDataService, as follows It show the exemplary code of the backupAppDataService:
From above-mentioned code, the backupAppDataService has s0 authorities, that is to say System Privileges, should BackupAppDataService can start this script of backupAppData.sh, by enabling the script, BackupAppDataService can access and handle the application data being stored in the system directory of first terminal, it is necessary to say Bright, the backupAppData.sh scripts that is to say the first script described below.
In actual applications, first terminal may have been created above-mentioned first when migrating application data to second terminal System service, in this case, the embodiment of the present invention can not perform above-mentioned steps 401, and directly perform step 402.
Step 402, first terminal utilize the first system service after the migration instruction for intended application data is received Enable the first script.
In actual applications, first terminal can be provided using migration interface, can be included in the application migration interface many Individual application migrates option, and each application migration option can be corresponding with the application installed in first terminal.
When user wants to migrate application data to second terminal, the target that can be triggered in above-mentioned application migration interface should With migration option, the migration that first terminal can receive for intended application data after the trigger action of user is detected refers to Order, the intended application data are the application data of intended application corresponding with intended application migration option, for example, the target should Can be wechat application, then the application number that the intended application data can be applied for wechat with the corresponding intended application of migration option According to.
Certainly, in actual applications, user is triggered after the intended application migration option in above-mentioned application migration interface, and first Terminal can also receive the migration instruction for above-mentioned intended application, should can indicate first for the migration instruction of intended application Terminal migrates the installation kit of intended application into second terminal.
For example, as shown in Figure 4 B, first terminal can be provided using migration interface 40, can be with the application migration interface 40 Option is migrated including multiple applications, wherein, it is using corresponding application migration option with wechat using migration option 41.Work as user After triggering application migration option 41, first terminal can receive the migration instruction for the application data applied for wechat, at some In the case of, after user triggers above-mentioned application migration option 41, first terminal can also receive the migration applied for wechat and refer to Order.
It should be noted that above-mentioned first terminal receive for the migration instruction of intended application data technical process and All it is merely exemplary using migration interface 40, it can not limit the present invention.
First terminal is after the above-mentioned migration instruction for intended application data is received, it is possible to use the first system service Enable the first script.Illustrate as described above, the first system service can be backupAppDataService, and first script can Think backupAppData.sh.
It should be noted that as described above, in actual applications, first terminal is being received for intended application data During migration instruction, the migration instruction for intended application can also be received.In this case, first terminal is being using first System service is enabled before the first script, the technical process for the installation kit for obtaining intended application is can also carry out, so as to first terminal The installation kit is migrated into second terminal in subsequent step, specifically:
First terminal can obtain the installation kit of the intended application after the migration instruction for intended application is received, Specifically, if the installation kit for the intended application that is stored with first terminal, first terminal can obtain the installation stored in itself Bag, if the installation kit for the intended application that is not stored with first terminal, first terminal can the version based on intended application Identify to server and ask the installation kit, and obtain the installation kit of server return.
Then, broadcast mechanism generation the first application broadcast that first terminal can be based on Android system, and to the first system Service sends the first application broadcast, and the first application broadcast is used to indicate that first terminal has obtained the installation of intended application Bag, the first system service is received after the first application broadcast, can enable above-mentioned first script.
For example, first terminal is after trigger action of the user to the application migration option 41 in the example above is detected, can Instructed with the migration for receiving the migration instruction for the application data applied for wechat and being applied for wechat, then, first terminal The installation kit of wechat application can be obtained, and after the installation kit is got, the broadcast mechanism generation based on Android system Intent.BackupAppData is broadcasted, and the Intent.BackupAppData is broadcast into the first system service BackupAppDataService, backupAppDataService are after Intent.BackupAppData broadcast is received The first script backupAppData.sh can be enabled.
Step 403, first terminal perform the first pin to the intended application data being stored in the system directory of first terminal This, obtains compressing application data, and be readable write permission by the priority assignation for compressing application data.
It should be noted that above-mentioned first script is used for compressed data, and for setting the authority of data.The present invention's In one embodiment, first script, the backupAppData.sh scripts in illustrating as described above can be to above-mentioned intended application Data perform tar instructions, to obtain compression application data of the compressed format as tar forms, and by the power of the compression application data Limit is set to readable write permission.
Certainly, in actual applications, first script is also based on other instructions intended application data is compressed Processing, for example, gz is instructed, bz2 instructions, bz instructions, z instructions etc., the embodiment of the present invention is not specifically limited to this.
Step 404, first terminal are sent application data is compressed to second terminal.
In actual applications, first terminal needs first to obtain the mailing address of second terminal, then according to the mailing address Compression application data is sent into second terminal, certainly, if first terminal have received the migration instruction for intended application, Then first terminal can also send the installation kit of intended application to second terminal according to the mailing address.
Specifically, in one embodiment of the invention, second terminal can generate Quick Response Code, can be taken in the Quick Response Code IP (the Internet Protocol of mailing address with second terminal, such as second terminal;Iso-ip Internetworking protocol ISO-IP) address etc.. First terminal can obtain the mailing address of second terminal by scanning the Quick Response Code.
It should be noted that what the method that above-mentioned first terminal obtains the mailing address of second terminal was merely exemplary, May there are other modes in practical application, the embodiment of the present invention is not repeated one by one herein.
In actual applications, first terminal can be based on FTP (File Transfer Protocol;FTP) Mechanism sends above-mentioned compression application data to second terminal.
Step 405, second terminal create the second system service with System Privileges.
Second terminal is after the compression application data of first terminal transmission is received, it is necessary to be carried out to the compression application data Decompression, and by the system directory of the application data store Jing Guo decompression to second terminal, and to access The system directory of two terminals needs to have System Privileges, therefore, in order to by the application data store Jing Guo decompression to In the system directory of two terminals, second terminal needs to create the second system service with System Privileges.
In one embodiment of the invention, the second system service can be recoverAppDataService, as follows It show the exemplary code of the recoverAppDataService:
From above-mentioned code, the recoverAppDataService has s0 authorities, that is to say System Privileges, should RecoverAppDataService can enable this script of recoverAppData.sh, by enabling the script, RecoverAppDataService can carry out decompression to above-mentioned compression application data, and will pass through decompression Application data store into the system directory of second terminal, it is necessary to explanation, the recoverAppData.sh scripts namely It is the second script described below.
In actual applications, second terminal may have been created above-mentioned second system clothes when receiving compression application data Business, in this case, the embodiment of the present invention can not perform above-mentioned steps 405, and directly perform step 406.
It should be noted that user operates for convenience, and when carrying out application data migration, first terminal and second terminal The first system service and second system service can be created simultaneously, and by the behaviour of first terminal and second terminal according to user Make, be selectively enabled the first system service or second system service, that is to say, intended application data are directed to when detecting During migration instruction, first terminal can enable the first system service, and when receiving compression application data, second terminal can be opened Serviced with second system.As follows is that first terminal and the service of second terminal selective enabling the first system and second system take The exemplary program code of business:
Step 406, second terminal utilize second system after the compression application data that the first terminal is sent is received Service enables the second script.
As described above, in actual applications, first terminal may be used also when sending above-mentioned compression application data to second terminal To send the installation kit of intended application, in this case, second terminal using second system service enable the second script it Before, it is also based on the installation kit and above-mentioned intended application is installed.Specifically, second terminal is being mounted with target based on the installation kit After, broadcast mechanism generation the second application broadcast that can be based on Android system, and to the second system service send this Two application broadcast, the second application broadcast is used to indicate that intended application has completed installation, is receiving the second application broadcast Afterwards, second system service can enable second script.
Step 407, second terminal perform the second script to compression application data, obtain decompressing application data, and will decompression The priority assignation of application data is can not access limit.
It should be noted that above-mentioned second script is used to decompress data, and for setting the authority of data.The present invention's In one embodiment, second script can perform tar instructions to the compression application data, obtain decompressing application data, and will The priority assignation of the decompression application data is can not access limit.
Certainly, in actual applications, second script is also based on other instructions intended application data is decompressed Processing, for example, gz is instructed, bz2 instructions, bz instructions, z instructions etc., the embodiment of the present invention is not specifically limited to this.
Step 408, second terminal are by the decompression application data store into the system directory of second terminal.
Second terminal is carrying out decompression to compression application data, obtains after decompression application data, can solve this Application data store is pressed in the system directory of second terminal.
In summary, the method that first terminal provided in an embodiment of the present invention migrates application data to second terminal, passes through The first script is enabled using the first system service with System Privileges in first terminal, with to being stored in the first terminal Intended application data in system directory perform first script, obtain compressing application data, and by the compression application data Priority assignation is readable write permission, and then first terminal sends the compression application data to second terminal, so that user After changes terminal, new terminal can obtain setting data, historical data of application etc. so that user is not required to after changes terminal Application is configured manually in new terminal, so as to simplify operation.
Fig. 5 is a kind of device of the first terminal according to an exemplary embodiment to second terminal migration application data 500 block diagram, as shown in figure 5, the device 500 includes:Creation module 501, enable module 502, compression module 503 and send mould Block 504.
The creation module 501, for creating the first system service with System Privileges.
This enables module 502, for after the migration instruction for intended application data is received, utilizing the first system Service enables the first script.
The compression module 503, for being performed to the intended application data being stored in the system directory of the first terminal First script, obtains compressing application data, and be readable write permission by the priority assignation of the compression application data.
The sending module 504, for the compression application data to be sent to the second terminal.
In one embodiment of the invention, the compression module 503, is used for:System mesh to being stored in the first terminal The intended application data in record perform the tar instructions in first script, obtain the compression that compressed format is tar forms and answer Use data.
In one embodiment of the invention, the sending module 504, is additionally operable to:Receiving moving for intended application Move after instruction, the installation kit of the intended application is sent to the second terminal, wherein, the intended application data, which are included in use, is somebody's turn to do The data being related to during intended application.
In summary, first terminal provided in an embodiment of the present invention migrates the device of application data to second terminal, passes through The first script is enabled using the first system service with System Privileges, with to being stored in the system directory of the first terminal Intended application data perform first script, obtain compressing application data, and by the priority assignation of the compression application data for can Access limit, then sends the compression application data to second terminal, so that user is after changes terminal, new terminal can Setting data, historical data to obtain application etc. so that user need not manually correspond to after changes terminal in new terminal With being configured, so as to simplify operation.
Fig. 6 is a kind of application data of second terminal storage first terminal migration according to an exemplary embodiment The block diagram of device 600, as shown in fig. 6, the device 600 includes:Creation module 601, enable module 602, decompression module 603 and deposit Store up module 604.
The creation module 601, for creating the second system service with System Privileges.
This enables module 602, for after the compression application data of first terminal transmission is received, second being using this System service enables the second script.
The decompression module 603, for performing second script to the compression application data, obtains decompressing application data, and Being by the priority assignation of the decompression application data can not access limit.
The memory module 604, for by the decompression application data store into the system directory of the second terminal.
In one embodiment of the invention, the compressed format of the compression application data is tar forms, the decompression module 603, it is used for:The tar instructions in second script are performed to the compression application data, the decompression application data is obtained.
In summary, the device of the application data of second terminal storage first terminal migration provided in an embodiment of the present invention, By receiving the compression application data that first terminal is sent, and the second script is enabled using second system service, to answer the compression The second script is performed with data, obtains decompressing application data, and be that can not read and write power by the priority assignation of the decompression application data Limit, then by the decompression application data store in the system directory of second terminal, so that user is after changes terminal, newly Terminal can obtain setting data, historical data of application etc. so that user after changes terminal need not in new terminal hand It is dynamic that application is configured, so as to simplify operation.
It should be noted that:The device that the first terminal that above-described embodiment is provided migrates application data to second terminal is being moved Move application data when, and second terminal storage first terminal migration application data device store application data when, only With the division progress of above-mentioned each functional module for example, in practical application, can as needed and by above-mentioned functions distribution by Different functional modules is completed, i.e., the internal structure of device is divided into different functional modules, described above complete to complete Portion or partial function.In addition, the first terminal that above-described embodiment is provided migrates the device and the of application data to second terminal The embodiment of the method that one terminal migrates application data to second terminal belongs to same design, second terminal storage first terminal migration The method of device and the second terminal application data that stores first terminal migration of application data belong to same embodiment, it has Body implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (10)

1. a kind of method that first terminal being applied in android system migrates application data to second terminal, its feature exists In, including:
Create the first system service with System Privileges;
After the migration instruction for intended application data is received, the first script is enabled using the first system service;
First script is performed to the intended application data being stored in the system directory of the first terminal, pressed Contracting application data, and be readable write permission by the priority assignation of the compression application data;
The compression application data is sent to the second terminal.
2. according to the method described in claim 1, it is characterised in that described pair is stored in the system directory of the first terminal The intended application data perform first script, obtain compressing application data, including:
The intended application data being stored in the system directory of the first terminal are performed with the tar in first script Instruction, obtains the compression application data that compressed format is tar forms.
3. according to the method described in claim 1, it is characterised in that methods described also includes:
After the migration instruction for intended application is received, the installation kit of the intended application is sent to described second eventually End, wherein, the intended application data are included in the data being related to during using the intended application.
4. a kind of method of the application data for the second terminal storage first terminal migration being applied in android system, it is special Levy and be, including:
Create the second system service with System Privileges;
After the compression application data that the first terminal is sent is received, crus secunda is enabled using the second system service This;
Second script is performed to the compression application data, obtains decompressing application data, and by the decompression application data Priority assignation for can not access limit;
By the decompression application data store into the system directory of the second terminal.
5. method according to claim 4, it is characterised in that the compressed format of the compression application data is tar forms, It is described that second script is performed to the compression application data, obtain decompressing application data, including:
The tar instructions in second script are performed to the compression application data, the decompression application data is obtained.
6. a kind of first terminal being applied in android system migrates the device of application data to second terminal, its feature exists In, including:
Creation module, for creating the first system service with System Privileges;
Module is enabled, for after the migration instruction for intended application data is received, being opened using the first system service Use the first script;
Compression module, for the intended application data that are stored in the system directory of the first terminal to be performed with described the One script, obtains compressing application data, and be readable write permission by the priority assignation of the compression application data;
Sending module, for the compression application data to be sent to the second terminal.
7. device according to claim 6, it is characterised in that the compression module, is used for:
The intended application data being stored in the system directory of the first terminal are performed with the tar in first script Instruction, obtains the compression application data that compressed format is tar forms.
8. device according to claim 6, it is characterised in that the sending module, is additionally operable to:
After the migration instruction for intended application is received, the installation kit of the intended application is sent to described second eventually End, wherein, the intended application data are included in the data being related to during using the intended application.
9. a kind of device of the application data for the second terminal storage first terminal migration being applied in android system, it is special Levy and be, including:
Creation module, for creating the second system service with System Privileges;
Module is enabled, for after the compression application data that the first terminal is sent is received, being taken using the second system Business enables the second script;
Decompression module, for performing second script to the compression application data, obtains decompressing application data, and will be described The priority assignation for decompressing application data is can not access limit;
Memory module, for by it is described decompression application data store into the system directory of the second terminal.
10. device according to claim 9, it is characterised in that the compressed format of the compression application data is tar lattice Formula, the decompression module, is used for:
The tar instructions in second script are performed to the compression application data, the decompression application data is obtained.
CN201710205381.0A 2017-03-31 2017-03-31 Migrate the method and device of application data and the application data of storage migration Pending CN107018188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710205381.0A CN107018188A (en) 2017-03-31 2017-03-31 Migrate the method and device of application data and the application data of storage migration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710205381.0A CN107018188A (en) 2017-03-31 2017-03-31 Migrate the method and device of application data and the application data of storage migration

Publications (1)

Publication Number Publication Date
CN107018188A true CN107018188A (en) 2017-08-04

Family

ID=59445717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710205381.0A Pending CN107018188A (en) 2017-03-31 2017-03-31 Migrate the method and device of application data and the application data of storage migration

Country Status (1)

Country Link
CN (1) CN107018188A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110248232A (en) * 2019-05-29 2019-09-17 广州视琨电子科技有限公司 Data pushing method and device, storage medium and processor

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063250A (en) * 2014-07-02 2014-09-24 深圳市中兴移动通信有限公司 Method and system for transferring terminal application and terminal equipment
CN105491113A (en) * 2015-11-25 2016-04-13 小米科技有限责任公司 Migrating method, device and terminal
CN106331372A (en) * 2016-09-14 2017-01-11 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
CN106413032A (en) * 2016-09-14 2017-02-15 广东欧珀移动通信有限公司 Hotspot establishing method and terminal equipment
CN106445743A (en) * 2016-09-29 2017-02-22 广东欧珀移动通信有限公司 Data backup transmission method and mobile terminal
CN106445663A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Application data migration method and device
CN106484563A (en) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 A kind of data migration method and terminal unit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063250A (en) * 2014-07-02 2014-09-24 深圳市中兴移动通信有限公司 Method and system for transferring terminal application and terminal equipment
CN105491113A (en) * 2015-11-25 2016-04-13 小米科技有限责任公司 Migrating method, device and terminal
CN106331372A (en) * 2016-09-14 2017-01-11 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
CN106413032A (en) * 2016-09-14 2017-02-15 广东欧珀移动通信有限公司 Hotspot establishing method and terminal equipment
CN106445663A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Application data migration method and device
CN106484563A (en) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 A kind of data migration method and terminal unit
CN106445743A (en) * 2016-09-29 2017-02-22 广东欧珀移动通信有限公司 Data backup transmission method and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110248232A (en) * 2019-05-29 2019-09-17 广州视琨电子科技有限公司 Data pushing method and device, storage medium and processor
CN110248232B (en) * 2019-05-29 2021-08-03 广州视琨电子科技有限公司 Data pushing method and device, storage medium and processor

Similar Documents

Publication Publication Date Title
US9300706B1 (en) Digital photograph group editing and access
CN106331055B (en) Identifier generating means and method
CN108650287A (en) Upgrade method, equipment and the computer-readable medium of terminal device in Internet of Things
CN116561088B (en) Log management method and device for vehicle-mounted system and computer readable storage medium
CN107018189A (en) Migrate application data and receive the method and device of application data
CN109769255B (en) Data compression method and device, computer equipment and storage medium
CN103686688A (en) Method and device for protecting user address list of mobile terminal and mobile terminal
CN107018188A (en) Migrate the method and device of application data and the application data of storage migration
CN107169053A (en) log information deriving method and device
CN104202432B (en) Remote web management system and management method
CN106454541A (en) Calling method, calling device and calling system
CN105094787B (en) Method and device for processing enterprise internet application
CN105912664A (en) Method and equipment for file processing
CN105262491A (en) Data compression method, data compression system, data decompression method, data decompression system and communication equipment
CN109213737A (en) A kind of data compression method and apparatus
SE9904373D0 (en) A device and a method for operating an electronic utility device from a portable telecommunication apparatus
US20170300232A1 (en) Snap tree arbitrary replication
CN111400630A (en) Resource preloading method and related equipment
CN109005163A (en) A kind of HTTP dynamic requests service calling method
CN112422566B (en) Remote call processing method and device, storage medium and electronic device
CN107087067A (en) Mobile terminal, string distribution method and system
CN111988459B (en) Address book management method and device and computer storage medium
CN103906007A (en) Multimedia-message forwarding method and device
CN103490898A (en) E-mail collection authorization method, device and system
CN113612561A (en) ZYNQ framework-based base band board starting method and system for comprehensive tester

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170804