OSDN Git Service

[Installd] Clean up logic for secondary dex oat files
authorCalin Juravle <calin@google.com>
Wed, 25 Jan 2017 09:17:17 +0000 (01:17 -0800)
committerCalin Juravle <calin@google.com>
Thu, 2 Mar 2017 21:08:26 +0000 (13:08 -0800)
commitc9eab382fa4d71ade0077e0547969a47f39ecf05
treef22abde9207fb38535e383fa8156578310123851
parent80a2125b85eaa0916daea7e90b016fe4f1b59924
[Installd] Clean up logic for secondary dex oat files

Add a new method to installd, reconcileSecondaryOdex, which checks if
the given dex files still exist and if not, deletes the oat files that
were generated for it.

Test: devices bots
      adb shell cmd package reconcile-secondary-dex
com.android.google.gms (after artificially/temporarily renaming some
dex files)

Bug: 32871170

(cherry picked from commit bd9683607d391a29b1422a50f8972267e9bddc47)

Change-Id: Icb5c71b43a0e531d5be5d900149e707d0fe0a8de

Merged-In: I8465a7be9fd4e44e191ad40f7bd0f41c8b2d6f73
cmds/installd/InstalldNativeService.cpp
cmds/installd/InstalldNativeService.h
cmds/installd/binder/android/os/IInstalld.aidl
cmds/installd/dexopt.cpp
cmds/installd/dexopt.h