OSDN Git Service
Christopher Tate [Thu, 22 Apr 2010 01:10:20 +0000 (18:10 -0700)]
Merge "Fix security hole in Google backup transport registration" into froyo
Christopher Tate [Thu, 22 Apr 2010 00:58:07 +0000 (17:58 -0700)]
Fix security hole in Google backup transport registration
Previously, it was conceivable that a 3rd party application on a non-GED
device could publish a service that supported the (hidden) IBackupTransport
interface and spoofed the Google backup transport's package and component
name. This could allow it to secretly intercept all data moved through the
backup mechanism.
Fix by ensuring that the package in question exists and is part of the
OS itself (FLAG_SYSTEM in its ApplicationInfo description) before binding
to it.
Fixes bug #
2457063
Change-Id: I3487572be45c2014fa209beacfe3ac6f8270f872
John Wang [Wed, 21 Apr 2010 21:43:12 +0000 (14:43 -0700)]
Merge "Add ILLEGAL_SIM_OR_ME error code." into froyo
John Wang [Wed, 21 Apr 2010 18:34:15 +0000 (11:34 -0700)]
Add ILLEGAL_SIM_OR_ME error code.
It is for bug
2571583 to provide better failure information of network operator selection.
Network selection returns ILLEGAL_SIM_OR_ME when the failure is
permanent and no retries needed, such as illegal SIM, ME, HRL config, etc.
Change-Id: Iaf70bef64d3cbf35e4d9915418cbb5b78607f73e
Joe Onorato [Wed, 21 Apr 2010 17:59:50 +0000 (13:59 -0400)]
Add title to recent apps dialog.
Bug:
2614279
Change-Id: I45ebcd2e45140901df246db10f756c07864cccb4
Mathias Agopian [Wed, 21 Apr 2010 04:55:40 +0000 (21:55 -0700)]
DO NOT MERGE fix [
2557396] Adreno200: glDrawTexi() doesn't work with height <= 16
don't use glDrawTexi() anymore
Change-Id: If71334de39114b0edce7771366f8d8dc26f6911e
Jeff Brown [Wed, 21 Apr 2010 00:53:00 +0000 (17:53 -0700)]
Merge "Fix PM crash due to bad array bookkeeping logic." into froyo
Robert Greenwalt [Wed, 21 Apr 2010 00:37:22 +0000 (17:37 -0700)]
Merge "Move Tethering off the ServerThread." into froyo
Jeff Brown [Wed, 21 Apr 2010 00:21:47 +0000 (17:21 -0700)]
Fix PM crash due to bad array bookkeeping logic.
Bug:
2586093
Change-Id: I320deeef65a434060e608015dc2dd97b8200e025
Andreas Huber [Tue, 20 Apr 2010 23:29:23 +0000 (16:29 -0700)]
Merge "Apparently select() does not immediately return if one of the masked socket descriptors is closed... Stop relying on select for read-with-timeout functionality and use SO_RCVTIMEO socket option instead." into froyo
Jean-Michel Trivi [Tue, 20 Apr 2010 22:57:30 +0000 (15:57 -0700)]
Merge "Update AudioService to reflect phone state changes with AudioFocus. Phone calls and rings are treated as a new client, with a dedicated client ID that identifies it in the audio focus stack. When it is present in the stack, others clients cannot request audio focus (request is denied). Because the phone state is now mostly handled like a new client, there is no need monitor mode changes and to keep track of undispatched focus changes, as those will delayed focus gains will now automatically happen at the end of the call when the phone client is removed from the focus stack." into froyo
Andreas Huber [Tue, 20 Apr 2010 22:46:28 +0000 (15:46 -0700)]
Apparently select() does not immediately return if one of the masked socket descriptors is closed... Stop relying on select for read-with-timeout functionality and use SO_RCVTIMEO socket option instead.
Change-Id: Ic2d4a8f5b6bbf16772fba39377809ec68d249c1f
related-to-bug:
2611257
Robert Greenwalt [Tue, 20 Apr 2010 22:51:20 +0000 (15:51 -0700)]
Move Tethering off the ServerThread.
An ANR has been reported because somebody else was hogging the Netd
link. We can't pause the server thread for that, so make a new thread.
bug:
2609904
Change-Id: I0430a08621da1cda0a0010ce15826cceee59a529
Jean-Michel Trivi [Tue, 20 Apr 2010 21:56:34 +0000 (14:56 -0700)]
Update AudioService to reflect phone state changes with AudioFocus.
Phone calls and rings are treated as a new client, with a dedicated
client ID that identifies it in the audio focus stack. When it is
present in the stack, others clients cannot request audio focus
(request is denied).
Because the phone state is now mostly handled like a new client,
there is no need monitor mode changes and to keep track of
undispatched focus changes, as those will delayed focus gains
will now automatically happen at the end of the call when the
phone client is removed from the focus stack.
Change-Id: I11ff73b015ab93f07040755fd8ee75c8d675e025
Suchi Amalapurapu [Tue, 20 Apr 2010 22:04:41 +0000 (15:04 -0700)]
Merge "Fix
2610961 Unhide broadcast intents that are sent when sdcard gets mounted/unmounted." into froyo
Andreas Huber [Tue, 20 Apr 2010 21:48:45 +0000 (14:48 -0700)]
Merge "Don't coalesce more than 250ms worth of encoded data into a single codec input buffer. This currently only applies to the component OMX.TI.AAC.decode, it is the only one to support coalescing in the first place." into froyo
Jean-Michel Trivi [Tue, 20 Apr 2010 21:41:11 +0000 (14:41 -0700)]
Merge "Fix bug
2604132 40s skip after undocking In case of A2DP write errors, there is an overflow in the calculation of the sleep duration to simulate the timing of a successful write." into froyo
Andreas Huber [Tue, 20 Apr 2010 21:26:00 +0000 (14:26 -0700)]
Don't coalesce more than 250ms worth of encoded data into a single codec input buffer.
This currently only applies to the component OMX.TI.AAC.decode, it is the only one to support coalescing in the first place.
In certain edge cases (encoded audio track contains silence), each buffer would turn out to be an amazing 6(!!!) bytes, we'd spend lots and lots of time streaming network data to fill the codec's buffers of size 6144 bytes with .. silence.
Change-Id: I9f449f310fc64ca384bd02e4a783e33cf5b46fcc
related-to-bug:
2609049
QA-Impact: streamed (http) playback of aac audio content on Droid.
Suchi Amalapurapu [Tue, 20 Apr 2010 21:08:08 +0000 (14:08 -0700)]
Fix
2610961
Unhide broadcast intents that are sent when sdcard gets mounted/unmounted.
Change-Id: Ibb5700178e98f657f1c2b6a2f83e722151c4a44f
Nicolas Roard [Tue, 20 Apr 2010 20:22:44 +0000 (13:22 -0700)]
Merge "Speed up layers rendering when using animations Cherry-pick from master" into froyo
Daniel Sandler [Tue, 20 Apr 2010 19:57:54 +0000 (12:57 -0700)]
Merge "Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)" into froyo
Jean-Michel Trivi [Tue, 20 Apr 2010 19:12:13 +0000 (12:12 -0700)]
Fix bug
2604132 40s skip after undocking
In case of A2DP write errors, there is an overflow in the calculation
of the sleep duration to simulate the timing of a successful write.
Change-Id: Ic4e570aebf07fac69735aab1bbc2fc73512ee795
Nicolas Roard [Tue, 20 Apr 2010 02:08:55 +0000 (19:08 -0700)]
Speed up layers rendering when using animations
Cherry-pick from master
Bug:
2522049
Change-Id: I441f00b6e7551930c4f76983681f4cd0c57ce017
Carl Shapiro [Tue, 20 Apr 2010 18:42:39 +0000 (11:42 -0700)]
Merge "Remove code to pass the nonexistant lockprofsample flag to Dalvik." into froyo
Grace Kloba [Tue, 20 Apr 2010 18:40:07 +0000 (11:40 -0700)]
Merge "Don't inflate the zoom button controller until we are going to show it. This should shave 5% of Browser start up time on Sapphire." into froyo
Marco Nelissen [Tue, 20 Apr 2010 18:24:10 +0000 (11:24 -0700)]
Merge "When updating existing entries in the media database, don't update the is_music, is_ringtone, etc columns. This ensures that custom ringtones will still be shown in the ringtone picker after a rescan. Bug
2594125 Change-Id: I56761240d6f6e699514169d80a445317ba0de9e2" into froyo
Grace Kloba [Tue, 20 Apr 2010 17:02:20 +0000 (10:02 -0700)]
Don't inflate the zoom button controller until we
are going to show it. This should shave 5% of Browser
start up time on Sapphire.
Fix http://b/issue?id=
2604295
Marco Nelissen [Tue, 20 Apr 2010 16:46:00 +0000 (09:46 -0700)]
When updating existing entries in the media database, don't update
the is_music, is_ringtone, etc columns. This ensures that custom
ringtones will still be shown in the ringtone picker after a rescan.
Bug
2594125
Change-Id: I56761240d6f6e699514169d80a445317ba0de9e2
Eric Laurent [Tue, 20 Apr 2010 16:40:57 +0000 (09:40 -0700)]
Fix issue
2602879: camera shutter sound not playing.
The problem occurs if the device is powered down in silent mode. When the device restarts,
AudioService reads current ringer mode from saved settings but does not call setRingerModeInt()
to perform actions required when ringer mode changes.
The volumes of streams affected by ringer mode are actually at 0 because they are also read from settings
but their mute state is not applied correclty. When we later exit from silent mode, the streams
other than STREAM_RING that are affected by ringer mode are not restored as they are not considered
muted. This applies to STREAM_SYSTEM but also to STREAM_NOTIFICATION if its volume is controlled independently
from STREAM_RING.
The fix consists in calling setRingerModeInt() when AudioService starts.
Change-Id: Ica75b9874938dda1bc1b634c3e97db4a650d295c
Eric Laurent [Tue, 20 Apr 2010 14:01:00 +0000 (07:01 -0700)]
Fix issue
2604270 Device auto connects to Car Dock (Media profile) after undocking.
There was a regression introduced by change
4c637b9e34f4c8db69a64ad21a4e2bcfa7485b5f
fixing issue
2578813. As the A2DP device disconnection is notified to the audio policy manager
after a delay, there is a period during which the A2DP device is actually not connected but the
A2DP output is considered present by audio framework. If a playback is started during this period,
The A2DP output requests the activation of the A2DP sink which in turn triggers a reconnection
of the A2DP sink.
The fix consists in suspending the A2DP output immediately when receiving the A2DP disconnection
intent so that any activity on A2DP output is ignored until the output is actually closed by the
audio policy manager.
Change-Id: I16eaace45e12bfc970f50836b46a73b756b493f0
Carl Shapiro [Tue, 20 Apr 2010 08:25:20 +0000 (01:25 -0700)]
Remove code to pass the nonexistant lockprofsample flag to Dalvik.
Change-Id: If334e21d770bc21a9b7c4f04d0fb652f53359231
Mathias Agopian [Tue, 20 Apr 2010 02:23:45 +0000 (19:23 -0700)]
Merge "fix [
2599939] "cannot play video" after open/close a video player a dozen of times" into froyo
Mathias Agopian [Tue, 20 Apr 2010 02:09:03 +0000 (19:09 -0700)]
fix [
2599939] "cannot play video" after open/close a video player a dozen of times
get rid off the MAP_ONCE flag is MemoryHeapBase (as well as it's functionality),
this feature should not be used anymore.
the software renderer was incorrectly using the default ctor which set MAP_ONCE,
causing the leak. the software renderer itself is incorrectly used while coming
back from sleep.
Change-Id: I123621f8d140550b864f352bbcd8a5729db12b57
Jack Palevich [Tue, 20 Apr 2010 02:06:35 +0000 (19:06 -0700)]
Merge "Quietly handle EGL_BAD_NATIVE_WINDOW errors" into froyo
Daisuke Miyakawa [Tue, 20 Apr 2010 00:53:30 +0000 (09:53 +0900)]
Make vCard allow users to refrain image export. Useful when
receivers cannot accept image data.
Bug:
2603200
Change-Id: I3c490b2de37ebb2780df4a27a440df3b0afacb3a
Grace Kloba [Mon, 19 Apr 2010 23:11:21 +0000 (16:11 -0700)]
Merge "Update the comment which supposed to be checked in in the last CL." into froyo
Grace Kloba [Mon, 19 Apr 2010 23:05:19 +0000 (16:05 -0700)]
Update the comment which supposed to be checked in
in the last CL.
Fix http://b/issue?id=
2607352
Adam Powell [Mon, 19 Apr 2010 22:33:08 +0000 (15:33 -0700)]
Merge "Fix bug
2587373 - awaken scrollbars when a scrolling view becomes visible." into froyo
Adam Powell [Mon, 19 Apr 2010 21:26:11 +0000 (14:26 -0700)]
Fix bug
2587373 - awaken scrollbars when a scrolling view becomes visible.
Change-Id: I7eb38c53c3a03b23786b8b0c2d16139acd0eb38e
Robert Greenwalt [Mon, 19 Apr 2010 20:21:01 +0000 (13:21 -0700)]
Merge "Misc fixes for throttling." into froyo
Grace Kloba [Mon, 19 Apr 2010 20:14:21 +0000 (13:14 -0700)]
Merge "Remove fixed size restriction on the SurfaceView before setting it to the full screen content view." into froyo
Robert Greenwalt [Mon, 19 Apr 2010 18:10:38 +0000 (11:10 -0700)]
Misc fixes for throttling.
Cleanup of duplicate code
Caching Ntp data so we don't hit the network as often
Clearing out of MRU data when we switch to a new sim
Sending notification after we reset byte counts
bug:
2605277
bug:
2605272
bug:
2597530
bug:
2576057
Change-Id: I3df526bae6374f6ae56fed67b0defad2b4fabefd
Scott Main [Mon, 19 Apr 2010 19:28:15 +0000 (12:28 -0700)]
Merge "add droiddoc flag to include since-tags for api level 8" into froyo
Brad Fitzpatrick [Mon, 19 Apr 2010 19:17:48 +0000 (12:17 -0700)]
Merge "Reduce lock contention, removing unnecessary synchronization." into froyo
Grace Kloba [Mon, 19 Apr 2010 19:14:41 +0000 (12:14 -0700)]
Merge "Force redraw in touch_up if there is a move." into froyo
Grace Kloba [Mon, 19 Apr 2010 19:14:17 +0000 (12:14 -0700)]
Remove fixed size restriction on the SurfaceView
before setting it to the full screen content view.
Fix http://b/issue?id=
2607352
Scott Main [Mon, 19 Apr 2010 19:00:15 +0000 (12:00 -0700)]
add droiddoc flag to include since-tags for api level 8
Change-Id: Ib7dc5114b075001cdf78db96dbbaa99644836f8b
Brad Fitzpatrick [Mon, 19 Apr 2010 18:58:52 +0000 (11:58 -0700)]
Reduce lock contention, removing unnecessary synchronization.
The value returned is purely a function of what's passed in, all
following final members.
BUG=
2606839
Change-Id: I506fb9b1f3be965576c2b3317a30ff1f990ccda3
Brad Fitzpatrick [Mon, 19 Apr 2010 18:50:53 +0000 (11:50 -0700)]
Merge "Ease contention on the mProcessStatsThread mutex in updateCpuStats." into froyo
Daniel Sandler [Mon, 19 Apr 2010 18:29:05 +0000 (14:29 -0400)]
Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)
Previously, this status icon reflected just the incoming
call behavior:
- gone for audible (with or without vibrate),
- wiggling phone for vibrate,
- silent (speaker + X) for no audible ring or vibrate.
Now that silent mode has changed (see VIBRATE_IN_SILENT),
you can easily get into a state where this icon is
confusing by setting the incoming call ringer to *never*
vibrate but setting the overall device silent state to allow
vibration (VIBRATE_IN_SILENT=true). In this case, rocking
the volume all the way down would show a wiggling phone
(because the device is in vibrate-only mode) but the status
bar would show speaker+X (because the incoming call would
neither ring nor vibrate).
Now these two icons are consistent. This means, however,
that if this special condition is set by the user (device
vibrates in silent mode, but incoming calls should never
vibrate) and the device is in silent mode, the status bar
will show a wiggling phone even though incoming calls will
not vibrate the device. This puts the ringer on a more even
footing with other apps on the device, which may elect not
to vibrate even if VIBRATE_IN_SILENT=true overall.
Bug:
2598014
Change-Id: Ib942f68738d77ab0d9b9da4fac718ae5957c133c
Brad Fitzpatrick [Mon, 19 Apr 2010 17:47:40 +0000 (10:47 -0700)]
Ease contention on the mProcessStatsThread mutex in updateCpuStats.
BUG=
2606839
Change-Id: I444af0bb4a7b0be7ebf9ee5887805f2f09a426d0
Grace Kloba [Mon, 19 Apr 2010 17:16:42 +0000 (10:16 -0700)]
Force redraw in touch_up if there is a move.
Fix http://b/issue?id=
2606815
Irfan Sheriff [Mon, 19 Apr 2010 16:50:37 +0000 (09:50 -0700)]
Merge "Reset notification state on wifi enable" into froyo
Jean-Michel Trivi [Mon, 19 Apr 2010 16:41:19 +0000 (09:41 -0700)]
Merge "Fix bug
2599698 Music paused by itself The NotificationPlayer sets an OnCompletionListener on the MediaPlayer it's using to play the notification. NotificationPlayer relies on the completion event to abandon audio focus. The player was started before the listener was set. The theory about the bug is that the player finished playing before the listener was called. Therefore the audio focus was never abandonned, and the music didn't resume." into froyo
Mike Lockwood [Mon, 19 Apr 2010 15:18:58 +0000 (08:18 -0700)]
Merge "Fix inconsistency in how we handle light sensor when battery is low." into froyo
Jack Palevich [Mon, 19 Apr 2010 14:32:15 +0000 (22:32 +0800)]
Quietly handle EGL_BAD_NATIVE_WINDOW errors
We believe these errors happen when the window
manager has told surface flinger to close the
native window.
If this error happens while we are creating the
EGL surface we exit the render loop (and
therefore exit the render thread.)
If the error happens while swapping the surface
we ignore it.
In either situation, we expect that the
application is about to be shut down by the
window manager, so it should not be necessary
to try and recover from the error.
Irfan Sheriff [Mon, 19 Apr 2010 06:04:13 +0000 (23:04 -0700)]
Reset notification state on wifi enable
Bug:
2600111
Change-Id: Ifaa63cd7c05dfa27fbd851de6f7e92f7fc38907b
Robert Greenwalt [Thu, 15 Apr 2010 05:37:12 +0000 (22:37 -0700)]
Make ThrottleService more tamper resistant.
Use elapsed time not wall time for alarms so users can't play with the
system time to get around things.
Also using NTP servers to pull in an authoritative time - if we the build
is configured with an NTP server we will not advance to the next cycle
without it, but we also will not trottle - rather not throttle users
on an error.
Note that the poll alarm is just relative to the last poll time and real
time doesn't matter.
Defining the time-fetching API's as returning time in the system wallclock
range (correcting if we are using NTP time internally).
bug:
2597530
Change-Id: I1c0ac0923314c2f8a04edd0b36c4845352eae99a
Mike Lockwood [Sun, 18 Apr 2010 02:29:20 +0000 (22:29 -0400)]
Fix inconsistency in how we handle light sensor when battery is low.
In lightSensorChangedLocked we ignore the light sensor if the battery is low.
But in applyButtonState() and applyKeyboardState() we were still using the previous
mLightSensorScreenBrightness value, which resulted in a race condition that could
leave the button lights on after the screen turns off.
Now we ignore the light sensor value and button brightness override if the battery
is low so the low battery behavior is consistent.
Change-Id: I4943f8904299883211a95596ee207df69d1eaea2
BUG:
2570962
Signed-off-by: Mike Lockwood <lockwood@android.com>
Irfan Sheriff [Sat, 17 Apr 2010 16:27:25 +0000 (09:27 -0700)]
Merge "Dont check on interface value on API" into froyo
Irfan Sheriff [Fri, 16 Apr 2010 23:53:20 +0000 (16:53 -0700)]
Dont check on interface value on API
The interface check in API could be used
in future.
Bug:
2576057
Change-Id: Icfb78a88be44d1e6a8350c4b65efe70970e658d8
Jean-Michel Trivi [Fri, 16 Apr 2010 23:40:47 +0000 (16:40 -0700)]
Fix bug
2599698 Music paused by itself
The NotificationPlayer sets an OnCompletionListener on the
MediaPlayer it's using to play the notification.
NotificationPlayer relies on the completion event to abandon
audio focus.
The player was started before the listener was set. The theory
about the bug is that the player finished playing before the listener
was called. Therefore the audio focus was never abandonned, and
the music didn't resume.
Change-Id: Ic3baf359ea24de0d832a655dc47e745b25bc3dec
Grace Kloba [Fri, 16 Apr 2010 23:34:43 +0000 (16:34 -0700)]
Merge "Missed a case to resumeUpdatePicture." into froyo
Scott Main [Fri, 16 Apr 2010 23:14:33 +0000 (16:14 -0700)]
Merge "cherry-pick from master:
c096a9aead60717fc106ceb259bf954a578d3c54 (plus other revisions to resolve bug
2595831)" into froyo
Grace Kloba [Fri, 16 Apr 2010 22:49:36 +0000 (15:49 -0700)]
Missed a case to resumeUpdatePicture.
Fix http://b/issue?id=
2603882
Vasu Nori [Fri, 16 Apr 2010 21:48:47 +0000 (14:48 -0700)]
Merge "accept close() on database objects even if the database is closed" into froyo
Vasu Nori [Fri, 16 Apr 2010 21:24:57 +0000 (14:24 -0700)]
accept close() on database objects even if the database is closed
bug:
2602878
Change-Id: I3075f801ef35d72792ff3daaa1e887e53b58f5f8
Carl Shapiro [Fri, 16 Apr 2010 20:25:03 +0000 (13:25 -0700)]
Merge "Add command line flags to enable lock profiling." into froyo
Mike Reed [Fri, 16 Apr 2010 17:16:36 +0000 (13:16 -0400)]
retool resize logic to use max dimension and max area.
Change-Id: I32446b41afe9e7c241868c0cb7b9b7d9056b2d38
http://b/issue?id=
2598253
Mike LeBeau [Fri, 16 Apr 2010 14:23:12 +0000 (07:23 -0700)]
Merge "For search suggestions in the search dialog, allow the 'title' line of text to be up to 2 lines (rather than the usual 1) if no 'description' line is provided." into froyo
Carl Shapiro [Mon, 12 Apr 2010 23:31:59 +0000 (16:31 -0700)]
Add command line flags to enable lock profiling.
Robert Greenwalt [Fri, 16 Apr 2010 00:37:55 +0000 (17:37 -0700)]
Merge "Add multi-sim support to ThrottleService." into froyo
Robert Greenwalt [Thu, 15 Apr 2010 15:27:14 +0000 (08:27 -0700)]
Add multi-sim support to ThrottleService.
Uses the last used data until the SIM is available (if ever). Supports data from
several SIMs for all the world travelers out there.
bug:
2576057
Change-Id: I70e34a51f1c2ccda41a480652b0233b68ff3f538
Dianne Hackborn [Thu, 15 Apr 2010 20:33:21 +0000 (13:33 -0700)]
Merge "A little more improvement of the Service javadoc." into froyo
Robert Greenwalt [Thu, 15 Apr 2010 20:28:43 +0000 (13:28 -0700)]
Merge "Fix SntpClient to give accurate time info." into froyo
Robert Greenwalt [Thu, 15 Apr 2010 19:31:55 +0000 (12:31 -0700)]
Fix SntpClient to give accurate time info.
Old calc was off by 2x and was affected by the user-settable system clock. The error
came because it was calculating the offset between our clock and the NTP clock and the algebra
had two factors of the offset instead of the desired 1.
bug:
2600010
Change-Id: I0856091d32b50e6909e4889fb98df819e0aeabbe
Dianne Hackborn [Thu, 15 Apr 2010 18:33:38 +0000 (11:33 -0700)]
A little more improvement of the Service javadoc.
Change-Id: I15fb191a26f2ef86a2bf553177cb2d08905adb1c
David 'Digit' Turner [Mon, 12 Apr 2010 23:11:15 +0000 (16:11 -0700)]
Remove native binaries when an updated system application is upgraded through OTA.
The point of this patch is to deal with the following case:
- A system application exists in the system partition. As such its
native code lies under /system/lib
- An upgrade for it is installed through Market and overrides the
version on the system partition. This places its native libraries
under /data/data/<pkgname>/lib/
- Finally, the system is upgraded through an OTA, with an even more
recent of the system application. We thus must remove the Market
package as well as the native libraries that are in <dataDir>/lib
since the new versions in /system/lib will be more recent.
The patch itself removes the files in <dataDir>/lib when such a
situation is detected. Note that this directory is created by the
PackageManager service and owned by the 'system' userID. The application
cannot create files there so simply erasing the content of the directory
is enough (and avoids reparsing the market package file to list
the installed binaries).
The patch also fixes a different issue which can be reproduced with:
- have system app installed on /system partition
- install an update (e.g. adb install -r Term.apk)
- uninstall the update (e.g. adb uninstall com.android.term)
the logcat shows that the PackageManager will unpack the native libraries
from the original /system/app/Term.apk into <dataDir>/lib, while they
already are in /system/lib. The patch fixes that too.
Change-Id: I5dfe27b91b6b31972e9cd4c196d15c3692732127
Mike LeBeau [Thu, 15 Apr 2010 15:35:47 +0000 (11:35 -0400)]
For search suggestions in the search dialog, allow the 'title'
line of text to be up to 2 lines (rather than the usual 1) if
no 'description' line is provided.
Change-Id: Ibc60d72868a4ad9630d38ee9b8cfe3f37c736e64
Kenny Root [Thu, 15 Apr 2010 12:55:00 +0000 (05:55 -0700)]
Merge "Import revised translations" into froyo
Mike Lockwood [Thu, 15 Apr 2010 12:45:21 +0000 (05:45 -0700)]
Merge "Fix wakelock leak in PowerManagerService.sendNotificationLocked()" into froyo
Dianne Hackborn [Thu, 15 Apr 2010 05:08:29 +0000 (22:08 -0700)]
API 8!
Change-Id: I30a6a99f63a81900751f2afccf03430ddef82833
Kenny Root [Thu, 15 Apr 2010 03:30:39 +0000 (20:30 -0700)]
Import revised translations
Change-Id: Icdbd0bf88b18870dd3b063126e4559f6af3138a6
Robert Greenwalt [Thu, 15 Apr 2010 03:23:45 +0000 (20:23 -0700)]
Merge "Sholes mobile iface comes/goes - handle the reset" into froyo
Suchi Amalapurapu [Thu, 15 Apr 2010 02:17:14 +0000 (19:17 -0700)]
Revert "Add ordered broadcast when removing packages."
Couple of cosmetic fixes as well.
This reverts commit
0c1285fa979e8b8c170f31d0ef1b4e5d9ddcf6b1.
Conflicts:
services/java/com/android/server/PackageManagerService.java
Change-Id: Ife0f9f80525f4a41b1f8c12ffc2de62e061e7d5b
Dianne Hackborn [Thu, 15 Apr 2010 02:02:00 +0000 (19:02 -0700)]
Merge "Fix issue #258640: Automatic propagation of FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET" into froyo
Dmitri Plotnikov [Thu, 15 Apr 2010 01:33:54 +0000 (18:33 -0700)]
Merge "Introducing "strict project map"." into froyo
Suchi Amalapurapu [Thu, 15 Apr 2010 01:28:22 +0000 (18:28 -0700)]
Merge "Dont fall back to installing on sdcard when internal storage is filled up when the install location is set to internal only. Similary if install location is set to external only(via adb), dont fall back to installing on internal storage if sdcard is filled up. If nothing is specified ie install location is set to let system decide, we just check on internal storage. Fix tests" into froyo
Suchi Amalapurapu [Tue, 13 Apr 2010 21:32:16 +0000 (14:32 -0700)]
Dont fall back to installing on sdcard when internal storage is filled up
when the install location is set to internal only. Similary if install
location is set to external only(via adb), dont fall back to installing on
internal storage if sdcard is filled up.
If nothing is specified ie install location is set to let system decide,
we just check on internal storage.
Fix tests
Change-Id: I7400ccc131782d9c45284bd9ebd0dee43a3b412b
Mathias Agopian [Thu, 15 Apr 2010 01:18:44 +0000 (18:18 -0700)]
Merge "fix [
2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)" into froyo
Suchi Amalapurapu [Thu, 15 Apr 2010 01:11:34 +0000 (18:11 -0700)]
Merge "Add ordered broadcast when removing packages." into froyo
Dianne Hackborn [Thu, 15 Apr 2010 01:01:43 +0000 (18:01 -0700)]
Fix issue #258640: Automatic propagation of FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
Make sure, if an activity is started with clear task when reset, if that
activity is finished in the middle of a stack that the behavior is retained
by propagating it to the next activity.
Change-Id: Ie31b8f968558b0e64e0ef7efa55950a722c6afa5
Robert Greenwalt [Thu, 15 Apr 2010 00:31:20 +0000 (17:31 -0700)]
Sholes mobile iface comes/goes - handle the reset
The byte counter for the iface goes to zero when it comes back. Catch that and
do the complex math to correct.
Also add a log entry telling us our desired throttle index.
Lastly, reset the sec/msec part of our reset time so that one calc will == another and not
be off by little bits.
bug:
25494925
Change-Id: I99525b72a76316a8e601ceb457ca202fae040bae
Suchi Amalapurapu [Thu, 15 Apr 2010 00:05:48 +0000 (17:05 -0700)]
Add ordered broadcast when removing packages.
Change-Id: I30a84068fa8f2b15564b0a164d339ac95f40e801
Mathias Agopian [Wed, 14 Apr 2010 23:43:44 +0000 (16:43 -0700)]
fix [
2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)
We now limit the size of the surface to the maximum size supported by the GPU.
On Nexus One this will 2048 -- it could be different on other devices.
Surface creation fails if the limit is exceeded.
Change-Id: I9ecfc2e9c58c9e283782b61ebfc6b590f71df785
Dmitri Plotnikov [Wed, 14 Apr 2010 23:09:46 +0000 (16:09 -0700)]
Introducing "strict project map".
Change-Id: I147e10ac6475badf1d21e2c27d1cedbb27bd49df
Vasu Nori [Wed, 14 Apr 2010 22:53:43 +0000 (15:53 -0700)]
Merge "verify database state before calling sqlite. Bug:
2593970" into froyo
Tom O'Neill [Wed, 14 Apr 2010 16:36:37 +0000 (09:36 -0700)]
cherry-pick from master:
c096a9aead60717fc106ceb259bf954a578d3c54
(plus other revisions to resolve bug
2595831)
Minor fixes in hello-tabwidget.jd
Fix some typos, including a few that lead to non-functioning code.
Change-Id: I0057ec7d54836b38d2c7f7b12617327d911f0915
Grace Kloba [Wed, 14 Apr 2010 19:44:05 +0000 (12:44 -0700)]
Merge "Pass WebKit scrollbar mode to Java. When scrollbar is alwaysOff, don't trigger scroll." into froyo
Eric Laurent [Tue, 13 Apr 2010 17:38:05 +0000 (10:38 -0700)]
Fix issue
2592680: Saved ringer volume forced to 0 when receiving a call in silent mode.
This is a regression introduced by change
5b4e654d0c7de8e4d58d73e73b0d5220f19b68f7 for issue
2472495.
When AudioService changes audio mode, setMode() reapplies current volume for the default active stream
which in this case is STREAM_RING.
Because the new implementation of silent mode actually mutes the ringer stream,
setStreamVolumeInt() now applies the volume change received while in silent mode
to the last audible value and we end up clearing the last audible volume for ringer.
The fix consists in not modifying last audible value when the new value is 0.
Also removed obsolete code in setStreamVolumeInt() since new implementation of setRingerModeInt()
in change
5b4e654d0c7de8e4d58d73e73b0d5220f19b68f7.
Change-Id: I746f3bc1af39a602ce12d130ce592007b2d0ebb6