forked from badadaf/apkpatcher
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
49 lines (38 loc) · 1.06 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: 'apkmod-automation'
author: "Ariel Tubul"
description: 'Inject frida js script into an apk'
branding:
color: 'orange'
icon: 'smartphone'
inputs:
original-apk:
description: 'Path to original apk file'
required: true
output-apk:
description: 'Path to output apk file'
required: true
frida-script:
description: 'Path to frida js script to inject'
required: true
artifact-name:
description: 'Name of build artifact to upload'
required: false
default: ''
runs:
using: 'composite'
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Prepare apkmod
run: pip install apkmod && buildapp_fetch_tools
shell: pwsh
- name: Create patched app
run: apkmod -a ${{ inputs.original-apk }} -s ${{ inputs.frida-script }} -o ${{ inputs.output-apk }}
shell: pwsh
- name: Upload patched app
if: inputs.artifact-name != ''
uses: actions/upload-artifact@v3.1.2
with:
name: ${{ inputs.artifact-name }}
path: ${{ inputs.output-apk }}