mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 16:54:43 +08:00
feat(应用包管理组件): 自动第三方安装应用(完善规则)、自动安装应用(优化规则) (#1266)
* feat: 自动第三方安装应用(完善规则) * feat: 自动安装应用(优化规则)
This commit is contained in:
@@ -9,10 +9,22 @@ export default defineAppConfig({
|
||||
key: 9,
|
||||
name: '自动第三方安装应用',
|
||||
desc: '自动允许第三方应用调用安装,安装应用',
|
||||
activityIds: [],
|
||||
rules:
|
||||
'TextView[text*="尝试安装应用"] < LinearLayout +2n LinearLayout > Button[text="继续"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12874746',
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
activityIds: [],
|
||||
matches:
|
||||
'TextView[text*="尝试安装应用"] < LinearLayout +2n LinearLayout > Button[text="继续"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12874746',
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
activityIds:
|
||||
'com.miui.packageInstaller.ui.InstallPrepareAlertActivity',
|
||||
matches: '@[text="允许"] + [text="禁止"]',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/13054478',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
enable: false,
|
||||
@@ -35,10 +47,17 @@ export default defineAppConfig({
|
||||
'https://gkd-kit.songe.li/import/12818054',
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
desc: '点击【继续安装】',
|
||||
activityIds: 'com.miui.packageInstaller.NewInstallerPrepareActivity',
|
||||
matches: '@[text="继续安装"] + [text="取消安装"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12889120',
|
||||
},
|
||||
|
||||
// 需勾选【已了解此应用未经安全检测】才能继续安装
|
||||
{
|
||||
key: 1,
|
||||
key: 2,
|
||||
desc: '勾选【已了解此应用未经安全检测】',
|
||||
activityIds: 'com.miui.packageInstaller.NewInstallerPrepareActivity',
|
||||
matches:
|
||||
@@ -51,15 +70,15 @@ export default defineAppConfig({
|
||||
|
||||
// 需勾选【已了解此应用存在高风险】才能继续安装
|
||||
{
|
||||
key: 2,
|
||||
key: 3,
|
||||
desc: '点击【了解风险】',
|
||||
activityIds: 'com.miui.packageInstaller.NewInstallerPrepareActivity',
|
||||
matches: '@[text="了解风险"] + [text="取消安装"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12889135',
|
||||
},
|
||||
{
|
||||
preKeys: 2,
|
||||
key: 3,
|
||||
preKeys: 3,
|
||||
key: 4,
|
||||
desc: '勾选【已了解此应用存在高风险】',
|
||||
activityIds: 'com.miui.packageInstaller.NewInstallerPrepareActivity',
|
||||
matches:
|
||||
@@ -69,21 +88,9 @@ export default defineAppConfig({
|
||||
'https://gkd-kit.gitee.io/import/12889148', // 已勾选
|
||||
],
|
||||
},
|
||||
|
||||
// 普通应用安装,提示文本为【继续安装】
|
||||
{
|
||||
preKeys: [0, 1],
|
||||
key: 10,
|
||||
desc: '点击【继续安装】',
|
||||
activityIds: 'com.miui.packageInstaller.NewInstallerPrepareActivity',
|
||||
matches: '@[text="继续安装"] + [text="取消安装"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12889120',
|
||||
},
|
||||
|
||||
// 高风险应用安装,提示文本为【仍然安装】
|
||||
{
|
||||
preKeys: 3,
|
||||
key: 11,
|
||||
preKeys: 4,
|
||||
key: 5,
|
||||
desc: '点击【仍然安装】',
|
||||
activityIds: 'com.miui.packageInstaller.NewInstallerPrepareActivity',
|
||||
matches: '@[text="仍然安装"] + [text="取消安装"]',
|
||||
@@ -92,8 +99,8 @@ export default defineAppConfig({
|
||||
|
||||
// 安装完成
|
||||
{
|
||||
preKeys: [10, 11],
|
||||
key: 12,
|
||||
preKeys: [0, 1, 5],
|
||||
key: 6,
|
||||
desc: '点击【完成】',
|
||||
activityIds:
|
||||
'com.miui.packageInstaller.ui.normalmode.InstallProgressActivity',
|
||||
|
||||
Reference in New Issue
Block a user