johanw666 / Signal-Android

Fork from a private messenger for Android with extra options added: full backup and (partial, ony text) xml backup of messages. Restore can happen at any time, not only after a fresh install. Import SMS database. Import of (unencrypted) WhatsApp databases. Removed apk expire. Choose between passphrase protection and the Android screenlock. Choice for the backup location (internal or removable storage on Android < 11 (on 11 and higher this is already possible)). Set the maptype in the place picker. Option to treat view-once media as normal media. Option to ignore remote deletion. Choose between FCM or websocket notification delivery.
https://johanw.home.xs4all.nl/Signal/signal-jw.html
GNU Affero General Public License v3.0
250 stars 16 forks source link

Unable to install on Samsung Galaxy S7 #4

Closed km22 closed 4 years ago

km22 commented 4 years ago

Bug description

Whenever I try to install the johanw666/Signal-Android on my Samsung S7 the installation fails

Steps to reproduce

Actual result: Installation fails Expected result: Expect the installation to complete and to utilize existing database/data

Screenshots

Device info

Device: Samsung S7 SM-G930FD Android version: 8.0.0 Signal version: 4.49.18

Link to debug log

johanw666 commented 4 years ago

That is to be expected. My version is signed with a different signing key that the official version (as I obviously do not have access to the OWS signing key), and standard Android checks if the signature of a new version matches the signature of an already installed version. If they don't match installation is aborted.

There are 2 solutions:

  1. Make a backup, uninstall, install my version and restore the backup.
  2. Root your device (if you didn't do it already) and install software that can disable this signature checking machanism. On Android 8 I believe that the Xposed module XInstaller doesn't work any more, but Lucky Patcher has an option to disable that: Toolbox - Patch to Android - Disable signature verification in the package manager.

Since rooting often leads to a factory reset, making a backup if you try to root is highly recommended.

km22 commented 4 years ago

Thanks. And which of the 2 apk's should I use on my device? (What is the difference?)

johanw666 commented 4 years ago

The difference is the processor architecture that is supported: the armv7a has only an arm 32 bit libraries and will work on most devices (except the rare x86 based ones), the universal apk has support for arm and x86 32 and 64 bit and might work faster on 64 bit architectures but is therefore larger. For your device both versions will work, but since I can't quickly find if you have 64 bit support I don't know if you might gain anything by using the universal apk.

km22 commented 4 years ago

Works great! Thank you