Tools & Frameworks That Were Used to Build WhatsApp (Android)

9


 

The article talks about the tools & frameworks that got used to build WhatsApp mobile application for Android platform. The reason why I decided to write this article is the acquisition of WhatsApp by Facebook in $19 billion and, my curiosity on what could have gone in building such application from technology perspective. The objective is to let Android developers take a peek into WhatsApp Android application and, get appropriate information on tools & frameworks that could be used to build a messaging application such as WhatsApp. Thanks for reading it further.

Tools & Frameworks Used in WhatsApp

Following is a list of tools & frameworks that were found to be used in the most latest version of WhatsApp mobile application. Please give a shout if you disagree with one or more entries listed below.

  1. UI-focused
    • ActionBarSherlock: ActionBarSherlock is an extension of Android support library designed to facilitate the use of the action bar design pattern across all versions of Android with a single API. The library got used in components such as GalleryPicker, ImageGallery etc.
    • StickyGridHeaders: An Android library that provides a GridView that shows items in sections with headers. By default the section headers stick to the top like the People app in Android 4.x but this can be turned off. StickyGridHeaders also automatically sizes its rows to the largest item in the row.
  2. Integration with Google Maps, Google+
    • Google Play Services SDK: It helped WhatsApp take advantage of the Google-powered features such as Google Maps, Google+.
  3. Platform updates distribution
    • Google Play Services SDK: It helped in distributing automatic platform updates as an APK through the Google Play store. This made it faster for the users to receive the updates
  4. Media
    • Mp4Parser: As part of Mp4Parser, ISOParser and ISOViewer got used to  read and write the MP4 file structure and, visualize the MP4 box structure respectively.
  5. Messaging
    • Cloud to Device Messaging Framework: Android Cloud to Device Messaging (C2DM) is a service that helps in sending data from servers to WhatsApp application on Android devices. The service provides a simple, lightweight mechanism that servers can use to tell mobile applications to contact the server directly, to fetch updated application or user data. The C2DM service handles all aspects of queueing of messages and delivery to the target application running on the target device.In the application, there are two key components. They are C2DMBroadcastReceiver and C2DMRegistrar.
  6. Database
    • SQLite: SQLite is an Open Source database that supports standard relational database features like SQL syntax, transactions and prepared statements. The database requires limited memory at runtime (approx. 250 KByte) which makes it a good candidate from being embedded into other runtimes.
  7. Platform
    • Android SDK
    • AspectJ: A seamless aspect-oriented extension to the Java programming language that is used for modularization of crosscutting concerns, such as error checking and handling, synchronization, context-sensitive behavior, performance optimizations, monitoring and logging, debugging support, and multi-object protocols.
What was done to decompile WhatsApp (Android)?

Following are set of things I did to decompile WhatsApp (apk) files. The same instructions could be used for any mobile app with apk extension.

From executing jd-gui command, what you get is Java source code file which could be viewed and studied. Following is the screenshot of JD-GUI tool displaying WhatsApp code.

jd-gui displaying WhatsApp code

fig: jd-gui displaying WhatsApp code

 

Recommended Books

Ajitesh Kumar

Ajitesh is passionate about various different technologies including programming languages such as Java/JEE, Javascript, PHP, .NET, C/C++, mobile programming languages etc and, computing fundamentals such as application security, cloud computing, API, mobile apps, google glass, big data etc.

Follow him on Twitter and Google+.
Share.

9 Comments

  1. Pingback: Links for February 18th through February 23rd

  2. hello sir, i am doing my final year project and i am interested in adjusting whatsapp. i am thinking of adding on an upload function, to attach documents like email. do you think it is possible for me to did that? is there any tips, suggestions or knowledge that you would like to share? thank you :)

    • you can easily add this by modifying the ActionBarSherlock..
      Get in deep of source code .. You would find section where you can add this feature(find attachments:pictures)..
      the function will be same as attachments of pictures
      only difference you will have to link it to gmail app. our mail app.
      and change the file extension

Leave A Reply


− 7 = two