1. A method implemented in a computing device, the method comprising: ingesting, by the computing device, an application package file including native object code in a shared library and intermediate code, the native object code being specific to a hardware platform and the intermediate code being agnostic with respect to the hardware platform; identifying, by the computing device, one or more native methods in the shared library; transforming, by the computing device, the one or more native methods in the shared library to produce replacement object code, wherein the replacement object code, when executed on the computing device, invokes an emulator for the identified hardware platform to emulate the native object code, the transforming comprising: generating, by the computing device, one or more transformed native methods corresponding to the identified one or more native methods, the one or more transformed native methods invoking the emulator for the hardware platform to emulate the one or more native methods; and adding the one or more transformed native methods to another shared library.