You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
修改存储位置后重启闪退 / 所选位置提示无法写入 — 根因:作用域存储(targetSdk 36)下 ACTION_OPEN_DOCUMENT_TREE 只授予 content URI 权限,旧实现把 SAF 树解析成原始共享路径(如 /storage/emulated/0/Download/...)并持久化,导致 memes.db 打不开崩溃、目录被误判不可写。改为 SAF 全量支持:cache/thumbnails 经 content URI(DocumentFile)读写,memes.db 始终留在应用可真实写入的 files/ 目录
StorFile(新文件) — 统一文件句柄,真实路径 / SAF content URI 双模式(child/childOrCreateDir/createFile/listFiles/listFilesRecursive/sibling/流读写/delete/copyTo(File)/copyFrom/writeFrom(File)),cache/thumbnails 的所有读写经其抽象
StoragePaths 改造 — 新增 KEY_DATA_TREE 持久化 SAF 树 URI、persistDataTree(takePersistableUriPermission + 探针校验,失败即拒绝)、dataRoot/cacheDir/thumbnailDir 返回 StorFile、describeDataLocation(树 URI 解析为真实路径仅作展示,失败显示 URI);resetDataDir 同时清理真实路径与树 URI 并释放持久化权限