mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-12 22:47:08 +02:00
In plugins/fs/android/src/main/java/FsPlugin.kt getFileDescriptor, for uncompressed assets AssetManager.openFd returns an AssetFileDescriptor whose parcel descriptor is the whole APK; its startOffset/length were dropped and Rust read from offset 0, i.e. APK bytes. Only compressed assets (openFd throws) took the cache copy path. All assets now use the cache copy path. The cache file path is also checked to stay below cacheDir/_assets. Kotlin not compiled here: unverified, needs an on-device check.
290 B
290 B
fs, fs-js
| fs | fs-js |
|---|---|
| patch | patch |
Fixed reading uncompressed Android assets ($RESOURCE files such as images or audio that are stored uncompressed in the APK) returning the bytes of the APK instead of the asset. Assets are now always read from a copy in the app cache, like compressed ones.