summaryrefslogtreecommitdiffstats
path: root/src/java/com/android/internal/telephony/IccSmsInterfaceManager.java
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2012-09-06 12:18:26 -0700
committerJake Hamby <jhamby@google.com>2012-09-14 14:33:10 -0700
commit4658a1a8c23111d5cc89feb040ce547a7b65dfb0 (patch)
tree6a17ecd04fadbdaf4c4a42e121147df81d6833e3 /src/java/com/android/internal/telephony/IccSmsInterfaceManager.java
parenta72f94510f726ba8692bfbf11b7c489c80da9a08 (diff)
downloadframeworks_opt_telephony-4658a1a8c23111d5cc89feb040ce547a7b65dfb0.zip
frameworks_opt_telephony-4658a1a8c23111d5cc89feb040ce547a7b65dfb0.tar.gz
frameworks_opt_telephony-4658a1a8c23111d5cc89feb040ce547a7b65dfb0.tar.bz2
Add support for per-package policy for sending premium SMS.
The default behavior for sending a message to a premium SMS short code (or suspected premium SMS number) is to ask the user for confirmation. Enable the user to set a default policy ("remember this choice" checkbox) to always/never allow the app to send SMS to premium short codes in the future. The policy can be changed by the Settings app in the app info screen. Bug: 5513975 Change-Id: I82731bbc6631ac79b1b5d1d9b1f96c7100ab20cf
Diffstat (limited to 'src/java/com/android/internal/telephony/IccSmsInterfaceManager.java')
-rw-r--r--src/java/com/android/internal/telephony/IccSmsInterfaceManager.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/com/android/internal/telephony/IccSmsInterfaceManager.java b/src/java/com/android/internal/telephony/IccSmsInterfaceManager.java
index 5fef6de..525bcd9 100644
--- a/src/java/com/android/internal/telephony/IccSmsInterfaceManager.java
+++ b/src/java/com/android/internal/telephony/IccSmsInterfaceManager.java
@@ -164,6 +164,14 @@ public abstract class IccSmsInterfaceManager extends ISms.Stub {
(ArrayList<PendingIntent>) sentIntents, (ArrayList<PendingIntent>) deliveryIntents);
}
+ public int getPremiumSmsPermission(String packageName) {
+ return mDispatcher.getPremiumSmsPermission(packageName);
+ }
+
+ public void setPremiumSmsPermission(String packageName, int permission) {
+ mDispatcher.setPremiumSmsPermission(packageName, permission);
+ }
+
/**
* create SmsRawData lists from all sms record byte[]
* Use null to indicate "free" record