OSDN Git Service

Installd: Disallow relocation for decryption
authorneo.chae <neo.chae@lge.com>
Wed, 7 Jan 2015 09:46:13 +0000 (18:46 +0900)
committerAndreas Gampe <agampe@google.com>
Wed, 7 Jan 2015 22:03:07 +0000 (22:03 +0000)
commit14e084d39ac44e9d4d0a0143bf1f111011343d34
treea25127f53b44663e497b0463e9511b711487d2c7
parent033f7e8e35ac76404fe823a67e07ba7c42bc357c
Installd: 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 apps are not being relocated.

Change-Id: I42bfb7e3039574b7e4f2772e0d395f093d59ed1b
Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
cmds/installd/commands.c