David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 1 | service gsid /system/bin/gsid |
Howard Chen | 67a2709 | 2020-02-15 17:32:02 +0800 | [diff] [blame] | 2 | interface aidl gsiservice |
David Anderson | 4c75673 | 2019-07-12 14:18:37 -0700 | [diff] [blame] | 3 | oneshot |
David Anderson | 646b4b2 | 2019-02-27 18:26:54 -0800 | [diff] [blame] | 4 | disabled |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 5 | user root |
David Anderson | e7a8ade | 2019-03-13 19:21:22 -0700 | [diff] [blame] | 6 | group root system media_rw |
David Anderson | b3aff18 | 2019-01-11 14:37:51 -0800 | [diff] [blame] | 7 | |
David Anderson | b9b0274 | 2019-01-24 14:13:23 -0800 | [diff] [blame] | 8 | on post-fs |
David Anderson | 68fc053 | 2019-01-30 19:02:24 -0800 | [diff] [blame] | 9 | mkdir /metadata/gsi 0771 root system |
David Anderson | 836e243 | 2019-05-23 13:27:01 -0700 | [diff] [blame] | 10 | mkdir /metadata/gsi/dsu 0771 root system |
David Anderson | fb37a32 | 2019-07-03 15:01:40 -0700 | [diff] [blame] | 11 | mkdir /metadata/gsi/ota 0771 root system |
David Anderson | 930b51e | 2019-12-10 12:41:01 -0800 | [diff] [blame] | 12 | mkdir /metadata/gsi/remount 0771 root system |
Yi-Yo Chiang | f72d88a | 2021-03-22 13:45:39 +0800 | [diff] [blame^] | 13 | chmod 0664 /metadata/gsi/dsu/active |
| 14 | chmod 0664 /metadata/gsi/dsu/booted |
| 15 | chmod 0664 /metadata/gsi/dsu/lp_names |
David Anderson | 68fc053 | 2019-01-30 19:02:24 -0800 | [diff] [blame] | 16 | |
| 17 | on post-fs-data |
Howard Chen | 56c2eaa | 2020-12-25 17:32:20 +0800 | [diff] [blame] | 18 | write /data/gsi_persistent_data 0 |
| 19 | chown system system /data/gsi_persistent_data |
Paul Crowley | 231a522 | 2019-10-31 11:09:51 -0700 | [diff] [blame] | 20 | mkdir /data/gsi 0700 root root encryption=None |
David Anderson | 836e243 | 2019-05-23 13:27:01 -0700 | [diff] [blame] | 21 | mkdir /data/gsi/dsu 0700 root root |
David Anderson | fb37a32 | 2019-07-03 15:01:40 -0700 | [diff] [blame] | 22 | mkdir /data/gsi/ota 0700 root root |
David Anderson | 930b51e | 2019-12-10 12:41:01 -0800 | [diff] [blame] | 23 | mkdir /data/gsi/remount 0700 root root |
David Anderson | b9b0274 | 2019-01-24 14:13:23 -0800 | [diff] [blame] | 24 | |
David Anderson | b3aff18 | 2019-01-11 14:37:51 -0800 | [diff] [blame] | 25 | on boot |
Wei Wang | ab55ff5 | 2019-06-05 12:03:24 -0700 | [diff] [blame] | 26 | exec_background - root root -- /system/bin/gsid run-startup-tasks |