mirror of
http://gitea.winboll.cc/Studio/WinBoLL.git
synced 2026-06-30 04:22:25 +08:00
feat(MyTermuxActivity): 添加桌面快捷方式及指纹验证功能
- 列表项长按菜单新增"创建桌面快捷方式" - 支持 ShortcutManager(API 26+) 和 INSTALL_SHORTCUT 广播两种方式 - TermuxCommandExecutor 所有命令执行前增加指纹验证 - 自定义AlertDialog显示命令信息(名称蓝色粗体),通过后启动BiometricPrompt - 列表项名称蓝色粗体显示 - 新增 EXTRA_SESSION_ACTION 确保每次创建新终端会话 - MyTermuxActivity 添加 shortcut 意图处理(onCreate/onNewIntent)
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
<!-- 发送持久广播 -->
|
||||
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
|
||||
|
||||
<!-- 创建桌面快捷方式(Android 8.0 以下兼容) -->
|
||||
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
|
||||
|
||||
<!-- 对正在运行的应用重新排序 -->
|
||||
<uses-permission android:name="android.permission.REORDER_TASKS"/>
|
||||
|
||||
@@ -332,7 +335,18 @@
|
||||
|
||||
<activity android:name="cc.winboll.studio.winboll.termux.MyTermuxActivity"
|
||||
android:label="@string/my_termux_activity"
|
||||
android:exported="true"/>
|
||||
android:exported="true"
|
||||
android:launchMode="singleTask">
|
||||
|
||||
<intent-filter>
|
||||
|
||||
<action android:name="cc.winboll.studio.winboll.action.EXECUTE_TERMUX_BUTTON"/>
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
|
||||
</application>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user