summaryrefslogtreecommitdiffstats
path: root/init.smdkv310.rc
diff options
context:
space:
mode:
Diffstat (limited to 'init.smdkv310.rc')
-rwxr-xr-xinit.smdkv310.rc200
1 files changed, 128 insertions, 72 deletions
diff --git a/init.smdkv310.rc b/init.smdkv310.rc
index 62a62a6..a2cacaa 100755
--- a/init.smdkv310.rc
+++ b/init.smdkv310.rc
@@ -41,11 +41,17 @@ on post-fs-data
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
mkdir /data/smc 0770 drmrpc drmrpc
+ mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
+ mkdir /data/misc/bluetooth 0770 system system
chown drmrpc drmrpc /data/smc/counter.bin
chown drmrpc drmrpc /data/smc/storage.bin
chown drmrpc drmrpc /data/smc/system.bin
setprop wifi.interface "wlan0"
+ write /data/.psm.info 1
+ chown system system /data/.psm.info
+ chmod 0600 /data/.psm.info
+
setprop vold.post_fs_data_done 1
on boot
@@ -75,6 +81,15 @@ on fs
# permissions for backlight
chown system system /sys/class/backlight/pwm-backlight/brightness
+ # permissions for NFC
+ setprop ro.nfc.port "I2C"
+ chmod 0600 /dev/pn544
+ chown nfc nfc /dev/pn544
+
+ # Tweak background writeout
+ write /proc/sys/vm/dirty_expire_centisecs 200
+ write /proc/sys/vm/dirty_background_ratio 5
+
# create data/gps for GPS demon
mkdir /data/gps 770 gps system
chown gps system /data/gps
@@ -111,16 +126,29 @@ on fs
chown system system /sys/devices/platform/android_usb/tethering
# setup for alsa snd device
- chmod 0770 /dev/snd/pcmC0D0c
- chmod 0770 /dev/snd/pcmC0D0p
- chmod 0770 /dev/snd/controlC0
- chmod 0770 /dev/snd/timer
- chmod 0770 /dev/snd/hwC0D0
-
- # Permissions for gpio_keys
- chown radio system /sys/devices/platform/sec_key.0/disabled_keys
- write /sys/devices/platform/sec_key.0/disabled_keys 114,115
-
+ symlink /dev/snd/pcmC0D0c /dev/pcmC0D0c
+ symlink /dev/snd/pcmC0D0p /dev/pcmC0D0p
+ symlink /dev/snd/controlC0 /dev/controlC0
+ symlink /dev/snd/timer /dev/timer
+ symlink /dev/snd/hwC0D0 /dev/hwC0D0
+ chmod 0777 /dev/pcmC0D0c
+ chmod 0777 /dev/pcmC0D0p
+ chmod 0777 /dev/controlC0
+ chmod 0777 /dev/timer
+ chmod 0777 /dev/hwC0D0
+ chmod 0777 /dev/snd/pcmC0D0c
+ chmod 0777 /dev/snd/pcmC0D0p
+ chmod 0777 /dev/snd/controlC0
+ chmod 0777 /dev/snd/timer
+ chmod 0777 /dev/snd/hwC0D0
+
+ # Permissions for gpio_keys
+ chown radio system /sys/devices/platform/sec_key.0/wakeup_keys
+ write /sys/devices/platform/sec_key.0/wakeup_keys 102,116
+
+ # Permissions for LCD
+ chown radio radio /sys/class/backlight/pwm-backlight/device/acl_set
+
# mDNIe
chown radio system /sys/devices/virtual/mdnieset_outdoor/switch_mdnieset_outdoor/mdnieset_outdoor_file_cmd
chown radio system /sys/devices/virtual/mdnieset_ui/switch_mdnieset_ui/mdnieset_init_file_cmd
@@ -130,85 +158,113 @@ on fs
write /sys/class/mdnieset_ui/switch_mdnieset_ui/mdnieset_ui_file_cmd 0
write /sys/class/mdnieset_ui/switch_mdnieset_ui/mdnieset_user_select_file_cmd 1
+ chown radio system /sys/power/state
+ chown radio system /sys/power/wake_lock
+ chown radio system /sys/power/wake_unlock
+ chown radio system /sys/power/dvfslock_ctrl
+ chown radio system /sys/power/dvfslimit_ctrl
+ chmod 0660 /sys/power/state
+ chmod 0660 /sys/power/wake_lock
+ chmod 0660 /sys/power/wake_unlock
+ chmod 0660 /sys/power/dvfslock_ctrl
+ chmod 0660 /sys/power/dvfslimit_ctrl
+
+ # permissions for touch test
+ chown radio system /sys/devices/virtual/misc/melfas_touchkey/enable_disable
+ chown radio system /sys/devices/virtual/misc/melfas_touchkey/brightness
+ chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_update
+ chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_version
+ chown radio system /sys/devices/virtual/misc/melfas_touchkey/brightness
+ chown radio system /sys/devices/virtual/misc/melfas_touchkey/touchkey_menu
+ chown radio system /sys/devices/virtual/misc/melfas_touchkey/touchkey_back
+ chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_sensitivity
+ chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_panel
+ chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_phone
+ chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update_status
+ chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_firm_version
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_threshould
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_delta4
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_refer4
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_delta3
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_refer3
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_delta2
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_refer2
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_delta1
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_refer1
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_delta0
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_refer0
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_module_on
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_module_off
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_all_refer
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/disp_all_refdata
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/set_all_delta
+ chown radio system /sys/devices/virtual/sec/tsp_noise_test/disp_all_deltadata
+ chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_version_panel
+ chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_version_phone
+ chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_update_status
+ chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_update
+ chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_threshold
+ chown radio system /sys/devices/virtual/sec/sec_touchscreen/mxt_touchtype
+
# Add permission for ATM.
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/misc/melfas_touchkey/touch_sensitivity
chown radio system /sys/devices/virtual/sec/gsensorcal/calibration
- chown radio system /sys/devices/virtual/jack/jack_selector/select_jack
- chown radio system /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/lcd_power
- chown radio system /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/octa_lcdtype
- chown radio system /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/lcdtype
- chown radio radio /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/acl_set
- chown radio radio /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/gamma_table
- chown radio radio /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi3.0/gamma_mode
- chown radio system /sys/devices/virtual/misc/melfas_touchkey/enable_disable
- chown radio system /sys/devices/virtual/misc/melfas_touchkey/brightness
- chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_update
- chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_version
- chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_panel
- chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_phone
- chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update_status
- chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_firm_version
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_threshould
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_all_refer
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_delta4
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_refer4
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_delta3
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_refer3
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_delta2
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_refer2
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_delta1
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_refer1
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_delta0
- chown radio system /sys/devices/virtual/sec/qt602240_noise_test/set_refer0
- chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_version_panel
- chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_version_phone
- chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_update_status
- chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_update
- chown radio system /sys/devices/virtual/sec/sec_touchscreen/tsp_threshold
- chown radio system /sys/devices/platform/s5p-ehci/ehci_runtime
- chown radio system /sys/devices/platform/modemctl/wakeup
- chown radio system /sys/devices/platform/modemctl/control
+ chown radio system /sys/class/sensors/barometer_sensor/sea_level_pressure
+ chown radio system /sys/class/sensors/barometer_sensor/eeprom_check
+ chown radio system /sys/class/sec/sec_epen/epen_firm_update
+ chown radio system /sys/class/sec/sec_epen/epen_rotation
+ chown radio system /sys/class/sec/sec_epen/epen_hand
+ chown radio system /sys/class/sec/sec_epen/epen_reset
+ chown radio system /sys/class/sec/sec_epen/epen_reset_result
+ chown radio system /sys/class/sec/sec_epen/epen_checksum
+ chown radio system /sys/class/sec/sec_epen/epen_checksum_result
+
+
chown radio system /sys/devices/platform/android_usb/tethering
chown radio system /sys/devices/platform/android_usb/UsbMenuSel
- chown radio system /sys/devices/virtual/sec/switch/disable_vbus
chown radio system /sys/devices/virtual/gpio/gpio225/value
- chown radio system /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_read_soc
- chown radio system /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_reset_soc
+
+ chown radio system /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_read_soc
+ chown radio system /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_reset_soc
chown radio system /sys/devices/platform/s3c2410-i2c.5/i2c-5/5-0066/max8997-muic/usb_sel
chown radio system /sys/devices/platform/s3c2410-i2c.5/i2c-5/5-0066/max8997-muic/audio_path
chown radio system /sys/devices/platform/s3c2410-i2c.5/i2c-5/5-0066/max8997-muic/otg_test
chown radio system /sys/devices/platform/s3c2410-i2c.5/i2c-5/5-0066/max8997-muic/adc_debounce_time
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_lpm_state
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/fg_psoc
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/system_rev
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_current_adc
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_test_value
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_spec
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_check
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_full_check
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_type
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/mp3
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/video
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_lp_charging
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/charging_source
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_avg
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_vfocv
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_soc
- chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_vol
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_lpm_state
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/fg_psoc
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/system_rev
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_current_now
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_current_adc
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_test_value
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_spec
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_check
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_full_check
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_type
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/mp3
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/video
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_lp_charging
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/charging_source
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_avg
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_temp
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_vfocv
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_soc
+ chown radio system /sys/devices/platform/sec-battery/power_supply/battery/batt_vol
+
+ # HSIC
+ chown radio system /sys/devices/platform/s5p-ehci/ehci_runtime
+ chown radio system /sys/devices/platform/modemctl/wakeup
+ chown radio system /sys/devices/platform/modemctl/control
chown radio system /sys/devices/platform/s5p-ehci/ehci_power
chown radio system /sys/devices/virtual/net/svnet0/waketime
- #for jack control
- chown radio system /sys/class/jack/jack_selector/select_jack
-
#bluetooth
+ setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
+ chown bluetooth bluetooth ro.bt.bdaddr_path
chown bluetooth bluetooth /dev/s3c2410_serial0
chmod 0660 /dev/s3c2410_serial0
chmod 0660 /sys/class/rfkill/rfkill0/state