How to restore Line messages from titanium backup?


Question

It seems that Line (a messaging app like WhatsApp) is one that I cannot easily restore app data (messages) through titanium backup.



There is a whole thread on XDA, highlighting one post that had 13 thanks:



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


It looks quite difficult and I am not even sure it's correct.



Can anyone confirm before I try?



Also what is a root shell? Is that some form of app?


Answer


Log into a root shell




It's a mix up of multiple things. It simply means, login into a shell and then switch to root user or alternatively, directly login as the root user. For Android, you can login from a remote shell using adb shell command. It automatically logins as user 2000. Alternatively, use a terminal emulator app and it would automatically login using its own UID. In both the cases, don't bother about the term "log in".



Switch to root user using su.




sqlite3 /data/data/jp.naver.line.android/databases/naver_line



sqlite3 is a command-line tool to interface with SQLite databases. Stock Android doesn't come with it.



That command does nothing more than attaching the database naver_line located under /data/data/jp.naver.line.android/databases/ to sqlite3 so that latter can do its work on it.




delete from setting;



I don't have that app or its backup but the command indicates that there is a table named setting in the said database. That command would delete all the data available in that table.




.quit



It would disconnect the database and exit from the sqlite3 tool.






I don't know whether those commands would achieve anything or not, so take this solution as a partial answer only.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes