summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/Program.java
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2012-01-02 15:34:39 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-13 11:50:10 -0700
commitb4bc99e847d15f04c035d676e01ff85623565e0a (patch)
tree2e6cf12ab9d38c38cd6f9e83b0ad9e99c864f0db /graphics/java/android/renderscript/Program.java
parent4dfbe83e1a110b416badf73ddf68c83db0d415ae (diff)
Add user confirmation dialog before sending SMS to short code.
Non-system apps now require user confirmation before sending an SMS to a short code that may potentially cost the user money. The number is tested against regex patterns for short codes for the country matching the user's SIM card or network. The user is warned if the phone number is potentially or definitely a premium SMS number. The regex patterns are loaded from core/res/res/xml/sms_short_codes.xml. If the user's country is not found, then phone numbers of 5 digits or less (excluding known emergency phone numbers) are considered to be potential SMS short codes. Command to run test cases: $ runtest -c com.android.internal.telephony.SmsUsageMonitorShortCodeTest frameworks-telephony Bug: 5513975 Change-Id: Ic0b483153390e974c632302f3061300bc2a2274a
Diffstat (limited to 'graphics/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions