WhatsApp - patching guide and new versions adapted for GerdaOS

3,023 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 https://groups.google.com/d/msgid/bananahackers/e2f4c072-dc6f-429b-9ba9-9467546f7affn%40googlegroups.com.

Sibelius Johannes

unread,
Jan 5, 2021, 8:43:31 AM1/5/21
to comp.mobile.nokia.8110
Thanks once again Affe null

Etienne Démoulin

unread,
Mar 12, 2021, 3:30:21 AM3/12/21
to comp.mobile.nokia.8110
Hi everyone,
My WhatsApp stop to send messages today.
Is there an update ?
Best,
Etienne

Affe null

unread,
Mar 12, 2021, 5:52:30 AM3/12/21
to banana...@googlegroups.com

There was an update recently, but there is an even newer version (with a "Debug" menu!) on the KaiOS staging servers. I have patched it, but didn't test it yet since I am on stock now: https://drive.google.com/file/d/1cLJwK8GOG4CiIYrQ-qN43D8DV-Otexgn/view?usp=sharing

You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/4c208d06-eb12-486e-a948-7c5845d13ee6n%40googlegroups.com.

Kostas Handrinos

unread,
Mar 12, 2021, 6:58:03 AM3/12/21
to comp.mobile.nokia.8110
Unfortunately, on Gerda it says: NoManifestFound.

Affe null

unread,
Mar 12, 2021, 7:01:02 AM3/12/21
to banana...@googlegroups.com

A new version has been uploaded, the link is the same.

Kostas Handrinos

unread,
Mar 12, 2021, 8:36:48 AM3/12/21
to comp.mobile.nokia.8110
Now it says invalid signature. That's weird. Maybe it's time for KaiOS again.

Affe null

unread,
Mar 12, 2021, 8:55:16 AM3/12/21
to banana...@googlegroups.com

I think that's because I forgot to remove META-INF from the package. You can try it again now, I just uploaded another version with a completely new zip.

Kostas Handrinos

unread,
Mar 12, 2021, 9:06:48 AM3/12/21
to comp.mobile.nokia.8110
Alfie, you are a life saver once again. Thank you very much!

Etienne Démoulin

unread,
Mar 12, 2021, 12:01:35 PM3/12/21
to comp.mobile.nokia.8110
Hi everyone,
Thanks Affe for all that you do for the 8810 !
With the last version you send, I can't click on "Accept" button....
Best,

Etienne

Competition Wallah

unread,
Mar 13, 2021, 2:28:46 AM3/13/21
to comp.mobile.nokia.8110
Now in youtube it is shown that in pakistan Whatsapp calling has come on it. If anyone having any idea regarding this feature.
Plz let us know it will helpful for calling in specially jiophone which is based on kaios.

On Wednesday, 24 July 2019 at 16:32:41 UTC+5:30 Luxferre wrote:
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!

Sibelius Johannes

unread,
Jun 4, 2021, 11:49:56 PM6/4/21
to comp.mobile.nokia.8110
Can anyone provide the latest whatsapp.zip. The old one is not working from today. Thank you!

Kostas Handrinos

unread,
Jun 7, 2021, 10:28:30 AM6/7/21
to comp.mobile.nokia.8110
Any news on the WhatsApp for Gerda?

Prometh Suresh

unread,
Jun 8, 2021, 12:43:42 PM6/8/21
to comp.mobile.nokia.8110
Can someone update about the WhatsApp with Voice calling support?

Brendan

unread,
Jun 10, 2021, 10:01:23 AM6/10/21
to comp.mobile.nokia.8110
WhatsApp still broken on Gerda. Is there anybody out there who could make available the latest version with patch?
Thanks.


Message has been deleted

Łukasz Wiecheć

unread,
Jul 12, 2021, 4:07:00 AM7/12/21
to comp.mobile.nokia.8110
I am also facing some trouble with running WhatsApp: after commenting out the 'cutoff date' check in page.js, I can start WhatsApp but it does not accept me pressing 'Agree' button when it comes to terms of service.

Łukasz Wiecheć

unread,
Jul 21, 2021, 1:47:09 AM7/21/21
to comp.mobile.nokia.8110
...actually - I have followed the Luxferre's guide to patching and - with some adaptations - I was able to patch the WhatsApp app.

I guess the procedure needs to be like this:
1. get the latest version of WhatsApp (as installed from KaiOS store) from KaiOS phone
2. patch the page.js:
   change : if (h = e, !self.Intl) throw d(833), new Error("os unsupported (Intl is missing)");
   to: if (h = e, !self.Intl) self.Intl=self.mozIntl
3. comment out also check for the 'expired' app
  //if (t > 1632787199e3 && g(), t >= 1633391999e3) throw d(239, !0), new Error("expired app");
4. follow the instructions to pack and install the app in the phone.

Thanks again Luxferre for figuring this out!

Cyber Bob

unread,
Aug 1, 2021, 8:51:37 PM8/1/21
to comp.mobile.nokia.8110
Is your patched version working ? If yes, could you provide the app zip ?
I unfortunately have no way to access the KaiOS store and get stock Whatsapp.

Affe null

unread,
Feb 18, 2022, 12:25:18 PM2/18/22
to banana...@googlegroups.com

Hello everyone,

I've made a script to automatically download WhatsApp from KaiStore and patch it to work on GerdaOS. I have tested it by pushing the application.zip to a GerdaOS phone with WhatsApp already installed, but the login should also work. Here's the code: https://gitlab.com/affenull2345/waptcher (you can run it in a Docker container if you aren't on a Linux system)

Once my pending merge request (https://gitlab.com/banana-hackers/store-db/-/merge_requests/275) is accepted, automatically patched versions will be available on the B-Hackers Store. I have set up a patching server for that purpose which currently checks for KaiStore updates every day and publishes new patches if there are any updates.

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.

Tomasz Jasinski

unread,
Aug 13, 2022, 10:54:16 AM8/13/22
to comp.mobile.nokia.8110
Luxferre, this is unrelated to this thread but could you help me with jailbreaking my Nokia 6300 4G TA-1324 DS (US version)?  The BananaHackers instructions specifically say "non-US version".  Does that mean that my phone cannot be liberated?  I am not very good at this and I'm using Win10 so it makes it a bit harder for a newbie like me to follow directions.  Should I have to root the phone using the partition patches?  Or is there an easier way to do the Privileged Factory Reset?  I'm stuck for 3 days now.  It will take me 10 years to learn half of what you guys know about coding and hacking so my only option is to convert your instructions to Win10 and adjust for US version and try to do things step by step.  I got half way.  I got the ADB platform and PaleMoon WebIDE to connect to my debugged phone.  I even sideloaded OmniSD in normal mode and can open it on the phone.  But pressing # while in OmniSD does nothing because I am not in Privileged Mode.  This is super interesting and fun. I'm just over my head. I started a new threat yesterday for this on here but no one responded yet.  My problem is way too trivial for you guys.  Please help.
Reply all
Reply to author
Forward
0 new messages