Linal (Native Signal Client)

I have made a native signal client for the L5, you can find it here: GitHub - Andy53/Linal: Signal for the Librem 5 (unofficial) · GitHub

Things that work:

  • One-to-one and group chats, with photos and files
  • Replies, reactions, delete for everyone, read receipts and typing indicators
  • One-to-one voice calls, with earpiece, speaker and mute
  • Start chats from the phone’s contacts
  • Notifications and incoming calls while the app is closed
  • Registration lock PIN

At the moment the main issue is that I can not get the captcha to work when done through the L5. You have to do the captcha on another device (such as a laptop). You can use your L5 number and you don’t need another mobile device, this isn’t a ported version of the desktop client.

The issue (as far as I can tell) is that the hCaptcha score is to low when done through the L5, the whole registration process works as intended (without needing a laptop) when using Signals staging endpoint. What this means is you essentially use a laptop once to get the captcha completed and then just use the app like a native signal client. You do not need to go through Waydroid or anything like that.

Large portions of the code in this app were generated by AI.

Are you worried about Signal taking you down for TOS violations, since obviously your client is a TOS violation? I assume now that you’re advertising your app they’ll see it and consider planning accordingly to kill it, although maybe the captcha is enough.

Also, knowing the others in the past basically didn’t work by the time I tried to adopt them because these Signal TOS violation projects are always an arms race against Signal trying to fight you, not a one time creative work… what’s your level of commitment to future updates?

I think the way it went for Flare was that the primary dev of the project was able to keep themselves on it but Signal updated to where they would ban you from all of Signal servers for 7 days if you tried to switch to Flare from a normal Signal account. That way the dev doesn’t really see why because their own account works but you get low adoption of Flare by new people, since they’re scared of losing access to friends & family for the sake of an idea like L5.

How will you avoid that situation?

Out of curiosity: why did you decide to make a new client next to Flare? What are the differences, like in functionality or objectives?

I mean a huge part is that Flare is written in Rust and using a whole reimplementation of the Signal protocol written in Rust that has caused issues in terms of compatibility with the official implementation in the past.

Linal just seems to wrap the signal-cli application inside a graphical user interface written in Python. The CLI builds on top of a patched version from the official libsignal, extracted from the Android source code of the official application. So that should have less compatibility issues in general, I assume (depends a bit on changes necessary from Android to Java in this case).

I would argue that both clients are not ideal since in an ideal world we could have the official Signal desktop application support arm64 with the feature to act as main device build-in. But since we don’t get that, the differences are mainly in performance and reliability.

So regarding the TOS violation (I am not a lawyer) I am hopeful that since this is simply a wrapper around the signal-cli which has been around for a lot longer, is a lot more well known and hasn’t been taken down this will be fine as long as the signal-cli is fine.

For how long I will support this, I will keep it updated as long as the signal-cli is supported and I have no legal troubles.

I also agree a official app would be ideal but it’s also unlikely Signal will make one anytime soon considering the number of people that use L5s.

I mean technically porting the Signal desktop app for Linux to aarch64 would help a lot others too. We definitely had people in the past adjusting the flatpak to make it work with some minor issues, depending on the display protocol. But it was usable for the most part as second client.

In general supporting the architecture would benefit people with arm64 laptops or desktops too and a few other Linux phones that exist, I assume. If I would need to guess, I’d say Signal is not really trying to get people away from Android or iOS… maybe they think running through waydroid or similar is good enough? idk

Hi, main maintainer of Flare here. Nice to see some competition in the space, especially with regards to voice calls.

Unfortunately, there is lots of wrong information in this thread.

Are you worried about Signal taking you down for TOS violations, since obviously your client is a TOS violation? I assume now that you’re advertising your app they’ll see it and consider planning accordingly to kill it, although maybe the captcha is enough.

Signal hasn’t been going after unofficial clients for years at this point. I have been talking to Whisperfish developers for developing Flare for a few years now, and they have never received an angry E-Mail from Signal. And Whisperfish is now almost a decade old, although it changed primary maintainers to the persons I talked to in 2019. So there has been no TOS E-Mail from Signal for unofficial clients since at least 7 years, at least none that I know of.

To my knowledge, the current stance of Signal with regards to third-party clients is that they ignore them and pretend that they don’t exist.

I think the way it went for Flare was that the primary dev of the project was able to keep themselves on it but Signal updated to where they would ban you from all of Signal servers for 7 days if you tried to switch to Flare from a normal Signal account.

No idea where you got that from. I was never banned from Signal servers, and have never heared of anybody being banned for using Flare (or any other libsignal-service-rs based clients like Whisperfish or gurk-rs). And given there are ~600 people per month downloading Flare from Flathub, I would certainly have heared it if people are being banned from Signal. If you had such an experience, please report such things.

I mean a huge part is that Flare is written in Rust and using a whole reimplementation of the Signal protocol written in Rust that has caused issues in terms of compatibility with the official implementation in the past.

That one is complicated. Let’s compare the stacks of Flare and Linal as far as I can see:

  • Flare:
    • flare-backend: My own library.
    • presage: Co-maintained mostly by gurk-rs and Flare developers, sometimes also Whisperfish developers)
    • libsignal-service-rs: Co-maintained mostly by Whisperfish developers, sometimes also by Flare and gurk-rs developers.
    • libsignal: Official Signal library.
  • Linal:
    • signal-cli: Not sure who maintains it, probably mostly people that directly use signal-cli.
    • libsignal-service-java fork: According to the README of signal-cli; 7 years ago officially maintained by Signal, now an unofficial fork.
    • (libsignal: Their wiki also links to aforementioned libsignal, so maybe they also use that; not sure though.)

So best-case for Linal we depend on the same libsignal, except for a different stack between it. Worst-case for Linal, it depends on an unofficial community fork of a library that has been deprecated 7 years ago from Signal. I cannot tell which of the two (or some middle ground) is true, as I don’t know signal-cli too well. But Flare is in that point always at least as good as Linal.

So that should have less compatibility issues in general, I assume (depends a bit on changes necessary from Android to Java in this case).

That seems unlikely to me. From the history of big breakages I have experienced with Flare, most have also happened with signal-cli (and I think I also had cases where signal-cli caused an issue but Flare did not).

In my opinion, as long as Signal doesn’t provide easy-to-use some library (on the level of flare-backend, not libsignal) for most of the stack, there will always be breakages, except soft-forking official applications like Molly. The current stance of Signal that they ignore the existence of third-party clients doesn’t help here. There has been some movement on official higher-level libraries like libsignal-net, but it’ll still be a while until we can use that (currently it leads to conflicts regarding BoringSSL vs OpenSSL if I recall correctly).

I would argue that both clients are not ideal since in an ideal world we could have the official Signal desktop application support arm64 with the feature to act as main device build-in. But since we don’t get that, the differences are mainly in performance and reliability.

Agree with that part, but even if Signal would publish for arm64, with primary device, and mobile-friendly, Flare and Linal would still be interesting for providing a more consistent UI with the rest of the system (Phosh, other GTK apps, …).

I mean technically porting the Signal desktop app for Linux to aarch64 would help a lot others too.

There is currently an official beta of Signal Desktop on arm64 Linux. Don’t know the current state of that though.


Aside: Wanted to provide links to all projects I mentioned and claims I made, but can’t add more than two links due to being a new Purism Form member. If you can’t find something I mentioned, please ask and I’ll link it.

Hello @schmiddiii - always nice to hear directly from the horses mouth. Any thoughts on Flare implementing ways to identify (using Librem 5 phone, or the new bank version, or any of the other ways in development)?

Don’t know what you mean by that. If it’s some feature request, its best to open an issue directly on GitLab, I don’t plan to keep an eye on this forum for feature requests or bug reports.

More of a conversation of what could be down the road some day at this point, as I’m not optimistic enough for a feature request for the beta tested registration: Signal registration without a phone number now available on Android

It depends on how it is implemented by Signal. I won’t add a payment processor to Flare, but if there is also an option “pay online and paste some code into the app” this may be implemented.

Anyway, this thread is about Linal and not answering Flare questions. If you want to continue the discussion, please move it to Matrix; I won’t answer here again.