-
Notifications
You must be signed in to change notification settings - Fork 115
76 lines (66 loc) · 2.14 KB
/
gmsaas_spike.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: GMSaaS Test
on:
push:
branches: [ 'gmsaas-spike' ]
paths: [ '.github/**']
pull_request:
branches: [ main ]
paths: [ '.github/**']
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- api-level: 27
recipe_uuid: ea5fda48-fa8b-48c1-8acc-07d910856141 # Pixel XL, Android 8.1 (API 27)
# fb936099-d261-4dd3-8dec-3fc14f1d0f03 # Pixel 3a, Android 9.0 (API 28)
# 4c015ada-e64e-4f5d-a320-06cbf6e95648 # Pixel 3a, Android 10 (API 29)
# 95016679-8f8d-4890-b026-e4ad889aadf1 # Pixel 3a, Android 11 (API 30)
# see here for more recipes: https://support.genymotion.com/hc/en-us/articles/360007473658-Supported-Android-devices-templates-for-Genymotion-Cloud-SaaS
steps:
# Setup
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9.16"
architecture: "x64"
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Setup Android SDK
uses: android-actions/setup-android@v3
# Caching
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
# Create Genymotion instance
- name: Start Genymotion Cloud SaaS instance
uses: genymobile/genymotion-saas-github-action@v0.4
with:
email: ${{ secrets.GMSAAS_EMAIL }}
password: ${{ secrets.GMSAAS_PASSWORD }}
recipe_uuid: ${{ matrix.recipe_uuid }}
# - name: Disable Verity
# run: |
# adb root
# adb remount -R
- name: Make system writable
run: |
adb shell "mount -o rw,remount /"
- name: Push test file
run: |
echo tralala > tralala.txt
adb wait-for-device
adb shell ls
adb shell ls /system
adb push tralala.txt /system/
- name: Unmount system
run: |
adb shell "mount -o remount,ro /"
- name: Check
run: |
adb shell ls /product/etc/permissions/