For most up-to-date information on optimized libraries, please carefully read @osm0sis's post: http://forum.xda-developers.com/show...postcount=1287

You should also read @Lethargy's post in the Nexus 5 thread: http://forum.xda-developers.com/show...postcount=2918.

if you're on stock ROM, you'll benefit from flashing both bionic and dalvik patches,

and patches, if you're using a custom ROM, you most probably don't need bionic patch, as these are already included in most custom ROMs. You'd benefit only from flashing dalvik patch (if it's not already included by your ROM maintainer, of course),

patch, as these are already included in most custom ROMs. You'd benefit only from flashing patch (if it's not already included by your ROM maintainer, of course), don't use the bionic patch on CyanogenMod, PSX and probably others, because they already have more optimized versions!

Quote: Originally Posted by xboxfanj Originally Posted by Part of the point of Nexus devices is that AOSP can produce nearly identical images minus GApps. Google would not use a proprietary dalvik as that is one of the core libraries. Using a proprietary dalvik would undermine AOSP. Although, an open libqc-dalvik or even just giving us that binary would be nice. Google could have a device specific extension similar to the adreno extensions onto renderscript and egl for dalvik. Proprietary dalvik won't happen, but an adreno extension could be cool.

Quote: Originally Posted by xboxfanj Originally Posted by CAF has all Qualcomm's bionic patches and slight dalvik tweaks, however, the dalvik patches that are used here in the Moto X and any QCOM (non-Nexus) device, are mostly closed source. If you look at the change here: https://www.codeaurora.org/cgit/quic...739455dfd3cf57



You will see that most of that change is supporting other libraries (libqc-opt and libqc-dalvik), which is where their optimizations are. Unfortunately, both of those are closed source. libqc-opt is included in QCOM ROM zips as a shared library, so we can use that, however, libqc-dalvik is a static library, so we can't pull that from anywhere, as it is included in the libraries themselves and not put in system. This means that our only option to get all of Qualcomm's dalvik optimizations is to use their binaries rather than building from source, since building from source would mean missing any optimizations brought by libqc-dalvik, libqc-sqlite, and libqc-skia (the last two haven't been included in any patch, but are QCOM static libraries).



TLDR: QCOM's dalvik optimizations are closed source, so we are forced to use their binaries.

not

not

every

Don't replace these files on a running system (i.e. via a file explorer or adb)! If you do this, your phone will stop working and you'd have to reflash your ROM to make it work again. And you'll probably loose some data by doing so. Always use recovery to replace these libraries.

If you're running CM11 released after 1 March 2014 or any other ROM that includes fixes to DVM, please flash 4.4_qc-optimized_dalvik-cm11.zip. This is the only file you need, don't flash anything else from this thread!

Have you ever wondered why your Nexus 4 performs worse than other flagship devices with the same quad-core CPU in benchmarks? Not any more! I present you with a very simple patch that will boost your performance to what other APQ8064-based devices offer.Before using, please read the following Q&A.Yes. Flash at your own risk.Yes, if you're on any 4.4/4.4.x ROM.This patch consists of two files that include optimizedandlibraries for any KitKat ROM.It is a vital system library that provides i.a. basic math and memory access functions to every other library and application in Android.In short, Dalvik is a virtual machine in which every not-native-code app runs. You can read more about it in a Wikipedia article In two ways:patch provides faster memory access and optimized some of the math operations,provides optimized Dalvik Virtual Machine library that allows faster code execution.It depends on what ROM you are using:As for- I don't know. Maybe that's because Google didn't want to include vendor-specific optimizations in AOSP or maybe simply because Qualcomm never posted them in Android Code Review to be merged. As for- because they are closed-source. Here'a a good explanation by @ xboxfanj These have been authored by Qualcomm. Bionic patch comes from Code Aurora Forum, Dalvik library has been extracted from Moto X 4.4. ROM. Another good read by @ xboxfanj Thebinary is from stock Nexus 4 ROM and is included for compatibility with CyanogenMod and CM-based ROMs. This is because CyanogenMod changedto work with their(see here: https://github.com/CyanogenMod/andro.../cmds/installd ) and it you don't flash stockyou'd get hundreds of FCs and unusable ROM.Simple flash it over your current ROM in recovery. Remember to wipe Dalvik Cache after flashing. Full wipe isneeded.Simply flash over your current ROM and wipe Dalvik Cache afterwards. Full wipe isneeded.Yes, but it is strongly recommended to use a deodexed ROM if you want to use Dalvik patch.It will be at least the same, if not better. Better performance = less CPU time spent on calculations = better battery life.Thepatch doesn't affect apps that use native libraries, i.e. you won't see much performance gain in Chrome etc.Yes, use it with any kernel you like.Yes, you can use this patch on every Krait device that uses AOSP-based ROM (examples: Nexus 5, Nexus 7 2013). Don't flash it on stock ROM on non-Nexus devices, as they already include these optimizations (that includes Galaxy S4 and HTC One Google Play editions!).You can't. You have to revert to stock libraries first. Keep in mind thatmodification to stock ROM can mean problems when installing an OTA. You should revert to fully stock ROM to properly apply an OTA. For your courtesy, there's a revert ZIP attached for KRT15S and KOT49E ROMs. Remember that the safest way it to flashfrom a factory image before applying an OTA once you made modifications to yourpartition!Yes, you can.Yes, but you won't see any performance gains. In fact, with this patch Dalvik is faster than ART. I suppose ART will supersede Dalvik in performance in the future, but not yet.Head over to Nexus 4 Benchmarks thread No. The only thing you need is custom recovery (CWM, TWRP etc.).Yes.