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