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.

Test: m test-art-host-gtest-oat_writer_test
Test: m test-art-host-gtest-dex2oat_test

Change-Id: I6da98845cdf64acee1865dd997616e8214417315
Signed-off-by: wangshumin <wangshumin@xiaomi.com>
5 files changed