[Question]Signal private messenger and Alien Dalvik
Hello and thank you for your support beforehand. I have scratched my head couple of days to trying to get Signal private messenger work with Jolla. My gf uses Jolla phone and I am using Android phone. I did factory reset to Jolla phone and installed google play services. Google Play version of Signal messenger works sort of. It can do encrypted messages and voice calls, but it suffers from connection errors a lot. The problem is that I can't call/send messages with Android to Jolla but otherway it works perfect.
When I was using my other two Jolla phones I did not need Android support so
Alien Dalvik is somewhat new to me. What I discovered so far it seems that:
1. When last android app is closed Alien Dalvik does "cache wiping"
and closes chroot and shutdown. When I do ps -A | grep crime.securesms
I do get Signal process number but if I close the Signal app window in a couple of seconds
journalctl -f
shows that kernel sends killing signal to that process.
I do have background services allowed in Signal app.
If I reboot Jolla phone and do
ps -A | grep crime.securesms
the process is started when phone starts. If I do my call now (from Android) it works. BUT, if I open Signal app window in Jolla and do some blaablaa then leave the window open or close it, process is first <defunct> and then it is get killed.</defunct>If I try call from Android and when it does not work, it seems that when I open some android app in Jolla Phone (it really does not matter what app) I get notification shows "Missed Signal Call".
Also if couple of android apps (whatsapp,fb etc. is open) it defects the Signal app that I can't get my call/sms through. (I think it is the way how OOM killer is working but not sure). The crime.securesms process is still shown as active.
In Jolla phone in deep sleep messages/calls are not working also.
Only way to get this working right now seems that when problem appears my gf restarts dalvik and do force shutdown to the Signal app and wipe cache. Then starts it again.
The weird thing is that EVERY time my gf is calling me from Jolla to Android it works but not otherway.
So my question is that is there some workaround to this? 1. Can I modify Dalvik that it not get shutdown, when last android app is closed? 2. Can I do something to Jolla powersave mode that Dalvik detects the push notification and "wakes up"? 3. And last this might be bug in how the Signal app works but I thought it would be easier to hack with Jolla scripts that stab the Signal app source code ;)
Does anyone suffered this same behaviour? Does the Jolla store version work differently? I would be very pleased to hear! Thanks Kmeex
Maybe this is the dead end and I am ending up to talk myself ;) I might be wrong but it seems that when Alien Dalvik is started process named dexopt is responsible to start all android apps that have background services enabled. I can see com.whatsapp / crime.securesms / facebook.katana services starting. That is the point when I am able to make call from Android to Jolla phone. I discovered that as long as I don't open Signal app UI and then close it, or Jolla does not go into deep sleep I am able to make calls and text messages through. When I ran
ps -A |grep
stuff I noticed that if I close Signal UI that would kill whatsapp and facebook processes (also background services) too (even they are running in "app grid"). But if I close either facebook or whatsapp applications (Signal UI not active) that would not kill any background services.That makes my wonder what is the difference between closing Signal UI (that kills everybody;P) and closing Whatsapp UI for example? Why Alien Dalvik thinks that Signal is the last android app running and then closes down even when there are many background services running? I started to think that it is not necessarily an Alien Dalvik's fault rather than bug how Signal sends the exit message when user closes the UI. I am no Dalvik genius so if any of you have good thoughts how things work please point me to the right direction!
Thanks Kmeex
kmeex ( 2016-01-13 21:23:41 +0200 )edit