CN114401278B - Cross-platform transmission method, system, equipment and storage medium for Line App data - Google Patents
Cross-platform transmission method, system, equipment and storage medium for Line App data Download PDFInfo
- Publication number
- CN114401278B CN114401278B CN202111619067.XA CN202111619067A CN114401278B CN 114401278 B CN114401278 B CN 114401278B CN 202111619067 A CN202111619067 A CN 202111619067A CN 114401278 B CN114401278 B CN 114401278B
- Authority
- CN
- China
- Prior art keywords
- data
- line
- ios
- line app
- preset
- 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.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 82
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000013508 migration Methods 0.000 claims abstract description 40
- 230000005012 migration Effects 0.000 claims abstract description 40
- 230000004044 response Effects 0.000 claims description 61
- 238000012545 processing Methods 0.000 claims description 44
- 238000013500 data storage Methods 0.000 claims description 21
- 238000013475 authorization Methods 0.000 claims description 15
- 238000012795 verification Methods 0.000 claims description 13
- 238000004806 packaging method and process Methods 0.000 claims description 12
- 238000006243 chemical reaction Methods 0.000 claims description 9
- 238000010276 construction Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 claims description 5
- 230000009467 reduction Effects 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims 2
- 238000009434 installation Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- TVZRAEYQIKYCPH-UHFFFAOYSA-N 3-(trimethylsilyl)propane-1-sulfonic acid Chemical compound C[Si](C)(C)CCCS(O)(=O)=O TVZRAEYQIKYCPH-UHFFFAOYSA-N 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000006837 decompression Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000000593 degrading effect Effects 0.000 description 2
- VBMOHECZZWVLFJ-GXTUVTBFSA-N (2s)-2-[[(2s)-6-amino-2-[[(2s)-6-amino-2-[[(2s,3r)-2-[[(2s,3r)-2-[[(2s)-6-amino-2-[[(2s)-2-[[(2s)-6-amino-2-[[(2s)-2-[[(2s)-2-[[(2s)-2,6-diaminohexanoyl]amino]-5-(diaminomethylideneamino)pentanoyl]amino]propanoyl]amino]hexanoyl]amino]propanoyl]amino]hexan Chemical compound NC(N)=NCCC[C@@H](C(O)=O)NC(=O)[C@H](CCCCN)NC(=O)[C@H](CCCCN)NC(=O)[C@H]([C@@H](C)O)NC(=O)[C@H]([C@H](O)C)NC(=O)[C@H](CCCCN)NC(=O)[C@H](C)NC(=O)[C@H](CCCCN)NC(=O)[C@H](C)NC(=O)[C@H](CCCN=C(N)N)NC(=O)[C@@H](N)CCCCN VBMOHECZZWVLFJ-GXTUVTBFSA-N 0.000 description 1
- 244000035744 Hura crepitans Species 0.000 description 1
- 235000013405 beer Nutrition 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 108010068904 lysyl-arginyl-alanyl-lysyl-alanyl-lysyl-threonyl-threonyl-lysyl-lysyl-arginine Proteins 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/214—Database migration support
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0442—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2463/00—Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00
- H04L2463/062—Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00 applying encryption of the keys
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to the field of data migration, and discloses a cross-platform transmission method, a system, equipment and a storage medium of Line App data. The method comprises the following steps: the data guiding system receives a cross-platform data transmission instruction and judges whether the data transmission instruction is transmitted to the Android system by the iOS system; if the instruction is not transmitted to the Android system by the iOS system, the data guiding system sends an Android migration instruction to the Android operating system, and the Line App data is migrated to the iOS system in the Android system. If the instruction is transmitted to the Android system by the iOS system, the data guiding system sends an iOS migration instruction to the iOS operating system, and the iOS system migrates the Line App data to the Android system.
Description
Technical Field
The present invention relates to the field of data migration, and in particular, to a method, a system, an apparatus, and a storage medium for cross-platform transmission of Line App data.
Background
The Line App is free instant messaging software, and because of different backup data storage modes of the iOS and Android Line chat records, line backup data of the iOS user and the Android user cannot be directly migrated. The Line does not provide a cross-end transmission tool between the iOS and the Android, and chat backup data of a user of the Line are all stored on a third party Google Drive or apple iboud cloud storage service at present.
In Line's corporate help, there is a clear introduction to the inability to recover chat records between devices of different operating systems (Android to iPhone, iPhone to Android). The backup and chat record restoration method only aims at using iCloud backup and restoration for users using iOS and using Google cloud hard disk backup and chat record for Android users.
This results in the inability of Line backup data between iOS users and Android users to migrate directly. And Line does not provide a means for cross-end transport between iOS and Android. This results in a large number of Line users failing to migrate data and retain old chat records when changing new devices.
Because of the sandbox mechanism of the Android device, only the Line has the authority of reading and writing the chat data directory of the Android device (the accessory is placed in the SD card, and the accessory can be read), other software cannot directly read and write the chat data directory of the user, so that the chat data of the Line cannot be directly read and migrated to other devices, and the Line App data of other devices cannot be directly written into the App of the Line. Unless it is a root device, the root device presents difficulties and security risks, and system compatibility issues.
The existing schemes in the industry have obvious defects, and the scheme of degrading backup and restoration modes is adopted by the first scheme through an App with the low-version line. The specific flow is as follows, judging whether the line is already installed, if the existing line needs to be uninstalled in case of installation, and installing the low-version line of the own band, which results in that if the line is directly uninstalled, the existing data of the user can be automatically deleted.
A low version App is installed because the version is too low to be used by itself. And an adb command is required to be called to install the application, so that at present, the Android mobile phone manufacturer strengthens the limitation of the installation of the external application, and some models can limit the installation of the third party application, so that the installation failure rate is increased. And after the Android data is successfully installed, an adb backup command is required to be called to backup the Android data. At present, the backup method requires encryption backup for part of machine types due to safety reasons, decryption flow is needed after backup, the flow becomes more complex, meanwhile, adb backup is eliminated by Android, the latest App of the main stream does not support adb version, so that only App of early low version is supported, if a subsequent user needs to continue to use a Line App in Android, the user needs to upgrade to the Line login of the latest version for use, and the operation is inconvenient, the whole flow is long and complex, and the success rate is low. And when the iOS is in Android, the low-version Line App version is installed in a degrading mode, the Android adb restoration backup function is called, and the Line App data is restored to the Android device, so that similar problems are also caused.
The second scheme is a scheme for adding data copy codes by decompiling and modifying original lines, and the specific flow is as follows, the scheme judges whether the lines are already installed, if a user installs a Line App, the user must forcedly uninstall the existing Line App, and install a Line version with custom modification, which also causes the risk that the existing data may be deleted if the lines are directly uninstalled. Meanwhile, because the App of the Line is decompiled, the code is modified to destroy the existing signature, and a custom signature is added for the installation check of Android, the problem that legal risks exist in the application of piracy used by a user and the subsequent App cannot be upgraded to the latest Line can be caused. Meanwhile, the method is similar to the first scheme, a third party application needing to call an adb installation command to install the untrusted application also exists, and the success rate is reduced. In addition, the Line version can be sent regularly, so that the old version cannot be logged in after a certain time, regular maintenance is needed, custom modification is performed on the basis of the latest version, compatibility is poor, and Android to iOS transmission can be met only.
Therefore, the two schemes in the current industry have obvious defects of low safety, long flow, high risk and poor compatibility.
Disclosure of Invention
The invention mainly aims to solve the technical problems of low safety, long flow, high risk and poor compatibility of the existing Line APP data in cross-platform transmission.
The first aspect of the present invention provides a cross-platform transmission method of Line App data, where the cross-platform transmission method of Line App data is applied to a cross-platform transmission system of Line App data, and the cross-platform transmission system of Line App data includes: the cross-platform transmission method of the Line App data comprises the following steps:
the data guiding system receives a cross-platform data transmission instruction and judges whether the data transmission instruction is transmitted to an Android system by an iOS system;
if the instruction is not transmitted to the Android system by the iOS system, the data guiding system transmits an Android migration instruction to the Android operating system;
the Android operating system receives the Android migration instruction, sends Line App data in the Android operating system to a preset Google Drive cloud database, and receives feedback data sent by the Google Drive cloud database;
analyzing, constructing and processing the feedback data and the Line App data according to a preset two-dimension code generation algorithm to obtain an authorized two-dimension code;
The iOS operating system scans and identifies the authorized two-dimensional code, accesses the Google Drive cloud database according to the identification information of the authorized two-dimensional code to obtain Line App data in the Google Drive cloud database, and performs format conversion processing on the Line App data according to a preset iOS Line App data table and a preset iOS Line storage path to obtain Line App data in an iOS format;
writing the Line App data in the iOS format into a Line App storage position of the iOS operating system according to a preset iOS reduction service interface;
if the instruction is the instruction transmitted to the Android system by the iOS system, the data guiding system transmits an iOS migration instruction to the iOS operating system;
the iOS operating system receives the iOS migration instruction, and sends a data migration request of Line App data to a preset Google Drive cloud database to obtain a response permission value fed back by the Google Drive cloud database;
according to a preset first request generation algorithm, combining the file name data of the Line App data and the response permission value to generate a Post request;
the Post request is sent to the Google Drive cloud database, and response data sent by the Google Drive cloud database are received;
According to a preset second request generation algorithm, analyzing and packaging the file entity data of the Line App data and the response data to generate a data storage request, and sending the data storage request to the Google Drive cloud database;
the Android operating system accesses the Google Drive cloud database, downloads the Line App data in the Google Drive cloud database, and writes the Line App data into a Line App storage position of the Android operating system.
Optionally, in a first implementation manner of the first aspect of the present invention, the analyzing, constructing and processing the feedback data and the Line App data according to a preset two-dimensional code generating algorithm, and obtaining the authorized two-dimensional code includes:
generating secret key data based on a preset random function;
according to preset RSA asymmetric encryption, carrying out encryption processing on a public key certificate of the Line App data and the secret key data to generate x-lcs data;
according to a preset header file generation algorithm, carrying out assembly processing on the x-lcs data to generate a session creation request header;
according to a preset session command generation algorithm, carrying out encryption packaging processing on the session creation request header to generate a session creation command;
The session creation command is sent to a Line cloud database corresponding to the Line App data, and encrypted feedback data transmitted by the Line cloud database is received;
according to a preset decryption analysis algorithm, decrypting the encrypted feedback data to obtain a two-dimensional code authentication character string;
according to a preset instruction generation algorithm, carrying out instruction construction processing on the two-dimensional code authentication character string to obtain a two-dimensional code creation instruction;
the two-dimension code creation instruction is sent to the Line cloud database, and a two-dimension code URL address transmitted by the Line cloud database is received;
and converting the image based on the two-dimension code URL address to obtain the authorized two-dimension code.
Optionally, in a second implementation manner of the first aspect of the present invention, after the analyzing and constructing the feedback data and the Line App data according to the preset two-dimensional code generating algorithm to obtain an authorized two-dimensional code, before the iOS operating system scans and identifies the authorized two-dimensional code, the method further includes:
the Android operating system sends a two-dimensional code verification request to the Line cloud database;
receiving two-dimensional code verification data transmitted by the Line cloud database, and judging whether the two-dimensional code verification data contains the Line App data or not;
And if the two-dimensional code is included, confirming the authorized two-dimensional code as an effective authorized two-dimensional code.
Optionally, in a third implementation manner of the first aspect of the present invention, accessing the Google Drive cloud database according to the identification information of the authorized two-dimensional code, the obtaining Line App data in the Google Drive cloud database includes:
constructing a download Post request based on an SSL protocol according to the identification information of the authorized two-dimension code;
the download Post request is sent to the Google Drive cloud database, and a Google Services login token transmitted by the Google Drive cloud database is received;
based on the Google Services login token, a Line storage data acquisition request is sent to the Google Drive cloud database, and Line App data transmitted by the Google Drive cloud database are received.
Optionally, in a fourth implementation manner of the first aspect of the present invention, according to the preset iOS Line App data table and the preset iOS Line storage path, performing format conversion processing on the Line App data, and obtaining Line App data in the iOS format includes:
creating a Line App social relation table with the same format as a preset iOS Line App data table;
Analyzing social relation data of the Line App data, and according to name characters of the Line App data, writing the social relation data into the Line App social relation table in a matching manner to obtain initial Line App data in an iOS format;
and setting an iOS restoration path of the initial Line App data according to a preset iOS Line storage path to obtain the Line App data in the iOS format.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the generating, according to a preset first request generating algorithm, the file name data of the Line App data and the response permission value are combined, and generating the Post request includes:
the step of carrying out combination processing on the file name data of the Line App data, the response permission value and the Google Drive storage address according to a preset first request generation algorithm, and the step of generating a Post request comprises the following steps:
constructing a Post request head based on the response permission value and the Google Drive storage address;
analyzing a tree structure of the Line App data, and reading file node names of the Line App data according to the tree structure to obtain a file node name set;
based on the tree structure, sorting the file node name sets to obtain file name data;
And determining the file name data as Post entity data, and performing splicing processing on the Post request header and the Post entity data to generate a Post request.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the parsing and packaging the file entity data of the Line App data and the response data according to a preset second request generation algorithm, and generating a data storage request includes:
reading a response head of the response data to obtain a URL storage path;
acquiring a preset storage request frame, setting an uploading path in the storage request frame as a URL storage path, and setting an authorization document in the storage request frame as a response permission value to obtain a storage request head;
setting the file entity data of the Line App data as entity data to obtain storage request entity data;
and performing splicing processing on the storage request header and the storage request entity data to generate a data storage request.
The second aspect of the present invention provides a cross-platform transmission system for Line App data, where the cross-platform transmission system for Line App data includes:
the system comprises an iOS operating system, an Android operating system and a data guiding system;
The data guiding system is used for receiving a cross-platform data transmission instruction and judging whether the data transmission instruction is transmitted to the Android system by the iOS system or not;
if the instruction is not transmitted to the Android system by the iOS system, the data guiding system transmits an Android migration instruction to the Android operating system;
the Android operating system is used for receiving the Android migration instruction, sending the Line App data in the Android operating system to a preset Google Drive cloud database, and receiving feedback data sent by the Google Drive cloud database;
analyzing, constructing and processing the feedback data and the Line App data according to a preset two-dimension code generation algorithm to obtain an authorized two-dimension code;
the iOS operating system is used for scanning and identifying the authorized two-dimensional code, accessing the Google Drive cloud database according to the identification information of the authorized two-dimensional code to obtain Line App data in the Google Drive cloud database, and performing format conversion processing on the Line App data according to a preset iOS Line App data table and a preset iOS Line storage path to obtain Line App data in an iOS format;
Writing the Line App data in the iOS format into a Line App storage position of the iOS operating system according to a preset iOS reduction service interface;
if the instruction is the instruction transmitted to the Android system by the iOS system, the data guiding system transmits an iOS migration instruction to the iOS operating system;
the iOS operating system is used for receiving the iOS migration instruction, sending a data migration request of the Line App data to a preset Google Drive cloud database, and obtaining a response permission value fed back by the Google Drive cloud database;
according to a preset first request generation algorithm, combining the file name data of the Line App data and the response permission value to generate a Post request;
the Post request is sent to the Google Drive cloud database, and response data sent by the Google Drive cloud database are received;
according to a preset second request generation algorithm, analyzing and packaging the file entity data of the Line App data and the response data to generate a data storage request, and sending the data storage request to the Google Drive cloud database;
the Android operating system is used for accessing the Google Drive cloud database, downloading the Line App data in the Google Drive cloud database, and writing the Line App data into a Line App storage position of the Android operating system.
The third aspect of the present invention provides a cross-platform transmission device for Line App data, including: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line; and the at least one processor calls the instruction in the memory so that the cross-platform transmission equipment of the Line App data executes the cross-platform transmission method of the Line App data.
A fourth aspect of the present invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the above-described method of cross-platform transmission of Line App data.
According to the embodiment of the invention, the problem of data transmission from the Android device to the iOS device of the Line can be quickly and conveniently solved, and the problem of data transmission from the iOS device to the Android device of the Line is solved.
Drawings
FIG. 1 is a schematic diagram of one embodiment of a cross-platform transmission method of Line App data in an embodiment of the present invention;
FIG. 2 is a schematic diagram of one embodiment of a cross-platform transmission system for Line App data in an embodiment of the present invention;
fig. 3 is a schematic diagram of an embodiment of a cross-platform transmission device for Line App data in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a cross-platform transmission method, a system, equipment and a storage medium of Line App data.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For easy understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and in an embodiment of a cross-platform transmission method for Line App data in the embodiment of the present invention, the cross-platform transmission method for Line App data is applied to a cross-platform transmission system for Line App data, where the cross-platform transmission system for Line App data includes: the cross-platform transmission method of the Line App data comprises the following steps:
101. the data guiding system receives a cross-platform data transmission instruction and judges whether the data transmission instruction is transmitted to the Android system by the iOS system;
in this embodiment, whether the cross-platform transmission instruction is to be transmitted to the Android system or the iOS system by the iOS system is determined, and the processing procedures of the two are different. If the iOS system is transmitted to the Android system, the step is shifted to 107, and if the iOS system is transmitted to the iOS system, the step is shifted to 102.
102. If the instruction is not transmitted to the Android system by the iOS system, the data guiding system transmits an Android migration instruction to the Android operating system;
in this embodiment, the Android system transmits the Android migration instruction to the iOS system, and the Android system starts the data migration process.
103. The Android operating system receives an Android migration instruction, sends Line App data in the Android operating system to a preset Google Drive cloud database, and receives feedback data sent by the Google Drive cloud database;
in this embodiment, the Android operating system is guided to backup Line chat data to the Google Drive cloud database, and after the data is transmitted to the Google Drive cloud database, the Android operating system is notified that the next migration processing process can be performed.
The following steps may also be performed between 102 and 103:
judging and identifying whether an iOS and an Android driver exist in the current system, if not, installing the latest version of the driver for iOS and Android hardware identification and preparation for communication
And after the equipment is accessed, judging whether the equipment is unlocked and trusted, and if the equipment is not unlocked and trusted, firstly enabling a user to unlock a screen locking password and performing trust authorization, and preparing for acquiring the read-write permission of the Android SD card equipment and opening the backup service by the iOS terminal.
104. Analyzing, constructing and processing the feedback data and the Line App data according to a preset two-dimension code generation algorithm to obtain an authorized two-dimension code;
in this embodiment, a Line authorization two-dimensional code is constructed and generated, and the contact person and group information are obtained through code scanning authorization, wherein the two-dimensional code is mainly data information which changes stored Line App data into accessible data.
Further, at 104, the following steps may be performed:
1041. generating secret key data based on a preset random function;
1042. according to preset RSA asymmetric encryption, carrying out encryption processing on public key certificates and key data of Line App data to generate x-lcs data;
in 1041-1042 steps, a request header is constructed, the request header comprising: X-Line-application, simulated client type ChromeOS, version 2.4.1, set x-lhm as POST and content-type as application/x-travel; protocol=tbinary, x-lal is set to regional abbreviation zh., accept type is set to application/x-threft, and the requested data is encrypted data.
Key data is first generated, which generates 16 bytes of data by means of a random number for subsequent participation in transmitting encrypted data and decrypting accepted data. The method comprises the steps of constructing x-lcs data, wherein the x-lcs data is encrypted key data which is communicated with a line server, the data comprises tag characters 0005 and encrypted data in a Base64 format, and the specific encrypted data is 16 bytes key data which are randomly generated before by using a public key certificate of the line, performing RSA asymmetric encryption, and obtaining the encrypted data to be Base64.
The value is used as the file header data of the x-lcs to be transmitted to the line server for informing the line server end of using the key to carry out subsequent encryption and decryption communication.
1043. According to a preset header file generation algorithm, assembling the x-lcs data to generate a session creation request header;
1044. according to a preset session command generation algorithm, carrying out encryption packaging processing on a session creation request header to generate a session creation command;
in steps 1043-1044, constructing the transmission data includes: tag header and entity command, the tag header has only one x-lpqs at this time, and the value is/acct/lgn/sq/v 1. To specify the request path, the x-lpqs string and the corresponding value/acct/lgn/sq/v 1createSession string, and the string of the session creation command are all concatenated, i.e., x-lpqs+/acct/lgn/sq/v1createSession+createSession.
The string is encrypted by a symmetric encryption algorithm of AESCBC mode and the padding data is supplemented using PKCS7 algorithm. The encryption key is used for randomly generating 16-byte key data before encryption, and then the Xxhash32 is used for carrying out XXHASH algorithm on the AES encrypted data after encryption, so that the obtained data is recorded at the tail of the encrypted data. This data is an encrypted data packet of the session creation command. The size of the whole data packet is calculated, and the size is set to x-cl as the size value of the encrypted data packet.
The file header constructed before comprises x-Line-application, accept, content-type, x-lhm, x-lal, x-lcs and x-lc data, the file header is used as a request header, a Post request URLhttps:// gf.line. Na ver. Jp/enc is sent, and the POST data is an encrypted data packet which comprises a session creation command before us.
1045. The session creation command is sent to a Line cloud database corresponding to the Line App data, and encrypted feedback data transmitted by the Line cloud database is received;
1046. according to a preset decryption analysis algorithm, decrypting the encrypted feedback data to obtain a two-dimensional code authentication character string;
in the step 1045-1046, after the request is sent successfully, the response code is 200, and the obtained response header data is obtained at the same time. X-lc is included and a determination is made as to whether x-cl is equal to 200 to verify that the command transmission was successful.
If successful, the decryption of the response packet is started, the data is binary encrypted data, and the encrypted data is padded by a multiple of 16 using PKCS 7. After the padding, the data is decrypted using an algorithm of AESCBC mode. After decryption, PKCS7UnPadding is used for removing the decrypted complement data, and 66 bytes containing the SQ beginning character string are finally obtained, wherein 64 bytes of data after the SQ character is a digital character string and represents the data about to apply for authentication of the two-dimensional code.
1047. According to a preset instruction generation algorithm, carrying out instruction construction processing on the two-dimensional code authentication character string to obtain a two-dimensional code creation instruction;
1048. the two-dimension code creation instruction is sent to the Line cloud database, and a two-dimension code URL address transmitted by the Line cloud database is received;
1049. And converting the image based on the URL address of the two-dimension code to obtain the authorized two-dimension code.
In 1047-1049 steps, after the session application is successful, submitting a command two-dimension code creation instruction for creating the two-dimension code to generate an authorized two-dimension code. The construction of the transmission data is as follows: a combination of tag header + command + data,
the tag head has one, namely data containing x-lpqs and/acct/lgn/SQ/v 1, a command is a createQrCode character string, the data is a character string at the beginning of SQ obtained before, and the complete data is combined, namely x-lpqs+/acct/lgn/SQ/v1+createQrCode+SQ data.
The complete data is encrypted by an AESCBC mode algorithm, and the filling data is supplemented by a PKCS7 algorithm, so that 16-byte key data is randomly generated before the encryption key is participated in, the encrypted data still carries out a HASH check algorithm on the AES encrypted data through an Xxhash32, and the obtained data is recorded at the tail part of the encrypted data. The size of the entire data is recalculated similarly and set to x-cl as the size value of the encrypted data packet.
The file header constructed before comprises x-Line-application, accept, content-type, x-lhm, x-lal, x-lcs and new x-lc data, and is used as a request header to send a Post request URLhttps:// gf.
The decryption packet logic is this part as before. And after successful transmission, obtaining a response code of 200 and simultaneously obtaining response header data. X-lc is included and a determination is made as to whether x-cl is equal to 200 to verify that the command transmission was successful.
And if the data is successful, starting to decrypt the response data packet, wherein the data is binary encrypted data, using PKCS7 to patch the encrypted data according to a multiple of 16, decrypting the data by using an AESCBC mode algorithm after patch, and removing the patch data after decryption by PKCS7 UnPadding.
After decrypting the data packet, an https url is finally obtained, and the data is the data of https:// line.me/R/au/q/head+the SQ head character string obtained by the former.
And constructing a URL of the two-dimensional code, generating a CurveX25519 algorithm pairing key (key pair), obtaining a public key and a private key, and carrying out 64 coding and URL encoding on the public key in the pairing key. The obtained value is assigned to secret, e2eeVersion is set as 1 to construct and generate a two-dimensional code URL, and the URL is the request parameter construction of URL, secret, e eVersion obtained by decryption. I.e. https:// line.me/R/au/q/SQ465a54517068417962305a7731797330774c5a37594a3559626e585542375831secret = PC6UuAh%2b7dm%2b5mxizxk3eidf2 bxitpitlpsmnbe% 3d & e2eeversion = 1, at which time we generate a two-dimensional code picture from the URL waiting for authorization of the scan code in the user reline app.
The following steps may also be performed between steps 104 and 105:
10410. the Android operating system sends a two-dimensional code verification request to the Line cloud database;
10411. receiving two-dimensional code verification data transmitted by the Line cloud database, and judging whether the two-dimensional code verification data contains the Line App data or not;
10412. and if the two-dimension code is included, confirming the two-dimension code as an effective two-dimension code.
In 10410-10412 step, sending a two-dimension code checking request, checking whether the two-dimension code is authenticated.
The sending data is a combination of tag header + command + data, and there are two tag headers at this time. The first is X-Line-Access and the corresponding previous 66-byte SQ string, the second is X-lpqs and/acct/lgn/SQ/v 1 string data, the command is verifyCertification, and the command incidental data is SQ string. I.e., X-Line-Access+SQ+x-lpqs+/acct/lgn/SQ/v1+verifyCertification+SQ, this part of the encryption logic is the same as before.
The complete data is encrypted by an AESCBC mode algorithm, and the filling data is supplemented by a PKCS7 algorithm, so that 16-byte key data is randomly generated before the encryption key is participated in, the encrypted data still carries out a HASH check algorithm on the AES encrypted data through an Xxhash32, and the obtained data is recorded at the tail part of the encrypted data. The size of the entire data is recalculated similarly and set to x-cl as the size value of the encrypted data packet.
We send Post request URLhttps:// gf. Line. Na. Jp/enc, POST data as request header, containing x-Line-application, accept, content-type, x-lhm, x-lal, x-lcs, and new x-lc data, the Post data being an encrypted data packet containing verify Certificate commands. After the request is sent, the user waits until the line app scans the code successfully, and the Post returns a result.
After successful return, the subsequent logic is similar, a create Pin Code command is sequentially sent to return the Pin Code, a user transmits a 5-bit Pin verification Code to the Line app, after the Pin Code is successfully verified, a check PinCode Verified command is executed again, whether the equipment is normally authorized is checked, and after the authorization is successful. The acquiring getAll Contact Ids command can be sent to acquire the ids of all the Contacts, then the id is used to send the command of the get Contacts to acquire all the information of the single contact, the information of the corresponding contact mid, the name, the creation time, the head portrait data and the like is obtained through decryption, and the acquisition of group information is similar to the call of the get Groups. At this point we have acquired information for all contacts and groups for the account.
105. The iOS operating system scans and identifies the authorized two-dimensional code, accesses the Google Drive cloud database according to the identification information of the authorized two-dimensional code to obtain Line App data in the Google Drive cloud database, and performs format conversion processing on the Line App data according to a preset iOS Line App data table and a preset iOS Line storage path to obtain Line App data in an iOS format;
In this embodiment, mainly, in order to construct a Google Drive login authorization access Line space, download a Line App database, firstly obtain a Google Services login token, then obtain Gooogle Drive Line authorization access, then request to obtain Line storage space data information, and finally request to download storage space data of a corresponding Line account in the Google Drive. And writing the contact information and the group information into a session database, copying the attachment of the Android line to a storage address, and then converting the database into a database file and attachment suitable for the iOS version.
Further, in the "access Google Drive cloud database according to the identification information of the authorized two-dimensional code, obtaining the Line App data in the Google Drive cloud database" may execute the following steps:
1051. constructing a download Post request based on an SSL protocol according to the identification information of the authorized two-dimension code;
1052. sending a download Post request to a Google Drive cloud database, and receiving a Google Services login token transmitted by the Google Drive cloud database;
1053. based on the Google Services login token, a Line storage data acquisition request is sent to a Google Drive cloud database, and Line App data transmitted by the Google Drive cloud database are received.
In the steps 1051-1053, mainly comprises the following steps:
and (3) acquiring account mid, contact persons and group information through two-dimension code authorized access, and inquiring to obtain chat data of the Line App when a request for accessing the Goole Driver cloud database is constructed through the account mid. The Mid value is the unique value of the line account number, and the one-to-one correspondence is fixed. A GoogleServices logon token is obtained. Setting Payload to use SSL protocol, but encryption algorithm is not default algorithm, it is necessary to configure algorithm to be ECDHE+AESGCM ECDHE+CHACHA20:DHE+AESGCM:DHE+CHA 20:ECDH+AES:DH+AES+RSA+AESGCM:RSA+AES:! aNULL! eNULL! MD 5! DSS. Constructing data of the payload, sending a Post request, and acquiring token data from https:// android.clients.google.com/auth. The data constructing payload is that accountType is set to hoted_or_google ", email sets user gmai mailbox, device_count set us, operatorcount set us, lang voice set to en, source set to Android, android Id is 16-byte random number, version sdk is 17.EncryptedPasswd is base64 encoded encrypted data generated by RSA encryption algorithm of Google account and password with Google public key. After constructing the payload data, sending authentication, returning 200 to obtain token data from the response data.
An authorized access is obtained Gooogle Drive line. The same setting of Payload uses SSL protocol, but the encryption algorithm is not the default algorithm, requiring configuration algorithm, which is configured as ecdhe+aesgcm: ecdhe+cha 20: dhe+aesgcm: dhe+cha 20: ecdh+aes: dh+aes: rsa+aesgcm: rsa+aes! aNULL! eNULL! MD 5! DSS. Constructing data of the payload, sending a Post request, and acquiring token data from https:// android.clients.google.com/auth. The data constructing the payload is that Email sets up user gmai mailbox, device_count sets up us, operator count sets up us, lang voice sets up en, android is a random number with 16 bit length, google_play_service_version is 212621022, sdk_version is 25, client_sig and canlersig are random numbers with 42 bit length, service sets up bit oauth2 https:// www.googleapis.com/auth/drive. app and callrpkg set app id of bit line, jp. the token is set to the token value obtained by the previous Google login authentication. After the payload data is constructed and successfully sent, 200 is returned, and the response data contains Auth character data. The data space of the line stored in the Google Drive can be obtained by sending Get request through Auth.
Requesting to acquire Line memory space data information. Constructing a request header, setting a request header user-agent as LINEGoogle-API-Java-ClientGoogle-HTTP-Java-Client/1.28.0 (gzip), setting x-goog-API-Client as Java/0.0.0HTTP-google-a/1.26.0linux/3.18.48, setting the authorization as Bearer+the previously acquired Auth value, constructing request header data, and sending GET requests to url addresses HTTPs:// www.googleapis.com/drive/v3/files = files,% 20name,%20size,%20createdT im & space = createdT files = appDataFolder. After the successful sending, the account id, account name, data packet size and data packet creation time createTime of the Line in the google drive space storage are obtained, and a plurality of different Line accounts may be used in the space storage.
And requesting to download the storage space data of the corresponding Line account in the GoogleDrive. The url requested is "https:// www.googleapis.com/download/drive/v3/files/" +id+ "? alt=media "," id "is a mid value acquired by the line account mid contained in the code scanning authorization acquisition information. The request header is still the request header data request header user-agent, x-goog-api-client, authorization constructed previously set to beer + the previously obtained Auth value. And after successful transmission, compressed data of the GZIP are obtained. And the data packet is decompressed by a decompression algorithm to obtain a line chatting database.
Further, in the case of performing format conversion processing on the Line App data according to the preset iOS Line App data table and the preset iOS Line storage path, the following steps may be performed to obtain the iOS-format Line App data:
1054. creating a Line App social relation table with the same format as a preset iOS Line App data table;
1055. analyzing social relation data of the Line App data, and according to name characters of the Line App data, writing the social relation data into a Line App social relation table in a matching manner to obtain initial Line App data in an iOS format;
1056. according to a preset iOS Line storage path, an iOS restoration path of initial Line App data is set, and Line App data in an iOS format is obtained.
In 1054-1056, the chat sqlite database of the line obtained after the previous download and decompression is opened, a contact information table is created in the sqlite data, the table structure contains data such as m_id, name, picture_path, updated_time, created_time and the like, and the line scan code is written into the database to obtain the corresponding information of the contacts. And similarly, creating a group information table, wherein the table structure comprises data such as id, name, picture_status, updated_time, created_time, identification_enabled, can_add_membrane_as_friend, can_index_by_ticket and the like, and writing the corresponding information of the previous line scanning code acquisition groups into a database. At this time, the data includes complete dialogue data, contact information and group information. And meanwhile, acquiring the line attachment, including pictures and voices, from the Android device through an adb command, and specifically copying the attachment to a local storage address from a device path/sdcard/Android/data/jp.
The obtained database naver_line is a sqlite database, and the database data is not encrypted, so that the group and the contact information, and the sending content and time of the session chat record and the attachment can be directly read. A new database named line.sqlite is created, and a corresponding ZCHAT, ZGROUP, ZMESSAGE, ZCHAT table is created according with the table contents of the iOS Line chat database. And reading out the analyzed database content, writing the database content into a new database corresponding table, and storing the line attachment relative path Library/application support/PrivateStore/P_account mid/message attachments according to the attachment path in the chat record.
106. According to a preset iOS restoration service interface, writing the Line App data in the iOS format into a Line App storage position of an iOS operating system;
in this embodiment, the converted iOS-compliant database and the converted attachment acquire related information including a device model, a device name, a serial number, and an iOS version number from the connected iOS device, create an iOS backup packet of the corresponding device, and sequentially add the database and the attachment to the backup packet. After the iOS device logs in the line app, the iOS device starts a self-contained backup restoration service, a restoration service interface is called, the iOS backup package constructed by us is restored to the device, after restoration is completed, chat data is written in a storage position of the app, and the data can be normally loaded after the line app is started. The flow of data migration is now complete.
107. If the instruction is the instruction transmitted to the Android system by the iOS system, the data guiding system transmits an iOS migration instruction to the iOS operating system;
108. the iOS operating system receives the iOS migration instruction, and sends a data migration request of the Line App data to a preset Google Drive cloud database to obtain a response permission value fed back by the Google Drive cloud database;
in 107 and 108 embodiments, a migration instruction of migration Line App running the displayed chat data from iOS to Android is received. The data packet is sent to the URL address of the Google Drive storage cloud, and the URL address may be https:// www.googleapis.com/upload/Drive/v 3/filesfield=id,% 20name,%20size,%20createdtime & uploadtype=resumable. The Google Drive memory address returns a response grant value, also known as the Auth value.
109. According to a preset first request generation algorithm, combining file name data of the Line App data and a response permission value to generate a Post request;
in this embodiment, the request header is constructed from the Auth value and the service address in the Google Drive storage address. Various file names of chat data displayed by the Line App operation are used as entity data of a request data packet, and the request header and the entity data are used as Post requests.
Further, the following steps may also be performed at 109:
1091. constructing a Post request header based on the response permission value and the Google Drive storage address;
1092. analyzing a tree structure of the Line App data, and reading file node names of the Line App data according to the tree structure to obtain a file node name set;
1093. based on the tree structure, sorting the file node name sets to obtain file name data;
1094. and determining the file name data as Post entity data, and performing splicing processing on the Post request header and the Post entity data to generate a Post request.
In 1091-1095, the Google Drive storage address user Agent is LINE Google-API-Java-Client Google-HTTP-Java-Client/1.28.0 (gzip), the LINE Google-API-Java-Client Google-HTTP-Java-Client/1.28.0 (gzip) is determined as the request header service address, and the authentication in the request header is set to the acquired Auth value.
The file names of the Line data are in a tree structure of A group-B group-C person, the file names of the Line data are analyzed, and then the file names are arranged according to the tree structure to obtain file name data. And splicing the obtained header file and file name data into Post request data.
110. The Post request is sent to a Google Drive cloud database, and response data sent by the Google Drive cloud database are received;
in this embodiment, after the Post request is sent, the Google Drive storage address feeds back the response data, and the data header of the response data is provided with location data, where the location data is the URL path to be uploaded and written by us.
111. According to a preset second request generation algorithm, analyzing and packaging file entity data and response data of the Line App data to generate a data storage request, and sending the data storage request to a Google Drive cloud database;
in this embodiment, the URL path in the response data is written into the request header, and the chat data corresponding to each chat file name in the Line data is written into the entity data, so that the obtained data storage request may also be considered as a Put request, where the Put request is a write request.
Further, the following steps may be performed at 111:
1111. reading a response head of the response data to obtain a URL storage path;
1112. acquiring a preset storage request frame, setting an uploading path in the storage request frame as a URL storage path, and setting an authorization document in the storage request frame as a response permission value to obtain a storage request head;
1113. Setting file entity data of the Line App data as entity data to obtain storage request entity data;
1114. and splicing the storage request header and the storage request entity data to generate a data storage request.
In 1111-1114, the location data in the response header of the response data is obtained, the location data is determined as a URL storage path, and a Put request is sent to the URL storage path. The request header is constructed by setting the header Authorization to the previously acquired Auth value, x-uploading-content-type to application/oct-stream, x-goog-api-client () to java/0.0 http-google-a/1.26.0 linux/3.18.48, and the Body data sent is file entity data of Line data to be uploaded by us, that is, actual data in the chat database, thus forming a data storage request.
112. The Android operating system accesses the Google Drive cloud database, downloads the Line App data in the Google Drive cloud database, and writes the Line App data into a Line App storage position of the Android operating system.
In this embodiment, after the Put request is successfully sent, the database is written into the Google Drive storage space, and after the Android device logs in the Google Drive storage cloud, chat data of the Line can be downloaded and injected into a file folder of the Line App of the Android device, and the chat data of the Line App is copied into an attachment file folder of the Line App in the Android system through the adb component.
According to the embodiment of the invention, the problem of data transmission from the Android device to the iOS device of the Line can be quickly and conveniently solved, and the problem of data transmission from the iOS device to the Android device of the Line is solved.
The above describes a cross-platform transmission method of Line App data in the embodiment of the present invention, and the following describes a cross-platform transmission system of Line App data in the embodiment of the present invention, referring to fig. 2, an embodiment of a cross-platform transmission system of Line App data in the embodiment of the present invention, where the cross-platform transmission system of Line App data includes:
iOS operating system 201, android operating system 202, and data guidance system 203;
the data guiding system 203 is configured to receive a cross-platform data transmission instruction, and determine whether the data transmission instruction is an instruction transmitted from the iOS system to the Android system;
if the instruction is not transmitted to the Android system by the iOS system, the data guiding system transmits an Android migration instruction to the Android operating system;
The Android operating system 202 is configured to receive the Android migration instruction, send Line App data in the Android operating system to a preset Google Drive cloud database, and receive feedback data sent by the Google Drive cloud database;
analyzing, constructing and processing the feedback data and the Line App data according to a preset two-dimension code generation algorithm to obtain an authorized two-dimension code;
the iOS operating system 201 is configured to scan and identify the authorized two-dimensional code, access the Google Drive cloud database according to identification information of the authorized two-dimensional code, obtain Line App data in the Google Drive cloud database, and perform format conversion processing on the Line App data according to a preset iOS Line App data table and a preset iOS Line storage path, so as to obtain Line App data in iOS format;
writing the Line App data in the iOS format into a Line App storage position of the iOS operating system according to a preset iOS reduction service interface;
if the instruction is the instruction transmitted to the Android system by the iOS system, the data guiding system transmits an iOS migration instruction to the iOS operating system;
the iOS operating system 201 is configured to receive the iOS migration instruction, send a data migration request of Line App data to a preset Google Drive cloud database, and obtain a response permission value fed back by the Google Drive cloud database;
According to a preset first request generation algorithm, combining the file name data of the Line App data and the response permission value to generate a Post request;
the Post request is sent to the Google Drive cloud database, and response data sent by the Google Drive cloud database are received;
according to a preset second request generation algorithm, analyzing and packaging the file entity data of the Line App data and the response data to generate a data storage request, and sending the data storage request to the Google Drive cloud database;
the Android operating system 202 is configured to access the Google Drive cloud database, download the Line App data in the Google Drive cloud database, and write the Line App data into a Line App storage location of the Android operating system.
The Android operating system 202 is specifically configured to:
generating secret key data based on a preset random function;
according to preset RSA asymmetric encryption, carrying out encryption processing on a public key certificate of the Line App data and the secret key data to generate x-lcs data;
according to a preset header file generation algorithm, carrying out assembly processing on the x-lcs data to generate a session creation request header;
According to a preset session command generation algorithm, carrying out encryption packaging processing on the session creation request header to generate a session creation command;
the session creation command is sent to a Line cloud database corresponding to the Line App data, and encrypted feedback data transmitted by the Line cloud database is received;
according to a preset decryption analysis algorithm, decrypting the encrypted feedback data to obtain a two-dimensional code authentication character string;
according to a preset instruction generation algorithm, carrying out instruction construction processing on the two-dimensional code authentication character string to obtain a two-dimensional code creation instruction;
the two-dimension code creation instruction is sent to the Line cloud database, and a two-dimension code URL address transmitted by the Line cloud database is received;
and converting the image based on the two-dimension code URL address to obtain the authorized two-dimension code.
The Android operating system 202 is further specifically configured to:
the Android operating system sends a two-dimensional code verification request to the Line cloud database;
receiving two-dimensional code verification data transmitted by the Line cloud database, and judging whether the two-dimensional code verification data contains the Line App data or not;
and if the two-dimensional code is included, confirming the authorized two-dimensional code as an effective authorized two-dimensional code.
Wherein, the iOS operating system 201 is further specifically configured to:
creating a Line App social relation table with the same format as a preset iOS Line data table;
analyzing social relation data of the Line App data, and according to name characters of the Line App data, writing the social relation data into the Line App social relation table in a matching manner to obtain initial Line App data in an iOS format;
and setting an iOS restoration path of the initial Line App data according to a preset iOS Line storage path to obtain the Line App data in the iOS format.
The iOS operating system 201 is specifically configured to:
the step of generating a Post request by combining the file name data of the Line data, the response permission value and the Google Drive storage address according to a preset first request generation algorithm comprises the following steps:
constructing a Post request head based on the response permission value and the Google Drive storage address;
analyzing the tree structure of the Line data, and reading the file node names of the Line data according to the tree structure to obtain a file node name set;
based on the tree structure, sorting the file node name sets to obtain file name data;
And determining the file name data as Post entity data, and performing splicing processing on the Post request header and the Post entity data to generate a Post request.
The iOS operating system 201 is specifically configured to:
reading a response head of the response data to obtain a URL storage path;
acquiring a preset storage request frame, setting an uploading path in the storage request frame as a URL storage path, and setting an authorization document in the storage request frame as a response permission value to obtain a storage request head;
setting the file entity data of the Line data as entity data to obtain storage request entity data;
and performing splicing processing on the storage request header and the storage request entity data to generate a data storage request.
According to the embodiment of the invention, the problem of data transmission from the Android device to the iOS device of the Line can be quickly and conveniently solved, and the problem of data transmission from the iOS device to the Android device of the Line is solved.
Fig. 2 above describes the cross-platform transmission system of Line App data in the embodiment of the present invention in detail from the perspective of a modularized functional entity, and the cross-platform transmission device of Line App data in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 3 is a schematic structural diagram of a cross-platform transmission device of Line App data, where the cross-platform transmission device 300 of Line App data may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 310 (e.g., one or more processors) and a memory 320, and one or more storage media 230 (e.g., one or more mass storage devices) storing application programs 333 or data 332 according to an embodiment of the present invention. Wherein memory 320 and storage medium 330 may be transitory or persistent storage. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instruction operations in the cross-platform transmission device 300 for Line App data. Still further, the processor 310 may be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the cross-platform delivery device 300 of Line App data.
The Line App data based cross-platform transport device 300 may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input output interfaces 360, and/or one or more operating systems 331, such as Windows service, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the cross-platform transmission device structure of Line App data illustrated in fig. 3 does not constitute a limitation of a cross-platform transmission device based on Line App data, and may include more or less components than illustrated, or may combine certain components, or may be a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and may also be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, where the instructions when executed on a computer cause the computer to perform the steps of the cross-platform transmission method of Line App data.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system or the unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. The cross-platform transmission method of the Line App data is characterized in that the cross-platform transmission method of the Line App data is applied to a cross-platform transmission system of the Line App data, and the cross-platform transmission system of the Line App data comprises the following steps: the cross-platform transmission method of the Line App data comprises the following steps:
the data guiding system receives a cross-platform data transmission instruction and judges whether the data transmission instruction is transmitted to an Android system by an iOS system;
if the instruction is not transmitted to the Android system by the iOS system, the data guiding system transmits an Android migration instruction to the Android operating system;
the Android operating system receives the Android migration instruction, sends Line App data in the Android operating system to a preset Google Drive cloud database, and receives feedback data sent by the Google Drive cloud database;
analyzing, constructing and processing the feedback data and the Line App data according to a preset two-dimension code generation algorithm to obtain an authorized two-dimension code;
the iOS operating system scans and identifies the authorized two-dimensional code, accesses the Google Drive cloud database according to the identification information of the authorized two-dimensional code to obtain Line App data in the Google Drive cloud database, and performs format conversion processing on the Line App data according to a preset iOS Line App data table and a preset iOS Line storage path to obtain Line App data in an iOS format;
Writing the Line App data in the iOS format into a Line App storage position of the iOS operating system according to a preset iOS reduction service interface;
if the instruction is the instruction transmitted to the Android system by the iOS system, the data guiding system transmits an iOS migration instruction to the iOS operating system;
the iOS operating system receives the iOS migration instruction, and sends a data migration request of Line App data to a preset Google Drive cloud database to obtain a response permission value fed back by the Google Drive cloud database;
according to a preset first request generation algorithm, combining the file name data of the Line App data and the response permission value to generate a Post request;
the Post request is sent to the Google Drive cloud database, and response data sent by the Google Drive cloud database are received;
according to a preset second request generation algorithm, analyzing and packaging the file entity data of the Line App data and the response data to generate a data storage request, and sending the data storage request to the Google Drive cloud database;
the Android operating system accesses the Google Drive cloud database, downloads the Line App data in the Google Drive cloud database, and writes the Line App data into a Line App storage position of the Android operating system.
2. The method for cross-platform transmission of Line App data according to claim 1, wherein the analyzing and constructing the feedback data and the Line App data according to a preset two-dimensional code generating algorithm to obtain an authorized two-dimensional code comprises:
generating secret key data based on a preset random function;
according to preset RSA asymmetric encryption, carrying out encryption processing on a public key certificate of the Line App data and the secret key data to generate x-lcs data;
according to a preset header file generation algorithm, carrying out assembly processing on the x-lcs data to generate a session creation request header;
according to a preset session command generation algorithm, carrying out encryption packaging processing on the session creation request header to generate a session creation command;
sending the session creation command to a Google Drive cloud database corresponding to the Line App data, and receiving encrypted feedback data transmitted by the Google Drive cloud database;
according to a preset decryption analysis algorithm, decrypting the encrypted feedback data to obtain a two-dimensional code authentication character string;
according to a preset instruction generation algorithm, carrying out instruction construction processing on the two-dimensional code authentication character string to obtain a two-dimensional code creation instruction;
The two-dimension code creation instruction is sent to the Google Drive cloud database, and a two-dimension code URL address transmitted by the Google Drive cloud database is received;
and converting the image based on the two-dimension code URL address to obtain the authorized two-dimension code.
3. The method for cross-platform transmission of Line App data according to claim 2, wherein after the analyzing and constructing the feedback data and the Line App data according to a preset two-dimensional code generating algorithm to obtain an authorized two-dimensional code, before the iOS operating system scans and identifies the authorized two-dimensional code, the method further comprises:
the Android operating system sends a two-dimensional code verification request to the Google Drive cloud database;
receiving two-dimensional code verification data transmitted by the Google Drive cloud database, and judging whether the two-dimensional code verification data contains the Line App data or not;
and if the two-dimensional code is included, confirming the authorized two-dimensional code as an effective authorized two-dimensional code.
4. The method for cross-platform transmission of Line App data according to claim 1, wherein accessing the Google Drive cloud database according to the identification information of the authorized two-dimensional code, the obtaining the Line App data in the Google Drive cloud database comprises:
Constructing a download Post request based on an SSL protocol according to the identification information of the authorized two-dimension code;
the download Post request is sent to the Google Drive cloud database, and a Google Services login token transmitted by the Google Drive cloud database is received;
based on the Google Services login token, a Line storage data acquisition request is sent to the Google Drive cloud database, and Line App data transmitted by the Google Drive cloud database are received.
5. The cross-platform transmission method of Line App data according to claim 1, wherein said performing format conversion processing on said Line App data according to a preset iOS Line App data table and a preset iOS Line memory path to obtain iOS formatted Line App data comprises:
creating a Line App social relation table with the same format as a preset iOS Line App data table;
analyzing social relation data of the Line App data, and according to name characters of the Line App data, writing the social relation data into the Line App social relation table in a matching manner to obtain initial Line App data in an iOS format;
and setting an iOS restoration path of the initial Line App data according to a preset iOS Line storage path to obtain the Line App data in the iOS format.
6. The method for cross-platform transmission of Line App data according to claim 1, wherein said generating a Post request by combining file name data of said Line App data and said response grant value according to a preset first request generation algorithm comprises:
the step of carrying out combination processing on the file name data of the Line App data, the response permission value and the Google Drive storage address according to a preset first request generation algorithm, and the step of generating a Post request comprises the following steps:
constructing a Post request head based on the response permission value and the Google Drive storage address;
analyzing a tree structure of the Line App data, and reading file node names of the Line App data according to the tree structure to obtain a file node name set;
based on the tree structure, sorting the file node name sets to obtain file name data;
and determining the file name data as Post entity data, and performing splicing processing on the Post request header and the Post entity data to generate a Post request.
7. The method for cross-platform transmission of Line App data according to claim 1, wherein the parsing and packaging the file entity data of the Line App data and the response data according to a preset second request generation algorithm, and generating a data storage request comprises:
Reading a response head of the response data to obtain a URL storage path;
acquiring a preset storage request frame, setting an uploading path in the storage request frame as a URL storage path, and setting an authorization document in the storage request frame as a response permission value to obtain a storage request head;
setting the file entity data of the Line App data as entity data to obtain storage request entity data;
and performing splicing processing on the storage request header and the storage request entity data to generate a data storage request.
8. The cross-platform transmission system of the Line App data is characterized by comprising the following components:
the system comprises an iOS operating system, an Android operating system and a data guiding system;
the data guiding system is used for receiving a cross-platform data transmission instruction and judging whether the data transmission instruction is transmitted to the Android system by the iOS system or not;
if the instruction is not transmitted to the Android system by the iOS system, the data guiding system transmits an Android migration instruction to the Android operating system;
the Android operating system is used for receiving the Android migration instruction, sending the Line App data in the Android operating system to a preset Google Drive cloud database, and receiving feedback data sent by the Google Drive cloud database;
Analyzing, constructing and processing the feedback data and the Line App data according to a preset two-dimension code generation algorithm to obtain an authorized two-dimension code;
the iOS operating system is used for scanning and identifying the authorized two-dimensional code, accessing the Google Drive cloud database according to the identification information of the authorized two-dimensional code to obtain Line App data in the Google Drive cloud database, and performing format conversion processing on the Line App data according to a preset iOS Line App data table and a preset iOS Line storage path to obtain Line App data in an iOS format;
writing the Line App data in the iOS format into a Line App storage position of the iOS operating system according to a preset iOS reduction service interface;
if the instruction is the instruction transmitted to the Android system by the iOS system, the data guiding system transmits an iOS migration instruction to the iOS operating system;
the iOS operating system is used for receiving the iOS migration instruction, sending a data migration request of the Line App data to a preset Google Drive cloud database, and obtaining a response permission value fed back by the Google Drive cloud database;
according to a preset first request generation algorithm, combining the file name data of the Line App data and the response permission value to generate a Post request;
The Post request is sent to the Google Drive cloud database, and response data sent by the Google Drive cloud database are received;
according to a preset second request generation algorithm, analyzing and packaging the file entity data of the Line App data and the response data to generate a data storage request, and sending the data storage request to the Google Drive cloud database;
the Android operating system is used for accessing the Google Drive cloud database, downloading the Line App data in the Google Drive cloud database, and writing the Line App data into a Line App storage position of the Android operating system.
9. The cross-platform transmission equipment of the Line App data is characterized by comprising the following components: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the cross-platform transmission device of the Line App data to perform the cross-platform transmission method of the Line App data of any one of claims 1-7.
10. A computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the cross-platform transmission method of Line App data of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111619067.XA CN114401278B (en) | 2021-12-27 | 2021-12-27 | Cross-platform transmission method, system, equipment and storage medium for Line App data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111619067.XA CN114401278B (en) | 2021-12-27 | 2021-12-27 | Cross-platform transmission method, system, equipment and storage medium for Line App data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114401278A CN114401278A (en) | 2022-04-26 |
CN114401278B true CN114401278B (en) | 2023-11-17 |
Family
ID=81228512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111619067.XA Active CN114401278B (en) | 2021-12-27 | 2021-12-27 | Cross-platform transmission method, system, equipment and storage medium for Line App data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114401278B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118277984B (en) * | 2024-06-04 | 2024-09-24 | 深圳麦风科技有限公司 | Method, device, equipment and storage medium for checking Windows Line program chat data |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103440273A (en) * | 2013-08-06 | 2013-12-11 | 北京航空航天大学 | Data cross-platform migration method and device |
CN106375465A (en) * | 2016-09-14 | 2017-02-01 | 广东欧珀移动通信有限公司 | Data migration method and server |
CN106445663A (en) * | 2016-09-14 | 2017-02-22 | 广东欧珀移动通信有限公司 | Application data migration method and device |
CN112636916A (en) * | 2020-11-30 | 2021-04-09 | 捷德(中国)科技有限公司 | Data processing method, data processing device, storage medium and electronic equipment |
CN112671796A (en) * | 2020-12-31 | 2021-04-16 | 深圳软牛科技有限公司 | Google Driver cloud service authentication acquisition method, device, equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11520734B2 (en) * | 2020-03-16 | 2022-12-06 | Vmware, Inc. | Device to device migration in a unified endpoint management system |
-
2021
- 2021-12-27 CN CN202111619067.XA patent/CN114401278B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103440273A (en) * | 2013-08-06 | 2013-12-11 | 北京航空航天大学 | Data cross-platform migration method and device |
CN106375465A (en) * | 2016-09-14 | 2017-02-01 | 广东欧珀移动通信有限公司 | Data migration method and server |
CN106445663A (en) * | 2016-09-14 | 2017-02-22 | 广东欧珀移动通信有限公司 | Application data migration method and device |
CN112636916A (en) * | 2020-11-30 | 2021-04-09 | 捷德(中国)科技有限公司 | Data processing method, data processing device, storage medium and electronic equipment |
CN112671796A (en) * | 2020-12-31 | 2021-04-16 | 深圳软牛科技有限公司 | Google Driver cloud service authentication acquisition method, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
谷歌推出新工具一键实现"iPhone 数据迁移到Android 系统手机".《互联网天地》.2016,全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN114401278A (en) | 2022-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4668619B2 (en) | Device key | |
CN108023874B (en) | Single sign-on verification device and method and computer readable storage medium | |
US9059978B2 (en) | System and methods for remote maintenance in an electronic network with multiple clients | |
CN111800440B (en) | Multi-policy access control login method and device, computer equipment and storage medium | |
CN107612889B (en) | Method for preventing user information leakage | |
US9559737B2 (en) | Telecommunications chip card | |
US20030167409A1 (en) | Secure electronic directory and catalog synchronization using email to trigger synchronization | |
CN113992346B (en) | Implementation method of security cloud desktop based on national security reinforcement | |
JP7159461B2 (en) | Authorization Method, Auxiliary Authorization Component, Management Server, and Computer Readable Medium | |
US9231927B2 (en) | Information processing apparatus, data generation method, information processing method, and information processing system for updating and verifying software programs | |
CN105516135A (en) | Method and device used for account login | |
CN112311528A (en) | Data secure transmission method based on state cryptographic algorithm | |
CN114401278B (en) | Cross-platform transmission method, system, equipment and storage medium for Line App data | |
CN114499836B (en) | Key management method, device, computer equipment and readable storage medium | |
CN111625800A (en) | Digital identity authentication method and system based on in-vivo detection | |
CN111639357A (en) | Encryption network disk system and authentication method and device thereof | |
CN108846671B (en) | Online secure transaction method and system based on block chain | |
CN112565236B (en) | Information authentication method, device, computer equipment and storage medium | |
CN111885091B (en) | Secure communication method, device, equipment and storage medium | |
CN105577606A (en) | Method and device for realizing register of authenticator | |
JP2008176429A (en) | Confidential information leakage prevention system, confidential information leakage prevention method, and confidential information leakage prevention program | |
CN112084485A (en) | Data acquisition method, device, equipment and computer storage medium | |
CN114385589A (en) | Data transmission method, system, device and medium | |
JP4517608B2 (en) | Data communication system | |
CN113422757B (en) | Document management system based on encryption application |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 1301-1310, building 2, jinlitong financial center building, 1100 Xingye Road, Haiwang community, Xin'an street, Bao'an District, Shenzhen, Guangdong 518000 Patentee after: Shenzhen Ruan Niu Technology Group Co.,Ltd. Address before: 1301-1310, building 2, jinlitong financial center building, 1100 Xingye Road, Haiwang community, Xin'an street, Bao'an District, Shenzhen, Guangdong 518000 Patentee before: AFIRSTSOFT CO.,LTD. |
|
CP01 | Change in the name or title of a patent holder |