Repository navigation
修复 Android 应用日志复制权限错误 - #20
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
解决的问题 / Problem
Android 用户在「设置 → 调试 → 应用日志」点击复制时,WebView 的
navigator.clipboard.writeText拒绝写入,显示「复制日志失败:Write permission denied.」。截图中的 ReaderX 版本为 0.5.0。Fixes #19
改动后的行为 / Resulting behavior
clipboard-manager:allow-write-text,同步 JS/Rust 依赖与锁文件;两端当前实际版本均为 2.3.3,均使用~2.3.3约束,避免安装依赖时跨次版本导致 Android 构建被拦截。验证 / Validation
pnpm exec tsc --noEmit通过。pnpm run i18n:check通过(现有提示仍在)。pnpm build通过。cargo check -p readerx --lib --locked通过,包含原生插件注册与 capability 校验;有两条现有 book_store 未使用项警告。未改动业务 Rust 算法,未运行完整 Rust 测试套件。pnpm install --frozen-lockfile通过;pnpm tauri info确认剪贴板 JS/Rust 插件均为 2.3.3。plugin:clipboard-manager|write_text、多行文本原样传递、浏览器复制路径及两种路径失败透传;确认仅授予文本写入权限。pnpm tauri android build --apk --target aarch64 --split-per-abi --ci通过,生成 arm64 release APK。本地使用 NDK 30.0.16138531 / JDK 17;复用主目录 target 缓存时曾缺少TauriActivity.kt,按锁定 Tauri 2.11.5 的代码生成模板补齐隔离工作区的生成文件后完成构建。生成文件不提交。git diff --check通过。数据与兼容性 / Data and compatibility
不涉及持久化格式或旧数据迁移。Android 与桌面共用文本写入入口;浏览器开发环境保留网页 API。新增权限限定主窗口的文本写入,不启用剪贴板读取、图片、HTML 或清空权限。复制内容不写入日志。
提交前检查 / Checklist