JavaJens / TextSecure

A secure text messaging application for Android.
GNU General Public License v3.0
72 stars 9 forks source link

keeping settings and data #90

Open ThomasWaldmann opened 8 years ago

ThomasWaldmann commented 8 years ago

I have:

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

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

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

ThomasWaldmann commented 8 years ago

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

mimi89999 commented 8 years ago

It's in the LibreSignal/LibreSignal repo.

schachmat commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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