Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 123 lines (98 sloc) 3.47 KB
import init.smdk4210.usb.rc
on early-init
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard
on post-fs-data
# give system access to wpa_supplicant.conf for backup and restore
mkdir /data/misc/wifi 0770 wifi wifi
chmod 0770 /data/misc/wifi
chmod 0660 /data/misc/wifi/wpa_supplicant.conf
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
on boot
chown system system /sys/class/backlight/pwm-backlight/brightness
chmod 0660 /sys/class/backlight/pwm-backlight/brightness
chown radio system /sys/devices/virtual/misc/melfas_touchkey/brightness
chmod 0660 /sys/devices/virtual/misc/melfas_touchkey/brightness
#panorama directory creation
mkdir /data/pxtmpdir 0775
chown system system /data/pxtmpdir
chmod 0775 /data/pxtmpdir
# Permissions for dvfs lock
chown system system /sys/power/cpufreq_max_limit
chown system system /sys/power/cpufreq_min_limit
chmod 0660 /sys/power/cpufreq_max_limit
chmod 0660 /sys/power/cpufreq_min_limit
chown system system /sys/power/gpu_lock
chmod 0660 /sys/power/gpu_lock
mount debugfs /sys/kernel/debug /sys/kernel/debug
setprop ro.build.product GT-I9100
setprop ro.product.device GT-I9100
setprop ro.radio.noril yes
# Permisions for sensors
chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_selftest
chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_get_temp
chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_power_on
chown radio system /sys/devices/virtual/accelerometer/accelerometer/acc_file
chown radio system /sys/devices/virtual/sec/gsensorcal/calibration
# permissions for NFC
setprop ro.nfc.port "I2C"
chmod 0600 /dev/pn544
chown nfc nfc /dev/pn544
# Device Encryption by B2B Security Lab.
setprop ro.crypto.keyfile.userdata /efs/metadata
# fake some battery state
setprop status.battery.state Slow
setprop status.battery.level 5
setprop status.battery.level_raw 50
setprop status.battery.level_scale 9
service notified_event /system/bin/notified_event
class main
user system
group system
socket notified_event stream 0660 root system
service tscald /system/bin/tscald /data/data/com.samsung.app.sec_tscal/cal.conf /sys/devices/platform/s3c64xx-ts/set_tscal
user root
group root
oneshot
service wpa_supplicant /system/bin/wpa_supplicant \
-Dnl80211 -iwlan0 -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 0660 wifi wifi
disabled
oneshot
#for WiFi MFG(TestMode)
service mfgloader /system/bin/mfgloader
disabled
oneshot
service wlandutservice /system/bin/wlandutservice
user system
group wifi net_raw net_admin system inet
disabled
oneshot
service macloader /system/bin/macloader
oneshot
# end of wifi
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service iprenew_p2p /system/bin/dhcpcd -n
class main
disabled
oneshot