From: Andreas Gampe Date: Tue, 21 Mar 2017 01:36:54 +0000 (-0700) Subject: Installd: Clean up installd X-Git-Tag: android-x86-8.1-r1~377^2^2~7^2^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=013f02e58b0b17b5b9fb4b4a2b3dc482eecfc434;p=android-x86%2Fframeworks-native.git Installd: Clean up installd Remove unnecessary includes. Bug: 36336122 Test: m Test: Device boots Test: Can install apps Change-Id: Iebbe049221d650667385efeac972956269bd53c2 --- diff --git a/cmds/installd/Android.mk b/cmds/installd/Android.mk index 8bf0b53ab9..d3429ed3ed 100644 --- a/cmds/installd/Android.mk +++ b/cmds/installd/Android.mk @@ -24,10 +24,9 @@ LOCAL_CFLAGS += -DART_BASE_ADDRESS=$(LIBART_IMG_HOST_BASE_ADDRESS) LOCAL_CFLAGS += -DART_BASE_ADDRESS_MIN_DELTA=$(LOCAL_LIBART_IMG_HOST_MIN_BASE_ADDRESS_DELTA) LOCAL_CFLAGS += -DART_BASE_ADDRESS_MAX_DELTA=$(LOCAL_LIBART_IMG_HOST_MAX_BASE_ADDRESS_DELTA) -LOCAL_SRC_FILES := otapreopt.cpp InstalldNativeService.cpp globals.cpp utils.cpp dexopt.cpp binder/android/os/IInstalld.aidl +LOCAL_SRC_FILES := otapreopt.cpp globals.cpp utils.cpp dexopt.cpp LOCAL_SHARED_LIBRARIES := \ libbase \ - libbinder \ libcutils \ liblog \ liblogwrap \ diff --git a/cmds/installd/dexopt.cpp b/cmds/installd/dexopt.cpp index 5bb2ce754c..f7e8d130a0 100644 --- a/cmds/installd/dexopt.cpp +++ b/cmds/installd/dexopt.cpp @@ -1564,7 +1564,7 @@ int dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* ins ALOGV("DexInv: --- END '%s' (success) ---\n", dex_path); } else { ALOGE("DexInv: --- END '%s' --- status=0x%04x, process failed\n", dex_path, res); - return -1; + return res; } } diff --git a/cmds/installd/globals.h b/cmds/installd/globals.h index 8242eec5f3..c90beec49c 100644 --- a/cmds/installd/globals.h +++ b/cmds/installd/globals.h @@ -20,8 +20,6 @@ #include -#include "InstalldNativeService.h" - namespace android { namespace installd { diff --git a/cmds/installd/otapreopt.cpp b/cmds/installd/otapreopt.cpp index c74c65b859..82b8cc204d 100644 --- a/cmds/installd/otapreopt.cpp +++ b/cmds/installd/otapreopt.cpp @@ -36,7 +36,6 @@ #include #include -#include "InstalldNativeService.h" #include "dexopt.h" #include "file_parsing.h" #include "globals.h"