Meta

Under the Hood: Dalvik patch for Facebook for Android

Mar 4, 2013David Reiss
Under the Hood: Dalvik patch for Facebook for Android
SummaryAI, from the source post

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.

More from the Facebook Engineering Blog trail