{"id":19085221,"url":"https://github.com/numessanguis/naver_line_restore_chat_root","last_synced_at":"2025-07-22T19:05:19.029Z","repository":{"id":191825327,"uuid":"685476203","full_name":"NumesSanguis/naver_line_restore_chat_root","owner":"NumesSanguis","description":"Merge your NAVER LINE chat history when you have an old database and a fresh install (Android - requires root).","archived":false,"fork":false,"pushed_at":"2023-08-31T10:15:45.000Z","size":8,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T10:54:06.404Z","etag":null,"topics":["chat-application","database","line","naver","naver-line","sqlite"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NumesSanguis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-31T10:12:41.000Z","updated_at":"2025-03-21T08:20:19.000Z","dependencies_parsed_at":"2023-09-01T00:34:55.092Z","dependency_job_id":null,"html_url":"https://github.com/NumesSanguis/naver_line_restore_chat_root","commit_stats":null,"previous_names":["numessanguis/naver_line_restore_chat_root"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NumesSanguis/naver_line_restore_chat_root","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumesSanguis%2Fnaver_line_restore_chat_root","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumesSanguis%2Fnaver_line_restore_chat_root/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumesSanguis%2Fnaver_line_restore_chat_root/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumesSanguis%2Fnaver_line_restore_chat_root/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NumesSanguis","download_url":"https://codeload.github.com/NumesSanguis/naver_line_restore_chat_root/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NumesSanguis%2Fnaver_line_restore_chat_root/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266554297,"owners_count":23947305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat-application","database","line","naver","naver-line","sqlite"],"created_at":"2024-11-09T02:55:21.089Z","updated_at":"2025-07-22T19:05:19.006Z","avatar_url":"https://github.com/NumesSanguis.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"日本語は下記を参照（予定）。\n\n# NAVER LINE database merger\nRestore your chat history by merging your backup to your new install of LINE.\n\n\n## Requirements\n- A ROOTed Android phone\n- A previous backup \u0026 current copy of your `naver_line` database retrieved from `jp.naver.line.android/databases/naver_line`\n\n\n## Use-case\nYou make a backup of your LINE app data, e.g. by setting-up [Syncthing](https://syncthing.net/).\nThen you got a new phone and maybe your old phone has died.\nYou might have tried to keep all your LINE data with the method described here:\nhttps://android.stackexchange.com/a/225948\n\nBut this failed or was not possible from the start.\nInstead you installed LINE fresh and \"lost your chat history\", but you do still have your old `naver_line` db with your chat history.\n\nFollowing the steps in this repo and executing the SQL effectively merges your old chat history with the `naver_line` db used in your current version of the LINE app.\n\n\n## Execution steps\n1. Download \"DB Browser for SQLite\": https://sqlitebrowser.org/\n2. Open the latest `naver_line` DB with DB Browser\n3. Click \"Attach Database\" in toolbar and select your old `naver_line`\n    - When searching for your file, change \"Files of type\" to \"All files (*)\" (`naver_line` file has no extension)\n    - Name it `old` when the dialog appears with \"Please specify the database name ...\"\n4. Go to \"Execute SQL\" tab and copy+paste the SQL code found in: `sql/*.sql` in order\n\n\n## Setting back new database\n0. Close the LINE app and Force Stop (App info) it. Also turn-off wifi/internet\n1. Copy the db file to your Android device's internal memory\n2. With a file navigator app that has root access (e.g. \"Total Commander\"), go to your LINE app install location\n    - Could be: `/data_mirror/data_ce/null/0/jp.naver.line.android/databases`\n3. Select the db file `naver_line`, properties, and note down the UID \u0026 GID\n4. With file navigator, go to your new merged db file `naver_line` and change UID \u0026 GID to what you noted down in the previous step\n5. Rename the original `naver_line` in `jp.naver.line.android/databases` to e.g. `naver_line_bak`\n6. Copy over your new `naver_line` to `jp.naver.line.android/databases`\n7. Just to be sure, restart your device\n8. Open the LINE app. At first you see nothing different, but if you scroll up in a chat your history is there!\n\n### Notes\n- Not sure how to recover images shared in chat yet.\n    - Seems `storage/Android/data/jp.naver.line.android/storage/` might hold the clue\n- Chats that haven't seen a new message since you reinstalled LINE do not show up (but have all your chat history)\n    - These do appear if you select the chat from your home screen. The message will be shown as from 1970/1/1 though\n- Search for old chat history seems broken :/ Even after you have openend an old chat.\n\n\n\n# NAVER LINE データベース統合\nTODO\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumessanguis%2Fnaver_line_restore_chat_root","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumessanguis%2Fnaver_line_restore_chat_root","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumessanguis%2Fnaver_line_restore_chat_root/lists"}