diff options
author | Narayan Kamath <narayan@google.com> | 2014-11-10 15:03:46 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-11-10 17:04:12 +0000 |
commit | b1a6c2f95a455aa2829340fcc8d233493855f4d4 (patch) | |
tree | 8f69817269e113559d8b7d8054c0bf1ede352284 /cmds/installd/commands.c | |
parent | 106e582053121f1934c33a6c98d35377e8ae384a (diff) | |
download | frameworks_native-b1a6c2f95a455aa2829340fcc8d233493855f4d4.zip frameworks_native-b1a6c2f95a455aa2829340fcc8d233493855f4d4.tar.gz frameworks_native-b1a6c2f95a455aa2829340fcc8d233493855f4d4.tar.bz2 |
Add an installd command to mark the end of boot.
bug: 18280671
Change-Id: I6b3aeaf143ab3b78881f163ec5c17b9bf20172ed
Diffstat (limited to 'cmds/installd/commands.c')
-rw-r--r-- | cmds/installd/commands.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c index 1954d8d..9c57114 100644 --- a/cmds/installd/commands.c +++ b/cmds/installd/commands.c @@ -1037,6 +1037,21 @@ fail: return -1; } +int mark_boot_complete(const char* instruction_set) +{ + char boot_marker_path[PKG_PATH_MAX]; + sprintf(boot_marker_path,"%s%s/.booting", DALVIK_CACHE_PREFIX, instruction_set); + + ALOGV("mark_boot_complete : %s", boot_marker_path); + if (unlink(boot_marker_path) != 0) { + ALOGE("Unable to unlink boot marker at %s, error=%s", boot_marker_path, + strerror(errno)); + return -1; + } + + return 0; +} + void mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid, struct stat* statbuf) { |