Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.
Open
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
78 changes: 78 additions & 0 deletions src/apps/com.google.android.packageinstaller.ts
Original file line number Diff line number Diff line change
@@ -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',
},
],
},
],
});