wallabag / wallabag/android-app

Can't move database to external storage

Open
#1,252 8 comments 4 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
587
Forks
276
PR merge metrics
No merged PRs in 30d

Description

# Issue details

### Duplicate?
Have you searched the issues of this repository if your issue is already known? **yes**

### Actual behaviour

I recently did a factory reset and reinstalled Wallabag. I wanted to change the database location to external, so I changed the setting without issue.. But no data was moved.

I thought that manually moving the folder solved the issue, but it still shows up in Android as stored on internal. Also, when deleting the external folder, all the articles are still present in the app, even after clearing cache in Android settings. In other words: with both fr.gaulupeau.apps.InThePoche folders empty, the data is still there.

This is confirmed when looking at the system settings. User data is still present, and in fact it increases when I change the database location setting a few times again in the app!! So I suspect there's a 3rd location I'm unaware of, where data is stored..?

### Expected behaviour

Folder with database should move to external storage.

# Steps to reproduce the issue
1. Install and configure Wallabag
2. Import data
3. Go to Miscellaneous settings and change database location to external
4. Observe that Android/data folder is still empty on SD card

# Environment details
- **wallabag app version**: 2.4.3 (229)
- **wallabag app installation source**: F-Droid
- **Android OS version**: 9
- **Android ROM**: stock
- **Android hardware**: Nokia 6
- **wallabag server version**: 2.4.3
- **Do you have Two-Factor-Authentication enabled?**: no

# Logs

Contents of the generated log file (also written to internal location, even though it mentions the external folder):

Show content

--------- beginning of system
04-04 15:11:40.702 7349 7349 D TextClassifierService: No configured system TextClassifierService
04-04 15:11:58.152 7349 7349 D TextClassifierService: No configured system TextClassifierService
04-04 15:12:01.094 7349 7349 D TextClassifierService: No configured system TextClassifierService

--------- beginning of main
04-04 15:35:33.778 7349 7349 D SettingsFragment: onStart() started
04-04 15:35:33.778 7349 7349 D SettingsFragment: resetChanges() started
04-04 15:35:45.975 7349 7349 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
04-04 15:35:47.737 7349 7349 I DecorView: It non-support bigbang
04-04 15:35:47.739 7349 7349 I PhoneWindow: isNeedChangeNaviBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@e4432ef] size: 1
04-04 15:35:47.739 7349 7349 I PhoneWindow: isAPPNeedChange pkgName: fr.gaulupeau.apps.InThePoche needKeep: false
04-04 15:35:47.739 7349 7349 I PhoneWindow: isNeedChangeNaviBarColor false
04-04 15:35:47.739 7349 7349 I PhoneWindow: generateLayout mNavigationBarColor: ff000000
04-04 15:35:47.739 7349 7349 I PhoneWindow: generateLayout isLightNavi false, Visibility: 0
04-04 15:36:19.048 7349 7349 D SettingsFragment: onStop() started
04-04 15:36:19.049 7349 7349 D SettingsFragment: applyChanges() started
04-04 15:37:15.969 7349 7349 D SettingsFragment: onStart() started
04-04 15:37:15.969 7349 7349 D SettingsFragment: resetChanges() started
04-04 15:37:17.781 7349 7349 D SettingsFragment: onStop() started
04-04 15:37:17.781 7349 7349 D SettingsFragment: applyChanges() started
04-04 15:37:46.900 7349 7349 D SettingsFragment: onStart() started
04-04 15:37:46.901 7349 7349 D SettingsFragment: resetChanges() started
04-04 15:37:48.659 7349 7349 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
04-04 15:37:50.420 7349 7349 D OperationsHelper: syncAndUpdate() started
04-04 15:37:50.421 7349 7349 D OperationsHelper: updateArticles() started
04-04 15:37:50.444 7349 7349 D MainService: onCreate()
04-04 15:37:50.445 7349 7349 D MainService: onStartCommand()
04-04 15:37:50.446 7349 7349 D MainService: enqueueTask()
04-04 15:37:50.446 7349 7349 V MainService: enqueueTask() enqueueing task
04-04 15:37:50.446 7349 9748 V MainService: run() running a task
04-04 15:37:50.447 7349 9748 D EventProcessor: onUpdateArticlesStartedEvent() started
04-04 15:37:50.453 7349 9748 D ArticleUpdateWorker: updateArticles(FAST) started
04-04 15:37:50.454 7349 9748 D DbConnection: creating new db session
04-04 15:37:50.480 7349 7349 D MainActivity: onUpdateArticlesStartedEvent()
04-04 15:37:50.627 7349 9748 I ArticleUpdater: update() started; clean: false
04-04 15:37:50.627 7349 9748 V ArticleUpdater: update() latestUpdatedItemTimestamp: 1649055286000
04-04 15:37:50.627 7349 9748 D ArticleUpdater: update() updating articles
04-04 15:37:50.627 7349 9748 D ArticleUpdater: performUpdate(full: false, latestUpdatedItemTimestamp: 1649055286000) started
04-04 15:37:50.627 7349 9748 D ArticleUpdater: performUpdate() starting to iterate though pages
04-04 15:37:50.982 7349 7349 D SettingsFragment: onStop() started
04-04 15:37:50.982 7349 7349 D SettingsFragment: applyChanges() started
04-04 15:37:52.481 7349 7349 D CachingPagerAdapter: instantiateItem() position: 0
04-04 15:37:52.488 7349 7349 V ArticleListsFragment: onPageSelected() position: 0
04-04 15:37:52.488 7349 7349 V ArticleListsFragment: setParametersToFragment() started
04-04 15:37:52.494 7349 7349 D MainActivity: onCreateOptionsMenu()
04-04 15:37:52.505 7349 7349 V ArticleListFragment: Fragment 1 onCreateOptionsMenu()
04-04 15:37:52.672 7349 9748 D ArticleUpdater: performUpdate() page: 1/1, total articles: 0
04-04 15:37:52.672 7349 9748 D EventProcessor: onUpdateArticlesProgressEvent() started
04-04 15:37:52.672 7349 9748 D ArticleUpdater: performUpdate() no items; skipping
04-04 15:37:52.672 7349 9748 D ArticleUpdater: update() articles updated
04-04 15:37:52.672 7349 9748 V ArticleUpdater: update() latestUpdatedItemTimestamp: 1649055286000
04-04 15:37:52.673 7349 7349 D MainActivity: onUpdateArticlesProgressEvent()
04-04 15:37:52.673 7349 9748 I ArticleUpdateWorker: updateArticles() update successful, saving timestamps
04-04 15:37:52.673 7349 9748 I ArticleUpdater: update() finished
04-04 15:37:52.673 7349 9748 D ArticleUpdateWorker: updateArticles() finished
04-04 15:37:52.673 7349 9748 D EventProcessor: onUpdateArticlesFinishedEvent() started
04-04 15:37:52.674 7349 9748 D EventProcessor: onActionResultEvent() started
04-04 15:37:52.674 7349 9748 D EventProcessor: onActionResultEvent() action: UPDATE_ARTICLES
04-04 15:37:52.674 7349 9748 D EventProcessor: onActionResultEvent() result is success: true
04-04 15:37:52.674 7349 9748 V MainService: run() finished a task
04-04 15:37:52.674 7349 9748 D MainService: run() no more tasks; notifying that we are ready to stop
04-04 15:37:52.674 7349 9748 D MainService: readyToStop()
04-04 15:37:52.679 7349 7349 D MainActivity: onUpdateArticlesFinishedEvent
04-04 15:37:52.679 7349 7349 D MainActivity: updateLastUpdateTime() updating time
04-04 15:37:52.680 7349 7349 D MainService: onDestroy()
04-04 15:37:52.681 7349 9748 D MainService: run() poll interrupted
04-04 15:37:53.849 7349 7349 D RecyclerVLFragment: loadMore(page: 1, totalItemsCount: 30)
04-04 15:37:56.153 7349 7349 D MainActivity: DrawerListener.updateTime() updating time
04-04 15:37:56.154 7349 7349 D MainActivity: updateLastUpdateTime() updating time
04-04 15:37:58.331 7349 7349 W AboutLibraries: Have you missed to call withFields(R.string.class.getFields())? - autoDetect won't work - https://github.com/mikepenz/AboutLibraries/wiki/HOWTO:-Fragment
04-04 15:37:58.402 7349 7349 D MainActivity: DrawerListener.updateTime() updating time
04-04 15:37:58.402 7349 7349 D MainActivity: updateLastUpdateTime() updating time
04-04 15:37:58.405 7349 7349 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@41b28ea
04-04 15:37:58.421 7349 7349 I DecorView: It non-support bigbang
04-04 15:37:58.422 7349 7349 I PhoneWindow: isNeedChangeNaviBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@38635af] size: 1
04-04 15:37:58.423 7349 7349 I PhoneWindow: isAPPNeedChange pkgName: fr.gaulupeau.apps.InThePoche needKeep: false
04-04 15:37:58.423 7349 7349 I PhoneWindow: isNeedChangeNaviBarColor false
04-04 15:37:58.423 7349 7349 I PhoneWindow: generateLayout mNavigationBarColor: ff000000
04-04 15:37:58.423 7349 7349 I PhoneWindow: generateLayout isLightNavi false, Visibility: 0
04-04 15:37:58.834 7349 7359 I apps.InThePoch: Background concurrent copying GC freed 28290(1716KB) AllocSpace objects, 50(1484KB) LOS objects, 57% free, 9MB/21MB, paused 195us total 148.137ms
04-04 15:37:59.000 7349 7349 V ArticleListsFragment: onSaveInstanceState()
04-04 15:37:59.001 7349 7349 V RecyclerVLFragment: onSaveInstanceState()
04-04 15:37:59.001 7349 7349 I chatty : uid=10171(fr.gaulupeau.apps.InThePoche) identical 2 lines
04-04 15:37:59.002 7349 7349 V RecyclerVLFragment: onSaveInstanceState()
04-04 15:37:59.003 7349 7349 V MainActivity: onSaveInstanceState()
04-04 15:37:59.466 7349 7359 I apps.InThePoch: Background concurrent copying GC freed 50163(6MB) AllocSpace objects, 290(5MB) LOS objects, 52% free, 11MB/23MB, paused 186us total 135.527ms
04-04 15:38:00.157 7349 7359 I apps.InThePoch: Background concurrent copying GC freed 68746(10MB) AllocSpace objects, 275(5MB) LOS objects, 62% free, 7MB/19MB, paused 339us total 147.027ms
04-04 15:39:03.500 7349 7349 V ArticleListsFragment: onSaveInstanceState()
04-04 15:39:03.500 7349 7349 V RecyclerVLFragment: onSaveInstanceState()
04-04 15:39:03.500 7349 7349 V RecyclerVLFragment: onSaveInstanceState()
04-04 15:39:03.501 7349 7349 V MainActivity: onSaveInstanceState()
04-04 15:50:50.756 7349 7349 D OperationsHelper: syncAndUpdate() started
04-04 15:50:50.757 7349 7349 D OperationsHelper: updateArticles() started
04-04 15:50:50.783 7349 7349 D MainService: onCreate()
04-04 15:50:50.784 7349 7349 D MainService: onStartCommand()
04-04 15:50:50.785 7349 7349 D MainService: enqueueTask()
04-04 15:50:50.785 7349 7349 V MainService: enqueueTask() enqueueing task
04-04 15:50:50.786 7349 10490 V MainService: run() running a task
04-04 15:50:50.787 7349 10490 D EventProcessor: onUpdateArticlesStartedEvent() started
04-04 15:50:50.792 7349 10490 D ArticleUpdateWorker: updateArticles(FAST) started
04-04 15:50:50.794 7349 10490 D DbConnection: using existing db session
04-04 15:50:50.794 7349 10490 I ArticleUpdater: update() started; clean: false
04-04 15:50:50.795 7349 10490 V ArticleUpdater: update() latestUpdatedItemTimestamp: 1649055286000
04-04 15:50:50.795 7349 10490 D ArticleUpdater: update() updating articles
04-04 15:50:50.795 7349 10490 D ArticleUpdater: performUpdate(full: false, latestUpdatedItemTimestamp: 1649055286000) started
04-04 15:50:50.795 7349 10490 D ArticleUpdater: performUpdate() starting to iterate though pages
04-04 15:50:50.826 7349 7349 D MainActivity: onUpdateArticlesStartedEvent()
04-04 15:50:53.303 7349 10490 D ArticleUpdater: performUpdate() page: 1/1, total articles: 0
04-04 15:50:53.304 7349 10490 D EventProcessor: onUpdateArticlesProgressEvent() started
04-04 15:50:53.304 7349 10490 D ArticleUpdater: performUpdate() no items; skipping
04-04 15:50:53.304 7349 10490 D ArticleUpdater: update() articles updated
04-04 15:50:53.304 7349 7349 D MainActivity: onUpdateArticlesProgressEvent()
04-04 15:50:53.304 7349 10490 V ArticleUpdater: update() latestUpdatedItemTimestamp: 1649055286000
04-04 15:50:53.305 7349 10490 I ArticleUpdateWorker: updateArticles() update successful, saving timestamps
04-04 15:50:53.305 7349 10490 I ArticleUpdater: update() finished
04-04 15:50:53.305 7349 10490 D ArticleUpdateWorker: updateArticles() finished
04-04 15:50:53.306 7349 10490 D EventProcessor: onUpdateArticlesFinishedEvent() started
04-04 15:50:53.307 7349 10490 D EventProcessor: onActionResultEvent() started
04-04 15:50:53.307 7349 10490 D EventProcessor: onActionResultEvent() action: UPDATE_ARTICLES
04-04 15:50:53.307 7349 10490 D EventProcessor: onActionResultEvent() result is success: true
04-04 15:50:53.307 7349 10490 V MainService: run() finished a task
04-04 15:50:53.307 7349 10490 D MainService: run() no more tasks; notifying that we are ready to stop
04-04 15:50:53.307 7349 10490 D MainService: readyToStop()
04-04 15:50:53.323 7349 7349 D MainActivity: onUpdateArticlesFinishedEvent
04-04 15:50:53.323 7349 7349 D MainActivity: updateLastUpdateTime() updating time
04-04 15:50:53.324 7349 7349 D MainService: onDestroy()
04-04 15:50:53.326 7349 10490 D MainService: run() poll interrupted
04-04 15:50:54.357 7349 7349 D MainActivity: DrawerListener.updateTime() updating time
04-04 15:50:54.357 7349 7349 D MainActivity: updateLastUpdateTime() updating time
04-04 15:50:56.107 7349 7349 V ArticleListsFragment: onSaveInstanceState()
04-04 15:50:56.107 7349 7349 V RecyclerVLFragment: onSaveInstanceState()
04-04 15:50:56.107 7349 7349 I chatty : uid=10171(fr.gaulupeau.apps.InThePoche) identical 1 line
04-04 15:50:56.107 7349 7349 V RecyclerVLFragment: onSaveInstanceState()
04-04 15:50:56.108 7349 7349 V MainActivity: onSaveInstanceState()
04-04 15:51:16.861 7349 7349 D MainActivity: DrawerListener.updateTime() updating time
04-04 15:51:16.861 7349 7349 D MainActivity: updateLastUpdateTime() updating time
04-04 15:51:16.864 7349 7349 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@a34acd4
04-04 15:51:16.884 7349 7349 I DecorView: It non-support bigbang
04-04 15:51:16.885 7349 7349 I PhoneWindow: isNeedChangeNaviBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@e0b4ab1] size: 1
04-04 15:51:16.885 7349 7349 I PhoneWindow: isAPPNeedChange pkgName: fr.gaulupeau.apps.InThePoche needKeep: false
04-04 15:51:16.885 7349 7349 I PhoneWindow: isNeedChangeNaviBarColor false
04-04 15:51:16.885 7349 7349 I PhoneWindow: generateLayout mNavigationBarColor: ff000000
04-04 15:51:16.885 7349 7349 I PhoneWindow: generateLayout isLightNavi false, Visibility: 0
04-04 15:51:16.928 7349 7349 D SettingsFragment: onStart() started
04-04 15:51:16.928 7349 7349 D SettingsFragment: resetChanges() started
04-04 15:51:17.471 7349 7349 V ArticleListsFragment: onSaveInstanceState()
04-04 15:51:17.472 7349 7349 V RecyclerVLFragment: onSaveInstanceState()
04-04 15:51:17.472 7349 7349 I chatty : uid=10171(fr.gaulupeau.apps.InThePoche) identical 1 line
04-04 15:51:17.472 7349 7349 V RecyclerVLFragment: onSaveInstanceState()
04-04 15:51:17.473 7349 7349 V MainActivity: onSaveInstanceState()
04-04 15:51:18.001 7349 7349 I DecorView: It non-support bigbang
04-04 15:51:18.003 7349 7349 I PhoneWindow: isNeedChangeNaviBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@530ed13] size: 1
04-04 15:51:18.003 7349 7349 I PhoneWindow: isAPPNeedChange pkgName: fr.gaulupeau.apps.InThePoche needKeep: false
04-04 15:51:18.003 7349 7349 I PhoneWindow: isNeedChangeNaviBarColor false
04-04 15:51:18.003 7349 7349 I PhoneWindow: generateLayout mNavigationBarColor: ff000000
04-04 15:51:18.003 7349 7349 I PhoneWindow: generateLayout isLightNavi false, Visibility: 0

# Your experience with wallabag Android app

>Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders

I totally get that! I've been using Wallabag for years now and although it's not perfect, I would never even consider going back to something proprietary. Wallabag is one of the (if not _the_) most used apps on my phone, and it feels great to be able to carry my favorite articles around in my own, private pouch :) So thanks for all your efforts and I hope Wallabag will be around for a long time to come!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.