summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2013-07-30 01:20:12 +0200
committercodeworkx <codeworkx@cyanogenmod.org>2013-07-30 01:20:12 +0200
commit9ca23f8b82d8acc777b36bd0ef47a30d42b1716a (patch)
tree20c6eeab5923cdaaa29de4729efd07d0d115fc1f /rootdir
parente6720fe661f165964e86a7548b1cc38bbfc6b006 (diff)
downloaddevice_samsung_smdk4412-common-9ca23f8b82d8acc777b36bd0ef47a30d42b1716a.zip
device_samsung_smdk4412-common-9ca23f8b82d8acc777b36bd0ef47a30d42b1716a.tar.gz
device_samsung_smdk4412-common-9ca23f8b82d8acc777b36bd0ef47a30d42b1716a.tar.bz2
smdk4412: remove vold.fstab and recovery.rc, reorg rootdir
Change-Id: Ibae8f76260001c0e1f672376db92c60c6d580c10
Diffstat (limited to 'rootdir')
-rwxr-xr-xrootdir/init.smdk4x12.usb.rc97
-rwxr-xr-xrootdir/init.trace.rc31
-rw-r--r--rootdir/lpm.rc78
-rw-r--r--rootdir/ueventd.smdk4x12.rc105
4 files changed, 311 insertions, 0 deletions
diff --git a/rootdir/init.smdk4x12.usb.rc b/rootdir/init.smdk4x12.usb.rc
new file mode 100755
index 0000000..72de75e
--- /dev/null
+++ b/rootdir/init.smdk4x12.usb.rc
@@ -0,0 +1,97 @@
+on init
+ write /sys/class/android_usb/android0/iSerial ${ro.serialno}
+ write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung
+ write /sys/class/android_usb/android0/f_rndis/vendorID 04e8
+ write /sys/class/android_usb/android0/f_rndis/wceis 1
+
+on boot
+ write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
+ write /sys/class/android_usb/android0/iProduct ${ro.product.model}
+ write /sys/class/android_usb/f_mass_storage/inquiry_string "Samsung"
+
+on property:sys.usb.config=mtp
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 685c
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=mtp,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6860
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=rndis
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6863
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/bDeviceClass 224
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=rndis,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6864
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/bDeviceClass 224
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=ptp
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6865
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=ptp,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6866
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=rndis,dm
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6864
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=rndis,acm,dm
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6864
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/f_acm/instances 1
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=mass_storage
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 685b
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=mass_storage,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 685e
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state $sys.usb.config
diff --git a/rootdir/init.trace.rc b/rootdir/init.trace.rc
new file mode 100755
index 0000000..1d114f5
--- /dev/null
+++ b/rootdir/init.trace.rc
@@ -0,0 +1,31 @@
+## Permissions to allow system-wide tracing to the kernel trace buffer.
+##
+on boot
+
+# Allow writing to the kernel trace log.
+ chmod 0222 /sys/kernel/debug/tracing/trace_marker
+
+# Allow the shell group to enable (some) kernel tracing.
+ chown root shell /sys/kernel/debug/tracing/trace_clock
+ chown root shell /sys/kernel/debug/tracing/buffer_size_kb
+ chown root shell /sys/kernel/debug/tracing/options/overwrite
+ chown root shell /sys/kernel/debug/tracing/events/sched/sched_switch/enable
+ chown root shell /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
+ chown root shell /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
+ chown root shell /sys/kernel/debug/tracing/events/power/cpu_idle/enable
+ chown root shell /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
+ chown root shell /sys/kernel/debug/tracing/tracing_on
+
+ chmod 0664 /sys/kernel/debug/tracing/trace_clock
+ chmod 0664 /sys/kernel/debug/tracing/buffer_size_kb
+ chmod 0664 /sys/kernel/debug/tracing/options/overwrite
+ chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_switch/enable
+ chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
+ chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
+ chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_idle/enable
+ chmod 0664 /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
+ chmod 0664 /sys/kernel/debug/tracing/tracing_on
+
+# Allow only the shell group to read and truncate the kernel trace.
+ chown root shell /sys/kernel/debug/tracing/trace
+ chmod 0660 /sys/kernel/debug/tracing/trace
diff --git a/rootdir/lpm.rc b/rootdir/lpm.rc
new file mode 100644
index 0000000..2a94492
--- /dev/null
+++ b/rootdir/lpm.rc
@@ -0,0 +1,78 @@
+on early-init
+ start ueventd
+
+on init
+ export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ export LD_LIBRARY_PATH /vendor/lib:/system/lib
+ export ANDROID_ROOT /system
+ export ANDROID_DATA /data
+ export EXTERNAL_STORAGE /sdcard
+
+ symlink /system/etc /etc
+
+ mkdir /sdcard
+ mkdir /preload
+ mkdir /system
+ mkdir /data
+ mkdir /cache
+ mkdir /efs
+ mkdir /tmp
+ mkdir /dbdata
+ mkdir /mnt 0775 root root
+ #mount /tmp /tmp tmpfs
+
+on early-fs
+ mount ext4 /dev/block/mmcblk0p9 /system ro wait noatime
+ mount ext4 /dev/block/mmcblk0p12 /data wait nosuid nodev noatime discard,noauto_da_alloc,journal_async_commit
+
+ mkdir /data/log 0777
+ chmod 0666 /dev/log/radio
+ chmod 0666 /dev/log/main
+ chmod 0666 /dev/log/event
+
+on boot
+# write /sys/class/sec/switch/usb_sel PDA
+
+# CPU Frequency Governor
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq
+
+# EHCI runtime enable for LPA
+ write /sys/devices/platform/s5p-ehci/power/control auto
+
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+ class_start default
+
+service debuggerd /system/bin/debuggerd
+
+service ueventd /sbin/ueventd
+ critical
+
+service console /system/bin/sh
+ console
+
+service playlpm /system/bin/playlpm
+ user root
+
+service immvibed /system/bin/immvibed
+ oneshot
+
+service lpmkey /system/bin/lpmkey
+ user root
+
+# adbd is controlled by the persist.service.adb.enable system property
+service adbd /sbin/adbd
+ disabled
+
+# adbd on at boot in emulator
+on property:ro.kernel.qemu=1
+ start adbd
+
+on property:persist.service.adb.enable=1
+ start adbd
+
+on property:persist.service.adb.enable=0
+ stop adbd
+
diff --git a/rootdir/ueventd.smdk4x12.rc b/rootdir/ueventd.smdk4x12.rc
new file mode 100644
index 0000000..541eabb
--- /dev/null
+++ b/rootdir/ueventd.smdk4x12.rc
@@ -0,0 +1,105 @@
+/dev/mali 0666 system system
+/dev/ump 0666 system graphics
+/dev/ion 0666 system system
+/dev/exynos-mem 0660 system camera
+
+/dev/media0 0660 system system
+/dev/media1 0660 system camera
+/dev/media2 0660 system camera
+/dev/v4l-subdev0 0660 system system
+/dev/v4l-subdev1 0660 system system
+/dev/v4l-subdev3 0660 system system
+/dev/v4l-subdev4 0660 system system
+/dev/v4l-subdev5 0660 system system
+/dev/v4l-subdev6 0660 system system
+/dev/v4l-subdev7 0660 system system
+/dev/v4l-subdev8 0660 system system
+/dev/v4l-subdev9 0660 system system
+/dev/v4l-subdev10 0660 system system
+/dev/v4l-subdev11 0660 system system
+/dev/v4l-subdev12 0660 system system
+/dev/v4l-subdev13 0660 system system
+/dev/v4l-subdev14 0660 system system
+/dev/v4l-subdev15 0660 system system
+/dev/v4l-subdev16 0660 system system
+/dev/v4l-subdev17 0660 system system
+
+/dev/video0 0666 system system
+/dev/video1 0666 system camera
+/dev/video2 0666 system system
+/dev/video3 0666 system system
+/dev/video4 0666 system system
+/dev/video11 0666 system system
+/dev/video12 0666 system system
+/dev/video16 0666 system system
+/dev/video20 0666 system system
+/dev/video6 0660 media graphics
+/dev/video7 0660 media graphics
+
+/dev/video11 0666 system graphics
+/dev/video12 0660 system camera
+
+/dev/video16 0660 system system
+/dev/video17 0660 system system
+/dev/video18 0660 system system
+/dev/video19 0660 system system
+
+# Rotator
+/dev/video21 0660 system system
+
+/dev/video23 0660 system system
+/dev/video24 0660 system system
+/dev/video25 0660 system camera
+/dev/video26 0666 media m2m
+/dev/video29 0666 media m2m
+/dev/video32 0660 media m2m
+
+/dev/video33 0660 system system
+/dev/video34 0660 system system
+
+/dev/video40 0660 system camera
+/dev/video41 0660 system camera
+/dev/video42 0660 system camera
+/dev/video43 0660 system camera
+
+/dev/i2c-2 0660 system system
+/dev/i2c-5 0660 system system
+/dev/i2c-6 0660 system system
+/dev/CEC 0660 system system
+/dev/HPD 0660 system system
+/dev/fimg2d 0666 system graphics
+/dev/fmradio 0660 system audio
+
+#ALP Audio
+/dev/srp 0660 system audio
+
+/dev/s3c-mfc 0666 system graphics
+/dev/s5p-mfc 0666 system graphics
+
+/dev/ttyUSB0 0666 system system
+/dev/ttyUSB1 0666 system system
+/dev/ttyUSB2 0666 system system
+/dev/hsic* 0660 system radio
+/dev/usb/lp* 0660 system usb
+/dev/block/mmcblk0p4 0660 system radio
+/dev/block/mmcblk0p7 0660 system radio
+
+/dev/ttySAC* 0660 root system
+/dev/umts* 0660 system radio
+/dev/lte* 0660 system radio
+/dev/cdma* 0660 system radio
+/dev/link_pm 0660 system radio
+
+# sensor sysfs properties
+/sys/devices/virtual/input/input* acc_poll_delay 0660 system radio
+/sys/devices/virtual/input/input* gyro_poll_delay 0660 system radio
+/sys/devices/virtual/input/input* pressure_poll_delay 0660 system radio
+/sys/devices/virtual/input/input* light_poll_delay 0660 system radio
+/sys/devices/virtual/input/input* prox_poll_delay 0660 system radio
+
+# sensorhub
+/dev/ssp_sensorhub 0660 system input
+
+# t0lte
+/dev/block/mmcblk0p10 0660 system radio
+/dev/mdm 0660 system system