OSDN Git Service

Core/jni: Disallow relocation for decryption
authorneo.chae <neo.chae@lge.com>
Wed, 7 Jan 2015 06:32:15 +0000 (15:32 +0900)
committerAndreas Gampe <agampe@google.com>
Wed, 7 Jan 2015 21:28:36 +0000 (13:28 -0800)
commit155118fee81f2761289438f4c4cd47d740ff8f88
treea2c6dde65650b7d0bb349073cd030734217bbff1
parentea4cdd44541d76adea9b0b185740796d6cf6ac64
Core/jni: Disallow relocation for decryption

When decrypting a device, a tmpfs is temporarily mounted as /data,
the size of which is usually small. When the zygote, system server
and necessary apps are brought up, they will be compiled into the
tmpfs.

If the system image contains prebuilts, they will be relocated instead
of compiled. This is unnecessary. In this special situation it is
acceptable to run out of the prebuilt oat files without relocation,
which can save space in the tmpfs.

This patch ensures that the boot image is not being relocated.

Change-Id: I42bfb7e3039574b7e4f2772e0d395f093d59ed1b
Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
core/jni/AndroidRuntime.cpp