• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[GUIDE] How to restore / import Line chat history!

Search This thread

BillBauman

Senior Member
Aug 28, 2012
301
235
Skip to How to Import Chat History below to skip the background reading.

Yes, there is a graphical import method for Line!

If you use Line, and you want to change between devices, it seems as though it is nearly impossible to backup (export) and restore (import) your Line chat history. I have searched XDA, Google, AndroidForums, Line's (useless) online help, etc. No help, no info. There are some guides about how to use a SQL editor to fool the app, etc., but that was just way too much effort for me, so I finally gave up and just switched. BUT, before I did, I went ahead and exported all my chats, even knowing there was no way to import them, just in case. Well, that just paid off.

There is absolutely no method available within Line to restore your chat history, right?! WHY is there a backup option? There MUST be a way! Seemingly no.

I just figured it out. And when I explain it, you too will wonder, why in the !#$%@^[email protected]%!#@$!#[email protected]^*%^&(*%^@# has Naver not published this?????

I was on my way to back everything up in preparation for a new ROM and figured I'd do a complete and total system wipe, meaning, I went to take a look at my internal storage (SDcard, Emulated, 0, whatever you refer to it as), to ensure that I got all the little things I want, like Viber pictures, WhatsApp pics, etc. And there I saw it. The folder. And, like you are now thinking, I thought, just maybe...

How to Import Chat History (Abbreviated, Quick and Easy)

Copy your chatHistory.zip file to internal storage sdcard/LINE_Backup
Start Line, open an existing chat or start a new chat with the person whose chat history you want to restore
Tap the drop-down arrow in the upper right, Chat Settings, and look what just showed up below the (formerly) useless Backup Chat History option

How to Backup and Restore Chat History (Additional Details)

Line offers a "Backup Chat History" option, but keep in mind, this is conversation / per-person specific. That means, you need to do it for each individual person.

For my own ease of use, and to make transferring things easy, now that I know what the process is, here's what I did.

Backing Up

Go into the conversation you want to backup.
Tap the drop-down arrow in the upper right, and select Chat Settings.
Select Backup Chat History, Backup All
Say Yes to e-mail this chat - in a previous version, I had to enter the conversation person's name in the subject, the new Line now does this for me.
Repeat this process for every conversation you want to migrate to a new device.

Restoring

On your new device, save the attachments from each e-mail into the /InternalSDCard/LINE_Backup/ directory.
Start Line, go to Chats, Tap the Chat Bubble in the upper right to start a new conversation, select the person you want to restore
Your chat window will be empty, but from here, you just follow the instructions above, basically, drop-down arrow, Chat Settings, Import Chat History

And that's it.

I REALLY hope this helps some people out. I wasted a LOT of time trying to figure this out, and as usual, once you know the solution, it's pretty simple and seems so obvious.

If I helped, throw me some Thanks button so I know I wasn't the only one!
 

kkwhong

New member
Nov 6, 2013
1
0
I have a google Nexus 5, which doesn't have any internal storage.

Are you able to specify where this should be copied too as I cannot seem to find the right holder.

Also, what am i copying in there? The actual zip file or an extract of the zip file?one
 

BillBauman

Senior Member
Aug 28, 2012
301
235
I have a google Nexus 5, which doesn't have any internal storage.

Are you able to specify where this should be copied too as I cannot seem to find the right holder.

Also, what am i copying in there? The actual zip file or an extract of the zip file?one

On your internal storage of your Nexus 5, create a folder called: LINE_Backup the exact upper/lower case and _ matter. Put the LINE backup zips in that folder, do not extract them. LINE knows which zip goes with which user, you just have to start the chat and import per the instructions above.
 

raveur

Member
Nov 10, 2006
8
3
How to Backup and Restore Chat History (Additional Details)

Line offers a "Backup Chat History" option, but keep in mind, this is conversation / per-person specific. That means, you need to do it for each individual person.

For my own ease of use, and to make transferring things easy, now that I know what the process is, here's what I did.

Backing Up

Go into the conversation you want to backup.
Tap the drop-down arrow in the upper right, and select Chat Settings.
Select Backup Chat History, Backup All

Unfortunately, The "Backup All" setting only applies to one-on-one conversations. Group chats only give you the Backup as Text option.
 
  • Like
Reactions: BillBauman

BillBauman

Senior Member
Aug 28, 2012
301
235
Unfortunately, The "Backup All" setting only applies to one-on-one conversations. Group chats only give you the Backup as Text option.

That sucks. I haven't tried a group chat in LINE before. Did you try a backup/import to see if it would work? I'm sort of assuming no, that it doesn't work, based on your post. :/
 

daimyorl

Member
Jun 6, 2013
34
19
I just found a method for importing the chat history using Titanium Backup and the terminal. You need root for this. Recently Line made some changes that made this more
Hope you find this useful.

1. Restore Line with Titanium Backup (app+data) (DON'T OPEN THE LINE APP YET!)

2. Log into a root shell and delete the previous settings:

sqlite3 /data/data/jp.naver.line.android/databases/naver_line
delete from setting;
.quit


3. Now we have to delete this xml only if you are using a recent version. In previous ones it didn't even exist as far as I know
rm /data/data/jp.naver.line.android/jp.naver.line.android.settings.xml

4. Open the Line app and it will ask you to enter your user and password.
You will receive a warning about losing your chat history. Just ignore it and...

5. Enjoy!
 
Last edited:

shackks

Member
Apr 2, 2007
15
1
I had copy the zip files to the Line_backup folder which was already in the phone internal memory. However, there is no Import Chat History Button.

The Line version was the latest one and had Force Stop and restarted Line. Still to no avail.
 
  • Like
Reactions: CounterC

Ravyn

New member
Dec 25, 2013
1
0
Is there any way to view the chat log?

What format is it saved in and how would you go about viewing the chat log if you were sent one from a chat that wasn't yours?
 

MishyMix

New member
Dec 30, 2013
1
0
Didn't Work on LG Android Optimus

I must be doing something wrong, but it seems I've followed all the steps. The LINE_backup files are in my SD card, but when I click Import Chat History>yes>ok, nothing happens... :/
I made an account just to post on here and hopefully find out.
 

james.abcde

New member
Jan 12, 2014
3
0
I just found a method for importing the chat history using Titanium Backup and the terminal. You need root for this. Recently Line made some changes that made this more
Hope you find this useful.

1. Restore Line with Titanium Backup (app+data) (DON'T OPEN THE LINE APP YET!)

2. Log into a root shell and delete the previous settings:

sqlite3 /data/data/jp.naver.line.android/databases/naver_line
delete from setting;
.quit


3. Now we have to delete this xml only if you are using a recent version. In previous ones it didn't even exist as far as I know
rm /data/data/jp.naver.line.android/jp.naver.line.android.settings.xml

4. Open the Line app and it will ask you to enter your user and password.

5. Enjoy!

I used this method and bang! It works like a charm!
Thanks a lot :)
*It actually still gives warning after I logged in - that my chat history will be deleted or such -, but actually it didn't delete a thing. So, to anyone who wanna try this, don't worry with the warning message!*
 

daimyorl

Member
Jun 6, 2013
34
19
I used this method and bang! It works like a charm!
Thanks a lot :)
*It actually still gives warning after I logged in - that my chat history will be deleted or such -, but actually it didn't delete a thing. So, to anyone who wanna try this, don't worry with the warning message!*

Glad it was useful for you!

Thanks for the feedback. I will add the info about the warning as I forgot it completely.
 

norike

Member
Mar 20, 2012
25
19
Girona
Hello,

sqlite3 /data/data/jp.naver.line.android/databases/naver_line
This gives me this error:
Error: unable to open database "data/data/jp.naver.line.android/databases/naver_line": unable to open database file
I use the emulator in ROM Toolbox Lite

delete from setting;
If I use SQLite Debugger to delete the setting table, and I also remove the jp.naver.line.android.settings.xml file with ES Explorer, I get the Force Close when I try to open the application.

And If I delete the whole naver_line database, then Line starts, but losing the chat history.
 
  • Like
Reactions: sga999

norike

Member
Mar 20, 2012
25
19
Girona
This gives me this error:
Error: unable to open database "data/data/jp.naver.line.android/databases/naver_line": unable to open database file
I use the emulator in ROM Toolbox Lite
Got it! I was missing the su command to make the emulator rooted.
I also found the jp.naver.line.android.settings.xml file in a slightly different location than where daimyorl said above (but the credits go to him). For me it was into /data/data/jp.naver.line.android/shared_prefs/

Then, the complete instructions that worked for me are:

  1. Restore Line with Titanium Backup (app+data) (DON'T OPEN THE LINE APP YET!)
  2. Log into a shell and delete the settings:
    Code:
    su
    sqlite3 /data/data/jp.naver.line.android/databases/naver_line
    delete from setting;
    .quit
  3. Remove jp.naver.line.android.settings.xml
    Code:
    rm /data/data/jp.naver.line.android/shared_prefs/jp.naver.line.android.settings.xml
  4. Open the Line app and it will ask you to enter your user and password. It will also ask your phone number for the confirmation SMS.
  5. Enjoy!
 
Last edited:

simika

Senior Member
May 19, 2012
334
72
Rome
Got it! I was missing the su command to make the emulator rooted.
I also found the jp.naver.line.android.settings.xml file in a slightly different location than where daimyorl said above (but the credits go to him). For me it was into /data/data/jp.naver.line.android/shared_prefs/

Then, the complete instructions that worked for me are:

  1. Restore Line with Titanium Backup (app+data) (DON'T OPEN THE LINE APP YET!)
  2. Log into a shell and delete the settings:
    Code:
    su
    sqlite3 /data/data/jp.naver.line.android/databases/naver_line
    delete from setting;
    .quit
  3. Remove jp.naver.line.android.settings.xml
    Code:
    rm /data/data/jp.naver.line.android/shared_prefs/jp.naver.line.android.settings.xml
  4. Open the Line app and it will ask you to enter your user and password. It will also ask your phone number for the confirmation SMS.
  5. Enjoy!

i'm gonna try it tonight.. i really hope it does work cause LINE about backup chat is so so annoying !!
i hope it works, thank you !!!
i'll give u feedback later!
 

lishanshung

New member
Apr 13, 2014
1
0
Can I import to a different phone number?

Thanks for the guide. Does this work if I want to import my chat history to a completely different phone number? But I'll still be using the same android phone.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    Skip to How to Import Chat History below to skip the background reading.

    Yes, there is a graphical import method for Line!

    If you use Line, and you want to change between devices, it seems as though it is nearly impossible to backup (export) and restore (import) your Line chat history. I have searched XDA, Google, AndroidForums, Line's (useless) online help, etc. No help, no info. There are some guides about how to use a SQL editor to fool the app, etc., but that was just way too much effort for me, so I finally gave up and just switched. BUT, before I did, I went ahead and exported all my chats, even knowing there was no way to import them, just in case. Well, that just paid off.

    There is absolutely no method available within Line to restore your chat history, right?! WHY is there a backup option? There MUST be a way! Seemingly no.

    I just figured it out. And when I explain it, you too will wonder, why in the !#$%@^[email protected]%!#@$!#[email protected]^*%^&(*%^@# has Naver not published this?????

    I was on my way to back everything up in preparation for a new ROM and figured I'd do a complete and total system wipe, meaning, I went to take a look at my internal storage (SDcard, Emulated, 0, whatever you refer to it as), to ensure that I got all the little things I want, like Viber pictures, WhatsApp pics, etc. And there I saw it. The folder. And, like you are now thinking, I thought, just maybe...

    How to Import Chat History (Abbreviated, Quick and Easy)

    Copy your chatHistory.zip file to internal storage sdcard/LINE_Backup
    Start Line, open an existing chat or start a new chat with the person whose chat history you want to restore
    Tap the drop-down arrow in the upper right, Chat Settings, and look what just showed up below the (formerly) useless Backup Chat History option

    How to Backup and Restore Chat History (Additional Details)

    Line offers a "Backup Chat History" option, but keep in mind, this is conversation / per-person specific. That means, you need to do it for each individual person.

    For my own ease of use, and to make transferring things easy, now that I know what the process is, here's what I did.

    Backing Up

    Go into the conversation you want to backup.
    Tap the drop-down arrow in the upper right, and select Chat Settings.
    Select Backup Chat History, Backup All
    Say Yes to e-mail this chat - in a previous version, I had to enter the conversation person's name in the subject, the new Line now does this for me.
    Repeat this process for every conversation you want to migrate to a new device.

    Restoring

    On your new device, save the attachments from each e-mail into the /InternalSDCard/LINE_Backup/ directory.
    Start Line, go to Chats, Tap the Chat Bubble in the upper right to start a new conversation, select the person you want to restore
    Your chat window will be empty, but from here, you just follow the instructions above, basically, drop-down arrow, Chat Settings, Import Chat History

    And that's it.

    I REALLY hope this helps some people out. I wasted a LOT of time trying to figure this out, and as usual, once you know the solution, it's pretty simple and seems so obvious.

    If I helped, throw me some Thanks button so I know I wasn't the only one!
    19
    I just found a method for importing the chat history using Titanium Backup and the terminal. You need root for this. Recently Line made some changes that made this more
    Hope you find this useful.

    1. Restore Line with Titanium Backup (app+data) (DON'T OPEN THE LINE APP YET!)

    2. Log into a root shell and delete the previous settings:

    sqlite3 /data/data/jp.naver.line.android/databases/naver_line
    delete from setting;
    .quit


    3. Now we have to delete this xml only if you are using a recent version. In previous ones it didn't even exist as far as I know
    rm /data/data/jp.naver.line.android/jp.naver.line.android.settings.xml

    4. Open the Line app and it will ask you to enter your user and password.
    You will receive a warning about losing your chat history. Just ignore it and...

    5. Enjoy!
    10
    This gives me this error:
    Error: unable to open database "data/data/jp.naver.line.android/databases/naver_line": unable to open database file
    I use the emulator in ROM Toolbox Lite
    Got it! I was missing the su command to make the emulator rooted.
    I also found the jp.naver.line.android.settings.xml file in a slightly different location than where daimyorl said above (but the credits go to him). For me it was into /data/data/jp.naver.line.android/shared_prefs/

    Then, the complete instructions that worked for me are:

    1. Restore Line with Titanium Backup (app+data) (DON'T OPEN THE LINE APP YET!)
    2. Log into a shell and delete the settings:
      Code:
      su
      sqlite3 /data/data/jp.naver.line.android/databases/naver_line
      delete from setting;
      .quit
    3. Remove jp.naver.line.android.settings.xml
      Code:
      rm /data/data/jp.naver.line.android/shared_prefs/jp.naver.line.android.settings.xml
    4. Open the Line app and it will ask you to enter your user and password. It will also ask your phone number for the confirmation SMS.
    5. Enjoy!
    3
    Just my 2c... This method if backup/restore sucks... not because of the OP, but because LINE doesn't have a batch backup/restore option!!! Have hundreds of conversations that I'd like to maintain... which means, hundreds of times of clicking backup etc etc, the hundreds of times clicking restore etc etc.

    FYI, if you are willing to root your phone and pay for TIBackup Pro you can simplify the process. Backup LINE (user apps) and your SETTINGS (system apps) with TIBackup. Copy TIBackup folder to external sdcard or PC. Do whatever you were going to do that required you to backup/restore LINE. Load up TIBackup, load up the TIBackup folder, restore LINE APP+DATA, then goto the menu in TIBackup and scroll to the bottom and select 'manage android id' and select restore from backup (if you backed up the correct settings data under system data there will only be ONE option). Your phone will automatically reboot. Click on LINE, boom everything just like it was before.
    2
    Xml to be removed

    My line version is 6.2.1

    And the xml to be removed is android_preferences. xml
    Code


    su
    sqlite3 /data/data/jp.naver.line.android/databases/naver_line
    delete from setting;
    .quit


    rm /data/data/jp.naver.line.android/shared_prefs/jp.naver.line.android_preferences.xml

    And I successfully restored all the chattings.

    Added note 3/9/17
    With this method all the history pics would be lost.