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

Search This thread

idpro

Senior Member
Oct 1, 2005
214
13
Cairo
www.ibdiab.com
I made a Chat History full backup to use it on my new phone. I formatted and sold the phone. got a new one, installed line.
I put the LINE_Android-backup-chat-XXXXXXXXX.zip Backup file into Line backup folder (SDCard\LINE_backup)
Booo, no import option there
any help my friends... I need to open this backup even if there is a way to decode it in my Pc it's ok.
I'm not Rooted and all what I have is my LINE_Android-backup-chat-XXXXXXXXX.zip Backup file :(
 

TASL

Senior Member
Nov 26, 2011
272
50
Los Angeles USA
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.
 

jcsy

Senior Member
Jan 9, 2009
3,753
949
Land of the Z1/EVO3D/GTAB10.1(2)
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!

LOL this saved my chats

i have a scheduled backup every 4AM and lucky that backup was more than I needed.

I deleted 1 of my individual chats.. and everytime i restored "data" or "app/data" and opened LINE, it deleted everything.

i came to XDA and found these instructions, and everything worked perfectly :)

awesome stuff
 
  • Like
Reactions: Tito151

ankur0493

New member
Jul 8, 2014
1
0
How to restore if my friend is no lonnger on line?

I have a LINE chat backup for a friend who is no longer on LINE. I really need to restore the backup somehow. Can anyone help me? I am ready to pay if this requires so.

---------- Post added at 01:04 PM ---------- Previous post was at 12:59 PM ----------

I made a Chat History full backup to use it on my new phone. I formatted and sold the phone. got a new one, installed line.
I put the LINE_Android-backup-chat-XXXXXXXXX.zip Backup file into Line backup folder (SDCard\LINE_backup)
Booo, no import option there
any help my friends... I need to open this backup even if there is a way to decode it in my Pc it's ok.
I'm not Rooted and all what I have is my LINE_Android-backup-chat-XXXXXXXXX.zip Backup file :(

I also have just the zip file and really need it decoded. Someone please help. It is very important for me...
 

amrinal

Senior Member
Feb 15, 2014
313
87
is there any way to re-call Line Group,,, our Line Note 3 Group has been deleted by someone (delete member and delete group)? thx
 

zenaufa

Senior Member
May 9, 2011
124
50
Jakarta
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!

thank you so much for the tips :)

EDIT :
if you've got sqlite3 not found error,just extract the attachment and put it on /system/xbin/ and set permission to rwxrwxrwx :)
 

Attachments

  • sqlite3.rar
    17.3 KB · Views: 536
Last edited:
  • Like
Reactions: khamim

sga999

Senior Member
Mar 13, 2012
968
165
I get an error when trying this in the terminal emulator (I have done the 'su' command).

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

I'm guessing that I may have the wrong version of sqlite3? I got it by installing 'sqlite installer for root' app. I ran it, and squlite3 is definitely installed now.

Or I just don't know how to enter those lines above. Do I hit return (enter) at the end of the first line (ending with naver_line), then 'delete from setting;' on another line (without the quotes)? Or is it all supposed to be on a single line? I've tried it both ways, and it always says it's invalid.

EDIT: Sorry, it's working fine. I did do both lines as shown above. I thought it failed because after the first line was entered, some text appeared telling me to enter -help. I assumed that meant there was an error. Wrong! Then I entered the 2nd line. Thanks to several people here for their helpful posts.
 
Last edited:

Hasanast

Member
Mar 7, 2014
8
0
Desperate Linbackup help plz

hello people
umm...me nd my girlfrnd has used line since a year now nd we have sum very important messages there
my line got deleted when she used my number to make a new line account on her ipod
but i have a backup of all the messages ,unfortunetly its in the RAR format....text backup wudv been okay too
now i have a new line but i cant seem to back up the chat....can you help me plz?im really desperate here
what is have is:
Her Original LINE account
My new line account
back up in rar of her nd mine original chat
plz help me
 

telomania

New member
Oct 19, 2014
1
0
hi
please all help me
after restart my phone
my phone stuck at booting logo
and i force restart many times 20x i think
then it can
but its like when we first use that phone
then i open all social media then my acc log out itself
and my line too
then i log in it say(if i log in the history will lose after that i log in in line pc, i think line pc have all of my history chat but just a half and badly i have already log in line in my phone)
how to recover my history chat
someone helppp
 

nfoboy

Senior Member
Jun 21, 2011
52
13
4.7.1 unsuccesful

not sure if my backup was bad for version 4.7.1, but I couldn't get this to work with it.. Luckily I had never updated my Line app on my previous phone (until I got my new one a couple of days ago) and my backup of version 4.2.3 worked as advertised. Thanks much!
 

Awreccan

Member
Dec 16, 2012
18
3
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!

It works perfectly! I obsessively backed up every chat through LINE's given options just to make sure, but there was no need. Your method is perfect!
 

bbwibbwi

New member
Apr 4, 2015
1
0
Umm..

Hi! So I accidentally deleted a chat with a friend of mine, but he already deleted his line account :( so, is there anything I can do to retrieve the chat again? Thank you and have a nice day! :)
 

mxyzptlk

New member
Dec 8, 2008
1
0
This thread so very cool :good:
I needed to clear cache & data because my Line didn't want to start & always closing right after the phone started. And this thread saved all my chats :victory:
Just want to direct people who might not know where to find sqlite3 compatible with Android L (I was one of them): http://xdaforums.com/showthread.php?t=2730422

Update:
Sorry, false alarm. All the chats are lost, definitely because I didn't make a backup before cleared the cache :rolleyes:
Then again, maybe this was a lost cause after all, because I didn't have any backup at all before the error.
However, my PC version of Line still has all the chats. Anybody knows how to extract & restore it to the Android version?
 
Last edited:

I.G.

New member
May 9, 2015
1
0
No external SD

Hi everyone.

Has anyone tried the regular backup procedure (that is, manually backing up and restoring every chat) on a phone without external SD card? The online manual on line.me clearly says:
- The backup file must be stored on the SD card and not the internal storage. Please consult the manufacturer of your device for help with saving the file.
In case of Nexus or Galaxy S6, there is no SD card, only internal storage. Can this be circumvented by creating a "sdcard" folder in internal memory?
 

aperception

Member
Jul 24, 2012
44
22
Recently phones don't have the sqlite3 binary installed by default, but Titanium Backup has a copy, so if you get the sqlite3 not found error, simply do the following:

Code:
adb shell
su
mount -o remount,rw /system
cat /data/data/com.keramidas.TitaniumBackup/files/sqlite3 > /system/xbin/sqlite3
chmod 4755 /system/xbin/sqlite3
mount -o remount,ro /system

and then follow original instructions:
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!
 
  • Like
Reactions: dimm0k

musashiken

Senior Member
Feb 22, 2010
1,353
152
Samsung Galaxy Tab S2
OnePlus 5T
I've been using this method for countless times but there are some nagging things that I can't seem to solve.

- For the past 3 to 4 times of restoring line on my CM12.1 rom, I can never delete /data/data/jp.naver.line.android/jp.naver.line.android.settings.xml,
Because it doesn't exist anywhere on my phone. Only doing the sqlite3 thing works for me.

- A major problem I have with restoring is that photos in chats do not link back to the chats. The photos are still somewhere on the phone but if you go to the photos inside the chat itself, many photos can't be opened from inside the chat. Not sure how to fix this.
 

easybullet3

Member
Mar 5, 2011
20
0
isnt there any way to back up ALL of my conversations at once ?
i have more than a hundred friends there!!!
surely I dont have to back up and email 100 separate conversations??? !!!
this is ridiculous!!
 

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 !#$%@^$@%!#@$!#$@^*%^&(*%^@# 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
    Hello there!

    As per my usual routine, whenever I find myself doing a full wipe on my Android device, I always make sure to come back here and consult the steps and recommendations shared to avoid those annoying limitations when it comes to restoring the LINE app without a proper backup system. Seriously, it's quite frustrating how they make it so complicated!

    But hey, I've got some great news to share with you. In the past, I used to rely on the outdated Titanium Backup, but it's difficult to make it work for most of the apps nowadays so I switched to this app called Swift Backup. And the good news is, with the proper configuration, Swift Backup seems to be capable of restoring LINE as well.

    How to do it? It appears that if you check the box labeled "Restore app SSAIDs" in Swift Backup, LINE opens up without any additional hassle. This nifty feature restores the app's original ID. Although I personally believe it may not be necessary, just to be on the safe side, I recommend activating this option when creating the backup, not just during the restoration process. Oh, and one more thing, after restoring LINE, it's essential to restart your device; otherwise, you might encounter some troublesome issues.

    Initially, when I tapped on the LINE icon, nothing happened. You know, that all-too-familiar symptom where the app detects that you're using a different device. Even after restarting, the app still refused to open. However, I stumbled upon a little trick that did the trick for me: I uninstalled the app and then restored it again. Voilà! That did the trick, and I was able to use LINE without any additional fuss. Hence, I wholeheartedly recommend considering Swift Backup for your backup needs. While there may be other apps out there with similar functionalities, I haven't come across them just yet. If you happen to know any, I'd be delighted to hear your recommendations. All I can say is that Swift Backup works like a charm and can save you from the laborious steps that this amazing community has managed to decipher. Of course, if a direct restoration method exists, all the better!

    To sum it up, here's a quick rundown of the steps to restore LINE, as I mentioned based on my personal experience:

    1. Opt for Swift Backup or other backup app with SSAID restoring capabilities
    2. When you restore LINE using Swift Backup, make sure to turn on the "Restore app SSAIDs" option. I think It's not required, but it's a good idea to enable this option when you're creating the backup, not just when you're restoring it.
    3. Once the restoration is complete, it's crucial to restart your device. Trust me, this step is vital; otherwise, LINE may not open.
    4. After restarting your device just opening the LINE app should do the trick and you could continue using LINE in your new device (actually I think that probably could let you keep using LINE in 2 different devices)
    5. If the LINE app still won't open uninstall the app and restore the backup once again (actually most of the time I had to uninstall before I could make it work).

    Please bear in mind that these steps might vary depending on the specific device and software versions you're using. If you happen to stumble upon any additional tips or alternative methods, feel free to share them with the wonderful folks in this forum.

    I sincerely hope this information assists you in restoring LINE after a full wipe without causing you unnecessary stress.
    Best of luck!
    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.