-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.carrier.rc
executable file
·150 lines (128 loc) · 5.62 KB
/
init.carrier.rc
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
on boot
# permission for Input Device(Touchkey).
chmod 0660 /sys/class/input/input2/enabled
chown system system /sys/class/input/input2/enabled
chown radio system /sys/class/sec/sec_touchkey/touch_sensitivity
chown radio system /sys/class/sec/sec_touchkey/touchkey_firm_update
chown system radio /sys/class/sec/sec_touchkey/glove_mode
chown system radio /sys/class/sec/sec_touchkey/flip_mode
chown system radio /sys/class/sec/sec_touchkey/boost_level
# permission for Input Device(Wacom).
chmod 0660 /sys/class/input/input3/enabled
chown system system /sys/class/input/input3/enabled
chown system radio /sys/class/sec/sec_epen/epen_firm_update
chown system radio /sys/class/sec/sec_epen/epen_rotation
chown system radio /sys/class/sec/sec_epen/epen_hand
chown system radio /sys/class/sec/sec_epen/epen_reset
chown system radio /sys/class/sec/sec_epen/epen_reset_result
chown system radio /sys/class/sec/sec_epen/epen_checksum
chown system radio /sys/class/sec/sec_epen/epen_checksum_result
chown system radio /sys/class/sec/sec_epen/epen_saving_mode
chown system radio /sys/class/sec/sec_epen/boost_level
# permissions for bluetooth.
setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
chown bluetooth net_bt_stack ro.bt.bdaddr_path
chown bluetooth net_bt_stack /dev/ttyHS0
chmod 0660 /dev/ttyHS0
chmod 0660 /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
# bluetooth LPM
chmod 0660 /proc/bluetooth/sleep/lpm
chmod 0220 /proc/bluetooth/sleep/btwrite
chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
chmod 0600 /dev/btlock
chown bluetooth bluetooth /dev/btlock
# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,704512,4096,16384,110208
setprop net.tcp.buffersize.wifi 4094,524400,1311012,4096,524400,1311012
setprop net.tcp.buffersize.lte 524288,1048576,1311012,524288,1048576,1311012
setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
setprop net.tcp.buffersize.hspa 4092,87380,704512,4096,16384,262144
setprop net.tcp.buffersize.hsupa 4092,87380,704512,4096,16384,262144
setprop net.tcp.buffersize.hsdpa 4092,87380,704512,4096,16384,110208
setprop net.tcp.buffersize.hspap 4092,87380,704512,4096,16384,262144
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
setprop net.tcp.buffersize.1xrtt 4094,26280,64860,4096,16384,64860
setprop net.tcp.buffersize.evdo 4094,26280,64860,4096,16384,64860
setprop net.tcp.buffersize.evdo_b 4094,87380,262200,4096,16384,262200
setprop net.tcp.buffersize.ehrpd 4094,87380,349600,4096,16384,349600
# Assign TCP buffer thresholds to be ceiling value of technology maximums
# Increased technology maximums should be reflected here.
write /proc/sys/net/core/rmem_max 1048576
# write /proc/sys/net/core/wmem_max 2097152
# NAT Timeout
write /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established 86400
# JPN: For MobileTV [ISDBT] \android\device\samsung\hltekdi\init.hltekdi.rc
chown system system /dev/isdbt
chmod 0660 /dev/isdbt
# JPN: For MobileTV [ISDBT] \android\device\samsung\hltedcm\init.hltedcm.rc
service mobileTV /system/bin/broadcastProcessObserver
class main
user system
group system radio audio camera graphics inet net_bt net_bt_admin net_raw sdcard_rw sdcard_r shell mmb
on post-fs-data
# JPN: For /efs/imei folder permission
chown radio radio /efs/imei
chmod 0775 /efs/imei
# 3LM settings
setprop ro.3lm.production 1
setprop ro.3LM.extended 1
setprop ro.3LM.oem_sd_encryption 1
setprop ro.3LM.oem_manifest 3
# JPN: For MobileTV [ISDBT] \android\device\samsung\hltekdi\init.hltekdi.rc
mkdir /data/atsc-mh 0775 system system
mkdir /data/one-seg 0775 system system
chown system system /data/atsc-mh
chown system system /data/one-seg
chmod 0775 /data/atsc-mh
chmod 0775 /data/one-seg
on fs
#For Absolute Persistence Partition
mkdir /persdata 0755 system system
mkdir /persdata/absolute 0750 system system
wait /dev/block/platform/msm_sdcc.1/by-name/persdata
check_fs /dev/block/platform/msm_sdcc.1/by-name/persdata ext4
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/persdata /persdata/absolute nosuid nodev barrier=1
chown system system /persdata
chmod 0755 /persdata
chown system system /persdata/absolute
chmod 0750 /persdata/absolute
# bluetooth dhcp config
service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_bt-pan /system/bin/dhcpcd -n
class late_start
disabled
oneshot
# service for TZPR provisioning version check app
service scranton_RD /system/bin/scranton_RD
class main
user root
disabled
oneshot
# start for TZPR provisioning version check app
on property:sys.qseecomd.enable=true
start scranton_RD
# TODO: replace it with device's DEXPREOPT_BOOT_JARS
# Felica
service mfsc /system/bin/mfsc
class core
user root
group system felicalock nfc
oneshot
service mfdp /system/bin/mfdp
class core
user root
group system felicalock nfc
oneshot