Fix unable to create base.art

Previous optimization changed to do dexopt in the temporary folder
during installation. But ART encodes paths in odex/vdex files,
leading to temporary path abuse. To fix this problem, rename the
path before dexopt.

Bug: 378623723
Test: atest CtsPackageManagerTestCases
Flag: android.content.pm.improve_install_freeze
Change-Id: I28409bf7d9eeae2f752085ff0e32d2c169b5cbbd
1 file changed