public static long getOdexSize(String oatFilePath) {
        File file = new File(oatFilePath);
        return file.exists() ? file.length() : -1;
    }
InterpretDex2OatHelper
<p>
snippet from: Tinker's TinkerDexOptimizer.java (https://github.com/Tencent/tinker)
<p>
Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/utils/InterpretDex2OatHelper.java