2295 Commits

Author SHA1 Message Date
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
Suchi Amalapurapu
90d8ee650b 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

Change-Id: I563238133261d911d08fbc66344687b7dfc870b1
2010-03-18 17:44:21 -07:00
Irfan Sheriff
6d33c5adde Merge "Clean up changing AP configuration" 2010-03-18 16:42:48 -07:00
Irfan Sheriff
c2f54c267b Clean up changing AP configuration
Bug: 2527293
Change-Id: I35e82e24e27349e2966f88189ebca4246ad1a354
2010-03-18 16:02:56 -07:00
jsh
ef905c86ee Merge "Update signal strength mapping for GSM/UMTS." 2010-03-18 14:58:30 -07:00
jsh
ee63e47940 Update signal strength mapping for GSM/UMTS.
b/2480975

New mapping:
4 bars: >= 12 asu
3 bars: >= 8 asu
2 bars: >= 5 asu
1 bar:  >= 3 asu
0 bars: <= 2 asu

Change-Id: I73dcc8e490d039ec392f027fc96f95dc951ca793
2010-03-18 12:05:19 -07:00
Irfan Sheriff
1a543010e5 Dont disable AP for tether failures
Bug: 2524514
Change-Id: I8a59e717c5b36b83adbed43184fd45d7cbfedd9a
2010-03-18 11:44:48 -07:00
Dianne Hackborn
d4310ac944 Rework permissions to be retained when an app is temporarily uninstalled.
This allows us to keep the assigned permissions when apps are temporarily
removed due to the SD card being unmounted, and also if you use the
facility to uninstall an app but keep its data.

Also fixes issue #2515189: Potential permission spoofing attack in
Android (external bug 7166)

Change-Id: I2a120ec938552028c989f9e0e890c32773957738
2010-03-18 02:02:17 -07:00
Dianne Hackborn
694f79b5d1 Fix issue #2519590: Lock screen stuck in landscape mode
Well, mostly.  There is still a problem here where the first time
you show the lock screen it just doesn't draw itself.  I assume
this is something breaking in the view hierarchy as it floounders
around removing and adding new views as it is first being shown...
but no idea at this point what is the actual case.

Change-Id: Iba99ae3242931c8673b17b106c86fc99e2c52abe
2010-03-18 01:12:20 -07:00
Robert Greenwalt
e4eb5bf243 Merge "Make Tethering not disconnect on every net change." 2010-03-17 22:55:25 -07:00
Joe Onorato
b8d806d034 Merge "Fix for deadlock between StatusBarService and NotificationManagerService" 2010-03-17 22:33:30 -07:00
Robert Greenwalt
6a1967c908 Make Tethering not disconnect on every net change.
Tethering will now persist to on (until turned off) through upstream net drops,
tunnels, switches to wifi or 2G, mms sends, etc.  It will also strive to use
the most natural connection and only go to HiPri/Dun APNs when needed.

bug:2519915
bug:2501837
Change-Id: Iedf6647daad8df507d7c87d1130b204b0a0acc7b
2010-03-17 22:06:43 -07:00
Suchi Amalapurapu
d3dd518baf Merge "Add new install flag to install on internal flash only Change default install location policy for new flag. New error code for media unavailable." 2010-03-17 18:50:29 -07:00
Suchi Amalapurapu
14b6abda13 Add new install flag to install on internal flash only
Change default install location policy for new flag.
New error code for media unavailable.

Change-Id: I5a5d0828b067692b2b94a15a2bcc7534f796c1a2
2010-03-17 18:43:31 -07:00
Dianne Hackborn
8cf1bcd1d2 Fix issue #2325621: Runtime restart after launching Android keyboard setting.
Again.

Change-Id: Icc36029767fbfea19e474aa0731e8271da1329db
2010-03-17 18:08:39 -07:00
Obi Okafor
c5e56ddedf Fix for deadlock between StatusBarService and NotificationManagerService
A ServerThread holding a lock on mQueue in StatusBarService invoked a
callback in NotificationManagerService which required a lock on
mNotificationList. At  the same time, a BinderThread holding a lock on
mNotificationList was attempting to post a message to StatusBarService
which requires lock on mQueue. The fix is to release the lock on mQueue
in handleMessage() before running the actions at the end of the method.
2010-03-17 17:46:23 -07:00