History log of /frameworks/base/cmds/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
abb4a7008a1f5eab6cfaf7e9dd4779e549c21714 22-Nov-2012 Svetoslav Ganov <svetoslavganov@google.com> Update the content shell command's usage instructions.

The usage instructions of the content shell command were missing some
excape charecters which caused the examples not to work. As a result
of the incorrect instructions users are prone to constructing incorrect
commands.

bug:7526252

Change-Id: I2fcc4dd1fd05806fe951245651b97e40a4786d24
ontent/src/com/android/commands/content/Content.java
799916e6ac706921e43a3382e5d9e06e13f87525 24-Oct-2012 Dave Burke <daveburke@google.com> Merge "Revert "Check non-primary user dirs during package scan"" into jb-mr1-dev
383fa18b511c195cc51a96c5504442bfec998e9f 24-Oct-2012 Dave Burke <daveburke@google.com> Revert "Check non-primary user dirs during package scan"

This reverts commit 4525f5b69cb44a9a0c92f9c525fc47541f456621

Change-Id: I31b7a0860972532478ab3420556b806bfa78739a
nstalld/commands.c
da2509c434ebb2a5a0da1bc270cae7f007cbb0f9 24-Oct-2012 Kenny Root <kroot@google.com> Merge "Check non-primary user dirs during package scan" into jb-mr1-dev
4525f5b69cb44a9a0c92f9c525fc47541f456621 22-Oct-2012 Kenny Root <kroot@google.com> Check non-primary user dirs during package scan

During package scan, only the primary user data directories were
checked. If the secondary user didn't have an application directory, it
would happily ignore it. The app would then crash upon startup.

Bug: 7391882
Change-Id: I1fa92aa27386104d4ac6bc5dc92bfbf2e7dfac9f
nstalld/commands.c
9157d3f3b70f5225e06b0a478f2d3c5ce3d923b2 23-Oct-2012 Kenny Root <kroot@google.com> Clear data deletes too much

Bug: 7389445
Change-Id: Ic12d7a8e37747dc1a9b71ec5f881b5e440e0a75e
nstalld/commands.c
a3e90798b7ad3ed62e5b31842c699b2f98bd457b 18-Oct-2012 Kenny Root <kroot@google.com> Robustly add symlink and add for non-primary users

Amazingly, some apps still don't use the nativeLibraryPath. So add a lib
symlink for non-primary users to fix that.

Also, there was an error when the symlink existed that it would give up.
This shouldn't really happen, but in that case, just remove it and
create a new one to be safe.

Also, move the downgrade code to the appropriate place. This downgrade
case triggered the above symlink existing bug.

Bug: 7318366
Bug: 7371571
Change-Id: Ia175b36d98f00bdc2f2433b909aafd524eb34d15
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
a3e9ff7debde50f6b58ebc3033cbbad650c10ac7 16-Oct-2012 Jeff Sharkey <jsharkey@android.com> Support pm clear as --user.

Bug: 7352703
Change-Id: I0e9cc4f2313e5424d234c3cb051004c0321d9dac
m/src/com/android/commands/pm/Pm.java
4c76ea6b88fad2b0147c050c02c6fd3d886d6743 12-Oct-2012 Jeff Sharkey <jsharkey@android.com> Pm command to get maximum users.

Used to drive CTS tests. Also print success message when removing
a user.

Bug: 7334718
Change-Id: Ia3886ddf860cd000ce567b0fed2ef0a4e2a2295c
m/src/com/android/commands/pm/Pm.java
e6d3ccc99270aaf62808adc7475a25d96664f0fb 12-Oct-2012 Jeff Sharkey <jsharkey@android.com> Print newly generated userId.

Bug: 7334718
Change-Id: Id4dc456b079bebbe9f2d7ea2a8343d2215f296dc
m/src/com/android/commands/pm/Pm.java
c0bd747b0605af251ff136277f14220a5a4c9818 09-Oct-2012 Dianne Hackborn <hackbod@google.com> Further work on issue #7307399: Framework needs a new pre-user-shutdown...

...phase & callback API

I realized there were a few things wrong with what was there. The new
ACTION_USER_STARTING was not being sent for the first user at boot, and
there was an existing problem where ACTION_USER_STARTED was sent every
time there was a user switch.

Also improved some debug output of broadcasts to make it easier to see
what is going on in this stuff, and better reporting of why a service
couldn't be started.

Change-Id: Id8a536defbbad1f73d94a37d13762436b822fbe3
m/src/com/android/commands/am/Am.java
af75948cddd40a0fde5af051b700306744eae64c 08-Oct-2012 Christopher Tate <ctate@google.com> New command line tool: "settings"

Because the usual content provider interface doesn't allow specification of
the target user under which to perform settings reads/writes, this CL introduces
a new command line app specifically for that.

Usage:

settings [--user num] get namespace key
settings [--user num] put namespace key value

If a --user argument is not given, the owner user is targetted.

Bug 7299066

Change-Id: I73108bb76b04fad133cc4e0f218d64490de549f1
ettings/Android.mk
ettings/settings
ettings/src/com/android/commands/settings/SettingsCmd.java
54289b8b4a110cc1ae106d79785cc762a2aebd6e 01-Oct-2012 Amith Yamasani <yamasani@google.com> Fix cache deletion for secondary users

Bug: 7249419

Change-Id: Idbc0f9994508059ebf5055aea961b87e08b3673a
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
3ff8e1a80058e5557d13693d3223e1aa011c0038 29-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7211769 and #7244492, thrash around on #7226656." into jb-mr1-dev
1d3527354396d3aa48b494fb409d680cce32dc8b 29-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7202950: After clearing data, clear data button is still enabled." into jb-mr1-dev
d4ac8d7b3de27a9f0e4c6af2496ca71d794e42d1 28-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7211769 and #7244492, thrash around on #7226656.

Issue #7211769: Crash dialog from background user has non-working "report"

The report button now launches the issue reporter for the correct user.
Also for crashes on background users, either disable the report button,
or simply don't show the dialog depending on the build config.

Issue #7244492: Bugreport button in Quick Settings doesn't actually do anything

Now they do.

Issue #7226656: second user seeing primary user's apps

I haven't had any success at reproducing this. I have tried to tighten up
the path where we create the user to ensure nothing could cause the
user's applications to be accessed before the user it fully created and thus
make them installed... but I can't convince myself that is the actual problem.

Also tightened up the user switch code to use forground broadcasts for all
of the updates about the switch (since this is really a foreground operation),
added a facility to have BOOT_COMPELTED broadcasts not get launched for
secondary users and use that on a few key system receivers, fixed some debug
output.

Change-Id: Iadf8f8e4878a86def2e495e9d0dc40c4fb347021
m/src/com/android/commands/am/Am.java
f41496f1791d983bf8bbbdf95f72528e59284b39 28-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7202950: After clearing data, clear data button is still enabled.

Count the lib symlink against the app's code size. Also be sure to
look at the new separate lib path for apps, and tweak the size
counting to also count the size of directory entries.

Change-Id: I4b0fd5771f249faa05fd72f08062df885902cc97
nstalld/commands.c
37d83a3caf138e35fa1a355787d20c351f6b37a6 27-Sep-2012 Ben Gruver <bgruv@google.com> Pass the originating uid to the package verifier

Bug: 6923241
Change-Id: I85a3e0d53b469543cb0551d3a440d2663b5d0697
m/src/com/android/commands/pm/Pm.java
b12e1354f25f04e9c9a71da76c6fca858b7d39d0 26-Sep-2012 Dianne Hackborn <hackbod@google.com> Maybe fix issue #7211766: bindService() to User u0 While u10 is...

...Forground Sometimes Doesn't Take

The main change here is a one-liner in ActiveServices to check the
uid when deciding whether to remove an item from mPendingServices.
This could cause the problem being seen -- if the same service for
two users is starting at the same time, the second one would blow
away the pending start of the first one. Unfortunately I have had
trouble reproducing the bug, so I don't know if this is actually
fixing it. It's a bug, anyway.

The reason so much has changed here is because I spread around
logging and printing of the user ID associated with operations and
objects to make it easier to debug these kind of multi-user things.

Also includes some tweaks to the oom manager to allow more background
processes (I have seen many times in logs where we thrash through
processes because the LRU list is too short), plus to compensate an
additional time-based metric for when to get rid of background processes,
plus some new logic to try to help things like Chrome keep around
their service processes.

Change-Id: Icda77fb2a1dd349969e3ff2c8fff0f19b40b31d3
m/src/com/android/commands/am/Am.java
556b09e184b891d9542092962ed248616810e054 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6926562: Ensure all multi-user cache files are managed correctly

Now we correctly iterate through the different user cache dirs.

Also update documentation to describe the new cache pruning behavior,
and deprecate the file modes for making files world readable/writable
which we really don't want people using any more.

Change-Id: I3708df3ddc697b1f5c511143cce7cc40a5a3d0bd
nstalld/commands.c
6d51571835737c7502a2e111ee9dc2527ebad984 21-Sep-2012 Jeff Sharkey <jsharkey@android.com> Allow acquiring ContentProviders across users.

Otherwise services like SystemUI will always open content://-style
Uris as USER_OWNER. Surfaces through createPackageContextAsUser()
which points all ContentResolver operations towards a given user.

Start using in RemoteViews, so that Notifications correctly resolve
image Uris to the sending user. Also add user support for "content"
shell tool.

Bug: 7202982
Change-Id: I8cb7fb8a812e825bb0b5833799dba87055ff8699
ontent/src/com/android/commands/content/Content.java
920ace0bbc2d4133dbec991d2636c99a57d6245e 21-Sep-2012 Amith Yamasani <yamasani@google.com> Query users excluding any being removed

Keep track of user creation and last logged-in time.
adb shell dumpsys users
User switcher shouldn't show users about to be removed.
No need to check for singleton for activities.

Bug: 7194894
Change-Id: Ic9a59ea5bd544920479e191d1a1e8a77f8b6ddcf
m/src/com/android/commands/pm/Pm.java
9ba2a188919e6e5bf8c042b26527fc090de677ef 11-Sep-2012 Jeff Brown <jeffbrown@google.com> Merge changes I4ad08873,If0562677,I5fe6ba32 into jb-mr1-dev

* changes:
Don't auto-discover peers until scan requested.
Use wfdInfo to filter available sinks.
Allow adb shell am display-size to use bigger sizes.
9bbd70a96397bd5f1445ad6c21977fccfb350dfa 10-Sep-2012 Kenny Root <kroot@google.com> Remove "unlinklib" command from installd

unlinklib is no longer necessary since libraries are now either stored
in an ASEC container or in /data/app-lib

Replace lib directory with a symlink to the /data/app-lib directory even
if it's a dangling link. That way developers don't name something "lib"
in their directory which gets blown away during an update.

Change-Id: I142cf13dba9c13aafbaf0ff8d5e9872cbf1cc910
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
43aa15912891930833edfc101615a9c881de54a1 11-Sep-2012 Jeff Brown <jeffbrown@google.com> Allow adb shell am display-size to use bigger sizes.

We now support scaling the logical display to fit the
physical display, whatever size it is. So we can allow
adb shell am display-size to use more or less arbitrary sizes
although we do enforce an upper and lower bound to
protect the user.

Change-Id: I5fe6ba32ad1f9e4fbcd6915f7d36850b987bbcc0
m/src/com/android/commands/am/Am.java
4573e29faf40983f9d1df99bb0f506d77a868e05 11-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Flesh out multi-user in am commands." into jb-mr1-dev
1676c856d61b97c871dc2be0cb1f1fb1e12e24e9 10-Sep-2012 Dianne Hackborn <hackbod@google.com> Flesh out multi-user in am commands.

Now we default to the current user instead of user 0 for most commands
(except where we can do the command for all users).

Many more commands take a user argument: force-stop, kill, profile,
dumpheap.

Improved help text.

Change-Id: I719a13b4d31b668f57ca21e51d7043ac3e0d4e1b
m/src/com/android/commands/am/Am.java
d7f5a51baf2c46436dc5bac3807fb0d46cbff304 10-Sep-2012 Victoria Lease <violets@google.com> Merge "IME support for trackball and generic motion events" into jb-mr1-dev
b38070caa5143ab9fd1883e0c7c879533a480bc7 24-Aug-2012 Victoria Lease <violets@google.com> IME support for trackball and generic motion events

Trackball and generic motion events now pass through the IME in case
it would like to handle them before passing them on to the view
hierarchy.

While I was at it, I also...
...fixed the documentation on InputMethodService.onKeyUp()
...added documentation to InputMethodService.onTrackballEvent()
...added trackball and generic motion events to the "input" command
...fixed input consistency verification involving ACTION_OUTSIDE

Bug: 7050005
Change-Id: I40ab68df4a9542af6df25de6ec2ec500e4c02902
nput/src/com/android/commands/input/Input.java
5de4d989fbc08cf5135c07a74e2062bf64af95f1 09-Sep-2012 Guang Zhu <guangzhu@google.com> Merge "Use correct PowerManager call to wake up screen" into jb-mr1-dev
783f9e6615db5c90c184397cf1ee271e302c398b 09-Sep-2012 Guang Zhu <guangzhu@google.com> Use correct PowerManager call to wake up screen

The current implementation does not actually wakes up the screen.

Change-Id: Ief2dca013cfe40e03b64273fe7b09822e9ad42a7
vc/src/com/android/commands/svc/PowerCommand.java
0c191624fba8484e811027a9db40a62a960ab7dc 09-Sep-2012 Kenny Root <kroot@google.com> Remove "protect" command from installd

No one uses the "protect" command anymore, so remove it from installd.

Change-Id: Ia990bae6f95cd6e317496f5dd173ec15164d7164
nstalld/commands.c
nstalld/installd.c
151ec4c9f8ca34625733730a4551a23eb97cda23 08-Sep-2012 Amith Yamasani <yamasani@google.com> More multi-user methods in PM

pm can list installed packages by user now.

Bug: 6926465

Change-Id: I822311bfd6e7e2d6fb315fc484739fbf953c9bb6
m/src/com/android/commands/pm/Pm.java
cd620591b764cd999f18878985444fba01d5b710 08-Sep-2012 Nick Kralevich <nnk@google.com> Merge "installd: fix forward locking symlink" into jb-mr1-dev
7de350a91301985b7f2d9f28edde5aade8495d9b 08-Sep-2012 Nick Kralevich <nnk@google.com> installd: fix forward locking symlink

installd was not creating a compatibility symlink when
installing a forward locked application. Fix.

Bug: 7121527
Change-Id: Ied507ab2b759d8658af563e6ac8f0dbb0d286cce
nstalld/commands.c
649d0d71b245d88746b78399ffa1f75da7c80974 07-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "More multi-user stuff:" into jb-mr1-dev
5e03e2ca7d25b899b129baad2dd5eca6bf99d88a 06-Sep-2012 Dianne Hackborn <hackbod@google.com> More multi-user stuff:

- New (hidden) isUserRunning() API.
- Maintain LRU list of visited users.
- New FLAG_IS_DATA_ONLY for ApplicationInfo.
- Clean up pending intent records when force-stopping a user (or package).
(Also fixes bug #6880627: PendingIntent.getService() returns stale
intent of force stopped app)
- Fix force-stopping when installing an app to do the force-stop across
all users for that app.
- When selecting which processes to kill during a force stop, do this
based on the actual packages loaded in the process, not just process
name matching.
- You can now use --user option in am when starting activities, services,
and instrumentation.
- The am --user option accepts "current" and "all" as arguments.
- The pm uninstall command now uninstalls for all users, so it matches
the semantics of the install command.
- PhoneWindowManager now explicitly says to start home in the current
user.
- Activity manager call to retrieve the MIME type from a content provider
now takes a user argument, so it will direct this to the proper user.
- The package manager uninstall paths are now implemented around
PackageSetting, not PackageParser.Package. This allows them to work
even if the application's apk has been removed (in which case it only
exists as a PackageSetting, not the PackageParser.Package parsed from
the apk).

Change-Id: I3522f6fcf32603090bd6e01cc90ce70b6c5aae40
m/src/com/android/commands/am/Am.java
m/src/com/android/commands/pm/Pm.java
3065963f817f9a0f032ec7992c4154cfdeed443d 06-Sep-2012 Felipe Leme <felipeal@google.com> Wrapped call to notifyAll() in a synchronized block

Change-Id: I452caa56bef4541b53917bdd6f22034161255dd1
Bug: 7118468
m/src/com/android/commands/am/Am.java
0116136f4ca252c31a96a055eea4be8a52b32f3b 05-Sep-2012 Nick Kralevich <nnk@google.com> Merge "installd: reduce privileges." into jb-mr1-dev
812b19a425b8304ac9e5408cc8ceb9f363c72559 01-Sep-2012 Nick Kralevich <nnk@google.com> installd: reduce privileges.

Make installd run with fewer privileges. This will help make
exploitation of installd based vulnerabilities more difficult
to perform.

installd now runs with the following privileges:

* CAP_DAC_OVERRIDE
* CAP_CHOWN

These two capabilities are needed to add and remove files
from application's home directories.

* CAP_SETUID
* CAP_SETGID

These permissions are needed to further drop privileges when
running dexopt as the application UID.

"installd" no longer runs with full root privileges. It cannot,
for example, mount and unmount filesystems, install modules,
perform direct I/O, etc.

Change-Id: Ib407e41e5e4c95f35a5c6a154812c5e8ae3006ed
nstalld/commands.c
nstalld/installd.c
e2bdca5c4330b6bc9cc26480ae4c1eefe5ee9ce9 04-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix my fix.

Change-Id: I35fce760f8d91fceb554d372e7423749a4ac6d2d
m/src/com/android/commands/am/Am.java
52fba38f7d155e22e7487fc173243b4df2a9e76a 04-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix build.

Change-Id: I15592889b8679d946e402dcfdeb124df349cbd4d
m/src/com/android/commands/am/Am.java
4120375d46091df8527bb701882e056fbb0e6b06 31-Aug-2012 Dianne Hackborn <hackbod@google.com> Remove Binder.getOrigCallingUid().

Replaced all remaining places that used it with explicit user
specification.

While doing this, I ran into stuff that was creating PendingIntent
objects (that now need to specify the explicit user they are for),
which are also posting notifications... but have no way to specify
the user for the notification.

So the notification manager in the system process now also gets a
formal concept of a user associated with the notification, which
is passed in to all the necessary aidl calls. I also removed the
old deprecated aidl interface for posting/cancelling notifications,
since we now always need a user supplied.

There is more work that needs to be done here, though. For example
I think we need to be able to specify USER_ALL for a notification that
should be shown to all users (such as low storage or low battery).
Along with that, the PendingIntent creation needs to be tweaked to
be able to handle USER_CURRENT by evaluating the user at the point the
pending intent is sent.

That's for another change, however.

Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c
m/src/com/android/commands/pm/Pm.java
e671ccec0f4d0fc5fe11ffc9b3b40637e6d2ddda 30-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Shared OBB storage across users." into jb-mr1-dev
8ea0dc6a89b011d4f478c0c8192570d69cf7ce79 28-Aug-2012 Jeff Sharkey <jsharkey@android.com> Shared OBB storage across users.

To avoid downloading large OBB files separately for each user,
provide a shared view of /sdcard/Android/obb to all apps. Added
upgrade step to migrate the owners existing OBB files to become
the default view.

Bug: 7008879
Change-Id: I199321552fa7d4b97d5ed7fc3b3bc41f23618601
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
nstalld/utils.c
80a4af2bbc6af42ae605e454bf89558e564f5244 28-Aug-2012 Dianne Hackborn <hackbod@google.com> Start implementing concept of "running" users.

The activity manager now keeps track of which users are running.

Initially, only user 0 is running.

When you switch to another user, that user is started so it is
running. It is only at this point that BOOT_COMPLETED is sent
for that user and it is allowed to execute anything.

You can stop any user except user 0, which brings it back to the
same state as when you first boot the device. This is also used
to be able to more cleaning delete a user, by first stopping it
before removing its data.

There is a new broadcast ACTION_USER_STOPPED sent when a user is
stopped; system services need to handle this like they currently
handle ACTION_PACKAGE_RESTARTED when individual packages are
restarted.

Change-Id: I89adbd7cbaf4a0bb72ea201385f93477f40a4119
m/src/com/android/commands/am/Am.java
ac66d4a8d653331a03c27d5444467fd943503c9b 28-Aug-2012 Jeff Brown <jeffbrown@google.com> Merge "Use new surface flinger API." into jb-mr1-dev
0e17e5bc43373ff9dd8d567f876a26f990ed638e 28-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix installing applications from non-primary users." into jb-mr1-dev
786b44046a79d6c4c9cd07f5989d491c7196ad80 28-Aug-2012 Dianne Hackborn <hackbod@google.com> Fix installing applications from non-primary users.

We also now send the correct broadcasts to each user.

You no longer need to be running the shell as root
to be able to create/remove users.

Also added some more man page material to the pm command, and
got rid of a bunch of showUsage() calls that now make error
messages completely buried because of how large the usage info
has become.

And the package manager now shows the user each historical broadcast
was sent to.

Change-Id: Iab42498e1352a0c023069139c80fc04d2d69ab4b
m/src/com/android/commands/pm/Pm.java
0b722fe9ce98d97dbcb6fefd170b85ab7037e528 25-Aug-2012 Jeff Brown <jeffbrown@google.com> Use new surface flinger API.

Change-Id: Ic888577408a59a36481a48010e19c5e77c24e211
ootanimation/BootAnimation.cpp
creencap/screencap.cpp
62e2709c3ff91760108c31e6f60fcf57c8c8da46 27-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Ensure /data/media before trying to upgrade." into jb-mr1-dev
dc9b0128c52cc797847240e81ebc6de75229a3ab 27-Aug-2012 Jeff Sharkey <jsharkey@android.com> Ensure /data/media before trying to upgrade.

Most devices create the path in their init.rc, but create it just
to be sure. This fixes emulator boot failure.

Bug: 7058844
Change-Id: Icab3ce11c4304d972d13e1d9a0c269cfe05b9370
nstalld/installd.c
7e0e19d4201374d72b7082492bd269dbdb17d972 27-Aug-2012 Dianne Hackborn <hackbod@google.com> Restore man page entries.

Change-Id: I002808037ec117c039aeb71f425c1f43d4cac6d8
m/src/com/android/commands/am/Am.java
m/src/com/android/commands/pm/Pm.java
a31803fca6c61486e88d742a8ff58f178195f980 24-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Keep track of whether an app is installed for each user." into jb-mr1-dev
7767eac3232ba2fb9828766813cdb481d6a97584 24-Aug-2012 Dianne Hackborn <hackbod@google.com> Keep track of whether an app is installed for each user.

This add a new per-user state for an app, indicating whether
it is installed for that user.

All system apps are always installed for all users (we still
use disable to "uninstall" them).

Now when you call into the package manager to install an app,
it will only install the app for that user unless you supply
a flag saying to install for all users. Only being installed
for the user is just the normal install state, but all other
users have marked in their state for that app that it is not
installed.

When you call the package manager APIs for information about
apps, uninstalled apps are treated as really being not visible
(somewhat more-so than disabled apps), unless you use the
GET_UNINSTALLED_PACKAGES flag.

If another user calls to install an app that is already installed,
just not for them, then the normal install process takes place
but in addition that user's installed state is toggled on.

The package manager will not send PACKAGE_ADDED, PACKAGE_REMOVED,
PACKAGE_REPLACED etc broadcasts to users who don't have a package
installed or not being involved in a change in the install state.
There are a few things that are not quite right with this -- for
example if you go through a full install (with a new apk) of an
app for one user who doesn't have it already installed, you will
still get the PACKAGED_REPLACED messages even though this is
technically the first install for your user. I'm not sure how
much of an issue this is.

When you call the existing API to uninstall an app, this toggles
the installed state of the app for that user to be off. Only if
that is the last user user that has the app uinstalled will it
actually be removed from the device. Again there is a new flag
you can pass in to force the app to be uninstalled for all users.

Also fixed issues with cleaning external storage of apps, which
was not dealing with multiple users. We now keep track of cleaning
each user for each package.

Change-Id: I00e66452b149defc08c5e0183fa673f532465ed5
m/src/com/android/commands/am/Am.java
m/src/com/android/commands/pm/Pm.java
794d62f6078d23ff32f098f9d472f492be01b72f 24-Aug-2012 Amith Yamasani <yamasani@google.com> Fix permissions on cloned data dirs

This makes the downloaded apk visible to the package installer

Change-Id: I0f60cf279a3c6a08c7479f93ef9135d7428f2385
nstalld/commands.c
0c3804950236fe170ebf6cc7a5f1e3e305b8f315 21-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user app management.

Introduce API to get per-user storage information, keep track
of services associated with users, and various small cleanup.

Change-Id: I5d4e784e7ff3cccfed627d66a090d2f464202634
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
a5d5d608ccd885d8328879dde782a8cc93b7cf4f 21-Aug-2012 Brian Muramatsu <btmura@google.com> Merge "add wireless charger support" into jb-mr1-dev
706e8ba26bf0de19ad5f736516dae40c4c88c2d7 20-Aug-2012 rich cannings <richc@google.com> Pass URLs to package verifiers

This change passes the originating URL and accompanied referrer to
package verifiers, when available.

Bug: 6544677
Change-Id: I9ebc71bc13f549bd88267e444816151a99bda000
m/src/com/android/commands/pm/Pm.java
37a37f445cbcd64376af153dd79ea2a123d9405d 15-Aug-2012 Brian Muramatsu <btmura@google.com> add wireless charger support

bug: 6879638

- add new enum value BATTERY_PLUGGED_WIRELESS
- check for sys online file with contents "Wireless"

Change-Id: I22dc3c40f50573c98643e7b5cbcb237d0216530d
vc/src/com/android/commands/svc/PowerCommand.java
91bbb8a1e9f8b4324fd086fa9b26a4e9fe57569b 17-Aug-2012 Jeff Sharkey <jsharkey@android.com> Create media paths for existing users.

Bug: 6925012
Change-Id: I23bd9187217645cf538e074527c143a911a61299
nstalld/installd.c
c584b65b2093396c9a0c9303dab6ff6cb81ac315 16-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Multi-user external storage support." into jb-mr1-dev
5b1ada2562c17921adf6a62ea62bcb445160983c 15-Aug-2012 Jeff Sharkey <jsharkey@android.com> Multi-user external storage support.

Emulated external storage always has multi-user support using paths
like "/data/media/<user_id>". Creates and destroys these paths along
with user data. Uses new ensure_dir() to create directories while
always ensuring permissions.

Add external storage mount mode to zygote, supporting both single-
and multi-user devices. For example, devices with physical SD cards
are treated as single-user. Begin migrating to mount mode instead
of relying on sdcard_r GID to enforce READ_EXTERNAL_STORAGE.

Bug: 6925012
Change-Id: I9b872ded992cd078e2c013567d59f9f0032ec02b
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
nstalld/utils.c
9630704ed3b265f008a8f64ec60a33cf9dcd3345 28-Jul-2012 Jeff Brown <jeffbrown@google.com> Power manager rewrite.

The major goal of this rewrite is to make it easier to implement
power management policies correctly. According, the new
implementation primarily uses state-based rather than event-based
triggers for applying changes to the current power state.

For example, when an application requests that the proximity
sensor be used to manage the screen state (by way of a wake lock),
the power manager makes note of the fact that the set of
wake locks changed. Then it executes a common update function
that recalculates the entire state, first looking at wake locks,
then considering user activity, and eventually determining whether
the screen should be turned on or off. At this point it may
make a request to a component called the DisplayPowerController
to asynchronously update the display's powe state. Likewise,
DisplayPowerController makes note of the updated power request
and schedules its own update function to figure out what needs
to be changed.

The big benefit of this approach is that it's easy to mutate
multiple properties of the power state simultaneously then
apply their joint effects together all at once. Transitions
between states are detected and resolved by the update in
a consistent manner.

The new power manager service has is implemented as a set of
loosely coupled components. For the most part, information
only flows one way through these components (by issuing a
request to that component) although some components support
sending a message back to indicate when the work has been
completed. For example, the DisplayPowerController posts
a callback runnable asynchronously to tell the PowerManagerService
when the display is ready. An important feature of this
approach is that each component neatly encapsulates its
state and maintains its own invariants. Moreover, we do
not need to worry about deadlocks or awkward mutual exclusion
semantics because most of the requests are asynchronous.

The benefits of this design are especially apparent in
the implementation of the screen on / off and brightness
control animations which are able to take advantage of
framework features like properties, ObjectAnimator
and Choreographer.

The screen on / off animation is now the responsibility
of the power manager (instead of surface flinger). This change
makes it much easier to ensure that the animation is properly
coordinated with other power state changes and eliminates
the cause of race conditions in the older implementation.

The because of the userActivity() function has been changed
so that it never wakes the device from sleep. This change
removes ambiguity around forcing or disabling user activity
for various purposes. To wake the device, use wakeUp().
To put it to sleep, use goToSleep(). Simple.

The power manager service interface and API has been significantly
simplified and consolidated. Also fixed some inconsistencies
related to how the minimum and maximum screen brightness setting
was presented in brightness control widgets and enforced behind
the scenes.

At present the following features are implemented:

- Wake locks.
- User activity.
- Wake up / go to sleep.
- Power state broadcasts.
- Battery stats and event log notifications.
- Dreams.
- Proximity screen off.
- Animated screen on / off transitions.
- Auto-dimming.
- Auto-brightness control for the screen backlight with
different timeouts for ramping up versus ramping down.
- Auto-on when plugged or unplugged.
- Stay on when plugged.
- Device administration maximum user activity timeout.
- Application controlled brightness via window manager.

The following features are not yet implemented:

- Reduced user activity timeout for the key guard.
- Reduced user activity timeout for the phone application.
- Coordinating screen on barriers with the window manager.
- Preventing auto-rotation during power state changes.
- Auto-brightness adjustment setting (feature was disabled
in previous version of the power manager service pending
an improved UI design so leaving it out for now).
- Interpolated brightness control (a proposed new scheme
for more compactly specifying auto-brightness levels
in config.xml).
- Button / keyboard backlight control.
- Change window manager to associated WorkSource with
KEEP_SCREEN_ON_FLAG wake lock instead of talking
directly to the battery stats service.
- Optionally support animating screen brightness when
turning on/off instead of playing electron beam animation
(config_animateScreenLights).

Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
vc/src/com/android/commands/svc/PowerCommand.java
258848d2ae04f447ff1c18023fa76b139fcc0862 11-Aug-2012 Amith Yamasani <yamasani@google.com> User Manager service to manage users and query user details

Moved a bunch of methods from PackageManager to UserManager.

Fix launching of activities from recents to correct user.

Guest creation APIs

Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
m/src/com/android/commands/pm/Pm.java
a56d9cecee8a34e0554770ac6253dd3a76b9199c 08-Aug-2012 Rich Cannings <richc@google.com> Merge "Revert "Pass URLs to package verifiers"" into jb-mr1-dev
e1d7c711df3e3a2d2f195457882aa4ddb5626167 08-Aug-2012 Rich Cannings <richc@google.com> Revert "Pass URLs to package verifiers"

This reverts commit 24713907fe4632d263aea82f7a35c8fb08918a09

Change-Id: Ie04ba73475b813635c4a74915c45e83250801b6b
m/src/com/android/commands/pm/Pm.java
dde331cebd87982faded6818ad5f9927ff994c96 03-Aug-2012 Dianne Hackborn <hackbod@google.com> We can now (kind-of) change screen density on the fly.

Preloaded drawables now have a density associated with them, so we
can load the correct drawable if we are using a different density.

Window manager now formally keeps track of the density for each
screen, allowing it to be overridden like you can already do with
size, and relies on this density to drive itself internally and
the configurations it reports.

There are a new set of Bitmap constructors where you provide a
DisplayMetrics so they can be constructed with the correct density.
(This will be for when you can have different windows in the same
app running at different densities.)

ActivityThread now watches for density changes, and pushes them
to the DENSITY_DEVICE and Bitmap global density values for that
process.

A new am command allows you to change the density.
m/src/com/android/commands/am/Am.java
24713907fe4632d263aea82f7a35c8fb08918a09 26-Jul-2012 rich cannings <richc@google.com> Pass URLs to package verifiers

This change passes the originating URL and accompanied referrer to
package verifiers, when available.

Bug: 6544677
Change-Id: If9ff6663ad7f3426b7aea2aceb1413b689788138
m/src/com/android/commands/pm/Pm.java
437a0fbd57662e1d9d260da6f62ff83da2769a7e 02-Aug-2012 Craig Mautner <cmautner@google.com> Merge "Introduce multiple displays with DisplayContent." into jb-mr1-dev
59c009776dae5ccbdfb93d7151ff2065ca049dc3 30-Jul-2012 Craig Mautner <cmautner@google.com> Introduce multiple displays with DisplayContent.

Fix a couple of bugs that turned up.
Remove touch/focus from display. Add iterators for access.
Respond to comments. Remove TODOs, and some deviceId parameters.

Change-Id: Idcdb4f1979aa7b14634d450fd0333d6eff26994d
m/src/com/android/commands/am/Am.java
00efe44923af27094cfc201064ed920f93b0bde0 31-Jul-2012 Kenny Root <kroot@google.com> am b3e4b46d: am e583bcf1: Merge "Explicitly set lib dir permissions during unlink" into jb-dev

* commit 'b3e4b46db028c35d6d12c5f8f25b0463833fb51d':
Explicitly set lib dir permissions during unlink
b3e4b46db028c35d6d12c5f8f25b0463833fb51d 31-Jul-2012 Kenny Root <kroot@google.com> am e583bcf1: Merge "Explicitly set lib dir permissions during unlink" into jb-dev

* commit 'e583bcf13c13957bdf20f8bc5e23258b083b2f51':
Explicitly set lib dir permissions during unlink
515087d1c586c6c24222e03bbd01af58bdf0ed8d 31-Jul-2012 Kenny Root <kroot@google.com> Explicitly set lib dir permissions during unlink

The default umask changed, so we have to explicitly set the mode of the
lib directory when we create it in unlinklib.

Bug: 6857022
Change-Id: I06fc3f29e99d686bbbb96184d8c314d4cc57e9fe
nstalld/commands.c
92c6d2fc50ec2a33a2a990fe66cd70090eb461ca 26-Jul-2012 Mathias Agopian <mathias@google.com> update to new getDisplayInfo API

Change-Id: I8051b4f9f23d3ef4791176de1bbcfafacae7d579
ootanimation/BootAnimation.cpp
b8acd060d409f0e81ab3510b429cb86d3f34adb8 20-Jul-2012 Nick Kralevich <nnk@google.com> am fa6e1ea7: am 2c932143: Merge "s/LOG/ALOG/ in HAVE_SELINUX blocks"

* commit 'fa6e1ea773a74aa6a996a783ff16c495ab3cc822':
s/LOG/ALOG/ in HAVE_SELINUX blocks
1abb1cb3a8fe17f7866150604c2fd73751da787e 26-Jan-2012 Jaikumar Ganesh <jaikumar@google.com> Changes to Bluetooth Service structure.

Changes to make Bluetooth Service part of the system_service.
These changes may be temporary.

Changes to update to the new disable API.

Change-Id: If89dba17e6e6c6daa53c37684221763a2da076e9

Conflicts:

services/java/com/android/server/pm/PackageManagerService.java
ervicemanager/service_manager.c
197a0c82a1fbf337ec0a85d36b6b89c3d6e8a0ac 12-Jul-2012 Dianne Hackborn <hackbod@google.com> Improve cleanup of file caches.

This rewrites installd's code for deleting cache files to be better:

- Isn't really stupid about just deleting directories in the order
they are found on the filesytem; now collects all cache files and
sorts them by mod time to determine which to delete.
- Also deletes cache files in /data/media and for all users.

This also tweaks DeviceStorageMonitor to be a little smarter about
deciding when to flush cache files, having upper and lower limits
that it allows memory to get down to and then flash files to reach
the higher free storage limit. This should reduce the amount that
we perform flushing when starting to reach the storage limit.

Finally add a new pm command to force a cache flush.

Change-Id: I02229038e1ad553d1168393e5cb6d5025933271d
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
nstalld/utils.c
m/src/com/android/commands/pm/Pm.java
365861e3aae9cccdb19b8d4ee375c57e0a431f1e 10-Jul-2012 Joshua Brindle <jbrindle@tresys.com> s/LOG/ALOG/ in HAVE_SELINUX blocks

The latest push changed LOG(E|V) to ALOG(E|V) but it was not updated in HAVE_SELINUX blocks.

Change-Id: I626588589dd00775ba29f2a256ac29e481598dc3
Signed-off-by: Joshua Brindle <jbrindle@tresys.com>
nstalld/commands.c
4f741c3c2234ef8fec39ca71f6c22b875a3cd3eb 28-Jun-2012 Mathias Agopian <mathias@google.com> move sensorservice to the frameworks/native project

Change-Id: I285c190904b2b6b92df3e40154d178407a712f6e
ensorservice/Android.mk
ensorservice/main_sensorservice.cpp
ystem_server/library/Android.mk
8b3895392662640b84d3e2bbadb0bc53c456cea5 20-Jun-2012 Mathias Agopian <mathias@google.com> am 06c93386: Merge "Exit boot animation cleanly." into jb-dev

* commit '06c93386374de3812629908f21c057a8d60c4b12':
Exit boot animation cleanly.
d3782b26b2026e60a8e0d4b967a156369f2a46f8 26-Apr-2012 Kevin Hester <khester@google.com> Exit boot animation cleanly.

The desc.txt file can now mark parts as 'must finish cleanly' by using
'c' as the part line prefix rather than 'p'. If so indicated, if the
bootanimation is asked to quit it will do so only after waiting to
finish that part.

I considered either making init.c service killing smarter or promoting
bootanim to be a bindable service with a requestExit method. However,
these changes are probably too big/risky given our ship date. So
I used a property as a mailbox between SurfaceFlinger and bootanim.

Bug: 6679877
Change-Id: I1f8dd9e7da1ea80a483b31fa14c4a5645922d774
ootanimation/BootAnimation.cpp
ootanimation/BootAnimation.h
39758edbed0be8f3d75427f750db6e9d005cd16a 19-Jun-2012 Amith Yamasani <yamasani@google.com> am 386ce58a: Merge "Don\'t backup or delete the backup file, if it\'s in the backup path." into jb-dev

* commit '386ce58a21b81390d2831b0f1107d03773af687a':
Don't backup or delete the backup file, if it's in the backup path.
386ce58a21b81390d2831b0f1107d03773af687a 19-Jun-2012 Amith Yamasani <yamasani@google.com> Merge "Don't backup or delete the backup file, if it's in the backup path." into jb-dev
0ba48a5402926b23f2459ce5039d3fe75938c0f4 18-Jun-2012 Amith Yamasani <yamasani@google.com> Don't backup or delete the backup file, if it's in the backup path.

Change-Id: Ie77782722a271e09f8cbde7fb5393e8127d4334d
awbu/backup.cpp
33ef4ee71277888304a3c67fdd8dfddd728b4c88 18-Jun-2012 Kenny Root <kroot@google.com> resolved conflicts for merge of 4de60b26 to jb-dev-plus-aosp

Change-Id: Id1b1847a3ab5c0f51ac8a732fce5ba12e5810259
4503cf67b57a2a75e86ce4e36ccb69249048c996 14-Jun-2012 Kenny Root <kroot@google.com> Make lib dir before changing ownership of app dir

Bug: 6668897
Change-Id: I8998a50359892277b15e80b5b5590ff94b125467
nstalld/commands.c
11d536b38116e72a40829bd976f9f78f50d53d1a 12-Jun-2012 Justin Ho <justinho@google.com> am ceb80679: Merge "make the boot animation 32-bits to avoid banding" into jb-dev

* commit 'ceb8067920043a430478be386c56c244355d4c9f':
make the boot animation 32-bits to avoid banding
60691ce1600cb79ec9bb9957eee29be7a6a5e5d2 11-Jun-2012 Mathias Agopian <mathias@google.com> make the boot animation 32-bits to avoid banding

Bug: 6611693

Change-Id: Id31b711ea755c89240eaea26f6403a031cd939e4
ootanimation/BootAnimation.cpp
3a3c7e7bc4f599c35f5ed4feeead15c6c5a4621f 08-Jun-2012 Kenny Root <kroot@android.com> am 63dd4c65: am 60b3d59d: Merge "Modify installd to set the SELinux security context on package directories."

* commit '63dd4c65c41187967ba0828d386117f90020840e':
Modify installd to set the SELinux security context on package directories.
60b3d59d7f788046a45a5fd4e97ec7235fb55787 08-Jun-2012 Kenny Root <kroot@android.com> Merge "Modify installd to set the SELinux security context on package directories."
d0c5f515c05d05c9d24971695337daf9d6ce409c 08-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6295373: "Package com.google.android.apps.authenticator2 has...

...mismatched uid: X on disk, Y in settings" errors on Froyo and Gingerbread

Deal more gracefully with the uid changing in three ways:

1. If the uid on disk has become root, then have installd change it to
the application's uid. This is to correct a potential case where
installd was interrupted while linking or unlinking the libs dir,
during which it temporarily changes the owner of the dir to root
so that a malicious app can not get in its way. So if the uid on
disk has become root, we assume we can safely just change it back
to the correct uid.

2. When scaning packages at boot, use the same "delete and rebuild data
directory" code for third party applications as we have for system
applications. This allows us to at least end up in a state where the
app will run, even if its data is lost.

3. But we really don't want to get in to case 2, so if an application
update is being installed and we find that the uid we now have for
the app is different than the one on disk, fail the update. This will
protect against for example a developer changing the sharedUserId of
their app and getting into this bad state.

Bug: 6295373
Change-Id: Ic802fdd818ac62449ff3c61d1fff1aa4d4942f39
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
fd3d009dde21d7670d42d26f197f67c4c8e59184 31-May-2012 Amith Yamasani <yamasani@google.com> Remove some unnecessary man page entries

Change-Id: I1ceda3f5efac83b80ab4b6e7cae4086aeed5062a
m/src/com/android/commands/am/Am.java
m/src/com/android/commands/pm/Pm.java
13b907353f18215b52b5ceda24bbf520d91d72a1 21-May-2012 Romain Guy <romainguy@google.com> Remove unused, obsolete debug code

All these features have either been abandonned and left un-maintained
for years or can be replaced by systrace.

Change-Id: I42e4579a8078744047e5fe08a7a15254970b09bc
m/src/com/android/commands/am/Am.java
db7dd2af93ae96e5749cfbe978c2695049d9d782 13-May-2012 Mathias Agopian <mathias@google.com> fix BootAnimation timing

We were including the delay of the previous frame when
calculating the delay needed between a frame and the next.
This caused a bad jitter in the animation timing.

We also now use clock_nanosleep().

Change-Id: Iebb8cca4d57fe2f11d83b23a736e03db7a7d2006
ootanimation/BootAnimation.cpp
995cb9739a04e7fe20c0a86c400db706b12cb221 10-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Empower the 'input' command with keycode labels." into jb-dev
ca13fed08bf38c2f2811b3ec3f995d0ca57ac6ac 10-May-2012 Jeff Brown <jeffbrown@google.com> Empower the 'input' command with keycode labels.

Change-Id: Ia077f8ee0732599cec9b04efc2f828d3d22f5bac
nput/src/com/android/commands/input/Input.java
ceb1b0bfaea56251796b08c07b963de7403d84eb 24-Apr-2012 Anonymous Coward <nobody@android.com> Add encryption parameters to package installation

Change-Id: Ic9f8ab9f8110f08bb3c00725cfce5b8ee7b766f3
m/src/com/android/commands/pm/Pm.java
7fdde0cee2ac90da6603585f4789644fbf00925d 02-May-2012 Guang Zhu <guangzhu@google.com> Merge "remove extra semi colon" into jb-dev
f0e3edc0709dc190190e0ca386478f4a0da92e7a 01-May-2012 Guang Zhu <guangzhu@google.com> remove extra semi colon

Eclipse has been complaining about it...

Change-Id: I39fb4eeab26af883dd2287baf49ec244db453365
vc/src/com/android/commands/svc/UsbCommand.java
719a6320a789e76566d6416d5ec35491d21f5c44 30-Apr-2012 Jeff Sharkey <jsharkey@android.com> Change permission enforcement through pm command.

Add "set-permission-enforced", which can currently only mutate
enforcement of READ_EXTERNAL_STORAGE.

Bug: 6363043
Change-Id: I3f7929738c8c36b0a54fbf171c03fe16c09b5d99
m/src/com/android/commands/pm/Pm.java
59d3d868112f8bbd14f466d0096789548b176d34 27-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Add Usb control to svc.

We used to have control over usb via ndc but recent changes removed that.
The reverse_tether.sh script needs control (on rooted devices) to run
so added this.

bug:4208971
Change-Id: I722fc0e14540890be0d79a0b7d22f23b2d57f20c
vc/src/com/android/commands/svc/Svc.java
vc/src/com/android/commands/svc/UsbCommand.java
fd135bc809589d4cadcdbcc7ececaf2d9d0969cf 24-Apr-2012 Travis Geiselbrecht <travisg@google.com> am f4b6628e: BootAnimation: fix bug to delay the appropriate amount of time per frame

* commit 'f4b6628e5084bf317eab5326c51cbecb8fabdc45':
BootAnimation: fix bug to delay the appropriate amount of time per frame
f4b6628e5084bf317eab5326c51cbecb8fabdc45 24-Apr-2012 Travis Geiselbrecht <travisg@google.com> BootAnimation: fix bug to delay the appropriate amount of time per frame

Change-Id: I300b67a97a9a685cec59df12d8d605c2b0b49180
ootanimation/BootAnimation.cpp
7df7d2022d9bebc21a13dcb7ddacaa61f9c2e38e 20-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix issue #4499996: LiveWallpaperPreview activity intent filter

Change-Id: I5fc71503d2c59c907da954dbda3587394e6405bf
m/src/com/android/commands/am/Am.java
9f25b7fdf216c9ef0bd2322cd223eeaf0d60f77f 10-Apr-2012 Jeff Brown <jeffbrown@google.com> Request key maps from input manager service.

Instead of each application loading the KeyCharacterMap from
the file system, get them from the input manager service as
part of the InputDevice object.

Refactored InputManager to be a proper singleton instead of
having a bunch of static methods.

InputManager now maintains a cache of all InputDevice objects
that it has loaded. Currently we never invalidate the cache
which can cause InputDevice to return stale motion ranges if
the device is reconfigured. This will be fixed in a future change.

Added a fake InputDevice with ID -1 to represent the virtual keyboard.

Change-Id: If7a695839ad0972317a5aab89e9d1e42ace28eb7
nput/src/com/android/commands/input/Input.java
90d82ea0085b30894c5297df5faee0b4b655a94e 06-Apr-2012 Stephen Hines <srhines@google.com> Merge "Build /system/bin/asan/app_process."
ac14351e16e1258f1cb54e2bf772b8be004eb2b8 06-Apr-2012 Jeff Brown <jeffbrown@google.com> Move some APIs from window manager to input manager.

Simplified input injection API down to just one call.

Removed all input state reading API. It was only used by the
window manager policy and required a permission that applications
could not obtain. READ_INPUT_STATE is now unused and deprecated.

Change-Id: I41278141586ddee9468cae0fb59ff0dced6cbc00
nput/src/com/android/commands/input/Input.java
bb4cd8259269743fa8f0912b064961477b368c4f 02-Apr-2012 Evgeniy Stepanov <eugenis@google.com> Build /system/bin/asan/app_process.

Change-Id: Id3fa26a1bc0e0832bfde73dbd3acce15ecce823d
pp_process/Android.mk
5bb508fac6453c75afe8acc2fec6380bc0ebdb06 04-Apr-2012 Stephen Hines <srhines@google.com> Revert "Build /system/bin/asan/app_process."

This reverts commit cb5c734790e1e3d8496b4c75c57e8a537784c056
pp_process/Android.mk
cb5c734790e1e3d8496b4c75c57e8a537784c056 02-Apr-2012 Evgeniy Stepanov <eugenis@google.com> Build /system/bin/asan/app_process.

Change-Id: Icdfe215a7e86466a07fe0508775c89963a0a4787
pp_process/Android.mk
d927a1d99630c05ff773f0e9e8791ca9a965e020 28-Mar-2012 James Dong <jdong@google.com> Deleted the media, camera, drm related files since they are relocated

Change-Id: I9bc5573ee07e30b305b5b879023aa9ec69e10b91
tagefright/Android.mk
tagefright/SimplePlayer.cpp
tagefright/SimplePlayer.h
tagefright/SineSource.cpp
tagefright/SineSource.h
tagefright/WaveWriter.h
tagefright/audioloop.cpp
tagefright/codec.cpp
tagefright/jpeg.cpp
tagefright/jpeg.h
tagefright/record.cpp
tagefright/recordvideo.cpp
tagefright/sf2.cpp
tagefright/stagefright.cpp
tagefright/stream.cpp
b347e33daf8102448b10679b224d447a0610698b 26-Mar-2012 Colin Cross <ccross@android.com> move dumpstate and dumpsys from frameworks/base to frameworks/native

Change-Id: Ifdff51a974a9ee3c8ee7b04648a45d2f278ce4df
umpstate/Android.mk
umpstate/dumpstate.c
umpstate/dumpstate.h
umpstate/utils.c
umpsys/Android.mk
umpsys/MODULE_LICENSE_APACHE2
umpsys/NOTICE
umpsys/dumpsys.cpp
b3e2e24f789d41d6c38b8ad4c252cf9f6e2122d8 26-Mar-2012 Andreas Huber <andih@google.com> Merge "Provisional support for secure decryption of media streams."
9b8e496f4d143280deff137c5f30ca8907bc28db 26-Mar-2012 Andreas Huber <andih@google.com> Provisional support for secure decryption of media streams.

Change-Id: Ib3982a9c960bfdb0cb7e1b174440b141b194cfbe
tagefright/codec.cpp
tagefright/sf2.cpp
56ca534e65427bdefb7674060f5faa94539b6995 26-Mar-2012 Colin Cross <ccross@android.com> Merge changes Ib4d0e0c0,Iea8f4a23

* changes:
libmedia: remove skia include
stagefright: remove dependency on skia
c610a6bac76f2c67e6986e76eb1d4fb716d0f89e 26-Mar-2012 Nick Kralevich <nnk@google.com> Merge "resist umask changes, make dirs 0711"
7c424a34d7d242e989170f63f6dff07fe3f078ad 24-Mar-2012 Colin Cross <ccross@android.com> stagefright: remove dependency on skia

skia is only used to write a jpeg file, link directly to libjpeg
instead.

Change-Id: Iea8f4a2347c38328776541d2b74bcbdea3f62041
tagefright/Android.mk
tagefright/jpeg.cpp
tagefright/jpeg.h
tagefright/stagefright.cpp
209cfdf4f6daf9c2959a3d1eef5544121c79c664 24-Mar-2012 James Dong <jdong@google.com> Remove JNI in LOCAL_C_INCLUDE from non-JNI related Android.mk files.

o related-to-bug: 6214141

Change-Id: Ic88d1732b3e014af47532a0809e01f6086e8464d
tagefright/Android.mk
7ac3ed1d7679e9cb90b44c6ab1629318b17c0690 24-Mar-2012 Nick Kralevich <nnk@google.com> resist umask changes, make dirs 0711

Make sure /data/user directory permissions get explicitly set
regardless of the system umask.

Change directory permissions to 0711. No need for read permissions.

Bug: 3272072
Change-Id: Ida7f3c6656f4e0c9d0a9f7648491cc853c4e44ca
nstalld/installd.c
ad812a23df775062f0185076557e7f3fdfa57943 22-Mar-2012 Amith Yamasani <yamasani@google.com> Merge "Package restrictions per user"
8686938aa51a8c0005120f242cb187c25fe7bcb2 21-Sep-2011 Andreas Huber <andih@google.com> Use NuPlayer for media playback everywhere

if media.stagefright.use-nuplayer is set to true.

Change-Id: Ibb217e7d7d5195b7feeea557554fe78e1585744c
tagefright/sf2.cpp
483f3b06ea84440a082e21b68ec2c2e54046f5a6 14-Mar-2012 Amith Yamasani <yamasani@google.com> Package restrictions per user

Packages can be enabled/disabled per user.
This requires maintaining stopped/launched states and
enabled / disabled components and packages per user.

Refactored pm.Settings and PackageSettingsBase to keep
track of states per user.

Migrated the stopped-packages.xml to users/<u>/package-restrictions.xml

Changed intent resolution to handle individual user restrictions.
Bunch of IPackageManager calls now have a userId argument.
Make AppWidgetService handle removals of packages.

Added some tests for pm.Settings and PackageManager.

Change-Id: Ia83b529e1df88dbcb3bd55ebfc952a6e9b20e861
m/src/com/android/commands/am/Am.java
m/src/com/android/commands/pm/Pm.java
4d3f82e8d99558551b876ad075ad999cb92f5327 20-Mar-2012 Glenn Kasten <gkasten@google.com> Merge "Add libmedia_native"
f6b8f7b34f5fe94cd1d8753ec356b967293f1f9c 19-Mar-2012 Glenn Kasten <gkasten@google.com> Merge "audio_channel_in/out_mask_from_count"
baad5d5f0de40c4b161aaf8bb87aee4e57784c50 16-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "resolved conflicts for merge of 354e0346 to master"
29ba7e66804e91cbd05fed74893061b4971ec52b 16-Mar-2012 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 354e0346 to master

Change-Id: I432f5f43aa1e19c6a474e8656fe0e3715828e8af
a7110640d0d7a479f8e614c8fff10a6672bfe4bd 16-Mar-2012 Andreas Huber <andih@google.com> Report an error instead of waiting for EOS indefinitely in sf2.

Change-Id: Id7bcfb90a3b6a61f0df8bd8f39ea4ffa3c433d87
tagefright/sf2.cpp
5da418d3319add35f15197db39195984b0262e84 16-Mar-2012 Dianne Hackborn <hackbod@google.com> am ce06c000: Merge "Debugging code for #6169553: Make Phone launch faster" into ics-mr1

* commit 'ce06c000b4133c63414c3244c3325e25315ab179':
Debugging code for #6169553: Make Phone launch faster
c032a73b511d4006e083a646b7dd23d54ed373ac 16-Mar-2012 Dianne Hackborn <hackbod@google.com> am ce06c000: Merge "Debugging code for #6169553: Make Phone launch faster" into ics-mr1

* commit 'ce06c000b4133c63414c3244c3325e25315ab179':
Debugging code for #6169553: Make Phone launch faster
ae75f994cc50837afe79d3bfbc576811e3602fef 16-Mar-2012 Glenn Kasten <gkasten@google.com> Add libmedia_native

Change-Id: Ib8cff8abd73723b793f08da99ad59549f219e0e7
tagefright/Android.mk
2a29b3ad1350785aedea3442b38042885533576c 15-Mar-2012 Dianne Hackborn <hackbod@google.com> Debugging code for #6169553: Make Phone launch faster

The activity manager now has a tick when launching an app every
500ms, where it collects the current stack traces of the app if
it hasn't finished launching. These traces are included as part
of dumpstate.

This is only done on non-user builds.

Change-Id: I7f09ea00aab821ac81795f48c9d68fcca65f89fe
umpstate/dumpstate.c
94a36440ba11f7e9d6d444e985a7510cb56f886b 14-Mar-2012 Glenn Kasten <gkasten@google.com> audio_channel_in/out_mask_from_count

and avoid ambiguous term "channels" where it might be confusing
as to whether it is a channel mask or channel count

Change-Id: I744fa08ccb6001a98c97bd638d2c9d56836c4234
tagefright/SimplePlayer.cpp
tagefright/audioloop.cpp
00b0a85e906fb62d37981ca03452eefd8b9fc254 14-Mar-2012 Glenn Kasten <gkasten@google.com> Remove false dependencies

Change-Id: I2a2976eb27b262bcba0c76ab37d822407d2337a7
ystem_server/library/Android.mk
ystem_server/library/system_init.cpp
a4972e951bf2bdb7afdafee95b3ab0c15b8bacae 14-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new "options" argument to all startActivity APIs.

This will be used to allow new features to be requested... such as,
say, a special kind of animation. Right now there are no options
defined.

Change-Id: I4eb6f27275cdd4bf186f6da316ab93a2372ad4b7
m/src/com/android/commands/am/Am.java
e1dea48f92fd087573ac76c6acd03f5a19181ece 12-Mar-2012 James Dong <jdong@google.com> Switched to use the header files in /frameworks/native
and deleted the duplicate header files in /frameworks/base

o related-to-bug: 6044887

Change-Id: I17e0692d9a9b5c8796ded36677c833ca8ab36795
tagefright/Android.mk
92a8b22e7410e74e1cba1b856333116652af8a5c 10-Mar-2012 Siva Velusamy <vsiva@google.com> ActivityManager: add option to allow OpenGL trace.

This patch adds an option to enable tracing of OpenGL functions.
OpenGL tracing can be enabled by passing "--opengl-trace" option
to am start. This option requires either a device in debug mode,
or that the application itself has debug permission set.

Change-Id: I77788bfe97c9108943b1f947ce81afe8293d78a0
m/src/com/android/commands/am/Am.java
442df22dac012fa5ac7b73267f0ea9e306b2f533 09-Mar-2012 Andreas Huber <andih@google.com> fix EOS handling in codec test.

Change-Id: I5eb6d00aa0c1a728a951c7ffa4faebcadd7b14a6
tagefright/codec.cpp
7d8775a87eeedfcd9349f56f667b636f6643766e 08-Mar-2012 Mathias Agopian <mathias@google.com> Merge changes I140d291e,Id443ec5c

* changes:
remove files that moved to frameworks/native
fixup hardcoded include paths for new project
cd40f4a062d73088462eaca6c3e778440c1ccdd8 08-Mar-2012 Andreas Huber <andih@google.com> Merge "Added better codec statistics to evaluate performance."
8c79817dc6459baa2c79db88e3c3e4d5c07d6a61 08-Mar-2012 Mathias Agopian <mathias@google.com> remove files that moved to frameworks/native

Change-Id: I140d291e520097b1148930f736823650e08488f7
urfaceflinger/Android.mk
urfaceflinger/main_surfaceflinger.cpp
08965ec67ada98f63f8ac879cc44c8b0e7ff046d 06-Mar-2012 Mathias Agopian <mathias@google.com> fixup hardcoded include paths for new project

Change-Id: Id443ec5c99bb4d7653905f1be1f72a029e0cf087
ystem_server/library/Android.mk
e5760e3e9f7a3aeee87b8beaf26cd6783b0ccc08 07-Mar-2012 Andreas Huber <andih@google.com> Added better codec statistics to evaluate performance.

Change-Id: I9a1e4a803502329e0342ddde07b6df6b3761afd8
tagefright/codec.cpp
4834ada49217c145ee5dff82db1f77da2d54d0b4 02-Mar-2012 JP Abgrall <jpa@google.com> dumpstate: more tweaks in the data collection order.

We try to further minimize the resource footprint/contamination
of the data collecting commands.

Change-Id: I6c15b0b88a6e3e8d68e0ed9b0cc696db3cf18478
umpstate/dumpstate.c
d0f4e09cba152a2c6cdb14e6a5ff36e864cb5adf 01-Mar-2012 JP Abgrall <jpa@google.com> dumpstate: move some of the cheaper-to-collect info earlier.

Some of the state gathering commands take time (ping,...).
They give the system a chance to reboot when things are going belly-up.
We now move some of the cheaper ones (dmesg, last_kmsg, /proc/*...)
earlier in the dump.

Change-Id: I9ffc50ef9105a63193072bc34922dc0bc2bfbd38
umpstate/dumpstate.c
67d2c09d897dfc6c3901e5962f8bd4d4d35da90e 29-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Update to allow passing empty string in a binding."
8486bc11baa717390796f2ebd55c7b2ae9294bb7 29-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Update to allow passing empty string in a binding.

Change-Id: Ia16bd5dc78da1f5c8e52070d9c0e8431744224e8
ontent/src/com/android/commands/content/Content.java
4484bdd2f99a753b0801f0c13ca8a2b7bc38695a 29-Feb-2012 Andreas Huber <andih@google.com> Separate the notion of "stop" from that of "release", i.e.

stop - means transition back to LOADED state and keeping the component
instance allocated.

release - means we get rid of the component completely.

Change-Id: I40ad01ce70821faaad43f57999249904f9144924
tagefright/SimplePlayer.cpp
tagefright/codec.cpp
95bbbf52237e64f41312d10e3a83c5ea2ed1b633 28-Feb-2012 JP Abgrall <jpa@google.com> Merge "dumpstate: use /system/xbin/su directly"
8335f1ccccedb6655d96d9d5b697a7f0938235dd 26-Feb-2012 Mathias Agopian <mathias@google.com> fix libgui header location

Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
ootanimation/BootAnimation.cpp
ootanimation/BootAnimation.h
ootanimation/bootanimation_main.cpp
creencap/screencap.cpp
tagefright/codec.cpp
tagefright/sf2.cpp
tagefright/stagefright.cpp
tagefright/stream.cpp
cb115fca1fe16d01f9a75f3963c87feafc0d42b8 25-Feb-2012 JP Abgrall <jpa@google.com> dumpstate: use /system/xbin/su directly

This avoids accidentally picking up very common "su" alternatives
that developers use.
It also avoids having to search the PATH for su.

Change-Id: Ib9a3eeca7f4d892f2c9ea9ca1132304ef8e8484b
umpstate/dumpstate.c
umpstate/dumpstate.h
umpstate/utils.c
5265466e8a5453e738713869f61ca45482b85319 25-Feb-2012 Dianne Hackborn <hackbod@google.com> Merge "New development permissions."
6281fa1d939cfe5618918ca7974ee96cb2336039 24-Feb-2012 Andreas Huber <andih@google.com> Fix two more locations that use the old setObject("buffer", ...) paradigm

that I'd previously missed.

Change-Id: Ifbdbfb94d1bc1cbe8c0a403fed05ce99fca8397b
tagefright/codec.cpp
tagefright/sf2.cpp
e639da7baa23121e35aa06d6e182558e0e755696 22-Feb-2012 Dianne Hackborn <hackbod@google.com> New development permissions.

These are permissions that an application can request, but won't
normally be granted. To have the permission granted, the user
must explicitly do so through a new "adb shell pm grant" command.

I put these permissions in the "development tools" permission
group. Looking at the stuff there, I think all of the permissions
we already had in that group should be turned to development
permissions; I don't think any of them are protecting public APIs,
and they are really not things normal applications should use.

The support this, the protectionLevel of a permission has been
modified to consist of a base protection type with additional
flags. The signatureOrSystem permission has thus been converted
to a signature base type with a new "system" flag; you can use
"system" and/or "dangerous" flags with signature permissions as
desired.

The permissions UI has been updated to understand these new types
of permissions and know when to display them. Along with doing
that, it also now shows you which permissions are new when updating
an existing application.

This also starts laying the ground-work for "optional" permissions
(which development permissions are a certain specialized form of).
Completing that work requires some more features in the package
manager to understand generic optional permissions (having a
facility to not apply them when installing), along with the
appropriate UI for the app and user to manage those permissions.

Change-Id: I6571785c6bb5f6b291862b7a9be584885f88f3a5
m/src/com/android/commands/pm/Pm.java
a2798e252ab92d6ec8901cef6e7c6851ee1840a1 23-Feb-2012 Andreas Huber <andih@google.com> Be more greedy when it comes to gathering input and output buffers.

Change-Id: I54c4f608e5155917ca35eba5655b4c06357fb112
tagefright/SimplePlayer.cpp
tagefright/codec.cpp
5c850396b39a57baabd37a9c0c8324f1bee408ca 21-Feb-2012 Andreas Huber <andih@google.com> Add new APIs AMessage::(set|find)Buffer to make it safer to pass

ABuffer objects through messages.

Change-Id: I9f8b4e4c4767d0d70a0105e0c0813b754379b49d
tagefright/SimplePlayer.cpp
0ae6b481e470877c71508292925528ff308ce415 23-Feb-2012 Andreas Huber <andih@google.com> Merge "Implementation of a java media codec interface and associated tools."
88572f7a3e9d7ef85c26865a0150f3c2041561c2 21-Feb-2012 Andreas Huber <andih@google.com> Implementation of a java media codec interface and associated tools.

Change-Id: I13e54062d4de584355c5d82bb027a68aeaf2923b
tagefright/Android.mk
tagefright/SimplePlayer.cpp
tagefright/SimplePlayer.h
tagefright/codec.cpp
tagefright/sf2.cpp
a6ab8730f99e4e0f7a1866b158d5ccdd6fdfa93a 22-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fixing the content build file to include the command on user builds."
3f55172f7b3957a37b094c2afcbaa673a8b488fa 22-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Fixing the content build file to include the command on user builds.

Change-Id: Ic4a1627eff869702d04c81dcb9a877c74ed65f2a
ontent/Android.mk
3e3681151a231225b2b25c996bb9e85948a345a8 22-Feb-2012 Mathias Agopian <mathias@google.com> remove libui's dependency on libpixelflinger

this also remove support for unused pixelformats.

Change-Id: I2c759a6d2daa740f3786ed62095def8047ae933d
creencap/screencap.cpp
83c64e6b624a876436d2ef5d2f173b10407e27b4 21-Feb-2012 Mathias Agopian <mathias@google.com> frameworks/base refactoring

create the new libandroidfw from parts of libui and libutils

Change-Id: I1584995616fff5d527a2aba63921b682a6194d58
ackup/Android.mk
ootanimation/Android.mk
b13b9bdad2baf6ad1ec2e56b6b7598fa20f55fc4 18-Feb-2012 Mathias Agopian <mathias@google.com> frameworks/base refactoring.

step 2: move libutils headers to their new home: androidfw

Change-Id: I14624ba23db92a81f2cb929f104386e1fab293ef
ackup/backup.cpp
ootanimation/BootAnimation.cpp
ootanimation/BootAnimation.h
b9345b9496527eb710fb89dc771df52b4e5bc1ad 16-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fixing the build."
09ff963b085b3934d52112e2b74688125304e3f9 16-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Fixing the build.

Change-Id: I9ba599adea16b68c3c3af166a2845979624aef80
ontent/Android.mk
6c929510474caa14dc9d56826b2c65552861d6b3 15-Aug-2011 Mike J. Chen <mjchen@google.com> Upintegrate the common_time service from ics-aah.

Move the common_time service developed in the ics-aah branch back into
master.

The common_time service is a small service build to synchronize an
arbitrary timeline amongst peers on a local sub-net. While running
and configured, the service will elect a master from the set of
available devices within the subnet, define a relationship between the
common_time timeline the local time timeline (provided by the local
time HAL), and then attempt to maintain synchronization between common
and local time by controlling the frequency of the local time clock
via the HAL, or by disciplining local time in the digital domain if
the local time HAL implementation does not support HW slewing.

On its own, the native common time service will do nothing until it is
configured. The CommonTimeManagementService (running out of the
system server process) is responsible for implementing policy
regarding configuration and operation of the common_time service and
will be added in a subsequent CL.

Change-Id: I71292f9b9b1797665865689c4572c9d3a0552f64
Signed-off-by: John Grossman <johngro@google.com>
ervicemanager/service_manager.c
cb46d80d217899e51c3d1ad6fc930d9b61883cf9 16-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding shell commands for modifying content."
687bdf0ae12addc095ba9f195e4ef3aa1133aa38 16-Feb-2012 Kenny Root <kroot@google.com> Move keystore to system/security repo

Move keystore to system/security at revision
a91203b08350b2fc7efda5b1eab39e7541476b3a

Change-Id: I7dbd625b864e9c63489b08e9fd28dfb22da81072
eystore/Android.mk
eystore/keystore.cpp
eystore/keystore.h
eystore/keystore_cli.cpp
eystore/keystore_get.h
eystore/test-keystore
25872aa3ef189ae5506a923398af11ce5eb1a9b9 04-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding shell commands for modifying content.

1. Added methods to the ActivityManagerService remote interface
that allow accessing content providers outside of an application.
These methods are guarded by an internal signature protected
permission which is given to the shell user. This enables a
shell program to access content providers.

2. Implemented a shell command that takes as input as standart
fagls with values and manipulates content via the content provider
mechanism.

Change-Id: I2943f8b59fbab33eb623458fa01ea61a077b9845
ontent/Android.mk
ontent/MODULE_LICENSE_APACHE2
ontent/NOTICE
ontent/content
ontent/src/com/android/commands/content/Content.java
2e20ce35e8c6b9c5fb4d1d198ef5d801ded21064 14-Feb-2012 Glenn Kasten <gkasten@google.com> Merge "Fix build warnings"
385f1cafa6e55d2f4b8846746fe7fe4e8755aedd 10-Feb-2012 James Dong <jdong@google.com> Merge "Move away from MediaDebug and use ADebug instead"
3a2ce935b94383141d1c8a7878fa9308ce718fe5 15-Aug-2011 Mike J. Chen <mjchen@google.com> Add the ability to pass float extras to AM.

commit 43a2825a283e29c0f70100146394957af0598b0e
Author: John Grossman <johngro@google.com>
Date: Wed Apr 27 09:03:53 2011 -0700

Add the ability to pass float extras to AM.

Change-Id: I970ad3f76a65bd781099204019095c73ed8c09db

Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>

Conflicts:

cmds/am/src/com/android/commands/am/Am.java
m/src/com/android/commands/am/Am.java
8e9d67a1356881d7dce75c83d8c6639a562d1a7a 07-Feb-2012 James Dong <jdong@google.com> Move away from MediaDebug and use ADebug instead

Change-Id: I963a3b6f79a7292891973cbeeaf3378b38629f08
tagefright/Android.mk
tagefright/SineSource.cpp
tagefright/audioloop.cpp
tagefright/record.cpp
tagefright/recordvideo.cpp
a573f6a1d9b12393fbdfd2c0850499973849854b 10-Feb-2012 Dianne Hackborn <hackbod@google.com> Some hardening of isolated processes by restricting access to services.

Services now must explicitly opt in to being accessed by isolated
processes. Currently only the activity manager and surface flinger
allow this. Activity manager is needed so that we can actually
bring up the process; SurfaceFlinger is needed to be able to get the
display information for creating the Configuration. The SurfaceFlinger
should be safe because the app doesn't have access to the window
manager so can't actually get a surface to do anything with.

The activity manager now protects most of its entry points against
isolated processes.

Change-Id: I0dad8cb2c873575c4c7659c3c2a7eda8e98f46b0
ervicemanager/service_manager.c
urfaceflinger/main_surfaceflinger.cpp
0a3f6d69b6e5242d5eaca6ede801eaabbff56cfd 06-Feb-2012 Jean-Baptiste Queru <jbq@google.com> am 33476f7a: am f79bcd2d: am 52da99fa: am a081c7b8: Merge "Skia API changes as a result of an update to the Skia library."

* commit '33476f7ad1c3b4dcaefddb306f315e201c4efb33':
Skia API changes as a result of an update to the Skia library.
9387f4f80081128601da936fe5e6006809ff479c 19-Jan-2012 John Grossman <johngro@google.com> Add native common time config service.

Define a native service interface for configuring and controlling the
common time service. Implement the native marshallers and stub the
implementation of the new interface.

Change-Id: Ia6a6a20ef3d221e8829c55be1dd5f98ed996c610
ervicemanager/service_manager.c
232f869c99b8b33276ddad8054fc3e89e44852e5 18-Jan-2012 John Grossman <johngro@google.com> De-AAH-ify the common time service.

Bulk name change to remove references to Android@Home from the common time
service in preparation for cleanup and up-integration into the master
branch. Basically, aah_timesrv is now common_time.

Change-Id: I3d3db212f96e8ba171aa36b9c58e27e4a336cb0a
ervicemanager/service_manager.c
742a67127366c376fdf188ff99ba30b27d3bf90c 04-May-2011 Amith Yamasani <yamasani@google.com> Multi-user - 1st major checkin

Switching activity stacks
Cache ContentProvider per user
Long-press power to switch users (on phone)

Added ServiceMap for separating services by user
Launch PendingIntents on the correct user's uid
Fix task switching from Recents list
AppWidgetService is mostly working.

Commands added to pm and am to allow creating and switching profiles.

Change-Id: I15810e8cfbe50a04bd3323a7ef5a8ff4230870ed
m/src/com/android/commands/am/Am.java
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
m/src/com/android/commands/pm/Pm.java
c797b8a925aed9b1dd5ab7525eb28a96e557550d 31-Jan-2012 Jeff Sharkey <jsharkey@android.com> Dump xt_qtaguid stats to using GID instead of su.

Change-Id: I77a956cf37c1f1f792f6939b2f32a47f1cbe14c0
umpstate/dumpstate.c
889a3fa6ab9710104af60db5f73d69f253ddf254 31-Jan-2012 Derek Sollenberger <derek@android.com> Skia API changes as a result of an update to the Skia library.

These changes are required to work with r3022 of Skia

Change-Id: Ib7cebeb2eba6790bb38edfc2397b311cf419e17c
creencap/screencap.cpp
de57586c90f8aeea489e35e634672803e1dd9757 27-Jan-2012 Glenn Kasten <gkasten@google.com> Remove optional LVMX service

Change-Id: I64121d320b756e46869b82b79e49aebacbac3a48
ervicemanager/Android.mk
ervicemanager/service_manager.c
afe02df45e6c58aa2d6779f7b51a05bf9d413446 26-Jan-2012 Andreas Huber <andih@google.com> The software AAC encoder is now an OMX component.

Yay.

Change-Id: I74938a20b4e0a622836ea5184d3761180eb0f5de
tagefright/record.cpp
0b58e6a1a97eded73cb9cbbe53cdde4c6595ddd6 13-Jan-2012 Stephen Smalley <sds@tycho.nsa.gov> Modify installd to set the SELinux security context on package directories.

installd already sets the UID/GID/mode for package directories.
Extend it to also call libselinux to set the SELinux security context.

Change-Id: I22d38e3e7facdfcee20a34bf30f1412dbb87761f
nstalld/Android.mk
nstalld/commands.c
c6aacce37191e1cc79cfeba13b39899f59c68c3b 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)

Change-Id: I1de629b4632a4b3187ca1a28d6416daccd35f924
pp_process/app_main.cpp
ootanimation/BootAnimation.cpp
umpstate/dumpstate.c
umpsys/dumpsys.cpp
nstalld/commands.c
nstalld/installd.c
nstalld/utils.c
p-up-vpn/ip-up-vpn.c
eystore/keystore.cpp
creenshot/screenshot.c
ervicemanager/binder.c
ervicemanager/service_manager.c
tagefright/sf2.cpp
a51f0e707f1f3142358aa919ea60ad2842803139 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)

Change-Id: I8fbdfa7a7581f481968dbb65aa40f7042936d7cb
nstalld/commands.c
nstalld/utils.c
eystore/keystore.cpp
ystem_server/system_main.cpp
933e85615059b85a87747da57288384541cc56da 04-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)

Change-Id: I26f76452ac49e2890b14d133c065493d8df0fb4a
ootanimation/bootanimation_main.cpp
umpstate/dumpstate.c
nstalld/commands.c
nstalld/installd.c
eystore/keystore.cpp
ervicemanager/service_manager.c
tagefright/record.cpp
tagefright/stream.cpp
ystem_server/library/system_init.cpp
ystem_server/system_main.cpp
1afd5bab4e0eaba8b5bc2ab5c7b556cd602cf2e7 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)

Change-Id: I44f267700356967dc51e8f85ebf457dc85cfb229
ootanimation/BootAnimation.cpp
06ade6ae1bd015e8b8ad0685847911213c93cc5b 20-Oct-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF)

Change-Id: I5321ebd12e9c6248a108529e82c4e1af2a4405e3
pp_process/app_main.cpp
nstalld/commands.c
tagefright/sf2.cpp
tagefright/stream.cpp
77b07ff2c10becd3223c2ed6a6052f61c826b5a1 12-Jan-2012 Glenn Kasten <gkasten@google.com> Fix build warning for void * arithmetic

binder.c: In function 'bio_init':
binder.c:415: warning: pointer of type 'void *' used in arithmetic

Change-Id: I6926ad05e6dc7362331dffb6e8eca130955f25df
ervicemanager/binder.c
ade3289beefd7acb318ccb937e1e1615012a003e 13-Jan-2012 Alon Albert <aalbert@google.com> Merge "New command to request a sync"
e1c4a0b31bfbaef85c59f2dc346cfec71b0686c3 13-Jan-2012 Alon Albert <aalbert@google.com> New command to request a sync

Change-Id: I523e8ff4814940197d0b9a362a3920e69feae6fd
equestsync/Android.mk
equestsync/MODULE_LICENSE_APACHE2
equestsync/NOTICE
equestsync/requestsync
equestsync/src/com/android/commands/requestsync/RequestSync.java
db2e0537b46e934eb5b958dee9b683724c4f297e 11-Jan-2012 Glenn Kasten <gkasten@google.com> Fix build warnings

Change-Id: Ia5b8da2cfed7ae02c9e8e03e8bae22b2a68684a0
eystore/keystore.cpp
3762c311729fe9f3af085c14c5c1fb471d994c03 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
pp_process/app_main.cpp
ootanimation/BootAnimation.cpp
umpstate/dumpstate.c
umpsys/dumpsys.cpp
nstalld/commands.c
nstalld/installd.c
nstalld/utils.c
p-up-vpn/ip-up-vpn.c
eystore/keystore.cpp
creenshot/screenshot.c
ervicemanager/binder.c
ervicemanager/service_manager.c
tagefright/sf2.cpp
8564c8da817a845353d213acd8636b76f567b234 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
nstalld/commands.c
nstalld/utils.c
eystore/keystore.cpp
ystem_server/system_main.cpp
6215d3ff4b5dfa52a5d8b9a42e343051f31066a5 04-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156801

Bug: 5449033
Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
ootanimation/bootanimation_main.cpp
umpstate/dumpstate.c
nstalld/commands.c
nstalld/installd.c
eystore/keystore.cpp
ervicemanager/service_manager.c
tagefright/record.cpp
tagefright/stream.cpp
ystem_server/library/system_init.cpp
ystem_server/system_main.cpp
5baa3a62a97544669fba6d65a11c07f252e654dd 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
ootanimation/BootAnimation.cpp
18cb28756caf02bf2b2f5e67c68451edaf719b47 15-Nov-2011 Marco Nelissen <marcone@google.com> Add ContentProvider.dump()

This is similar to the existing dump() facility for services.
ContentProviders can now implement dump() and that info will be shown
when running "dumpsys activity provider" and when taking a bugreport.

Change-Id: I33b3b132e3c4f920153355cc368eda2f725a715f
umpstate/dumpstate.c
513e14e31627430f3198d56a4a9c6336a5a058a6 14-Dec-2011 Amith Yamasani <yamasani@google.com> Merge "Dump system and secure settings in bugreport."
b066fcc0d8bad893e8045adf21485cf9ac5f4884 10-Dec-2011 Amith Yamasani <yamasani@google.com> Dump system and secure settings in bugreport.

Change-Id: I19b7bf83c160b1bd5ce79e64886a9a76b91217b3
umpstate/dumpstate.c
92a208c6d3e0fdae54bbc942e7e041e48812bcaa 02-Nov-2011 Ashish Sharma <ashishsharma@google.com> Add a command option to display installerPackageName

Change-Id: I2e5cb5891c610531d9ba7c359fd5dd521f8ecfec
m/src/com/android/commands/pm/Pm.java
797e4465fbc1f6a818e2905d17719e5df8c2a705 07-Dec-2011 Jeff Brown <jeffbrown@google.com> Add tap and swipe capabilities to the "input" tool.

Change-Id: Ia2950d281ef04232c5134fa045ce18272fbd6f81
nput/src/com/android/commands/input/Input.java
3b282fae37c9897514f5bb7a16aa0b80dd65dd1f 06-Dec-2011 Jason Simmons <jsimmons@google.com> resolved conflicts for merge of 0c0120ef to ics-aah

Change-Id: If1f39ff160b4305ef057d50bb1f01d2c45f1579d
deb86c63c33f766b1a7fd6916f56b757d40803b1 06-Dec-2011 Dianne Hackborn <hackbod@google.com> am ec42750e: am 0c0120ef: Merge "Fix issue #5714517: App shortcuts can result in bad task intents" into ics-mr1

* commit 'ec42750e4d0e695515d078fb1f222c99a705fd93':
Fix issue #5714517: App shortcuts can result in bad task intents
f5b8671c340f189c50b41c53622f979b6d5e0a57 06-Dec-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5714517: App shortcuts can result in bad task intents

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
m/src/com/android/commands/am/Am.java
cfe82181cbe84b478b4612d25fb78a6bba8b2437 01-Dec-2011 Kenny Root <kroot@google.com> am 7f36d421: am 5a7c9176: Merge "Fix free_cache to actually work" into ics-mr1

* commit '7f36d4217269e79f8409c46f12f10464a1f585ea':
Fix free_cache to actually work
e91d0d81fea035d5e9d3d48985fac6e22c8fa972 01-Dec-2011 Kenny Root <kroot@google.com> am 5a7c9176: Merge "Fix free_cache to actually work" into ics-mr1

* commit '5a7c91769f011bc150c9def9edab9cccb4761c66':
Fix free_cache to actually work
ad757e9b36d6bc6b8e39be00612d0e60863aaafc 30-Nov-2011 Kenny Root <kroot@google.com> Fix free_cache to actually work

This broke with some other path-related changes, so it was scanning for
/data/*/cache instead of /data/data/*/cache

Also remove redundant call to restat

Bug: 5686310
Change-Id: Id1661f0f1337858fc9ead53c56ab7557f421c591
nstalld/commands.c
nstalld/installd.h
nstalld/tests/installd_utils_test.cpp
nstalld/utils.c
ed089c77ad9187ae4e1dc1404087c66bb7bb58e7 28-Nov-2011 Nick Kralevich <nnk@google.com> allow dumpstate to work with dmesg_restrict=1

Ensure that dumpstate has the CAP_SYSLOG permission, so that
it can always read the kernel syslog buffer. This is needed
to ensure that "adb bugreport" shows the dmesg log buffer.

Bug: 5585365
Change-Id: I4b561b77ada83dc875de80fe3ed15743c5958d09
umpstate/dumpstate.c
umpstate/dumpstate.h
umpstate/utils.c
d73dd9528b94f965924f9075fdabe4c96f75cab4 23-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 18f05518: am eaeb4f4e: Merge "Fix some policy-base routing issues." into ics-mr1

* commit '18f05518a882eeb778433c65bff27831a8accdc2':
Fix some policy-base routing issues.
e0c3a2e0634d3801e2603e53de09a645680b4803 23-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am eaeb4f4e: Merge "Fix some policy-base routing issues." into ics-mr1

* commit 'eaeb4f4e3c914550d28a042fb3d752efcf20ab9e':
Fix some policy-base routing issues.
eaeb4f4e3c914550d28a042fb3d752efcf20ab9e 23-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix some policy-base routing issues." into ics-mr1
e83d181606981bcacd78e55b293fe9fa95b2551d 21-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix some policy-base routing issues.

Secondary nets sometimes come up with no routes, but parsing errors end up with null
routes getting added. Trim that away. Also added some dumpstate logging of the secondary
route tables and rules.

bug:5615697
Change-Id: I94c9d888bab958df44891b9117236436e046cc7f
umpstate/dumpstate.c
bd91e23cdec00907c2f9640a41cf4ba6cd75ca01 18-Nov-2011 Jake Hamby <jhamby@google.com> am 0f3570c3: Merge "Re-enable vril-dump for adb bugreport." into ics-mr1

* commit '0f3570c3c1467bc4c900d256c6d9dc12ffb35ff1':
Re-enable vril-dump for adb bugreport.
a4d76b81a57577d7dded9ff58d97c4fcbe09e78e 18-Nov-2011 Jake Hamby <jhamby@google.com> am 2084d206: am 0f3570c3: Merge "Re-enable vril-dump for adb bugreport." into ics-mr1

* commit '2084d20668a79e5a31ec7365652434ec943503ef':
Re-enable vril-dump for adb bugreport.
9c27e36eca46e5bf543678775ffa4ed1ee565faf 17-Nov-2011 Jake Hamby <jhamby@google.com> Re-enable vril-dump for adb bugreport.

vril-dump was causing adb bugreport to hang on Xoom. The OEM fixed
the utility and we can now run it again as part of the bug report.

Bug: 5482585
Change-Id: I1db3b50c327d50d18fb9c6327c4cd521e09f3916
umpstate/dumpstate.c
9864e0d81f2e3f28170b3c82fcf30d9c24ccbeae 15-Nov-2011 Dianne Hackborn <hackbod@google.com> am d9070a08: am 5f11d73c: Merge "Improve low memory dropbox reporting." into ics-mr1

* commit 'd9070a08807ee119d9d73052cc1ad1f1b29eb13d':
Improve low memory dropbox reporting.
6cc19eae6bbf214606c55c5685fe83f324291f31 15-Nov-2011 Dianne Hackborn <hackbod@google.com> am 5f11d73c: Merge "Improve low memory dropbox reporting." into ics-mr1

* commit '5f11d73c918de72368ac5605c50f5fb9ac0457cb':
Improve low memory dropbox reporting.
d8c98fee02b5498270344727d1289004d98c0e73 15-Nov-2011 Dianne Hackborn <hackbod@google.com> Improve low memory dropbox reporting.

The msg is now constructed to try to bin these reports in
interesting ways. We'll see. Also change the tag name from
watchdog to lowmem, since sharkey is kindly taking care of
the back-end to handle this.

Improve how we put processes into low memory states to better
poke things like home and the previous app.

Also clean up some debug output, and add a few new am comment
options for controlling the current debug app.

Change-Id: I562a931a95244a2727bb7a6e1fd80dec259cdae2
m/src/com/android/commands/am/Am.java
5043441c4f3f0bd28834796838011eb48ccaec96 12-Nov-2011 Jeff Brown <jeffbrown@google.com> Merge "Include the build fingerprint in bug reports."
ad5b28a768b27cb54192758314861bf5ee417e91 11-Nov-2011 Jeff Brown <jeffbrown@google.com> Include the build fingerprint in bug reports.

We need the build fingerprint to decode the native stacks
that appear within the bug report.

Change-Id: Ia337addb5e4942c1ec7bcee3407b6a4f6b7e89ab
umpstate/dumpstate.c
c153fc5bb00ca1169651c914ad15a6cd1bbe2128 11-Nov-2011 Mathias Agopian <mathias@google.com> am de62d9cb: Merge "boot animation is dithered and scaled" into ics-mr1

* commit 'de62d9cbe00d0fcac24af9a3d89ba7a125e56eaa':
boot animation is dithered and scaled
1333742bedc9b462024302f302e3a7f27053df66 11-Nov-2011 Akwasi Boateng <akwasi.boateng@ti.com> am cb0db030: Merge branch \'ics-mr1-plus-aosp\' of ssh://android-git:29418/platform/frameworks/base into ics-mr1-plus-aosp

* commit 'cb0db0306b5849a35d3d99eea1b34ce019c6f0d8':
Make the overridden ImageView#setVisibility remotable
Clamp non-monotonic stats instead of dropping.
DO NOT MERGE. Fix leak in LayoutTransition
Fix lastVisible/global rects
Fix Wimax-less build.
Fix leak in LayoutTransition
Deferring wallpaper update to improve workspace scrolling (issue 5506959)
Terminate EGL when an app goes in the background
boot animation is dithered and scaled
Fix NdefRecord byte-stream constructor.
PopupWindow dismiss() can get into a recursive loop.
Fold WiMAX state into the mobile RSSI.
Remove dedicated wimax icon to fix RSSI layout.
2b99e55ee3a0956a43a276f8018356ff9d08eafc 11-Nov-2011 Mathias Agopian <mathias@google.com> boot animation is dithered and scaled

disable dithering which shouldn't have been enabled
in the first place because the frames are typically scaled.
we still use a 16-bits texture format to preserve memory.

Bug: 5600948
Change-Id: Ib4d6e133df4375d0d735cd4325b6e589bbc5dafe
ootanimation/BootAnimation.cpp
6238667682aba89cba7916fea49328ae4f1e648d 09-Nov-2011 Dianne Hackborn <hackbod@google.com> am 3b2681ba: am 3af8b88d: Merge "Add drop box reports of low memory." into ics-mr1

* commit '3b2681bad989013154f90c4b9c31f074af1f822c':
Add drop box reports of low memory.
f98168677929fe9e004d12645a5850551072395a 09-Nov-2011 Jason Simmons <jsimmons@google.com> resolved conflicts for merge of 3af8b88d to ics-aah

Change-Id: I2b68cd7c904e68a16565b7274560e7105c643c87
e4d4fbc8c0257a79d9c6091cea2c264415bd2733 08-Nov-2011 Dianne Hackborn <hackbod@google.com> Add drop box reports of low memory.

We are tagging these as "watchdog" to make them visible in the
reporting tools.

Also new am command to kill all background processes, mostly to make
it easier to test this stuff.

Change-Id: Ib9dc4747cd8bd44156fdf11d6a087cd4272203eb
m/src/com/android/commands/am/Am.java
ea427b0c87a52d5e770f50856401a81ff2658cc4 08-Nov-2011 Andreas Huber <andih@google.com> resolved conflicts for merge of 26f70db9 to master

Change-Id: Ib1536b1a4c9eeff80e0726b3e61cee12057cd120
d6739fccfc3f97a94366c537797b7b9821e64e15 08-Nov-2011 Andreas Huber <andih@google.com> am 26f70db9: Merge "Remove surface legacy APIs and code." into ics-mr1

* commit '26f70db99f483be36caa7a4c84fec5de50bec034':
Remove surface legacy APIs and code.
26f70db99f483be36caa7a4c84fec5de50bec034 08-Nov-2011 Andreas Huber <andih@google.com> Merge "Remove surface legacy APIs and code." into ics-mr1
3f3e8f0c371eff9d9454779e42fb02db67d91a9f 05-Nov-2011 Dianne Hackborn <hackbod@google.com> am 55fe6763: Merge "Include showmap output in bug report." into ics-mr1

* commit '55fe6763d29cb0e899b2541497f4d8bc1bbd14ba':
Include showmap output in bug report.
4e1c22348fb8761d5df2f4f5f94af7461d324be7 04-Nov-2011 Dianne Hackborn <hackbod@google.com> am 55fe6763: Merge "Include showmap output in bug report." into ics-mr1

* commit '55fe6763d29cb0e899b2541497f4d8bc1bbd14ba':
Include showmap output in bug report.
5123468934e4c8debf2f0dd07d8b9e56eb005697 04-Nov-2011 Dianne Hackborn <hackbod@google.com> Include showmap output in bug report.

Change-Id: I02d246defc73ea45c469ab7cb899f45d5663a301
umpstate/dumpstate.c
umpstate/dumpstate.h
umpstate/utils.c
9e9a64e87549cd668939c8edfb71b2d7866f5e74 02-Nov-2011 Dianne Hackborn <hackbod@google.com> am f136aa34: Merge "Various performance and other work." into ics-mr1

* commit 'f136aa341abaaf7fd6f7632d41a30b2989d93985':
Various performance and other work.
8f926be8fbe133a836170546ae19e720e91bc1f2 02-Nov-2011 Joe Onorato <joeo@google.com> Add clear-data command to am to wipe the given package's data.

Change-Id: I2fa5bb6b15f59ae6dc4ae18ab42e849811a2eb81
m/src/com/android/commands/am/Am.java
88175571f23ca7cff6d21cd1d5d6345cfacaa84a 01-Nov-2011 Dianne Hackborn <hackbod@google.com> am f136aa34: Merge "Various performance and other work." into ics-mr1

* commit 'f136aa341abaaf7fd6f7632d41a30b2989d93985':
Various performance and other work.
2c84cfc001fb92a71811bf7384b7f865ff31ff9d 31-Oct-2011 Dianne Hackborn <hackbod@google.com> Various performance and other work.

- IME service now switches between visible and perceptible depending on
whether it is being showm, allowing us to more aggressively free its
memory when not shown.

- The activity display time is no longer delayed by the activity
transition animation.

- New -R (repeat) option for launching activities with the am command.

- Improved some documentation on Loader to be clear about some methods
that apps should not normally call.

- FrameworkPerf test now allows you to select individual tests to run.

Change-Id: Id1f73de66dc93d63212183958a72119ad174318b
m/src/com/android/commands/am/Am.java
95be24585f46229f551c529104b5e92fa4316b38 25-Oct-2011 Andreas Huber <andih@google.com> Remove surface legacy APIs and code.

All surfaces are now supported through surface textures.

Change-Id: I95dd823e7099c0c32a48a1121624149dcc29d9c6
tagefright/stream.cpp
d8dbdf7ead80c6a20db5165dd95d2d974b8e143a 15-Aug-2011 Mike J. Chen <mjchen@google.com> Add service/aah_timesrv

This is a common time service used by Tungsten for synchronizing
distributed playback.

This is a squashed merge from master-tungsten of the following changes:

commit 43be3231034ff8537fdd84422a7954780038671f
Author: John Grossman <johngro@google.com>
Date: Mon Jun 27 18:59:12 2011 -0700

Move libaah_rtp over from the vendor directory.

Also move factor PipeEvent out into utils.

Change-Id: Id3877c66efe22d771cf3ef4877107e431b828e37

commit a148e2674b1d3cb73289b82b85c333f0a66824a9
Author: John Grossman <johngro@google.com>
Date: Mon Jun 20 17:02:24 2011 -0700

Move the A@H time service into frameworks/base

Change-Id: I5c570cde70e8931e205516cb33517585804ce841

commit 86c94c7d6780fcfa4e1146325706fb78bc30544c
Author: Jason Simmons <jsimmons@google.com>
Date: Mon Jun 20 15:44:31 2011 -0700

Update the service manager UID table to match the new name of the common clock service

Change-Id: I5a65e84e8dff743c69d182e9851e58fc68791564

commit 6ab14c34be8c1b10b1258bdebbba1e52743ff5b9
Author: Jason Simmons <jsimmons@google.com>
Date: Fri Jun 3 18:19:40 2011 -0700

Add tungsten_timesrv to init.rc

Change-Id: I851aa990612440e1df1af992ed6e4d64b54a4951

Change-Id: Id832a0a00d447aa562bb7476902799bfa5bbda8d
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
ervicemanager/service_manager.c
24570d1fa314a6bc129b6554b944d84dd4ff1af4 15-Aug-2011 Mike J. Chen <mjchen@google.com> Add the ability to pass float extras to AM.

Merged from master-tungsten:

commit 43a2825a283e29c0f70100146394957af0598b0e
Author: John Grossman <johngro@google.com>
Date: Wed Apr 27 09:03:53 2011 -0700

Add the ability to pass float extras to AM.

Change-Id: I970ad3f76a65bd781099204019095c73ed8c09db

Change-Id: I824de23e244d0fc23112e0af4548524ae2c313e5
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
m/src/com/android/commands/am/Am.java
71f2cf116aab893e224056c38ab146bd1538dd3e 20-Oct-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
pp_process/app_main.cpp
nstalld/commands.c
tagefright/sf2.cpp
tagefright/stream.cpp
a6be6dcd03fbcce8999d495abdd2ae209a06b4c9 12-Oct-2011 Andreas Huber <andih@google.com> NuPlayer is now taking on the task of streaming over RTSP.

Change-Id: Ie204db8810807f1e7981959e34dc0149e5d9563a
tagefright/stagefright.cpp
0eb6ef1798362d15696618debdb2478b386398c5 13-Oct-2011 Andreas Huber <andih@google.com> Merge "Support for an MPEG2 Program Stream extractor."
240c7d2d1fb2944ee6a6f1dee41c7bbd766f8f0d 04-Oct-2011 Christopher Tate <ctate@google.com> Add -nosystem flag to adb backup

This makes it easy to back up everything that belongs to 3rd party apps, but
nothing that comes with the system per se. If any system packages are
explicitly named on the command line they will be included in the backup
even if -nosystem was passed. So, for example, this will back up all 3rd
party apps as well as system settings, but nothing else belonging to
system-deployed apps:

adb backup -all -nosystem com.android.provider.settings

Bug 5361503

Change-Id: Iebe04b7d7027ca58b9f55e8eb7f219d6cca69269
u/src/com/android/commands/bu/Backup.java
bc554956128d69d8d2e60365fb6cffe6facf659b 08-Sep-2011 Andreas Huber <andih@google.com> Support for an MPEG2 Program Stream extractor.

Change-Id: I606d87c278f72b22a5b6d7ee57bce6b02e280d41
tagefright/stagefright.cpp
3e408f39ef1c0513908a3b73da5ce6f4164e85d9 28-Sep-2011 Andreas Huber <andih@google.com> Support AMR, G.711 and vorbis audio in ACodec and friends.

Change-Id: I08c03219bf2d60fc5c6e89957bd4b4c615570983
tagefright/sf2.cpp
d359b575f7cc0ac36caacf7bbdcaef3394830a25 26-Sep-2011 Andreas Huber <andih@google.com> Merge "Properly connect to surface flinger in our shell tools"
a17545339b0b123c950aa06c785b1bb25a8072f5 23-Sep-2011 Andreas Huber <andih@google.com> Add an option to dump the raw stream to a file in the stagefright cmdline tool.

Change-Id: Ie19eca2cdf162d6973037ec554ef5916243ea7d7
tagefright/stagefright.cpp
f459d324bf7fcec3694460928efcccf3267c2f5e 22-Sep-2011 Chia-chi Yeh <chiachi@android.com> ip-up-vpn: Handle the case where INTERNAL_NETMASK4 is empty.

Also set the errno when inet_pton() fails.

Change-Id: Ib98ed593fe1ceabecef4b92bf939f44ecf9fa665
p-up-vpn/ip-up-vpn.c
5965ba30d3ac8f9504681ac2e7ea8ac84aa0c5a7 21-Sep-2011 Colin Cross <ccross@android.com> dumpstate: add uptime to top of bugreports

uptime is a good indicator to determine whether a restart was a
kernel reboot or a runtime restart, put it at the top of bugreports.

Change-Id: Ie4f4ef2f319a7216495ead3891bbfdc474146916
umpstate/dumpstate.c
c5a9766dc3cb0cab0c30528ffdb7bce6dfde1848 15-Sep-2011 Andreas Huber <andih@google.com> Properly connect to surface flinger in our shell tools

Also raise the layer to INT_MAX to float in front of the toolbar.

Change-Id: I045a1c83924e6655f1734d15f2504b90312eec64
tagefright/sf2.cpp
tagefright/stagefright.cpp
tagefright/stream.cpp
20e93c0507b66e697d23c58c138484d652a1b810 20-Sep-2011 JP Abgrall <jpa@google.com> dumpstate: collect /proc/net/dev and /proc/net/xt_qtaguid/iface_stat_all

Add extra network interface statistics.

Bug:5322407
Change-Id: I9441b2ca2517d8380b2c9f5bb5bd077a48438d04
Signed-off-by: JP Abgrall <jpa@google.com>
umpstate/dumpstate.c
fc301b0bb5c635c6bb51b48c504a8db5f9010e5c 30-Aug-2011 Dave Burke <daveburke@google.com> Require INTERNET permission for network-based content.
Bug #1870981

Change-Id: Ia3ad166390c4d60cea19c3783895b078a2c4c15f
tagefright/stream.cpp
ced159b1d839b24775525ccb736876e7cb7e649d 25-Aug-2011 Andreas Huber <andih@google.com> When encountering a discontinuity, flush(clear) all content enqueued up to that

point except previously enqueued discontinuities.

Change-Id: Id04a559dc062fa4a5c80c599ad74bf81a543de01
related-to-bug: 5201378
tagefright/stream.cpp
2eb8e3619ee6c5cada7f89f23b06a5de76c3410a 24-Aug-2011 JP Abgrall <jpa@google.com> dumpstate: dump qtaguid info, ip6tables info, buddyinfo

This will add around 50-120 lines for qtaguid info and 50-100 for ip6tables.
The /proc/buddyinfo is for kernels where /proc/pagetypeinfo is
not accurate (ones with more than one memory node, 2.6.35).


Change-Id: I7fad53209c706d88e33e5ae824486b84941c02b6
umpstate/dumpstate.c
c25a4c44f82c100828b567e82a70c79d6a7bef3d 19-Aug-2011 Arve Hjønnevåg <arve@android.com> Merge "Add /proc/pagetypeinfo to dumpstate"
47a105a720a83a6d0c58962f8024e28a4baa5b06 16-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Small improvements to am command."
0bb1e9139e30aa954f46b0b6fdec2595fac33b80 16-Aug-2011 Dianne Hackborn <hackbod@google.com> Small improvements to am command.

The start command can now take a package name or component name
for easier starting. New -S option allows you to force stop an
app before starting it.

Change-Id: I5c55b34dd794783f0f5f51851dc811b8c1b39b76
m/src/com/android/commands/am/Am.java
46d2545db48e6b8565ef7beedf6486ef5d7f4507 16-Aug-2011 Kenny Root <kroot@google.com> Merge "Infrastructure to support package verifier"
351e74de19cba8e1f9d451ebf4efbe3a64360998 16-Aug-2011 Arve Hjønnevåg <arve@android.com> Add /proc/pagetypeinfo to dumpstate

This shows memory fragmentation

Change-Id: I1ba2a764c1f61ce4b29ea14b4b951994488f4c48
umpstate/dumpstate.c
62f20ecf492d2b29881bba307c79ff55e68760e6 16-Aug-2011 Dianne Hackborn <hackbod@google.com> Add new am option to profile the launching of an activity.

Change-Id: Ie71a8043eafe41f53a0b3dbb5170276d87acbc9b
m/src/com/android/commands/am/Am.java
5ab2157bf1f105b02d3e2913cd3a33f9765b74ca 27-Jul-2011 Kenny Root <kroot@google.com> Infrastructure to support package verifier

Allow a package verifier to approve or disapprove of a package being
installed.

Change-Id: Ibfea0f2b1aaa4ab1589a4e59f96144702b9bf94b
m/src/com/android/commands/pm/Pm.java
1b253b702a356619ae3c5e68ee92062b5305c5d7 16-Aug-2011 Mathias Agopian <mathias@google.com> boot animation doesn't use EGLUtils anymore

Change-Id: I0767ac2a5ab814382b41c85bd5b0786c7a025255
ootanimation/BootAnimation.cpp
c74a02873a0981e3db2417af70ee7be3168ed1ba 12-Aug-2011 Jeff Brown <jeffbrown@google.com> Add lsof to bugreport.

Change-Id: I439795ad46a4e100019b3819855c76ba695f279f
umpstate/dumpstate.c
22d93a0d71d965970f581cd9aa1cbf2efbb5998f 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 41394a36 to honeycomb-plus-aosp

Change-Id: If4dc99c558dc45c9a7ff8d3ea5be69578b4ee793
ac74551bb42eb2d6775d994357481113375574e7 26-Jul-2011 John Michelau <john.michelau@motorola.com> Disable name lookups for dumpstate calls to "iptables -L"

The name lookups are not helpful enough to warrant the large delays
they can cause.

Change-Id: I8710e76b15b7cf060b7f4f89128ea3249fcdbd0d
umpstate/dumpstate.c
d40e2c67ed6423355aeb1292b33c2f8a20b3c84d 24-Jul-2011 Jean-Michel Trivi <jmtrivi@google.com> Merge "QueryCodecs() signature change"
a05f099301ca9d5efd4db549295401ee00b439a0 22-Jul-2011 Jean-Michel Trivi <jmtrivi@google.com> QueryCodecs() signature change

Restore QueryCodecs() signature exactly as used by third-party libs.
Add an alternative function to select HW only codecs.

Change-Id: Ibb2cb4dd36fc0c6599eb93aa5751c216397e3b6f
tagefright/stagefright.cpp
7eabe55db6b113f83c2cefcd06812648927de877 21-Jul-2011 Romain Guy <romainguy@google.com> Add looper profiling to adb shell am

To profile the looper, run the following command:

adb shell am profile looper start <process> <file>
adb shell am profile looper stop <process>

Change-Id: I781f156e473d7bdbb6d13aaffeeaae88bc01a69f
m/src/com/android/commands/am/Am.java
1e9f56cf9e3921c3cb74787a700cb165f2f2e26a 19-Jul-2011 Colin Cross <ccross@android.com> Allow BoardConfig.mk to define an extension to dumpstate

If BoardConfig.mk defines BOARD_LIB_DUMPSTATE, link to that library
and call dumpstate_board(), which can dump debugging information that
only make senses on one device.

Change-Id: I2c5006a1a04b02cf26fd73575047ac176f222616
umpstate/Android.mk
umpstate/dumpstate.c
umpstate/dumpstate.h
211f5af3bb47ba44c9714abbef0dec1b1a0ada51 18-Jul-2011 Jean-Michel Trivi <jmtrivi@google.com> Merge "Add option to query hardware decoders only"
56a37b052912d09c310f43ab1215ccc93f2dbda5 18-Jul-2011 Jean-Michel Trivi <jmtrivi@google.com> Add option to query hardware decoders only

Add an option to OMXCodec::QueryCodecs() to filter out
software codecs.

Update stagefright command line tool to list the roles of codecs.

Change-Id: Icddb79118c30fe13cc3aea20f340174cc082c4e0
tagefright/stagefright.cpp
f483009573dc8a4d9491ca7714d217d622585158 14-Jul-2011 Chia-chi Yeh <chiachi@android.com> Merge "ip-up-vpn: Create proper states for pppd and racoon."
1591aa004557859742fb89190ce76cbbf3a1ef12 14-Jul-2011 Chia-chi Yeh <chiachi@android.com> ip-up-vpn: Create proper states for pppd and racoon.

VPN no longer uses system properties to pass parameters.

Change-Id: I13e4339ababb08552c4276c675c21176774da66c
p-up-vpn/ip-up-vpn.c
b39c07b14404eb8ab91fdbfa4560e503ab6cbe8d 14-Jul-2011 Andreas Huber <andih@google.com> Merge "Include all supported mime types when querying decoder profile/level support."
c1b9bbb21c8ad5109978a4e9e770cd18b0257434 13-Jul-2011 Mike Lockwood <lockwood@android.com> Remove some #ifdef HAVE_ANDROID_OS that were needed for the simulator build

Change-Id: I13d9f251f86c05ae5405f37adbf6b8e9660935ba
Signed-off-by: Mike Lockwood <lockwood@android.com>
ystem_server/system_main.cpp
8d3073c5c4bfd8b2976d7793e127e686dd306200 14-Jul-2011 Andreas Huber <andih@google.com> Include all supported mime types when querying decoder profile/level support.

Change-Id: Ia1c930eee489bfebb482ac5079bd6ac9354532f2
tagefright/stagefright.cpp
8c55a9a57e4f13ec420c3de7b3abfdcf454f6633 12-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Remove the simulator target from all makefiles. Bug: 5010576"
bd882b1c8708686d373c56e07e6bb8b1cb6ffd9e 12-Jul-2011 Jeff Brown <jeffbrown@google.com> Remove the simulator target from all makefiles.
Bug: 5010576

Change-Id: I04d722f258951a3078fe07899f5bbe8aac02a8e8
ootanimation/Android.mk
ugreport/Android.mk
umpstate/Android.mk
nstalld/Android.mk
nstalld/tests/Android.mk
eystore/Android.mk
awbu/Android.mk
creenshot/Android.mk
ervicemanager/Android.mk
5a8eccbfb922701023d1dc1a28a70be4421ec67e 12-Jul-2011 Guang Zhu <guangzhu@google.com> Merge "allow Uri as intent extra in am command"
5d6d90fac8fa646521081c7b67aabaadb5db946b 11-Jul-2011 Jeff Brown <jeffbrown@google.com> Remove more simulator support code.
Bug: 5010576

Change-Id: Ie6c8665306bf4e822693b76f25c3a0f05c12d42d
untime/Android.mk
untime/MODULE_LICENSE_APACHE2
untime/NOTICE
untime/ServiceManager.cpp
untime/ServiceManager.h
untime/SignalHandler.cpp
untime/SignalHandler.h
untime/main_runtime.cpp
10e89712863f5b91a2982dc1783fbdfe39c1485d 09-Jul-2011 Jeff Brown <jeffbrown@google.com> Eliminate single-process mode.
Bug: 5010576

Change-Id: Id450dc83efed4897d1e4ff451530fed14457aace
pp_process/app_main.cpp
untime/main_runtime.cpp
ystem_server/library/system_init.cpp
284f1bb4daf77f7e6b688c0936dd4a31ec2e7c74 07-Jul-2011 Christopher Tate <ctate@google.com> Can now restore a subset of apps from historical dataset

Adds the ability to filter a restore of an historical dataset so that it
only restores certain apps' data regardless of what is actually present
in the dataset. This is currently only used by the bmgr command-line tool,
for debugging / developer support.

Bug 2021590

Change-Id: I7685e5d609b0f5506f71d70c26410602bb387659
mgr/src/com/android/commands/bmgr/Bmgr.java
8ffb0c0210857210a51d7a9a0f1afb73afbf8677 08-Jul-2011 Guang Zhu <guangzhu@google.com> allow Uri as intent extra in am command

When composing an intent using am command line, certain extra fields
need to be added as a Uri (a Parceable in fact).

This patch adds a "--eu" parameter so that the provided value is
parsed as a Uri then added into intent's extra bundle.

Change-Id: I7110829554962d314aa58fd25083dd5041680a73
m/src/com/android/commands/am/Am.java
484738f31c2f50976df3be2c863325da7b0d7a5b 07-Jul-2011 James Dong <jdong@google.com> Merge "Add support for some custom YUV420 color formats to recordvideo utility"
8bddafa3572f0d0cbc4b85b125d6473682fd38e9 07-Jul-2011 Wink Saville <wink@google.com> am 5eeeea29: am 97667d0c: Merge "Allow vril-dump to work on user builds" into honeycomb-LTE

* commit '5eeeea29ecd731897211d31bde7ee87af182420c':
Allow vril-dump to work on user builds
43e8a83521886e4a6989712a75c309a05ba6edbf 07-Jul-2011 James Dong <jdong@google.com> Add support for some custom YUV420 color formats to recordvideo utility

Change-Id: I2f0dfba466efb94b704dca761162d7c7457a43cf
tagefright/recordvideo.cpp
790d2e4d69fd6794cdeec4dccd841149b7c38db3 05-Jul-2011 John Michelau <john.michelau@motorola.com> Allow vril-dump to work on user builds

Run vril-dump without "su root" when ro.build.type=user. Also add inet
perms for dumpstate, so that it can communicate with basebands that
have IP-based interfaces.

Bug: 4993955
Change-Id: Icc65ba0f80756db1f63f12f89f9973a55bf405f2
umpstate/dumpstate.c
6278d5ef052cec6afecae69328e084566bb157c6 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> Promote ip-up-vpn into the framework.

pppd needs it, and racoon will also use it soon.

Change-Id: I7fc40a709f7d44f75cd3683ab77d90cbc29cd765
p-up-vpn/Android.mk
p-up-vpn/ip-up-vpn.c
f4b92ec567477fcdea24fdd18116b045dfcf9852 01-Jul-2011 Brian Carlstrom <bdc@google.com> Revert "Add keychain user with special keystore access permissions"

This reverts commit 8c2a1a90a81f04573bfa578eab32f5fd4a30eafb.

Conflicts:

cmds/keystore/keystore.c

Bug:4970237
Change-Id: I626023d695becfada47e5f319b18e0889b766563
eystore/keystore.cpp
272aaa382f95c38221739f2287c29e414523a5cc 30-Jun-2011 Mathias Agopian <mathias@google.com> Merge "SF transactions are now O(1) wrt IPC instead of O(N)."
439863f3b3e725b5de1cba4940a21900369961c0 29-Jun-2011 Mathias Agopian <mathias@google.com> SF transactions are now O(1) wrt IPC instead of O(N).

Change-Id: I57669852cbf6aabae244ea86940a08a5a27ffc43
ootanimation/BootAnimation.cpp
tagefright/sf2.cpp
tagefright/stagefright.cpp
tagefright/stream.cpp
2c22882181e867c9ba4e74ee973b87a71db3389f 29-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Plumb information from the framework about asec container size."
eb9163071573e9c6133b6c23351c1274e7fc3cd8 28-Jun-2011 Andreas Huber <andih@google.com> Support for "streaming" non-transport streams by first converting them to ts packets.

Change-Id: Ia753a1ab99039f54ce3678a38e997902372b5fa5
tagefright/stream.cpp
292f8bc9d1b790ab975a87a842c7fabc908b97e0 28-Jun-2011 Dianne Hackborn <hackbod@google.com> Plumb information from the framework about asec container size.

Change-Id: Ie0ec3cb6d463aefa341a8cbea80be790451ba5e3
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
d11eccf3a861fdaa754907a28cc0da554b9aa7b7 28-Jun-2011 Andreas Huber <andih@google.com> Merge "Multiple changes to ACodec/codec tools:"
e366f52b1520f13306d5fef1c3c8a2b2c653d935 28-Jun-2011 Andreas Huber <andih@google.com> Multiple changes to ACodec/codec tools:

Make sure sf2 does not coalesce input buffers, generalize ACodec's codec
instantiation based on OMXCodec's list of eligible component names.

Some changes/additions to the "sf2" commandline tool

Make surface options consistent with stagefright tool, i.e. use '-S' instead of '-s'
New option '-R' renders surface-allocated buffers.

Also fixes a longstanding bug introduced when generalizing from surfaces to native windows that never used surface-allocated buffers in sf2 even when the option was specified.

Change-Id: I59fd533f0f6ef0337ebe2806ddc81a46878eb3ae
tagefright/sf2.cpp
8413251083b3d50509011121ed67aa8006c99526 28-Jun-2011 Andreas Huber <andih@google.com> New option in the stagefright commandline tool.

Use '-S' to allocate decoder buffers from a surface
Use '-T' to allocate decoder buffers from a surface texture

Change-Id: Ib71ea53d0fd1b2def08bfeac2fd8bcbdc1938161
tagefright/stagefright.cpp
b2b201395ae56fa0cd1021b8ede27987430989e2 27-Jun-2011 Chia-chi Yeh <chiachi@android.com> KeyStore: fix test-keystore

Change-Id: I1dcbd5c3cc7569c397d2480cda76288a9e28cd5c
eystore/test-keystore
14f14863c508ff38fb2fe925c89e2bb2228fcffe 27-Jun-2011 Chia-chi Yeh <chiachi@android.com> KeyStore: allow system user to get secrets from keystore.

Change-Id: I9cb41344c17fb33e6614a45d46368a9c43e3dce7
eystore/keystore.cpp
46d110329e659cc9cb9514e220ce273701eb151d 24-Jun-2011 Dianne Hackborn <hackbod@google.com> Small cleanup of am/pm commands.

Change-Id: I5af730bc177635821a82d4dd3ec9130a5dcd525a
m/src/com/android/commands/am/Am.java
m/src/com/android/commands/pm/Pm.java
0ff6d7ee17de33d314ef726e7506b39c64a3ed35 23-Jun-2011 Brian Carlstrom <bdc@google.com> Merge "Reinitialize KeyStore::mMasterKey after unlock (and add test-keystore)"
ac8a1b21986f06d0e54ddebb1e4962de23eb77ea 23-Jun-2011 Brian Carlstrom <bdc@google.com> Reinitialize KeyStore::mMasterKey after unlock (and add test-keystore)

Bug: 4599735

Change-Id: Iee38a2e2929c45b6405214c9012819da09b273af
eystore/keystore.cpp
eystore/test-keystore
65f993e0d8ea366bc5178423675ef3299eae3102 22-Jun-2011 Andreas Huber <andih@google.com> Reconstruct sync frame indication for content served by the MPEG2TSExtractor

Strip data up to the first IDR frame if necessary.

Change-Id: I4a096785eb1a17b7484983788e223d188454771d
tagefright/stagefright.cpp
e26e96bcc19b1cdac690d21b3986f09a502739e6 11-Jun-2011 Christopher Tate <ctate@google.com> Pass the data fd number as a command line argument to 'bu'

This way we don't have to muck with stdin/stdout just to get known
fds for data handling.

Change-Id: If87d19f4867c883a32d4e9afb91b915511b9df19
u/src/com/android/commands/bu/Backup.java
0ac3031c159a0904e73eb4439cdc724d8df4a6e6 17-Jun-2011 Dianne Hackborn <hackbod@google.com> Implement remaining infrastructure for user disabling apps.

Change-Id: If8135eb0e27ec36f8f159eb7b6397add7acd0299
m/src/com/android/commands/pm/Pm.java
6e4ba2bf35c3c45dc829e5a863fa437d976d86f0 14-Jun-2011 James Dong <jdong@google.com> Merge "Add an option to force to use HW codec in stagefright cmd tool"
78b9c381aacff14536848c0e183bec3b83b02672 14-Jun-2011 James Dong <jdong@google.com> Add an option to force to use HW codec in stagefright cmd tool

Change-Id: If6c277dd5a3f7a0b62acd6721343618b0be085fc
tagefright/stagefright.cpp
7bb843ca0777111dae7daf8f1b0705817cf523c4 20-Apr-2011 Mathias Agopian <mathias@google.com> unify SurfaceTexture and Surface

Add the concept of synchronous dequeueBuffer in SurfaceTexture
Implement {Surface|SurfaceTextureClient}::setSwapInterval()
Add SurfaceTexture logging
fix onFrameAvailable
ootanimation/BootAnimation.cpp
f741e679c496f7345304a6543f01d7048e31d1a7 10-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of e2aa0490 to master

Change-Id: Id0448a1598fc93aca0652b29253e02586e35a067
a1396dfe7ad6ec6953f544be42d69d7804ab0fd4 09-Jun-2011 Dianne Hackborn <hackbod@google.com> am 02140891: Merge "Work on issue #4518815: Compatibility mode introduces compatibility regression..." into honeycomb-mr2

* commit '021408910af170268cb486910d4dd5a7d838c2bb':
Work on issue #4518815: Compatibility mode introduces compatibility regression...
5fd2169eabd77e6bfafaf456e58051a3bafb2bca 07-Jun-2011 Dianne Hackborn <hackbod@google.com> Work on issue #4518815: Compatibility mode introduces compatibility regression...

...for Market App iRunner

There were a lot of serious issues with how we updated (or often didn't update)
the display and resource state when switching compatibility mode in conjunction
with restarting and updating application components. This addresses everything
I could find.

Unfortunately it does *not* fix this particular app. I am starting to think this
is just an issue in the app. This change does fix a number of other problems
I could repro, such as switching the compatibility mode of an IME.

Also a few changes here and there to get rid of $#*&^!! debug logs.

Change-Id: Ib15572eac9ec93b4b9966ddcbbc830ce9dec1317
nstalld/commands.c
b5c462f801ec0a0b9dec99232b46f91e91984938 07-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Add force-stop subcommand for 'am'."
e2afc2420d29c2d3d04a05ed5839c12f3b267b23 03-Jun-2011 Brian Carlstrom <bdc@google.com> KeyStore.reset changes

restore keystore reset behavior of removing master key.
otherwise after reboot keystore has is LOCKED and not UNINITIALIZED
cmds/keystore/keystore.cpp

when removing password, reset the keystore, so it doesn't remain
locked with a now bogus password.

core/java/com/android/internal/widget/LockPatternUtils.java

Change-Id: If5e0bb50b42599e9ca27a8b91d6cec12528419a1
eystore/keystore.cpp
1a536e642f5078167d18277c56f60090d8d46364 02-Jun-2011 Christopher Tate <ctate@google.com> Merge "Restore from a previous full backup's tarfile"
75a99709accef8cf221fd436d646727e7c8dd1f1 19-May-2011 Christopher Tate <ctate@google.com> Restore from a previous full backup's tarfile

Usage: adb restore [tarfilename]

Restores app data [and installs the apps if necessary from the backup
file] captured in a previous invocation of 'adb backup'. The user
must explicitly acknowledge the action on-device before it is allowed
to proceed; this prevents any "invisible" pushes of content from the
host to the device.

Known issues:

* The settings databases and wallpaper are saved/restored, but lots
of other system state is not yet captured in the full backup. This
means that for practical purposes this is usable for 3rd party
apps at present but not for full-system cloning/imaging.

Change-Id: I0c748b645845e7c9178e30bf142857861a64efd3
u/src/com/android/commands/bu/Backup.java
5cfee3fabb3482c6a6df1c8b6f21e843cf214527 31-May-2011 Brian Carlstrom <bdc@google.com> Integrating keystore with keyguard (Part 1 of 4)

Summary:

frameworks/base
keystore rewrite
keyguard integration with keystore on keyguard entry or keyguard change
KeyStore API simplification

packages/apps/Settings
Removed com.android.credentials.SET_PASSWORD intent support
Added keyguard requirement for keystore use

packages/apps/CertInstaller
Tracking KeyStore API changes
Fix for NPE in CertInstaller when certificate lacks basic constraints

packages/apps/KeyChain
Tracking KeyStore API changes

Details:

frameworks/base

Move keystore from C to C++ while rewriting password
implementation. Removed global variables. Added many comments.

cmds/keystore/Android.mk
cmds/keystore/keystore.h
cmds/keystore/keystore.c => cmds/keystore/keystore.cpp
cmds/keystore/keystore_cli.c => cmds/keystore/keystore_cli.cpp

Changed saveLockPattern and saveLockPassword to notify the keystore
on changes so that the keystore master key can be reencrypted when
the keyguard changes.

core/java/com/android/internal/widget/LockPatternUtils.java

Changed unlock screens to pass values for keystore unlock or initialization

policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
policy/src/com/android/internal/policy/impl/PatternUnlockScreen.java

KeyStore API changes
- renamed test() to state(), which now return a State enum
- made APIs with byte[] key arguments private
- added new KeyStore.isEmpty used to determine if a keyguard is required

keystore/java/android/security/KeyStore.java

In addition to tracking KeyStore API changes, added new testIsEmpty
and improved some existing tests to validate expect values.

keystore/tests/src/android/security/KeyStoreTest.java

packages/apps/Settings

Removing com.android.credentials.SET_PASSWORD intent with the
removal of the ability to set an explicit keystore password now
that the keyguard value is used. Changed to ensure keyguard is
enabled for keystore install or unlock. Cleaned up interwoven
dialog handing into discrete dialog helper classes.

AndroidManifest.xml
src/com/android/settings/CredentialStorage.java

Remove layout for entering new password

res/layout/credentials_dialog.xml

Remove enable credentials checkbox

res/xml/security_settings_misc.xml
src/com/android/settings/SecuritySettings.java

Added ability to specify minimum quality key to ChooseLockGeneric
Activity. Used by CredentialStorage, but could also be used by
CryptKeeperSettings. Changed ChooseLockGeneric to understand
minimum quality for keystore in addition to DPM and device
encryption.

src/com/android/settings/ChooseLockGeneric.java

Changed to use getActivePasswordQuality from
getKeyguardStoredPasswordQuality based on experience in
CredentialStorage. Removed bogus class javadoc.

src/com/android/settings/CryptKeeperSettings.java

Tracking KeyStore API changes

src/com/android/settings/vpn/VpnSettings.java
src/com/android/settings/wifi/WifiSettings.java

Removing now unused string resources

res/values-af/strings.xml
res/values-am/strings.xml
res/values-ar/strings.xml
res/values-bg/strings.xml
res/values-ca/strings.xml
res/values-cs/strings.xml
res/values-da/strings.xml
res/values-de/strings.xml
res/values-el/strings.xml
res/values-en-rGB/strings.xml
res/values-es-rUS/strings.xml
res/values-es/strings.xml
res/values-fa/strings.xml
res/values-fi/strings.xml
res/values-fr/strings.xml
res/values-hr/strings.xml
res/values-hu/strings.xml
res/values-in/strings.xml
res/values-it/strings.xml
res/values-iw/strings.xml
res/values-ja/strings.xml
res/values-ko/strings.xml
res/values-lt/strings.xml
res/values-lv/strings.xml
res/values-ms/strings.xml
res/values-nb/strings.xml
res/values-nl/strings.xml
res/values-pl/strings.xml
res/values-pt-rPT/strings.xml
res/values-pt/strings.xml
res/values-rm/strings.xml
res/values-ro/strings.xml
res/values-ru/strings.xml
res/values-sk/strings.xml
res/values-sl/strings.xml
res/values-sr/strings.xml
res/values-sv/strings.xml
res/values-sw/strings.xml
res/values-th/strings.xml
res/values-tl/strings.xml
res/values-tr/strings.xml
res/values-uk/strings.xml
res/values-vi/strings.xml
res/values-zh-rCN/strings.xml
res/values-zh-rTW/strings.xml
res/values-zu/strings.xml
res/values/strings.xml

packages/apps/CertInstaller

Tracking KeyStore API changes
src/com/android/certinstaller/CertInstaller.java

Fix for NPE in CertInstaller when certificate lacks basic constraints
src/com/android/certinstaller/CredentialHelper.java

packages/apps/KeyChain

Tracking KeyStore API changes
src/com/android/keychain/KeyChainActivity.java
src/com/android/keychain/KeyChainService.java
support/src/com/android/keychain/tests/support/IKeyChainServiceTestSupport.aidl
support/src/com/android/keychain/tests/support/KeyChainServiceTestSupport.java
tests/src/com/android/keychain/tests/KeyChainServiceTest.java

Change-Id: Ic141fb5d4b43d12fe62cb1e29c7cbd891b4be35d
eystore/Android.mk
eystore/keystore.c
eystore/keystore.cpp
eystore/keystore.h
eystore/keystore_cli.c
eystore/keystore_cli.cpp
c12b7ba81ec3b486f21394810d827258ba888ee4 27-May-2011 Mathias Agopian <mathias@google.com> sensorservice can now be ran standalone

Change-Id: I6e757f31f1e020046038e5ab84e71b8689a0aed3
ensorservice/Android.mk
ensorservice/main_sensorservice.cpp
ystem_server/library/system_init.cpp
351f32270a489577e040bbeccc423b0bac1637dc 13-May-2011 Xianzhu Wang <wangxianzhu@google.com> Add force-stop subcommand for 'am'.

It's useful for some testing and debugging, to ensure all processes
are stopped before testing. 'kill' doesn't always work because sometimes the
system will restart the process immediately (e.g. if an app is running in
background).

Change-Id: I2c0caa38f74ee65ad6c35172fbf505227be7e7c3
m/src/com/android/commands/am/Am.java
5e34a1945a6b26dff5551a37627c5216b076d896 26-May-2011 Kenny Root <kroot@google.com> am 1d8f8819: Merge "Break apart queries to getInstalled* API DO NOT MERGE" into honeycomb-mr2

* commit '1d8f8819f1e98cdf3b7756396158613e95fe9eb6':
Break apart queries to getInstalled* API DO NOT MERGE
e8b26dcec7765786bbf063b3ae6b967b8b547ab6 26-May-2011 James Dong <jdong@google.com> Extract embedded cover art (aka poster frame) in mp4 files

Change-Id: Ic9421ee27b9aa3b27df00878b887de20f25d232b
tagefright/stagefright.cpp
1bb6cf18c0039cb9d2a60713ea34d3709af58c5c 16-Apr-2011 Kenny Root <kroot@google.com> Break apart queries to getInstalled* API DO NOT MERGE

To avoid blowing past the Binder IPC limit, change the
PackageManagerService to have a DB-like interaction where the client
tells the service the last "row" that it read.

The fact that we use a HashMap instead of a TreeMap makes this
problematic. For now we're just making a new ArrayList for the keys and
then sorting them for each call. This can make the API slower for callers
of this, but it's probably greatly overshadowed by the cost of the data
transfer itself.

Bug: 4064282
Change-Id: Ia3a8cdaa94581ed9336f2e05694b8c8a5f757bce
m/src/com/android/commands/pm/Pm.java
ebed7d6e35f7f960e6e6add2b8ab7c7a31a511c3 17-May-2011 Jeff Brown <jeffbrown@google.com> Support wrapping app processes to inject debug instrumentation.
Bug: 4437846

Change-Id: I4552501c693716b14714afb5c5248edaca9547ab
pp_process/app_main.cpp
untime/main_runtime.cpp
a51b6fd6f8a53f040894ef07cf23695581595e6b 20-May-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of b2d0ee16 to master

Change-Id: I4483a6d0ccecfea4a1e66bb6eba80d13e8b9a3a4
e6cd0c747e76723bc51a23925c239ae10f9d3b5c 19-May-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of 2433c443 to honeycomb-plus-aosp

Change-Id: I3385f57e5761679e6700bcbe3c41deb3ecd43ba1
2433c443bb5fe96d9a39b59e10e3c03d791e2278 19-May-2011 Kenny Root <kroot@google.com> am f2006f31: Merge "Break apart queries to getInstalled* API" into gingerbread

* commit 'f2006f3123dcdf598e052051041b49c89710b53e':
Break apart queries to getInstalled* API
cb4d1a91fc09fed1281781c4507e1e69afb476e5 18-May-2011 JP Abgrall <jpa@google.com> dumpstate: don't attempt to use vril-dump, it breaks adb bugreport


http://b/4442803 vril-dump's usage of adb causes bugreport to hang

lcm-dump.sh re-uses adb which breaks.

Change-Id: I5eeb30f78793c0a6d10bfaf0097d6aa7b811cf66
Signed-off-by: JP Abgrall <jpa@google.com>
umpstate/dumpstate.c
9d31154d0b0ecbc5a36733ac3a8b70dcae18bf9c 17-May-2011 Dianne Hackborn <hackbod@google.com> am b68c768d: am 41744836: am 7916ac65: Add new command line option to change global screen size.

* commit 'b68c768ddb57407bc253230c677056329c9e4bae':
Add new command line option to change global screen size.
417448369c170a34d76c477aa19c5293e3caa1df 17-May-2011 Dianne Hackborn <hackbod@google.com> am 7916ac65: Add new command line option to change global screen size.

* commit '7916ac65dc492e4e1431879875c77d7121fbf82e':
Add new command line option to change global screen size.
7916ac65dc492e4e1431879875c77d7121fbf82e 17-May-2011 Dianne Hackborn <hackbod@google.com> Add new command line option to change global screen size.

For example:

adb shell am display-size 1024x600

Change-Id: I5df462acd3323bdaaaefa3126faea7dd8595b726
m/src/com/android/commands/am/Am.java
14a2935809e73a9d824888dc837f2f017100fd26 17-May-2011 Christopher Tate <ctate@google.com> bu - add handling for both 'backup' and 'restore' modes

Requires a parallel change in adb to support the new syntax.

Change-Id: Iff30cb247e424b6817af121c018f3c4e40b9f81a
u/src/com/android/commands/bu/Backup.java
2a20583a5f436d66ab73cd6c0fdc73e59a3cecad 16-May-2011 Dianne Hackborn <hackbod@google.com> am 700ab1c7: Merge "DO NOT MERGE. Integrate from master: Improve activity manager debug dumps." into honeycomb-mr2

* commit '700ab1c75862babba90f54e02bdc877becd4f4fc':
DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.
7b06e3516ccd452224d9b160c8cf54c3b9f3597d 15-May-2011 Wink Saville <wink@google.com> am 7a2a87d6: am a1c29d30: Merge "Support for Vendor RIL dump of baseband logs" into honeycomb-LTE

* commit '7a2a87d6457885c5d3d4dbf335be101aa9c5c3ab':
Support for Vendor RIL dump of baseband logs
71bbe7a87cc75dba446db807a0f223cba8fa2e6c 22-Sep-2010 John Michelau <john.michelau@motorola.com> Support for Vendor RIL dump of baseband logs

Added hook for Vendor RIL to provide a dump of the underlying
baseband's logs. The Vendor RIL must implement the actual executable
that does the capture.

Change-Id: I40fdf2ccc4bb14a9cef92b7866fad19684502524
umpstate/dumpstate.c
9a84983a9fd9959671e102045eaf185b83291269 08-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.

Activity manager now does all dump requests into apps
asynchronously, so it can nicely timeout if there is an
app problem. Also lots of general cleanup of the am
dump output.

Change-Id: I99447b87f77a701af52aeca984d93dfe931f065d
umpstate/dumpstate.c
88bf0e5ae7d0573f7d7aa88ce6c0a47a59b3047d 13-May-2011 Dianne Hackborn <hackbod@google.com> Merge "resolved conflicts for merge of 0e59729b to master"
3d0724dc220a2e027b9e38f61c39c84c28a505d5 13-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 0e59729b to master

Change-Id: I2d3a6bddf66b1df0c101c45ea2fec1cf65caf01b
972808164adde6c0784e9c836d06219a9cf7eb7f 13-May-2011 Dianne Hackborn <hackbod@google.com> am 0f1de9ad: New compat mode front end: UI and persistence.

* commit '0f1de9adde0b52d2a385a76232bd7ac30c3eeea2':
New compat mode front end: UI and persistence.
34bb419e5946ab28112e9e27a4d1b3928d31e0e2 11-May-2011 Dima Zavin <dima@android.com> update for new audio.h header location

Change-Id: Ic4c62c4037800802427eb7d3c7f5eb8b25d18876
Signed-off-by: Dima Zavin <dima@android.com>
tagefright/audioloop.cpp
0f1de9adde0b52d2a385a76232bd7ac30c3eeea2 12-May-2011 Dianne Hackborn <hackbod@google.com> New compat mode front end: UI and persistence.

Adds a really crappy UI for toggling compat mode.

Persists compat mode selection across boots.

Turns on compat mode by default for newly installed apps.

Change-Id: Idc83494397bd17c41450bc9e9a05e4386c509399
m/src/com/android/commands/am/Am.java
m/src/com/android/commands/pm/Pm.java
4a627c71ff53a4fca1f961f4b1dcc0461df18a06 01-Apr-2011 Christopher Tate <ctate@google.com> Full local backup infrastructure

This is the basic infrastructure for pulling a full(*) backup of the
device's data over an adb(**) connection to the local device. The
basic process consists of these interacting pieces:

1. The framework's BackupManagerService, which coordinates the
collection of app data and routing to the destination.

2. A new framework-provided BackupAgent implementation called
FullBackupAgent, which is instantiated in the target applications'
processes in turn, and knows how to emit a datastream that contains
all of the app's saved data files.

3. A new shell-level program called "bu" that is used to bridge from
adb to the framework's Backup Manager.

4. adb itself, which now knows how to use 'bu' to kick off a backup
operation and pull the resulting data stream to the desktop host.

5. A system-provided application that verifies with the user that
an attempted backup/restore operation is in fact expected and to
be allowed.

The full agent implementation is not used during normal operation of
the delta-based app-customized remote backup process. Instead it's
used during user-confirmed *full* backup of applications and all their
data to a local destination, e.g. via the adb connection.

The output format is 'tar'. This makes it very easy for the end
user to examine the resulting dataset, e.g. for purpose of extracting
files for debug purposes; as well as making it easy to contemplate
adding things like a direct gzip stage to the data pipeline during
backup/restore. It also makes it convenient to construct and maintain
synthetic backup datasets for testing purposes.

Within the tar format, certain artificial conventions are used.
All files are stored within top-level directories according to
their semantic origin:

apps/pkgname/a/ : Application .apk file itself
apps/pkgname/obb/: The application's associated .obb containers
apps/pkgname/f/ : The subtree rooted at the getFilesDir() location
apps/pkgname/db/ : The subtree rooted at the getDatabasePath() parent
apps/pkgname/sp/ : The subtree rooted at the getSharedPrefsFile() parent
apps/pkgname/r/ : Files stored relative to the root of the app's file tree
apps/pkgname/c/ : Reserved for the app's getCacheDir() tree; not stored.

For each package, the first entry in the tar stream is a file called
"_manifest", nominally rooted at apps/pkgname. This file contains some
metadata about the package whose data is stored in the archive.

The contents of shared storage can optionally be included in the tar
stream. It is placed in the synthetic location:

shared/...

uid/gid are ignored; app uids are assigned at install time, and the
app's data is handled from within its own execution environment, so
will automatically have the app's correct uid.

Forward-locked .apk files are never backed up. System-partition
.apk files are not backed up unless they have been overridden by a
post-factory upgrade, in which case the current .apk *is* backed up --
i.e. the .apk that matches the on-disk data. The manifest preceding
each application's portion of the tar stream provides version numbers
and signature blocks for version checking, as well as an indication
of whether the restore logic should expect to install the .apk before
extracting the data.

System packages can designate their own full backup agents. This is
to manage things like the settings provider which (a) cannot be shut
down on the fly in order to do a clean snapshot of their file trees,
and (b) manage data that is not only irrelevant but actively hostile
to non-identical devices -- CDMA telephony settings would seriously
mess up a GSM device if emplaced there blind, for example.

When a full backup or restore is initiated from adb, the system will
present a confirmation UI that the user must explicitly respond to
within a short [~ 30 seconds] timeout. This is to avoid the
possibility of malicious desktop-side software secretly grabbing a copy
of all the user's data for nefarious purposes.

(*) The backup is not strictly a full mirror. In particular, the
settings database is not cloned; it is handled the same way that
it is in cloud backup/restore. This is because some settings
are actively destructive if cloned onto a different (or
especially a different-model) device: telephony settings and
AndroidID are good examples of this.

(**) On the framework side it doesn't care that it's adb; it just
sends the tar stream to a file descriptor. This can easily be
retargeted around whatever transport we might decide to use
in the future.

KNOWN ISSUES:

* the security UI is desperately ugly; no proper designs have yet
been done for it
* restore is not yet implemented
* shared storage backup is not yet implemented
* symlinks aren't yet handled, though some infrastructure for
dealing with them has been put in place.

Change-Id: Ia8347611e23b398af36ea22c36dff0a276b1ce91
mgr/src/com/android/commands/bmgr/Bmgr.java
u/Android.mk
u/NOTICE
u/bu
u/src/com/android/commands/bu/Backup.java
aa9d84c37e05f696ec158dac98ce38cf41e18314 10-May-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 05be6d6f to master

Change-Id: Ic6a6c5bb300f6f1d43f9ed550b284282b4f16212
4907d1d5e2c7d244b07579b8c52153df69754e85 10-May-2011 Dianne Hackborn <hackbod@google.com> am 0c6cbf41: Merge "Better compat mode part one: start scaling windows." into honeycomb-mr2

* commit '0c6cbf410a642f6e9cea7cca0a6e53a4a3cdd324':
Better compat mode part one: start scaling windows.
e2515eebf42c763c0a2d9f873a153711778cfc17 28-Apr-2011 Dianne Hackborn <hackbod@google.com> Better compat mode part one: start scaling windows.

First step of improving app screen size compatibility mode. When
running in compat mode, an application's windows are scaled up on
the screen rather than being small with 1:1 pixels.

Currently we scale the application to fill the entire screen, so
don't use an even pixel scaling. Though this may have some
negative impact on the appearance (it looks okay to me), it has a
big benefit of allowing us to now treat these apps as normal
full-screens apps and do the normal transition animations as you
move in and out and around in them.

This introduces fun stuff in the input system to take care of
modifying pointer coordinates to account for the app window
surface scaling. The input dispatcher is told about the scale
that is being applied to each window and, when there is one,
adjusts pointer events appropriately as they are being sent
to the transport.

Also modified is CompatibilityInfo, which has been greatly
simplified to not be so insane and incomprehendible. It is
now simple -- when constructed it determines if the given app
is compatible with the current screen size and density, and
that is that.

There are new APIs on ActivityManagerService to put applications
that we would traditionally consider compatible with larger screens
in compatibility mode. This is the start of a facility to have
a UI affordance for a user to switch apps in and out of
compatibility.

To test switching of modes, there is a new variation of the "am"
command to do this: am screen-compat [on|off] [package]

This mode switching has the fundamentals of restarting activities
when it is changed, though the state still needs to be persisted
and the overall mode switch cleaned up.

For the few small apps I have tested, things mostly seem to be
working well. I know of one problem with the text selection
handles being drawn at the wrong position because at some point
the window offset is being scaled incorrectly. There are
probably other similar issues around the interaction between
two windows because the different window coordinate spaces are
done in a hacky way instead of being formally integrated into
the window manager layout process.

Change-Id: Ie038e3746b448135117bd860859d74e360938557
m/src/com/android/commands/am/Am.java
59f19e48c1c043bb9debdc35d166e397e2125d33 07-May-2011 Mathias Agopian <mathias@google.com> clear boot-animation background with black (not transparent) pixels

Change-Id: I2fcf9f303e8324cefaa2d96f1c46647f70980bb2
ootanimation/BootAnimation.cpp
7277744e8de8ad66a5e4e1d44db6057047edf1c3 29-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am 67c92fbd: am 5f2ff42b: Add data to bugreports.

* commit '67c92fbdfe52a94804f021c2255132c0f3550875':
Add data to bugreports.
5f2ff42b282e093b61b9e7b07c79a74ea8ce3272 29-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Add data to bugreports.

Include IPv6 routes and iptables data.

Change-Id: Ie9bca8a935f93933082eef0c45f83a17be76b7ed
umpstate/dumpstate.c
24fc2fb1c541e954b83fd31ea9f786a5e9b45501 20-Apr-2011 Dima Zavin <dima@android.com> audio/media: convert to using the audio HAL and new audio defs

Change-Id: Ibc637918637329e4f2b62f4ac7781102fbc269f5
Signed-off-by: Dima Zavin <dima@android.com>
tagefright/audioloop.cpp
9638e5c167be321643bf3f3ee39e3fb45541fb3b 20-Apr-2011 Mathias Agopian <mathias@google.com> Get rid of the "pid" parameter from createSurface

Change-Id: I28635e3f803e6abe965d79998e305f54a202465d
ootanimation/BootAnimation.cpp
tagefright/sf2.cpp
tagefright/stream.cpp
25641ca1ac5b09727f86fe01389877332a00455d 19-Apr-2011 Amith Yamasani <yamasani@google.com> Merge "Plumbing in PackageManager and installd for multi-user support."
08d1f937236230756bffde241ad6b335da368cf9 19-Apr-2011 Nick Kralevich <nnk@google.com> Merge "Make installd resistant to umask changes."
0e2c0f37d98bb5539b0fe41865aaf1add0ff1bb3 16-Apr-2011 Kenny Root <kroot@google.com> Break apart queries to getInstalled* API

To avoid blowing past the Binder IPC limit, change the
PackageManagerService to have a DB-like interaction where the client
tells the service the last "row" that it read.

The fact that we use a HashMap instead of a TreeMap makes this
problematic. For now we're just making a new ArrayList for the keys and
then sorting them for each call. This can make the API slower for callers
of this, but it's probably greatly overshadowed by the cost of the data
transfer itself.

Bug: 4064282
Change-Id: Ic370fd148d4c3813ae4f2daffa1a7c28d63d5a09
m/src/com/android/commands/pm/Pm.java
0b285499db739ba50f2f839d633e763c70e67f96 15-Apr-2011 Amith Yamasani <yamasani@google.com> Plumbing in PackageManager and installd for multi-user support.

- Create /data/user directory and symlink /data/user/0 -> /data/data for
backward compatibility
- Create data directories for all packages for new user

- Remove data directories when removing a user

- Create data directories for all users when a package is created

- Clear / Remove data for multiple users

- Fixed a bug in verifying the location of a system app

- pm commands for createUser and removeUser (will be disabled later)

- symlink duplicate lib directories to the original lib directory

Change-Id: Id9fdfcf0e62406a8896aa811314dfc08d5f6ed95
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
nstalld/utils.c
m/src/com/android/commands/pm/Pm.java
f68327e7e23d78e209acc76ccecbc4601e3f5fc2 15-Apr-2011 Nick Kralevich <nnk@google.com> Make installd resistant to umask changes.

Bug: 3272072
Change-Id: Ic2d241afcb4d0dabd63fcdadf13b2d48b7f398e8
nstalld/commands.c
d195e5ab401432ddac659791640a2927fc668699 14-Apr-2011 Elliott Hughes <enh@google.com> Replace a custom AndroidRuntime::findClass with a more targeted fix.

This seems simpler and more contained, and I think the comment explaining
why hoop-jumping is necessary is a bit clearer now.

Change-Id: Ief4afd7cbb42188ed835fce23e497520bdb753a8
pp_process/app_main.cpp
untime/main_runtime.cpp
ystem_server/library/system_init.cpp
162ee49e1ce8800de80697fdd0e0e42ad7e9374e 12-Apr-2011 Gloria Wang <gwang@google.com> - Add another parameter in notify() to be able to send timed text sample
through listener during video playback.
- Add OnTimedTextListener in the MediaPlayer
For feature request 800939.

Change-Id: I65072c27acb4c0037109a72be38c73e9f667420f
tagefright/stream.cpp
8c2a1a90a81f04573bfa578eab32f5fd4a30eafb 08-Apr-2011 Brian Carlstrom <bdc@google.com> Add keychain user with special keystore access permissions

Change-Id: I02fe5171add62c5cd9f57b01bc137f3bc1cb3a69
eystore/keystore.c
e17aeb31030cfeed339a39a107912ad5e9178390 08-Apr-2011 Dianne Hackborn <hackbod@google.com> Improve activity manager debug dumps.

Activity manager now does all dump requests into apps
asynchronously, so it can nicely timeout if there is an
app problem. Also lots of general cleanup of the am
dump output.

Change-Id: Id0dbccffb217315aeb85c964e379833e6aa3f5af
umpstate/dumpstate.c
86c9584559439504fc57ece2ccd9b6cbd568430c 31-Mar-2011 Kenny Root <kroot@google.com> Update installd to allow multiuser

* Add ability to select different personas to generate the path to be
created.

* Move hardcoded paths to read from init's set environment.

* Add unit tests for all the utility functions that build strings to
make sure they're correct.

* Fill in persona with "0" all the time now. Will be plumbed through in
later CL.

Change-Id: I0a7f6e3640cb6b052f8823080886ee79e90b679f
nstalld/Android.mk
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
nstalld/tests/Android.mk
nstalld/tests/installd_utils_test.cpp
nstalld/utils.c
829f8e5ae5be10dbadd93b89881d0b87def4f236 30-Mar-2011 Dmitry Shmidt <dimitrysh@google.com> Merge "bugreport: Add ping wlan gateway, dns1 and dns2 servers"
9abfeb4123d1c76ca11a192f137daa1ff0260873 28-Mar-2011 Dmitry Shmidt <dimitrysh@google.com> bugreport: Add ping wlan gateway, dns1 and dns2 servers

Change-Id: I91c2b9be217fabe8f854c637c972377bc811cca8
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate/dumpstate.c
696257ccf315a1da042787c5b2d1f80c7146fc94 26-Mar-2011 Mathias Agopian <mathias@google.com> merge libsurfaceflinger_client into libgui

this is the first step in unifying surfacetexture and surface.
for this reason the header files were not moved, as most of them
will eventually go away.

NOTE: currently we keep libsurfaceflinger_client.so as an empty
library to workaround prebuilt binaries wrongly linking against
it.

Change-Id: I130f0de2428e8579033dc41394d093f4e1431a00
ootanimation/Android.mk
creencap/Android.mk
tagefright/Android.mk
199d1c131d29b5356f71fbd7826a592c1dd8575f 17-Mar-2011 James Dong <jdong@google.com> Fix missing AOSP copyright headers for more files

o Update the copyright date on InputDispatcher_test.cpp and InputReader_test.cpp
because these two files were moved from other places to the current location,
and were actually created in 2010.

bug - 4119349

Change-Id: Ic93b81ddafb58e9e72a2e9e02ca3d9f173d6dca7
tagefright/sf2.cpp
tagefright/stream.cpp
3dee21eb0f253a7e78572872b8dfc7b5d990a063 02-Mar-2011 Kenny Root <kroot@google.com> Merge "Switch to returnCode for IPackageDeleteObserver"
c39bb4aaa7be1b9b0cc9fb0b1f03d54f7609ffeb 28-Feb-2011 Kenny Root <kroot@google.com> Switch to returnCode for IPackageDeleteObserver

Before the IPackageDeleteObserver only knew whether the deletion
succeeded or failed, but not the reason why.

Bug: 2520191
Change-Id: I1f0d7c04f06c539660b6e17e7e133defb0f61b5b
m/src/com/android/commands/pm/Pm.java
190c03cb32ab5ce2d139c8d003dff91175b66cec 28-Feb-2011 Andreas Huber <andih@google.com> Add the option '-S' to use surface allocated buffers in the stagefright cmdline tool.

Change-Id: Ic84eeed1679d6bf68c92de0e20d30e7a3c4d410f
tagefright/Android.mk
tagefright/stagefright.cpp
285a8f52c50a7d532b1f1009d513786e0e72aa71 14-Feb-2011 Dmitry Shmidt <dimitrysh@google.com> bugreport: Remove wlan FW dump log

Change-Id: I7f211c8125e6c3ba99e9c34e1221dfaa5ac1bee1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate/dumpstate.c
1eac1c8e48ec1dd5df695196514545453c908a9e 09-Feb-2011 Mathias Agopian <mathias@google.com> am bfe9e9cf: am cc24170d: Merge "fix [3374821] Cannot take screenshot of HC preview" into honeycomb

* commit 'bfe9e9cf18ca84214bc59d875d74ca63a27e2414':
fix [3374821] Cannot take screenshot of HC preview
9afc7b02facf4918d3033ebb4548b76a59b1373c 09-Feb-2011 Mathias Agopian <mathias@google.com> fix [3374821] Cannot take screenshot of HC preview

the screencap tool will now fallback to /dev/graphics/fb0 is the
screenshot API fails.

Change-Id: I3f593847c72f4ca5429d4f64ca22bd5436dd2051
creencap/screencap.cpp
5ea137203b1304d607ee37ddebf60b60598ac2d3 04-Feb-2011 Andreas Huber <andih@google.com> Ignore format change message in sf2 instead of asserting

Change-Id: I2d7cdf371c07109398c53c7ffc37d7b10b6b6312
tagefright/sf2.cpp
35ab3ad61fcc349380d7e7f2fcf9a0dfbf76ae11 03-Feb-2011 Kenny Root <kroot@google.com> Remove defunct secure FS work

Bug: 3365047
Change-Id: I68eaea295881f5431907e1b93bdd73e644e84aa5
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
4dc5c4a19a030210e8330ce8df5502a02e8960ca 01-Feb-2011 Jason parks <jparks@google.com> am 31d3963b: am f370391f: Merge "Show the encryption boot animation." into honeycomb

* commit '31d3963bd6f8f14268adf26b2b7b6cac9cd949f0':
Show the encryption boot animation.
bd9a08d318f94a3d0b2f8f9d7b16b10736d80c5c 31-Jan-2011 Jason parks <jparks@google.com> Show the encryption boot animation.

Change-Id: I15892a35238d97302b30f26bec170b9f231a3e15
ootanimation/BootAnimation.cpp
8935bcacd2b760bd81ea5636b0e9b27629b957f8 22-Jan-2011 JP Abgrall <jpa@google.com> dumpstate: improved collection, better error handling.

- Some of the commands used by dumpstate, which drops root, will not collect
anything during a bug report. E.g. df fails on /mnt/secure/asec.
- force flushing of error message
. without the flush (using gingerbread and not master)
*** netcfg: Exit code 255
. with the flush()
*** exec(netcfg): Permission denied
*** netcfg: Exit code 255
- add a check before using WEXITSTATUS()

Change-Id: Ia3924b9cc8a12cecab894cbf7f2c79614a358d34
Signed-off-by: JP Abgrall <jpa@google.com>
umpstate/dumpstate.c
umpstate/utils.c
e9b467d7dd26d508b29fbecd555cb562c0a8b472 20-Jan-2011 Glenn Kasten <gkasten@google.com> Bug 3361124 Remove drmioserver

Change-Id: I64cba4be8a38b60bf3873836b4cd0d1039e19706
ervicemanager/service_manager.c
9286cfe5017363d95798d85163ec4f28aeb0c675 15-Jan-2011 Jean-Baptiste Queru <jbq@google.com> merge 83fdc69e from gingerbread - do not merge

Change-Id: Ib1e9e12244a44f75a93d66142e71915de6386680
9efe47374b61afd0ce84afa64e9fa5b41dfaef22 03-Dec-2010 James Dong <jdong@google.com> Squash commits of the following patches, cherry-picked from other branch - do not merge.

o Prepare for publishing MediaMetadataRetriever as public API
step one:
o replaced captureFrame with getFrameAtTime
o removed getMode

o Replace MediaMetadataRetriever.captureFrame() with MediaMetadataRetriever.getFrameAtTime()
as part of the preparation for publishing MediaMetadataRetriever as public Java API

o Remove captureFrame from MediaMetadataRetriever.java class
It has been replaced by getFrameAtTime() method

o Replace extractAlbumArt() with getEmbeddedPicture() in MediaMetadataRetriever.java

o Publish MediaMetadataRetriever.java as public API
o Removed setMode() methods and related mode constants
o Removed some of the unused the metadata keys
o Updated the javadoc
o part of a multi-project change.

bug - 3309041

Change-Id: I2efb6e8b8d52897186b016cb4efda6862f5584c4
tagefright/stagefright.cpp
11eab056dd0133a390169d3581edf3eef26d6a54 06-Jan-2011 James Dong <jdong@google.com> Publish MediaMetadataRetriever.java as public API

o Removed setMode() methods and related mode constants
o Removed some of the unused the metadata keys
o Updated the javadoc

o part of a multi-project change.

bug - 2433195

Change-Id: I5ed167f1fd6a53cb143b7dc385b149431d434438
tagefright/stagefright.cpp
9b1bd2c7d1acffa1079d589811450140518e5ce5 09-Jan-2011 Chris Tate <ctate@google.com> am 6ec91731: DO NOT MERGE : Permission fix: don\'t require BACKUP perm for self-restores

* commit '6ec91731cbf6ee1a9a914d341fab9567d1599018':
DO NOT MERGE : Permission fix: don't require BACKUP perm for self-restores
6ec91731cbf6ee1a9a914d341fab9567d1599018 17-Nov-2010 Chris Tate <ctate@google.com> DO NOT MERGE : Permission fix: don't require BACKUP perm for self-restores

The public API is not supposed to require the BACKUP permission in order
for an application to restore its own last-known-good backup data. However,
as currently implemented, BackupManager.requestRestore() [the public API
in question] depends on private Backup Manager methods that *do* enforce
that permission. The net result is that the method cannot be successfully
used by third party applications: it will throw an exception if attempted.
This CL restructures the permission checking involved.

First, the underlying beginRestoreSession() operation can now be passed a
'null' transport name; if this is done, then the restore session is begun
on whatever the currently-active transport is. Looking up the name of the
active transport is one of the permission-guarded actions that was required
with the initial implementation.

Second, a package name can now be passed to beginRestoreSession(). If
this is done, then the restore session can only be used to perform a
single-package restore of that one application. The BACKUP permission is
not required if the caller is tying the restore to its own package name.

In combination, these changes permit BackupManager.requestRestore() to
function without the calling app needing to hold any special permission.
The no-permission case is intentionally quite narrow: the caller must
hold the permission unless they both (a) pass 'null' for the transport
name, thereby accepting whatever the currently active transport is, and
(b) pass their own package name to restrict the restore session only
to their own app.

External bug http://code.google.com/p/android/issues/detail?id=10094
Internal bug 3197202

(Cherrypick from master to gingerbread)

Change-Id: Ie20b0bd2420345ce6eda178f854680b558f6372a
mgr/src/com/android/commands/bmgr/Bmgr.java
4f05220d10338b6ad668c87e70cbe7b9914a9047 09-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge commit '690d20bb53ba2485f59d128b365eff991d5cc3e6' into manualmerge
95db1cfc741c23c7f4192128e3b7bb3c43761bdb 09-Jan-2011 Dianne Hackborn <hackbod@google.com> am cd23823d: Merge "Fix issue # 3227963: SecurityException: Neither user 10023 nor..." into gingerbread

* commit 'cd23823d4f533431c76baa104eb50b7803b3b391':
Fix issue # 3227963: SecurityException: Neither user 10023 nor...
b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad 03-Jan-2011 Jeff Brown <jeffbrown@google.com> Mouse pointer integration.

Added support for loading the pointer icon from a resource.

Moved the system server related bits of the input manager out
of libui and into libinput since they do not need to be linked into
applications.

Change-Id: Iec11e0725b3add2b905c51f8ea2c3b4b0d1a2d67
ystem_server/library/Android.mk
54e6649e4cac3475593f3acb7894837fa1dc61eb 23-Dec-2010 Andreas Huber <andih@google.com> Squashed commit of the following:

commit eaeaa2672d4e0a82891493b2bde8bdd0c0e79a1b
Author: Andreas Huber <andih@google.com>
Date: Thu Dec 23 10:26:48 2010 -0800

Remove lowest bandwidth stream if using the legacy player.

Change-Id: I2f885e26344996de9152f8fda9fd6bdef89bf953

commit 7d652972615b2750fd8f1c21b9fab0e136df2b82
Author: Andreas Huber <andih@google.com>
Date: Thu Dec 23 10:14:36 2010 -0800

Don't clear the packet source's format for legacy discontinuities.

Change-Id: I9bd5a21b9bd28043ad38bd0658ccc8eda3c1079a

commit 2b18a45aac17cbfe1aa089d0f6510957d438dd64
Author: Andreas Huber <andih@google.com>
Date: Thu Dec 23 10:13:55 2010 -0800

Use NuPlayer for HTTP live streaming based on runtime property.

adb shell setprop media.httplive.enable-nuplayer true

Change-Id: I22738df3403985dc8e6992b1ab5da5747309f773

commit 50d899fb7b9ea52c3994b0a58e993998d926aeed
Author: Andreas Huber <andih@google.com>
Date: Wed Dec 22 16:25:22 2010 -0800

Make ACodec a lot less verbose.

Change-Id: I94c7e499b61032321ffaf999f5ad2c913cde6a48

commit b19e1740cb4d02990a56844654b5d019987c6405
Author: Andreas Huber <andih@google.com>
Date: Wed Dec 22 16:22:22 2010 -0800

Wait until we have fresh codec-specific-data before instantiating the decoders

after a discontinuity involving a format change.

Change-Id: I7bcf9b5ae3319f08bf8978a117e8ee5220902e37

commit 06428c006906c9099e430aface3b439ff1d36ecc
Author: Andreas Huber <andih@google.com>
Date: Wed Dec 22 15:20:38 2010 -0800

Disable random seeks in the streaming tool for now.

Change-Id: Ie86fde422dcfc4b2c7a01be51a193fda9c88cd71

commit e19db68f3bea8a61c191f60f6940f30e3a0d5f1b
Author: Andreas Huber <andih@google.com>
Date: Wed Dec 22 15:20:27 2010 -0800

Tweak HTTP live parameters.

Change-Id: If4b71e12485facc523a8a43d8213d0feb190daab

commit 1e9942791538c2256b579d96c6c04264b0d8b087
Author: Andreas Huber <andih@google.com>
Date: Wed Dec 22 14:48:23 2010 -0800

Enable http live streaming through NuPlayer for http URLs containing the string m3u8

Change-Id: I1691fe12ae8f1507fe3673313959cd50bc324624

commit 4c33f96a6e499ee0efe0e70b687094430cb7c1c0
Author: Andreas Huber <andih@google.com>
Date: Wed Dec 22 14:40:27 2010 -0800

Support for HTTP live streaming in NuPlayer.

Change-Id: Iacba1c3ebaeb8d3b972185deaf4cff18c8009c54

commit ddf705ce553708bc5b13d89a878484cf839bd674
Author: Andreas Huber <andih@google.com>
Date: Wed Dec 22 13:42:47 2010 -0800

StreamingSource now a subclass of abstract NuPlayer::Source

Change-Id: Ia6c7c639628910b9d1f37decc55da48b07a70de3

commit 9e04a8406b1882a8e3fdeb7b4d52db5ae70b970a
Author: Andreas Huber <andih@google.com>
Date: Wed Dec 22 13:33:52 2010 -0800

Refactor media data sourcing to NuPlayer::Source.

Change-Id: I1db9fb08c4e527bf7b19c29978cf342c2b0a0bc9

Change-Id: I9610a097481dda58f22142eacda3ac2dba0b63f9
tagefright/stream.cpp
690d20bb53ba2485f59d128b365eff991d5cc3e6 22-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue # 3227963: SecurityException: Neither user 10023 nor...

...current process has android.permission.WAKE_LOCK

When updating a system app, we would actually uninstall the package
of the system app, which also meant removing its uid...! It was just
luck that we would get the same uid when installing the update after
that. During that time, if anyone tried to do anything related to
that uid, it would be unknown.

This change tweaks how we go about replacing system apps by making
it more like normal apps -- to make this work, if we need to disable
the system app, we generate a new PackageSetting from the current
system app and replace it into our data structures, so we can update
that without trashing the current correct information about the (still
actually there) system app.

Also fixed a problem where we were not killing the currently running
app before installing, like we do when updating a normal application.

And fixed a problem where we were not deleting the /data .apk when
uninstalling a system app update.

And added a new option to the "pm" command to clear the data associated
with an app.

Change-Id: I0e879677849aa42950a3c360bf78ad820e87674b
m/src/com/android/commands/pm/Pm.java
a15874665fa785c82afa9f2e8cb3512470c297cb 16-Dec-2010 Andreas Huber <andih@google.com> Initial support for a true streaming player for mpeg2 transport streams.

Change-Id: I153eec439d260a5524b21270e16d36940ec3161a
tagefright/Android.mk
tagefright/sf2.cpp
tagefright/stream.cpp
ccc714131359eb1022d8c6702b7d82ab9e93f27c 13-Dec-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 78e9f4cb to master

Change-Id: I1135361e6d66f524c3f349e2bf1f31bd4191c634
78e9f4cbaece783b7b87ce3fb0a157dae766012a 13-Dec-2010 Dianne Hackborn <hackbod@google.com> am e4a59519: Fix issue #3154576: battery stats checkin should include UID -> packages+ map

* commit 'e4a5951925f16f18dae91ed65567e96528f17fee':
Fix issue #3154576: battery stats checkin should include UID -> packages+ map
e4a5951925f16f18dae91ed65567e96528f17fee 07-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3154576: battery stats checkin should include UID -> packages+ map

Includes some other small fixes to battery collection and a few
other things.

Output of package info looks like this:

5,0,i,uid,1000,com.android.settings
5,0,i,uid,1000,com.android.providers.subscribedfeeds
5,0,i,uid,1000,com.android.providers.settings
5,0,i,uid,1000,com.android.server.vpn
5,0,i,uid,1000,android
5,0,i,uid,1000,com.android.systemui
5,0,i,uid,1000,com.google.android.backup
5,0,i,uid,1001,com.android.phone
5,0,i,uid,1001,com.android.providers.telephony
5,0,i,uid,1022,com.android.nfc
5,0,i,uid,10021,com.google.android.location
5,0,i,uid,10021,com.google.android.syncadapters.calendar
5,0,i,uid,10021,com.google.android.gsf
5,0,i,uid,10021,com.google.android.syncadapters.contacts
5,0,i,uid,10026,com.android.providers.downloads.ui
5,0,i,uid,10026,com.android.providers.media
5,0,i,uid,10026,com.android.providers.drm
5,0,i,uid,10026,com.android.providers.downloads
5,0,i,uid,10032,com.android.launcher
5,0,i,uid,10039,com.google.android.gm
5,0,i,uid,10041,com.google.android.gallery3d
5,0,i,uid,10049,com.android.providers.calendar

Change-Id: I9e38f254eef146339113ad270f5c6e8b60fb7a1d
m/src/com/android/commands/pm/Pm.java
1d8843897e1e108586a6a51e05392ff509b3dd7e 08-Dec-2010 Iliyan Malchev <malchev@google.com> service_manager: duplicate registrations override previous ones

When a process that has registered one or several binder services with
the service manager crashes, that process will usually be restarted by
init (see init.rc). When the process comes back up, it will attempt
to re-register itself with the service manager. However, the binder
driver may not deliver the death notification to the service manager
before the the new service-registation request, in which case the
service manager will reject the request as a duplicate.

The same may occur if a process takes a while to actually exit. Since
the init language's restart command does not wait for a process to
exit before restarting it, there may be for a brief instant two
processes. The new one will attempt to register before the old
one has exited, causing the same problem.

This patch does not treat duplicate registrations as an error.
Instead, the service manager force-releases the old instance and
proceeds with registering the new instance of a service.

Change-Id: Ib70640ab13f5e22460fff6af2f9520b8a9ac9713
Signed-off-by: Iliyan Malchev <malchev@google.com>
ervicemanager/service_manager.c
ae9d5072534de65d9ea41def2e1b4258a1731ca4 06-Dec-2010 Andreas Huber <andih@google.com> API Support for both synchronous and queued commands, optionally associated metadata.

Change-Id: Idb90d64cb638942210c5822b3cba2f05b087d601
tagefright/stream.cpp
b5590846c035a28399818451201aaf1256913ec3 04-Dec-2010 Andreas Huber <andih@google.com> Squashed commit of the following:

commit 9254c845d7c82976fd4b8be406ce4b17eeb0e119
Author: Andreas Huber <andih@google.com>
Date: Fri Dec 3 15:26:12 2010 -0800

Remove obsolete code from the cached data source.

Change-Id: I794b986ac8977cbc834dff189221a636ba564e36

commit 2ee33711064c58c53ba65ed9e63dd4b01ec2380e
Author: Andreas Huber <andih@google.com>
Date: Fri Dec 3 15:23:13 2010 -0800

LiveSource is dead, long live LiveSession.

Change-Id: Ibcd0731ecf9c94f0b3e5db3d53d012d9da2a1c66

commit 9eabb2c3cd8571ab859bdeae0aa7f655c414d8fa
Author: Andreas Huber <andih@google.com>
Date: Fri Dec 3 12:49:31 2010 -0800

Respect explicitly signalled discontinuities.

Change-Id: I3c0c16a2de7a99742d25db7d1b2ff0258de52271

commit 7f7f7b6b906b6ece6e4d43af7fd5f494e805c5e5
Author: Andreas Huber <andih@google.com>
Date: Fri Dec 3 11:45:57 2010 -0800

Better protection against syncword emulation in AAC ADTS content.

Change-Id: I867e80a4556dd46d24ab3e781177c248a5221719

commit fe765766582efcc350aed01135ea603576adccf6
Author: Andreas Huber <andih@google.com>
Date: Fri Dec 3 09:15:59 2010 -0800

New implementation of http live driving code.

Change-Id: I31ddf3d6a0d5929b121be704a2b9c3d6775f7737

Change-Id: Id8d1829c8fcb173756965013f848c1d426ef1048
tagefright/stagefright.cpp
5cff0630eb970faf1682095ca434b204628b4d62 04-Dec-2010 Joe Onorato <joeo@google.com> make screencap able to save pngs.

Change-Id: Idf3542ff05670bc872bd91770810ed775266514f
creencap/Android.mk
creencap/screencap.cpp
faf09ba9405ff019b5ca7e2317debe4ff269d4f8 03-Dec-2010 James Dong <jdong@google.com> Prepare for publishing MediaMetadataRetriever as public API

step one:
o replaced captureFrame with getFrameAtTime
o removed getMode

bug - 2433195

Change-Id: I38a8cecef29014692f0b08b8818326e3ebb40a12
tagefright/stagefright.cpp
592f4dd8c173f774ac3735211b301e51856d5175 03-Dec-2010 Kenny Root <kroot@google.com> Merge "Move disk usage utilities to its own library"
edebb2fe1d1c4d3ad17db91cd7e2bfe8feafd0b7 02-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am b087ceea: am 40eade14: Merge from open-source master

* commit 'b087ceead79bcb304e5793c6ae9109ce590847dc':
Fix crash by "adb shell pm list permissions -f|-s"
40eade14bb87d24903588de04449fdfe2e1795cb 02-Dec-2010 Jean-Baptiste Queru <jbq@google.com> Merge from open-source master

Change-Id: Ie25bbfbf12fa8902d9ba82cf2d4ed4c60d439e39
33b2264ea9ab0f1980c49698729a0ab3c51d07fe 30-Nov-2010 Kenny Root <kroot@google.com> Move disk usage utilities to its own library

Disk usage calculation will happen in more places now, so move the
installd calculation utilities out to its own library that only gets
built for the target.

Change-Id: Idceb6bd663ca6ab3d38fa00e57ee74a25b784855
nstalld/Android.mk
nstalld/commands.c
1c3274ca12a6931568693b897c269107f0346eab 30-Nov-2010 Ali Utku Selen <aliutku.selen@sonyericsson.com> Fix crash by "adb shell pm list permissions -f|-s"

pm command makes the assumption that every permission should
contain android:description and android:label attributes while
they are not mandatory. If a permission does not contain these
two attributes, we get "android.content.res.
Resources$NotFoundException: String resource ID #0x0"
followed by a NPE when using -f or -s options.

With the following change, users will get "null" in output for
respective fields.

Change-Id: I4e7f407592fa071abdab1d979775f46ec27dc9d2
m/src/com/android/commands/pm/Pm.java
997d15e1a6e4a74c69c03f164973b7ddd21c6fff 30-Nov-2010 Olivier Bailly <olivier@google.com> Merge "fix int vs. pointer mismatch in return statement. Add missing include header for compilation on x86 target."
52b52cdfb7502d5a0fd7bba21d1daa3e36a54e42 23-Nov-2010 Andreas Huber <andih@google.com> Support streaming data across binder boundaries.

Change-Id: Ifbac61406dcb81343765f99ccba08bd90f9274cc
tagefright/Android.mk
tagefright/stream.cpp
1bb0ffd0981bec26f906bc62d449e136111af4f8 22-Nov-2010 Andreas Huber <andih@google.com> Squashed commit of the following:

commit 0870f7bdd10a7cd36087d723d1957d8e1b967ca7
Author: Andreas Huber <andih@google.com>
Date: Mon Nov 22 12:57:04 2010 -0800

set_surface_crop doesn't seem to work right yet, stop using it in the SoftwareRenderer.

Change-Id: If0a24f78b7810a6cecaa82eb4f23d0f90c22cc42

commit 4767b52bee3a54ae117a8708d6832276a44e6a6a
Author: Andreas Huber <andih@google.com>
Date: Mon Nov 22 11:14:57 2010 -0800

info->mMediaBuffer may still be NULL at this point...

Change-Id: I25a71569015b1bb87f1ea7efff7588958774426f

commit 0cef79874e1f1ddb10b7402177a87d3cffc7de92
Author: Andreas Huber <andih@google.com>
Date: Mon Nov 22 10:55:12 2010 -0800

QCOM's YVU420 color format conversion has now been tested.

Change-Id: I7fef4b642a928af15d42f006f7cdc107d5ff1d67

commit 84fe05a6c969ede0ce8a85a530e110afca07c7a7
Author: Andreas Huber <andih@google.com>
Date: Mon Nov 22 09:59:50 2010 -0800

Removed remaining traces of suspend/resume. Proper reporting of video dimensions based on cropping rectangle.

Change-Id: Ib238b80cbc1f19e7d312f2422eb5e9ab6b06b1bc

commit 50970cdc837c5c498bcf0cb61b436196ca9e2ef7
Author: Andreas Huber <andih@google.com>
Date: Fri Nov 19 16:11:06 2010 -0800

Revamped Software Renderer respects the crop rectangle.

Removed obsolete ADRENO support code.

Change-Id: I984cbc8a99c4d97e09e7d1b1292099c88b9ae535

commit 8abbc6a5608bff650f968540f24a2eab75f254ed
Author: Andreas Huber <andih@google.com>
Date: Fri Nov 19 16:10:41 2010 -0800

The metadata retriever now respects the crop rectangle while capturing a video frame.

Change-Id: Id3377176060086d16717f62c77ce26fabe899050

commit 2d42e4466609d304e88bd2cdd6eb7b297340cc21
Author: Andreas Huber <andih@google.com>
Date: Fri Nov 19 16:09:50 2010 -0800

Changed ColorConverter APIs to be more general.

Clients can now refer to crop rectangles in both source and destination.

Change-Id: Ief151d736818396d0389ec04e7df5650e3ad7c04

commit 273184303d54a54febd3e9c3dd4df30507ea78b5
Author: Andreas Huber <andih@google.com>
Date: Fri Nov 19 15:04:06 2010 -0800

The stagefright commandline tool now writes the extracted video frame to /sdcard/out.jpg

Change-Id: Ieb2ab3fda7a7cd9294beccb8db0eed75096eeef4

commit 2d43390328cadf4ba94c1c3c02e4fb30baa29690
Author: Andreas Huber <andih@google.com>
Date: Fri Nov 19 14:36:55 2010 -0800

The AVC software decoder now properly advertises the cropping rectangle.

Change-Id: Idb7a8a7e2fde5740f0fc34b7e8c92eca2577104b

commit 9a7ed23c2fac8ce19dce7a34a603acee945a89f6
Author: Andreas Huber <andih@google.com>
Date: Fri Nov 19 13:40:39 2010 -0800

OMXCodec now signals a format change if the cropping rectangle changes.

...and puts the cropping info into its output format.

Change-Id: I3ffbd8e877ba286fe06a82c536ef20d92548d2e2

commit efe0323947029df1c502599ccc288c8d676dfd31
Author: Andreas Huber <andih@google.com>
Date: Fri Nov 19 11:29:39 2010 -0800

Stagefright's MetaData object now supports rectangle items.

Change-Id: I5667bb5ee6622c76104b99fb57f60abb802a8504

Change-Id: I27cb78f2c5e0353f95fdfc5cb53991949ed75b70
tagefright/Android.mk
tagefright/stagefright.cpp
482a1b16cb805920b427f0b1adca300571fda92d 19-Nov-2010 James Dong <jdong@google.com> Display AVC video sample profile and level for "stagefright" util

Change-Id: I04b3f67d162cf3827bc74ad98cd1e1a0f5f14172
tagefright/stagefright.cpp
d7c8672ccc8ccd1f99da60accc63d6817d41ac52 18-Nov-2010 Olivier Bailly <olivier@google.com> fix int vs. pointer mismatch in return statement.
Add missing include header for compilation on x86 target.

Change-Id: I3651fb3be0178b888c5ada3d3754fb379b55a847
awbu/backup.cpp
6b53e8daa69cba1a2a5a7c95a01e37ce9c53226c 11-Nov-2010 Jeff Brown <jeffbrown@google.com> Added support for full PC-style keyboards.

BREAKING CHANGE: Redesigned the key character map format to
accomodate full keyboards with more comprehensive suite of modifiers.
Old key character maps will not work anymore and must be updated.
The new format is plain text only and it not compiled to a binary
file (so the "kcm" tool will be removed in a subsequent check-in).

Added FULL keyboard type to support full PC-style keyboards.

Added SPECIAL_FUNCTION keyboard type to support special function
keypads that do not have any printable keys suitable for typing
and only have keys like HOME and POWER

Added a special VIRTUAL_KEYBOARD device id convention that maps
to a virtual keyboard with a fixed known layout. This is designed
to work around issues injecting input events on devices whose
built-in keyboard does not have a useful key character map (ie.
when the built-in keyboard is a special function keyboard only.)

Modified several places where events were being synthesized
to use the virtual keyboard.

Removed support for the "qwerty" default layout.
The new default layout is "Generic". For the most part "qwerty"
was being used as a backstop in case the built-in keyboard did
not have a key character map (probably because it was a special
function keypad) and the framework needed to be able to inject
key events anyways. The latter issue is resolved by using the
special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD.

Added the concept of a key modifier behavior so that
MetaKeyKeyListener can distinguish between keyboards that use
chorded vs. toggled modifiers.

Wrote more robust key layout and key character map parsers
to enable support for new keyboard features and user installable
key maps.

Fixed a bug in InputReader generating key ups when keys
are released out of sequence.

Updated tons of documentation.

Currently QwertyKeyListener is being used for full keyboards
with autotext and capitalization disabled. This mostly works
but causes some problems with character pickers, etc.
These issues will be resolved in subsequent changes.

Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
nput/src/com/android/commands/input/Input.java
44ab8453e1c4c46790f792a46d026fa1017d8cfe 17-Nov-2010 Chris Tate <ctate@google.com> Permission fix: don't require BACKUP perm for self-restores

The public API is not supposed to require the BACKUP permission in order
for an application to restore its own last-known-good backup data. However,
as currently implemented, BackupManager.requestRestore() [the public API
in question] depends on private Backup Manager methods that *do* enforce
that permission. The net result is that the method cannot be successfully
used by third party applications: it will throw an exception if attempted.
This CL restructures the permission checking involved.

First, the underlying beginRestoreSession() operation can now be passed a
'null' transport name; if this is done, then the restore session is begun
on whatever the currently-active transport is. Looking up the name of the
active transport is one of the permission-guarded actions that was required
with the initial implementation.

Second, a package name can now be passed to beginRestoreSession(). If
this is done, then the restore session can only be used to perform a
single-package restore of that one application. The BACKUP permission is
not required if the caller is tying the restore to its own package name.

In combination, these changes permit BackupManager.requestRestore() to
function without the calling app needing to hold any special permission.
The no-permission case is intentionally quite narrow: the caller must
hold the permission unless they both (a) pass 'null' for the transport
name, thereby accepting whatever the currently active transport is, and
(b) pass their own package name to restrict the restore session only
to their own app.

External bug http://code.google.com/p/android/issues/detail?id=10094
Internal bug 3197202

Change-Id: Ibc9d652323f2da03727d850f991b4096af6520d2
mgr/src/com/android/commands/bmgr/Bmgr.java
75611c8a97e93105f13e22c242ffd2f9672f87c7 14-Nov-2010 James Dong <jdong@google.com> Switch to use kKeyFrameRate for recordvideo utility

Change-Id: I3f6abfed9c39223fe5c1a1b9c094b7ce8a8ca67f
tagefright/recordvideo.cpp
93e496f0ba5cc1db29387e0c7ef9cd9193c89510 09-Nov-2010 Andreas Huber <andih@google.com> Added a commandline option "-x" to the stagefright commandline tool.

To display a histogram of decoding times and ideal frame rate distributions.

Change-Id: Id8d70fd2960858c75f5f91ae9ebb9902ad5c37d3
tagefright/stagefright.cpp
975d24d5af84bee8176877956468eb72347647d5 04-Nov-2010 Dmitry Shmidt <dimitrysh@google.com> Merge "bugreport: Add bcm4329 internal counters dump"
2b799198bb8d6d4e5bc2f14a32ac7658b5ad3340 04-Nov-2010 Dmitry Shmidt <dimitrysh@google.com> bugreport: Add bcm4329 internal counters dump

Change-Id: I8e74bc1bf9a269e2a429ada1b1141d10cb7d914f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate/dumpstate.c
e9418ffc5bb5ab443452af938e733a54cabdf9d7 04-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am 0d7c66b3: Merge 42c94791 from open-source master

* commit '0d7c66b3a555356315c17da48969fee28181ceda':
Fix the animation disappeared issue
0d7c66b3a555356315c17da48969fee28181ceda 04-Nov-2010 Jean-Baptiste Queru <jbq@google.com> Merge 42c94791 from open-source master

Change-Id: Id17a1a787b6d46c44ba39d628129a3a27f6d70be
2c3197bf46130e32194fbfeef6dc6a7940401215 04-Nov-2010 Dmitry Shmidt <dimitrysh@google.com> bugreport: Fix dump of netcfg command

Change-Id: Id2f507f4b094cd9cbe5c5eae9030321d1c3ed71a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate/dumpstate.c
2978751310b4efef1faa87b116fcaee9423c007f 03-Nov-2010 Chih-Wei Huang <cwhuang@linux.org.tw> Fix the animation disappeared issue

The animation movie disappears due to the incorrect logic of
commit c11f46259a1e8f4e7e58925aefd1ed9eaf57a7fc.

Change-Id: I9c0eac2bf2950fe20e931da367036ddf38d81f52
ootanimation/BootAnimation.cpp
7a0fc8776782a18374ec6e3b4418027c3c685b1a 01-Nov-2010 Chris Tate <ctate@google.com> Don't crash bmgr if there are no available restore sets

Properly guard against a null set of available restore sets when
validating the token passed to 'bmgr restore TOKEN' against what's
known to exist on the backend.

Fixes bug 3153986

Change-Id: I74bdd4c6242f682833c1633baa4fefccb2b165a7
mgr/src/com/android/commands/bmgr/Bmgr.java
95fb8396cad0f947f9d666c4c6b5a9fe4a39afde 22-Oct-2010 Kenny Root <kroot@google.com> am faf53c0b: am 40763914: Merge "Exit immediately on some linklib failures" into gingerbread
faf53c0bf2bd942cc06149364a5425396d958a23 22-Oct-2010 Kenny Root <kroot@google.com> am 40763914: Merge "Exit immediately on some linklib failures" into gingerbread
2f791fd868043cf3de738300dceed324ea20842a 07-Oct-2010 Wink Saville <wink@google.com> Change dumpstate so the logs use threadtime instead of time as the default.

The threadtime option display both the pid and tid which can
assist pinpointing bugs.

Change-Id: Ib4620d3534a59b291507b757352f9fecb06f7cef
umpstate/dumpstate.c
eb95b0877aa386938ed20e9429a211eac8b8b805 21-Oct-2010 Joe Onorato <joeo@google.com> Show app services in adb bugreport (dumpstate).

There is a 60s timeout for this command. I'd rather do it as an individual timeout
for each of the services, but this is easier and will probably cover for busted apps
well enough. Also, this is running last in dumpstate, so if it's lost... oh well.

Also, clean up the formatting of the service dump so it's more readable in bugreport.

Change-Id: Ibd727f4b3366f7af9e7ef1e231868f5cedc48132
umpstate/dumpstate.c
0332d1c5a5a0353df9e9b02422b33656930c2941 22-Oct-2010 Kenny Root <kroot@google.com> Exit immediately on some linklib failures

If the library couldn't be printed to the string, installd should fail
early instead of trying to chmod() back to uninitialized stat struct.

Bug: 3121721
Change-Id: I8a3604954ae657a1e07c1ad8d5569aa80aff9e0a
nstalld/commands.c
c7912444448d84d0fc70554a1a36e18a882c8f62 22-Oct-2010 Nick Kralevich <nnk@google.com> am 9a430d8c: am 62d0970c: Merge "allow dumpstate to work for non-root users." into gingerbread

Merge commit '9a430d8c0e376160f287e50cdad99177e69ec384'

* commit '9a430d8c0e376160f287e50cdad99177e69ec384':
allow dumpstate to work for non-root users.
9a430d8c0e376160f287e50cdad99177e69ec384 21-Oct-2010 Nick Kralevich <nnk@google.com> am 62d0970c: Merge "allow dumpstate to work for non-root users." into gingerbread

Merge commit '62d0970c82f9a2c17aea67379c207a3f17556c46' into gingerbread-plus-aosp

* commit '62d0970c82f9a2c17aea67379c207a3f17556c46':
allow dumpstate to work for non-root users.
77d87aa7ff352a4867d8a6e2a73fadeb3152c7eb 21-Oct-2010 Nick Kralevich <nnk@google.com> allow dumpstate to work for non-root users.

Change-Id: Iaad4a097f5e09914842955dafbc0a09cc7a1db48
umpstate/dumpstate.c
62f2ada64f7213243eafd7a4a4c3ccd5040ad85a 19-Oct-2010 David Deephanphongs <dpanpong@google.com> Add missing NOTICE entries.

Add missing NOTICE block for TagSoup in general NOTICE file.
Add comment in Android.mk to help reviewers locate the NOTICE for apache-http.
Modify build rule for 'am' command to pull in the NOTICE file.

Change-Id: I43c6c1468395b70d0942b3620f12e4b6f3d9a66b
m/Android.mk
ac2a88061dc9a1ade73b3e76a033238a8be4cb98 18-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Remove one more opencore include path

Bug: 3101573
Change-Id: Id60845e4c46523e910504fe6e707f8247a3b6102
tagefright/Android.mk
5582cc3a68589c905d56a05b17ba4d247c1b78b0 18-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Merge fb474872 from gingerbread-plus-aosp

Change-Id: I1bbb845a86a7b7df44ea175df3af22e5f47c44e3
cd0e839a2448deea50f79bddeba782c546b33893 14-Oct-2010 Nick Pelly <npelly@google.com> NFC: Move NFC service implementation out of system_server.

NFC service is now an application service in packages/apps/Nfc.

NFC service is registered through ServiceManager.addService(), and the proxy
object NfcAdapter obtains a handle to it through ServiceManager.getService().

**Important** Had to add new symbols AID_NFC / NFC_UID / android.uid.nfc and
modify service_manager.c, Process.java and PackageManagerService.java in order
to force the com.android.nfc process to take a fixed uid, so that it can use
ServiceManager.addService().

Most of the JNI has moved to packages/apps/Nfc/jni. However NdefRecord and
NdefMessage require some in-process native code, so android_com_NdefMessage.cpp
and android_com_NdefRecord.cpp stay in frameworks/base/core/jni. They link to
a very small library libnfc_ndef.so that implements NDEF message parsing. This
has been added to core.mk so all devices (even without NFC hardware) can work
with NDEF data.

Bug: 3041259
Bug: 3097445
Change-Id: If7f00cd8f2053acfc9319ca366d4a9c02bd396e6
Signed-off-by: Nick Pelly <npelly@google.com>
ervicemanager/service_manager.c
fb47487259f0d5329d0fdbdecfc56baab9b96817 16-Oct-2010 Andreas Huber <andih@google.com> am b04f356d: Merge "Include the framework copy of the OpenMAX headers instead of referencing external/opencore." into gingerbread

Merge commit 'b04f356d86eec74217fca8e3b85d801c4fcaa678' into gingerbread-plus-aosp

* commit 'b04f356d86eec74217fca8e3b85d801c4fcaa678':
Include the framework copy of the OpenMAX headers instead of referencing external/opencore.
36e7790b6b3c2c36c67fbe5dc2e2313cdd537349 16-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Merge a851d8d0 from gingerbread

Change-Id: Iea0e3fa1662d6326ab337821fe52a65a9dfd989a
b04f356d86eec74217fca8e3b85d801c4fcaa678 15-Oct-2010 Andreas Huber <andih@google.com> Merge "Include the framework copy of the OpenMAX headers instead of referencing external/opencore." into gingerbread
a4f391c9bf581af19d6dec4603c194126995b6bf 15-Oct-2010 Andreas Huber <andih@google.com> Include the framework copy of the OpenMAX headers instead of referencing external/opencore.

Change-Id: I762f59acf5e1f770e4d7c2d89af362bfffebefa6
related-to-bug: 3101573
tagefright/Android.mk
bc21fdefdfbeba1754c6cd339c7dd8e8f1d6fd48 14-Oct-2010 Nick Pelly <npelly@google.com> NFC: Move NFC service implementation out of system_server.

NFC service is now an application service in packages/apps/Nfc.

NFC service is registered through ServiceManager.addService(), and the proxy
object NfcAdapter obtains a handle to it through ServiceManager.getService().

**Important** Had to add new symbols AID_NFC / NFC_UID / android.uid.nfc and
modify service_manager.c, Process.java and PackageManagerService.java in order
to force the com.android.nfc process to take a fixed uid, so that it can use
ServiceManager.addService().

Most of the JNI has moved to packages/apps/Nfc/jni. However NdefRecord and
NdefMessage require some in-process native code, so android_com_NdefMessage.cpp
and android_com_NdefRecord.cpp stay in frameworks/base/core/jni. They link to
a very small library libnfc_ndef.so that implements NDEF message parsing. This
has been added to core.mk so all devices (even without NFC hardware) can work
with NDEF data.

Bug: 3041259
Bug: 3097445
Change-Id: If8f00ce8f2053acfc9319ca366d4a9c02bd396e6
Signed-off-by: Nick Pelly <npelly@google.com>
ervicemanager/service_manager.c
5bc3addb453ba1daad366862a24be654a06ff447 10-Oct-2010 Kenny Root <kroot@google.com> am 0689b60b: am 54e01e0f: Merge "Symlink application lib directory when on SD card" into gingerbread

Merge commit '0689b60b8644d7c4c76e5cdf7e6ce5cc4c5be124'

* commit '0689b60b8644d7c4c76e5cdf7e6ce5cc4c5be124':
Symlink application lib directory when on SD card
0689b60b8644d7c4c76e5cdf7e6ce5cc4c5be124 08-Oct-2010 Kenny Root <kroot@google.com> am 54e01e0f: Merge "Symlink application lib directory when on SD card" into gingerbread

Merge commit '54e01e0f980cfb78153d5481f7e67cef90416174' into gingerbread-plus-aosp

* commit '54e01e0f980cfb78153d5481f7e67cef90416174':
Symlink application lib directory when on SD card
6a6b007c77e5cab7ee435506a4f65824f52028b6 08-Oct-2010 Kenny Root <kroot@google.com> Symlink application lib directory when on SD card

This will help legacy games that use dlopen() to directly access the
/data/data/<app>/lib directory before the
ApplicationInfo.nativeLibraryDir was part of the API.

Change-Id: Ie9f3e7239b6334708b5d086ffafe66a507f6d9da
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
c4838afb343f1479d8239c60d51132fda66c1617 08-Oct-2010 Brian Carlstrom <bdc@google.com> Merge "Move LOG_ALWAYS_FATAL to end of app_process"
de6d1d889ebf15250c04a8ffc204b91af1e447e3 08-Oct-2010 Brian Carlstrom <bdc@google.com> Move LOG_ALWAYS_FATAL to end of app_process

Since LOG_ALWAYS_FATAL is always fatal and code after it is by
definition unreachable, put the call after other diagnostic output.

Change-Id: Ib3a515a04125d8e4f6e8af3a6f59226e8f0dd9cd
pp_process/app_main.cpp
10649792d6aadf06c567fbc6fae9f44877504ac0 07-Oct-2010 James Dong <jdong@google.com> Add two more options to "recordvideo" utility

o also removed unused code

Change-Id: I49471b0ac1cf70b5eedcde78a21e7770c312c5d6
tagefright/recordvideo.cpp
bba3b8efbe7dc9dd6fa326103ef7ddefc28d5ba5 05-Oct-2010 Mathias Agopian <mathias@google.com> am 19058877: Merge "refactored screenshot code" into gingerbread

Merge commit '19058877df9bf94f197a72855f810f7f6bf8d068' into gingerbread-plus-aosp

* commit '19058877df9bf94f197a72855f810f7f6bf8d068':
refactored screenshot code
9fa7926beaf6c7fe32159a7e41fae9f618ec7504 05-Oct-2010 Mathias Agopian <mathias@google.com> am b9aacfdf: Merge "new screencap command" into gingerbread

Merge commit 'b9aacfdfb014cc0299f7999d2a8940cd60a4cc59' into gingerbread-plus-aosp

* commit 'b9aacfdfb014cc0299f7999d2a8940cd60a4cc59':
new screencap command
597c7f67b5f2491c6098a1de241a3f0fd274688a 29-Sep-2010 Mathias Agopian <mathias@google.com> refactored screenshot code

the core screenshot function now can capture the screen at any lower resolution
performing bilinear filtering.

we also now have some client code to interface with the screenshot service.

it's now possible to request a screenshot at a lower resolution.

Change-Id: I33689bba98507ab928d0898b21596d0d2fe4b953
creencap/screencap.cpp
541d942000c338a15dc4b361b15b72864640d2bf 27-Sep-2010 Mathias Agopian <mathias@google.com> new screencap command

this captures the framebuffer via surfaceflinger APIs and outputs
it to stdout. this is intended to be used by adbd.

Change-Id: I057e331d28dd92bd45a2c7037ab93e220bbd65f3
creencap/Android.mk
creencap/screencap.cpp
82a1372070e75df1a0201b22e33514bbb0d7b5e5 02-Oct-2010 Chia-chi Yeh <chiachi@android.com> am a4f1eb3d: am 9430f9d3: Merge "KeyStore: Update the parameters of generating master keys." into gingerbread

Merge commit 'a4f1eb3d775533d9b28248022e0a5b4ec05fc2e4'

* commit 'a4f1eb3d775533d9b28248022e0a5b4ec05fc2e4':
KeyStore: Update the parameters of generating master keys.
a4f1eb3d775533d9b28248022e0a5b4ec05fc2e4 02-Oct-2010 Chia-chi Yeh <chiachi@android.com> am 9430f9d3: Merge "KeyStore: Update the parameters of generating master keys." into gingerbread

Merge commit '9430f9d37ec169ce0654bc8950adb66ac974b761' into gingerbread-plus-aosp

* commit '9430f9d37ec169ce0654bc8950adb66ac974b761':
KeyStore: Update the parameters of generating master keys.
9430f9d37ec169ce0654bc8950adb66ac974b761 02-Oct-2010 Chia-chi Yeh <chiachi@android.com> Merge "KeyStore: Update the parameters of generating master keys." into gingerbread
2a471bb690c20533ccf20246be968f77c867c467 01-Oct-2010 Mathias Agopian <mathias@google.com> Merge "refactored screenshot code"
e15119fee611997e71dd711cd476c9fd572d9853 01-Oct-2010 James Dong <jdong@google.com> Merge "Add a video record utility"
d1e5ddaf4d4ab5f34d3a94984b8f61477f1a00ce 01-Oct-2010 Fabrice Di Meglio <fdimeglio@google.com> am 797bb4f8: am 73db5f02: Merge "Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot be run again when device has no account setup)" into gingerbread

Merge commit '797bb4f83dfcaf263c72b760dfa279e3fbb8d545'

* commit '797bb4f83dfcaf263c72b760dfa279e3fbb8d545':
Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot be run again when device has no account setup)
797bb4f83dfcaf263c72b760dfa279e3fbb8d545 01-Oct-2010 Fabrice Di Meglio <fdimeglio@google.com> am 73db5f02: Merge "Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot be run again when device has no account setup)" into gingerbread

Merge commit '73db5f02a1e1a3fc3514ddbff1c28e22fec3aa7a' into gingerbread-plus-aosp

* commit '73db5f02a1e1a3fc3514ddbff1c28e22fec3aa7a':
Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot be run again when device has no account setup)
73db5f02a1e1a3fc3514ddbff1c28e22fec3aa7a 01-Oct-2010 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot be run again when device has no account setup)" into gingerbread
04686f428995fde3f6f5f5f12ccdd135f885ac84 01-Oct-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot be run again when device has no account setup)

- fix NPE
- code cleaning

Change-Id: Ieb30b666d995de8cbd27ee6d17e2178e7ea670f6
mgr/src/com/android/commands/bmgr/Bmgr.java
b5742452e07d608c0570ba0e1f453796bc30bd50 01-Oct-2010 James Dong <jdong@google.com> Add a video record utility

Change-Id: I3aa7cadf399aa319ee9ca3f391fd8599742bfb7e
tagefright/Android.mk
tagefright/recordvideo.cpp
281d114ce8b380cade7c0ee4f70c7b0fb1f66fb2 30-Sep-2010 Chia-chi Yeh <chiachi@android.com> am ab6327bc: am 20cb2310: Merge "KeyStore: Initialize IV correctly." into gingerbread

Merge commit 'ab6327bc9ab70f3b4c1f509d038474982772207e'

* commit 'ab6327bc9ab70f3b4c1f509d038474982772207e':
KeyStore: Initialize IV correctly.
59c1da63421c74bd386f20b9c88cc01ac611d4d0 30-Sep-2010 Chia-chi Yeh <chiachi@android.com> am 92cb1a02: am 2cbb56f9: Merge "KeyStore: Fix the return value when send() or recv() has an error." into gingerbread

Merge commit '92cb1a026a2d6c594a63c18d8906271147eed85b'

* commit '92cb1a026a2d6c594a63c18d8906271147eed85b':
KeyStore: Fix the return value when send() or recv() has an error.
2509976269fbd9fbd0ec3561e20fdfbd9b897a09 30-Sep-2010 Chia-chi Yeh <chiachi@android.com> KeyStore: Update the parameters of generating master keys.

To improve the security, the parameters to generate the master key has
been changed. Special cares has been taken to prevent from permanent
damages of the existing data during the transition process.

Change-Id: I0c93f3de28a9fcd314932675ccfb65a7f11fa3ff
eystore/keystore.c
ab6327bc9ab70f3b4c1f509d038474982772207e 30-Sep-2010 Chia-chi Yeh <chiachi@android.com> am 20cb2310: Merge "KeyStore: Initialize IV correctly." into gingerbread

Merge commit '20cb2310cffb787c54016d50b9b5fe320fc5b025' into gingerbread-plus-aosp

* commit '20cb2310cffb787c54016d50b9b5fe320fc5b025':
KeyStore: Initialize IV correctly.
92cb1a026a2d6c594a63c18d8906271147eed85b 30-Sep-2010 Chia-chi Yeh <chiachi@android.com> am 2cbb56f9: Merge "KeyStore: Fix the return value when send() or recv() has an error." into gingerbread

Merge commit '2cbb56f961e4893a3bf7ded560d4bdbf45eabd01' into gingerbread-plus-aosp

* commit '2cbb56f961e4893a3bf7ded560d4bdbf45eabd01':
KeyStore: Fix the return value when send() or recv() has an error.
463d75b842dac392ea246df6d710f850f75bd6a6 30-Sep-2010 Chia-chi Yeh <chiachi@android.com> KeyStore: Initialize IV correctly.

Change-Id: Idbf207dfcc11b92e606cbf4fd3732ed7a8aa3416
eystore/keystore.c
c741a2fe41ea33fc386a4d5b932cc081aa92a18c 30-Sep-2010 Chia-chi Yeh <chiachi@android.com> KeyStore: Fix the return value when send() or recv() has an error.

Change-Id: I20a63c76bd29b1a9f8959a6c4fe5a5b8a9a971b4
eystore/keystore_get.h
38ed2e39c54a42dda8f00620f960788f569a3698 29-Sep-2010 Mathias Agopian <mathias@google.com> refactored screenshot code

the core screenshot function now can capture the screen at any lower resolution
performing bilinear filtering.

we also now have some client code to interface with the screenshot service.

it's now possible to request a screenshot at a lower resolution.

Change-Id: I5a3b0e431421800e3aad601d9af8f94adffbc71f
creencap/screencap.cpp
1a3038586a3a46d0cdc487fea40ba4f7712d677d 28-Sep-2010 Andreas Huber <andih@google.com> am 9d591860: am 3a9cc8ce: Merge "Squashed commit of the following:" into gingerbread

Merge commit '9d59186068891834272c2e3ee6f9c4228af24656'

* commit '9d59186068891834272c2e3ee6f9c4228af24656':
Squashed commit of the following:
9d59186068891834272c2e3ee6f9c4228af24656 28-Sep-2010 Andreas Huber <andih@google.com> am 3a9cc8ce: Merge "Squashed commit of the following:" into gingerbread

Merge commit '3a9cc8cef49165d6b1a1eb37b15a0ae21b0042f7' into gingerbread-plus-aosp

* commit '3a9cc8cef49165d6b1a1eb37b15a0ae21b0042f7':
Squashed commit of the following:
3a9cc8cef49165d6b1a1eb37b15a0ae21b0042f7 28-Sep-2010 Andreas Huber <andih@google.com> Merge "Squashed commit of the following:" into gingerbread
a57afb6a6c9f4fb451535c3d6f49c3bdf4b59125 27-Sep-2010 Hung-ying Tyan <tyanh@google.com> resolved conflicts for merge of 2a36a778 to master

Change-Id: Ia70adeef06afddd29c827405fb5657bf9f5a29a3
2a36a778d384403cd92b1016ed5c860d3f2c3521 28-Sep-2010 Hung-ying Tyan <tyanh@google.com> am 68ef7f3c: Merge "Move SipService out of SystemServer to phone process." into gingerbread

Merge commit '68ef7f3c3a8deb0e14b0b6325876b23cecc191b3' into gingerbread-plus-aosp

* commit '68ef7f3c3a8deb0e14b0b6325876b23cecc191b3':
Move SipService out of SystemServer to phone process.
7e54ef71db3320a751571bba5259fba816399421 25-Sep-2010 Hung-ying Tyan <tyanh@google.com> Move SipService out of SystemServer to phone process.

Companion CL: https://android-git/g/#change,70187
http://b/issue?id=2998069

Change-Id: I90923ac522ef363a4e04292f652d413c5a1526ad
ervicemanager/service_manager.c
c751eccad38cf46d7478eca85beefecd2c2b4c3b 27-Sep-2010 Andreas Huber <andih@google.com> Squashed commit of the following:

commit 29a4d3effb05a2e074cb0693316ab1977baeb0b6
Author: Andreas Huber <andih@google.com>
Date: Mon Sep 27 12:01:32 2010 -0700

Fully working implementation of MPEG2TSWriter (for AAC and AVC sources).

Change-Id: I8a32a47565b647bf6c078c520e39565e08ea0d84

commit f4dec4c3899f3be393508e180d6c07e249d3335e
Author: Andreas Huber <andih@google.com>
Date: Mon Sep 27 10:36:31 2010 -0700

More reliable identification of MPEG2 transport streams. Don't keep scanning forever in case the stream does not have both audio and video tracks.

Change-Id: Icc5b4e8be145b2805e8776559546a6818342aea7

commit 4fe3cc942f9b3d3cf54138b828c41214aa916dd2
Author: Andreas Huber <andih@google.com>
Date: Mon Sep 27 08:23:39 2010 -0700

test code

Change-Id: I16560a17661407d06497f99ff88230724bb898af

commit 64d988b24f49f179a90fa677be11c823959e734b
Author: Andreas Huber <andih@google.com>
Date: Thu Sep 23 14:42:52 2010 -0700

First shot at supporting writing to an MPEG2 transport stream.

Change-Id: Ie537939a99fa3ddc0c7661c47c18277584817c74

Change-Id: If78fd034af8f6e8ceac8dbeff96d5ecb3f6b96dc
tagefright/stagefright.cpp
88a5df93668cb2079d10fd55de25a333f5f43842 27-Sep-2010 Mathias Agopian <mathias@google.com> new screencap command

this captures the framebuffer via surfaceflinger APIs and outputs
it to stdout. this is intended to be used by adbd.

Change-Id: I0cfa6a47ec121edcd93f46b64870f9a553f653ff
creencap/Android.mk
creencap/screencap.cpp
405e012681aa563b1d7b66c671c90ed2deb26e41 25-Sep-2010 Dianne Hackborn <hackbod@google.com> am deaa8ff1: am a7ef18fc: Merge "Some debugging support." into gingerbread

Merge commit 'deaa8ff1b10d38add4f7c276e7be2ffc19359a14'

* commit 'deaa8ff1b10d38add4f7c276e7be2ffc19359a14':
Some debugging support.
deaa8ff1b10d38add4f7c276e7be2ffc19359a14 25-Sep-2010 Dianne Hackborn <hackbod@google.com> am a7ef18fc: Merge "Some debugging support." into gingerbread

Merge commit 'a7ef18fca50d0db99a161d8c7e2d8979f0445503' into gingerbread-plus-aosp

* commit 'a7ef18fca50d0db99a161d8c7e2d8979f0445503':
Some debugging support.
0b783bc2e4ea2454fda4107d559eefee36b19623 25-Sep-2010 Andreas Huber <andih@google.com> am a1c7b096: am 6d8fae72: Merge "Instead of just writing one track to the .mp4 file, write all of them (at most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool." into gingerbread

Merge commit 'a1c7b096dfadc9ba7ee2ef432569eb3180f9bf34'

* commit 'a1c7b096dfadc9ba7ee2ef432569eb3180f9bf34':
Instead of just writing one track to the .mp4 file, write all of them (at most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool.
f123e49bf0708719b51a7064ae134c097abe4a54 24-Sep-2010 Dianne Hackborn <hackbod@google.com> Some debugging support.

- New feature to "am monitor" to have it automatically launch
gdbserv for you when a crash/ANR happens, and tell you how to
run the client.

- Update dumpstate to match new location of binder debug logs

- Various commented out logs that are being used to track down
issues.

Change-Id: Ia5dd0cd2df983a1fc6be697642a4590aa02a26a5
m/src/com/android/commands/am/Am.java
umpstate/dumpstate.c
a1c7b096dfadc9ba7ee2ef432569eb3180f9bf34 24-Sep-2010 Andreas Huber <andih@google.com> am 6d8fae72: Merge "Instead of just writing one track to the .mp4 file, write all of them (at most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool." into gingerbread

Merge commit '6d8fae722cfb2833dd542b2a5e613582a9096fc6' into gingerbread-plus-aosp

* commit '6d8fae722cfb2833dd542b2a5e613582a9096fc6':
Instead of just writing one track to the .mp4 file, write all of them (at most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool.
3ac01190a73040dab6f23313adfbe2a2a16e19f1 24-Sep-2010 Andreas Huber <andih@google.com> Instead of just writing one track to the .mp4 file, write all of them (at most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool.

Change-Id: I67b287cf76546191f398939aabe4480d9e79a948
tagefright/stagefright.cpp
9aa1b24b41f41d863c7c77ab1c47c628ce581281 24-Sep-2010 Andreas Huber <andih@google.com> am 19fe783d: am 37155854: Merge "Proper sync-frame detection for sources that don\'t already provide it." into gingerbread

Merge commit '19fe783d83b10ecfae3494f7b1ceff9584ad3839'

* commit '19fe783d83b10ecfae3494f7b1ceff9584ad3839':
Proper sync-frame detection for sources that don't already provide it.
19fe783d83b10ecfae3494f7b1ceff9584ad3839 24-Sep-2010 Andreas Huber <andih@google.com> am 37155854: Merge "Proper sync-frame detection for sources that don\'t already provide it." into gingerbread

Merge commit '37155854b4d9ca405e5c41c4ab271006a4716193' into gingerbread-plus-aosp

* commit '37155854b4d9ca405e5c41c4ab271006a4716193':
Proper sync-frame detection for sources that don't already provide it.
37155854b4d9ca405e5c41c4ab271006a4716193 24-Sep-2010 Andreas Huber <andih@google.com> Merge "Proper sync-frame detection for sources that don't already provide it." into gingerbread
846df9f5171c4ef32f038cca651b6b9c0b6c3083 24-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 8952a448 to master

Change-Id: I9c752a5d10ae8d8e5ead1243b6abd4795204fc0b
8952a4488e81205e3013b6b456dec503e05eebd0 24-Sep-2010 Dianne Hackborn <hackbod@google.com> am 287952c3: Fix issue #3022508: Crash during media scan

Merge commit '287952c35e148811c106bc0f5036eabf20f71562' into gingerbread-plus-aosp

* commit '287952c35e148811c106bc0f5036eabf20f71562':
Fix issue #3022508: Crash during media scan
287952c35e148811c106bc0f5036eabf20f71562 23-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3022508: Crash during media scan

Don't kill processes for excessive wake lock use, even if they
are in the background, as long as they have running services.

Also fix some problems with this, such as not noting the kill
in battery stats.

And add killing of processes for cpu usage as well, along with
some optimizations to computing CPU usage.

And fix BatteryWaster to be better behaving for testing these
cases.

Add new "monitor" command to am to watch as the activity manager
does stuff (so we can catch things at the point of ANR).

Finally some miscellaneous debug output for the stuff here, as
well as in progress debugging of an ANR.

Change-Id: Ib32f55ca50fb7486b4be4eb5e695f8f60c882cd1
m/src/com/android/commands/am/Am.java
b51852709c8b449ec414637cadd3d5207199819e 24-Sep-2010 Andreas Huber <andih@google.com> Proper sync-frame detection for sources that don't already provide it.

Change-Id: Iafeee847b015c5cf6bec6dd5fac22a8d3e8cb78e
tagefright/stagefright.cpp
5e64700bf7f53127d6dcf2e6207630c6fd161f8a 21-Sep-2010 James Dong <jdong@google.com> am 7e8a16e8: am d3c9fce3: Merge "Allow record to set input color format as a command line option" into gingerbread

Merge commit '7e8a16e884632c85a54dc351c0b4f79aea116237'

* commit '7e8a16e884632c85a54dc351c0b4f79aea116237':
Allow record to set input color format as a command line option
7e8a16e884632c85a54dc351c0b4f79aea116237 21-Sep-2010 James Dong <jdong@google.com> am d3c9fce3: Merge "Allow record to set input color format as a command line option" into gingerbread

Merge commit 'd3c9fce36caa3991b2bc035ab80f92e110b0c0b3' into gingerbread-plus-aosp

* commit 'd3c9fce36caa3991b2bc035ab80f92e110b0c0b3':
Allow record to set input color format as a command line option
2749c177c2485dc543533b8d0a0801abbe72e68f 19-Sep-2010 James Dong <jdong@google.com> Allow record to set input color format as a command line option

o Only YUV420SP and YUV420P are supported

Change-Id: I425e8b29d9dca8c05066c1cd777f8bdede52964a
tagefright/record.cpp
58fc6e51ad887bfd2124efd41f9f1584e07f4422 17-Sep-2010 Andreas Huber <andih@google.com> am 23c6ad7a: am 549629d3: Merge "Make sure stagefright -o terminates even if we\'re using a raw audio source (such as .wav pcm)" into gingerbread

Merge commit '23c6ad7aedecb5bc4be9ed61c2550c43715b47b0'

* commit '23c6ad7aedecb5bc4be9ed61c2550c43715b47b0':
Make sure stagefright -o terminates even if we're using a raw audio source (such as .wav pcm)
23c6ad7aedecb5bc4be9ed61c2550c43715b47b0 17-Sep-2010 Andreas Huber <andih@google.com> am 549629d3: Merge "Make sure stagefright -o terminates even if we\'re using a raw audio source (such as .wav pcm)" into gingerbread

Merge commit '549629d36690ac09498d0a9b2aac4ae4ceb7eead' into gingerbread-plus-aosp

* commit '549629d36690ac09498d0a9b2aac4ae4ceb7eead':
Make sure stagefright -o terminates even if we're using a raw audio source (such as .wav pcm)
6bfb397dff1663e2ea5b65ecc37080e3f31cb546 16-Sep-2010 Andreas Huber <andih@google.com> Make sure stagefright -o terminates even if we're using a raw audio source (such as .wav pcm)

Change-Id: Iec809df89e6b75706cf5b1ce21006c2e217e018f
tagefright/stagefright.cpp
e746f03c6c8b8d0897d322ab524d545ace200fcd 14-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 53686433 to master

Change-Id: I27004dc464f5771d3205ae5757c6eccc5b16854d
53686433a9790bcfe7211a661b26783ee12bb436 13-Sep-2010 Dianne Hackborn <hackbod@google.com> am 7e9f4eb2: Track client requests through location manager.

Merge commit '7e9f4eb2608148436cef36c9969bf8a599b39e72' into gingerbread-plus-aosp

* commit '7e9f4eb2608148436cef36c9969bf8a599b39e72':
Track client requests through location manager.
7e9f4eb2608148436cef36c9969bf8a599b39e72 11-Sep-2010 Dianne Hackborn <hackbod@google.com> Track client requests through location manager.

This fixes a problem where applications could ask the location
manager to do very heavy-weight things (like... say... update
location every minute), which would get accounted against the
system instead of the application because ultimately it is the
system making the heavy calls (wake locks, etc).

To solve this, we introduce a new class WorkSource representing
the source of some work. Wake locks and Wifi locks allow you
to set the source to use (but only if you are system code and thus
can get the permission to do so), which is what will be reported
to the battery stats until the actual caller.

For the initial implementation, the location manager keeps track
of all clients requesting periodic updates, and tells its providers
about them as a WorkSource param when setting their min update time.
The network location provider uses this to set the source on the
wake and wifi locks it acquires, when doing work because of the
update period.

This should also be used elsewhere, such as in the GPS provider,
but this is a good start.

Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf
vc/src/com/android/commands/svc/PowerCommand.java
3d6b009db124615a09e2c6dcf25bf8352f6aaca9 10-Sep-2010 Jean-Baptiste Queru <jbq@google.com> am 09f1e2b2: resolved conflicts for merge of 56aa3c76 to gingerbread-plus-aosp

Merge commit '09f1e2b2151ea18c05b9138a0a5cb63af18ea373'

* commit '09f1e2b2151ea18c05b9138a0a5cb63af18ea373':
Initial contribution from Sony Corporation.
09f1e2b2151ea18c05b9138a0a5cb63af18ea373 10-Sep-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 56aa3c76 to gingerbread-plus-aosp

Change-Id: I3d36a665f93f976824592edf35f6d6a205cc7617
f6aea42aff7947e3fc55e43f018b112484f4f2de 08-Sep-2010 Jack Veenstra <veenstra@google.com> Merge "Add support for giving arrays of ints and longs to the "am" command."
2d1b7a22390a355aa079473810e2b9914af88274 08-Sep-2010 Jack Veenstra <veenstra@google.com> Add support for giving arrays of ints and longs to the "am" command.

Change-Id: Ibc4ae63fb5f8025a847bec7d37a1fce5abd81b39
m/src/com/android/commands/am/Am.java
7dea769319701f4e883fc448507967b806b9b245 08-Sep-2010 Kenny Root <kroot@google.com> am 000ef46f: am 25429378: Merge "Allow installd to handle large partitions" into gingerbread

Merge commit '000ef46f5b0f84d08342711b00e8de560ea504af'

* commit '000ef46f5b0f84d08342711b00e8de560ea504af':
Allow installd to handle large partitions
000ef46f5b0f84d08342711b00e8de560ea504af 08-Sep-2010 Kenny Root <kroot@google.com> am 25429378: Merge "Allow installd to handle large partitions" into gingerbread

Merge commit '254293782a94652fd601d6b3f04ad447c072f714' into gingerbread-plus-aosp

* commit '254293782a94652fd601d6b3f04ad447c072f714':
Allow installd to handle large partitions
3e319a9962434e1fae86b2180ad210170f02c152 07-Sep-2010 Kenny Root <kroot@google.com> Allow installd to handle large partitions

Use int64_t because we're RPCing over to Java which uses a Long to
represent the filesystem space.

Change-Id: I842b2cf9f2ff8f980ff5895c1c8eb9ebefa1ea31
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
2cb3e29e823de1130c7649c0c515485917ab188c 04-Sep-2010 Joe Malin <jmalin@google.com> Merge "Doc Change:ActivityManager usage doc:running test package"
b6e19a23ebc48ff1fd11f1a62bd56a6c6cbfd7fe 04-Sep-2010 Joe Malin <jmalin@google.com> Merge "Doc change: Update pm command usage for test packages"
b089a09764aebfdae824fd22ec77190c0ee62dcf 02-Sep-2010 Nick Kralevich <nnk@google.com> am b4de2f99: am 05f0382b: When dropping privileges, check return values.

Merge commit 'b4de2f997591d3ee5f1eff92fbf2d4628cee5f2c'

* commit 'b4de2f997591d3ee5f1eff92fbf2d4628cee5f2c':
When dropping privileges, check return values.
5500c4f0a18e8c68da2c17439f2a8f6456b7712f 02-Sep-2010 Dmitry Shmidt <dimitrysh@google.com> bugreport: bcm4329: Add Wifi state dump

Change-Id: I00a448bd44f3f5ca76948acad12ba20be794f3bd
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate/dumpstate.c
b4de2f997591d3ee5f1eff92fbf2d4628cee5f2c 01-Sep-2010 Nick Kralevich <nnk@google.com> am 05f0382b: When dropping privileges, check return values.

Merge commit '05f0382bcf11d96760ee8cf9110099a1661eed7c' into gingerbread-plus-aosp

* commit '05f0382bcf11d96760ee8cf9110099a1661eed7c':
When dropping privileges, check return values.
05f0382bcf11d96760ee8cf9110099a1661eed7c 01-Sep-2010 Nick Kralevich <nnk@google.com> When dropping privileges, check return values.

setuid() and family can fail. Check return values to make
sure this doesn't happen unexpectedly.

Also call setgid() to drop root group permissions.

Change-Id: Id06fbe6239e2ed2fe23368695e333514e0581e6d
umpstate/dumpstate.c
d074e30ce44b9e33da43b67a4515b8986ca72b26 29-Jul-2010 aimitakeshi <aimitakeshi@gmail.com> Initial contribution from Sony Corporation.

Add DRM Framework to support DRM content playback
together with StageFright.

- DRM Framework code is added
- include/drm
- drm
- api/current.xml is updated to include DRM Framework Java APIs
- cmds/servicemanager/service_manager.c is modified
to add drmManager and drmIOService.

Change-Id: I6d7bc9c7067362b500e530988a9ce241761866fb
ervicemanager/service_manager.c
babe28e01c6e845e41f8a7d23ab0b2a2c93a2e6b 31-Aug-2010 Joe Malin <jmalin@google.com> Doc change: Update pm command usage for test packages

Change-Id: If9c51e0265394538023a913fa271dfb80f14a92e
m/src/com/android/commands/pm/Pm.java
f827a0cf1d42e3f69050c2888221e901d7f80330 31-Aug-2010 James Dong <jdong@google.com> am aa40b834: am 6aacad66: Merge "Add some encoding parameters for the "record" utility" into gingerbread

Merge commit 'aa40b834985023642b30fa2e0563c414a994bd3a'

* commit 'aa40b834985023642b30fa2e0563c414a994bd3a':
Add some encoding parameters for the "record" utility
aa40b834985023642b30fa2e0563c414a994bd3a 31-Aug-2010 James Dong <jdong@google.com> am 6aacad66: Merge "Add some encoding parameters for the "record" utility" into gingerbread

Merge commit '6aacad66eba2b51251f7e2dfb8c005b5242326ca' into gingerbread-plus-aosp

* commit '6aacad66eba2b51251f7e2dfb8c005b5242326ca':
Add some encoding parameters for the "record" utility
d31c89f45cb653f302579af3c1614cd124275bf3 31-Aug-2010 James Dong <jdong@google.com> Add some encoding parameters for the "record" utility

- TODO: remove some of the hard coded values

Change-Id: Ib58bbb8af45fd102176ac49da0a71613a12fa5fc
tagefright/record.cpp
f9b5eed81d690ab8f336cb3345b46a36e278f180 30-Aug-2010 Joe Malin <jmalin@google.com> Doc Change:ActivityManager usage doc:running test package

Change-Id: I9a0c28e59f87e30c81d18162bee082b851d07a94
m/src/com/android/commands/am/Am.java
e9ddcba348ee45fe000d84efaad98484db032926 20-Aug-2010 Daniel Sandler <dsandler@google.com> screenshot command: sound effect, filename incrementing

Change-Id: I0302cda9791f14c23936dbdcce8a70711f65e07d
creenshot/screenshot.c
6a69b4fbaee9a8251401453cd2d3509d52f5b91c 25-Aug-2010 Makoto Onuki <omakoto@google.com> Add --el option to am for long extras.

Change-Id: I13b92284fa4e0765620552b7d9b08d7441254389
m/src/com/android/commands/am/Am.java
27e1a79bf7622f43803ca7e4635b1ac90b44b9bd 27-Jul-2010 Daniel Sandler <dsandler@google.com> On-device screenshot support.

This comes in the form of a command, `screenshot`, which
will read /dev/graphics/fb0 (in a manner very similar to
adb's framebuffer_service) and write to the specified PNG
file.

Additionally, dumpstate now accepts a -p flag (mnemonic:
"picture" or "png") that, when specified, will cause a
screenshot to be captured in the same directory as the
bugreport.

Future work: invoke `dumpstate -p` when the bugreport
keychord is pressed, giving users a convenient way to attach
screenshots to bug reports (or simply take screenshots at
all without developer tools).

Bug: 2216571 (and probably plenty of others)
Change-Id: I36afbc55a0308a7bc01112ef39c4c62777efb203
umpstate/dumpstate.c
creenshot/Android.mk
creenshot/screenshot.c
7b750542d68773c0df12ec747af292d458b59f45 13-Aug-2010 Daniel Sandler <dsandler@google.com> Fix incorrect usage text for am.

Change-Id: I95afb3bd02ce23bb8d0797ec4c33e27a9530988e
m/src/com/android/commands/am/Am.java
c4a4f26778d4d637aa32bee0e75566f586891a00 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 18dd95f4: am 05b20c03: Merge "bootanimation: Don\'t open non-existing bootanimation.zip"

Merge commit '18dd95f451f866804d19797bc47ab5a2821c0020'

* commit '18dd95f451f866804d19797bc47ab5a2821c0020':
bootanimation: Don't open non-existing bootanimation.zip
18dd95f451f866804d19797bc47ab5a2821c0020 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 05b20c03: Merge "bootanimation: Don\'t open non-existing bootanimation.zip"

Merge commit '05b20c034d5a1ffe64c15d155dd8511b77b8989b' into gingerbread-plus-aosp

* commit '05b20c034d5a1ffe64c15d155dd8511b77b8989b':
bootanimation: Don't open non-existing bootanimation.zip
c11f46259a1e8f4e7e58925aefd1ed9eaf57a7fc 09-Aug-2010 Jim Huang <jserv@0xlab.org> bootanimation: Don't open non-existing bootanimation.zip

While booting from AOSP image, logcat always complains as following:
W/zipro ( 1001): Unable to open zip '/data/local/bootanimation.zip':
No such file or directory
W/zipro ( 1001): Unable to open zip '/system/media/bootanimation.zip':
No such file or directory

This patch avoids opening non-existing files.

Change-Id: I54cc03f125a5e16dbc930515bd2e43c623b63f8f
ootanimation/BootAnimation.cpp
bfb071df71af73c4d6804349d1453627db6b4661 06-Aug-2010 Paul Eastham <eastham@google.com> Add support for playing a sound before/after dumpstate.
umpstate/dumpstate.c
umpstate/dumpstate.h
umpstate/utils.c
0645f9699c2bf6b636e87711b7beebdc0eb955e6 05-Aug-2010 Kenny Root <kroot@google.com> am 1cd6340a: am 50871525: Add more debugging to installd

Merge commit '1cd6340a72d81c81630d6374ed46211497520897'

* commit '1cd6340a72d81c81630d6374ed46211497520897':
Add more debugging to installd
508715259c332613240b2399c77d35ea7214f91a 04-Aug-2010 Kenny Root <kroot@google.com> Add more debugging to installd

If a command to installd fails, it would be nice to know exactly why.
Log failures and the errno associated with the failures.

Change-Id: Ia3122675f243037c556d3a49d06da7e03b8c59f6
nstalld/commands.c
nstalld/utils.c
6d6b749b24fccfbbab41567fcf1eba1f14f5ad21 23-Jul-2010 Mathias Agopian <mathias@google.com> move native services under services/

moved surfaceflinger, audioflinger, cameraservice

all native services should now reside in this location.

Change-Id: Icd7336f7289db35df9c8c1857a5122bb8a6f1c86
urfaceflinger/Android.mk
ystem_server/library/Android.mk
8dac3bf922de433bc7d08c9968dfc5087de34b86 22-Jul-2010 Andreas Huber <andih@google.com> am b72d3180: am 81046c8c: Merge "Various changes to improve rtsp networking, reduce packet loss and adapt to ALooper API changes." into gingerbread

Merge commit 'b72d3180dc8d41d6269664bea808b04410bbe40f'

* commit 'b72d3180dc8d41d6269664bea808b04410bbe40f':
Various changes to improve rtsp networking, reduce packet loss and adapt to ALooper API changes.
81046c8c42ff3b630c6496deafd44f2a07a25463 22-Jul-2010 Andreas Huber <andih@google.com> Merge "Various changes to improve rtsp networking, reduce packet loss and adapt to ALooper API changes." into gingerbread
4e4173b0af52bdf2b5730a5837476e400c5b2040 22-Jul-2010 Andreas Huber <andih@google.com> Various changes to improve rtsp networking, reduce packet loss and adapt to ALooper API changes.

Change-Id: I110e19d5ce33e597add3ffbd3e3ff3815862396d
tagefright/stagefright.cpp
50558b956157dad980441bf4fb44931ce834e36b 22-Jul-2010 Mathias Agopian <mathias@google.com> resolved conflicts for merge of bc54e63c to master

Change-Id: I4245b15b4cda6963d735442c0c6a04a0477ff5e1
e4764521353e898554931a557460fc49209fb0a9 22-Jul-2010 Mathias Agopian <mathias@google.com> Merge "new SensorService" into gingerbread
c02666346261906b994573ff33369dff8ed4f088 21-Jul-2010 Andreas Huber <andih@google.com> am f0d87989: am ff0ab64c: Merge "Add a seek test to the stagefright commandline tool." into gingerbread

Merge commit 'f0d87989931757cdc50524d282fc151ef88eeafe'

* commit 'f0d87989931757cdc50524d282fc151ef88eeafe':
Add a seek test to the stagefright commandline tool.
5850a482387f28c306fa06a79b75115c852508fb 21-Jul-2010 Andreas Huber <andih@google.com> Add a seek test to the stagefright commandline tool.

Change-Id: Ibf3517afa288fc4c7e2184c11bc7a63594f321df
tagefright/stagefright.cpp
1bf797857e025e8a71db86fb9e79765a767ec1eb 15-Jul-2010 Mathias Agopian <mathias@google.com> new SensorService

remove old sensor service and implement SensorManager
on top of the new (native) SensorManger API.

Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
ystem_server/library/Android.mk
ystem_server/library/system_init.cpp
53459436ed17f46d695d061b08e952a00d679ae6 15-Jul-2010 Mathias Agopian <mathias@google.com> am c74034b6: am 24651682: added BinderService<> template to help creating native binder services

Merge commit 'c74034b6bf0940dc80c4d4efa1e677ad0d2dfd6c'

* commit 'c74034b6bf0940dc80c4d4efa1e677ad0d2dfd6c':
added BinderService<> template to help creating native binder services
0779682a490f12f102cd0cf1e768e3c68cfdc512 15-Jul-2010 Mathias Agopian <mathias@google.com> am 78983a91: am 4055b780: Merge "move native services under services/" into gingerbread

Merge commit '78983a9133d3dd3f08b1ec462a7e2f9e7bfa9e2f'

* commit '78983a9133d3dd3f08b1ec462a7e2f9e7bfa9e2f':
move native services under services/
24651682edaf71e8a826f23a7ea09bc97c8072c4 15-Jul-2010 Mathias Agopian <mathias@google.com> added BinderService<> template to help creating native binder services

Change-Id: Id980899d2647b56479f8a27c89eaa949f9209dfe
urfaceflinger/main_surfaceflinger.cpp
08e83bb3b7cc41f603867acbeb1168019cf535fe 15-Jul-2010 Mathias Agopian <mathias@google.com> move native services under services/

moved surfaceflinger, audioflinger, cameraservice

all native services should now reside in this location.

Change-Id: Iee42b83dd2a94c3bf5107ab0895fe2dfcd5337a8
urfaceflinger/Android.mk
ystem_server/library/Android.mk
824c510752fd6a30cdba5ed7324cb80a5043ce26 10-Jul-2010 Andy McFadden <fadden@android.com> Allow "am" to initiate heap dumps.

This was mostly cloned from the "am profile" implementation. It's
intended to replace the old "kill -10" approach used by "runhat".

We could really use a native heap dump, so I pass a "managed"
flag through that indicates whether we want to dump the native or
managed heap. We don't currently have a native heap dump-to-file
function, so it currently just logs a warning.

(android.ddm.DdmHandleNativeHeap.getLeakInfo is a good start -- it
copies /proc/maps and then calls get_malloc_leak_info to get some
goodies. Needs some formatting to make it human-readable. I didn't
want to cram all that into this change.)

It would be useful if "am" didn't exit until the heap dump operation
completed, but I'm not sure how to do that.

Bug 2759474.

Change-Id: I46bc98067738d8c72ac0fc10002ca67bb4929271
m/src/com/android/commands/am/Am.java
2d3dcac183da7601664a8f7245b1348de9658b00 01-Jul-2010 Andreas Huber <andih@google.com> am d51c2cac: am 45bac57a: Support for writing the extracted data to an .mp4 file in the stagefright commandline tool.

Merge commit 'd51c2cacce4ad945bea4c00cea4326cf76b49cd2'

* commit 'd51c2cacce4ad945bea4c00cea4326cf76b49cd2':
Support for writing the extracted data to an .mp4 file in the stagefright commandline tool.
45bac57aa00281e6b45756c691c588bdaf762521 01-Jul-2010 Andreas Huber <andih@google.com> Support for writing the extracted data to an .mp4 file in the stagefright commandline tool.

Change-Id: I972324a8fc9757e6e8116b0270ec0882106f8733
tagefright/Android.mk
tagefright/stagefright.cpp
15149f2ef8609899f187b691054194ec50b9a0ee 24-Jun-2010 Andreas Huber <andih@google.com> am 0d964c94: am a2549bb6: Merge "Remove most stagefright property overrides, remove VorbisPlayer and VorbisMetadataRetriever as this functionality is now provided by stagefright." into gingerbread

Merge commit '0d964c94459e25b9b2221a7c7c789b29f77f15dd'

* commit '0d964c94459e25b9b2221a7c7c789b29f77f15dd':
Remove most stagefright property overrides, remove VorbisPlayer and VorbisMetadataRetriever as this functionality is now provided by stagefright.
8d65dd26530c7559082bd738cf930e2806158ab2 24-Jun-2010 Andreas Huber <andih@google.com> Remove most stagefright property overrides, remove VorbisPlayer and VorbisMetadataRetriever as this functionality is now provided by stagefright.

Change-Id: Ieafe75a4550c273ad59b4518d7cd4c0fce0f7cce
related-to-bug: 2370115
tagefright/Android.mk
c450cd0db67efb6160c2f4c51b83768b445f5d19 23-Jun-2010 Andreas Huber <andih@google.com> am 235073a5: am 8a42f881: Merge "Make sure sine: is supported again in stagefright commandline tool." into gingerbread

Merge commit '235073a549ec664caea93e0ccded95e4a6819b6b'

* commit '235073a549ec664caea93e0ccded95e4a6819b6b':
Make sure sine: is supported again in stagefright commandline tool.
fc94e89a7f7aadf101ac1144073be964d9bfcf6b 23-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> am efcf68aa: am ef8f96a7: Merge "Start of work on passing around StrictMode policy over Binder calls." into gingerbread

Merge commit 'efcf68aa1fd7fcfd52cf3d2837ed8db8e797194b'

* commit 'efcf68aa1fd7fcfd52cf3d2837ed8db8e797194b':
Start of work on passing around StrictMode policy over Binder calls.
8a42f8817de0fc178059bfb1288732d2de65259d 22-Jun-2010 Andreas Huber <andih@google.com> Merge "Make sure sine: is supported again in stagefright commandline tool." into gingerbread
14e5758bc35cf1cfb35bf9ec58dd2e435b224fc2 21-Jun-2010 Andreas Huber <andih@google.com> Make sure sine: is supported again in stagefright commandline tool.

Change-Id: I703f1a8b7556543ef71b141dc8e38d8b82d8c6dc
tagefright/stagefright.cpp
27b3a7a75960d026655f3acd1de8a672e80a5776 18-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> Start of work on passing around StrictMode policy over Binder calls.

This is (intendend to be) a no-op change.

At this stage, Binder RPCs just have an additional uint32 passed around
in the header, right before the interface name. But nothing is actually
done with them yet. That value should right now always be 0.

This now boots and seems to work.

Change-Id: I135b7c84f07575e6b9717fef2424d301a450df7b
ervicemanager/bctest.c
ervicemanager/service_manager.c
535c17a747adbf4540c47af599427ed705e609ef 18-Jun-2010 Chia-chi Yeh <chiachi@android.com> Revert "Don't chdir into the keystore directory"

The same functionality can be achieved by running "stop keystore".
This reverts commit 831c6cc7c1cfcf1271c75dc960948ab6ce720b67.
eystore/keystore.c
831c6cc7c1cfcf1271c75dc960948ab6ce720b67 18-Jun-2010 Colin Cross <ccross@android.com> Don't chdir into the keystore directory

If the keystore daemon chdir's into /data/misc/keystore, /data can
never be unmounted. During bringup, it's helpful if we can umount
/data and reformat it.

Change-Id: Id5b93ee8a54846fd07e6e0e57bfd0a6fabf603ee
eystore/keystore.c
45013ecaf9d5411adde65d7c5d1f38875d5fe7a6 11-Jun-2010 Andreas Huber <andih@google.com> am 32d8b25f: am a6ef19a8: Merge "Simplify the code in the stagefright commandline utility." into kraken
c0668843d31b279b4e9ea40d1aaf2c2d1afbe7f5 10-Jun-2010 Andreas Huber <andih@google.com> Simplify the code in the stagefright commandline utility.

Change-Id: Ia222b25ef12af34f6434421fd96b67eca800d1ab
tagefright/Android.mk
tagefright/stagefright.cpp
ed3939fef053d7dc739314cf6a044125f7006e80 09-Jun-2010 Christopher Tate <ctate@google.com> am 7e8566a6: am d7f659e8: Merge "Fail gracefully if the user fails to supply necessary args to bmgr" into kraken
7e76ff1c409bc22e89ed09ef90161164dae40838 09-Jun-2010 Christopher Tate <ctate@google.com> Fail gracefully if the user fails to supply necessary args to bmgr

Fixes bug #2755355

Change-Id: I4690756bb5077a6b4bbbfb232cd852cad43cef77
mgr/src/com/android/commands/bmgr/Bmgr.java
bd69e1b8518ccae73719c1a185a4312a910a6206 02-Jun-2010 Mathias Agopian <mathias@google.com> am 5220af87: am 770492cb: more clean-up in preparation of bigger changes
770492cb2b19f6a36ad748cd05fbedfbb9a67dfa 28-May-2010 Mathias Agopian <mathias@google.com> more clean-up in preparation of bigger changes

the most important change here is the renaming of
ISurfaceFlingerClient to ISurfaceComposerClient

Change-Id: I94e18b0417f50e06f21377446639c61f65f959b3
ootanimation/BootAnimation.cpp
631e0f163abbec84b755706eca8e9ede2cf0e41a 26-May-2010 Dmitry Shmidt <dimitrysh@google.com> bugreport: wifi: Add list of networks

Change-Id: I0271bf1f2cac874c1801658a81a3dcf7533da781
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate/dumpstate.c
4979601f88154bdeda4cc5277940771ba6597c0f 22-Apr-2010 Andreas Huber <andih@google.com> Make the -o option actually terminate.

Change-Id: I91b70ee5c3e1fc9b8bb645e219af296867692e65
tagefright/stagefright.cpp
c6a16327328cf04066ce948c3fbad34fdf1fbff4 20-May-2010 Andreas Huber <andih@google.com> am 3c16154a: am 2723e092: Merge "Better handling of codec initialization failure in the player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize." into froyo

Merge commit '3c16154a3309fe250177d69f3fcd5b6e9a82d1b3' into kraken

* commit '3c16154a3309fe250177d69f3fcd5b6e9a82d1b3':
Better handling of codec initialization failure in the player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize.
3c16154a3309fe250177d69f3fcd5b6e9a82d1b3 20-May-2010 Andreas Huber <andih@google.com> am 2723e092: Merge "Better handling of codec initialization failure in the player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize." into froyo

Merge commit '2723e09229ce916724861ab90b6b8fc7c9ea9f2e' into froyo-plus-aosp

* commit '2723e09229ce916724861ab90b6b8fc7c9ea9f2e':
Better handling of codec initialization failure in the player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize.
1919e5af3d8eb8bcf08e50efae2e79eaf065cf6b 20-May-2010 Andreas Huber <andih@google.com> Better handling of codec initialization failure in the player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize.

Change-Id: I5cba02ee85a41e43c2623053de40f26e2cf2efe4
related-to-bug: 2699505
tagefright/stagefright.cpp
627356cee467fad0335b2bc8cc058a3784f0bf63 19-May-2010 The Android Open Source Project <initial-contribution@android.com> am d6c0bb0f: merge from open-source master

Merge commit 'd6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa' into kraken

* commit 'd6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa':
Removed Calls to deprecated APIs
d6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa 19-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I0598edad283a177a5ddcc30e20d2284503e6038e
f1f9fcdbe961fdc8e71604d7a90983f7c7036127 15-Apr-2010 Guang Zhu <guangzhu@google.com> add execution permission to "input" script (DO NOT MERGE)

Although when building system image, "input" script will be given execution
permission, adb sync will push a version without x onto device from build
tree. Refer to frameworks/base/cmds/svc/svc, which has execution bit set.

Change-Id: Ie82df2f0d3150c3df9498399f2c446f07ea89ca5
nput/input
746a95ab7145a1c7583d1f2d6004a508cd7a31dc 17-May-2010 Christian Mehlmauer <FireFart@gmail.com> Removed Calls to deprecated APIs

Change-Id: I3f9b6a8d3c8a050156a6cc7ea0eb9de33b82f79a
m/src/com/android/commands/am/Am.java
c65ede9bf1500b8b0920703bc76aba661d513f3a 27-Apr-2010 San Mehat <san@google.com> am bd535646: am 57fff78a: dumpstate: Add blocked process wait-channel info to bugreport

Merge commit 'bd5356468a5e6823fe4dce040ee75fbef66488dc' into kraken

* commit 'bd5356468a5e6823fe4dce040ee75fbef66488dc':
dumpstate: Add blocked process wait-channel info to bugreport
57fff78a70c82ca09beb91c4f92d97b6f0b897e4 27-Apr-2010 San Mehat <san@google.com> dumpstate: Add blocked process wait-channel info to bugreport

Fix for http://b/2630027

Change-Id: I3606d8bf95c58df2b290dbd13f48538d82f16088
Signed-off-by: San Mehat <san@google.com>
umpstate/dumpstate.c
umpstate/dumpstate.h
umpstate/utils.c
69acb6b746c82f88607b3365795ebb3279188eed 16-Apr-2010 Jean-Baptiste Queru <jbq@google.com> Unify am startservice commands.

This replaces the implementation with an equivalent one.

Change-Id: I1343ddee9414a67906cd426b8381ddbace873894
m/src/com/android/commands/am/Am.java
d4dd85d532dcd383a2f6b421e747b5ab07246d19 14-Apr-2010 Anthony Newnam <anthony.newnam@garmin.com> Allow Am to start services

Change-Id: I31d066ae2c980cc293e55034446a63a0f42088ad
m/src/com/android/commands/am/Am.java
d760afc3b59cdeaa866261f5acc27510510d69d1 13-Apr-2010 Andreas Huber <andih@google.com> am 30e9c2d4: am db281311: Merge "Better diagnostics in the stagefright commandline tool, support for playing sine-tones using a filename of "sine:[samplingrate]", i.e. sine:44100. Support for playing audio through to the speakers by using "-o" in addition to "-a"." in

Merge commit '30e9c2d4db145e02b5312ce29606b03dd78349d3' into kraken

* commit '30e9c2d4db145e02b5312ce29606b03dd78349d3':
Better diagnostics in the stagefright commandline tool, support for playing sine-tones using a filename of "sine:[samplingrate]", i.e. sine:44100. Support for playing audio through to the speakers by using "-o" in addition to "-a".
662292ae2d4f50990d3f2a944b9d9059775b3cc0 13-Apr-2010 Andreas Huber <andih@google.com> Better diagnostics in the stagefright commandline tool, support for playing sine-tones using a filename of "sine:[samplingrate]", i.e. sine:44100. Support for playing audio through to the speakers by using "-o" in addition to "-a".

related-to-bug: 2553359
Change-Id: Ic49eb89feb62474d9513bc21571e0e8fe3a15e0b
tagefright/Android.mk
tagefright/stagefright.cpp
71c27d991ad9f07cc7e28545bf6cd2b133668cd5 19-Mar-2010 Andreas Huber <andih@google.com> Various fixes to enable recording on passion and nexus1.

Change-Id: I75a461c9882e2449082ad754ee7b231c1ceec039
tagefright/record.cpp
3e543abbc18eec03ba7300b53cd65dc1c30fd40b 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> 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
40e472521a544f26cb6956995788f7c36fff1404 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> 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
m/src/com/android/commands/pm/Pm.java
b93107daad8f839b4b234b24af475092168fac89 06-Apr-2010 Christopher Tate <ctate@google.com> am ccb2c6cf: am 1bfcaa59: Merge "Fix \'bmgr restore\'" into froyo

Merge commit 'ccb2c6cf3a2bf2ddbf5cd261bd22ee02f0bf7aa7' into kraken

* commit 'ccb2c6cf3a2bf2ddbf5cd261bd22ee02f0bf7aa7':
Fix 'bmgr restore'
1398e27bb0f5768cbbd5b9d9fd7c8675da63ccb0 06-Apr-2010 Christopher Tate <ctate@google.com> Fix 'bmgr restore'

Zero means success. Fixes bug #2573785

Change-Id: I11bd4d85aa2b3a061aa37e085790ee8cd52d50a2
mgr/src/com/android/commands/bmgr/Bmgr.java
e47009aabd269176b8748a5308de89bafec25c16 02-Apr-2010 Andreas Huber <andih@google.com> am 0f7c543c: am eb6e3edc: Merge "Coalesce multiple encoded AAC frames into a single input buffer on this particular OMX codec to increase throughput significantly." into froyo

Merge commit '0f7c543cc48d287591b5638a15bf8ca977e162a2' into kraken

* commit '0f7c543cc48d287591b5638a15bf8ca977e162a2':
Coalesce multiple encoded AAC frames into a single input buffer on this particular OMX codec to increase throughput significantly.
a4357addf609c4a88867c93db135d531b2c40352 02-Apr-2010 Andreas Huber <andih@google.com> Coalesce multiple encoded AAC frames into a single input buffer on this particular OMX codec to increase throughput significantly.

Change-Id: I90c7db6656a53339c5d454336548c4f00d0d9064
related-to-bug: 2548426
tagefright/stagefright.cpp
4caee4f7199d43b98badb02c9b746af66062cef2 30-Mar-2010 Christopher Tate <ctate@google.com> am b3f7fe44: am 22375e4a: Merge "Make RestoreSession.getAvailableRestoreSets() asynchronous" into froyo

Merge commit 'b3f7fe44f5a3a6a4c04d4102eb61f29edf83129c' into kraken

* commit 'b3f7fe44f5a3a6a4c04d4102eb61f29edf83129c':
Make RestoreSession.getAvailableRestoreSets() asynchronous
2d449afe3d075020bdd1115bcc15c9383cbce122 30-Mar-2010 Christopher Tate <ctate@google.com> Make RestoreSession.getAvailableRestoreSets() asynchronous

This transaction can involve the transport having to query a remote backend
over the wire, so it can take a Long Time(tm). Make it main-thread-safe by
making it asynchronous, with the results passed as a callback to the invoker's
RestoreObserver. We also make the IRestoreObserver callback interface
properly oneway.

Bug #2550665
Bug #2549422

Change-Id: If18a233a0a3d54c7b55101715c9e6195b762c5a0
mgr/src/com/android/commands/bmgr/Bmgr.java
1f4df90bfab8ca42eabe95f19eadff3432eee7fd 27-Mar-2010 Oscar Montemayor <oam@google.com> DO NOT MERGE
Removing unused features from source tree.
Please refer to Bug#2502219.

Change-Id: I879c29bfd5ffe933f64bb1082aaae7c956450a5a
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
5ef402baafc4818ccdf2aaec5da9cf25dd1c0e12 27-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2538228: Intents targeting browsers constantly nagging

Some applications are setting the MIME type field for an http:
intent, which is technically wrong because the recipient opening
the URI will get the MIME type from the header. This was hitting
a bug when we compute the intent filter when setting the
preferred activity, where we have to set both the MIME type and
data URI for the intent filter. (For file: and content: URIs
only the MIME type is needed, since these can be opened directly
through ContentResolver so everyone is presumed to be able to
handle them.)

Change-Id: Ia7025e6859e9c90997bf56c2c80f225fca7a2007
m/src/com/android/commands/am/Am.java
9c3cee9824026764275e4d84ba9b5d9fdc5da690 26-Mar-2010 Christopher Tate <ctate@google.com> API CHANGE: Backup/restore API changes requested by the API Council

* @hide the android.app.backup.RestoreSession class and functionality

* Provide a public method on android.app.backup.BackupManager that apps
can use to request a restore pass of their last-known-good dataset.
The new method is called requestRestore().

* Provide the name of the package being restored, not just its ordinal,
in the RestoreObserver's onUpdate() callback.

Part of bug #2545514

Change-Id: I9689bf8d6e2b808b4ee412424a36a835be0a5ca8
mgr/src/com/android/commands/bmgr/Bmgr.java
1a189a8232d9765e184ba4eef72c651bc868814f 24-Mar-2010 Andreas Huber <andih@google.com> QueryCodecs now returns the names of the software codecs (non-OpenMax) as well.

Change-Id: Ic4cd61f4dd722fb0dda544ffaa5615e87e3a4d40
related-to-bug: 2541647
tagefright/stagefright.cpp
e99bb5f10b90736d10cee9729b56cba156fc0921 19-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> 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
m/src/com/android/commands/pm/Pm.java
19b9e2e839ba0a00d8b4076dbff181986200421d 20-Mar-2010 Dmitry Shmidt <dimitrysh@google.com> Merge "Fix bcm4329 FW dump in bugreport for user-debug build"
c277f2c43dfae5d28c345663fa7b970dd5bc383e 20-Mar-2010 Dmitry Shmidt <dimitrysh@google.com> Fix bcm4329 FW dump in bugreport for user-debug build

Change-Id: I56dfdc700db5704a91015ddcdc2adb0952b097ba
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate/dumpstate.c
738b75864123b85c0aec2433571d74ea09df9b02 19-Mar-2010 Dianne Hackborn <hackbod@google.com> Only backup real files.

Fixes hang when backing up droid.

Change-Id: Ie8b5c9f76c39c2e6c2cdf1e3b03f56ae37912bad
awbu/backup.cpp
d3dd518baf87f06a571e56d9a127b043cf719e23 18-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> 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."
14b6abda1309631d49d4bebbb0317a7e1dfc0a50 17-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> 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
m/src/com/android/commands/pm/Pm.java
9e3f8c631e8406d905e79523ab8853324cc02abc 17-Mar-2010 San Mehat <san@google.com> dumpstate: Remove df from bugreport and add vold system dump

Change-Id: Ib5a7611019c13bae04f6bf099c4c598f1662890a
Signed-off-by: San Mehat <san@google.com>
umpstate/dumpstate.c
0df3c165b516f71d621e79b98bf731efa441dcd4 17-Mar-2010 Chia-chi Yeh <chiachi@android.com> keystore: rephrase the comment to make the usage more clear.

Change-Id: I529ca7ed443060089c95fe96dd230288be4b6c96
eystore/keystore_get.h
8a9ab24a5c9b595ac0268fcade4b5bbfe7c45c2d 12-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Do storage checks before initiating a move.
Add new remote method to check for insufficient error conditions.
Some fixes in MountService when updating media status on PackageManagerService
Fix size calculation condition in installd.

Add new error code if media is unavailable.
New tests for testing error codes.
Some additional debugging statements in MountService.

Change-Id: Ibfe90d5ed6c71d57f9c1c67806f38b5ae9ecdfbf
nstalld/commands.c
d73a81c28b386b64b0fb68115b60b4a0abdbbfad 16-Mar-2010 Andreas Huber <andih@google.com> Properly use a long long literal to avoid under/overflow during fps computation.

Change-Id: I04730c86d43d6192ded3e779631effda9dd06e63
tagefright/stagefright.cpp
1af34becb11ecf339511e61b7860cc6a6de848ae 16-Mar-2010 Andreas Huber <andih@google.com> HTTPDataSource must be connected before it is usable. Fix this in the stagefright tool.

Change-Id: I5313b2cb7839233d51b2d37a03b6598b0760c2e0
tagefright/stagefright.cpp
e4bfb78ae3c4738d21e5016a51844429c4647639 12-Mar-2010 Dianne Hackborn <hackbod@google.com> The return of rawbu. For other nefarious purposes.

Change-Id: I3e9c892cb6ee79e85bc4d9b817f4ad9942a73b4e
awbu/Android.mk
awbu/NOTICE
awbu/backup.cpp
5e1573601b1c216ac647d7f590fa57496db74adb 11-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "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"
089262dc022d87e31eefc536025be6c015c7ebde 10-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> 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
nstalld/commands.c
e38cd3926d445512f93958f5f1bcf90003055546 10-Mar-2010 Andreas Huber <andih@google.com> Merge "Extend stagefright tool to extract either album art or video frame."
edfeb1a3f5b62061cc628c6ebc38fb163e4a8151 10-Mar-2010 Andreas Huber <andih@google.com> Extend stagefright tool to extract either album art or video frame.

Change-Id: Iab50924e37a1aad057470a349c8f1a81858424e9
tagefright/stagefright.cpp
d951d88c17661cf95391ca3de2a72fbe8afedb69 10-Mar-2010 Glenn Kasten <gkasten@google.com> Use proper config to enable LVMX.

Change-Id: Ic8792e2b48110b2e91903e2e407b828a97d6e531
ervicemanager/Android.mk
871c16cec850c042c61aa06a7ffc0e1965867bcf 05-Mar-2010 Glenn Kasten <gkasten@google.com> Initial version of LifeVibes integration.
Also changed tabs to spaces in other audioflinger files.
ervicemanager/Android.mk
ervicemanager/service_manager.c
ca14320fa28b818d755cff8f0c2ff4c780d30105 09-Mar-2010 Dan Egnor <egnor@google.com> Merge "More consistent and clear traces.txt reporting."
efd13938013099e58f4dcbf818f508c585547817 08-Mar-2010 Dan Egnor <egnor@google.com> More consistent and clear traces.txt reporting.

Print ANR traces.txt even if it's old.
Print more detailed error messages about VM trace dumps.

Change-Id: I067c90b8f3b3647b6136528eff3120e6cfea5715
umpstate/dumpstate.c
umpstate/utils.c
3eeffc1857d4340f8f87ab57ede899b86cf11c54 09-Mar-2010 Chia-chi Yeh <chiachi@android.com> Merge "keystore: add AID_ROOT into the user table."
4165dd21592c958bacc97043d56b1ea914ab94c9 09-Mar-2010 Chia-chi Yeh <chiachi@android.com> keystore: add AID_ROOT into the user table.

Change-Id: I4b9cf24d75ca79583d7913bbb2c33745a2316cde
eystore/keystore.c
54aa577ea28999de2f30bc34daed0cc821934409 08-Mar-2010 San Mehat <san@google.com> dumpstate: Add secure container + mounted filesystems to bugreport

Change-Id: I0cb465da86976f5cce3594c4bb846aa6510c52d6
Signed-off-by: San Mehat <san@google.com>
umpstate/dumpstate.c
61b09cbc027bdfe478ac79c59494953b6cea27dc 08-Mar-2010 Chia-chi Yeh <chiachi@android.com> keystore: allow '\0's in keys and add guards for cplusplus.

Change-Id: I0af6ed7c5d51ce4ca39cb837e475942800cf6e2d
eystore/keystore_get.h
4528186e0d65fc68ef0dd1941aa2ac8aefcd55a3 06-Mar-2010 Christopher Tate <ctate@google.com> Refactor android.backup => android.app.backup

Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
mgr/src/com/android/commands/bmgr/Bmgr.java
485c3a16cef38136a821e79a5fe37df4e1779d28 04-Mar-2010 Christian Sonntag <cxs@google.com> fix hex parsing of bmgr
mgr/src/com/android/commands/bmgr/Bmgr.java
c1552397be706c243338389c628a44eee6011eae 04-Mar-2010 Dianne Hackborn <hackbod@google.com> Allow multiple original-package tags.

Also fix some issues with moving files from update commands.
nstalld/commands.c
8f7f35e0ccd91c964b9d3eeef81ff829622dfa74 26-Feb-2010 Dianne Hackborn <hackbod@google.com> Add new -W option to Am to wait for the start to complete.
m/src/com/android/commands/am/Am.java
7d411a3b947ba82d1d57f73c0fa698c3b9c95892 26-Feb-2010 Christopher Tate <ctate@google.com> Add single-package restore to Bmgr feature set

Also sanity-check the package name on the Backup Manager side, failing gracefully
if the given package is not a backup/restore participant.

Bug: 2293977

Change-Id: I3575046ffcaa3cf45c1c602824baeadd64082f70
mgr/src/com/android/commands/bmgr/Bmgr.java
8fe5c9e39def5a0a2139d902a09ae11414b90c92 25-Feb-2010 Oscar Montemayor <oam@google.com> Replacing hard-coded mount point for ASEC with a getenv() call.
nstalld/installd.h
3963cca7ff69feab11ab57ed378bc40f737d0b61 24-Feb-2010 Doug Zongker <dougz@android.com> Merge "add "startservice" option to am command-line utility"
6fb35fe1accfbdcbf0252e55cf7ef823c12f4c05 24-Feb-2010 Doug Zongker <dougz@android.com> add "startservice" option to am command-line utility

Allows starting Services in addition to Activities.

Change-Id: Ib078115f6200faa8907b35909af2f64b0c563b38
m/src/com/android/commands/am/Am.java
cf6eaeaae9e6745dd6e07540812c79821d7043c2 24-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Some framework fixes for apps on sd
change hard coded path in installd
fix tests
Work around for renaming containers.
Do forced unmount when destroying containers.
Force a gc in default container service to release handle to parsed package
and thus avoid getting killed by vold
Some cosmetic changes to PackageManager api.
Unit tests for renaming container for MountService
Remove internal size limit on app to be installed.
nstalld/installd.h
875d259c9572b06faaa6095a996e2a2c27a337af 24-Feb-2010 Andreas Huber <andih@google.com> Merge "Tag stagefright development tools as "debug-only"."
66961105e54e97e5c6e1ea239055b157b74e11bc 24-Feb-2010 Andreas Huber <andih@google.com> Tag stagefright development tools as "debug-only".
tagefright/Android.mk
5386b3f91ab15a96d33c5cd1deb74c1493c3b3ac 24-Feb-2010 Dmitry Shmidt <dimitrysh@google.com> Merge "Add Arp Cache dump"
84b72ec3b455a016fcb7a7c8d02959fc6b5b88d2 24-Feb-2010 Dmitry Shmidt <dimitrysh@google.com> Add Arp Cache dump

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate/dumpstate.c
8946dd3355fc1dcbad872c0546e356474d4cc5de 19-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Move package from internal to external and vice versa.
m/src/com/android/commands/pm/Pm.java
1f13ceb6d241ca9cebebfa6c6b5853291c2c17d6 18-Feb-2010 Andreas Huber <andih@google.com> Merge "Better diagnostics for the stagefright tool and codec performance."
6c9bf1c1de7360d96c16c7ba27b600348737a08f 17-Feb-2010 Andreas Huber <andih@google.com> Better diagnostics for the stagefright tool and codec performance.

related-to-bug: 2450938
tagefright/stagefright.cpp
6a70d7d1e28bd0b98d03e7ecab3fd08ea5973e34 17-Feb-2010 Dan Egnor <egnor@google.com> Don't overwrite ANR traces.txt if it can't be renamed (usually
due to lack of permissions, usually due to an old adb running
"dumpstate" directly rather than via bugreport).
umpstate/utils.c
642b7c0f1964389ed0b049df275c7b4daaf35b7a 16-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Include install location preference when installing packages. Changes include Add new remote call in default container service to determine install location. Rename INSTALL_ON_SDCARD Remove recommentAppInstall method Add some additional flags used in remote stubs. Move check for protected apps prior to copy. Unit tests"
5b993ce7bc29e43a3215a50ce6ce5d6550d4e5e2 12-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Include install location preference when installing packages.
Changes include
Add new remote call in default container service to determine
install location.
Rename INSTALL_ON_SDCARD
Remove recommentAppInstall method
Add some additional flags used in remote stubs.
Move check for protected apps prior to copy.
Unit tests

DefaultContainerService first parses the file uri(if content uri is specified
it returns a default install internal only value) and returns
a recommended location. Based on which the temporary id is determined
either a file name or a container id and the file is copied there.
This is then later renamed during install.
Todo's light weight parsing of package when determining location since we
just need the install location attribute only when finding out
recomended location. This will also enable to move the check for
updated system apps(cannot be on sdcard) prior to copying.
m/src/com/android/commands/pm/Pm.java
d705fd2b0aca3f57168934f2ea8c351ef249f829 12-Feb-2010 Dianne Hackborn <hackbod@google.com> Tweak updatecmds to be able to move entire directories.
nstalld/commands.c
6b03844b48c13c52d4c7ec4754d53501814098d8 11-Feb-2010 Marco Nelissen <marcone@google.com> Fix simulator build.
untime/main_runtime.cpp
000479f9e325b4e426a67033abd92d47da412725 10-Feb-2010 Mathias Agopian <mathias@google.com> split libsurfaceflinger_client and libcamera_client out of libui
ootanimation/Android.mk
ootanimation/BootAnimation.cpp
ootanimation/BootAnimation.h
ootanimation/bootanimation_main.cpp
0dd50e61267818b4cba0453c2abe18a77d3f6f66 10-Feb-2010 David 'Digit' Turner <digit@google.com> Fix installd to create /data/data/<pkgname> with appropriate permissions.

The directory was created with read+exec rights for others.
The patch restricts it to only exec rights.
nstalld/commands.c
9446c5046872e8ae44120d4057ae724875aba1a4 05-Feb-2010 James Dong <jdong@google.com> Merge "When the extractor is not able to be created successfully, don't crash"
e4cfcb82a86e1546474c3fd25101ab561063a1bd 05-Feb-2010 James Dong <jdong@google.com> When the extractor is not able to be created successfully, don't crash
tagefright/record.cpp
tagefright/stagefright.cpp
5c1779b8acbf570f66ed401e5a0daad56533305d 05-Feb-2010 Chris Tate <ctate@android.com> Merge "Add single-package restore from an app's most-recent data"
8472581aa32eee1368de379c2c079ea0a66baa3c 05-Feb-2010 Christopher Tate <ctate@google.com> Add single-package restore from an app's most-recent data

Renamed the RestoreSession performRestore() method to restoreAll(), and
added a new restorePackage() method that only restores the single
specified app. In order to restore an app other than itself, the
caller must hold the android.permission.BACKUP permission.

This change also introduces dataset tracking: the Backup Manager
persistently remembers both the current backup dataset's identity
and that of the "ancestral" dataset, i.e. the one most recently used
for a whole-device restore such as performed by SetupWizard. When a
single package is restored via restorePackage(), the selection of
most-recent dataset to use is this:

1. The data from the currently-active backup dataset, if such exists.
An app that has ever backed up data will therefore get its last-
known-good data.

2. The app's data from the ancestral dataset, if such exists. This
covers the case of a factory reset followed by reinstallation of
an app at a later time. The app had not yet backed anything up
post-wipe, but the old data is in the ancestral dataset and should
be brought forward when the app reappears.

3. If neither 1. nor 2. exist, there is no data to restore, so just
skip it and return failure.

Note that the infrastructure to automatically attempt a restore after
an application has been installed does not yet exist; that's coming.

Change-Id: I0ba170df9885128000c46ed28d3dddda3a63a143
mgr/src/com/android/commands/bmgr/Bmgr.java
b858dfda5012a1040927ed62c3bb856c3294d882 02-Feb-2010 Dianne Hackborn <hackbod@google.com> Implement system data migration support.

This adds three new features:

- <original-package android:name="com.foo" /> manifest tag.
This allows an .apk to specify another package it originally came from,
propagating all state and data from the old to new package.

- <adopt-permissions android:name="com.foo" /> manifest tag.
In some more complicated cases, a new .apk may be a combination
of multiple older .apks that each declared their own permissions.
This allows you to propagate the permissions from these other
.apks into the new one.

- A new system/etc/updatecmds directory.
You can place files here which describe data files to move from
one package to another. (See below for details.)

Also in this change: we now clean up the data directories of
.apks that disappear from the system image, and some improvements
to logging and reporting error messages.

A typical file in the updatecmds directory looks like this:

-------
com.google.android.gsf:com.google.android.providers.talk
databases/talk.db
com.google.android.gsf:com.google.android.googleapps
databases/gls.db
-------

This says that for com.google.android.sfs, there are two packages to
move files from:

From com.google.android.providers.talk, the file databases/talk.db.
From com.google.android.googleapps, the file databases/gls.db

As part of moving the file, its owner will be changed from the old
package to whoever is the owner of the new package's data directory.

If those two files had existed, after booting you would now have the
files:

/data/data/com.google.android.gsf/databases/talk.db
/data/data/com.google.android.gsf/databases/gls.db

Note that all three of these facilities assume that the older .apk
is completely removed from the newer system. The WILL NOT work
correctly if the older .apk still remains.
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
c028be4f3b8c7476b46859f66c3f33d528adf181 25-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> AppsOnSd feature - Add default container

Add new remote interface to do temporary copies. The new
remote stub handling is done on mHandler thread and doesn't need locking
for now.
Add new InstallArgs class and subclasses to isolate cases for installation.
Move resource deletion for failed installs/upgrades to later on in installation
cycle.
Fix code path for forward locked apps when using scanPackageLI

TODO's
Fix installation paths to completely use InstallArgs based design later on.
Get rid of using flags in various install/uninstall code paths.
Ideally InstallArgs should be created using these flags and used in the
rest of the code.
Function renames.
Revisit mount api's.
nstalld/utils.c
ea11654e684cb91252487f697c72e76da507f7be 27-Jan-2010 Dan Egnor <egnor@google.com> Use six dashes instead of five.
umpstate/dumpstate.c
umpstate/utils.c
07bf09da4a365282fc35f800b62a83e0fa5533e2 25-Jan-2010 Andreas Huber <andih@google.com> Initial checkin of AudioSource and AMRWriter, a pair of classes supporting pure-audio recording in stagefright.

related-to-bug: 2295449
tagefright/audioloop.cpp
b49d9af7e1205312cc25e23636ef3980bee4c1b0 19-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Mount/Unmount secure containers Persist flags in PackageSetting. Flags are relevant to ApplicationInfo.FLAG_SYSTEM, Application.FLAG_ON_SDCARD, ApplicationInfo.FLAG_FORWARD_LOCK. New pm command to simulate mount/unmount in Pm. This will be removed when MountService/vold event generation gets fixed. Calls from MountService into PackageManager when media gets mounted/unmounted. Scan the packages and grant permissions when the sdcard gets mounted. This api might change again."
fd3530f90562bb7e66edfee39d90fc8beda82f1d 18-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> Mount/Unmount secure containers
Persist flags in PackageSetting. Flags are relevant to ApplicationInfo.FLAG_SYSTEM, Application.FLAG_ON_SDCARD, ApplicationInfo.FLAG_FORWARD_LOCK.
New pm command to simulate mount/unmount in Pm. This will be removed
when MountService/vold event generation gets fixed.
Calls from MountService into PackageManager when media gets mounted/unmounted.
Scan the packages and grant permissions when the sdcard gets mounted.
This api might change again.
m/src/com/android/commands/pm/Pm.java
3c79a4abf816f58956831d551b858642139a082b 19-Jan-2010 Andreas Huber <andih@google.com> Merge "Upgrade for the stagefright commandline tool to support extracting thumbnails and to optionally prefer software codecs."
e42fdb5442d09ff6b8c82520b497f56cf14673ef 14-Jan-2010 Andreas Huber <andih@google.com> Upgrade for the stagefright commandline tool to support extracting thumbnails and to optionally prefer software codecs.
tagefright/stagefright.cpp
af8e9f4805643f90a9dc0ecfa119e0a860c12f8a 12-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> app install on sdcard. provide skeleton implementation
to install an app on sdcard, just resources.
Add new install path for /asec in installd.
ignore . when checking for apk path since the sdcard packages id'ed
by package name.
Add new -s option to adb shell pm
Refactor fwd locked from scanMode to ApplicationInfo.
Add new flag for sd install
Add new parse flags for fwd locking and installing on sdcard
New mock api's in PackageManagerService to invoke MountService api's. These
will be refactored again and so have been wrapped internally.
Some error codes in PackageManager
Changes in PackageManagerService to use mPath and mScanPath during installation
and switch to using PackageParser.Package.applicationInfo attributes for
source and public resource directories.
Some known issues that will be addressed later
using system_uid for now. needs some tinkering with uid and packagesetting creation to use the actual app uid
error handling from vold not very robust. ignoring lot of things for now
sending a delayed destroy to delete packages. will revisit later
revisit temp file creation later. just copy for now
nstalld/commands.c
nstalld/installd.h
m/src/com/android/commands/pm/Pm.java
52952b1bcab28f655775efbad8f2e2b41d06a34b 13-Jan-2010 Dan Egnor <egnor@google.com> Overhaul of dumpstate (aka bugreport) with cleanups & enhancements:

- include basic build & timestamp information in the header
- collect stack traces immediately at bugreport time
- *also* show stack traces from last ANR (as before), if in the last 15 minutes
- alphabetize system properties dump
- remove now-obsolete (and always questionable) "dumpcrash" functionality
- write to a .tmp file first, then rename to the final filename
- friendly usage message
- output sections include the exact file/command run
- source de-weirdification -- it's several hundred lines shorter now

The same data is present in the same order as before, and I've tried
to preserve all the grep/search targets people might use to find their
way through the file.
umpstate/Android.mk
umpstate/dumpstate.c
umpstate/dumpstate.h
umpstate/utils.c
f5d95cbc1a6974afeb4d3155bdaa8dae55722a39 08-Jan-2010 Joe Onorato <joeo@android.com> less log spew
umpstate/dumpstate.c
5fe8598f755bdfd15e96bb2ddcdbe9a41b8173a7 30-Dec-2009 Chia-chi Yeh <chiachi@android.com> keystore: compute the padding in an intuitive way.
eystore/keystore.c
5038c78f1373bf97bcb8fd030928b3cde2051ac6 22-Dec-2009 Doug Kwan <dougkwan@google.com> Add missing shared libraries in linker commands. Currently these libraries are
linked implicitly via dependencies of other shared libraries.
tagefright/Android.mk
fddd8f96f34b622cbdd0d891f8a7f5b7e18fdbf8 22-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I70f91838

* changes:
keystore: Add paddings before checksumming.
fa4ae74ef7db34ec5efe86e7606271928a876c1c 22-Dec-2009 Chia-chi Yeh <chiachi@android.com> keystore: Add paddings before checksumming.

Also fix a file descriptor leak when file system is nearly full.

Bug: 2339184
eystore/keystore.c
c59411b17670ae9b5a6eb33e0fd62ca0e80d1578 22-Dec-2009 Dianne Hackborn <hackbod@google.com> Rework activity manager debug dumps.

Change how we do debug dumps from the activity manager to make
everything go through the activity manager interface (no more
secondary interfaces), and use the command line arguments to
control what gets dumped.

The output from dumpsys without args still dumps everything.

When just dumping the activity service, we now dump a subset
of all of the am state that is interesting without being
overwhelming.

You can use "dumpsys activity -h" to get help with other things
that can be dumped.
umpsys/dumpsys.cpp
4f471648e976d4f0000bd0dbcd0b4ebc4e0b16dd 17-Dec-2009 Andreas Huber <andih@google.com> am b5c6be6d: am 082e5171: Merge change I895fb7d7 into eclair-mr2

Merge commit 'b5c6be6db25d9e9405ea4cf20bbedd46a62dc0bb'

* commit 'b5c6be6db25d9e9405ea4cf20bbedd46a62dc0bb':
Squashed commit of the following:
2ea14e231945afb6581fa8f54015b33bc74a19e5 16-Dec-2009 Andreas Huber <andih@google.com> Squashed commit of the following:

commit 144b1c40e9cf08a584c50e1bef7ba3f287e81a4f
Author: Andreas Huber <andih@google.com>
Date: Wed Dec 16 09:28:23 2009 -0800

This H264 file shows a certain problem even better.

commit 3245f1f3b7471975aeeb824a756c987abd610f55
Author: Andreas Huber <andih@google.com>
Date: Wed Dec 16 09:20:08 2009 -0800

Using only the QA testfiles now.

commit 074817eb3816c5dd70858a3594e3b92d799d873b
Author: Andreas Huber <andih@google.com>
Date: Tue Dec 15 16:17:39 2009 -0800

Yay, roles are back again now that the API is in place.

commit 6d847e4932cc38301ae27cb7283b7f1553a95457
Author: Andreas Huber <andih@google.com>
Date: Tue Dec 15 13:01:20 2009 -0800

Added commandline option for specifying the random seed for reproducable tests.

commit 62ab37b26336eaa67e49791c41c996acb6acee3f
Author: Andreas Huber <andih@google.com>
Date: Mon Dec 14 10:53:27 2009 -0800

When issuing a seek it is important that only the first MediaSource::read call has the seek option.

commit e77c46644b2fb6862bafa3569f7d304252074f1e
Author: Andreas Huber <andih@google.com>
Date: Mon Dec 7 16:39:07 2009 -0800

Make sure the tests are actually built, sp<OMXCodec> becomes sp<MediaSource>

commit 6df56915bd55a9445b3c6f953d3cc251d81579b8
Author: Andreas Huber <andih@google.com>
Date: Thu Dec 3 14:25:36 2009 -0800

Temporarily disable support for querying the roles of OMX components.

commit 31bb26930df9e3658dea684cedb4b0f1a06a4a88
Author: Andreas Huber <andih@google.com>
Date: Tue Dec 1 13:36:52 2009 -0800

Disregard EOS events, slightly change the way the EOS flag on output buffers is handled.

commit 4c382fbc9aebee8197d5988d04378062809e7c48
Author: Andreas Huber <andih@google.com>
Date: Tue Dec 1 09:37:24 2009 -0800

New random seek test for the codec tests. Fixed "sticky" end-of-output-buffers flag behaviour in OMXCodec.

commit c762eac3e44309592b61a168d66e091cf609fa03
Author: Andreas Huber <andih@google.com>
Date: Tue Nov 3 14:13:43 2009 -0800

Fix a typo.

commit 50540a59b65c7d476b0193c7494cd75895e6ca6d
Author: Andreas Huber <andih@google.com>
Date: Tue Nov 3 09:48:35 2009 -0800

Some more fine tuning of the unit tests, make MPEG4Extractor less verbose.

commit 1157a7e52a0636706caa235abe16d2ff8a0b8140
Author: Andreas Huber <andih@google.com>
Date: Wed Oct 28 12:01:01 2009 -0700

Changes to the IOMX::listNodes API, this now returns the component's roles as well, unit tests now test all components in all supported roles by default.

commit 30fbf2d8c6cb927689f7ba75eb550a81e9df488a
Author: Andreas Huber <andih@google.com>
Date: Mon Oct 26 09:45:26 2009 -0700

Initial check-in of unit tests for OMX components.
tagefright/stagefright.cpp
64bf3d53d5ce62a786b270d1dd86d8eae723fea5 17-Dec-2009 Dmitry Shmidt <dimitrysh@google.com> Add FW log dump for bcm4329

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate/Android.mk
umpstate/dumpstate.c
umpstate/dumpstate.h
772f8f4b3baa40193082a849fd2abcfa321018f8 10-Dec-2009 Andreas Huber <andih@google.com> am 23915ddd: am eec100b2: Merge change If0d04246 into eclair-mr2

Merge commit '23915ddde9ce3ed9f1ce50ea321c8fdce612faf0'

* commit '23915ddde9ce3ed9f1ce50ea321c8fdce612faf0':
Don't count empty buffers when computing the frame rate.
f0d04246f40b3f87d361451f9ebc2feb7b5318de 10-Dec-2009 Andreas Huber <andih@google.com> Don't count empty buffers when computing the frame rate.
tagefright/stagefright.cpp
1d44bea4443050ef39604032dc88334f69e87aa7 08-Dec-2009 Andreas Huber <andih@google.com> am f553a584: am 5921fb51: Merge change I91eb0354 into eclair-mr2

Merge commit 'f553a58425c66a990dbc5f4579c976a0636fc573'

* commit 'f553a58425c66a990dbc5f4579c976a0636fc573':
Change OMXCodec::Create to return an sp<MediaSource> instead of an sp<OMXCodec>, this is more general and does not sacrifice any functionality as the remaining OMXCodec APIs are not meant to be public anyway.
91eb0354043842d96bf3ef201ce68046db70df74 07-Dec-2009 Andreas Huber <andih@google.com> Change OMXCodec::Create to return an sp<MediaSource> instead of an sp<OMXCodec>, this is more general and does not sacrifice any functionality as the remaining OMXCodec APIs are not meant to be public anyway.
tagefright/audioloop.cpp
tagefright/record.cpp
4612a9c53c00943d9a8c2c2b95f4bdfcea17a011 02-Dec-2009 Andreas Huber <andih@google.com> am ae34cf92: am 781ac162: Merge change I8768f2cc into eclair-mr2

Merge commit 'ae34cf92db9c54ba72fdcac33a8ba855a2215e4e'

* commit 'ae34cf92db9c54ba72fdcac33a8ba855a2215e4e':
A small sample tool to encode pcm audio data to amr, decode it again and play it. Some changes to OMXCodec to properly configure the AMR decoder(s).
8768f2ccefdd7862a248995055aa04fd2d5a4dfe 02-Dec-2009 Andreas Huber <andih@google.com> A small sample tool to encode pcm audio data to amr, decode it again and play it. Some changes to OMXCodec to properly configure the AMR decoder(s).
tagefright/Android.mk
tagefright/SineSource.cpp
tagefright/audioloop.cpp
1b3c375ce2f790f890f8efe7117040738035d6c5 01-Dec-2009 Doug Zongker <dougz@android.com> am bf72820e: am b292461c: Merge change I305e1b8f into eclair-mr2

Merge commit 'bf72820e7775748c7239287b49b81031167b3428'

* commit 'bf72820e7775748c7239287b49b81031167b3428':
add --esn option to am to allow adding extra with a null value
305e1b8fe926430e63d167ebed0c1f4d191ebcdc 01-Dec-2009 Doug Zongker <dougz@android.com> add --esn option to am to allow adding extra with a null value
m/src/com/android/commands/am/Am.java
84ba348474b63237c06c78e57ac25fd7ac01929a 29-Nov-2009 Dima Zavin <dima@android.com> am c92f3bcd: am e11a1b4d: am f817218e: dumpstate: Pick up the last kernel log from /proc

Merge commit 'c92f3bcd556be6086aabcdcf437cc29c2ac605f6'

* commit 'c92f3bcd556be6086aabcdcf437cc29c2ac605f6':
dumpstate: Pick up the last kernel log from /proc
e11a1b4d1a57dd6f42171aca3a4edb71438cbad1 29-Nov-2009 Dima Zavin <dima@android.com> am f817218e: dumpstate: Pick up the last kernel log from /proc

Merge commit 'f817218e09a556f20efc81309ba2cdb3475a370b' into eclair-mr2

* commit 'f817218e09a556f20efc81309ba2cdb3475a370b':
dumpstate: Pick up the last kernel log from /proc
f817218e09a556f20efc81309ba2cdb3475a370b 26-Nov-2009 Dima Zavin <dima@android.com> dumpstate: Pick up the last kernel log from /proc

This is needed since its no longer copied to /data/dontpanic by init.

Change-Id: I5217da73ec470653824b7fb9a31e093e263a8dc9
Signed-off-by: Dima Zavin <dima@android.com>
umpstate/dumpstate.c
a8529f68671a8a118751cb6ad577f44eaf076b96 18-Nov-2009 Oscar Montemayor <oam@google.com> Encrypted File Systems Project. Installer modifications.
Started to modify isntaller for data redirection to a secure location.
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
e21fb343872286a02cd2574334c78fa85ff923f4 23-Nov-2009 Andreas Huber <andih@google.com> am 5493df91: am bbd6cb46: Merge change Ib1b7bce4 into eclair-mr2

Merge commit '5493df919b01952857eb3b78fad3fe2cff573935'

* commit '5493df919b01952857eb3b78fad3fe2cff573935':
Squashed commit of the following:
27366fc9540cb642ee4856957dabffe7ddf1f901 20-Nov-2009 Andreas Huber <andih@google.com> Squashed commit of the following:

commit 1efc38dc3c33fef57b759002db3965ed07a28cb0
Author: Andreas Huber <andih@google.com>
Date: Thu Nov 19 14:36:14 2009 -0800

Sending the SEEK-COMPLETE notification temporarily broke seeking backwards in time behaviour. This is now fixed.

Also, get rid of the semi-random delay after posting buffers to surface flinger in favour of delaying the buffer release until the next frame is displayed.

commit 51973062eb5ee63fd64b845d72bac517cc3369cf
Author: Andreas Huber <andih@google.com>
Date: Wed Nov 18 14:01:43 2009 -0800

Fix one more unit test, properly send seek-complete notification only after seek actually completed.

commit cb22250b34b1fcfe1bf459723a761fd003950229
Author: Andreas Huber <andih@google.com>
Date: Wed Nov 18 12:31:36 2009 -0800

Fix seek-while-paused in AwesomePlayer, revert to using FileSource if MmapSource fails.

commit 25eb9241138ddf7bb27ce90657116c5f8a94d880
Author: Andreas Huber <andih@google.com>
Date: Wed Nov 18 12:30:40 2009 -0800

Support seeking and duration in AMRExtractor, assuming all frames are the same size.

commit 44192f2ebb7ea3bbd3ba5910025692dbc6a08faa
Author: Andreas Huber <andih@google.com>
Date: Wed Nov 18 10:21:44 2009 -0800

MediaPlayerImpl is dead, long live AwesomePlayer.

commit c5b52d3c0674f5dc94db506afbce52401cceddac
Author: Andreas Huber <andih@google.com>
Date: Wed Nov 18 09:42:23 2009 -0800

New implementation of the stagefright mediaplayer.
tagefright/record.cpp
tagefright/stagefright.cpp
cc829a652ba3c0caaca8a6bdbab1c3385fa49c83 20-Nov-2009 Mike Chan <mike@android.com> am 26a9a13a: am b2a51667: am 23b3ef82: Merge change I99194df1 into eclair

Merge commit '26a9a13ac32a9109300e323d26af5865bf5244cc'

* commit '26a9a13ac32a9109300e323d26af5865bf5244cc':
frameworks: base: dumpstate: Dump kernel cpufreq speeds.
b2a5166704ae76cc468b49710d4c967b58112359 20-Nov-2009 Mike Chan <mike@android.com> am 23b3ef82: Merge change I99194df1 into eclair

Merge commit '23b3ef82c0c4175e8c953740306ee6b080dae8e7' into eclair-mr2

* commit '23b3ef82c0c4175e8c953740306ee6b080dae8e7':
frameworks: base: dumpstate: Dump kernel cpufreq speeds.
c6b406f0ebca689f978acae99558763381f2a5f8 20-Nov-2009 Mike Chan <mike@android.com> frameworks: base: dumpstate: Dump kernel cpufreq speeds.

Change-Id: I99194df1d6c46254affef86ea8eb39e784c3dfb3
Signed-off-by: Mike Chan <mike@android.com>
umpstate/dumpstate.c
c1786f1697b3376585f1e59585b84781c9811f10 19-Nov-2009 repo sync <lockwood@android.com> am d28fcd5b: resolved conflicts for merge of efd91d7c to eclair-mr2-plus-aosp

Merge commit 'd28fcd5bb8e5734a12b83f7cefde759c009e7b6e'

* commit 'd28fcd5bb8e5734a12b83f7cefde759c009e7b6e':
Fixes for proximity sensor behavior:
efd91d7ce01c7bd538fb0ca66d9f5395352211f8 19-Nov-2009 Mike Lockwood <lockwood@android.com> am 03786b83: Merge change I813fdb7a into eclair

Merge commit '03786b83bd02f8dd8e1049d333fbfdee395ac965' into eclair-mr2

* commit '03786b83bd02f8dd8e1049d333fbfdee395ac965':
Fixes for proximity sensor behavior:
0e39ea83c5578e0d55e120c91ff7cfeeb0c1cb2f 18-Nov-2009 Mike Lockwood <lockwood@android.com> Fixes for proximity sensor behavior:

Add optional flag to Wakelock.release() to specify whether we should wait for proximity sensor to go negative before turning on the screen.
Clear the "waiting for proximity sensor to go negative" state when the power key is pressed.

Part of the fix for b/2243198 (Black screen lockup after ending call)

Change-Id: I813fdb7aa4192cd3384a25be9e59d7d4b90da53a
Signed-off-by: Mike Lockwood <lockwood@android.com>
vc/src/com/android/commands/svc/PowerCommand.java
425c77e6818577cf2f1f8837da70fad63e2b9c28 17-Nov-2009 Iliyan Malchev <malchev@google.com> am 7174fcf6: am f9bf75d5: am e2071c6b: Merge change I326e3e29 into eclair

Merge commit '7174fcf6031234bfc9aa29bf3085d14742cab944'

* commit '7174fcf6031234bfc9aa29bf3085d14742cab944':
dumpstate: include the contents of the last radio log
f9bf75d59acd8efb45d7137df507241483b1ad34 16-Nov-2009 Iliyan Malchev <malchev@google.com> am e2071c6b: Merge change I326e3e29 into eclair

Merge commit 'e2071c6b1d68220976d495d917566edf01303680' into eclair-mr2

* commit 'e2071c6b1d68220976d495d917566edf01303680':
dumpstate: include the contents of the last radio log
326e3e291a01b31df12fd33dd2f814a1ac61e2fe 16-Nov-2009 Iliyan Malchev <malchev@google.com> dumpstate: include the contents of the last radio log

Signed-off-by: Iliyan Malchev <malchev@google.com>
umpstate/dumpstate.c
f814fc6c4b785d3748c65b38ab99681494f763fb 10-Nov-2009 Andreas Huber <andih@google.com> am 45e89568: am d71ab51a: Merge change I3e1bdd38 into eclair-mr2

Merge commit '45e89568b6004db847b9e4057e386aa7db2e764c'

* commit '45e89568b6004db847b9e4057e386aa7db2e764c':
Transcode files again.
d71ab51a46d3648493ab3425e77e5762544be03a 10-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I3e1bdd38 into eclair-mr2

* changes:
Transcode files again.
2a32cbed2c147d084789440b76ed1150b61b7822 07-Nov-2009 Mathias Agopian <mathias@google.com> am c481990b: am b4488930: am 45dd12cb: Merge change I9f3020db into eclair

Merge commit 'c481990b630c7ff5bca155f4b1385f71097500d3'

* commit 'c481990b630c7ff5bca155f4b1385f71097500d3':
fix [2243164] live wallpaper screen artifacts at end of boot
b448893039dc7f06ff5a76e8be6444808b4cf2ea 07-Nov-2009 Mathias Agopian <mathias@google.com> am 45dd12cb: Merge change I9f3020db into eclair

Merge commit '45dd12cb0834ea5d72872a6d5b3095f3af152434' into eclair-mr2

* commit '45dd12cb0834ea5d72872a6d5b3095f3af152434':
fix [2243164] live wallpaper screen artifacts at end of boot
45dd12cb0834ea5d72872a6d5b3095f3af152434 07-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I9f3020db into eclair

* changes:
fix [2243164] live wallpaper screen artifacts at end of boot
9f3020db15e50d07ee1ace42e47d90b076f2ce54 07-Nov-2009 Mathias Agopian <mathias@google.com> fix [2243164] live wallpaper screen artifacts at end of boot

make sure to glClear() the areas not touched by the animation
ootanimation/BootAnimation.cpp
dcaa220ff5f360a29ac8be0eb12a8238ecaa080f 05-Nov-2009 Andreas Huber <andih@google.com> DO NOT MERGE: Squashed commit of the following:

commit 08259dd3dc9026887f9bbfedaf45866eb56ea9bc
Author: Andreas Huber <andih@google.com>
Date: Thu Nov 5 12:02:31 2009 -0800

DO NOT MERGE: Use PV for metadata extraction even if stagefright is used for playback.

commit 991832fe4dc012e51d3d9ed8d647c7f09991858f
Author: Andreas Huber <andih@google.com>
Date: Thu Nov 5 11:24:11 2009 -0800

DO NOT MERGE: Do not assert if we encounter OMX_StateInvalid. All bets are off though.

commit cec45cf302d9218fe79956cbe8a462d7ca3a10bb
Author: Andreas Huber <andih@google.com>
Date: Mon Oct 26 16:11:54 2009 -0700

DO NOT MERGE: When freeing an OMX node, attempt to transition it from its current state all the way to "Loaded" in order to properly free any allocated buffers.

commit 34a1e885ef9113d68acbc26d36fcc47fdebbed84
Author: Andreas Huber <andih@google.com>
Date: Thu Nov 5 11:10:49 2009 -0800

DO NOT MERGE: Fix heap corruptin in OMXNodeInstance.

commit 5a47f7439a1298b330541a7e4e647a8b44487388
Author: Andreas Huber <andih@google.com>
Date: Thu Nov 5 11:08:19 2009 -0800

DO NOT MERGE: Fix seek-on-initial-read behaviour of OMXCodec.

commit 45bed64722501b9f411a2940aff5aff4cc4d2e98
Author: Andreas Huber <andih@google.com>
Date: Thu Nov 5 11:02:23 2009 -0800

DO NOT MERGE: Renaming string.h to stagefright_string.h to avoid conflicts.

commit 6738e306a50196f31a73d4fc7b7c45faff639903
Author: Andreas Huber <andih@google.com>
Date: Thu Oct 15 13:46:54 2009 -0700

DO NOT MERGE: Reimplement the OMX backend for stagefright.

Besides a major cleanup and refactoring, OMX is now a singleton living in the media server, it listens for death notifications of node observers/clients that allocated OMX nodes and performs/attempts cleanup.

Changed APIs to conform to the rest of the system.
tagefright/stagefright.cpp
9aaa59076aad8efd04d0935ca6122531805124b5 04-Nov-2009 Andreas Huber <andih@google.com> am 66c25573: am 12bc3af0: Merge change I6f6bf3d8 into eclair-mr2

Merge commit '66c2557334d6c8116c874aa65e84b280d325009e'

* commit '66c2557334d6c8116c874aa65e84b280d325009e':
Support raw audio sources in stagefright commandline tool.
6f6bf3d8d209e13ef2fb96eb2986896e82928f67 04-Nov-2009 Andreas Huber <andih@google.com> Support raw audio sources in stagefright commandline tool.
tagefright/stagefright.cpp
3e1bdd386bb11f6fc5732cb53a33663bb780041f 29-Oct-2009 Andreas Huber <andih@google.com> Transcode files again.
tagefright/record.cpp
9543042b03d494f9cc328e223cea0ca94194e397 30-Oct-2009 Evan Millar <emillar@google.com> am 8e5063ca: am 2d05af0c: am 3034624f: Merge change I26a2d829 into eclair

Merge commit '8e5063ca3af9adadf3cca13fe9b907d4da0a451d'

* commit '8e5063ca3af9adadf3cca13fe9b907d4da0a451d':
Add -P flag to ps in dumpstate
2d05af0c8aa252dc1b150395cd42f4f5cbcad392 30-Oct-2009 Evan Millar <emillar@google.com> am 3034624f: Merge change I26a2d829 into eclair

Merge commit '3034624f68d373d7c79237425319b5b7fd84317e' into eclair-mr2

* commit '3034624f68d373d7c79237425319b5b7fd84317e':
Add -P flag to ps in dumpstate
86505755529b413dedccb32d9e035576774c679d 29-Oct-2009 Andreas Huber <andih@google.com> am 5647eebc: am 9dba1f92: Merge change Ib482ce88 into eclair-mr2

Merge commit '5647eebc3aeef6e644b8c7587a36206d8f0d6314'

* commit '5647eebc3aeef6e644b8c7587a36206d8f0d6314':
Revive support for video encoding in OMXCodec.
26a2d829b37d2658e5e037f1f8ce968bbd9f2164 29-Oct-2009 Evan Millar <emillar@google.com> Add -P flag to ps in dumpstate
umpstate/dumpstate.c
umpstate/dumpstate.h
b482ce8837a2d85a2a907d7ea89deaa6610a8333 29-Oct-2009 Andreas Huber <andih@google.com> Revive support for video encoding in OMXCodec.
tagefright/record.cpp
d437ac6a7c4fde988f7d737bafd30744137f3af8 23-Oct-2009 Andreas Huber <andih@google.com> am d919aa74: am 9069aa31: Merge change I57515f33 into eclair-mr2

Merge commit 'd919aa74927fcabd18a9ea14a57f44240aecc7af'

* commit 'd919aa74927fcabd18a9ea14a57f44240aecc7af':
Moving the individual extractor headers files to the private include directory.
57515f334bcc1f66f95e342bfcaa13bf9ca802ad 23-Oct-2009 Andreas Huber <andih@google.com> Moving the individual extractor headers files to the private include directory.
tagefright/record.cpp
36ad2c62b0fd5f91324f122355e355198ca56edf 17-Oct-2009 Andreas Huber <andih@google.com> am 1705d87b: am bfea1e13: resolved conflicts for merge of f585be7f to eclair-mr2

Merge commit '1705d87b7e576bcd3bdc670411511376b4e245c5'

* commit '1705d87b7e576bcd3bdc670411511376b4e245c5':
A few more testcases for the vendor to reproduce issues with their decoder. Not part of the shipping image.
bfea1e139683cdb339e0cb6aa5970b5334369d77 17-Oct-2009 Andreas Huber <andih@google.com> resolved conflicts for merge of f585be7f to eclair-mr2
11ebbfd9039fdf73d532adfb754b40ea41343585 17-Oct-2009 Andreas Huber <andih@google.com> A few more testcases for the vendor to reproduce issues with their decoder. Not part of the shipping image.
tagefright/stagefright.cpp
07914840dfd18e34fd4789cfc21522a0f4e0970d 16-Oct-2009 Andreas Huber <andih@google.com> am 4b9dbdfa: am d96f6e85: Merge change I8176f35e into eclair-mr2

Merge commit '4b9dbdfa1805cfb5be1eca2d26ca18a01724839a'

* commit '4b9dbdfa1805cfb5be1eca2d26ca18a01724839a':
Reimplement the OMX backend for stagefright.
784202ea115603004b067aacf6a57bf5d2a7d53b 15-Oct-2009 Andreas Huber <andih@google.com> Reimplement the OMX backend for stagefright.

Besides a major cleanup and refactoring, OMX is now a singleton living in the media server, it listens for death notifications of node observers/clients that allocated OMX nodes and performs/attempts cleanup.

Changed APIs to conform to the rest of the system.
tagefright/stagefright.cpp
5dc13b769fa42ca227967a81a5fdeadfb55b6055 14-Oct-2009 Andreas Huber <andih@google.com> am 9550e289: am cfd55579: OMXCodec now notifies the reader of changes in the output format by returning a special result/error code.

Merge commit '9550e2892f88194c9abbb85616bb55db67231d6e'

* commit '9550e2892f88194c9abbb85616bb55db67231d6e':
OMXCodec now notifies the reader of changes in the output format by returning a special result/error code.
0b4acfcc6045a1b8177487fd312be9b4d62a408f 14-Oct-2009 Andreas Huber <andih@google.com> am c55bb59e: am ef703f60: Merge change I98276091 into eclair-mr2

Merge commit 'c55bb59e542368500937d6737ce2ea2d3524d6d7'

* commit 'c55bb59e542368500937d6737ce2ea2d3524d6d7':
Change to a int64_t usecs representation for timestamps and duration throughout stagefright.
945ff2024357bd4367cb437d3ebb32d6fb7e9438 13-Oct-2009 Eric Fischer <enf@google.com> am 94f3a363: Merge branch \'eclair-plus-aosp\' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp

Merge commit '94f3a36326ddecaa09787d795451b0a229fe111c'

* commit '94f3a36326ddecaa09787d795451b0a229fe111c':
Remove STOPSHIP BT logging.
BT API security audit: fix a couple of permission mistakes.
Fix issue #2175693: Add vmallocinfo to dumpstate
add a way to easily catch and log GL errors (compile time flag)
GPS: Fix problem with SUPL when SUPL APN is already active.
Import revised translations. DO NOT MERGE
Fix issue 2174002: After rejecting Call when device ringtone is mute and playing music, audio is not transfered to BT device.
Import revised translations. DO NOT MERGE
80010ff5ee404ad59de29e098954a18b546998e1 13-Oct-2009 Marc Blank <mblank@google.com> am 3c5600ec: Merge branch \'eclair-plus-aosp\' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp

Merge commit '3c5600ecccd38d8fb6d39330f31fe91b5f99481b'

* commit '3c5600ecccd38d8fb6d39330f31fe91b5f99481b':
dumpstate: 'RAMCONSOLE' -> 'LAST KMSG'
Only dismiss search dialog after launching intent.
cfd55579c2e20514b181809dfaf30bd6f7e04c7e 09-Oct-2009 Andreas Huber <andih@google.com> OMXCodec now notifies the reader of changes in the output format by returning a special result/error code.
tagefright/stagefright.cpp
fa8de752507feaca695123911915070c1ce463b2 08-Oct-2009 Andreas Huber <andih@google.com> Change to a int64_t usecs representation for timestamps and duration throughout stagefright.
tagefright/SineSource.cpp
tagefright/stagefright.cpp
4ccbd5ade5dda03ff9bad54a550fb81330f6913c 12-Oct-2009 Mike Lockwood <lockwood@android.com> am 2d0dee0e: am 0daf3e91: am 7fdd67d3: Merge change I5b650a61 into eclair

Merge commit '2d0dee0e6ccebced9eac11dec24fbb66a1a40b2b'

* commit '2d0dee0e6ccebced9eac11dec24fbb66a1a40b2b':
dumpstate: Emit a logcat message at beginning and end of execution.
9809d5149b883315c73aef197200eb9758d34134 12-Oct-2009 Dianne Hackborn <hackbod@google.com> am 4bc6158d: am baad552d: am 68d881cf: Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast

Merge commit '4bc6158d6bdeff796cfd61d489c01db0d203534c'

* commit '4bc6158d6bdeff796cfd61d489c01db0d203534c':
Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast
b90a9d88da07f2b35fb4f7a70715f56e8ebca41d 12-Oct-2009 Mike Lockwood <lockwood@android.com> am e0461147: am 2ecf3f5e: dumpstate: Add backlight information to bugreport output.

Merge commit 'e04611471133650731bcd06229dfd38f3fcdc889'

* commit 'e04611471133650731bcd06229dfd38f3fcdc889':
dumpstate: Add backlight information to bugreport output.
234afe8f91425ef566e9b500d892e50f83ce3246 12-Oct-2009 San Mehat <san@google.com> am 21ee78b3: am 7b16834a: Merge change Iaf686344 into eclair

Merge commit '21ee78b372ac38f7844b1877192513ca0388fc82'

* commit '21ee78b372ac38f7844b1877192513ca0388fc82':
dumpstate: Display mtime instead of ctime
b80b8d5637c1ed154cda1f86fa9fb0d462d2ec92 08-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2175693: Add vmallocinfo to dumpstate

Change-Id: I88c6e2679919e56f581fcf79dbe683393dd8ce27
umpstate/dumpstate.c
b7c34cecd107bb79fa88f51eee99c94c4256212d 08-Oct-2009 San Mehat <san@google.com> dumpstate: 'RAMCONSOLE' -> 'LAST KMSG'

Signed-off-by: San Mehat <san@google.com>
umpstate/dumpstate.c
bb6fa17558ff9212a48bd4be24aef235814b944e 06-Oct-2009 Mike Lockwood <lockwood@android.com> dumpstate: Emit a logcat message at beginning and end of execution.

Since the logcat is not printed until later in the output, this will
make it easier to determine at what point the user pressed the key sequence
to initiate the bugreport, which can be helpful when debugging timing dependent problems.

b/2164183

Change-Id: I5b650a6163c383183ff28e344dac36fab11a2c7b
Signed-off-by: Mike Lockwood <lockwood@android.com>
umpstate/dumpstate.c
68d881cf2d2b252f6f795cd64d43e316a1d736e5 05-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast

Tell the broadcast receiver whether it is getting an initial sticky value,
so it will be quiet about attempts to do ordered broadcast stuff.

Note that the original bug being reported was not actually a crash, just
an error log. So all we are doing here is making the log quieter.

Change-Id: Iaf1b718d82093ec1197142410a64feff47eb3859
m/src/com/android/commands/am/Am.java
b1bb6cfe91c97fccd720de565fa69ed787ae1cbc 05-Oct-2009 Doug Kwan <dougkwan@google.com> Add back missing shared libraries used in executables in link commands. These
executables have calls to some shared libraries without explicitly linking
them. Currently it works as linker links these libraries via dependencies of
other libraries. This is fragile and not the right thing to do.
pp_process/Android.mk
ootanimation/Android.mk
2ecf3f5e00ea2ac630ffb405baba33113596cf38 04-Oct-2009 Mike Lockwood <lockwood@android.com> dumpstate: Add backlight information to bugreport output.

To help diagnose bugs b/2164183 and b/2164647

Change-Id: Ie80c3b205c231c485d8a24e68b0a9c5e025da479
Signed-off-by: Mike Lockwood <lockwood@android.com>
umpstate/dumpstate.c
af6863447c59c9447ea92e724e89ce04665b8fc5 02-Oct-2009 San Mehat <san@google.com> dumpstate: Display mtime instead of ctime

Signed-off-by: San Mehat <san@google.com>
umpstate/dumpstate.c
a8826d67097b12cf9d6b14a7e32c0862f17b189a 01-Oct-2009 Mathias Agopian <mathias@google.com> improve boot animation a bit
ootanimation/BootAnimation.cpp
ootanimation/BootAnimation.h
039c68e75606e837cf021815a0210836724574ad 27-Sep-2009 Dianne Hackborn <hackbod@google.com> The touch screen is probably a feature.

Also extend the feature APIs a bit.

Change-Id: I99e932d7f4e61edb0e20f75c55e9831e4b59a14d
m/src/com/android/commands/pm/Pm.java
23b4faf69437b732d681d9bee5c9a84379d5ccad 25-Sep-2009 Xavier Ducrohet <xav@android.com> Use reflection to figure out a readable string from install error code.

Instead of a switch that needs to be maintained, the code now
look for public static final int fields in PackageManager
whose names start with INSTALL_FAILED or INSTALL_PARSE_FAILED.

If their int value match the error code, the name of the field
is used as a human readable error string.

Change-Id: If58ddc4d9ccc40a9a8aaec9de4cc7e4931db0292
m/src/com/android/commands/pm/Pm.java
b5597801ad59d1fc361f584c5d7896e4c81767a1 24-Sep-2009 Chia-chi Yeh <chiachi@android.com> keystore: remove old implementation and test.

The new tests will be implemented in java.
eystore/certtool.h
eystore/common.h
eystore/keymgmt.c
eystore/keymgmt.h
eystore/netkeystore.c
eystore/netkeystore.h
eystore/netkeystore_main.c
eystore/tests/Android.mk
eystore/tests/netkeystore_test.c
8434c5369304e639efe8eab368ca410c589d87c2 24-Sep-2009 Mathias Agopian <mathias@google.com> the boot animation is back! it broke in a recent check-in
ootanimation/BootAnimation.cpp
b4d5a72691846bce5779cc3db056f09a5031d7cc 24-Sep-2009 Mathias Agopian <mathias@google.com> fix simulator build
ootanimation/BootAnimation.cpp
bc7261130a51dc9f3461d3970eee1b923bcbf193 24-Sep-2009 Mathias Agopian <mathias@google.com> fix [2132563] stuck in boot animation (framebuffer_device_open: Failed to create flip chain)
ootanimation/BootAnimation.cpp
ootanimation/BootAnimation.h
1f6802295e2dba50a4549b8a22537dcb4c4dda03 21-Sep-2009 Chia-chi Yeh <chiachi@android.com> keystore: rename scan() to saw().
eystore/keystore.c
0af607264e44b688d251f16ae5b380b0ea808d08 21-Sep-2009 Chia-chi Yeh <chiachi@android.com> keystore: exclude builds for simulator.
eystore/Android.mk
626c46b016118edbea3a3938425b5d4e959f6f2d 20-Sep-2009 Chia-chi Yeh <chiachi@android.com> keystore: enable delete(), scan(), exist() when keystore is locked.

Also check end-of-file explicitly.
eystore/keystore.c
c4b144533a9a5d03ee1fbcf27492a8be5737541d 18-Sep-2009 Chia-chi Yeh <chiachi@android.com> keystore: switch to multi-user version.
eystore/Android.mk
eystore/keystore.c
eystore/keystore_cli.c
eystore/keystore_get.h
adbc99be6d7e35f71bbbdcdfef5562c5a9b53b07 18-Sep-2009 Chia-chi Yeh <chiachi@android.com> keystore: add multi-user support.

Change-Id: I60268261110934a1d60efa341ff530f94415724f
eystore/keystore.c
eystore/keystore.h
eystore/keystore_cli.c
3065a3cad069b847165c99a38a251c072950d07f 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25528 into eclair

* changes:
Another stagefright test-case and ignore end-of-stream notifications while we're flushing.
1a77b68e90537047da8249b742fa062375b4ea4e 17-Sep-2009 Andreas Huber <andih@google.com> Another stagefright test-case and ignore end-of-stream notifications while we're flushing.
tagefright/stagefright.cpp
5b680802b6774491fbcee69e394d097d4bfcf42e 16-Sep-2009 Hung-ying Tyan <tyanh@google.com> Fix a minor bug in is_alnum_string()...

and remove some verbose logging
eystore/netkeystore.c
9f9afef3d5da3be6812192e60797b1c035445c3c 15-Sep-2009 Andreas Huber <andih@google.com> Added an API IOMX::createRendererFromJavaSurface.

This api allows to instantiate a renderer by specifying the hosting java Surface object. This hides the implementation details of (java-)Surface, (native-)Surface and friends.
tagefright/Android.mk
3ccfaaa70f25c8343ab45974a7a43cf9b9b15903 14-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24673 into eclair

* changes:
Add tests and misc fixes on keystore.
66c2a976705b62fe1721157e934b52d4a49de8f7 11-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24762 into eclair

* changes:
dumpstate: Switch back to running as non-root
5a131e52ccf98650e9a1cfcf33656dde75d730fc 11-Sep-2009 Mike Lockwood <lockwood@android.com> dumpstate: Switch back to running as non-root

Now that we have straightened out the permissions on /data/dontpanic,
root is no longer necessary.

Change-Id: Ic895d712c2e929e4935707da321e1a2b015285c0
Signed-off-by: Mike Lockwood <lockwood@android.com>
umpstate/dumpstate.c
2aa39c45072537739873ae6d0d79264fc5fb7349 11-Sep-2009 Andreas Huber <andih@google.com> Only build the "full" stagefright (including MediaExtractors and MediaPlayer) if BUILD_WITH_FULL_STAGEFRIGHT define is set (to true).
tagefright/Android.mk
6026a514248f0c603d0e8c4a3f542abab3fa1509 11-Sep-2009 Andreas Huber <andih@google.com> Move JPEGSource.{cpp,h} into libstagefright.
tagefright/Android.mk
tagefright/JPEGSource.cpp
tagefright/JPEGSource.h
tagefright/stagefright.cpp
a7df557aa2573a4718c7bbd069268e62bc036753 11-Sep-2009 Hung-ying Tyan <tyanh@google.com> Add tests and misc fixes on keystore.

* Refactor netkeystore.c to make client and server code testable.
* Add a client test for setting new passwd and changing passwd.
* Exclude "." and ".." from reset_keystore().
* Change ServerCommand.executeCommand() to accept variable length of
arguments and add convert() to marshalling the args to bytes.
* Keystore.java is revised accordingly.
eystore/Android.mk
eystore/keymgmt.c
eystore/netkeystore.c
eystore/netkeystore.h
eystore/netkeystore_main.c
eystore/tests/Android.mk
eystore/tests/netkeystore_test.c
e6c409632f773e41f33188272a0072be9fcb783f 10-Sep-2009 Andreas Huber <andih@google.com> Media MIME types now have corresponding constants in MediaDefs.h, new codec enumeration API.
tagefright/JPEGSource.cpp
tagefright/SineSource.cpp
tagefright/record.cpp
tagefright/stagefright.cpp
4e60d7e60b29c42c6745dd23ff90dced8834fa7c 09-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24179 into eclair

* changes:
Support encoding amr-wb content in stagefright.
801b73f661cbdf92de94b7e552a190fcbbdc3168 07-Sep-2009 Chung-yih Wang <cywang@google.com> Replace the delimiter whitespace with '\0'.

+ Use '\0' as the delimiter.
+ Allow whitespace character for keystore password.

In previous implementation, we use space as the delimiter. That
will stop user from using passphrase with whitespace character.
eystore/certtool.h
eystore/keymgmt.c
eystore/keymgmt.h
eystore/netkeystore.c
eystore/tests/netkeystore_test.c
ee606e66b0c1bc3527ecaffbbe95486d2ff5009e 08-Sep-2009 Andreas Huber <andih@google.com> Support encoding amr-wb content in stagefright.
tagefright/record.cpp
a4eb91da03bd785bc91bed0d25a9efaa9baba1c1 06-Sep-2009 San Mehat <san@google.com> dumpstate: Add the ctime (time the file was harvested out of /proc) to dump.

Signed-off-by: San Mehat <san@google.com>
umpstate/dumpstate.c
54ee7849ab80e050d0a6add01bdbf4298890b59d 04-Sep-2009 Andreas Huber <andih@google.com> Add another testcase for moto to reproduce bug #2099685 to the stagefright commandline app.
tagefright/stagefright.cpp
e131b7466c8b817896a618efe4b34eed5d3e51f9 03-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23861 into eclair

* changes:
Replace the bugreport symlink with a tool that starts the new dumpstate service.
308f31d8e208891df283e90e0400f899b6c598a8 03-Sep-2009 Mike Lockwood <lockwood@android.com> Replace the bugreport symlink with a tool that starts the new dumpstate service.

Change-Id: I57acae2344a264751f38b910e1e2bc750a1f1d24
Signed-off-by: Mike Lockwood <lockwood@android.com>
ugreport/Android.mk
ugreport/bugreport.c
umpstate/Android.mk
f619028470b63ba1c8e9d86fd2faab7bbece873b 03-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23715 into eclair

* changes:
Setting the component role appears to be mandatory now for all mime types.
8e65337d06a1cc4fe896d17a947d46ae5f7257a8 03-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23714 into eclair

* changes:
Some work to make audio encoding work.
8d5337301b87ba84a45327f355aa768c864de021 03-Sep-2009 Mike Lockwood <lockwood@android.com> dumpstate: Add option to output to socket, disable code that switched to nonroot

This will be used to allow running dumpstate as root from the init process
to enable gathering debugging information that requires root to access.

Change-Id: I5bb7e83071fad2b377e549058f318a5118194061
Signed-off-by: Mike Lockwood <lockwood@android.com>
umpstate/dumpstate.c
4c48342572503c7a92e5634ef8db3f1f9e541256 03-Sep-2009 Andreas Huber <andih@google.com> Setting the component role appears to be mandatory now for all mime types.

Also using CODEC_LOGV instead of vanilla LOGV to include the component name the message related to.
tagefright/record.cpp
da050cf206afff082f2a3693a8103a5df67df397 02-Sep-2009 Andreas Huber <andih@google.com> Some work to make audio encoding work.
tagefright/Android.mk
tagefright/JPEGSource.cpp
tagefright/SineSource.cpp
tagefright/SineSource.h
tagefright/record.cpp
30b9f57c8b2c1e3d0b3d2668ad04980ea0050d04 01-Sep-2009 San Mehat <san@google.com> dumpstate: Add support for apanic crash data

Signed-off-by: San Mehat <san@google.com>
umpstate/dumpstate.c
f03fb486ac089bf68ae3bfe7b6687dd4b928a340 01-Sep-2009 Xavier Ducrohet <xav@android.com> Add error output to pm for FAILED_MISSING_FEATURE

Change-Id: Ib9955b69b69db7d442402ab33e148cb40dec3d40
m/src/com/android/commands/pm/Pm.java
e915a8591ce74628a3f140f6a8adb385b412f36f 28-Aug-2009 Andreas Huber <andih@google.com> More assert => CHECK
tagefright/record.cpp
a84b0e0c592f4d097e43214abf584d044bdf11d5 28-Aug-2009 Andreas Huber <andih@google.com> Fixing the build.
tagefright/stagefright.cpp
329577aa6d422d1dbb33f4771fc5e2949b4ad312 27-Aug-2009 Andreas Huber <andih@google.com> Squashed commit of the following:

commit 3fa5f3ce910f34da0cedb8bcce1bd593db7eb740
Author: Andreas Huber <andih@google.com>
Date: Thu Aug 27 14:48:54 2009 -0700

Getting rid of more code now obsolete with the departure of OMXDecoder.

commit e0d923ec0c7bb60bec8eb97739036a4c70c0feef
Author: Andreas Huber <andih@google.com>
Date: Thu Aug 27 14:33:06 2009 -0700

Remove obsoleted OMXDecoder class. OMXDecoder is dead, long live OMXCodec.
tagefright/Android.mk
tagefright/play.cpp
tagefright/record.cpp
tagefright/stagefright.cpp
0fb64778404a97c77e62fc0c59d273b43b200896 27-Aug-2009 Andreas Huber <andih@google.com> Extend stagefright commandline up to enable vendor to reproduce specific bugs filed.
tagefright/stagefright.cpp
bc7bba419d21945a6e94b3245d6a0047fbf8f6fa 27-Aug-2009 San Mehat <san@google.com> dumpstate: Get last_kmsg from /data instead of /proc.

Signed-off-by: San Mehat <san@google.com>
umpstate/dumpstate.c
557c6ce71c40ed96b258ae8dca01c4232a1c7747 26-Aug-2009 Andreas Huber <andih@google.com> Added a commandline option to "stagefright" that limits decoding to a maximum number of frames per iteration.
tagefright/stagefright.cpp
96774d9ca9b5234e9b911871418175a817d3e608 21-Aug-2009 Andreas Huber <andih@google.com> Enable specification of http:// urls in stagefright commandline tool.
tagefright/stagefright.cpp
5c0a9133d2e8049f8952a190df91febf6b92064c 20-Aug-2009 Andreas Huber <andih@google.com> Dynamically allocate a pair of MemoryHeaps according buffer count/sizes required by the OMX component, respect JPEG compressed size.
tagefright/JPEGSource.cpp
4f5e602e1773a2990bb1f34f09875bd5cd057e5a 19-Aug-2009 Andreas Huber <andih@google.com> The PV AVC software decoder expects each fragment of a NAL unit to be handed to the decoder unframed.
tagefright/stagefright.cpp
1d3fb679af17965dec6b5961e2b9845712b118fd 18-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21745 into eclair

* changes:
Refactored "stagefright" commandline app, split off JPEGSource.
09daada236c0b4970db44c807d7c29965666c36b 18-Aug-2009 Andreas Huber <andih@google.com> Refactored "stagefright" commandline app, split off JPEGSource.
tagefright/Android.mk
tagefright/JPEGSource.cpp
tagefright/JPEGSource.h
tagefright/stagefright.cpp
6a2d513a4ad116fc5405d4d4f1f6fdb692bdefbc 18-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21221 into eclair

* changes:
Modify svc power command so it pokes the wake lock when called. This will ensure screen is not asleep if stayon is requested.
be06d26cdc70070654f1eedcd08c1c68cd587ad6 14-Aug-2009 Andreas Huber <andih@google.com> Squashed commit of the following:

commit 5bb012f0065f7ffaaeb4f569d71f0e3a8d6b19c3
Author: Andreas Huber <andih@google.com>
Date: Fri Aug 14 10:40:08 2009 -0700

An attempt at fixing export using the qcom encoders. More quirks.

commit 0690e76bfa48118a68287ccf1bbfa82febaa620c
Author: Andreas Huber <andih@google.com>
Date: Fri Aug 14 09:08:28 2009 -0700

Callbacks are now dispatched from a separate thread in OMX.

commit c6571a039526df29b6343f9a1971dbc019088c61
Author: Andreas Huber <andih@google.com>
Date: Thu Aug 13 15:42:25 2009 -0700

Massive API changes throughout stagefright, smart pointers everywhere.

commit 900612af6a0555664d9ba195112cd859491265f4
Author: Andreas Huber <andih@google.com>
Date: Thu Aug 13 13:33:12 2009 -0700

OMXCodecs now properly shutdown.

commit 96732f05e1b0603dcd1b11f16a23512592eeb4f5
Author: Andreas Huber <andih@google.com>
Date: Thu Aug 13 12:04:04 2009 -0700

More work on JPEG decoding using the hardware OMX component.

commit 63839a073ac393e3a130434ba467969053b694ad
Author: Andreas Huber <andih@google.com>
Date: Wed Aug 12 13:13:31 2009 -0700

An attempt to drive the JPEG decoder OMX node.

commit 3ac2fe5ab2926eda81b2123610b2434c645294ff
Author: Andreas Huber <andih@google.com>
Date: Tue Aug 11 16:38:21 2009 -0700

Renamed StateMachine to OMXCodec and put it in its proper place.

commit 247da75a96bf8881956413023dd49a84d5b4f5b2
Author: Andreas Huber <andih@google.com>
Date: Tue Aug 11 16:06:19 2009 -0700

Statemachine is now a full-fledged MediaSource.

commit 045244f6771fa0b9b329495c953afda900a84b71
Author: Andreas Huber <andih@google.com>
Date: Fri Aug 7 09:16:54 2009 -0700

Properly setup the input format when exporting to AMR audio.

commit 271b984cb32c5cd9e46e3f90ae121f334e4b8da9
Author: Andreas Huber <andih@google.com>
Date: Thu Aug 6 09:59:38 2009 -0700

Added some code to test audio encoding to the OMX harness.

commit 79af4748e4af33bd66d3fbac606e332a69741cf4
Author: Andreas Huber <andih@google.com>
Date: Wed Aug 5 14:36:22 2009 -0700

Merge the old OMXDecoder and the new, shiny, StateMachine code.

commit 91cf5dd77a8762bc10a0b2ffce35e3bbeb262231
Author: Andreas Huber <andih@google.com>
Date: Tue Aug 4 17:41:43 2009 -0700

A new harness to test OMX node compliance (and quirks).
tagefright/Android.mk
tagefright/record.cpp
tagefright/stagefright.cpp
317a6280cc109e873646e4652be1582d870eedfd 14-Aug-2009 Mathias Agopian <mathias@google.com> Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.

this also ripples into the window manager API by making some constant there deprecated as well.
ootanimation/BootAnimation.cpp
401ad721aded1e3e57ff51b8c2f98578b588ac43 14-Aug-2009 Guang Zhu <guangzhu@google.com> Modify svc power command so it pokes the wake lock when called. This will ensure screen is not asleep if stayon is requested.
vc/src/com/android/commands/svc/PowerCommand.java
0e0b4ae5bc5c652c8339d71ed9667e1e37baaa03 11-Aug-2009 Christopher Tate <ctate@android.com> Don't let bmgr leave a restore session hanging on error

Specifically, don't wait for the RestoreObserver to be informed that the restore
has completed unless performRestore() ran. We were winding up in a case where
bmgr was hanging forever waiting on a nonexistent restore process instead of
calling endRestoreSession().

Also improve the documentation, explicitly calling out the need to call
endRestoreSession() even if previous operations on the session were
unsuccessful.
mgr/src/com/android/commands/bmgr/Bmgr.java
36093d4e5f6a77902fb9498453537ef6ef73e025 10-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20095

* changes:
Fix network order for marshalling in keystore interface.
f1ab36f9ab82220de679ff0ca5164995b7d30214 05-Aug-2009 repo sync <cywang@google.com> Fix network order for marshalling in keystore interface.

This will fix the endian issue for heterogeneous architectures in keystore marshalling interface.
eystore/netkeystore.c
eystore/netkeystore.h
84780f56f441deb4ff736987986daeaf64db17a4 08-Aug-2009 Christopher Tate <ctate@android.com> Don't crash if the Backup Manager returns a null RestoreSet[]
mgr/src/com/android/commands/bmgr/Bmgr.java
77095d49f203eed6a6742f2605ca319e7360af32 07-Aug-2009 Christian Sonntag <cxs@android.com> make restore tokens shown in hex.

Since they are android ids, it is much easier to use them as hex, since we can just copy then into android inspector and learn more about the restore set.
mgr/src/com/android/commands/bmgr/Bmgr.java
02d34e78f4de20fc05831c22a771fffc645c5953 07-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20439

* changes:
Fix Bmgr's logic around restore completion
08e40b858e8a3266c5519a83fda6f7505f1c14db 07-Aug-2009 Christopher Tate <ctate@android.com> Fix Bmgr's logic around restore completion

The caller needs to wait for the restore observer to be informed that the
restore has finished processing before it can safely shut down the restore
session.
mgr/src/com/android/commands/bmgr/Bmgr.java
0d596d4724c7da0719b0621648216f0906e774dd 07-Aug-2009 Andreas Huber <andih@google.com> Build the stagefright library by default.
tagefright/Android.mk
738b9a45399485893fa9541fae19c47e01bc4af4 07-Aug-2009 Mathias Agopian <mathias@google.com> make sure bootanimation will choose the right config wrt the native surface
ootanimation/BootAnimation.cpp
ea03f4af10512521ad68f28dae7a2dea131dddbc 04-Aug-2009 Andreas Huber <andih@google.com> Recording/Export to .mp4/h.263 somewhat works on TI hardware.
tagefright/record.cpp
dbf5f0cf42337a5bfd0e0e11ed0ff94f11cf448d 01-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> am b86bad94: Merge change 9438 into donut

Merge commit 'b86bad9493a331a09dd765bc6e725c0aec969ff6'

* commit 'b86bad9493a331a09dd765bc6e725c0aec969ff6':
Change some log.i to log.d.
b86bad9493a331a09dd765bc6e725c0aec969ff6 01-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9438 into donut

* changes:
Change some log.i to log.d.
e81f51f44b4cfb8316de1d206038414ee6f6e96b 01-Aug-2009 Hung-ying Tyan <tyanh@google.com> Change some log.i to log.d.
eystore/netkeystore.c
abac01052c1c40f8582fe9f010c2efe6013e25c6 31-Jul-2009 Mathias Agopian <mathias@google.com> be more robust when errors occur upon EGL surface creation (ie: don't crash)
ootanimation/BootAnimation.cpp
9225dfa70c19e695d75599f8f8dcb9605ea6e039 31-Jul-2009 Chung-yih Wang <cywang@google.com> am f4692640: Add unit tests for netkeystore.

Merge commit 'f4692640a8c40b8bbba1f00841c2f8fbe7b28d7a'

* commit 'f4692640a8c40b8bbba1f00841c2f8fbe7b28d7a':
Add unit tests for netkeystore.
f4692640a8c40b8bbba1f00841c2f8fbe7b28d7a 29-Jul-2009 Chung-yih Wang <cywang@google.com> Add unit tests for netkeystore.

+ some boundary checks.
eystore/keymgmt.c
eystore/tests/Android.mk
eystore/tests/netkeystore_test.c
a0d128c8c601750dcbcf97342ffca7865b8a6f9e 29-Jul-2009 Mathias Agopian <mathias@google.com> resolved conflicts for merge of de36313b to master
de36313b0b80c019c2784edd9d41f6761fe80685 29-Jul-2009 Mathias Agopian <mathias@google.com> fix [1981759] -no-boot-anim has no effect
ootanimation/bootanimation_main.cpp
461bcdd3b7fb2d004bdc6b97b3cf36d137b11ad1 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am e640d259: Merge change 8832 into donut

Merge commit 'e640d259c29b9d919e80b2b3d3f810459135b8f3'

* commit 'e640d259c29b9d919e80b2b3d3f810459135b8f3':
fix [1996214] Boot animation is occasionally messed up
8166864e42bc20c1544b2028e8dd65b90f29a0ea 28-Jul-2009 Mathias Agopian <mathias@google.com> fix [1996214] Boot animation is occasionally messed up
ootanimation/BootAnimation.cpp
8a432776d003247c12222d8dd6a30ea4621aa2d0 28-Jul-2009 Andreas Huber <andih@google.com> Squashed commit of the following:

commit 374ea382ee3a9e3ce17e4c6357fc40d02e362810
Author: Andreas Huber <andih@google.com>
Date: Tue Jul 28 09:54:13 2009 -0700

PV's OMX implementation now uses (spec-compliant) microseconds instead of milliseconds in buffer timestamps.

commit 8d02f8ab5d7b022ad4ad34db2a9bdeea6ce2acfe
Author: Andreas Huber <andih@google.com>
Date: Mon Jul 27 14:24:26 2009 -0700

Support for using an overlay for video playback on TI hardware.

Appears to be currently constrained to CbYCrY 16-bit colorspace.

commit d17f321cb4b15c1fea378f33a7ef5998f23dd0fc
Author: Andreas Huber <andih@google.com>
Date: Mon Jul 27 09:45:38 2009 -0700

Added '--audio-only' commandline option to stagefright tool.

commit d8beef6be5c668c46451446d87e622933371cd75
Author: Andreas Huber <andih@google.com>
Date: Fri Jul 24 13:35:00 2009 -0700

Generalize the various workarounds for OMX nodes with their own unique interpretation of the spec.

commit c7dfd53eeadf8ed5a39bf2b19b014dcd62f3324d
Author: Andreas Huber <andih@google.com>
Date: Thu Jul 23 16:06:36 2009 -0700

Fixed erroneous TI AAC decoder behaviour wrt shutdown.

The AAC decoder appears to not return out buffers on an Executing->Idle transition, implemented a workaround that does a flush on all ports followed by the Executing->Idle. Oh, and flush with OMX_ALL doesn't properly work either. Fun.

commit d6377282e75060881336578f166f9c7feacf3f8f
Author: Andreas Huber <andih@google.com>
Date: Thu Jul 23 14:06:50 2009 -0700

Apparently the "channels" parameter in AudioTrack's constructor no longer counts channels but is a bitmask of enabled destinations, update the code accordingly.

commit ff698c79e851a2e57d362e9c3a09828af4048087
Author: Andreas Huber <andih@google.com>
Date: Wed Jul 22 16:54:44 2009 -0700

Fix MPEG4 decoding using TI's hardware decoder that I broke earlier...

commit 2ef78bb87cd856eb7f0b3d7dd68782a8650c12bf
Author: Andreas Huber <andih@google.com>
Date: Wed Jul 22 15:43:18 2009 -0700

Now that the qcom decoder properly advertises its own custom colorspace, update dependent code to reflect this fact.

commit bbaec96910727080fd7c8a6907c04facb9f5220f
Author: Andreas Huber <andih@google.com>
Date: Wed Jul 22 14:32:03 2009 -0700

Finishing up previous, incomplete change.

commit 76f14a1ae816b6f434771f8d12bdad81196f351e
Author: Andreas Huber <andih@google.com>
Date: Wed Jul 22 14:25:17 2009 -0700

The TI video decoder now properly decoder AVC/H.264 content.

commit e106130d8c100d5c94603e43864a7a93cca10252
Author: Andreas Huber <andih@google.com>
Date: Wed Jul 22 08:56:04 2009 -0700

Experimental support for the TI H.264 decoder, various modifications to OMXDecoder, non-functional still.

commit 241c3062dec3447db1a1ee74558cb4b9098fc404
Author: Andreas Huber <andih@google.com>
Date: Tue Jul 21 12:13:09 2009 -0700

Enable TI hardware OMX decoders (except for AVC/H.264 which still has issues).

This particular set of OMX nodes does not appear to properly return our buffers when sending the "disable" command on a port. Rather it reqires manually flushing that port and _then_ disabling it instead.

commit 1c34506a46e32ce25f2a86f3b4250dcfc037356a
Author: Andreas Huber <andih@google.com>
Date: Tue Jul 21 08:51:35 2009 -0700

Make it simpler to switch between the stagefright player and PVPlayer.

commit 249c6de05671d403f8dd51f095d49bf190430c9c
Author: Andreas Huber <andih@google.com>
Date: Mon Jul 20 14:38:15 2009 -0700

Prepare to use soon-to-be-available hardware decoders in the OMX decoder.
tagefright/record.cpp
tagefright/stagefright.cpp
b4e552844c9fcfcdf2805320a5c441fe5612a108 24-Jul-2009 Chung-yih Wang <cywang@google.com> am 75b68163: Add memcpy and strcpy boundary check.

Merge commit '75b681639d3945d22d4ab90856a65a05405d2538'

* commit '75b681639d3945d22d4ab90856a65a05405d2538':
Add memcpy and strcpy boundary check.
75b681639d3945d22d4ab90856a65a05405d2538 23-Jul-2009 Chung-yih Wang <cywang@google.com> Add memcpy and strcpy boundary check.
eystore/keymgmt.c
a553c25b33c99b345cf1c8688f8df0ed8df14e5a 17-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 1795088 Improve audio routing code

Initial commit for review.
Integrated comments after patch set 1 review.
Fixed lockup in AudioFlinger::ThreadBase::exit()
Fixed lockup when playing tone with AudioPlocyService startTone()
ervicemanager/service_manager.c
ystem_server/library/system_init.cpp
9f4af53561daae8ffe77157068d67ab10d9e2a4d 22-Jul-2009 Dan Egnor <egnor@google.com> Make intent broadcasts in "am" synchronous (they wait until exit).
Clean up error handling and reporting in "am".
Make the usage message for "am" more informative.

Make it easier to turn on logging in GoogleHttpClient.
m/src/com/android/commands/am/Am.java
dc6399bcdf18c9046507088f1db543c991f46731 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 0d039ba3: Merge change 7508 into donut

Merge commit '0d039ba328a59fc81280fbecf68aad2d2cba7234'

* commit '0d039ba328a59fc81280fbecf68aad2d2cba7234':
keystore: Fix a compile warning.
e46b7be812d68e49710b34048662cbf18e2a6550 15-Jul-2009 Andreas Huber <andih@google.com> Squashed commit of the following:

commit 8d179995654c19d9094e51989dc84ed0deba6e04
Author: Andreas Huber <andih@google.com>
Date: Tue Jul 14 16:30:40 2009 -0700

Protect stagefright code with BUILD_WITH_STAGEFRIGHT build-define.

commit 99b41acb58c34e8f024c30c833a09fd7b31c4e1f
Author: Andreas Huber <andih@google.com>
Date: Tue Jul 14 14:06:00 2009 -0700

OMX::list_nodes API, stagefright --list now lists all available OMX components.

commit 94a74c5b24aae6d7e446fff83d62ae3a57dc351b
Author: Andreas Huber <andih@google.com>
Date: Mon Jul 13 16:04:29 2009 -0700

Reenabled "record" commandline application to test encoding, support for h263 codec specific data when writing to .mp4.

commit d363dd74f611577567c66d25900d6264c306468c
Author: Andreas Huber <andih@google.com>
Date: Mon Jul 13 10:59:58 2009 -0700

Make non-socket communication in IOMX the default.

commit e89fc82c4fd138c88339887baf72f1d0e67f8660
Author: Andreas Huber <andih@google.com>
Date: Mon Jul 13 10:32:33 2009 -0700

The OMX interface now optionally supports communication through the binder only (no sockets involved)

commit 28611de11223fba65299787cdd33f7fdbd6a60a3
Author: Andreas Huber <andih@google.com>
Date: Fri Jul 10 15:09:13 2009 -0700

Split off the logic to render to a Surface (not ISurface!) into SurfaceRender.{cpp,h}

commit c0cfa885faaeb17d3fc5436f6447b61708bd6fe1
Author: Andreas Huber <andih@google.com>
Date: Fri Jul 10 12:21:46 2009 -0700

Fix display dimensions vs. decoded dimensions display issues, unfortunately breaks software rendering a bit...

commit ae209a2b5d09caed5dd383c910f238926aaa8fc6
Author: Andreas Huber <andih@google.com>
Date: Fri Jul 10 09:33:29 2009 -0700

Simple video decoder performance test in "stagefright" commandline tool.

commit 59fe7840111d6f46dd3c48f4950146aed962dbd2
Author: Andreas Huber <andih@google.com>
Date: Thu Jul 9 16:05:12 2009 -0700

StagefrightPlayer: Properly publish video dimensions by notifying the listener.

commit 51b6598f0e47be5e12d77f1d14e111e71c593638
Author: Andreas Huber <andih@google.com>
Date: Thu Jul 9 11:38:15 2009 -0700

MediaPlayerInterface::AudioSink now supports the specification of a callback for pull-based audio.

commit 31ce53375d748da3e7d30e993ce89dae97fd65ea
Author: Andreas Huber <andih@google.com>
Date: Wed Jul 8 17:23:37 2009 -0700

Proper support for pushing audio to a specified AudioSink interface. Still not bulletproof: video falls behind frequently.

commit a23e312b10631a5d47f5c9831205beac6b84ab36
Author: Andreas Huber <andih@google.com>
Date: Wed Jul 8 15:10:13 2009 -0700

IGenesisPlayer and friends are no more, java interface now uses local playback instead
of playing inside the media server process.

commit 42ee5c06ab5ba1c16f50472b0b26a0526635c73c
Author: Andreas Huber <andih@google.com>
Date: Wed Jul 8 13:17:03 2009 -0700

MP3 extractor now supports seeking (only fixed bitrate files currently supported)

commit 96a790405763bfa738d1c6845c99a9fdf579b66f
Author: Andreas Huber <andih@google.com>
Date: Tue Jul 7 10:53:54 2009 -0700

Keeping up-to-date with new master-gl changes, removing CameraSource for now, removing unnecessary commandline utilities from the build.

commit 6c9dcb7c628c0347154dd7f37913a3a5f04deb99
Author: Andreas Huber <andih@google.com>
Date: Mon Jul 6 16:40:02 2009 -0700

Finally take advantage of the fact that the Qcom OMX decoders already place the output buffers into memory accessible by the hardware yuv converter and avoid extra allocations and memcpys in that case. Split of the render logic into subclasses of VideoRenderer.

commit e8d46e81cffc15ffb0bdf03f511e4a4497ca7621
Author: Andreas Huber <andih@google.com>
Date: Mon Jul 6 12:18:29 2009 -0700

Added a few more cases of valid MPEG4 files to the sniffer, fixed end of stream notifications in MPEG4 files.

commit 88bffc5ed4033a607080f8777a1c0ec9e3e079de
Author: Andreas Huber <andih@google.com>
Date: Thu Jul 2 12:25:03 2009 -0700

MediaPlayerImpl now properly pauses/resumes instead of tearing down the decoder chains and starting back up from the beginning.

commit 732aa0a87c7e8d8a10776b275712649954962414
Author: Andreas Huber <andih@google.com>
Date: Wed Jul 1 14:58:56 2009 -0700

Remove pthread_mutex_* and pthread_cond_* in favour of Mutex and Condition.

commit 669e5944b2fe0542a3b8dba0c441a94503e99fb0
Author: Andreas Huber <andih@google.com>
Date: Wed Jul 1 14:43:02 2009 -0700

Proper support for end-of-stream signalling of MediaSources.

commit afb038f2dc594c742e554b2d42b86ffc7434e3fc
Author: Andreas Huber <andih@google.com>
Date: Tue Jun 30 16:48:03 2009 -0700

Support for the "sniffing" of datasources to determine their probable mime type (along with confidence). Slightly refactored the MP3Extractor to share common code with the sniffer.

commit ed3644b8bd56807e1db4b32433a93a2467f1f3c5
Author: Andreas Huber <andih@google.com>
Date: Fri Jun 26 13:27:52 2009 -0700

I don't think prepare should automatically start the player.

commit 11eb9b49dc4a0819d366682817cba68613f4fe12
Author: Andreas Huber <andih@google.com>
Date: Fri Jun 26 11:09:22 2009 -0700

Somewhat better timing information implemented in the MP3Extractor.

commit cab023a1751735c0ed26c8493498a91d8644c6c9
Author: Andreas Huber <andih@google.com>
Date: Thu Jun 25 15:41:56 2009 -0700

Initial checkin for support of mp3 content, extraction and playback. Media extractors now abstracted in MediaExtractor baseclass.

commit 40f4146bb3c647e56690dd9b0fa3ffdea60030dc
Author: Andreas Huber <andih@google.com>
Date: Wed Jun 24 10:41:12 2009 -0700

Make sure we only allocate surface buffers if there is video to be played.

commit 7f85e7d92fe81740e102e09905b19354f4ac178e
Author: Andreas Huber <andih@google.com>
Date: Wed Jun 24 10:19:32 2009 -0700

Clean up a failed merge and implement stub for new API in MediaPlayerBase.

commit f0e9d494a4c03402ea7b54891848ca5a50c421b2
Author: Andreas Huber <andih@google.com>
Date: Fri Jun 12 15:38:03 2009 -0700

Support yuv420->rgb565 conversion if hardware color conversion is unavailable.

commit 87223248b3099cd5261b94169f84cfd1eba56a8f
Author: Andreas Huber <andih@google.com>
Date: Fri Jun 12 09:35:56 2009 -0700

Remove unimplemented and currently unnecessary blocking option from MediaSource::ReadOptions.

commit e07e651f0325892b797f3eb64dbeca0f317afdfd
Author: Andreas Huber <andih@google.com>
Date: Wed Jun 10 16:26:42 2009 -0700

Enable assertions in HTTPDataSource.

commit 0dc97adebea1721156880f4b3d5c70f8d50c53b2
Author: Andreas Huber <andih@google.com>
Date: Wed Jun 10 12:34:39 2009 -0700

delete foo.

commit 7f05845dda496e7defee284d32509d127e785784
Author: Andreas Huber <andih@google.com>
Date: Wed Jun 10 12:34:08 2009 -0700

added foo.

commit e432970c51eeec4e5d549bdb3e2d3e48ffb4f0e7
Author: Andreas Huber <andih@google.com>
Date: Wed Jun 10 11:44:31 2009 -0700

Make sure to initialize all fields in _all_ constructors... Use a Mutex instead of the raw pthread_mutex_t.

commit d6286a6bbca639952491448fa3e609b775a8a814
Author: Andreas Huber <andih@google.com>
Date: Tue Jun 9 17:11:49 2009 -0700

send_command is now implemented twice... ugly hack to get both shutdown working correctly and startup as well... playback now "works" on the emulator, too.

commit 8d657e004677a7c5dae4479e8519bcaa94c18aad
Author: Andreas Huber <andih@google.com>
Date: Tue Jun 9 11:58:55 2009 -0700

Instead of erasing codec specific data once it's been output to the omx node, retain the data and just rewind after a stop.

commit 279fede6ba35cbc37c35616c53406bf2c9720202
Author: Andreas Huber <andih@google.com>
Date: Tue Jun 9 10:58:11 2009 -0700

Various fixes related to play/pause. Decoder now properly frees OMXMediaBuffers, made MemoryDealer destructor protected instead of public to prevent accidental stack-allocation of MemoryDealer objects.

commit 0f717f15a6328efd3f34082929cd8ad2351095a9
Author: Andreas Huber <andih@google.com>
Date: Tue Jun 9 08:44:12 2009 -0700

Make sure to rewind codec specific data on OMXDecoder::stop and reset AudioPlayer's notion of time mapping.

commit 0cfb63e33270daf9b215214608ab383f93a31823
Author: Andreas Huber <andih@google.com>
Date: Mon Jun 8 14:25:48 2009 -0700

Massive rename.

commit 30ed8f476c4431a5275538958b3e281bd17d5eab
Author: Andreas Huber <andih@google.com>
Date: Mon Jun 8 13:52:41 2009 -0700

send_command and fill/empty buffer commands must be executed in sequence, send_command is now dispatched over the socket instead of through the binder interface to ensure this.

commit b832d04011b2dd8a9632eb7e575bfe1addd1270d
Author: Andreas Huber <andih@google.com>
Date: Mon Jun 8 10:21:17 2009 -0700

MediaBuffers can now be "clone()", they sit on top of the same data but have their own range and metadata. Once a clone's refcount drops to 0 it decrements the refcount on the original buffer.

commit 4e944672808bdf1ed40a69f3f602f93ebf7b4049
Author: Andreas Huber <andih@google.com>
Date: Mon Jun 8 10:01:01 2009 -0700

Split MediaBuffer.h into MediaBufferGroup.h and MediaBuffer.h, same with their respective source files.

commit ddb7529b4de4828db51432bd405fddd76cfa3b6a
Author: Andreas Huber <andih@google.com>
Date: Fri Jun 5 16:30:25 2009 -0700

More fudging with A/V sync...

commit 1e5a4d8df08237b58c06c6527a33152ae931addf
Author: Andreas Huber <andih@google.com>
Date: Fri Jun 5 11:54:20 2009 -0700

API cleanup of MediaSource. Got rid of MediaRing as it really doesn't serve a purpose if OMX decoders are used.

commit 0953c65232aa9753d17d2e25c5f5526eb810cf13
Author: Andreas Huber <andih@google.com>
Date: Thu Jun 4 16:59:19 2009 -0700

Experimental TimedEventQueue and an attempt at a cleaner player implementation using it, OMXDecoder is now a little less verbose.

commit 2085b8ea9484a21fa11f94194a27405d413aeecc
Author: Andreas Huber <andih@google.com>
Date: Thu Jun 4 10:17:01 2009 -0700

Properly bail out of the AV sync loop if the MediaPlayerImpl is stopped.

commit 471f143458a8a0d93cb1bf9568c63c3967279dc6
Author: Andreas Huber <andih@google.com>
Date: Wed Jun 3 17:32:27 2009 -0700

Now this is much better AV sync, defer seeking the audio source until we know where the video source synced to.

commit 4010d371dbe62ce4971e13437776cba32cb0bb3d
Author: Andreas Huber <andih@google.com>
Date: Wed Jun 3 16:01:07 2009 -0700

Tweaked some of the heuristics in AV sync, OMXDecoder is now a little less verbose, seek to a sync sample at or _after_ the requested position.

commit f3d4af1d5a4ac31fa02271b000f6c7ec593f0da9
Author: Andreas Huber <andih@google.com>
Date: Wed Jun 3 15:33:58 2009 -0700

Change the TimeSource interface's APIs, prefer microseconds over milliseconds now, changed the way MediaPlayerImpl does AV sync.

commit 08bb46fa61d12e852a424698ddb0c90700328f6e
Author: Andreas Huber <andih@google.com>
Date: Wed Jun 3 11:57:24 2009 -0700

Using framework's Mutex and Condition classes instead of pthread functions, much saner locking in OMXDecoder.

commit 4d77b4e09e59bbf8c1af009ae7dc62b10af52fd6
Author: Andreas Huber <andih@google.com>
Date: Tue Jun 2 17:12:03 2009 -0700

MediaSources now publish their format.

commit 7e429a26c57bf936e1a08035d2d11839f9f00310
Author: Andreas Huber <andih@google.com>
Date: Tue Jun 2 16:38:29 2009 -0700

MetaData is now implemented in terms of KeyedVector, MetaData is now reference counted.

commit 0fa957aa5c9bcb6ec122ed7b5b97430039be6797
Author: Andreas Huber <andih@google.com>
Date: Mon Jun 1 14:39:55 2009 -0700

Sync sample seek support.

commit 78a5f090d02e7e6e1a146b29bdb7771eecaa2f86
Author: Andreas Huber <andih@google.com>
Date: Mon Jun 1 13:51:11 2009 -0700

Distinguish shutdown from port-flush since one requires buffers to be freed and the other one doesn't. Fixes a problem with seek.

commit e57781d3b2c985a74cd8b60e7c8f2d576459d038
Author: Andreas Huber <andih@google.com>
Date: Mon Jun 1 10:52:20 2009 -0700

First shot at support for seeking a MediaSource. Sync frames are not properly handled yet.

commit 0551cd78fda78bf66877fb26c5a55e5ae23d8367
Author: Andreas Huber <andih@google.com>
Date: Thu May 28 16:23:38 2009 -0700

Preliminary support for camera input.

commit f8ebafa65d10d5a06944de6b2e2992a33121b857
Author: Andreas Huber <andih@google.com>
Date: Thu May 28 12:13:47 2009 -0700

Allow NativeMediaPlayer access to Surface's getISurface() method.

commit b1a9fb36eeccd9f49d28c1c64b31fccbd6506eeb
Author: Andreas Huber <andih@google.com>
Date: Thu May 28 11:38:25 2009 -0700

Header files are now in their own genesis2 hierarchy below frameworks/base/include.

commit f49b8b234b8f6ce83148787eef540dd920f04aa6
Author: Andreas Huber <andih@google.com>
Date: Thu May 28 11:22:03 2009 -0700

moved MPEG4Writer into libgenesis2.

commit 5224254919dac4728677335ea60429fa16f518b4
Author: Andreas Huber <andih@google.com>
Date: Thu May 28 11:13:38 2009 -0700

Everything now lives in the android namespace, integrated errors with android errors, renamed MediaPlayer to MediaPlayerImpl.

commit f9a9d84f7e0465ef5d1938a068655ba39527cf99
Author: Andreas Huber <andih@google.com>
Date: Wed May 27 16:43:11 2009 -0700

Support for getPosition() and getDuration().

commit 3206cc5140bcbc88be039f8d94b954af63e69752
Author: Andreas Huber <andih@google.com>
Date: Wed May 27 15:37:45 2009 -0700

Support for {MediaPlayer, GenesisPlayer, Genesis2Player}::isPlaying()

commit 9f41b248e0dfce71bbc50f883750cec52ebfd1fe
Author: Andreas Huber <andih@google.com>
Date: Wed May 27 13:49:50 2009 -0700

Proper disconnection from the OMX service.

commit cdcf47a2c31599109ee42277c7fa14af3c600091
Author: Andreas Huber <andih@google.com>
Date: Tue May 26 17:27:06 2009 -0700

New player type for the genesis player in libmediaplayerservice. Playing video through an ISurface now.

commit 0586af20ac9ae0403dd190bafd290b0f90549723
Author: Andreas Huber <andih@google.com>
Date: Fri May 22 15:53:19 2009 -0700

Fix a buffer overflow error by adding padding in case we need to de-frame AVC data.

commit eac62fff6ad2ffb7b75c0d4a1b9620d33e93fb9b
Author: Andreas Huber <andih@google.com>
Date: Fri May 22 13:35:30 2009 -0700

Support for http URIs in MediaPlayer, compensate for AudioTrack latency.

commit a7db456e3173d94d6b5e457547e2a6a5f7a8e1cc
Author: Andreas Huber <andih@google.com>
Date: Fri May 22 11:33:25 2009 -0700

Support for URIs in MediaPlayer class, support for shoutcast streams in MediaPlayer, force shutdown of OMX nodes if they don't shutdown cleanly within a second.

commit 1f0268f4f14ad5215668f34e06a420850174d665
Author: Andreas Huber <andih@google.com>
Date: Fri May 22 08:33:16 2009 -0700

and foo.txt is gone again.

commit 0feca4e0919f345704d78ec78894bac5027bd5ed
Author: Andreas Huber <andih@dhcp-172-19-27-148.mtv.corp.google.com>
Date: Fri May 22 08:28:49 2009 -0700

added foo.txt

commit 9c7d04b35cdc895a2de3602dc46522f608bd205f
Author: Andreas Huber <andih@google.com>
Date: Fri May 22 08:28:04 2009 -0700

delete foo again

commit fec3ca1720992cce51b9a92b86b945da88a6b16c
Author: Andreas Huber <andih@google.com>
Date: Fri May 22 08:27:45 2009 -0700

weird

commit 30a6571302333146e537e537a3a8986245cca87c
Author: Andreas Huber <andih@dhcp-172-19-27-148.mtv.corp.google.com>
Date: Fri May 22 08:18:55 2009 -0700

reverse test

commit dea3d99dd0fe9386e8a3c51954d9d0fe2be09d38
Author: Andreas Huber <andih@google.com>
Date: Fri May 22 08:18:22 2009 -0700

test

commit a9eeafec6e46072cac41e54ebdbd153cb7ae7518
Author: Andreas Huber <andih@google.com>
Date: Thu May 21 16:37:50 2009 -0700

Use the video ring again for now.

commit e05ff3d3c1c4f89ef499a2b172138a775fd694e3
Author: Andreas Huber <andih@google.com>
Date: Thu May 21 15:42:19 2009 -0700

Export to .mp4 now works for MPEG4 video content. Fixed a bug in the sample table wrt co64 chunks.

commit 5c44c540374a4e50c4e8aaab2b7a34aed6e1391e
Author: Andreas Huber <andih@google.com>
Date: Thu May 21 09:56:11 2009 -0700

Fix the build, all binder-related headers have moved and there's a new library libbinde
r to link against now.

commit 23e0a24404d16c898c2c6b3c7495ad303844bc71
Author: Andreas Huber <andih@google.com>
Date: Thu May 21 08:42:04 2009 -0700

Initial checkin of MPEG4Writer, a class to export media sources into an mpeg4 file. MPEG4/AVC metadata (efss & friends) not currently working.

commit 9cd77adb1ac194197364ffad00a0d7215f458e1a
Author: Andreas Huber <andih@google.com>
Date: Wed May 20 12:31:45 2009 -0700

New shell command to test recording/encoding. Various changes to OMXDecoder to support encoding properly. Now each OMXDecoder needs a dedicated thread on the client side since onEvent responses could block which would cause deadlocks if a node depends on the output of another node for example.

commit 5c510fb55ffed7ec25305999ed9b6c1eec48d503
Author: Andreas Huber <andih@google.com>
Date: Mon May 18 15:40:06 2009 -0700

Make media decoding the default in the genesis2 commandline app instead of shoutcast playback.

commit f6c7a2040b8eb43326621f12c3a936e09b3a70e3
Author: Andreas Huber <andih@google.com>
Date: Mon May 18 11:03:04 2009 -0700

The king is dead, long live the kind... Replaced old OMX binder interface with new OMX binder interface/socket hybrid.

commit 0d4955eb5df9bfafb576d22f2ed572644d6d69ac
Author: Andreas Huber <andih@google.com>
Date: Thu May 14 12:39:34 2009 -0700

dynamic negotiation of NAL framing with the MPEG4Source, removed stale code from genesis2 commandline tool. Enable support form PV H264 software decoder.

commit 380369f54a8027cbc9349305184d6bf527a24efe
Author: Andreas Huber <andih@google.com>
Date: Wed May 13 17:32:00 2009 -0700

Explore the option of running everything inside the mediaserver process by encapsulating the player in an IGenesisPlayer binder interface.

commit b5cada56b9089a23e0c461352a97dc71e08b424d
Author: Andreas Huber <andih@google.com>
Date: Wed May 13 12:11:06 2009 -0700

Introduction of TimeSource class, clean shutdown of OMX Nodes.

commit 89f6e582e605dcb2149eb67f73fe9345d4b9be2e
Author: Andreas Huber <andih@google.com>
Date: Tue May 12 17:11:56 2009 -0700

Helper classes MediaRing and MediaPlayer.

commit 9aaed8739b4bb941473da367fb88f63224d2f1b7
Author: Andreas Huber <andih@google.com>
Date: Tue May 12 14:19:18 2009 -0700

Using mmap to map a file instead of going through FILE* improves performance, who knew?

commit ad097a78bbd002c59193ffdc39b64935928426c7
Author: Andreas Huber <andih@google.com>
Date: Mon May 11 16:42:42 2009 -0700

Added a performance test, refactored AudioDecoder a little.

commit bdd1b80ab3f3ba43e04f1f996e7fa84ed2e2728a
Author: Andreas Huber <andih@google.com>
Date: Fri May 8 16:19:29 2009 -0700

No more copying the output buffers coming out of the decoder, NAL separation also done in the extractor to avoid copying the data.

commit 858955b42c29b8033841a8caaa56c2a449810ef3
Author: Andreas Huber <andih@google.com>
Date: Fri May 8 14:02:38 2009 -0700

Change from a model in which the caller specifies the destination buffer to one where the MediaSource returns a buffer.

commit 95098b6d4f8bdc37dfb6a109ca58db4d9e414e2d
Author: Andreas Huber <andih@google.com>
Date: Fri May 8 13:21:45 2009 -0700

Changes to support multiple pieces of codec specific data to the decoder, de-frame nal units from the h.264 stream and insert start codes

commit 3941fcf87a48dda81683df727dfb1381f62d9184
Author: Andreas Huber <andih@google.com>
Date: Thu May 7 16:37:45 2009 -0700

some refactoring. Most streams play now.

commit d3152862840d4dd39068e5197bec8674f3d55dd5
Author: Andreas Huber <andih@google.com>
Date: Thu May 7 15:37:32 2009 -0700

Misc. changes to support H264 decoding using the qcom hardware decoder

commit d4ecdfe7af36e7468270d1c2cbbdc540efe0351e
Author: Andreas Huber <andih@google.com>
Date: Thu May 7 09:28:18 2009 -0700

Timestamps are now stored as a fraction, i.e. units and scale, also, PV appears to violate OMX specs by assuming timestamps are in milliseconds instead of microseconds.

commit fe6a50943f885e065d4061aa727a54417e9f36db
Author: Andreas Huber <andih@google.com>
Date: Wed May 6 14:18:27 2009 -0700

Refactored commandline app instantiation of the decoder.

commit da1ff2724d0e78e8b360d9a2c34c55dd0e2c0492
Author: Andreas Huber <andih@google.com>
Date: Wed May 6 10:41:14 2009 -0700

Proper audio/video synchronization.

commit 569ee3a23f600f4b6b87c6178c0223b06e97f201
Author: Andreas Huber <andih@google.com>
Date: Wed May 6 09:17:20 2009 -0700

Preliminary support for timestamps.

commit e4e302a89207550d8a7170d8c0afbd9c15047c84
Author: Andreas Huber <andih@google.com>
Date: Tue May 5 15:13:12 2009 -0700

Another quick hack job to make CachingDataSource thread-safe as well.

commit dfb376a58bd7c09aa04e89558186fcfe13fe696c
Author: Andreas Huber <andih@google.com>
Date: Tue May 5 15:08:14 2009 -0700

Quick rushjob to make FileSource and SampleTable thread safe.

commit 02b29e7ebdab1f8b959b6c177ceb3b89d998f375
Author: Andreas Huber <andih@google.com>
Date: Mon May 4 17:22:04 2009 -0700

Made video decoding work for mpeg4/h263 and mostly(?) with AVC content.

commit 3a57b8ff15e48f5a0af03bf0a99c32e240dbb7ef
Author: Andreas Huber <andih@google.com>
Date: Mon May 4 09:26:42 2009 -0700

Getting rid of old sample code to drive the OMXNode binder interface.

commit 5b046aed0cf524a57ea711bc1e43ea80e57b2cb3
Author: Andreas Huber <andih@google.com>
Date: Fri May 1 16:21:11 2009 -0700

Moved files from the commandline utility into the framework, renamed MP3Decoder to AudioDecoder

commit 7f3fbba21512a078b732cc52c7bd5ba5acb9a317
Author: Andreas Huber <andih@google.com>
Date: Fri May 1 15:56:19 2009 -0700

Fixed buffer ordering and an off-by-1 error in the SampleTable code. Plays all AACs now :)

commit 024d06baab8f2c540dde16f7e7a4b6dd57f638c7
Author: Andreas Huber <andih@google.com>
Date: Fri May 1 11:52:48 2009 -0700

Some AAC content in .3gp or .mp4 files plays correctly now, other does not. Implemented ESFS parser.

commit 1470427866b0d3e0ce6848b4edc01c13a09be289
Author: Andreas Huber <andih@google.com>
Date: Thu Apr 30 15:19:31 2009 -0700

Another checkpoint, amr decoding now functional.

commit e612d044439f56331b6a2bc4a88622e04d4d42e7
Author: Andreas Huber <andih@google.com>
Date: Wed Apr 29 12:11:29 2009 -0700

string wrapper around String8, various fixes, shoutcast now works again.

commit 2ea52dfb1a39bf3a223ffc87855e54919e2daff7
Author: Andreas Huber <andih@google.com>
Date: Wed Apr 29 11:08:18 2009 -0700

Initial check-in of OMXNode binder interface.

commit 7880d2957f74c0d7fba7679431ff5adb3780543b
Author: Andreas Huber <andih@google.com>
Date: Wed Apr 29 10:05:01 2009 -0700

Initial check-in of both libgenesis2 and the genesis2 commandline tool.
tagefright/Android.mk
tagefright/WaveWriter.h
tagefright/play.cpp
tagefright/record.cpp
tagefright/stagefright.cpp
ef33cddcce43b2ca430aec2d99512e2667e56b13 16-Jul-2009 Chia-chi Yeh <chiachi@android.com> keystore: Fix a compile warning.
eystore/keystore_get.h
b5af325fb1d21a9295bf3009cc95e5ead4999247 10-Jul-2009 Mike Reed <reed@google.com> rename libsgl/libcorecg to libskia
ootanimation/Android.mk
03a9a3449af3e0e79e9bbcd87f8057189ab9e151 06-Jul-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
71830eaeda868d77225f72500538a0a5944f236c 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 3383df38: Merge change 6198 into donut

Merge commit '3383df385e208807b1dc5f2956f82a7f75f65fd8'

* commit '3383df385e208807b1dc5f2956f82a7f75f65fd8':
keystore: Provide a generic getter for native components.
58c714c41ac3799b0b408affd9804056070d358c 06-Jul-2009 Chung-yih Wang <cywang@google.com> am 699ca3f2: Add password field for WiFi configuration.

Merge commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91'

* commit '699ca3f2518360ea3250ff5a0e5d39e122c64a91':
Add password field for WiFi configuration.
522ea0d689f49a046483e05e8ae0cb5c22659a8c 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 24ad29c6: Merge change 6177 into donut

Merge commit '24ad29c6dbbf62096bcb41ddb2fa3975720ee625'

* commit '24ad29c6dbbf62096bcb41ddb2fa3975720ee625':
Two small checks in keymgmt.
80f4913d769babb89f5c69e1d80037394d3b25e2 06-Jul-2009 Christopher Tate <ctate@google.com> am d23d7f2d: Add a \'wipe\' operation to Bmgr

Merge commit 'd23d7f2d12c20314e1e8ff206fafc8f21745ca2d'

* commit 'd23d7f2d12c20314e1e8ff206fafc8f21745ca2d':
Add a 'wipe' operation to Bmgr
3383df385e208807b1dc5f2956f82a7f75f65fd8 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6198 into donut

* changes:
keystore: Provide a generic getter for native components.
fd70bed692859913562907f4b6681f50a90f831b 06-Jul-2009 Chia-chi Yeh <chiachi@android.com> keystore: Provide a generic getter for native components.
eystore/keystore_get.h
699ca3f2518360ea3250ff5a0e5d39e122c64a91 04-Jul-2009 Chung-yih Wang <cywang@google.com> Add password field for WiFi configuration.

1. the certtool.h is modified for avoiding the side effect,
for saving the configuration with wpa_supplicant.
2. put the loadLibrary back in CertTool.java
3. Fix incorrect JNI declarations.
eystore/certtool.h
84fcd18ecbd92df932af34568634d41d43784ea2 03-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 7de4bd9b: Merge change 6045 into donut

Merge commit '7de4bd9b40d80fd68fc746efd645e3df7442acea'

* commit '7de4bd9b40d80fd68fc746efd645e3df7442acea':
Remove the null-termination for Java string compatibility.
7d9e45b2239a66bf22e834c5208dbdd8434a33ef 03-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am d45dcbec: Merge change 5615 into donut

Merge commit 'd45dcbec856710f9478ffc5689e7cdf95d757ab8'

* commit 'd45dcbec856710f9478ffc5689e7cdf95d757ab8':
Implement the generic mini-keystore for security.
a734207fd1b73ad367855c8c12e787687b0d4b90 02-Jul-2009 Chung-yih Wang <cywang@google.com> Two small checks in keymgmt.

1. Enforce the state check in listkey().
2. Enforce the password length check.
eystore/keymgmt.c
eystore/keymgmt.h
eystore/netkeystore.c
d23d7f2d12c20314e1e8ff206fafc8f21745ca2d 02-Jul-2009 Christopher Tate <ctate@google.com> Add a 'wipe' operation to Bmgr

"bmgr wipe PACKAGE" now issues the backup transport clearBackupData() operation
for the given package.
mgr/src/com/android/commands/bmgr/Bmgr.java
fa927c046a916fceb077d1ecf2552d76e73da912 02-Jul-2009 Chung-yih Wang <cywang@google.com> Remove the null-termination for Java string compatibility.

1. Also change the keyname delimiter in CertTool.java.
2. Return NOTFOUND if the result.len==0 in the listKeys().
3. Define the keystore states in the class Keystore.
eystore/netkeystore.c
d45dcbec856710f9478ffc5689e7cdf95d757ab8 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5615 into donut

* changes:
Implement the generic mini-keystore for security.
70246ebb9b1a3c192caf7e001b45dafbdb6bbc30 28-Jun-2009 Chung-yih Wang <cywang@google.com> Implement the generic mini-keystore for security.

1. We will progressively migrate to this implementation.
2. For richc to have a quick review on the keymgmt part.
3. Add remove_key and make sure all functions are working.
4. Add permission check for get operation.
5. Return the retry count if unlock failed.
6. Add the reset operation for keystore reset.
7. Add the putfile shell command for putting the key value from file.
8. Fix the boundary issue during parsing command.
9. Use the ' ' as delimiter and reset the reply structure for each request.
10. Add change password retry count check.
11. Extract the read_marshal/write_marshal for certtool.h.
12. Remove the old implementation.
eystore/Android.mk
eystore/certtool.h
eystore/commands.c
eystore/common.h
eystore/keymgmt.c
eystore/keymgmt.h
eystore/keystore.c
eystore/keystore.h
eystore/netkeystore.c
eystore/netkeystore.h
dfe983bd7979ccb1602f29b8f9804c98411d9cd6 02-Jul-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
01ecd7bcd1f0d2a64e2c354ff0dc5a0fb2b8c907 01-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am ab4748c6: Merge change 5694 into donut

Merge commit 'ab4748c62d106d9cbc27c88ccd3d2bbda8e451bd'

* commit 'ab4748c62d106d9cbc27c88ccd3d2bbda8e451bd':
Implement persistent enable/disable of the backup manager
5e79e323570cc0e110bfe4fe50f9e9a1d884004b 30-Jun-2009 Christopher Tate <ctate@google.com> am 91717497: Use system properties to track the current transport

Merge commit '9171749700853305f3e6abbcdbd9e02f3a71d459'

* commit '9171749700853305f3e6abbcdbd9e02f3a71d459':
Use system properties to track the current transport
8c3fc63576c81139a8d16b608550568ad52237c6 30-Jun-2009 Dan Egnor <egnor@google.com> am 156411df: Use a long for restore token

Merge commit '156411df4627336b246db78cddca8248ed615b67'

* commit '156411df4627336b246db78cddca8248ed615b67':
Use a long for restore token
c16dee2aaa1f101ec91fb379a55b900391a13d20 30-Jun-2009 Christopher Tate <ctate@google.com> am c73a218c: Add some error reporting & info to bmgr\'s output

Merge commit 'c73a218c2663e6ae3ec8a9ab8b9524f95702ade9'

* commit 'c73a218c2663e6ae3ec8a9ab8b9524f95702ade9':
Add some error reporting & info to bmgr's output
6ef58a1509b9d3348a33ca5686917796c2759aa5 29-Jun-2009 Christopher Tate <ctate@google.com> Implement persistent enable/disable of the backup manager

Backup & restore is still enabled by default, but with the expectation that it
will be enabled during the course of the Setup Wizard or some other privileged
entity that has notified the user about the ramifications. While disabled,
data-changed notices will still be collected, but no backup pass will be
scheduled. When the backup manager is later enabled, any pending data-changed
notices will then be processed and the apps invoked for backup.
mgr/src/com/android/commands/bmgr/Bmgr.java
9171749700853305f3e6abbcdbd9e02f3a71d459 27-Jun-2009 Christopher Tate <ctate@google.com> Use system properties to track the current transport

This change retools the transport selection mechanism a fair bit. Transports
are now specified by name rather than by numeric ID, and the name of the
currently selected transport is stored in a persistent system property under the
name "persist.service.bkup.trans".

The name -> IBackupTransport translation is now handled by maintaining a map
from the names to the live IBackupTransport objects that correspond. The Google
transport service observer now registers and unregisters the transport as the
service goes up and down.

The bmgr command has been expanded to include real transport interrogation and
selection by name, and some documentation has been written for it.
mgr/src/com/android/commands/bmgr/Bmgr.java
156411df4627336b246db78cddca8248ed615b67 26-Jun-2009 Dan Egnor <egnor@google.com> Use a long for restore token
mgr/src/com/android/commands/bmgr/Bmgr.java
c73a218c2663e6ae3ec8a9ab8b9524f95702ade9 26-Jun-2009 Christopher Tate <ctate@google.com> Add some error reporting & info to bmgr's output
mgr/src/com/android/commands/bmgr/Bmgr.java
0da0ee6f5f1703643a3f9d8dcee8920e7a4fa41a 26-Jun-2009 Joe Onorato <joeo@android.com> am 4a64bded: Add some helpful tests scripts for backup and make bmgr restore wait until the backup is done.

Merge commit '4a64bded06a0299785c295a975e2818308eb53e2'

* commit '4a64bded06a0299785c295a975e2818308eb53e2':
Add some helpful tests scripts for backup and make bmgr restore wait until the backup is done.
4a64bded06a0299785c295a975e2818308eb53e2 26-Jun-2009 Joe Onorato <joeo@android.com> Add some helpful tests scripts for backup and make bmgr restore wait until the backup is done.
mgr/src/com/android/commands/bmgr/Bmgr.java
848358f680021f14f5e30fa68c6d4cb299fd0f3f 26-Jun-2009 Joe Onorato <joeo@android.com> am 5e8a4b84: Give the bmgr command an IRestoreObserver too.

Merge commit '5e8a4b842c20dd47b82e9915f1bd730ee1b0d46d'

* commit '5e8a4b842c20dd47b82e9915f1bd730ee1b0d46d':
Give the bmgr command an IRestoreObserver too.
5e8a4b842c20dd47b82e9915f1bd730ee1b0d46d 26-Jun-2009 Joe Onorato <joeo@android.com> Give the bmgr command an IRestoreObserver too.
mgr/src/com/android/commands/bmgr/Bmgr.java
f31868e59fbf59a8d479587c80b648fb37a166fc 25-Jun-2009 Mathias Agopian <mathias@google.com> merge master in master_gl
afed82bca9e173cabe2c2f25314b202e5c1ccbca 25-Jun-2009 Dianne Hackborn <hackbod@google.com> am 9c8dd55a: Fix bug 1829561 ("am profile" with bad filename kills process).

Merge commit '9c8dd55a9d829c29a3feee9469d8c2f27a9f5516'

* commit '9c8dd55a9d829c29a3feee9469d8c2f27a9f5516':
Fix bug 1829561 ("am profile" with bad filename kills process).
9c8dd55a9d829c29a3feee9469d8c2f27a9f5516 24-Jun-2009 Dianne Hackborn <hackbod@google.com> Fix bug 1829561 ("am profile" with bad filename kills process).

The am command is now the one that takes care of opening the target file,
handling the opened file descriptor to the process that will be profiled.
This allows you to send profile data to anywhere the shell can access, and
avoids any problems coming up from the target process trying to open the
file.
m/src/com/android/commands/am/Am.java
f73bbd042367b65780316d2335784686dedd0459 20-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
610a0af4e34c3476863200ae1db70a9c5d8b582f 19-Jun-2009 Christopher Tate <ctate@google.com> am abce4e87: Use signatures on restore

Merge commit 'abce4e8714bed26a2b37b20ad3f02cf619d71c9a'

* commit 'abce4e8714bed26a2b37b20ad3f02cf619d71c9a':
Use signatures on restore
abce4e8714bed26a2b37b20ad3f02cf619d71c9a 19-Jun-2009 Christopher Tate <ctate@google.com> Use signatures on restore

On restore now, the backup manager gets the signature blocks corresponding to
the restore set from the transport. It then validates those signatures against
the on-device app signatures, and refuses to restore data to an app whose
on-device sig block does not match the backup image's.

Also actually implement 'bmgr transport N' so that we can select the local
transport easily during runtime.
mgr/src/com/android/commands/bmgr/Bmgr.java
97b5660c97c71606d70fe622675f97a674a55c4d 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 9fbeb7da: Merge change 4337 into donut

Merge commit '9fbeb7da1318bf5b65588a759332d74540306c06'

* commit '9fbeb7da1318bf5b65588a759332d74540306c06':
Change the keystore APIs.
251c89c0a7502f4286f2484a77b685ddfe2b39d2 18-Jun-2009 Joe Onorato <joeo@android.com> am 5f15d151: checkpoint BackupDatAInput / RestoreHelper

Merge commit '5f15d151b5101fadfe6cba1e8f4aa6367e8c603e'

* commit '5f15d151b5101fadfe6cba1e8f4aa6367e8c603e':
checkpoint BackupDatAInput / RestoreHelper
9fbeb7da1318bf5b65588a759332d74540306c06 17-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4337 into donut

* changes:
Change the keystore APIs.
6d531bf0513de7778c380d649bc0e554478f78f9 16-Jun-2009 Chung-yih Wang <cywang@google.com> Change the keystore APIs.

1. simplify the keypair selection in UI.
2. add the user certificate and key into the keystore for keygen feature.
eystore/commands.c
eystore/keystore.c
eystore/keystore.h
5f15d151b5101fadfe6cba1e8f4aa6367e8c603e 16-Jun-2009 Joe Onorato <joeo@android.com> checkpoint BackupDatAInput / RestoreHelper
ackup/backup.cpp
714000456b74dfc08c5100ce38bfe8cdd54e6571 17-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am febde5fc: Merge change 4389 into donut

Merge commit 'febde5fc290eb422f78b47f393dc451394751d59'

* commit 'febde5fc290eb422f78b47f393dc451394751d59':
More bmgr work; fix clear-data signalling
f68eb500f99361541049e09eb7f9ddd6f4ef4efa 16-Jun-2009 Christopher Tate <ctate@google.com> More bmgr work; fix clear-data signalling

The 'list sets' and 'restore token#' commands from bmgr now do what they are
supposed to. At this point we see the restore target's data being cleared
properly and its agent being launched and invoked for restore.
mgr/src/com/android/commands/bmgr/Bmgr.java
69f066c8fc42b9f0acc5c41f8ffd972f8d6d0584 16-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
79423590054c909cacd0012df17cc135bd26c148 16-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 7f148d65: Merge change 4316 into donut

Merge commit '7f148d65051e577cc4a002183ec55d625b51de85'

* commit '7f148d65051e577cc4a002183ec55d625b51de85':
Revert "dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash."
Enable more debug message to debug the Camera startPreview bug.
22a9f7a52e68aecc096130c29675a1330e83f409 16-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 6297cb2e: Merge change 4287 into donut

Merge commit '6297cb2eb57c183e202744516a96b2dbbf204a09'

* commit '6297cb2eb57c183e202744516a96b2dbbf204a09':
Sketch out a 'bmgr' command line tool
8cae2daf9853cdb70826ae16cda31b9b45631c33 16-Jun-2009 Mike Lockwood <lockwood@android.com> Revert "dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash."

This reverts commit 666c11d13fbf7b8e0502d44a94ffa00597ce92eb.
umpstate/dumpstate.c
ace7f094bf07bbd90cb998b9462e4f2d101a498c 16-Jun-2009 Christopher Tate <ctate@google.com> Sketch out a 'bmgr' command line tool

Not finished, but eventually will allow adb shell access to the Backup Manager
for testing purposes etc.
mgr/Android.mk
mgr/MODULE_LICENSE_APACHE2
mgr/NOTICE
mgr/bmgr
mgr/src/com/android/commands/bmgr/Bmgr.java
d10a2dec1e486a4dda5aba4a1d51056e6c397726 12-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 3cf0dd6a: Merge change 3940 into donut

Merge commit '3cf0dd6ad86e725f5170f6484afa90ba9ea1e4c5'

* commit '3cf0dd6ad86e725f5170f6484afa90ba9ea1e4c5':
dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash.
3cf0dd6ad86e725f5170f6484afa90ba9ea1e4c5 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3940 into donut

* changes:
dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash.
666c11d13fbf7b8e0502d44a94ffa00597ce92eb 11-Jun-2009 Mike Lockwood <lockwood@android.com> dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash.

Signed-off-by: Mike Lockwood <lockwood@android.com>
umpstate/dumpstate.c
ec167e672d2723db8ceac4f12bc6a62a0922c546 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am db8a6ae6: Merge change 3709 into donut

Merge commit 'db8a6ae6bbd8cbb17fb79085ffb9d3fc539fe5c2'

* commit 'db8a6ae6bbd8cbb17fb79085ffb9d3fc539fe5c2':
Provide the Keystore feature in the framework.
10e371f18247dc7fb64bfa0f0528501acc17be79 10-Jun-2009 Chung-yih Wang <cywang@google.com> Provide the Keystore feature in the framework.

-- added the keystore library for Java application.
-- changed the marshalling of the keystore function return.
eystore/commands.c
eystore/keystore.c
ec721b2f1e33dcf97a21c6d937e3cb94afd8eca5 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 54d63246: Merge change 3427 into donut

Merge commit '54d632468c0cd53087d17420d9d383bc29553d36'

* commit '54d632468c0cd53087d17420d9d383bc29553d36':
First version of the keystore service.
54d632468c0cd53087d17420d9d383bc29553d36 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3427 into donut

* changes:
First version of the keystore service.
8229048cffef8c4ad06e0d2c6cbeeb802953e7db 08-Jun-2009 Chung-yih Wang <cywang@google.com> First version of the keystore service.

The keystore service is protected by the user 'keystore'. Only keystore
user/group can access the key content. All users are able to do the
following commands from shell as well:
listcerts
listuserkeys
installcert
removecert
installuserkey
removeuserkey
eystore/Android.mk
eystore/commands.c
eystore/keystore.c
eystore/keystore.h
51c8a3e00e6cffe42d25d1ac87d417e925d8a84d 06-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
488e8aaca2207c90973b0c475c2a9591846411e5 05-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am a80cc6eb: Merge change 3184 into donut

Merge commit 'a80cc6ebe7426792927cddbf191bb7435a06fc5e'

* commit 'a80cc6ebe7426792927cddbf191bb7435a06fc5e':
The '-D' option for the 'am' command appears to be optional, so reflect that in the usage.
1b6aee15157f0236ac1fc7885735609bf27171d3 05-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 2a318867: Merge change 3203 into donut

Merge commit '2a3188672ab2b65c0ce7c9c598a463e382c47696'

* commit '2a3188672ab2b65c0ce7c9c598a463e382c47696':
rename a few files to camel-case, add copyright notices
a80cc6ebe7426792927cddbf191bb7435a06fc5e 05-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3184 into donut

* changes:
The '-D' option for the 'am' command appears to be optional, so reflect that in the usage.
8ae2335a3c93d0c00e998fdec18f64dfe43b94cb 04-Jun-2009 Mathias Agopian <mathias@google.com> rename a few files to camel-case, add copyright notices
ackup/backup.cpp
c62a216a2bb877b3b8c968cc90ab6c1f10605edc 04-Jun-2009 Marco Nelissen <marcone@google.com> The '-D' option for the 'am' command appears to be optional, so reflect that in the usage.
m/src/com/android/commands/am/Am.java
5fbcaf9a90ca57b81739112c20859ef55fe18336 01-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
3b4062eeb01be33951ba214e027da523cf09f8b1 01-Jun-2009 Mathias Agopian <mathias@google.com> get rid of utils.h
untime/main_runtime.cpp
2da99bdaa1712f00525e6a84b58044332cb1baef 27-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master

Conflicts:
include/ui/Rect.h
libs/ui/ISurfaceComposer.cpp
2e37a0ca87ed1ac6c74018850aa1c29b66f6771c 26-May-2009 Andy McFadden <fadden@android.com> Fix sim-eng build.
untime/ServiceManager.h
385bb79ebb436e5672915eac2fc1a4fcdedf88b6 23-May-2009 Dianne Hackborn <hackbod@google.com> am b181118b: Define TARGET_CPU_ABI for finding native code in .apks

Merge commit 'b181118b6e58c0014da4e9d52bf38548adc73a8a'

* commit 'b181118b6e58c0014da4e9d52bf38548adc73a8a':
Define TARGET_CPU_ABI for finding native code in .apks
b181118b6e58c0014da4e9d52bf38548adc73a8a 22-May-2009 Dianne Hackborn <hackbod@google.com> Define TARGET_CPU_ABI for finding native code in .apks
m/src/com/android/commands/pm/Pm.java
c518080c116b5c9a498c25ff3c76b778cd3d6598 22-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 9d892a8e: Merge change 2336 into donut

Merge commit '9d892a8e3037fd2f6d692137cd5d91acc46ddf5a'

* commit '9d892a8e3037fd2f6d692137cd5d91acc46ddf5a':
dumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.
9db377e3de76493e7b2108bca2190cee5004c403 22-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 9681a5e0: Merge change 2230 into donut

Merge commit '9681a5e06badbd817342e8f6be4ffbe9102c1e98'

* commit '9681a5e06badbd817342e8f6be4ffbe9102c1e98':
runtime: Add CAP_SYS_NICE to the system server capabilities list so it
9d892a8e3037fd2f6d692137cd5d91acc46ddf5a 22-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2336 into donut

* changes:
dumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.
472be48007f8c3a9b462b8c9024cb4a0a0beac04 22-May-2009 Mike Lockwood <lockwood@android.com> dumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.

Signed-off-by: Mike Lockwood <lockwood@android.com>
umpstate/dumpstate.c
9681a5e06badbd817342e8f6be4ffbe9102c1e98 22-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2230 into donut

* changes:
runtime: Add CAP_SYS_NICE to the system server capabilities list so it can (eventually) move arbitrary threads into different cgroups
947f4f4d384ea26eb2145cc070a3eed42c59534a 22-May-2009 Mathias Agopian <mathias@google.com> merge master to master_gl
ac31a3b8b09aba1c5ebc73f0cf65cac2210aa6b7 22-May-2009 Mathias Agopian <mathias@google.com> this should fix the build
ootanimation/BootAnimation.cpp
ootanimation/bootanimation_main.cpp
e755d649771706b24b34e545476c8f2c8f9e09f6 22-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 69a6c3eb: Merge change 2292 into donut

Merge commit '69a6c3ebd46a8de0e896747757f364322c12608d'

* commit '69a6c3ebd46a8de0e896747757f364322c12608d':
split boot animation out of SurfaceFlinger
627e7b50be41e4fdee758a1bfad3a55de56b4e27 22-May-2009 Mathias Agopian <mathias@google.com> split boot animation out of SurfaceFlinger

Conflicts:

data/etc/platform.xml
ootanimation/Android.mk
ootanimation/BootAnimation.cpp
ootanimation/BootAnimation.h
ootanimation/bootanimation_main.cpp
ca63bb72ef82d392c759a2bd507b7410ea82eacf 22-May-2009 San Mehat <san@google.com> runtime: Add CAP_SYS_NICE to the system server capabilities list so it
can (eventually) move arbitrary threads into different cgroups

Signed-off-by: San Mehat <san@google.com>
untime/main_runtime.cpp
57ee738a5165a1c5aed5127b695dea0c2939803f 20-May-2009 Joe Onorato <joeo@android.com> am 5595a937: this might fix the build

Merge commit '5595a93722cc440cee712a73b268c9f61399d876'

* commit '5595a93722cc440cee712a73b268c9f61399d876':
this might fix the build
5595a93722cc440cee712a73b268c9f61399d876 20-May-2009 Joe Onorato <joeo@android.com> this might fix the build
ackup/Android.mk
0795272aa226f4e965968a03daddc53ce30b7cda 20-May-2009 Mathias Agopian <mathias@google.com> move libbinder's header files under includes/binder
pp_process/app_main.cpp
umpsys/dumpsys.cpp
untime/ServiceManager.cpp
untime/main_runtime.cpp
ervice/service.cpp
urfaceflinger/main_surfaceflinger.cpp
ystem_server/library/system_init.cpp
ystem_server/system_main.cpp
25ba5b6564224dceefa086b5c439ef28dad530ca 19-May-2009 Mathias Agopian <mathias@google.com> checkpoint: split libutils into libutils + libbinder
umpsys/Android.mk
untime/Android.mk
ervice/Android.mk
urfaceflinger/Android.mk
ystem_server/Android.mk
ystem_server/library/Android.mk
d2110dbce071a236b6176de344ca797b737542eb 19-May-2009 Joe Onorato <joeo@android.com> Hook up the backup data writer, and add a utility to read the backup data files.
ackup/Android.mk
ackup/NOTICE
ackup/backup.cpp
95fc68f24a2a93e5664e2234abcfe479d385cc05 20-May-2009 Dianne Hackborn <hackbod@google.com> Fix issue where apps could prevent the user from going home.

Now we have a 5-second time after home is pressed, during which
only the home app (and the status bar) can switch to another app.
After that time, any start activity requests that occurred will
be executed, to allow things like alarms to be displayed. Also
if during that time the user launches another app, the pending
starts will be executed without resuming their activities and
the one they started placed at the top and executed.
m/src/com/android/commands/am/Am.java
abc25e3679a9de2625eadf3e3050a6973f7a6c71 14-May-2009 Dan Egnor <egnor@google.com> Add intent for gservices override, and handle empty arguments properly
in the "am" utility.
m/am
ade3ecad94d1f4431576f53bae26c35efbf7a2c9 12-May-2009 Dianne Hackborn <hackbod@google.com> Implement issue #1783881 (manifest option for adb-install-only apps)

You can now use android:testOnly="true" to not allow your .apk to be installed
as a normal app. The only way to do so is with the pm command and giving the
-t option, which sets a new INSTALL_ALLOW_TEST flag when installing.

I also used this to clean up the install API... actually, mostly to hide
it, since it is not accessible to apps so shouldn't be in the SDK. We
will be doing some more work on it, so this will prevent adding yet
another backwards-compatibility-for-no-reason version.
m/src/com/android/commands/pm/Pm.java
c64322c35212e919906ffd66118c7d5d3ad36636 28-Apr-2009 Jacek Surazski <jaceks@google.com> PackageManager keeps track of who installed what.

Stores the package name of the installer app in packages.xml
m/src/com/android/commands/pm/Pm.java
851a54143c15a1c33361efae2db3f7f45059b472 08-May-2009 Dianne Hackborn <hackbod@google.com> Implement targetSdkVersion and maxSdkVersion, plus version code names.

This adds new attributes for specifying a targetSdkVersion and maxSdkVersion.
There is a new ApplicationInfo flag that is set if the application has set
its targetSdkVersion to the current platform or later. Also you can now
use a string for minSdkVersion and targetSdkVerion, to indicate you are
building against a development tree instead of an official platform.
m/src/com/android/commands/pm/Pm.java
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
m/src/com/android/commands/pm/Pm.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
umpstate/dumpstate.c
umpstate/dumpstate.h
f5b4b98fada53d91c4c2ebeb5a1d33ccc95c94d2 06-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136745
m/src/com/android/commands/am/Am.java
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
umpstate/dumpstate.c
umpstate/dumpstate.h
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
m/Android.mk
m/MODULE_LICENSE_APACHE2
m/NOTICE
m/am
m/src/com/android/commands/am/Am.java
pp_process/Android.mk
pp_process/MODULE_LICENSE_APACHE2
pp_process/NOTICE
pp_process/app_main.cpp
umpstate/Android.mk
umpstate/dumpstate.c
umpstate/dumpstate.h
umpstate/utils.c
umpsys/Android.mk
umpsys/MODULE_LICENSE_APACHE2
umpsys/NOTICE
umpsys/dumpsys.cpp
me/Android.mk
me/MODULE_LICENSE_APACHE2
me/NOTICE
me/ime
me/src/com/android/commands/ime/Ime.java
nput/Android.mk
nput/MODULE_LICENSE_APACHE2
nput/NOTICE
nput/input
nput/src/com/android/commands/input/Input.java
nstalld/Android.mk
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
nstalld/utils.c
m/Android.mk
m/MODULE_LICENSE_APACHE2
m/NOTICE
m/pm
m/src/com/android/commands/pm/Pm.java
untime/Android.mk
untime/MODULE_LICENSE_APACHE2
untime/NOTICE
untime/ServiceManager.cpp
untime/ServiceManager.h
untime/SignalHandler.cpp
untime/SignalHandler.h
untime/main_runtime.cpp
ervice/Android.mk
ervice/MODULE_LICENSE_APACHE2
ervice/NOTICE
ervice/service.cpp
ervicemanager/Android.mk
ervicemanager/bctest.c
ervicemanager/binder.c
ervicemanager/binder.h
ervicemanager/service_manager.c
urfaceflinger/Android.mk
urfaceflinger/main_surfaceflinger.cpp
vc/Android.mk
vc/MODULE_LICENSE_APACHE2
vc/NOTICE
vc/src/com/android/commands/svc/DataCommand.java
vc/src/com/android/commands/svc/PowerCommand.java
vc/src/com/android/commands/svc/Svc.java
vc/src/com/android/commands/svc/WifiCommand.java
vc/svc
ystem_server/Android.mk
ystem_server/MODULE_LICENSE_APACHE2
ystem_server/NOTICE
ystem_server/library/Android.mk
ystem_server/library/system_init.cpp
ystem_server/system_main.cpp
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
m/Android.mk
m/MODULE_LICENSE_APACHE2
m/NOTICE
m/am
m/src/com/android/commands/am/Am.java
pp_process/Android.mk
pp_process/MODULE_LICENSE_APACHE2
pp_process/NOTICE
pp_process/app_main.cpp
umpstate/Android.mk
umpstate/dumpstate.c
umpstate/dumpstate.h
umpstate/utils.c
umpsys/Android.mk
umpsys/MODULE_LICENSE_APACHE2
umpsys/NOTICE
umpsys/dumpsys.cpp
me/Android.mk
me/MODULE_LICENSE_APACHE2
me/NOTICE
me/ime
me/src/com/android/commands/ime/Ime.java
nput/Android.mk
nput/MODULE_LICENSE_APACHE2
nput/NOTICE
nput/input
nput/src/com/android/commands/input/Input.java
nstalld/Android.mk
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
nstalld/utils.c
m/Android.mk
m/MODULE_LICENSE_APACHE2
m/NOTICE
m/pm
m/src/com/android/commands/pm/Pm.java
untime/Android.mk
untime/MODULE_LICENSE_APACHE2
untime/NOTICE
untime/ServiceManager.cpp
untime/ServiceManager.h
untime/SignalHandler.cpp
untime/SignalHandler.h
untime/main_runtime.cpp
ervice/Android.mk
ervice/MODULE_LICENSE_APACHE2
ervice/NOTICE
ervice/service.cpp
ervicemanager/Android.mk
ervicemanager/bctest.c
ervicemanager/binder.c
ervicemanager/binder.h
ervicemanager/service_manager.c
urfaceflinger/Android.mk
urfaceflinger/main_surfaceflinger.cpp
vc/Android.mk
vc/MODULE_LICENSE_APACHE2
vc/NOTICE
vc/src/com/android/commands/svc/DataCommand.java
vc/src/com/android/commands/svc/PowerCommand.java
vc/src/com/android/commands/svc/Svc.java
vc/src/com/android/commands/svc/WifiCommand.java
vc/svc
ystem_server/Android.mk
ystem_server/MODULE_LICENSE_APACHE2
ystem_server/NOTICE
ystem_server/library/Android.mk
ystem_server/library/system_init.cpp
ystem_server/system_main.cpp
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
umpstate/dumpstate.c
umpstate/dumpstate.h
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
umpstate/dumpstate.c
nstalld/commands.c
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
nstalld/commands.c
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
untime/Android.mk
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
umpstate/Android.mk
umpstate/dumpstate
umpstate/dumpstate.c
umpstate/dumpstate.h
umpstate/utils.c
me/Android.mk
me/MODULE_LICENSE_APACHE2
me/NOTICE
me/ime
me/src/com/android/commands/ime/Ime.java
m/src/com/android/commands/pm/Pm.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
m/src/com/android/commands/pm/Pm.java
vc/src/com/android/commands/svc/DataCommand.java
vc/src/com/android/commands/svc/PowerCommand.java
vc/src/com/android/commands/svc/Svc.java
vc/src/com/android/commands/svc/WifiCommand.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
m/Android.mk
m/MODULE_LICENSE_APACHE2
m/NOTICE
m/am
m/src/com/android/commands/am/Am.java
pp_process/Android.mk
pp_process/MODULE_LICENSE_APACHE2
pp_process/NOTICE
pp_process/app_main.cpp
umpstate/Android.mk
umpstate/dumpstate
umpsys/Android.mk
umpsys/MODULE_LICENSE_APACHE2
umpsys/NOTICE
umpsys/dumpsys.cpp
nput/Android.mk
nput/MODULE_LICENSE_APACHE2
nput/NOTICE
nput/input
nput/src/com/android/commands/input/Input.java
nstalld/Android.mk
nstalld/commands.c
nstalld/installd.c
nstalld/installd.h
nstalld/utils.c
m/Android.mk
m/MODULE_LICENSE_APACHE2
m/NOTICE
m/pm
m/src/com/android/commands/pm/Pm.java
untime/Android.mk
untime/MODULE_LICENSE_APACHE2
untime/NOTICE
untime/ServiceManager.cpp
untime/ServiceManager.h
untime/SignalHandler.cpp
untime/SignalHandler.h
untime/main_runtime.cpp
ervice/Android.mk
ervice/MODULE_LICENSE_APACHE2
ervice/NOTICE
ervice/service.cpp
ervicemanager/Android.mk
ervicemanager/bctest.c
ervicemanager/binder.c
ervicemanager/binder.h
ervicemanager/service_manager.c
urfaceflinger/Android.mk
urfaceflinger/main_surfaceflinger.cpp
vc/Android.mk
vc/MODULE_LICENSE_APACHE2
vc/NOTICE
vc/src/com/android/commands/svc/PowerCommand.java
vc/src/com/android/commands/svc/Svc.java
vc/svc
ystem_server/Android.mk
ystem_server/MODULE_LICENSE_APACHE2
ystem_server/NOTICE
ystem_server/library/Android.mk
ystem_server/library/system_init.cpp
ystem_server/system_main.cpp