Alex Light | 9b71cad | 2016-06-21 16:17:48 -0700 | [diff] [blame] | 1 | # Copyright 2016 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Jeff Vander Stoep | c159064 | 2019-02-23 06:08:43 -0800 | [diff] [blame] | 15 | service cppreopts /system/bin/cppreopts.sh /postinstall |
| 16 | oneshot |
| 17 | disabled |
| 18 | user root |
Wei Wang | a1dced2 | 2019-04-01 08:51:18 -0700 | [diff] [blame] | 19 | priority -20 |
| 20 | ioprio rt 0 |
| 21 | writepid /dev/cpuset/foreground/tasks |
Jeff Vander Stoep | c159064 | 2019-02-23 06:08:43 -0800 | [diff] [blame] | 22 | capabilities |
| 23 | |
Bowgo Tsai | 0f96196 | 2019-02-27 11:43:39 +0800 | [diff] [blame] | 24 | # Post install is above Treble VINTF, because it runs some utilities from |
| 25 | # /system. Therefore, the fstab can only be in either /system or /product. |
| 26 | on property:sys.cppreopt=requested && property:ro.postinstall.fstab.prefix=/system |
Yifan Hong | 7605f89 | 2019-01-02 11:50:34 -0800 | [diff] [blame] | 27 | mount_all /system/etc/fstab.postinstall |
Jeff Vander Stoep | c159064 | 2019-02-23 06:08:43 -0800 | [diff] [blame] | 28 | exec_start cppreopts |
Fyodor Kupolov | 9b8b12f | 2016-07-25 11:55:15 -0700 | [diff] [blame] | 29 | # Optional script to copy additional preloaded content to data directory |
Fyodor Kupolov | 17985b2 | 2016-07-27 14:50:04 -0700 | [diff] [blame] | 30 | exec - system system -- /system/bin/preloads_copy.sh /postinstall |
Yifan Hong | 6acf718 | 2019-04-09 11:53:00 -0700 | [diff] [blame] | 31 | umount_all /system/etc/fstab.postinstall |
| 32 | setprop sys.cppreopt finished |
| 33 | |
| 34 | on property:sys.cppreopt=requested && property:ro.postinstall.fstab.prefix=/product |
| 35 | mount_all /product/etc/fstab.postinstall |
| 36 | exec_start cppreopts |
| 37 | # Optional script to copy additional preloaded content to data directory |
| 38 | exec - system system -- /system/bin/preloads_copy.sh /postinstall |
| 39 | umount_all /product/etc/fstab.postinstall |
Alex Light | 9b71cad | 2016-06-21 16:17:48 -0700 | [diff] [blame] | 40 | setprop sys.cppreopt finished |