add local files

This commit is contained in:
Prabhjot Singh 2019-05-24 17:27:16 +05:30
parent 7cd02093c4
commit 974813cf3c
1694 changed files with 364708 additions and 0 deletions

View file

@ -0,0 +1,11 @@
service audio-hal-2-0 /vendor/bin/hw/android.hardware.audio@2.0-service
class hal
user audioserver
# media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct media_rw u10_media_rw
ioprio rt 4
writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
# audioflinger restarts itself when it loses connection with the hal
# and its .rc file has an "onrestart restart audio-hal" rule, thus
# an additional auto-restart from the init process isn't needed.
oneshot

View file

@ -0,0 +1,14 @@
service bluetooth-1-0 /vendor/bin/hw/android.hardware.bluetooth@1.0-service
class hal
user bluetooth
group bluetooth
writepid /dev/stune/foreground/tasks
on property:vts.native_server.on=1 && property:ro.build.type=userdebug
stop bluetooth-1-0
on property:vts.native_server.on=1 && property:ro.build.type=eng
stop bluetooth-1-0
on property:vts.native_server.on=0 && property:ro.build.type=userdebug
start bluetooth-1-0
on property:vts.native_server.on=0 && property:ro.build.type=eng
start bluetooth-1-0

View file

@ -0,0 +1,4 @@
service configstore-hal-1-0 /vendor/bin/hw/android.hardware.configstore@1.0-service
class hal animation
user system
group system

View file

@ -0,0 +1,6 @@
service drm-hal-1-0 /vendor/bin/hw/android.hardware.drm@1.0-service
class hal
user media
group mediadrm drmrpc system
ioprio rt 4
writepid /dev/cpuset/foreground/tasks

View file

@ -0,0 +1,6 @@
service drm-widevine-hal-1-0 /vendor/bin/hw/android.hardware.drm@1.0-service.widevine
class hal
user media
group system mediadrm drmrpc inet readproc radio
ioprio rt 4
writepid /dev/cpuset/foreground/tasks

View file

@ -0,0 +1,4 @@
service gatekeeper-1-0 /vendor/bin/hw/android.hardware.gatekeeper@1.0-service
class hal
user system
group system

View file

@ -0,0 +1,6 @@
service gralloc-2-0 /vendor/bin/hw/android.hardware.graphics.allocator@2.0-service
class hal animation
user system
group graphics drmrpc
capabilities SYS_NICE
onrestart restart surfaceflinger

View file

@ -0,0 +1,8 @@
service keymaster-3-0 /vendor/bin/hw/android.hardware.keymaster@3.0-service
class early_hal
user system
group system drmrpc
on post-fs-data
mkdir /efs/DAK 0775 system system
restorecon -R /efs/DAK

View file

@ -0,0 +1,4 @@
service light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service
class hal
user system
group system

View file

@ -0,0 +1,6 @@
service mediacodec /vendor/bin/hw/android.hardware.media.omx@1.0-service
class main
user mediacodec
group camera drmrpc mediadrm m2mscaler
ioprio rt 4
writepid /dev/cpuset/foreground/tasks

View file

@ -0,0 +1,4 @@
service memtrack-hal-1-0 /vendor/bin/hw/android.hardware.memtrack@1.0-service
class hal
user system
group system

View file

@ -0,0 +1,4 @@
service power-hal-1-0 /vendor/bin/hw/android.hardware.power@1.0-service
class hal
user system
group system

View file

@ -0,0 +1,5 @@
service sensors-hal-1-0 /vendor/bin/hw/android.hardware.sensors@1.0-service
class hal
user system
group system
capabilities SYS_NICE

View file

@ -0,0 +1,4 @@
service thermal-hal-1-0 /vendor/bin/hw/android.hardware.thermal@1.0-service
class hal
user system
group system

View file

@ -0,0 +1,4 @@
service usb-hal-1-0 /vendor/bin/hw/android.hardware.usb@1.0-service
class hal
user system
group system

View file

@ -0,0 +1,4 @@
service wifi_hal_legacy /vendor/bin/hw/android.hardware.wifi@1.0-service
class hal
user wifi
group wifi gps net_raw net_admin

View file

@ -0,0 +1,20 @@
#
# init.rc fragment for hostapd on Android
# Copyright (c) 2002-2016, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
#
on post-fs-data
mkdir /data/misc/wifi/hostapd 0770 wifi wifi
service hostapd /vendor/bin/hostapd \
-e /data/misc/wifi/entropy.bin \
/data/misc/wifi/hostapd.conf
class main
user wifi
group wifi net_raw net_admin
writepid /data/misc/wifi/hostapd.pid
disabled
oneshot

View file

@ -0,0 +1,56 @@
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
service ril-daemon /vendor/bin/hw/rild -l ${vendor.sec.rild.libpath}
class main
user radio
group radio cache inet misc audio sdcard_r sdcard_rw log vpn system readproc wakelock oem_5432
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW SYS_ADMIN CHOWN DAC_READ_SEARCH
socket sap_uim_socket1 stream 660 bluetooth bluetooth
onrestart restart cpboot-daemon
service ril-daemon1 /vendor/bin/hw/rild -c 2 -l ${vendor.sec.rild.libpath2}
class main
user radio
group radio cache inet misc audio sdcard_r sdcard_rw log vpn system readproc wakelock oem_5432
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW SYS_ADMIN CHOWN DAC_READ_SEARCH
disabled
on property:persist.sys.cpboot=disable
stop ril-daemon
stop cpboot-daemon
service SMD-daemon /vendor/bin/smdexe
class main
user root
group system radio inet net_raw
# DIAG
service DIAG-daemon /system/bin/diagexe
class main
user root
group system radio inet net_raw
# LSI CDMA project daemon support dun function
service VC-daemon /system/bin/vcd
class main
user root
group system
disabled
seclabel u:r:vcd:s0
on property:telephony.lteOnCdmaDevice=1
start VC-daemon
on early-boot
# Assign TCP buffer thresholds to be ceiling value of technology maximums
# Increased technology maximums should be reflected here.
write /proc/sys/net/core/rmem_max 2097152
write /proc/sys/net/core/wmem_max 2097152
on property:init.svc.ril-daemon1=restarting
restart ril-daemon

View file

@ -0,0 +1,61 @@
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
# service can not be overwritten except SPRINT
# Thus, rilcarrier is imported before common rc, like init.rilchip.rc
import /init.rilmptcp.rc
# AT Distributor for factory test
service at_distributor /vendor/bin/at_distributor
class late_start
user root
group radio misc log
service DR-daemon /vendor/bin/ddexe
class main
user root
group system radio inet net_raw
service BCS-daemon /vendor/bin/connfwexe
class main
user root
group system radio inet net_raw
# for ethernet
service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
# for SmartSwitch
service dhcpcd_usb0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
# for Wi-Fi only models
on property:ro.radio.noril=yes
stop ril-daemon
# for recovering at restarting netd
service recover_radio /system/bin/sh /system/etc/restart_radio_process.sh
class main
user root
group radio
disabled
oneshot
on post-fs-data
# For Samsung members
mkdir /data/log/err 0775 radio log
chown radio log /data/log/err
on property:init.svc.netd=restarting
start recover_radio
on post-fs-data
mkdir /efs/imei 0775 root radio
restorecon -R /efs/imei

View file

@ -0,0 +1,17 @@
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
on post-fs-data
mkdir /data/misc/eris 0770 system system
service eris /system/bin/eris
class main
socket eris stream 660 system system
user system
group system net_raw inet net_admin
oneshot
disabled

View file

@ -0,0 +1,5 @@
service ril-daemon /vendor/bin/hw/rild
class main
user radio
group radio cache inet misc audio log readproc wakelock
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW

View file

@ -0,0 +1,7 @@
service sec_fps_hal /vendor/bin/hw/vendor.samsung.hardware.biometrics.fingerprint@2.1-service
# "class hal" causes a race condition on some devices due to files created
# in /data. As a workaround, postpone startup until later in boot once
# /data is mounted.
class late_start
user system
group system input

View file

@ -0,0 +1,4 @@
service sec_gnss_service /vendor/bin/hw/vendor.samsung.hardware.gnss@1.0-service
class main
user system
group system gps

View file

@ -0,0 +1,4 @@
service sec-miscpower-1-0 /vendor/bin/hw/vendor.samsung.hardware.miscpower@1.0-service
class hal
user system
group system

View file

@ -0,0 +1,4 @@
service sec-vibrator-1-0 /vendor/bin/hw/vendor.samsung.hardware.vibrator@1.0-service
class hal
user system
group system

View file

@ -0,0 +1,6 @@
service vndservicemanager /vendor/bin/vndservicemanager /dev/vndbinder
class core
user system
group system readproc
writepid /dev/cpuset/system-background/tasks