From 7d155e79cdfa4f9a74d690fdd32a247dda94b514 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Fri, 27 Sep 2024 10:37:07 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E8=BD=AF=E4=BB=B6=E5=8C=85=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E7=A8=8B=E5=BA=8F):=20=E5=8A=9F=E8=83=BD=E7=B1=BB-?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=AE=89=E8=A3=85=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.android.packageinstaller.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/apps/com.android.packageinstaller.ts b/src/apps/com.android.packageinstaller.ts index 3ec7c99c..3a58f0c0 100644 --- a/src/apps/com.android.packageinstaller.ts +++ b/src/apps/com.android.packageinstaller.ts @@ -62,13 +62,20 @@ export default defineGkdApp({ key: 4, fastQuery: true, position: { - left: 'width * 0.7185', - top: 'width * 0.1157', + left: 'width * 1.5394', + top: 'height * 0.5', }, - activityIds: 'com.android.packageinstaller.PackageInstallerActivity', - excludeMatches: ['[text="继续安装"]', '[text="完成"]'], - matches: '[vid="buttons_panel"]', - snapshotUrls: 'https://i.gkd.li/i/14969116', + activityIds: [ + '.PackageInstallerActivity', + '.DeleteStagedFileOnResult', + ], + excludeMatches: '[text="继续安装" || text="完成"]', + matches: + 'LinearLayout[childCount=1] > Button[text="取消"][childCount=0]', + snapshotUrls: [ + 'https://i.gkd.li/i/14969116', + 'https://i.gkd.li/i/17158050', + ], }, ], },