materialistic icon indicating copy to clipboard operation
materialistic copied to clipboard

Export Saved Story Doesn't Work on Android 10 App Version 3.3

Open wellitecho opened this issue 3 years ago • 1 comments

First of all, I'd like to say that this app is a joy to use. Thank you for your hard work on this. So the thing is, I would like to export my saved stories so that I can migrate it as needed. But the export function seems to be not working. There is no notification, no sign of failure or success. I tried the workaround(search for something like '%' and then export) mentioned in another thread, no luck. Also, no file like 'materialistic-export.txt' was found anywhere. I read through the issues pertaining to export function, but no workaround seemed to work for me.

So my question is:

  1. is this export function broken?
  2. if it's working, where can I find the exported file?

Thanks in advance.

wellitecho avatar May 19 '21 11:05 wellitecho

Hey, I also had the same troubles with no luck with the workaround. Eventually I was able to export all saved links by exporting the database with the Android Developer Tools ADB. These were my steps (Ubuntu)

  1. Install ADB sudo apt-get install android-tools-adb
  2. Make sure USB Debugging is enabled on your phone and allow your pc (USB Connection Required)
  3. Check for all installed packages on your phone adb shell pm list packages -f -3 For me and probably for you, the name is io.github.hidroh.materialistic.
  4. Backup the application data to your pc: adb backup -apk io.github.hidroh.materialistic -f hn.adb
  5. Extract the backup data: Probably you haven't installed the zlib-flate binary so first: apt install qpdf Then extract the data in: dd if=freeotp.adb bs=24 skip=1 | zlib-flate -uncompress | tar xf -
  6. Now in your directory, there is a folder apps. You can find the database in apps/io.github.hidroh.materialistic/db/Materialistic.db. You can open this database with every SQLite viewer and get your saved stories from the table saved.

The commands are sourced from: https://gist.github.com/AnatomicJC/e773dd55ae60ab0b2d6dd2351eb977c1

ErikBird avatar Aug 04 '22 11:08 ErikBird