Uninstalling the app deletes the bookmarks too #3504

Closed
opened 2022-09-29 11:51:26 +00:00 by zocker-160 · 4 comments
zocker-160 commented 2022-09-29 11:51:26 +00:00 (Migrated from github.com)

I am not sure if the current behavior is by design or a bug, but I just found out the hard way, that uninstalling the app does completely wipe all bookmarks forever.

IMO it would make more sense to store those into a location that persists and survives uninstalling / reinstalling like it is the case for many other applications which contain user data.

I am not sure if the current behavior is by design or a bug, but I just found out the hard way, that uninstalling the app does completely wipe all bookmarks forever. IMO it would make more sense to store those into a location that persists and survives uninstalling / reinstalling like it is the case for many other applications which contain user data.
biodranik commented 2022-09-29 19:26:34 +00:00 (Migrated from github.com)
  1. This is indeed a problem, without an easy solution for different reasons.
  2. If you had backups enabled, then bookmarks should be stored there. It's a big question on how to properly extract them from a backup though (please share if you find a way to do it).
  3. Storing bookmarks somewhere means that there are some servers, and there is some authentication mechanism for that. When you referred to "many other applications which contain user data", did you have in mind some apps without a login, like OM?
  4. We plan to implement it somehow :) See #622
1. This is indeed a problem, without an easy solution for different reasons. 2. If you had backups enabled, then bookmarks should be stored there. It's a big question on how to properly extract them from a backup though (please share if you find a way to do it). 3. Storing bookmarks _somewhere_ means that there are some servers, and there is some authentication mechanism for that. When you referred to "many other applications which contain user data", did you have in mind some apps _without_ a login, like OM? 4. We plan to implement it somehow :) See #622
Outlet2048 commented 2022-09-29 20:27:28 +00:00 (Migrated from github.com)

I think "storing them somewhere" means on device
Some apps store data on the device that survives being uninstalled
Not sure if this only applies to older Android versions or newer ones as well. Haven't seen in it in a while

Sometimes Android asked you whether you also want to delete an apps data upon uninstalling. Perhaps there is a way to backup bookmarks to storage that persists reinstalling

I think "storing them somewhere" means on device Some apps store data on the device that survives being uninstalled Not sure if this only applies to older Android versions or newer ones as well. Haven't seen in it in a while Sometimes Android asked you whether you also want to delete an apps data upon uninstalling. Perhaps there is a way to backup bookmarks to storage that persists reinstalling
zocker-160 commented 2022-09-29 20:34:25 +00:00 (Migrated from github.com)

If you had backups enabled, then bookmarks should be stored there. It's a big question on how to properly extract them from a backup though (please share if you find a way to do it).

I am sadly not quite sure what you mean, is there a backup function in the app?

I know I can export / import bookmarks as .kmz files and that works pretty well, but this is a manual process and it does not store any settings (which sadly also get lost when uninstalling although not that big of a deal).

Storing bookmarks somewhere means that there are some servers, and there is some authentication mechanism for that. When you referred to "many other applications which contain user data", did you have in mind some apps without a login, like OM?

Yes I know multiple apps without login or any kind of server, they store the settings / user data under /storage/emulated/0/<appname>/settings or something similar. (Antenna Pod is one that comes to my mind.)

That folder stays there when the app is uninstalled.

I do not know if there is a way to tell the OS that specific files are user data and should not be removed.

OT: I actually think that storing the maps there would be beneficial too, since I would not need root access to be able move maps from one device to another (since they seem to be stored under /data/data/app.organicmaps/files/<date>/*.mwn which I can only access via root)

> If you had backups enabled, then bookmarks should be stored there. It's a big question on how to properly extract them from a backup though (please share if you find a way to do it). I am sadly not quite sure what you mean, is there a backup function in the app? I know I can export / import bookmarks as .kmz files and that works pretty well, but this is a manual process and it does not store any settings (which sadly also get lost when uninstalling although not that big of a deal). > Storing bookmarks somewhere means that there are some servers, and there is some authentication mechanism for that. When you referred to "many other applications which contain user data", did you have in mind some apps without a login, like OM? Yes I know multiple apps without login or any kind of server, they store the settings / user data under `/storage/emulated/0/<appname>/settings` or something similar. (Antenna Pod is one that comes to my mind.) That folder stays there when the app is uninstalled. I do not know if there is a way to tell the OS that specific files are user data and should not be removed. OT: I actually think that storing the maps there would be beneficial too, since I would not need root access to be able move maps from one device to another (since they seem to be stored under `/data/data/app.organicmaps/files/<date>/*.mwn` which I can only access via root)
biodranik commented 2022-09-29 22:15:31 +00:00 (Migrated from github.com)

Unfortunately, starting from Android 11, these paths are not available anymore. https://developer.android.com/about/versions/11/privacy/storage

That is the main reason why we can't store data in publicly accessed folders.

Unfortunately, starting from Android 11, these paths are not available anymore. https://developer.android.com/about/versions/11/privacy/storage That is the main reason why we can't store data in publicly accessed folders.
This repo is archived. You cannot comment on issues.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#3504
No description provided.