forked from gpzero/android_device_geeksphone_zero
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.zero.rc
More file actions
124 lines (105 loc) · 4.07 KB
/
init.zero.rc
File metadata and controls
124 lines (105 loc) · 4.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
on fs
mkdir /persist
mount yaffs2 mtd@persist /persist nosuid nodev
chown system system /persist
chmod 0777 /persist
symlink /persist/qcom_wlan_nv.bin /etc/firmware/wlan/qcom_wlan_nv.bin
#Add popedom for CIT by smartwireless ltd
chmod 777 /dev/graphics/fb0
chmod 777 /system/etc/lcdvcom
chmod 666 /dev/threadright0
mkdir /data/simcom 0777 system system
mkdir /data/simcom/simlog 0777 system system
chmod 777 /data/simcom/simlog
mkdir /data/simcom/btadd 0777 system system
chmod 777 /data/simcom/btadd
mkdir /data/misc/sensors 0777 compass system
chmod 777 /data/misc/sensors
#---enable keypad interrupt until boot complete
on boot
## RIL needs this
mkdir /data/radio 0777
mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
chown system system /sys/module/sco/parameters/disable_esco
chmod 0771 /cache
chmod 0660 /sys/module/bluetooth_power/parameters/power
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /proc/bluetooth/sleep/proto
chown bluetooth bluetooth /dev/ttyHS0
chmod 0660 /dev/ttyHS0
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
# Create the directories used by the Wireless subsystem
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/wifi/cert 0770 wifi wifi
mkdir /data/misc/wifi/cert/user 0770 wifi wifi
mkdir /data/misc/wifi/cert/as 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chmod 0770 /data/misc/wifi/cert/as
chown dhcp dhcp /data/misc/dhcp
chmod 666 /dev/mot
chmod 666 /dev/mmc31xx
chmod 666 /dev/ecompass_ctrl
chmod 666 /dev/cm3623_ps
chmod 666 /dev/cm3623_als
mkdir /data/misc/sensors 0777 system system
# Adjust socket buffer to enlarge TCP receive window for high bandwidth
write /proc/sys/net/ipv4/tcp_adv_win_scale 1
on property:dev.bootcomplete=1
#Optimizaciones de memoria y SD.
write /sys/module/lowmemorykiller/parameters/minfree 3584,4096,6144,7168,7680,8192
write /sys/module/lowmemorykiller/parameters/minfile 0,0,0,5120,5632,6144
write /sys/module/lowmemorykiller/parameters/check_filepages 1
write /proc/sys/vm/vfs_cache_pressure 1
write /proc/sys/vm/dirty_expire_centisecs 500
write /proc/sys/vm/dirty_writeback_centisecs 1000
write /proc/sys/vm/dirty_ratio 90
write /proc/sys/vm/dirty_background_ratio 70
write /proc/sys/vm/oom_kill_allocating_task 1
write /proc/sys/vm/drop_caches 3
write /proc/sys/vm/min_free_kbytes 4096
write /sys/block/mmcblk0/bdi/read_ahead_kb 2048
write /sys/devices/virtual/bdi/179:0/read_ahead_kb 2048
on property:init.svc.bluetoothd=running
write /sys/devices/virtual/bluetooth/hci0/idle_timeout 7000
start btwlancoex
on property:init.svc.bluetoothd=stopped
stop btwlancoex
service btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh
user root
group bluetooth net_bt_admin
disabled
oneshot
service hwprops /sbin/hwprops
critical
disabled
oneshot
service hciattach /system/bin/sh /system/bin/init.qcom.bt.sh
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service qmuxd /system/bin/qmuxd
service wpa_supplicant /system/bin/wpa_supplicant -Dawext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
user root
group wifi inet
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
on property:init.svc.wpa_supplicant=stopped
write /sys/devices/platform/msm_sdcc.2/polling 0
stop dhcpcd_wlan0
service dhcpcd_wlan0 /system/bin/dhcpcd -BKL wlan0
disabled
oneshot
# start memsicd service
service memsicd /system/bin/memsicd
oneshot
service wifi-loader /system/bin/logwrapper /system/bin/wificit.sh
disabled
oneshot