OSDN Git Service

Installd: Clean up installd
authorAndreas Gampe <agampe@google.com>
Tue, 21 Mar 2017 01:36:54 +0000 (18:36 -0700)
committerAndreas Gampe <agampe@google.com>
Tue, 21 Mar 2017 01:36:54 +0000 (18:36 -0700)
Remove unnecessary includes.

Bug: 36336122
Test: m
Test: Device boots
Test: Can install apps
Change-Id: Iebbe049221d650667385efeac972956269bd53c2

cmds/installd/Android.mk
cmds/installd/dexopt.cpp
cmds/installd/globals.h
cmds/installd/otapreopt.cpp

index 8bf0b53..d3429ed 100644 (file)
@@ -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 \
index 5bb2ce7..f7e8d13 100644 (file)
@@ -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;
         }
     }
 
index 8242eec..c90beec 100644 (file)
@@ -20,8 +20,6 @@
 
 #include <inttypes.h>
 
-#include "InstalldNativeService.h"
-
 namespace android {
 namespace installd {
 
index c74c65b..82b8cc2 100644 (file)
@@ -36,7 +36,6 @@
 #include <log/log.h>
 #include <private/android_filesystem_config.h>
 
-#include "InstalldNativeService.h"
 #include "dexopt.h"
 #include "file_parsing.h"
 #include "globals.h"