Install this theme
How on Earth the Facebook iOS Application is so large

Recently someone on reddit asked “How on earth is the Facebook app size so large ?”. The person asking the question realized that the ~100Mb compressed App Store archive wasn’t all assets - a very large portion was the application binary.

How do you answer that question? You quickly reverse engineer the application!

1 Download the binary to a jailbroken device from the App Store

2 Find the application on the device.

SSH into the device and find the application container on the filesystem:

find / -type d -iname "SomeApp*.app"

3 Decrypt the binary

Install dumpdecrypted on the device. Follow the instructions for using it.

4 Get the files off the device using scp or rsync.

In most cases you will want the application container, the decrypted binary, and the application data container (i.e. what it writes out to the filesystem).

At this point you have the decrypted binary and it’s files. You can now run class-dump on the binary and output a directory of header files for all the classes in the binary, or you can use a disassembler like IDAPro or Hopper to easily see all the classes, symbols, etc.

In the case of the Facebook application, there are more than 18,000 classses in the application:

There is a LOT of crap in there. Even a “FBFeedAwesomeizer” - which alone is a collection of 74 classes and protocols.

This is why the application binary itself is over 114Mb.

 
  1. talcumbrides reblogged this from quellish
  2. fermoto5hd reblogged this from quellish
  3. supersaiyan reblogged this from quellish
  4. webdesigningcourseschennai reblogged this from quellish and added:
    your blog is giving very useful knowledge for all, i’m sharing your information to all friends.And If any wants to...
  5. delecti reblogged this from fwippy
  6. fwippy reblogged this from totallyamelia
  7. totallyamelia reblogged this from andrewcore
  8. andrewcore reblogged this from quellish and added:
    wowowowowowwo
  9. kiberszmog reblogged this from sztupy and added:
    bezzeg az android mennyivel jobb, mert az androidos facebook app csak 45 megabájt
  10. napszemuvegbe reblogged this from sztupy
  11. sztupy reblogged this from quellish
  12. human-p7us reblogged this from quellish
  13. script-ease reblogged this from quellish and added:
    Our app ha only 3235 classes o.O
  14. blackaristocrat reblogged this from quellish
  15. ursamajor reblogged this from quellish
  16. shennanigma reblogged this from captainzana
  17. mutantoe reblogged this from quellish and added:
    Good programmers can write Java in any language.
  18. satans-mailbox reblogged this from quellish
Blog comments powered by Disqus