Skip to content

Commit c7aa7c4

Browse files
committed
ofono: Track emergency numbers provided by network
1 parent 6476748 commit c7aa7c4

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

sparse/etc/ofono/ril_subscription.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ name=slot1
2222
#timeout=0
2323
#technologies=all
2424
#uiccWorkaround=true
25-
#ecclistFile=/var/lib/ofono/ril.ecclist
25+
ecclistFile=/run/ofono/ril.ecclist
2626
#allowDataReq=auto
2727
#emptyPinQuery=true
2828
#dataCallFormat=auto
@@ -52,4 +52,5 @@ transport=binder:name=slot2
5252
#sub=SUB2
5353
name=slot2
5454
#slot=1
55+
ecclistFile=/run/ofono/ril.ecclist1
5556
useDataProfiles=true
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on post-fs
2+
# Create directory for ofono ecc files
3+
mkdir /run/ofono 0755 root root
4+
5+
# Ofono tracks these files to sync emergency numbers with the modem
6+
on property:ril.ecclist=*
7+
write /run/ofono/ril.ecclist ${ril.ecclist}
8+
chmod 0644 /run/ofono/ril.ecclist
9+
10+
on property:ril.ecclist1=*
11+
write /run/ofono/ril.ecclist1 ${ril.ecclist1}
12+
chmod 0644 /run/ofono/ril.ecclist1

0 commit comments

Comments
 (0)