Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

feat(应用安装器):优化规则 #4075

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions src/apps/com.android.packageinstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,35 @@ import { defineAppConfig } from '../types';

export default defineAppConfig({
id: 'com.android.packageinstaller',
name: 'vivo 软件包安装程序',
name: '软件包安装程序',
groups: [
{
key: 1,
name: '自动安装应用',
name: '功能类-自动安装应用',
quickFind: true,
rules: [
{
key: 0,
activityIds: 'com.android.packageinstaller.PackageInstallerActivity',
matches: '@LinearLayout > [text="继续安装"]',
snapshotUrls: 'https://i.gkd.li/import/13206444',
matches: '[text="继续安装"]',
snapshotUrls: [
'https://i.gkd.li/import/13206444',
'https://i.gkd.li/import/14046749',
],
},
{
key: 1,
preKeys: 0,
activityIds: 'com.android.packageinstaller.NewInstallInstalling',
matches: '@[clickable=true][childCount=1] > [text="完成"]',
snapshotUrls: 'https://i.gkd.li/import/13206476',
},
{
key: 2,
preKeys: 0,
activityIds: 'com.android.packageinstaller.NewInstallInstalling',
matches:
'[id="com.android.packageinstaller:id/done_button"][text="完成"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13766420',
matches: [
'@[clickable=true][childCount=1] > [text="完成"]',
'[id="com.android.packageinstaller:id/done_button"][clickable=true]',
],
snapshotUrls: [
'https://i.gkd.li/import/13206476', //规则1
//规则2
'https://i.gkd.li/import/13766420',
'https://i.gkd.li/import/13962438', //text=null
],
},
],
},
Expand Down