admin管理员组

文章数量:1532440

2024年7月17日发(作者:)

android虚拟机 原理

## English Answer:

### Android Virtual Machine (AVM)。

The Android Virtual Machine (AVM) is a runtime

environment that executes Android applications. It is a

specialized version of the Java Virtual Machine (JVM) that

has been optimized for Android devices. The AVM is

responsible for managing the execution of Android

applications, including:

Loading and executing class files.

Managing memory and resources.

Providing security and isolation.

The AVM is designed to be efficient and secure. It uses

a number of techniques to improve performance, including:

Just-in-time (JIT) compilation.

Garbage collection.

Ahead-of-time (AOT) compilation.

The AVM also provides a number of security features,

including:

Sandboxing.

Permissions.

Code signing.

### Dalvik Virtual Machine (DVM)。

The Dalvik Virtual Machine (DVM) was the original

virtual machine used by Android devices. It was developed

by Google and is based on the Java Virtual Machine (JVM).

The DVM was designed to be lightweight and efficient, and

it was able to run on a wide range of devices.

The DVM was eventually replaced by the Android Virtual

Machine (AVM) in Android 5.0 Lollipop. The AVM is a more

modern and efficient virtual machine that provides a number

of improvements over the DVM, including:

Better performance.

Improved security.

Support for new features.

### Execution of Android Applications.

Android applications are written in Java and compiled

into Dalvik bytecode. When an Android application is

launched, the AVM loads the Dalvik bytecode into memory and

executes it. The AVM is responsible for managing the

execution of the application, including:

Loading and executing classes.

Managing memory and resources.

Providing security and isolation.

The AVM uses a number of techniques to improve

performance, including:

Just-in-time (JIT) compilation.

Garbage collection.

Ahead-of-time (AOT) compilation.

The AVM also provides a number of security features,

including:

Sandboxing.

Permissions.

Code signing.

## 中文回答:

### Android虚拟机 (AVM)。

Android虚拟机 (AVM) 是一个运行环境,用于执行Android应

用程序。它是由Java虚拟机(JVM)衍生出来的一个专门版本,针

对Android设备进行了优化。AVM负责管理Android应用程序的执

行,包括:

加载和执行类文件。

管理内存和资源。

提供安全性与隔离。

AVM 的设计目标是实现高效且安全。它利用多种技术来提升性

能,其中包括:

即时(JIT)编译。

垃圾回收。

预先(AOT)编译。

此外,AVM 还提供了多种安全特性,例如:

沙盒机制。

权限管理。

代码签名。

### Dalvik虚拟机 (DVM)。

Dalvik虚拟机 (DVM) 是Android设备最初使用的虚拟机。它

是由Google开发的,并基于Java虚拟机(JVM)。DVM 的设计目标

是精简和高效,可以运行在各种设备上。

最终,DVM 在 Android 5.0 Lollipop 中被Android虚拟机

(AVM) 所取代。AVM 是一款更为现代化且高效的虚拟机,对比于

DVM,具有多种改进,例如:

性能优化。

安全性提升。

新特性的支持。

### Android应用程序的执行。

Android应用程序是用Java语言编写的,并编译成Dalvik字

节码。当Android应用程序启动时,AVM将Dalvik字节码加载到内

存中并执行。AVM负责管理应用程序的执行,包括:

加载和执行代码。

管理内存和资源。

提供安全性和隔离。

AVM 利用多种技术来提升性能,其中包括:

即时(JIT)编译。

垃圾回收。

预先(AOT)编译。

此外,AVM 还提供了多种安全特性,例如:

沙盒机制。

权限管理。

代码签名。

本文标签: 执行应用程序特性管理加载