OSDN Git Service

Add an installd command to link files
authorNarayan Kamath <narayan@google.com>
Thu, 4 Jun 2015 12:20:27 +0000 (13:20 +0100)
committerNarayan Kamath <narayan@google.com>
Tue, 9 Jun 2015 10:35:43 +0000 (11:35 +0100)
commitd845c96128a40ca5802c0840ae190fa0af7d4735
tree22602a1157dcd942fec284411648b60c0a5827eb
parent13b1604018968408bcc5553e1fa5ea9df3e4e009
Add an installd command to link files

Given a pair of absolute paths {from_path, to_path} , check that
they are both valid apk subpaths (eg. /data/app/package/foo) and
link(2) to_path to from_path. This is required by staged installs,
where we link existing apks and oat files to their staging location.

bug: 20889739
Change-Id: I3b5e3b43677af68be59308121a4409caaa6a72f0
cmds/installd/commands.cpp
cmds/installd/installd.cpp
cmds/installd/installd.h
cmds/installd/utils.cpp