Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_providers_TelephonyProvider
Commits
5246adb6
Commit
5246adb6
authored
8 years ago
by
Mark Stevens
Browse files
Options
Download
Email Patches
Plain Diff
update from duco/rk312x_20160510 on rockchip-5.1.0_r5 branches
parent
3a9452fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/com/android/providers/telephony/TelephonyProvider.java
src/com/android/providers/telephony/TelephonyProvider.java
+11
-0
No files found.
src/com/android/providers/telephony/TelephonyProvider.java
View file @
5246adb6
...
...
@@ -41,11 +41,13 @@ import android.telephony.SubscriptionManager;
import
android.telephony.TelephonyManager
;
import
android.util.Log
;
import
android.util.Xml
;
import
android.os.SystemProperties
;
import
com.android.internal.telephony.BaseCommands
;
import
com.android.internal.telephony.Phone
;
import
com.android.internal.telephony.PhoneConstants
;
import
com.android.internal.util.XmlUtils
;
import
com.android.internal.telephony.TelephonyProperties
;
import
org.xmlpull.v1.XmlPullParser
;
import
org.xmlpull.v1.XmlPullParserException
;
...
...
@@ -61,6 +63,8 @@ public class TelephonyProvider extends ContentProvider
private
static
final
String
DATABASE_NAME
=
"telephony.db"
;
private
static
final
boolean
DBG
=
true
;
private
static
final
boolean
VDBG
=
false
;
private
static
final
boolean
IS_LOCK_APN
=
SystemProperties
.
getBoolean
(
"ro.config.lock_apn"
,
false
);
private
static
final
int
DATABASE_VERSION
=
13
<<
16
;
private
static
final
int
URL_UNKNOWN
=
0
;
...
...
@@ -238,6 +242,7 @@ public class TelephonyProvider extends ContentProvider
"max_conns INTEGER default 0,"
+
"wait_time INTEGER default 0,"
+
"max_conns_time INTEGER default 0,"
+
"is_locked INTEGER default 0,"
+
"mtu INTEGER);"
);
if
(
DBG
)
log
(
"dbh.createCarriersTable:-"
);
}
...
...
@@ -528,6 +533,12 @@ public class TelephonyProvider extends ContentProvider
map
.
put
(
Telephony
.
Carriers
.
MTU
,
Integer
.
parseInt
(
mtu
));
}
if
(
IS_LOCK_APN
)
{
map
.
put
(
Telephony
.
Carriers
.
IS_LOCKED
,
"1"
);
}
else
{
map
.
put
(
Telephony
.
Carriers
.
IS_LOCKED
,
"0"
);
}
return
map
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment