Commit Graph

30858 Commits

Author SHA1 Message Date
Christopher Tate
46cc43c6fa Full backup/restore now handles OBBs sensibly
OBB backup/ restore is no longer handled within the target app
process.  This is done to avoid having to require that OBB-using
apps have full read/write permission for external storage.

The new OBB backup service is a new component running in the
same app as the already-existing shared storage backup agent.
The backup infrastructure delegates backup/restore of apps'
OBB contents to this component (because the system process
may not itself read/write external storage).

From the command line, OBB backup is enabled by using new
-obb / -noobb flags with adb backup.  The default is noobb.

Finally, a couple of nit fixes:

- buffer-size mismatch between the writer and reader of chunked
  file data has been corrected; now the reading side won't be
  issuing an extra pipe read per chunk.

- bu now explicitly closes the transport socket fd after
  adopting it. This was benign but triggered a logged
  warning about leaked fds.

Bug: 6718844
Change-Id: Ie252494e2327e9ab97cf9ed87c298410a8618492
2013-03-07 13:47:20 -08:00
Dianne Hackborn
32884c376f am 6fea1665: am 1ab64b81: Merge "Add new sample code for writing a ViewGroup." into jb-mr2-dev
* commit '6fea1665a91dafa49b78d1c92c53bb0fa1736020':
  Add new sample code for writing a ViewGroup.
2013-03-07 00:40:44 +00:00
Dianne Hackborn
1ab64b819b Merge "Add new sample code for writing a ViewGroup." into jb-mr2-dev 2013-03-07 00:34:55 +00:00
Jim Miller
a9e81064e9 Merge "Fix widget update issue" 2013-03-06 22:33:22 +00:00
Dianne Hackborn
44920907ce am 95529f73: am f6fcea60: Merge "Fix issue #8325007: EyeEm app crashes on launch- NPE at..." into jb-mr2-dev
* commit '95529f730ccd7dfafb4bc2024aa156928db3c04c':
  Fix issue #8325007: EyeEm app crashes on launch- NPE at...
2013-03-06 21:48:39 +00:00
Dianne Hackborn
7caab0ff2d Add new sample code for writing a ViewGroup.
Change-Id: Id6714b062884c9ed60703e5c199f16683c00a800
2013-03-06 13:47:04 -08:00
Dianne Hackborn
f6fcea6027 Merge "Fix issue #8325007: EyeEm app crashes on launch- NPE at..." into jb-mr2-dev 2013-03-06 21:40:56 +00:00
Dianne Hackborn
474690caf8 Fix issue #8325007: EyeEm app crashes on launch- NPE at...
...android.view.ViewGroup.measureChildWithMargins

The app is doing grungy stuff with trying to insert its own
views inside the window decor.  This new custom layout of the
action bar was assuming it would get fitSystemWindows() called
at which point it would retrieve all of its child views...  but
with the app doing this, it blocks the call down to
fitSystemWindows() and breaks us.  So we now make the layout
manager more robust and ensure it has retrieved its children
when measuring.

Also fix an issue where the xlarge layouts were not updated.

Change-Id: I6c69f26f26b59a6aa8fa1e5788288ffce0b490ca
2013-03-06 11:33:26 -08:00
John Spurlock
4a682c2c8f Merge "Quick typo fix to View.java docs." 2013-03-06 18:39:33 +00:00
Amith Yamasani
adb8e146a5 am 3eb3774f: am 67df64b3: Shared accounts and sharing of apps
* commit '3eb3774f8e54a6f43dcf4f27e1b7a62676791ff6':
  Shared accounts and sharing of apps
2013-03-06 18:37:32 +00:00
John Spurlock
7eae2d5d97 Quick typo fix to View.java docs.
navagation -> navigation

Change-Id: I0afd46824afc9a9aedcfc383e633b4bed6b28918
2013-03-06 12:57:05 -05:00
Amith Yamasani
67df64b3a4 Shared accounts and sharing of apps
API and preliminary implementation for sharing primary user accounts with a secondary user.
AbstractAccountAuthenticator has new methods to retrieve and apply a bundle of credentials
to clone an account from the primary to a restricted secondary user. The AccountManagerService
initiates the account clone when it starts up the user and detects that the user has
a shared account registered that hasn't been converted to a real account.

AccountManager also has new hidden APIs to add/remove/get shared accounts. There might be
further improvements to this API to make shared accounts hidden/visible to select apps.

AccountManagerService has a new table to store the shared account information.

Added ability in PackageManager to install and uninstall packages for a secondary user. This
is required when the primary user selects a few apps to share with a restricted user.

Remove shared accounts from secondary users when primary user removes the account.

Change-Id: I9378ed0d8c1cc66baf150a4bec0ede56f6f8b06b
2013-03-06 09:49:44 -08:00
Przemyslaw Szczepaniak
628041d908 am e44534be: am 7341786b: Forgot to rename constructor to match class name.
* commit 'e44534be8708060d7561638c3c17849ec55981d8':
  Forgot to rename constructor to match class name.
2013-03-06 16:53:57 +00:00
Przemyslaw Szczepaniak
ccb922b4c2 am e634d787: am fcf671be: Fix EBADF in TTS synthesizeToFile method.
* commit 'e634d787e458abf45f0a6cf235b3943ca70fcbd7':
  Fix EBADF in TTS synthesizeToFile method.
2013-03-06 16:53:54 +00:00
Mathias Agopian
3205ebf67b am 563c374f: am f4d6f153: Merge "remove suppor for SurfaceControl.FX_SURFACE_SCREENSHOT" into jb-mr2-dev
* commit '563c374faf2c9e2741e0c73edff22237aa0562e5':
  remove suppor for SurfaceControl.FX_SURFACE_SCREENSHOT
2013-03-06 16:53:51 +00:00
Dianne Hackborn
12e08ca987 am 01412780: am f217145b: Merge "A few small missing things from the custom action bar layout." into jb-mr2-dev
* commit '01412780212c70c34e727ac92d40d416cbc0c188':
  A few small missing things from the custom action bar layout.
2013-03-06 16:53:45 +00:00
Przemyslaw Szczepaniak
7341786b13 Forgot to rename constructor to match class name.
Change-Id: I7e66c3dd26ec7f8be381b0dfd87ac686665206cd
2013-03-06 10:04:07 +00:00
Przemyslaw Szczepaniak
fcf671be89 Fix EBADF in TTS synthesizeToFile method.
Recent TTS change altered how the TextToSpeech.synthesizeToFile method
operates. Previously, synthesis service was responsible for creating
output file. Now, client API creates a file and then sends opened file
descriptor using ParcelFileDescriptor.

On service side, I forgot to keep a reference to a ParcelFileDescriptor object.
When GC was removing it, it was closing underlying file descriptor, resulting
in a EBADF error for all following writes to the output file.

This change makes use of a ParcelFileDescriptor.AutoCloseOutputStream to keep a
reference to the ParcelFileDescriptor. It will be referenced until we are done
with writing.

Change-Id: I8327af0eaeabaebfbbd8816d959783e89086a7c5
2013-03-06 09:27:11 +00:00
Mathias Agopian
f4d6f153e6 Merge "remove suppor for SurfaceControl.FX_SURFACE_SCREENSHOT" into jb-mr2-dev 2013-03-06 03:52:50 +00:00
Dianne Hackborn
f217145b56 Merge "A few small missing things from the custom action bar layout." into jb-mr2-dev 2013-03-06 02:20:04 +00:00
Dianne Hackborn
7cf71fbdc3 A few small missing things from the custom action bar layout.
Change-Id: I91e0b43ccf92d5c9541f80220922951acb0795e7
2013-03-05 18:00:12 -08:00
Victoria Lease
807c5e2adf am 956e0df9: am 913f3c8f: am 263554ae: am 7d4e52ba: Merge "FIX Null Pointer Exception on dialog cancel"
* commit '956e0df9222296f7dd5f5a997462168ead03a30a':
  FIX Null Pointer Exception on dialog cancel
2013-03-05 23:58:26 +00:00
Victoria Lease
54afd76fc0 am ac112cac: am b2f91e7b: am 8ef243cf: am f45efd27: Merge "Audio continue to played even if paused manually"
* commit 'ac112cace6ded8b143179f0a6b03355b24e025bb':
  Audio continue to played even if paused manually
2013-03-05 23:58:23 +00:00
Victoria Lease
913f3c8f17 am 263554ae: am 7d4e52ba: Merge "FIX Null Pointer Exception on dialog cancel"
* commit '263554ae5f51fe1181c0c80123ec7f489e124f1a':
  FIX Null Pointer Exception on dialog cancel
2013-03-05 23:53:48 +00:00
Victoria Lease
b2f91e7b23 am 8ef243cf: am f45efd27: Merge "Audio continue to played even if paused manually"
* commit '8ef243cf861044eec35ee3d8207561251e34c77c':
  Audio continue to played even if paused manually
2013-03-05 23:53:46 +00:00
Victoria Lease
263554ae5f am 7d4e52ba: Merge "FIX Null Pointer Exception on dialog cancel"
* commit '7d4e52baee6fe269280dbb55abe9b4fa1a1c1d8b':
  FIX Null Pointer Exception on dialog cancel
2013-03-05 15:51:19 -08:00
Victoria Lease
8ef243cf86 am f45efd27: Merge "Audio continue to played even if paused manually"
* commit 'f45efd276c9b09adcb97ea43afc806731583aac7':
  Audio continue to played even if paused manually
2013-03-05 15:51:16 -08:00
Victoria Lease
7d4e52baee Merge "FIX Null Pointer Exception on dialog cancel" 2013-03-05 23:25:16 +00:00
Jim Miller
21ace3f34f Fix widget update issue
This fixes an issue where widgets weren't being updated.  It
was caused by creating widgets with the wrong package id.

Keyguard used to be identified with package "android" when it
was running in the system proces.  Now that it's separate, we need
to explicitly pass in the package name for keyguard ("com.android.keyguard")
when we allocate app widget ids.

Change-Id: I48e1b78d97aa3d0271773219e477d3b741994901
2013-03-05 15:07:33 -08:00
Fabrice Di Meglio
844efa911f am 80273c6b: am 5f51fd69: Merge "Make Spinner widget RTL-aware (part 2)" into jb-mr2-dev
* commit '80273c6b5973d7d4d100a35f6646af45a3179740':
  Make Spinner widget RTL-aware (part 2)
2013-03-05 22:29:22 +00:00
Fabrice Di Meglio
b0359666b4 am cc2e3c05: am 8e440a6c: Merge "Improve RTL code for RelativeLayout" into jb-mr2-dev
* commit 'cc2e3c05d2a0f58e67ed00e1ee1f08150d78ffcf':
  Improve RTL code for RelativeLayout
2013-03-05 22:29:19 +00:00
Fabrice Di Meglio
5f51fd6970 Merge "Make Spinner widget RTL-aware (part 2)" into jb-mr2-dev 2013-03-05 22:23:33 +00:00
Fabrice Di Meglio
8e440a6c1a Merge "Improve RTL code for RelativeLayout" into jb-mr2-dev 2013-03-05 22:20:30 +00:00
Mathias Agopian
11e7d88d14 remove suppor for SurfaceControl.FX_SURFACE_SCREENSHOT
the window manager can now use the SurfaceControl.screenshot
API with a "regular" surface.

Change-Id: I76bed81d5e7b078ea1b3e8f96814aba32e9d5405
2013-03-05 14:14:55 -08:00
Scott Main
ae634d2a61 am 3c760619: am 892b9794: am 47c59b48: am 01798b05: am 76d85763: am 0f1259cc: am 8c82d250: Merge "docs: clarify startActivity" into jb-mr1.1-docs
* commit '3c76061952ab5a120b7a4beba08b0f8fbc4d3b38':
  docs: clarify startActivity
2013-03-05 21:25:24 +00:00
Scott Main
892b979478 am 47c59b48: am 01798b05: am 76d85763: am 0f1259cc: am 8c82d250: Merge "docs: clarify startActivity" into jb-mr1.1-docs
* commit '47c59b48357d875a6a0278e945e4c08700886b37':
  docs: clarify startActivity
2013-03-05 21:16:45 +00:00
Scott Main
47c59b4835 am 01798b05: am 76d85763: am 0f1259cc: am 8c82d250: Merge "docs: clarify startActivity" into jb-mr1.1-docs
* commit '01798b0553ffd504b0012a8f3ffb7a8d3c1be641':
  docs: clarify startActivity
2013-03-05 13:13:48 -08:00
Fabrice Di Meglio
f80ceed450 Make Spinner widget RTL-aware (part 2)
See bug #8159072 Spinner widget should be RTL'ized

Change-Id: I3f9368f242a027852bf13a7ce4b760de1e1c2fb2
2013-03-05 13:12:13 -08:00
Scott Main
01798b0553 am 76d85763: am 0f1259cc: am 8c82d250: Merge "docs: clarify startActivity" into jb-mr1.1-docs
* commit '76d857639efa3e5fd01553a26b6742a6895d189f':
  docs: clarify startActivity
2013-03-05 13:09:44 -08:00
Dianne Hackborn
ee61a7fb95 am 530b2b1c: am a5513616: Merge "Add new WindowId for cross-process monitoring of focus." into jb-mr2-dev
* commit '530b2b1c98e3a3d86fd90cd91a08005370b8aa49':
  Add new WindowId for cross-process monitoring of focus.
2013-03-05 21:08:13 +00:00
Fabrice Di Meglio
d5ffc79fc8 Improve RTL code for RelativeLayout
- instead of passing the screen size as a constant for computing the
layout size in RTL mode, we just use a real constant. Any value would
work actually, as soon as the value would not be null.

Change-Id: If9f5b38afa88938db36a795bfc8a403ad660726b
2013-03-05 13:07:08 -08:00
Scott Main
0f1259ccb7 am 8c82d250: Merge "docs: clarify startActivity" into jb-mr1.1-docs
* commit '8c82d250723a2ae8f384c6602424a38a1ca101eb':
  docs: clarify startActivity
2013-03-05 13:03:25 -08:00
Philip Milne
a235362152 GridLayout diagnostics.
Add null check for:

https://googleplex-android-review.git.corp.google.com/#/c/183792/

Change-Id: Ic8ef7b6749b6d2568ed4e4b3b1fa4ad6659c70eb
2013-03-05 12:21:43 -08:00
Dianne Hackborn
07a55b376c Merge "Welcome, Key Lime Pie." 2013-03-05 19:50:54 +00:00
Philip Milne
0e051852e5 Merge "Provide (general) mecahnism for users of GridLayout to either suppress or react to diagnostics." 2013-03-05 19:48:23 +00:00
Dianne Hackborn
5d2bfa1604 Welcome, Key Lime Pie.
Change-Id: I00ebaffda975b368aa5f727963899e80a233c744
2013-03-05 10:28:34 -08:00
Dianne Hackborn
9dd28324a3 am 4d1079d4: am 9c9aec72: Merge "Fix issue #8311263: Corrupted UI across all tabs in People app" into jb-mr2-dev
* commit '4d1079d4102c591846b777a84a988e18cf8d3c7e':
  Fix issue #8311263: Corrupted UI across all tabs in People app
2013-03-05 17:38:32 +00:00
Dianne Hackborn
a55136169e Merge "Add new WindowId for cross-process monitoring of focus." into jb-mr2-dev 2013-03-05 17:37:43 +00:00
Dianne Hackborn
9c9aec721a Merge "Fix issue #8311263: Corrupted UI across all tabs in People app" into jb-mr2-dev 2013-03-05 17:34:40 +00:00
Dianne Hackborn
e3f23a36d8 Add new WindowId for cross-process monitoring of focus.
This is a class representing a window and providing limited
interaction with it, which can be handed across processes.

Change-Id: I22885f2064a9cc8c68d690a5858c2e28bbb6a0f3
2013-03-05 09:33:48 -08:00