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 for kitkat 这是一个 vnc 服务器,它将移动设备的帧缓冲区推送到 vnc 客户端。 该服务器接受鼠标拖动作为触摸事件和按键输入。 建造 从网上下载libvncserver和libjpeg-turbo ,放到aosp源码树中 ...
python库。 资源全名:k8kat-0.0.240-py3-none-any.whl
State-of-the-Art-Exploring-the-New-Android-KitKat-Runtime android security test
cudnn-10.2-linux-x64-v7.6.5.32.7z.002 cudnn-10.2-linux-x64-v7.6.5.32.tgz的压缩包第二卷 共三卷
Easy to make status bar translucent/tint on both Kitkat and Lollipop 完美地使 Kitkat 与 Lollipop 上的状态栏同时透明/变色 第一个版本只有 Kotlin 版本,是作为 Hello, Kotlin! 的存在。 考虑到 Kotlin 在 ...
关于如何彻底搞定Android Kitkat+沉浸式状态栏效果,关于如何彻底搞定Android Kitkat+沉浸式状态栏效果,关于如何彻底搞定Android Kitkat+沉浸式状态栏效果
目前公版上scrcpy需要android5.0, 4.4刚刚调通 测试至少部分手机上可用 有旧手机有需要的可以帮忙看下能不能用。csdn没分了 挣点分见谅 Scrcpy-GUI群里已经共享 穿鞋144cm
Android kitkat 4.4.4是用于基于Linux的android update os智能手机的移动操作系统。 Android kitkat 4.4.4是用于基于Linux的android update os智能手机的移动操作系统。 这个Android kitkat实际上是为触摸屏智能手机...
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-...
模拟rk3066 Imito kitkat 内核 3.0.36+
让你用Axure 快速实现Android kitkat 的界面设计
Android 4.4 Kitkat Phone工作流程浅析(十二)__4.4小结与5.0概览 资源文件 文章链接: http://blog.csdn.net/yihongyuelan
关于如何彻底搞定Android Kitkat+沉浸式状态栏效果
Andriod kitkat - Widget.rplib Android基本.rplib Android手机外壳及UI组件库.rplib Android组件库.rplib Axure RP社交网络元素库.rplib Axure Web组件库_by 老木整理修改.rplib Axure反馈表单.rplib ...
Android 4 4 Kitkat Phone工作流程浅析 二 UI结构分析 时序图无失真原图
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....
资源来自pypi官网。 资源全名:k8-kat-0.0.123.tar.gz
docker-aosp-v4 用于构建 Kitkat (4.4.x) 和旧版本的 Docker 映像。 注意:对于较新的版本,例如 Lollipop,请检查 。安装从拉取镜像。 这是推荐的安装方法,因为它更容易更新映像。 docker pull tedwang/aosp-v4:...