From 5060f1fa857d96d501648697b1065a20a72d3f29 Mon Sep 17 00:00:00 2001 From: PianCat <50688679+PianCat@users.noreply.github.com> Date: Mon, 15 Jan 2024 09:12:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=BD=AF=E4=BB=B6=E5=8C=85=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E7=A8=8B=E5=BA=8F=EF=BC=88Google=EF=BC=89)=EF=BC=9A?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=AE=89=E8=A3=85/=E6=9B=B4=E6=96=B0/?= =?UTF-8?q?=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(软件包安装程序(Google)):自动安装/更新/取消 bug(软件包安装程序(Google)):自动点击完成暂时无法工作,暂时不清楚原因 安装过程的快照: https://i.gkd.li/import/13914647 (开始安装) https://i.gkd.li/import/13915290 (安装过程) https://i.gkd.li/import/13914864 (安装完毕) 蹲一个大佬修复 Signed-off-by: PianCat <50688679+PianCat@users.noreply.github.com> --- .../com.google.android.packageinstaller.ts | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 src/apps/com.google.android.packageinstaller.ts diff --git a/src/apps/com.google.android.packageinstaller.ts b/src/apps/com.google.android.packageinstaller.ts new file mode 100644 index 00000000..a25f45ce --- /dev/null +++ b/src/apps/com.google.android.packageinstaller.ts @@ -0,0 +1,78 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.google.android.packageinstaller', + name: '原生软件包安装程序(Google)', + groups: [ + { + enable: false, + key: 1, + name: '功能类-自动安装应用', + quickFind: true, + rules: [ + { + key: 0, + activityIds: [ + 'com.android.packageinstaller.PackageInstallerActivity', + 'com.android.packageinstaller.DeleteStagedFileOnResult', + ], + matches: '[text="安装"]', + snapshotUrls: [ + 'https://i.gkd.li/import/13914644', + 'https://i.gkd.li/import/13914647', + ], + }, + { + key: 1, + preKeys: 0, + activityIds: ['com.android.packageinstaller.InstallSuccess'], + matches: '[text="完成"]', + snapshotUrls: 'https://i.gkd.li/import/13914923', + }, + ], + }, + { + enable: false, + key: 2, + name: '功能类-自动更新应用', + quickFind: true, + rules: [ + { + key: 0, + activityIds: [ + 'com.android.packageinstaller.PackageInstallerActivity', + 'com.android.packageinstaller.DeleteStagedFileOnResult', + ], + matches: '[text="更新"]', + snapshotUrls: [ + 'https://i.gkd.li/import/13914644', + 'https://i.gkd.li/import/13914647', + ], + }, + { + key: 1, + preKeys: 0, + activityIds: ['com.android.packageinstaller.InstallSuccess'], + matches: '[text="完成"]', + snapshotUrls: 'https://i.gkd.li/import/13914923', + }, + ], + }, + { + enable: false, + key: 3, + quickFind: true, + name: '功能类-自动取消安装应用', + activityIds: [ + 'com.android.packageinstaller.PackageInstallerActivity', + 'com.android.packageinstaller.DeleteStagedFileOnResult', + ], + rules: [ + { + matches: '[text="取消"]', + snapshotUrls: 'https://i.gkd.li/import/13914647', + }, + ], + }, + ], +});