-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPBM_settings.txt
More file actions
169 lines (112 loc) · 6 KB
/
PBM_settings.txt
File metadata and controls
169 lines (112 loc) · 6 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
关于电话本里的emergency-list设置问题,根据pbm_hardcode_ecc_config这个值去做选择:
1.可以通过NV控制使能单独对应的文件,此类文件中一般配置了需要使用的emergency-numbers;
2.直接通过hardcode进行修改,但是需要把一系列的NV控制的文件都删除掉或不使能。
在根据uim_present这个参入参数去选择有无sim的情况。
关注以下这4个NV:(reliance网络都未配置,CMCC网络都有配置,每个NV都有对应设置文件)
67221 --> global ecc number
69736 --> pbm_hardcode_ecc_config
69737 --> pbm_hardcode_ecc_list
73755 --> per sub ecc list
因为reliance网络没有配置以上NV,在没有要求的前提下,只关注hardcode配置和qcril.db中的配置内容。
另外和一个db相关的Android属性设置:persist.radio.custom_ecc --> qcril.db
cp /system/vendor/qcril.db /data/misc/radio/qcril.db
关于qcril.db这个数据库文件,设置了包括各类MBN文件对应的各运营商的IIN字段和MCC-MNC列表,各运营商网络的的紧急号码列表。
中国(460,461) 加拿大(302) 美国(310) 印度(405,406) 缅甸(414)
452 VN 越南 Vietnam
456 KH 柬埔寨 Cambodia
457 LA 老挝
502 MY 马来西亚 Malaysia
510 ID 印度尼西亚 Indonesia
515 PH 菲律宾 Philippines
520 TH 泰国 Thailand
730 CL 智利 Chile
具体紧急号码的列表如下:
中国
460 110
460 112
460 119
460 120
460 122
460 999
印度
404 100
404 101
404 102
404 108
404 112
--------
405 100
405 101
405 102
405 108
405 112
PBM部分的代码结构和逻辑,需要再仔细看一次。
PBM在当前代码基础上添加qcril.db进编译选项。
1.对应数据库文件路径
/LINUX/android/vendor/qcom/proprietary/qcril/qcril_database/qcril.db
2.使能db文件的android属性值
/LINUX/android/device/qcom/common/common.mk
/LINUX/android/device/qcom/common/common64.mk
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.extension_library=libqti-perfd-client.so \
persist.radio.apm_sim_not_pwdn=1 \
persist.radio.sib16_support=1 \
persist.radio.custom_ecc=1 \
ro.frp.pst=/dev/block/bootdevice/by-name/config
3./LINUX/android/device/lge/hammerhead/device.mk (这个应该不需要)
# Setup custom emergency number list based on the MCC. This is needed by RIL
PRODUCT_PROPERTY_OVERRIDES += \
persist.radio.custom_ecc=1
4./LINUX/android/vendor/qcom/proprietary/qrdplus/Extension/config/Android.mk
##############radio property#####################
# Set the default value for CSVT and this prop needn't control by toos.
ADDITIONAL_BUILD_PROPERTIES += persist.radio.calls.on.ims=0
ADDITIONAL_BUILD_PROPERTIES += persist.radio.jbims=0
ADDITIONAL_BUILD_PROPERTIES += persist.radio.csvt.enabled=false
# Enable the custom ecclist, need database file also
ADDITIONAL_BUILD_PROPERTIES += persist.radio.custom_ecc=1
# Enable radio tech support when PLMN search and select network
ADDITIONAL_BUILD_PROPERTIES += persist.radio.rat_on=combine
# Set the timeout of pending ACK for mt sms
ADDITIONAL_BUILD_PROPERTIES += persist.radio.mt_sms_ack=20
5./LINUX/android/device/qcom/common/rootdir/etc/init.qcom.sh
start_copying_prebuilt_qcril_db()
{
if [ -f /system/vendor/qcril.db -a ! -f /data/misc/radio/qcril.db ]; then
cp /system/vendor/qcril.db /data/misc/radio/qcril.db
chown -h radio.radio /data/misc/radio/qcril.db
fi
}
...
# Copy qcril.db if needed for RIL
#
start_copying_prebuilt_qcril_db
echo 1 > /data/misc/radio/db_check_done
6./LINUX/android/device/qcom/common/rootdir/etc/init.qcom.rc
# msm specific files that need to be created on /data
on post-fs-data
...
# Mark the copy complete flag to not completed
write /data/misc/radio/copy_complete 0
chown radio radio /data/misc/radio/copy_complete
chmod 0660 /data/misc/radio/copy_complete
# File flags for prebuilt ril db file
write /data/misc/radio/prebuilt_db_support 1
chown radio radio /data/misc/radio/prebuilt_db_support
chmod 0400 /data/misc/radio/prebuilt_db_support
write /data/misc/radio/db_check_done 0
chown radio radio /data/misc/radio/db_check_done
chmod 0660 /data/misc/radio/db_check_done
凛冬将至,我从今开始复习,至考方休。我将不求职、不出国、不保研。我将不耽玩乐,不猎美色。我将悬梁刺股,生死於斯。我是图书馆的雕像,自习室的幽灵。我是唤醒黎明的闹钟,闪耀午夜的台灯,守望课本的双眼,追寻知识的灵魂。我将生命与希望献给考研,日日如此,考上为止。
守夜人誓言简体版:
长夜将至,我从今开始守望,至死方休。我将不娶妻、不封地、不生子。我将不戴宝冠,不争荣宠。我将尽忠职守,生死於斯。我是努巴尼的死神,66号公路的麦爹。我是抵御寒冷的烈焰,破晓时分的光线,唤醒眠者的号角,守护王国的坚盾。我将生命与荣耀献给守夜人,今夜如此,夜夜皆然。
守夜人誓言英文原版:
Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the watcher on the walls. I am the fire that burns against the cold, the light that brings the dawn, the horn that wakes the sleepers, the shield that guards the realms of men. I pledge my life and honor to the Night’s Watch, for this night and all the nights to come.
Now my watch begin for this night and all the nights to come
守夜人誓言繁体版:
永夜终至,吾辈铭记,巍巍大任,死亦无终。
无享妻爱,不履寸土,决绝子嗣,身归兄弟。
何言无冕,兄弟所望,何争俗荣,袍泽同心,尽忠职守,生死于斯,心念所归,无惧无退。
铸兵利剑,暗夜无当;凝聚础石,长城屹立;腾焰熊熊,炽烈华光;耀耀破晓,璨以晨光;
鸣无尽之号角,警外患之袭扰;锻坚钢之神盾,固王国之永宁。
于今挺身,奉以生命,以夜为始,死亦无终。