2209 Commits

Author SHA1 Message Date
Dianne Hackborn
529bef6925 Dumb late-night typo.
Change-Id: If5e5d8c3728ffc06d686c793ed94a7e18328e5ab
2010-03-25 11:48:43 -07:00
San Mehat
a507859797 MountService: Switch all Log -> Slog
Change-Id: Id33c76497e9d963f295ef6e99d850223ca59b6cd
Signed-off-by: San Mehat <san@google.com>
2010-03-25 10:03:39 -07:00
Dianne Hackborn
2e13d2331e Merge "Fix issue #2543231: chat invitation dialog does show all the time" 2010-03-25 01:02:32 -07:00
Dianne Hackborn
16064f9f18 Fix issue #2543231: chat invitation dialog does show all the time
We were forgetting to re-assign layers after re-ordering windows
after an app token transaction.

Change-Id: I448c0b9da644e027c3edff3ae8a4afa79da292d1
2010-03-25 01:00:03 -07:00
Amith Yamasani
e861ec11c4 Fix 2242164 Soft keyboard keeps getting enabled even if I disable it
On keyboardful devices, it is possible to disable the system soft input
method. Something changed in eclair that caused the ime to be re-enabled
on every package manager update (packages added/deleted).

Now keep track of disabled system imes in the settings db and search
in that list before enabling a system IME on package changes.

Every time the user goes to settings to enable/disable imes, the list
is re-created.

Any new system IMEs that may be added via an OTA will get enabled if
they have a different package name.
2010-03-24 21:39:27 -07:00
Dan Egnor
12331739e0 Merge "Limit DropBox storage to 1000 files (by default)." 2010-03-24 18:13:41 -07:00
Irfan Sheriff
f91444c5e1 Disallow tethering disable by Wifi
Disallow Tethering being disabled by Wifi
and vice versa. We now need to explicitly
disable tethering to enable Wifi.

Bug: 2539071
Change-Id: Id34a5335e70cb7234367b4709882937a4b8cc526
2010-03-24 18:01:57 -07:00
Irfan Sheriff
3bf504df9f Fix WakeLock issue for driver stop
Due to message removal, wakelock could be held forever.

Do a timer only based wakelock release until we do this
more cleanly in ConnectivityService for later release.

Also, add an optimization to prevent use of wakelocks when driver is
already stopped.

Bug: 2529883
Change-Id: Ia1c2ddd44213ef3aa609855613bf155945bef8e4
2010-03-24 17:59:42 -07:00
Dan Egnor
3a8b0c18a4 Limit DropBox storage to 1000 files (by default).
Also does trimming asynchronously (not directly in the broadcast receiver).

Bug: 2541253
Change-Id: I7daf8bc618e2dce68a98571f5f7fbce4df1d6a76
2010-03-24 17:48:20 -07:00
Dianne Hackborn
3ac71b605b Merge "Fix issue #2540920: connectivity issues with tripit/pandora" 2010-03-24 13:22:20 -07:00
Dianne Hackborn
610f389040 Merge "Fix issue #2537384: Default keyboard input method switched on Eclaire to FRE77D upgrade" 2010-03-24 13:11:55 -07:00
Dianne Hackborn
83e48f57e9 Fix issue #2537384: Default keyboard input method switched
on Eclaire to FRE77D upgrade

We want to prefer system IMEs when our current IME disappears.

Change-Id: Ief7332bc4f029991cd833ce0968d75bde987b594
2010-03-24 13:03:47 -07:00
Dianne Hackborn
af7cea3a51 Fix issue #2540920: connectivity issues with tripit/pandora
Need to be sure to compute gids when SD card is mounted, since we
need the package info for that.  Note that this is not re-granting
permissions (and in the future we could optimize this to just pass
through the mounted apps).

Change-Id: I51e1c23d17a6429642132902ef75c65a307fc33a
2010-03-24 12:59:52 -07:00
Suchi Amalapurapu
c7537ee7b6 Clean up stale containers if needed at install time.
This is needed when restoring applications installed on sdcard
via Market after a data wipe. The stale containers need to be cleaned up before
reinstalling again.
Add a test case for installing when a stale container exists.

Change-Id: I20c30b3003e85fb31531dd3cf9cb59962fe8fe5f
2010-03-24 10:32:37 -07:00
Suchi Amalapurapu
f7f5dda5e5 Add new activity manager method to get list of running applications installed on sdcard.
Use new method in UsbStorageActivity.
Fix moving dex files.
moveDex should be suffixed with LI since it uses Installer

Change-Id: Id5ef0254578e84b9aae2c2ac44f722eb5a0fda1c
2010-03-23 16:56:08 -07:00
Dianne Hackborn
9818d7506e Merge "Improve switching to car mode, retain night mode option." 2010-03-23 11:54:09 -07:00
Dianne Hackborn
008f6561f2 Merge "Fix bug where group IDs were not being assigned during boot." 2010-03-23 11:52:14 -07:00
Dianne Hackborn
bbfd58a007 Fix bug where group IDs were not being assigned during boot.
Change-Id: Ic735e98b106932eef2c2458d73fa016274fd796f
2010-03-23 11:51:44 -07:00
San Mehat
a89e372db2 Merge "Asec: Add new 'StorageNotFound' response code handling for container paths" 2010-03-23 11:25:31 -07:00
San Mehat
2d66cef77e Asec: Add new 'StorageNotFound' response code handling for container paths
Change-Id: I45d113f77b9f0e519087356b70fc6c4b5c290935
Signed-off-by: San Mehat <san@google.com>
2010-03-23 11:14:36 -07:00
Suchi Amalapurapu
9ce1319d05 Merge "Don't delete stale containers on sdcard. Comment out flaky test" 2010-03-23 10:27:51 -07:00
Suchi Amalapurapu
f654a484b2 Don't delete stale containers on sdcard.
Comment out flaky test

Change-Id: Ic7da6421c1a1980c19f7f1c929976432245479fa
2010-03-23 09:59:08 -07:00
Robert Greenwalt
7f3e62cd92 Merge "Fix Tethering when DUN is required but wifi is ok" 2010-03-23 09:52:07 -07:00
Kenny Root
6787b7c597 Merge "Compact when NativeDaemonConnector hits buffer limit" 2010-03-23 08:07:47 -07:00
Dianne Hackborn
85f2c9ce5a Fix issue #2530103: ActivePassword data in Device Policy Manager needs to be persisted
Also fixes how the quality vs. mode is handled to be more consistent, which also
required introducing a new "alphabetic" quality since it is possible for the user
to enter such a password.

The current password quality and length is stored in the DPM, since at boot it
couldn't figure this out from the stored password.

Change-Id: I519d9b76dd0b4431bcf42920c34dda38c9f1136e
2010-03-22 22:20:26 -07:00
Dianne Hackborn
2ccda4dc8d Improve switching to car mode, retain night mode option.
Fiddle with how we go into car mode to try to ensure we get a clean
transition.  Also have the system take care of remembering the night
mode setting so it will stay at what you want.

Change-Id: Icb94fdd961c7a192f7707ec71544485a1ea12455
2010-03-22 21:49:15 -07:00
Dianne Hackborn
f657b63c1c Fix restoring of permissions after a reboot.
It turns out the whole loadedPermissions thing was pointless at this
point, and causing the problem: we would write out the granted
permissions, then at boot load them into loaded permissions, and
never actually put them in granted.

Just remove loadedPermissions.  The grantedPermissions (that is
the permissions the user has approved be granted to the app) are
all we care about.

Change-Id: I54d9dc418d6277ae0b35b8c1fc4b9c11f34f86f0
2010-03-22 18:08:07 -07:00
Kenny Root
961aa8c887 Compact when NativeDaemonConnector hits buffer limit
If NativeDaemonConnector hits its buffer limit, it would truncate the
data and lose some information. This change compacts the buffer and then
retries to read the rest of the data.

Change-Id: I0d5fee097bdd6808212ef3ad6fb4abbc6310fd4a
2010-03-22 18:02:45 -07:00
Robert Greenwalt
77e638dee8 Fix Tethering when DUN is required but wifi is ok
If the phone is configured to require a DUN connection when on mobile but also accepts
wifi upstream connections, there was a bug in the logic and you'd be left with no
upstream connection.

bug:2533914
Change-Id: I30d44764f578be4cf2c29ee90d39e8563dda06fb
2010-03-22 15:28:09 -07:00
Mike Lockwood
92e77dd718 Merge "Improve wakelock debugging:" 2010-03-22 14:28:36 -07:00
Mike Lockwood
f5bd092b50 Improve wakelock debugging:
Throw NullPointerException if tag is null in PowerManager.newWakelock()
Print wakelock owner's uid and pid in dumpsys power output.

BUG: 2522675

Change-Id: I462c7f8c49f9896b2f58cef5a678ebd2c062a8f7
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-22 17:10:15 -04:00
Kenny Root
f030462c83 Make trying to remount an asec container non-fatal
If an asec container is already mounted for some reason, start tracking
it in the MountService's internal state and tell the caller we had
success mounting the secure container.

Change-Id: I5bb0f84b2bafc0cd2dba248c35a8d68fd53ef1b2
2010-03-22 13:08:52 -07:00
Nick Kralevich
85861c7a6f Merge "Unittests for EntropyService. Make EntropyService more testable." 2010-03-22 11:14:25 -07:00
Suchi Amalapurapu
e99bb5f10b Add new method call back in MountService.
PackageManager invokes this call back when its done handling
the media status update.
Add new uid check for updateExternalMediaStatus
Change killPids method in ActivityManager.
Remove mountsd command in Pm.java We cannot arbitrarily enable/disable
packages in PackageManager now.

Change-Id: I28dcba4afd2b4486f68abdaa1628a31b66544c91
2010-03-22 10:49:49 -07:00
San Mehat
6a25440323 MountService: Handle volumes shared on startup
Change-Id: I7c38607adee7c89f27c24285a7ace2b9c87e7f30
Signed-off-by: San Mehat <san@google.com>
2010-03-22 10:21:00 -07:00
Nick Kralevich
93a68398b6 Unittests for EntropyService. Make EntropyService more testable.
I've been meaning to write these tests for a long time...

Use "runtest frameworks-services" to run these tests.

Change-Id: I3a3cb7eda547f4a790f38be884b4a583426c7326
2010-03-19 16:57:21 -07:00
Irfan Sheriff
15b487e4ea Merge "Allow space in SSID" 2010-03-19 16:17:00 -07:00
Irfan Sheriff
723f109729 Allow space in SSID
Bug: 2530930
Change-Id: Iaa6c44014d889ad0d023148b091fc01c22524bf3
2010-03-19 15:55:58 -07:00
Christopher Tate
4cee725b1f Use atomic++ rather than lock/++/unlock in the input dispatch code path
Decouples the input dispatch thread from the battery-stats object lock regime,
to avoid the possibility of ever blocking the input dispatch thread on its
behalf.  The stats object is widely used and can sometimes be locked for a
very long time (on the order of seconds) during certain extensive dump
operations.

This change does not alter the data format of the battery stats' externalized
representations.

Fixes bug #2530346

Change-Id: Iee288be3bf4936641b532dceecb8f6de8f552bf0
2010-03-19 15:28:43 -07:00
Irfan Sheriff
a0a59122eb Merge "Fix wakelock" 2010-03-19 14:08:01 -07:00
Dianne Hackborn
379232c8f5 Merge "Fix issue #2512131: Trackball goes up when moving" 2010-03-19 14:01:48 -07:00
Dianne Hackborn
7d9af5ae76 Fix issue #2512131: Trackball goes up when moving
Change-Id: Ib403de88f24bc1b6e5417732e3b69f89a5160bbc
2010-03-19 14:01:17 -07:00
Dianne Hackborn
1afd1c90eb Maybe fix issue #2457218: Corrupt batterystats.bin file preventing phone boot - LIBtt68127
No steps to repro, but makes the code more robust by using the standard
JournaledFile class and doing sanity checks on the input it reads.

This required moving the JournaledFile class in to the framework (and
we really should get rid of either it or AtomicFile, but they have
different recovery semantics so that is tough).  Also went through and
cleaned up the file management in various places.

Change-Id: Ieb7268d8435e77dff66b6e67bb63b62e5dea572e
2010-03-19 13:59:07 -07:00
Suchi Amalapurapu
ebb83ade1e Grant permissions to apps on sd when enabling/disabling packages.
Change-Id: I0f011bd4a3348ccd46fd7ae9765edf8933b94142
2010-03-19 13:23:14 -07:00
Irfan Sheriff
80cb598599 Fix wakelock
Bug: 2413908
Change-Id: Ic7f2efa94b0ad1c561db0ffab8c531d19e6c235e
2010-03-19 12:59:11 -07:00
Wink Saville
951749ba2e Use the new HSM capability that allows transitionTo in enter methods.
Change-Id: If87a30257111d4a2b0506428c75eae81a7ccf77b
2010-03-19 09:09:12 -07:00
Robert Greenwalt
ad17d11c74 Merge "Fix Tethering Notifications for multiple ifaces" 2010-03-19 09:02:00 -07:00
Robert Greenwalt
db3fe9edd4 Fix Tethering Notifications for multiple ifaces
Used to see multiple notifications if usb tethering and wifi tethering were both used.

bug:2527862
Change-Id: Idc6299c0a70564dd7c8d8d7fe13bde83723134ae
2010-03-19 08:59:20 -07:00
Dianne Hackborn
806da1d46c Fix issue #2512507: Shortcuts and Widgets lost on upgrading from Eclair to FRE70D
Apps on the system partition are now allowed to change their certs, as
long as they are not using a shared user id.

Change-Id: I02ff7ac874dc649b7f8cbb705ae8d7ed31e1d125
2010-03-18 19:25:19 -07:00
Suchi Amalapurapu
7942b33e89 Merge "Switch default install location to unspecified. Add a new install location unspecified for backward compatibility. There is not much difference between policies auto and unspecified. But we dont have to make any code changes in PackageParser based on our preference for install location. Add tests" 2010-03-18 18:07:54 -07:00