summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorRGIB <gibellini.roberto@gmail.com>2016-11-11 22:12:22 +0100
committerRGIB <gibellini.roberto@gmail.com>2016-11-11 22:14:36 +0100
commit59404fd3487ba4b00a342434ce11a694c41bc954 (patch)
tree0042544658ce6961403f6eac79ca6217b8efc5cc /rootdir
parentae0d646b17da6f5f2b55df33efbb003695ada892 (diff)
downloaddevice_samsung_i9305-59404fd3487ba4b00a342434ce11a694c41bc954.zip
device_samsung_i9305-59404fd3487ba4b00a342434ce11a694c41bc954.tar.gz
device_samsung_i9305-59404fd3487ba4b00a342434ce11a694c41bc954.tar.bz2
i9305 : first cleanup
Change-Id: I88cefacf04498be4c95fd013a2a3b92429910f18
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, 20 insertions, 132 deletions
diff --git a/rootdir/fstab.smdk4x12 b/rootdir/fstab.smdk4x12
index e54474f..375320d 100644
--- a/rootdir/fstab.smdk4x12
+++ b/rootdir/fstab.smdk4x12
@@ -3,19 +3,18 @@
# 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/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
+/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
# vold-managed volumes ("block device" is actually a sysfs devpath)
-/devices/platform/s3c-sdhci.2/mmc_host/mmc1 auto auto defaults voldmanaged=sdcard1:auto
-/devices/platform/s5p-ehci auto auto defaults voldmanaged=usbdisk0:auto
+/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
# recovery
-/dev/block/mmcblk0p8 /boot emmc defaults recoveryonly
-/dev/block/mmcblk0p9 /recovery emmc defaults recoveryonly
-/dev/block/mmcblk0p10 /modem emmc defaults recoveryonly
+/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
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index c2d8c5c..2f9b9ed 100644
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -1,6 +1,7 @@
-import init.bt.rc
-
+###########################################################################################################
on init
+###########################################################################################################
+
# Vibetonz
export VIBE_PIPE_PATH /dev/pipes
mkdir /dev/pipes 0771 shell shell
@@ -36,11 +37,14 @@ 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
@@ -76,10 +80,6 @@ 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,52 +90,21 @@ 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
@@ -146,12 +115,3 @@ 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
deleted file mode 100644
index 7285736..0000000
--- a/rootdir/lpm.rc
+++ /dev/null
@@ -1,71 +0,0 @@
-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
-