OSDN Git Service

cp preopted files from B partition during PM init.
authorAlex Light <allight@google.com>
Thu, 23 Jun 2016 00:56:37 +0000 (17:56 -0700)
committerAndreas Gampe <agampe@google.com>
Tue, 6 Sep 2016 15:53:00 +0000 (08:53 -0700)
commit2b6fc4c92deac1572b68f3cfc326da0a230055a7
tree2ce406d4a1c356dd71c6da70820919ea3d47ebab
parentf7c508ae09ad9dce600af23572d3d618c9ff8475
cp preopted files from B partition during PM init.

This allows us to save space on the system partition while still
having access to the preopted files.

We do this on first boot when the "ro.cp_system_other_odex" property
is set to 1. We do this during package manager initialization before
scanning the system to see which apks need to be optimized again.

Note that a separate script, run by init, is actually responsible for
finding and copying the files. We simply request that it runs.

Bug: 29278988

Change-Id: I8d7c790ad35b32a0ce1d87939f043419bae4d88a
(cherry picked from commit 3dafee6c1820bf0946bab04b290c5a757112d3e7)
services/core/java/com/android/server/pm/PackageManagerService.java