From 9308a5444065a5847769104e81ee361cf060115b Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Tue, 28 Jan 2020 16:24:05 -0800 Subject: [installd] Remove boot complete marker ART doesn't load the boot image from /data anymore and the marker is useless. Test: device boots Bug: 143899228 Change-Id: I78defa45b52b868da9861a3aac28d15d8c453d16 --- cmds/installd/InstalldNativeService.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'cmds/installd/InstalldNativeService.cpp') diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp index e7b0d5d122..cfd6a3eb9f 100644 --- a/cmds/installd/InstalldNativeService.cpp +++ b/cmds/installd/InstalldNativeService.cpp @@ -2250,26 +2250,6 @@ binder::Status InstalldNativeService::compileLayouts(const std::string& apkPath, return *_aidl_return ? ok() : error("viewcompiler failed"); } -binder::Status InstalldNativeService::markBootComplete(const std::string& instructionSet) { - ENFORCE_UID(AID_SYSTEM); - std::lock_guard lock(mLock); - - const char* instruction_set = instructionSet.c_str(); - - char boot_marker_path[PKG_PATH_MAX]; - sprintf(boot_marker_path, - "%s/%s/%s/.booting", - android_data_dir.c_str(), - DALVIK_CACHE, - instruction_set); - - ALOGV("mark_boot_complete : %s", boot_marker_path); - if (unlink(boot_marker_path) != 0) { - return error(StringPrintf("Failed to unlink %s", boot_marker_path)); - } - return ok(); -} - binder::Status InstalldNativeService::linkNativeLibraryDirectory( const std::unique_ptr& uuid, const std::string& packageName, const std::string& nativeLibPath32, int32_t userId) { -- cgit v1.2.3-59-g8ed1b