`

Android Kitkat ART vs. Dalvik & Impacts for end-users

 
阅读更多
What's ART?

ART is Google's 2-year-long ongoing secret project, which aims to boost the performance of our Android devices. It's based on the premise that modern devices are pretty powerful in terms of CPU speed and memory capacity, especially in comparison with the first generation of Android devices.

ART is still an ongoing project, considered too unstable to be introduced as a standard runtime.
You can choose to use it by going to "Settings > Developer Options > Select Runtime" and choosing ART.

ART vs. Dalvik / AOT vs. JIT

Dalvik VM (Virtual Machine) is Google's version of a Java VM (on which apps run). VMs keep apps isolated and independent from actual hardware and other apps. But, for this to work, Dalvik needs to convert so called bytecode (designed for virtual machine) to native machine code. In order to minimize the performance penalty that the bytecode to native code conversion introduces, a process called Just-In-Time (JIT) compilation is performed, which converts hot, i.e. often used, bytecode to native code.1

ART (Android Runtime) is a replacement for Dalvik that uses Ahead-Of-Time (AOT) compilation, meaning your apps are compiled to a ready-to-run state before you even launch them. This is usually done, at the time of app installation, making the process of launching and using them much faster and smoother. And since this means that compilation is only done once, you may also see better battery life, too.

Impacts for end-users


ART is better on performance & battery life perspective, but you may not start using it, because ART is not fully functional with Android Kitkat. Google has shipped the ART perview with Android Kitkat for developers to test their apps on it. Maybe ART will fully functional with Android 5.0, Google's approach with ART is to beat iOS, that's the point.

Build device using ART


Two runtimes are now available, the existing Dalvik runtime (libdvm.so) and the ART (libart.so). A device can be built using either or both. (You can dual boot from Developer options if both are installed.)

A new PRODUCT_RUNTIMES variable controls which runtimes are included in a build. Include it within either build/target/product/core_minimal.mk or build/target/product/core_base.mk.

Add this to the device makefile to have both runtimes built and installed, with Dalvik as the default:
PRODUCT_RUNTIMES := runtime_libdvm_default
PRODUCT_RUNTIMES += runtime_libart
分享到:
评论

相关推荐

    android-vnc-server:kitkat 的 android-vnc-server

    android-vnc-server for kitkat 这是一个 vnc 服务器,它将移动设备的帧缓冲区推送到 vnc 客户端。 该服务器接受鼠标拖动作为触摸事件和按键输入。 建造 从网上下载libvncserver和libjpeg-turbo ,放到aosp源码树中 ...

    Art-Exploring-the-New-Android-KitKat-Runtime

    标题《Art-Exploring-the-New-Android-KitKat-Runtime》中的知识点涵盖了Android KitKat操作系统版本中引入的新运行时环境(Runtime Environment),特别是ART(Android Runtime)的探索和分析。Android KitKat是...

    Python库 | k8kat-0.0.240-py3-none-any.whl

    python库。 资源全名:k8kat-0.0.240-py3-none-any.whl

    android-19

    标题“android-19”指的是Android操作系统的第19个主要版本,通常称为Android 4.4 KitKat。这个版本的发布对Android平台的发展产生了重要影响,它在用户体验、性能优化以及开发者工具等方面都有显著提升。现在我们来...

    Android代码-完美地使 Kitkat 与 Lollipop 上的状态栏同时透明变色

    Easy to make status bar translucent/tint on both Kitkat and Lollipop 完美地使 Kitkat 与 Lollipop 上的状态栏同时透明/变色 第一个版本只有 Kotlin 版本,是作为 Hello, Kotlin! 的存在。 考虑到 Kotlin 在 ...

    Android SDK (SDK Platforms)-android-19.zip

    Android SDK (SDK Platforms)-android-19.zip 是一个包含了Android开发平台版本19的压缩包,主要用于Android开发者在构建、测试和调试针对Android 4.4 KitKat系统应用时使用。这个压缩包提供了必要的API库、工具和...

    KitKat研究报告

    1. Android 4.4代码研究与KitKat的新特性 - KitKat版本的Android 4.4代码中,Browser app、framework webkit/webview以及extern/chromium_org都发生了重要的改变。 - 此次更新中,Google首次实现了使用Android ...

    Genymotion-ARM-Translation 兼容包

    ARM-Translation-4.4–4.4.4.zip KitKat奇巧巧克力 ARM-Translation_5.0–5.1.1.zip Lollipop棒棒糖 ARM-Translation_5.0–5.1.1_2.zip Lollipop棒棒糖 ARM-Translation_6.0–6.0.1.zip Marshmallow棉花糖 ARM-...

    scrcpy-win64-kitkat.zip android4.4手机电脑同屏

    目前公版上scrcpy需要android5.0, 4.4刚刚调通 测试至少部分手机上可用 有旧手机有需要的可以帮忙看下能不能用。csdn没分了 挣点分见谅 Scrcpy-GUI群里已经共享 穿鞋144cm

    android kitkat 4.4 4 download apk -crx插件

    Android kitkat 4.4.4是用于基于Linux的android update os智能手机的移动操作系统。 Android kitkat 4.4.4是用于基于Linux的android update os智能手机的移动操作系统。 这个Android kitkat实际上是为触摸屏智能手机...

    Android代码-StatusBarUtil

    A util for setting status bar style on Android App. It can work above API 19(KitKat 4.4). 中文版点我 Sample Download StatusBarUtil-Demo ChangeLog Click Me Usage Add the dependencies to your build....

    关于如何彻底搞定Android Kitkat+沉浸式状态栏效果.zip

    Android KitKat版本引入了这一特性,让开发者能够更好地控制应用的显示效果。本文将深入探讨如何在Android KitKat及更高版本上实现完全沉浸式状态栏效果。 首先,我们需要了解Android的系统UI模式。在KitKat中,...

    android -20

    Android 20,也被称为Android 4.4 KitKat,是Google在2013年推出的Android操作系统的一个重要版本。这个版本的发布标志着Android系统在功能、性能和用户体验上的重大改进。下面,我们将深入探讨Android 20(KitKat)...

    关于如何彻底搞定Android Kitkat+沉浸式状态栏效果.pdf

    尤其是在Android Kitkat版本(Android 4.4)之后,开发者能够通过新的API实现更为沉浸式的用户体验,特别是状态栏的个性化设置,使得应用界面能够更好地与用户的设备融合,进而提升用户的交互体验。 ### 沉浸式状态...

    imito:rk3066 Imito kitkat 内核 3.0.36+

    模拟rk3066 Imito kitkat 内核 3.0.36+

    Axure kitkat

    让你用Axure 快速实现Android kitkat 的界面设计

Global site tag (gtag.js) - Google Analytics