Facebook Engineering Blog
Under the Hood: Dalvik patch for Facebook for Android

Under the Hood: Dalvik patch for Facebook for Android

3/4/2013 · David Reiss

What this post added

This post details a significant engineering challenge and solution related to the Android application's performance and compatibility on older devices. It describes how a large number of Java methods, resulting from a rebuild of the Android app, exceeded the LinearAlloc buffer limitations in older Android versions (Froyo and Gingerbread). The engineering team developed a complex JNI extension to patch the Dalvik Virtual Machine by increasing the LinearAlloc buffer size, enabling the app to run on a wider range of devices and preventing feature cuts.

Read the original post ↗