Fix dex2oat failure when --zip-fd actually points to raw dexfile.
Installd always pass --zip-fd to dex2oat when perform dexopt,
however some apps use RawDexFile rather than ZipArchive as
secondary dex, so check whether it's a RawDexfile before try
it as ZipArchive. This make sure dex2oat success when secondary
dex is a raw dexfile.
(cherry picked from commit 3949e5ed86cb752125c7b545ed5c59edfa80580a)
Test: m test-art-host-gtest-oat_writer_test
Test: m test-art-host-gtest-dex2oat_test
Bug: 153534055
Signed-off-by: wangshumin <wangshumin@xiaomi.com>
Merged-In: I6da98845cdf64acee1865dd997616e8214417315
Change-Id: I35dd511ee744f0670a9576f495927623966368f8
5 files changed