| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Harden dex directory setup in RuntimeHelper with existence check and fallback to files/secondary-dexes when code_cache is unavailable. Add defensive parent directory creation in ProxyGenerator.saveProxy() to prevent ENOENT crashes on newer Android versions.
|
Tagged rc with 9.0.3-rc.0 for evaluation. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Context
ProxyGenerator.saveProxy() calls File.createNewFile() which fails with ENOENT when the parent directory is missing. The runtime constructs the dex cache path manually (<dataDir>/code_cache/secondary-dexes) rather than using Context.getCodeCacheDir(), and while DexFactory calls mkdirs() at init time, it never checks the return value.
On newer Android versions (API 28+), the OS can clear code_cache to reclaim storage, and stricter permission models can cause mkdirs() to silently fail. This was always fragile but rarely triggered on older Android versions where code_cache was reliably present.