To export a backup database of everything in VLC for Android, all we have to do is go to Settings > Advanced > Dump media database. It will export a vlc_media.db file which is in SQLite format. However, there isn’t a complementing feature which allow us to import the vlc_media.db file in the Android app. We will need root access or android debugger bridge to copy over the file to the folder /data/data/org.videolan.vlc/app_db. It is an advanced feature used mostly by developers. Hopefully, VLC will introduce a feature to import media dump vlc_media.db file for us commoners.
Backing Up vlc_media.db
For the detailed steps to backup playlists and everything else in the file vlc_media.db-
- Go to … More
- Tap on Settings ⚙
- Scroll to Extra settings and tap on Advanced
- Tap on Dump media database
A file vlc_media.db will be saved in the root folder of your Android device. Use a file manager app in your device or from the Play Store to go to the storage root to access this file.
Opening vlc_media.db file
The vlc_media.db file is not a text file that we can open with a simple text editor. It is an SQLite database export that requires a special viewer and editor to read and edit through the SQL databases. In your Android phone, install an app like SQLite Database Editor from the Play Store to edit and view it. On your pc, you would use something like SQLite Browser. It is an advanced task.
Restoring vlc_media.db file
We can’t simply import an edited or backed up vlc_media.db file using the VLC for Android app. We need root access or administrative privileges. It isn’t provided by default by OEMs. Rooting phones is a risky task and is not recommended for normal users. Simply edit the playlist in the app itself if that’s what you wanted to achieve.
If you already have a rooted phone, then copying the vlc_media.db file over to /data/data/org.videolan.vlc/app_db/vlc_media.db does the trick. If you had root access, then you could also copy over the file from the same location. Developers can also use adb to access the /data/data/ folder.
We hope that this tutorial has helped you to backup your playlist file in Android. But we know that restoring it requires special privileges. We are quite hopeful that we will get a feature in the future updates of the VLC for Android app.