WhatsApp - patching guide and new versions adapted for GerdaOS

3,189 views
Skip to first unread message

Luxferre

unread,
Jul 24, 2019, 7:02:41 AM7/24/19
to comp.mobile.nokia.8110
Hi people!

Here, we're going to post new versions of WhatsApp adapted for usage on GerdaOS and stock v13 firmware, since this WA topic is still popular in this forum. But also, we're going to post (and update) the guides of patching the stock version, so that anyone could do it themselves if needed.

Patching guide

So, for the current state of off-the-shelf app, patching process is as follows (you need a stock-flashed phone with WA installed (for 8110 - with v15 and above), a target phone and adb):

1. Gain the temporary root on the stock.
2. Create a directory and enter it, and then create another directory called application, for instance: 
  mkdir -p ~/wa-patch && cd ~/wa-patch && mkdir application
3. Pull the contents of the WA application already installed on the rooted stock:
  adb pull /data/local/webapps/kaios.whatsapp.net/application.zip application/application.zip
4. Unpack the contents and remove the archive itself:
  cd application && unzip application.zip && rm application.zip
5. Remove META-INF directory (this is very important, otherwise signatures will not match): rm -rf META-INF
6. Find the line that looks like this in the page.js file (starts with if(!window.Intl)):
  if(!window.Intl)throw f(856),new Error("os unsupported (Intl is missing)");
7. Replace this line with this:
  if(!window.Intl)window.Intl=window.mozIntl;
Save the file.
7.1. (Optionally) remove the next statement after Intl-related (contains planned app expiration date) from the same page.js that looks like this:
  if(Date.now()>=1569023999e3)throw f(414),new Error("expired app");
(in this case it's pointing to expire at September 21 2019)
Save the file.
8. If you want to, you may already deploy the patched version via old Firefox/PaleMoon/NewMoon WebIDE or XPCShell onto the target. If you wish to create the GerdaPkg/OmniSD-compatible package, proceed to the next step.
9. Staying within application directory, repack the application.zip:
  zip -9r --exclude=*.git* --exclude=*.DS_Store* --exclude=README.md ../application.zip .
10. Go to the level above and create metadata.json:
  cd .. && echo {\"version\": 1, \"manifestURL\": \"app://kaios.whatsapp.net/manifest.webapp\"} > metadata.json
11. Staying in the level above, pack the GerdaPkg package:
  zip -9 whatsapp.gpkg.zip application.zip metadata.json

Now you can transfer, install and test the ready package (whatsapp.gpkg.zip) on the GerdaOS/v13 target. Don't forget to uninstall the previous version and reboot before installing the new one.

P.S. The steps are shown for Linux/Mac, for Windows you could use Cygwin/MSYS or WSL2 environment to use the same commands, or just replace them with their Win32 counterparts.


Ready version

And now, starting with ready-made patched versions (please verify on v13 or recent GerdaOS build before posting your own patched builds):


Have fun!

Luxferre

unread,
Jul 24, 2019, 7:07:16 AM7/24/19
to comp.mobile.nokia.8110
Forgot SHA256: 43335df1ba625ed70450ab45cd4fd0eaf34546beb3fa7959fe5289906b9e3863

Jack de Belin

unread,
Jul 24, 2019, 7:30:24 AM7/24/19
to comp.mobile.nokia.8110
You're a lifesaver. Awesome work 🙌

Many thanks

Louis Goddard

unread,
Jul 24, 2019, 9:30:06 AM7/24/19
to comp.mobile.nokia.8110
And from me! Works perfectly.

Ivan Alex HC

unread,
Jul 24, 2019, 9:47:54 AM7/24/19
to comp.mobile.nokia.8110
This guide is uploaded on the website under the "Development" section. There is also a guide to backup the WhatsApp's database by Matteo Rinaldi

ProgrammAbel

unread,
Jul 24, 2019, 3:04:04 PM7/24/19
to comp.mobile.nokia.8110
Not to be rude, but I did mention the WhatsApp backup in a previous post and helped him reach that conclusion, so could you maybe give me a little credit please? You don't have to, but it would be nice of you if you did :)

Ivan Alex HC

unread,
Jul 24, 2019, 3:14:20 PM7/24/19
to comp.mobile.nokia.8110
OK, sorry.... ;)

ProgrammAbel

unread,
Jul 24, 2019, 3:15:35 PM7/24/19
to comp.mobile.nokia.8110
Thanks Ivan, you're the best :D

lyf120

unread,
Jul 26, 2019, 10:48:33 AM7/26/19
to comp.mobile.nokia.8110
Is whatsapp call option available on latest update. News on the web says it will support voice and video call.

Luxferre

unread,
Jul 26, 2019, 2:39:22 PM7/26/19
to comp.mobile.nokia.8110
I cannot t see any kind of options in the recent stock version on v16 on 8110.

Do you know when this update is coming? There are several guys on 4PDA who can't live without this feature, lol.

Daniël Eikelenboom

unread,
Aug 29, 2019, 5:17:35 AM8/29/19
to comp.mobile.nokia.8110
Any updates in this area?
Also, is the whatsapp instore the latest available?

Boke

unread,
Jun 9, 2020, 11:43:09 AM6/9/20
to comp.mobile.nokia.8110
Could anyone extract the current WhatsApp version and upload it here (or somewhere)? My version (the one from the B-Hackers store) stopped working today and complains about it being too old, despite the removed expiration date check. I'm on GerdaOS and I don't have another phone with stock KaiOS, so I don't have access to the KaiOS store. I searched a long time, but couldn't find a way to download an app from the KaiOS store without using the store itself, also couldn't find a newer extracted version anywhere else.
I would greatly appreciate it if someone could extract that app and upload it!

And thank you so much for all the effort in this group!

Brendan

unread,
Jun 9, 2020, 12:47:18 PM6/9/20
to comp.mobile.nokia.8110
Hiaving the same problem. I was on an older version of Gerda and updated to the latest version just in case, but Whatsapp is giving the same "needs to be updated" error. Just started this morning.
Would be great to get an up to date version of the app.
Thanks to everyone in the group for the help and support.

Affe null

unread,
Jun 11, 2020, 1:20:18 PM6/11/20
to comp.mobile.nokia.8110
it includes a small "hack" to enable a "Voice Call" button, but the calls are not implemented. I couldn't find the version without the hack.

Boke

unread,
Jun 11, 2020, 4:56:47 PM6/11/20
to comp.mobile.nokia.8110
Awesome, thank you so much! Hope it works, I just requested access.

Affe null

unread,
Jun 12, 2020, 2:51:18 AM6/12/20
to banana...@googlegroups.com
Sorry, it was the version without the hack. Here is the hacked one: https://drive.google.com/file/d/1LRB2q4evdGt2Wuoj2S90x4sMO7YtZmek/view?usp=sharing

Affe null

unread,
Jun 14, 2020, 5:00:11 AM6/14/20
to comp.mobile.nokia.8110
Access to the links has been allowed for everyone.

TEACH DOWN

unread,
Jun 14, 2020, 5:41:45 AM6/14/20
to comp.mobile.nokia.8110
when i tried to install it shows incorrect version.

Brendan

unread,
Jun 14, 2020, 5:51:56 AM6/14/20
to comp.mobile.nokia.8110
Thanks for opening the links.
I tried to install the hacked version but it gave me an error on installation, saying that the version was incorrect. The unhacked version worked fine, though. This is the unhacked version that Affe Null originally posted: https://drive.google.com/file/d/1yeezsxnXKKvL_vbLZ2zQ_i1x6Vh88qxx/view?usp=sharing

Boke

unread,
Jun 14, 2020, 2:31:08 PM6/14/20
to comp.mobile.nokia.8110
Thanks a lot! I've only tried the unhacked one and it works!

Affe null

unread,
Jun 15, 2020, 3:53:42 AM6/15/20
to comp.mobile.nokia.8110
Is the version now correct?

Boke

unread,
Jun 15, 2020, 11:57:52 AM6/15/20
to comp.mobile.nokia.8110
It works and doesn't complain about being out of date and close afterwards anymore if that's what you mean.

Am Montag, 15. Juni 2020 09:53:42 UTC+2 schrieb Affe null:
Is the version now correct?

Brendan

unread,
Jun 27, 2020, 5:00:43 PM6/27/20
to comp.mobile.nokia.8110
Whatsapp stopped working again: I could write messages but when I hit send the message just disappeared.
I tried uninstalling and reinstalling but I can't get past the first screen: the option to accept the terms & conditions (right context button) seems to be disabled (curiously the left context button to go to the T&C on the website works fine). I've tried installing both the hacked & the unhacked versions from this thread (the unhacked version was doing fine on my phone till a couple of hours ago) but both show the same issue.
Not sure if it's my phone (on Gerda latest release) or some new whatsapp spanner in the works. Anyone else having the same problem?

Affe null

unread,
Jun 28, 2020, 3:59:21 AM6/28/20
to comp.mobile.nokia.8110
I'm having the same issue. Messages don't get sent and unread messages aren't being marked as read.

Affe null

unread,
Jun 28, 2020, 6:54:07 AM6/28/20
to comp.mobile.nokia.8110

Affe null

unread,
Jun 28, 2020, 7:02:14 AM6/28/20
to comp.mobile.nokia.8110

Brendan

unread,
Aug 14, 2020, 6:41:48 PM8/14/20
to comp.mobile.nokia.8110
Whatsapp stopped working again on Gerda. same problem as last time: messages not sending, reinstall stuck on T&C screen. anyone willing to post a patched version of the latest release? thanks.

Affe null

unread,
Aug 15, 2020, 8:08:29 AM8/15/20
to comp.mobile.nokia.8110

Brendan Costello

unread,
Aug 17, 2020, 5:20:10 AM8/17/20
to comp.mobile.nokia.8110

Up and running! Great job, Affe. Thanks.

Brendan

unread,
Sep 26, 2020, 5:13:37 AM9/26/20
to comp.mobile.nokia.8110
Whatsapp is broken again on Gerda. Error message saying that it needs updating.
Could a kind soul post a patched copy of the latest version?
Thanks.

Affe null

unread,
Sep 27, 2020, 6:01:34 AM9/27/20
to comp.mobile.nokia.8110

Brendan

unread,
Sep 27, 2020, 7:37:41 AM9/27/20
to comp.mobile.nokia.8110
Installed and working. Thanks, Affe.

Boke

unread,
Sep 28, 2020, 2:52:48 AM9/28/20
to comp.mobile.nokia.8110
Thank you so much for always providing the new versions! Extremely helpful!

Boke

unread,
Oct 31, 2020, 1:56:43 PM10/31/20
to comp.mobile.nokia.8110
It seems to be that time of the month again, WhatsApp stopped working for me once again. Could Affe null or someone else as nice with access to the KaiOS store make the new version available? Would greatly appreciate it!

Affe null

unread,
Nov 1, 2020, 6:19:09 AM11/1/20
to comp.mobile.nokia.8110

Boke

unread,
Nov 1, 2020, 11:34:21 AM11/1/20
to comp.mobile.nokia.8110
Great, thank you very much again!

Sibelius Johannes

unread,
Nov 5, 2020, 7:22:52 AM11/5/20
to comp.mobile.nokia.8110
Thanks Affe null. I have some problem for some time now on GerdaOS. It started with whatsapp not showing the time, when a message arrived. I uninstalled whatsapp and reinstalled it, but now I can't even "agree" to the terms of use. Thus I can't start it at all. Is anyone aware of this problem?

Sibelius Johannes

unread,
Jan 5, 2021, 3:01:58 AM1/5/21
to comp.mobile.nokia.8110
Steps 6 and 7.1 don't work, since those don't exist in current whatsapp-version. Should I just skip it?

Sibelius Johannes

unread,
Jan 5, 2021, 3:05:08 AM1/5/21
to comp.mobile.nokia.8110
Or could someone upload the latest whatsapp? Mine stopped working on Gerda today. Thx

Kostas Handrinos

unread,
Jan 5, 2021, 6:11:48 AM1/5/21
to comp.mobile.nokia.8110
Second that. My WhatsApp on GerdaOS stopped working today. 

Affe null

unread,
Jan 5, 2021, 8:08:35 AM1/5/21
to banana...@googlegroups.com
--
You received this message because you are subscribed to a topic in the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bananahackers/AStA-oas3Jg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bananahacker...@googlegroups.com.
To view this discussion on the web visit