[PM] Clean up logic for secondary dex oat files
Add logic in DexManager to reconcile secondary dex records with the actual files on disk. If secondary dex files are moved or removed then DexManager will remove the generated oat files during the call to reconcileSecondaryOdex() and update its internal state. Add 'adb shell cmd package reconcile-secondary-dex packageName' which will force DexManager to sync its data with the actual secondary dex files. Test: devices bots runtest -x .../PackageDexUsageTests.java runtest -x .../DexManagerTests.java adb shell cmd package reconcile-secondary-dex com.android.google.gms (after artificially/temporarily renaming some dex files) Bug: 32871170 Change-Id: Id2d72dc89995f89cf1ddf79ae4e992afd3f3c127
Loading
Please register or sign in to comment