summaryrefslogtreecommitdiff
path: root/gsid.rc
blob: 2c1a10bf75322421d61f642aeb51fcc759178fdf (plain)
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
service gsid /system/bin/gsid
    interface aidl gsiservice
    oneshot
    disabled
    user root
    group root system media_rw

on post-fs
    mkdir /metadata/gsi 0771 root system
    mkdir /metadata/gsi/dsu 0771 root system
    mkdir /metadata/gsi/ota 0771 root system
    mkdir /metadata/gsi/remount 0771 root system
    chmod 0664 /metadata/gsi/dsu/active
    chmod 0664 /metadata/gsi/dsu/booted
    chmod 0664 /metadata/gsi/dsu/lp_names

on post-fs-data
    write /data/gsi_persistent_data 0
    chown system system /data/gsi_persistent_data
    mkdir /data/gsi 0700 root root encryption=None
    mkdir /data/gsi/dsu 0700 root root
    mkdir /data/gsi/ota 0700 root root
    mkdir /data/gsi/remount 0700 root root

on boot
    exec_background - root root -- /system/bin/gsid run-startup-tasks