TextSecure icon indicating copy to clipboard operation
TextSecure copied to clipboard

keeping settings and data

Open ThomasWaldmann opened this issue 8 years ago • 8 comments

I have:

  • [X] searched open and closed issues for duplicates
  • [X] read https://github.com/WhisperSystems/Signal-Android/wiki/Submitting-useful-bug-reports

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

ThomasWaldmann avatar Apr 24 '16 19:04 ThomasWaldmann

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.

schachmat avatar Apr 24 '16 19:04 schachmat

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!

ThomasWaldmann avatar Apr 24 '16 20:04 ThomasWaldmann

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

schachmat avatar Apr 24 '16 20:04 schachmat

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

ThomasWaldmann avatar Apr 24 '16 20:04 ThomasWaldmann

It's in the LibreSignal/LibreSignal repo.

mimi89999 avatar Apr 24 '16 20:04 mimi89999

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)

schachmat avatar Apr 24 '16 20:04 schachmat

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.

ThomasWaldmann avatar Apr 24 '16 20:04 ThomasWaldmann

https://github.com/LibreSignal/LibreSignal/issues/22 In your case the app id is org.thoughtcrime.securesms.dev

mimi89999 avatar Apr 25 '16 05:04 mimi89999