From 81bb9694407332d29c98b5b70598e6322f4d0b5c Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Thu, 19 Jan 2017 18:14:01 +0100 Subject: [PATCH] Aggiornato script noise2cable.sh --- noise2cable.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/noise2cable.sh b/noise2cable.sh index 63368c6..10eaa0c 100755 --- a/noise2cable.sh +++ b/noise2cable.sh @@ -22,6 +22,8 @@ s/Noise$/Cable/g' {} + sed -i 's|https://textsecure-service\.whispersystems\.org|https://139\.162\.192\.233:8080|' build.gradle +sed -i 's/Your (Signal|TextSecure) verification code:/Your (Cable) verification code:/' src/org/thoughtcrime/securesms/service/SmsListener.java + ### The following are needed to install Cable in parallel with Signal or Noise: @@ -37,3 +39,32 @@ sed -i 's/org\.thoughtcrime\.securesms\.ACCESS_SECRETS/im.cable.cableim.ACCESS_S # Probably deprecated and not used, could be removed altogether sed -i 's/org\.thoughtcrime\.securesms\.permission\.C2D_MESSAGE/im.cable.cableim.permission.C2D_MESSAGE/' \ AndroidManifest.xml + + +### The Signal and Cable address books should be independent: + +sed -i 's/vnd\.org\.thoughtcrime\.securesms\.contact/vnd.im.cable.cableim.contact/' \ + AndroidManifest.xml \ + res/xml/contactsformat.xml \ + src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java + +sed -i 's/vnd\.org\.thoughtcrime\.securesms\.call/vnd.im.cable.cableim.call/' \ + AndroidManifest.xml \ + res/xml/contactsformat.xml \ + src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java + +sed -i 's/"org\.thoughtcrime\.securesms"/"im.cable.cableim"/' \ + src/org/thoughtcrime/securesms/util/DirectoryHelper.java \ + res/xml/authenticator.xml \ + res/xml/syncadapter.xml + + +### Change the giphy api key. + +# Let's use the public beta key for now +# See: https://github.com/Giphy/GiphyAPI + +sed -i 's/3o6ZsYH6U6Eri53TXy/dc6zaTOxFJmzC/' \ + src/org/thoughtcrime/securesms/giph/net/GiphyGifLoader.java \ + src/org/thoughtcrime/securesms/giph/net/GiphyStickerLoader.java +