Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keeping settings and data #90

Open
2 tasks done
ThomasWaldmann opened this issue Apr 24, 2016 · 8 comments
Open
2 tasks done

keeping settings and data #90

ThomasWaldmann opened this issue Apr 24, 2016 · 8 comments

Comments

@ThomasWaldmann
Copy link

I have:

Bug description

Upgrading from 3.9.1-dev to 3.12.0-dev (both websockets reborn branch, self-built apk file) looses data and registration, new key requires new verification, need new invitation to groups, etc.

Also, when manually installing the self-made apk, it results in both Signal versions being installed simultaneously - it is not acting like an upgrade, the newer replacing the older one.

Steps to reproduce

  • install 3.9.1-dev from apk
  • use it, have messages and group memberships
  • install 3.12.0-dev from apk

as that didn't work (2 signals installed in parallel), i also tried:

  • deinstall both signals (but not removing data and cache)
  • install 3.12.0-dev from apk

but it didn't help, new registration required, no access to old data.

Android version: Cyanogenmod 5.1.1

Signal version: 3.9.1 -> 3.12.0

@schachmat
Copy link

The application id changed between those two versions. You can reset the app id of 3.12 to the old one manually in build.gradle, recompile and it should update the 3.9.1 version instead of installing a parallel one.

@ThomasWaldmann
Copy link
Author

Will it also find the 3.9.1 data (i didn't delete cache or data on uninstall) even if i already have uninstalled 3.9.1? Or does it help if I first reinstall 3.9.1? Thanks for helping!

@schachmat
Copy link

it should find the data, but you can make a backup first to be on the safe side.

@ThomasWaldmann
Copy link
Author

I don't find it in build.gradle - do you have a search term?

@mimi89999
Copy link

It's in the LibreSignal/LibreSignal repo.

@schachmat
Copy link

This diff should cover it:

@@ -218,6 +218,7 @@ android {
         dev.initWith(buildTypes.debug)
         dev {
             buildConfigField "boolean", "DEV_BUILD", "true"
+            applicationIdSuffix ".dev"
             versionNameSuffix "-dev"
         }
         websockets.initWith(buildTypes.dev)

@ThomasWaldmann
Copy link
Author

ThomasWaldmann commented Apr 24, 2016

I did a new build with that diff applied, force-stopped and uninstalled previous build, installed new build, but it doesn't find old 3.9.1 data/settings. It lets me re-register and generates new keys.

@mimi89999
Copy link

LibreSignal#22
In your case the app id is org.thoughtcrime.securesms.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants