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
frameworks_opt_telephony
Commits
c46de7cd
Commit
c46de7cd
authored
9 years ago
by
Svetoslav Ganov
Committed by
Android (Google) Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "Enable WRITE_SMS for telephony provider" into mnc-dev
parents
f4e42037
cfef2b5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/java/com/android/internal/telephony/SmsApplication.java
src/java/com/android/internal/telephony/SmsApplication.java
+5
-0
No files found.
src/java/com/android/internal/telephony/SmsApplication.java
View file @
c46de7cd
...
...
@@ -56,6 +56,7 @@ public final class SmsApplication {
private
static
final
String
PHONE_PACKAGE_NAME
=
"com.android.phone"
;
private
static
final
String
BLUETOOTH_PACKAGE_NAME
=
"com.android.bluetooth"
;
private
static
final
String
MMS_SERVICE_PACKAGE_NAME
=
"com.android.mms.service"
;
private
static
final
String
TELEPHONY_PROVIDER_PACKAGE_NAME
=
"com.android.providers.telephony"
;
private
static
final
String
SCHEME_SMS
=
"sms"
;
private
static
final
String
SCHEME_SMSTO
=
"smsto"
;
...
...
@@ -390,6 +391,8 @@ public final class SmsApplication {
BLUETOOTH_PACKAGE_NAME
);
assignWriteSmsPermissionToSystemApp
(
context
,
packageManager
,
appOps
,
MMS_SERVICE_PACKAGE_NAME
);
assignWriteSmsPermissionToSystemApp
(
context
,
packageManager
,
appOps
,
TELEPHONY_PROVIDER_PACKAGE_NAME
);
}
}
if
(
DEBUG_MULTIUSER
)
{
...
...
@@ -467,6 +470,8 @@ public final class SmsApplication {
BLUETOOTH_PACKAGE_NAME
);
assignWriteSmsPermissionToSystemApp
(
context
,
packageManager
,
appOps
,
MMS_SERVICE_PACKAGE_NAME
);
assignWriteSmsPermissionToSystemApp
(
context
,
packageManager
,
appOps
,
TELEPHONY_PROVIDER_PACKAGE_NAME
);
}
}
...
...
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