aboutsummaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorRoberto Gibellini <gibellini.roberto@gmail.com>2016-11-19 17:22:19 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-11-19 16:37:05 -0800
commit0488ab51809a1203a0bab41692743b4c7adb917d (patch)
treec5883e180ab22880ed63df0fb5f68551df4b70f6 /rootdir
parentf2a3063bc88ee0a075c04fa274c10c39c7abfc9b (diff)
downloaddevice_samsung_i9305-0488ab51809a1203a0bab41692743b4c7adb917d.zip
device_samsung_i9305-0488ab51809a1203a0bab41692743b4c7adb917d.tar.gz
device_samsung_i9305-0488ab51809a1203a0bab41692743b4c7adb917d.tar.bz2
Revert "i9305 : first cleanup"
I'll push single commits This reverts commit 59404fd3487ba4b00a342434ce11a694c41bc954. Change-Id: I935bb25cf6f47bcb768522bc4ad846dabd720e65
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/fstab.smdk4x1223
-rw-r--r--rootdir/init.target.rc58
-rw-r--r--rootdir/lpm.rc71
3 files changed, 132 insertions, 20 deletions
diff --git a/rootdir/fstab.smdk4x12 b/rootdir/fstab.smdk4x12
index 375320d..e54474f 100644
--- a/rootdir/fstab.smdk4x12
+++ b/rootdir/fstab.smdk4x12
@@ -3,18 +3,19 @@
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
# data partition must be located at the bottom for supporting device encryption
-/dev/block/platform/dw_mmc/by-name/SYSTEM /system ext4 ro wait
-/dev/block/platform/dw_mmc/by-name/EFS /efs ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check
-/dev/block/platform/dw_mmc/by-name/CACHE /cache ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check
-/dev/block/platform/dw_mmc/by-name/RADIO /firmware vfat ro,shortname=lower,fmask=0133,dmask=0022 wait
-/dev/block/platform/dw_mmc/by-name/USERDATA /data ext4 noatime,nosuid,nodev,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=footer
-/dev/block/platform/dw_mmc/by-name/TOMBSTONES /tombstones ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check
+
+/dev/block/mmcblk0p13 /system ext4 ro wait
+/dev/block/mmcblk0p3 /efs ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check
+/dev/block/mmcblk0p12 /cache ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check
+/dev/block/mmcblk0p11 /tombstones ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check
+/dev/block/mmcblk0p10 /firmware vfat ro,shortname=lower,fmask=0133,dmask=0022,context=u:object_r:radio_efs_file:s0 wait
+/dev/block/mmcblk0p16 /data ext4 noatime,nosuid,nodev,discard,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=footer
# vold-managed volumes ("block device" is actually a sysfs devpath)
-/devices/platform/s3c-sdhci.2/mmc_host/mmc1* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
-/devices/platform/s5p-ehci* auto auto defaults voldmanaged=usb:auto,noemulatedsd
+/devices/platform/s3c-sdhci.2/mmc_host/mmc1 auto auto defaults voldmanaged=sdcard1:auto
+/devices/platform/s5p-ehci auto auto defaults voldmanaged=usbdisk0:auto
# recovery
-/dev/block/platform/dw_mmc/by-name/BOOT /boot emmc defaults recoveryonly
-/dev/block/platform/dw_mmc/by-name/RECOVERY /recovery emmc defaults recoveryonly
-/dev/block/platform/dw_mmc/by-name/RADIO /modem emmc defaults recoveryonly
+/dev/block/mmcblk0p8 /boot emmc defaults recoveryonly
+/dev/block/mmcblk0p9 /recovery emmc defaults recoveryonly
+/dev/block/mmcblk0p10 /modem emmc defaults recoveryonly
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index 2f9b9ed..c2d8c5c 100644
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -1,7 +1,6 @@
-###########################################################################################################
-on init
-###########################################################################################################
+import init.bt.rc
+on init
# Vibetonz
export VIBE_PIPE_PATH /dev/pipes
mkdir /dev/pipes 0771 shell shell
@@ -37,14 +36,11 @@ on init
rmdir /tombstones/efs
mkdir /tombstones/efs 771 system system
-###########################################################################################################
on post-fs-data
-###########################################################################################################
-
chown system radio /dev/block/platform/dw_mmc/by-name
chmod 0775 /dev/block/platform/dw_mmc/by-name
-# QCRIL
+ #QCRIL
#Create QMUX deamon socket area
mkdir /dev/socket/qmux_radio 0777 radio radio
chmod 2777 /dev/socket/qmux_radio
@@ -80,6 +76,10 @@ on post-fs-data
restorecon /tombstones/qcks/efs3.bin
restorecon /tombstones/qcks/temp.dump
+ # for AT distributor
+ chown system radio /sys/module/cpuidle_exynos4/parameters/enable_mask
+ chmod 0664 /sys/module/cpuidle_exynos4/parameters/enable_mask
+
# Waketime fot fast dormancy
chown system radio /sys/devices/platform/mdm_hsic_pm0/waketime
chmod 0660 /sys/devices/platform/mdm_hsic_pm0/waketime
@@ -90,21 +90,52 @@ on post-fs-data
# make param block device link for SysScope
symlink /dev/block/mmcblk0p7 /dev/block/param
-###########################################################################################################
on boot
-###########################################################################################################
# SISO-ANDR_PERF :: START Changing scheduler to cfq and reseting cpu min freq to -1 after boot complete
on property:sys.boot_completed=1
write /sys/block/mmcblk0/queue/scheduler cfq
write /sys/power/cpufreq_min_limit -1
+# write /proc/sys/net/ipv6/conf/rmnet_usb0/accept_ra 2
+# write /proc/sys/net/ipv6/conf/rmnet_usb1/accept_ra 2
+# write /proc/sys/net/ipv6/conf/rmnet_usb2/accept_ra 2
+# write /proc/sys/net/ipv6/conf/rmnet_usb3/accept_ra 2
# SISO-ANDR_PERF :: END
+# AT Distributor for factory test
+service at_distributor /system/bin/at_distributor
+ class late_start
+ user root
+ group radio log
+
+# diag app for cp uart
+service diag_uart_log /system/bin/diag_uart_log
+ class main
+ user root
+ group radio
+
+service netmgrd /system/bin/netmgrd
+ class late_start
+
+service SMD-daemon /system/bin/smdexe
+ class main
+ user root
+ group system radio inet net_raw
+
service qc_kickstart /system/bin/qcks s
class core
user root
+ seclabel u:r:kickstart:s0
group radio cache inet misc audio sdcard_rw log
+service ril-daemon /system/bin/rild
+ class main
+ socket rild stream 666 root radio
+ socket rild-debug stream 666 radio system
+ user root
+ group radio cache inet misc audio sdcard_rw qcom_oncrpc diag log sdcard_r
+
+#For EncryptionMode - remove disabled, Modify class main
service qmiproxy /system/bin/qmiproxy
class main
user radio
@@ -115,3 +146,12 @@ service qmuxd /system/bin/qmuxd
user root
seclabel u:r:qmux:s0
group radio log audio bluetooth gps log
+
+# TVout
+service TvoutService_C /system/bin/bintvoutservice
+ class main
+ user system
+ group graphics
+
+on property:ro.tvout.enable=false
+ stop TvoutService_C
diff --git a/rootdir/lpm.rc b/rootdir/lpm.rc
new file mode 100644
index 0000000..7285736
--- /dev/null
+++ b/rootdir/lpm.rc
@@ -0,0 +1,71 @@
+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/mmcblk0p13 /system ro wait noatime
+
+ 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 lpm /system/bin/lpm
+ 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
+