blob: 2c1a10bf75322421d61f642aeb51fcc759178fdf [file] [log] [blame]
David Andersonc053b3b2019-01-08 18:22:07 -08001service gsid /system/bin/gsid
Howard Chen67a27092020-02-15 17:32:02 +08002 interface aidl gsiservice
David Anderson4c756732019-07-12 14:18:37 -07003 oneshot
David Anderson646b4b22019-02-27 18:26:54 -08004 disabled
David Andersonc053b3b2019-01-08 18:22:07 -08005 user root
David Andersone7a8ade2019-03-13 19:21:22 -07006 group root system media_rw
David Andersonb3aff182019-01-11 14:37:51 -08007
David Andersonb9b02742019-01-24 14:13:23 -08008on post-fs
David Anderson68fc0532019-01-30 19:02:24 -08009 mkdir /metadata/gsi 0771 root system
David Anderson836e2432019-05-23 13:27:01 -070010 mkdir /metadata/gsi/dsu 0771 root system
David Andersonfb37a322019-07-03 15:01:40 -070011 mkdir /metadata/gsi/ota 0771 root system
David Anderson930b51e2019-12-10 12:41:01 -080012 mkdir /metadata/gsi/remount 0771 root system
Yi-Yo Chiangf72d88a2021-03-22 13:45:39 +080013 chmod 0664 /metadata/gsi/dsu/active
14 chmod 0664 /metadata/gsi/dsu/booted
15 chmod 0664 /metadata/gsi/dsu/lp_names
David Anderson68fc0532019-01-30 19:02:24 -080016
17on post-fs-data
Howard Chen56c2eaa2020-12-25 17:32:20 +080018 write /data/gsi_persistent_data 0
19 chown system system /data/gsi_persistent_data
Paul Crowley231a5222019-10-31 11:09:51 -070020 mkdir /data/gsi 0700 root root encryption=None
David Anderson836e2432019-05-23 13:27:01 -070021 mkdir /data/gsi/dsu 0700 root root
David Andersonfb37a322019-07-03 15:01:40 -070022 mkdir /data/gsi/ota 0700 root root
David Anderson930b51e2019-12-10 12:41:01 -080023 mkdir /data/gsi/remount 0700 root root
David Andersonb9b02742019-01-24 14:13:23 -080024
David Andersonb3aff182019-01-11 14:37:51 -080025on boot
Wei Wangab55ff52019-06-05 12:03:24 -070026 exec_background - root root -- /system/bin/gsid run-startup-tasks