summaryrefslogtreecommitdiffstats
path: root/packages/SettingsProvider
Commit message (Collapse)AuthorAgeFilesLines
* Allow enabled accessibility service to toggle tocuh exploration after an ↵Svetoslav Ganov2012-08-151-5/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | upgrade to JellyBean. 1. Before JellyBean touch exploration was a global setting controlled by the user via the UI. However, if the enabled accessibility services do not handle touch exploration mode, enabling it makes no sense. Therefore, in JellyBean the services request touch exploration mode and the user is presented with a dialog to allow that and if she does we store that in the database. As a result of the above change a user that has enabled accessibility, touch exploration, and some accessibility services running a pre-JellyBean system version may lose touch exploration state, thus rendering the device useless unless sighted help is provided, since the enabled service(s) are not in the list of services to which the user granted a permission to put the device in touch explore mode. The fix is during a database upgrade to allow allow all enabled accessibility services to toggle touch exploration provided accessibility and touch exploration are enabled and no services can toggle touch exploration. Note that the user has already manually enabled the services and touch exploration which means the she has given consent to have these services work in touch exploration mode bug:6996354 Change-Id: I0af2dc578cc4fbcc90043341035163b876978ab2
* Merge "Ensure screen reader URL gets updated during ICS to JB update." into ↵Svetoslav Ganov2012-06-251-1/+18
|\ | | | | | | jb-dev
| * Ensure screen reader URL gets updated during ICS to JB update.alanv2012-06-221-1/+18
| | | | | | | | | | Bug: 6702042 Change-Id: I771863c53fa420ba0746fce30cd17eb8b2b9fba1
* | Change hard-coded URL for accessibility script.alanv2012-06-201-1/+1
|/ | | | | | | | | The old version of the script is broken and is cached due to an error in our gstatic configuration. We had to change the name to avoid hitting the cached version on external proxies. Bug: 6702042 Change-Id: I0e5ee8b3a6ae8c7ba11f5760f2f99d4b5614ac97
* Merge restored wifi APs, don't overwriteChristopher Tate2012-05-151-10/+161
| | | | | | | | | | | | | | | | | We now preserve any already-known AP configuration information when restoring wifi from backup, instead of flatly overwriting the known definitions with the historical ones. This means that if you are performing setup while connected to an AP unknown in the restored dataset, you will retain your connection instead of seeing it drop partway through the restore process because suddenly the supplicant "forgot" how to connect to it. Duplicates are resolved by retaining the currently-defined network configuration and discarding the historical one. Bug 6443790 Change-Id: I1f44cc6a01fc4ae7c4b680682a10fcb7a0be65dc
* Have a new constant for "vibrate when ringing" settingDaisuke Miyakawa2012-05-081-40/+66
| | | | | Bug: 6036529 Change-Id: I850d27629a75615647883fdaa2933f337c4824d1
* Silent and Vibrate mode clean upEric Laurent2012-05-082-21/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up related to new Vibration policy. The vibrate behavior is now only derived from: - presence of a vibrator on the device - current ringer mode selected: NORMAL, VIBRATE or SILENT If no vibrator is present the ringer mode can only be NORMAL or SILENT. The control of ringer mode via volume keys when volume keys control the "master" stream type (RING on phones, MUSIC on tablets) is as follows: If a vibrator is present: VOL- and volume equals 1: NORMAL => VIBRATE VOL- and volume equals 0 and not continuous press: VIBRATE => SILENT VOL+ and in SILENT mode: SILENT => VIBRATE VOL+ and in VIBRATE mode: VIBRATE => NORMAL, volume = 1 If no vibrator is present: VOL- and volume equals 0 and not continuous press: NORMAL => SILENT VOL+ and in SILENT mode: SILENT => NORMAL, volume = 0 VIBRATE_ON and VIBRATE_IN_SILENT settings are not stored/retreived any more. AudioService checks and corrects ringer mode and stream volumes if necessary when reading from DB at boot time. Also: Added dump for stream volumes in AudioService. Added device names missing in AudioSystem for USB accessory and USB device. Issue: 6036529 Issue: 6414950 Issue: 6448163 Change-Id: I77fb821ec63e4e566320cac2701b4ac466e86aef
* Fetch WifiManager instance at the time of useIrfan Sheriff2012-04-271-0/+5
| | | | | Bug: 5340393 Change-Id: Idb0a6dbe969bc3c7955134df43b86f28208c73c3
* Support enabling WAL using a flag when DB is opened.Jeff Brown2012-03-232-1/+1
| | | | | | | | | | | | | | | | | | Using enableWriteAheadLogging() to enable WAL is inefficient because we previously disabled WAL mode when the database was opened. Switching from WAL to PERSIST then back to WAL is inefficient and could slow down application launch time. It would be better to leave the database in WAL mode when we open it to begin with. To do that, we need to know ahead of time whether we will want to have WAL enabled for the newly opened database. Using this flag also reduces the chance that we will encounter an error enabling WAL mode due to there being other open connections to the database. Bug: 6124556 Change-Id: I38ec7a528baeda9f1ef77e25e88b3ca4b6296200
* Import translations. DO NOT MERGEEric Fischer2012-03-121-1/+1
| | | | Change-Id: I183552feb00f1764db73bf6c7f16d5f5ef0f3b0f
* Import translations. DO NOT MERGEEric Fischer2012-03-071-1/+1
| | | | Change-Id: I7cfb3eeb7743f4db15ff591826d16cc316e2d915
* WifiStateTracker: add support for overriding DCHP max retry count in an overlayMike Lockwood2012-02-162-0/+6
| | | | | | | | | | | | Bug: 5551068 Signed-off-by: Mike Lockwood <lockwood@google.com> Conflicts: packages/SettingsProvider/res/values/defaults.xml Change-Id: I6a6519316a87bd1af39ea9dc51e0d312011135ef
* Allow disabling network stats support in a resource overlayMike Lockwood2012-02-102-0/+4
| | | | | | Bug: 5771240 Signed-off-by: Mike Lockwood <lockwood@google.com>
* SettingsProvider: Allow overridding default value for ↵Mike Lockwood2012-02-102-0/+4
| | | | | | Setttings.Secure.DEVICE_PROVISIONED Signed-off-by: Mike Lockwood <lockwood@android.com>
* Load lockscreen.disabled setting on database create as well as upgradeMike Lockwood2012-02-101-0/+3
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* SettingsProvider: Add support for overriding lockscreen.disabled default valueMike Lockwood2012-02-102-1/+25
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Allow overriding default STAY_ON_WHILE_PLUGGED_IN setting value in an overlayMike Lockwood2012-02-102-1/+7
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Separate SIM states from Radio statesNaveen Kalla2011-12-291-4/+0
| | | | | | | | | | | Radio state reflects the state of the modem. SIM_READY, RUIM_READY, NV_READY are subscription states and it is possible that the new cards have multiple subscriptions. Remove the SIM states from Radio State and introduce a new VOICE_RADIO_TECH message to identify the exact voice technology. SIM states will continue to be identified from the SIM_STATUS messages. Change-Id: Ia67d54f43b6c3340d9cf5c27fcb6f7ef49ef4d40
* Manual merge: Update VIBRATE_ON to a supported value when upgrading from GB.Amith Yamasani2011-12-131-2/+29
| | | | | | | | | | | Bug: 5738552 If value has ringer set to VIBRATE_OFF, we need to update it to the now default, as VIBRATE_OFF is inconsistent with the new UI controls. Make sure notification vibrate setting follows ringer vibrate setting. Change-Id: I0f15a3d1ea8502d542e3178f732cc2503104458f
* Make the URL for the JavaScript based screen-reader used by WebView ↵Svetoslav Ganov2011-12-072-1/+25
| | | | | | | | | | | | | configurable. The URl from which to inject a screen-reader for WebView accessiblity support should be configurable because: 1) The accessibility engineering team should be able to point devices to a staging build of the screen-reader; 2) We would like to be able to change this URL via the Google services mechanism. bug:5718543 Change-Id: I3d4d343f1c93e0e0173f04b2912949fe8a3566b9
* New and improved silent mode on lockscreen.Amith Yamasani2011-12-061-1/+19
| | | | | | | | | 3-state item to toggle between Silent/Vibrate/Ringer in long-press power menu. No volume dialog on lockscreen, unless Power menu is up. Set VIBRATE_IN_SILENT=1 when upgrading device. Change-Id: I097d216f96c4abdbd83420e0c477106951b3607d
* Merge "Adding a system preference whether to speak passwords in ↵Svetoslav Ganov2011-12-062-1/+23
|\ | | | | | | accessibility mode." into ics-mr1
| * Adding a system preference whether to speak passwords in accessibility mode.Svetoslav Ganov2011-12-052-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | By default we do not speak passwords if the user has no headset. However, many users find this too restrictive and would like a way to enable password announcement. While we cannot speak the passwords all the time ,to avoid leaking them, we expose a preference so each user can choose the option that best works for him/her. bug:5712607 Change-Id: I6eb0c40834abe5297f7dc74be02d180a5bef0174
* | Fix issue #5714517: App shortcuts can result in bad task intentsDianne Hackborn2011-12-051-2/+1
|/ | | | | | | | New API to let you build an Intent whose base configuration is correct, but has an additional "selector" to pick out the specific app that you would like launched. Change-Id: Ide9db6dc60e2844b7696cfe09b28337fe7dd63db
* Merge "Fix application launch shortcuts." into ics-mr1Jeff Brown2011-11-292-50/+58
|\
| * Fix application launch shortcuts.Jeff Brown2011-11-292-50/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improved quick launch bookmarks to support category-based shortcuts instead of hardcoding package and class names for all apps. Added a set of Intent categories for typical applications on the platform. Added support for some of the HID application launch usages to reduce reliance on quick launch for special purpose keys. Some keyboard vendors have hardcoded launch keys that synthesize "Search + X" type key combos. The goal is to encourage them to stop doing this by implementing more of HID. Bug: 5674723 Change-Id: I79f1147c65a208efc3f67228c9f0fa5cd050c593
* | Import revised translations. DO NOT MERGEEric Fischer2011-11-291-1/+1
|/ | | | Change-Id: Ia50fd44ea4492188f481e652caae940acaf961e2
* Don't upgrade some settings from GB to ICS.Amith Yamasani2011-11-161-10/+37
| | | | | | | | | | | Copy the value of AUTO_TIME to AUTO_TIME_ZONE. Don't upgrade screen timeout and auto brightness. Bug: 5607851, 5217460 Also fix the default for vibrate mode. Bug: 5553900 Change-Id: I1b8d5215d55953f2b686e77bf55fd07110a08b8d
* Revert "Add new secure setting for controlling Messaging notifications"Tom Taylor2011-11-102-8/+0
| | | | | | | | | | | | | | | | | | | | | This reverts commit 03da2f00aac04e6565a02cf5a9bf6bb1ec926930. Committer: Tom Taylor <tomtaylor@google.com> On branch revertsetting Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: api/current.txt modified: core/java/android/provider/Settings.java modified: core/java/android/provider/Telephony.java modified: packages/SettingsProvider/res/values/defaults.xml modified: packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java We've decided not to disable messaging notifications with a secure setting. Instead, all the work will be done within the messaging app itself. Change-Id: Icde6894e76da1007b6026c8ec7dc56e488453c06
* Merge "Wimax : wimax framework related open source." into ics-mr1Robert Greenwalt2011-11-081-1/+1
|\
| * Wimax : wimax framework related open source.tk.mun2011-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Integrate wimax network related changes into Android Framework. - In Connectivity service, start wimax service. - 4G icon display in StatusBarPolicy. - DHCP renew add. - Add radio for wiamx Change-Id: I2d9012247edfdf49d71ca7e1414afd0006f330ca Signed-off-by: tk.mun <tk.mun@samsung.com> bug:5237167
* | Add new secure setting for controlling Messaging notificationsTom Taylor2011-11-072-0/+8
|/ | | | | | | | | | | | | Bug 5552615 We're adding a new intent to allow 3rd party apps to disable the Messaging app's notification. We want any app to be able to query the setting of whether sms notifications are on or off, but only allow system apps, particularly the Messaging app, to change that setting. Other apps can change the setting by firing off an intent which brings up a dialog activity in the Messaging app that'll let them turn off Messaging notifications. Change-Id: I4d2721191b86010efb383a24c28d911496440657
* Import revised translations. DO NOT MERGEEric Fischer2011-11-012-0/+46
| | | | Change-Id: I43513501e2c0eee9339551d0f20411d14bd5eace
* Import revised translations.Eric Fischer2011-10-181-0/+23
| | | | Change-Id: I83ab00ec220b7c0ba0d37e7f4c91e945e35aab39
* Update Settings Storage app iconJustin Ho2011-10-173-0/+0
| | | | Change-Id: Ic4057f61a7e11fcfceb619ded7152621718262c0
* Fix Cursor leak in SettingsBackupAgent.Jeff Brown2011-10-091-5/+10
| | | | | | Bug: 5434060 Change-Id: I805695a30d6778d0c7302e63bcfe3dc1a38488f4
* Settings are restored in alphabetical order rather in order of dependency.Svetoslav Ganov2011-09-211-121/+125
| | | | | | | | | | | | Settings were restore in alphabetical order and capturing dependency among them required keys to be chosen in such a way that after sorting they apprear in dependency order. Now settings are exported and restored in the order they are declared in the arrays of settings to backup. Hence, the order in this array will capture the dependency order. bug:5343351 Change-Id: I93a40bcdd194943cd6f85aa18f1557d546e38274
* Add boot mode where only "core apps" are started.Dianne Hackborn2011-09-121-0/+1
| | | | | | | | | | | | A core app is one that has coreApp="true" in its manifest tag. The system can successfully boot (though a little painfully) with only framework-res.apk, SettingsProvider.apk, SystemUI.apk, DefaultContainerService.apk, and Launcher2.apk set as core apps. Currently this boot mode is always turned off. Change-Id: Ieaa4a8031c2c391a12996aa8d8b1d65fc2b09d6b
* Add NFC to airplane modeNick Pelly2011-08-092-3/+22
| | | | | | NFC now observes airplanes mode, and is by default toggleable in airplane mode. Change-Id: I5f19d35422c9eb1cffb0b5e0631b3f3c5eeaedcf
* Don't change system sound defaults for upgrades.Amith Yamasani2011-08-041-8/+0
| | | | | | | | This reverts an earlier change that reset the system sound defaults even for upgrades. Bug: 5114198 Change-Id: Ide0afbd26080ba87d177cedfa9b1d50352857a00
* Volume panel changes.Amith Yamasani2011-08-012-41/+57
| | | | | | | | | | | | Combined volume panel only in tablets. On phones show active volume. Added dummy assets for ring+notification icon. Deprecated the NOTIFICATION_USES_RING_VOLUME. Now they are always tied together. Audio manager changes still required to ensure that. Initialize all feedback sounds to true. Change-Id: I3ad7890c9be9334eedb5f3b709a4b6995fe24638
* Merge "Support full-backup encryption and global backup password"Christopher Tate2011-07-281-5/+11
|\
| * Support full-backup encryption and global backup passwordChristopher Tate2011-07-281-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the user has supplied a backup password in Settings, that password is validated during the full backup process and is used as an encryption key for encoding the backed-up data itself. This is the fundamental mechanism whereby users can secure their data even against malicious parties getting physical unlocked access to their device. Technically the user-supplied password is not used as the encryption key for the backed-up data itself. What is actually done is that a random key is generated to use as the raw encryption key. THAT key, in turn, is encrypted with the user-supplied password (after random salting and key expansion with PBKDF2). The encrypted master key and a checksum are stored in the backup header. At restore time, the user supplies their password, which allows the system to decrypt the master key, which in turn allows the decryption of the backup data itself. The checksum is part of the archive in order to permit validation of the user-supplied password. The checksum is the result of running the user-supplied password through PBKDF2 with a randomly selected salt. At restore time, the proposed password is run through PBKDF2 with the salt described by the archive header. If the result does not match the archive's stated checksum, then the user has supplied the wrong decryption password. Also, suppress backup consideration for a few packages whose data is either nonexistent or inapplicable across devices or factory reset operations. Bug 4901637 Change-Id: Id0cc9d0fdfc046602b129f273d48e23b7a14df36
* | Merge "Updaing the database version"Svetoslav Ganov2011-07-281-1/+1
|\ \ | |/ |/|
| * Updaing the database versionSvetoslav Ganov2011-07-281-1/+1
| | | | | | | | Change-Id: Iff671a152ac8c96d4136f0f268167c1b60842bb5
* | Merge "Updating the data base upgrade/creation code for the new touch ↵Svetoslav Ganov2011-07-282-0/+25
|\ \ | |/ | | | | exploraion setting."
| * Updating the data base upgrade/creation code for the new touch exploraion ↵Svetoslav Ganov2011-07-282-0/+25
| | | | | | | | | | | | | | | | | | | | | | setting. 1. Update the database creation/upgrade code to take care of the new setting to enable touch exploration. 2. Made the tocuh exploration settings persistent to the cloud. Change-Id: Ie24e9184b4a21869432d11d207cb6464fadbac3b
* | Import revised translations.Eric Fischer2011-07-251-1/+1
|/ | | | Change-Id: Ia9c97db0cd31b9d3163318b4193a328a614a7098
* Fix issue 5012047: silent mode mutes musicEric Laurent2011-07-191-8/+53
| | | | | | | | Implemented different silent mode behaviors for tablets and phones. The behavior inherited from Honeycomb was for tablets only and was muting music in silent mode. Change-Id: Ib053e7b70ca02190debc87648ab8a163f9d39577
* Animation settings reset to defaultGilles Debunne2011-07-081-12/+34
| | | | Change-Id: Ie53c031ceb88d356742e80693edc14198506d54a