-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.stm.camera.rc
More file actions
70 lines (64 loc) · 2.27 KB
/
init.stm.camera.rc
File metadata and controls
70 lines (64 loc) · 2.27 KB
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
#
# Copyright 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# remind init order
# 1. Run early-init commands.
# 2. coldboot: Check that ueventd has populated /dev.
# 3. Initialize property service’s internal data structures.
# 4. Set up handler for keychords.
# 5. Initialize the console and display startup text or image.
# 6. Set up initial properties such as ro.serialno, ro.baseband, and ro.carrier.
# 7. Run init commands.
# 8. Run early-fs commands.
# 9. Run fs commands.
# 10. Run post-fs commands.
# 11. Run late-fs commands.
# 12. Run post-fs-data commands.
# 13. Start the property service.
# 14. Prepare to receive SIGCHLD signals.
# 15. Make sure that the property service socket and SIGCHLD handler are ready.
# 16. Run early-boot commands.
# 17. Run boot commands.
# 18. Run all property-triggered commands based on current property values.
on late-fs
chown media media /dev/v4l-subdev0
chmod 0664 /dev/v4l-subdev0
chown media media /dev/v4l-subdev1
chmod 0664 /dev/v4l-subdev1
chown media media /dev/v4l-subdev2
chmod 0664 /dev/v4l-subdev2
chown media media /dev/v4l-subdev3
chmod 0664 /dev/v4l-subdev3
chown media media /dev/v4l-subdev4
chmod 0664 /dev/v4l-subdev4
chown media media /dev/v4l-subdev5
chmod 0664 /dev/v4l-subdev5
chown media media /dev/v4l-subdev6
chmod 0664 /dev/v4l-subdev6
# Allow camerasetup to print to kmsg
chmod 0602 /dev/kmsg
start camera_init
on property:vendor.camera.update=1
start camera_update
service camera_init /vendor/bin/camerasetup -v
user cameraserver
group system media camera
disabled
oneshot
service camera_update /vendor/bin/camerasetup -u -v
user cameraserver
group system media camera
disabled
oneshot