161 Commits

Author SHA1 Message Date
Joe Onorato
8932020f54 Fix the notification vibration setting and add a test app that lets you recover from the busted
state.

Bug: 2767349
Change-Id: Id0c41734e82a1256a49175a2dc6b40f0abaf4f8b
2010-06-24 17:49:44 -07:00
The Android Open Source Project
2b32afd07d am 5ebaf106: merge from open-source master
Merge commit '5ebaf10693725c9dc48219c3c65945b84d74692f' into kraken

* commit '5ebaf10693725c9dc48219c3c65945b84d74692f':
  Fix broken logic in SettingsProvider.parseProviderList.
2010-04-22 13:25:14 -07:00
The Android Open Source Project
5ebaf10693 merge from open-source master
Change-Id: I2a3a06f0bd3530f9c0d3cb64ca6a87913649d64b
2010-04-22 11:43:17 -07:00
Mike Lockwood
bdc7f891cf Fix broken logic in SettingsProvider.parseProviderList.
We were accidentally stripping both leading and trailing commas
when removing a provider from the enabled provider list.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-21 18:31:56 -04:00
Amith Yamasani
61f280d520 am feb976e6: am 842d983c: Merge "Fix an upgrade bug in SettingsProvider." into froyo
Merge commit 'feb976e6be3a07dd31b35b35287420bba9ffbbf3' into kraken

* commit 'feb976e6be3a07dd31b35b35287420bba9ffbbf3':
  Fix an upgrade bug in SettingsProvider.
2010-04-13 11:54:04 -07:00
Amith Yamasani
cd66caf015 Fix an upgrade bug in SettingsProvider.
Bug: 2569112

Wrong usage of local method.

Change-Id: I9d7c68baa7cf8dd2b7e4345555c1edc374de94e6
2010-04-12 15:49:12 -07:00
Suchi Amalapurapu
3e543abbc1 am a599469f: am c2461be6: Merge "Fix 2579461 Move install location values to secure settings. Diable attribute for UI. Set default value to auto. Add command line interface to set install location via pm." into froyo
Merge commit 'a599469f9095532cac95a8e7600412f156b88f1c' into kraken

* commit 'a599469f9095532cac95a8e7600412f156b88f1c':
  Fix 2579461
2010-04-07 21:32:30 -07:00
Suchi Amalapurapu
40e472521a Fix 2579461
Move install location values to secure settings.
Diable attribute for UI. Set default value to auto.
Add command line interface to set install location via pm.

Change-Id: I80e97b3d24845adad7102f40dcbe238f00efa406
2010-04-07 20:43:54 -07:00
Amith Yamasani
0e19e2b265 am e1331779: am 95a321fc: Merge "Fix for Never not existing in latest timeout values." into froyo
Merge commit 'e133177980b908d183ed8fe46cf3ea33405b8bd5' into kraken

* commit 'e133177980b908d183ed8fe46cf3ea33405b8bd5':
  Fix for Never not existing in latest timeout values.
2010-03-30 15:27:35 -07:00
Amith Yamasani
b6e6ffae35 Fix for Never not existing in latest timeout values.
Bug: 2535288

Change-Id: I15ca60c7afe58fbe57e557e6d0028dc200d8b322
2010-03-30 15:04:19 -07:00
Oscar Montemayor
1f4df90bfa DO NOT MERGE
Removing unused features from source tree.
Please refer to Bug#2502219.

Change-Id: I879c29bfd5ffe933f64bb1082aaae7c956450a5a
2010-03-29 18:12:24 -07:00
Christopher Tate
cc84c69726 API CHANGE: rename BackupHelperAgent => BackupAgentHelper per API Council
Part of bug #2545514

Change-Id: Ic775e3b942c485252149c1b6c15c88517fa4e3e5
2010-03-29 15:48:14 -07:00
Vasu Nori
89206fdb3b close SQLiteStatement objects in finally block
unclosed SQLiteStatement objects cause finalizer warnings.
nix them by closing this object in finally block.

Change-Id: Iea86ff169f935bb743aa0c32aa4aeb0cb4fcd4ad
2010-03-22 14:05:38 -07:00
Kenny Root
35f480eb06 Import revised translations
Change-Id: Id1a0d62dc917937fc14ccab26eb7bd2c2148137e
2010-03-17 18:30:12 -07:00
Ken Shirriff
dca5f191ac Close db statement.
Fix finalizer error bug 2483608

Change-Id: I49c33dc68cd3f24772990a467790ecaa06e13a18
2010-03-11 15:26:45 -08:00
Suchi Amalapurapu
089262dc02 Dont include code size for apps on sdcard.
Use constants defined in PackageHelper for user preferences
to install auto, internal, external.
Set default install location to external.
Update settings db version number

Change-Id: Ib5110c9377990e20a48cee923e55898dfddfd1e6
2010-03-10 16:08:51 -08:00
Daniel Sandler
1c7fa4836b Add VIBRATE_IN_SILENT to the settings database & backup.
Change-Id: Id31e24ef0536278ccb66b22bba7ed2b47eb1a371
2010-03-10 15:01:25 -05:00
Brad Fitzpatrick
547a96bc12 SettingsProvider: dup-suppress from cache.
On insert(), check to see if the value is redundant by checking if
it's the same value already in our cache (but without faulting it in
to check).  If so, avoid hitting sqlite or spamming all the
notification listeners with such uselessness.

This reportedly is happening a fair bit.

Change-Id: If58feb3ff1d00027dd927e0900087388cbcd72ae
2010-03-09 17:58:53 -08:00
Brad Fitzpatrick
342984a17d SettingsProvider: defensively cap size of settings kept cached in memory.
Change-Id: I50289ece2d7f5f50d2ea2efbacac7a0bb1483bf6
2010-03-09 16:59:30 -08:00
Romain Guy
f02811f785 Support unbundled bookmarks.
Bug #2460685

Change-Id: I402e342673cd8de88664a595401a141e09583e1d
2010-03-09 16:33:51 -08:00
Brad Fitzpatrick
1bd62bd3ca Cache hot settings in-memory in the SettingsProvider.
This brings down Settings lookups to 0.5 ms on sholes.  (down from
~10.5 ms originally, and ~2.5 ms after the ContentProvider.call()
interface)

Change-Id: Ibde7c3d21e0b0e5714714a2075f314726edfc19d
2010-03-08 22:20:43 -08:00
Amith Yamasani
156c435455 Move lockscreen settings to secure table to prevent tampering. b/2343673
Migrate old settings to secure on upgrade.
2010-03-08 15:42:48 -08:00
Daniel Sandler
8c9233fba2 Correct path to LowBattery.ogg.
Bug: 2320026
Change-Id: Idede20701c5a3d0e60bd327a869b1adf1577db21
2010-03-08 12:03:05 -05:00
Christopher Tate
4528186e0d Refactor android.backup => android.app.backup
Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
2010-03-05 16:27:15 -08:00
Brad Fitzpatrick
1877d0158b Add "call" method on ContentProvider.
This permits implementing interfaces which are faster than using
remote Cursors.  It then uses it for Settings & SettingProvider, which
together account for ~50% of total ContentProvider event loop stalls
across Froyo dogfooders.

For fetching Settings this looks like it should reduce average
Settings lookup from 10 ms to 0.4 ms on Sholes, once the
SettingsProvider serves most gets from in-memory cache.  Currently it
brings the Sholes average down from 10ms to 2.5 ms while still using
SQLite queries on each get.
2010-03-05 12:08:39 -08:00
Christopher Tate
03b6d90db9 Make sure to apply the auto-restore setting when the system is restored
Change-Id: If2e09d6b4e65c75e7e90754adc2425fa73d2602a
2010-02-26 14:15:24 -08:00
Dianne Hackborn
2269d1572e Re-arrange android-common so framework no longer links with it.
This is the framework part, moving classes around so the framework
no longer needs to link to android-common.  Makes some APIs public,
others that didn't need to be public are private in the framework,
some small things are copied.
2010-02-25 11:39:33 -08:00
Eric Fischer
00f58438bd Filenames of sound effects are not translatable. 2010-02-24 11:43:12 -08:00
Daniel Sandler
63e1d264a7 Turn off lock screen sounds by default.
This change also fixes a typo that was suppressing the dock
sounds. But: so as not to surprise anyone, this change
defaults dock sounds off as well. Will need to add UI
somewhere to turn them on (Spare Parts?).

Bug: 2465483
Change-Id: Ic2cccb416d5616a84363debb740bf5897f0831c4
2010-02-23 19:43:35 -05:00
Oscar Montemayor
f1cbfff03a Fix bug when adding SET_INSTALL_LOCATION to SettingsProvider database, upgrade path. 2010-02-22 16:23:19 -08:00
Dianne Hackborn
21f1bd17b2 Fix issue #2438980: Implement package watcher for voice recognizer service setting
I am getting tired of writing package monitor code, realized this is missing in
a number of places, and at this point it has gotten complicated enough that I
don't think anyone actually does it 100% right so:

Introducing PackageMonitor.

Yes there are no Java docs.  I am still playing around with just what this
thing is to figure out what makes sense and how people will use it.  It is
being used to fix this bug for monitoring voice recognizers (integrating the
code from the settings provider for setting an initial value), to replace
the existing code for monitoring input methods (and fix the bug where we
wouldn't remove an input method from the enabled list when it got
uninstalled), to now monitor live wallpaper package changes (now allowing
us to avoid reverting back to the default live wallpaper when the current
one is updated!), and to monitor device admin changes.

Also includes a fix so you can't uninstall an .apk that is currently enabled
as a device admin.

Also includes a fix where the default time zone was not initialized early
enough which should fix issue #2455507 (Observed Google services frame work crash).

In addition, this finally introduces a mechanism to determine if the
"force stop" button should be enabled, with convenience in PackageMonitor
for system services to handle it.  All services have been updated to support
this.  There is also new infrastructure for reporting battery usage as an
applicatin error report.
2010-02-22 11:27:52 -08:00
Dianne Hackborn
ef6b22fc04 Fix issue #2420412: API review: DeviceAdmin API changes
Note in docs that callbacks are on main thread.
Rename to DeviceAdminReceiver?
Document resetPassword is the device's password.

Also hide android.R.attr.neverEncrypt.
2010-02-17 10:29:52 -08:00
Daniel Sandler
0e9d2af2d6 New user interface sound effects:
- Low battery. (http://b/2320026)
 - Dock/undock events.
 - Keyguard lock/unlock events.

New system settings have been created to turn these on/off
and to specify the relevant sound files.

[Production notes: The provided low battery sound and dock
sounds were synthesized; the lock screen sounds are
processed samples of a ballpoint pen click mechanism.]

Bug: 2320026
Change-Id: I374285b0f94f59c7555bb8816580f5a8c802e90d
2010-02-12 23:26:12 -05:00
Chris Tate
cf36010357 Merge "Remove BACKUP_DATA permission and associated checks" 2010-02-12 16:30:39 -08:00
Christopher Tate
a87240c227 Remove BACKUP_DATA permission and associated checks
Any package can now participate in backup/restore, without requiring any
manifest-declared permission.  *Control* of the backup manager is still
guarded by the BACKUP permission, which is signatureOrSystem.

Change-Id: I116fcfcd4cd255e3c976330da1c4dea7d4faae9d
2010-02-12 15:49:30 -08:00
Jim Miller
6176677e01 Watch 2274882: Add a field to the db when we wipe due to an error in the upgrader.
This should give us the ability to diagnose and fix db upgrade errors as reported by partners and end users.
2010-02-12 14:56:49 -08:00
Mike LeBeau
cb0be8a530 Use the new RecognitionService.SERVICE_INTERFACE instead of
RecognizerIntent.ACTION_RECOGNIZE_SPEECH when finding a voice
recognition service.
2010-02-11 15:01:27 -08:00
Mike LeBeau
5d34e9b63d Add new setting for the ComponentName of the service to be used
for voice recognition on the device. Right now this just queries
the package manager at boot and finds the (hopefully) single
available recognizer.

TODO: Add an attribute to let recognition services expose a settings
activity, and expose the settings activity of the chosen recognition
service in the system settings for voice input & output.
2010-02-11 11:40:02 -08:00
Suchi Amalapurapu
a9c1625e71 Set default value for default install location 2010-02-10 12:39:59 -08:00
Suchi Amalapurapu
117818e4f1 Add new manifest option for install location
Change recommendAppInstallLocation api
add code to parse new attribute.
Define flags in PackageInfo
Add new settings attributes for enabling setting and value for install location
Some tests
The policy for install location: if explicitly set in manifest as internal only we try to install the app only on internal storage. if set to preferExternal, we try to install it on sdcard if possible. If not we fall back to internal.
If the user enables setting SET_INSTALL_LOCATION(which will always
be set to false in final release builds) and sets a prefered location, we try
to honour it.
2010-02-10 08:59:08 -08:00
Doug Zongker
4f8ff39c1e use device serial number to seed RNG for generating ANDROID_ID
Change-Id: I1bcc55f1309cb908803bc42084846a046041eda6
2010-02-03 10:48:22 -08:00
Dianne Hackborn
9327f4f671 More device policy work: clarify password modes, monkeying.
Clarifies what the password modes mean, renaming them to "quality"
and updating their documentation and the implementation to follow.

Also adds a facility to find out if a monkey is running, which I
need for the api demo to avoid letting it wipe the device.
2010-01-29 17:16:02 -08:00
Ken Shirriff
e79f721e71 Remove unused providers
bug 2388178
2010-01-22 00:14:50 -08:00
Dianne Hackborn
df83afaf29 More device policy manager / admin work.
Update API with some new features, re-arrange how you check for valid
passwords, and start hooking up the back-end implementation.
2010-01-21 14:30:57 -08:00
Jim Miller
31f90b62e8 Fix 2385283: Add DevicePolicyManager calls to LockScreen. 2010-01-20 14:48:37 -08:00
San Mehat
87734d3bc1 Settings: Add settings for MountService prefs and bump DB version to 46
Adds 4 new Settings:
    Secure.MOUNT_PLAY_NOTIFICATION_SND - Play notification sound on events
    Secure.MOUNT_UMS_AUTOSTART         - Auto-start UMS when host detected
    Secure.MOUNT_UMS_PROMPT            - Show notification when host detected
    Secure.MOUNT_UMS_NOTIFY_ENABLED    - Show notification while UMS enabled

These settings are also added to the Settings backup list

Signed-off-by: San Mehat <san@google.com>
2010-01-08 12:55:22 -08:00
Eric Fischer
698893fc90 Merge "Update with latest translations." 2010-01-08 10:00:58 -08:00
Doug Zongker
aed8f8eb14 remove Settings.Gservices
Move the last few keys to secure settings, and delete the Gservices
table.

Change-Id: Ie3ba45aa8c1f220824aa027c547cb82884452eb5
2010-01-07 18:24:48 -08:00
Eric Fischer
d22c49a2d5 Update with latest translations. 2010-01-07 15:55:17 -08:00
Doug Zongker
edc5189c33 change remaining frameworks/base Gservices to Secure settings
Change-Id: I61bdb05a2526523700c2833154d5a4133881ef10
2010-01-07 15:00:37 -08:00