feat(MyTermuxActivity): 添加桌面快捷方式及指纹验证功能

- 列表项长按菜单新增"创建桌面快捷方式"
- 支持 ShortcutManager(API 26+) 和 INSTALL_SHORTCUT 广播两种方式
- TermuxCommandExecutor 所有命令执行前增加指纹验证
- 自定义AlertDialog显示命令信息(名称蓝色粗体),通过后启动BiometricPrompt
- 列表项名称蓝色粗体显示
- 新增 EXTRA_SESSION_ACTION 确保每次创建新终端会话
- MyTermuxActivity 添加 shortcut 意图处理(onCreate/onNewIntent)
This commit is contained in:
2026-06-02 19:32:01 +08:00
parent ac8b789bcb
commit 756cf88b55
6 changed files with 300 additions and 20 deletions

View File

@@ -1,3 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="menu_create_shortcut">创建桌面快捷方式</string>
<string name="toast_shortcut_not_supported">系统不支持创建桌面快捷方式</string>
<string name="toast_shortcut_failed">创建桌面快捷方式失败</string>
<string name="toast_shortcut_not_found">未找到对应的按钮请先打开MyTermuxActivity</string>
<string name="toast_auth_failed">指纹验证失败</string>
<string name="biometric_title">指纹验证</string>
<string name="biometric_description">名称:%1$s\n命令%2$s</string>
<string name="biometric_start">开始指纹验证</string>
</resources>