summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Full local backup infrastructureChristopher Tate2011-05-1039-145/+2055
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* am 63c5a2bc: am e4e8dffd: am 0d5196b9: am 5f8f0a0d: Merge "Doc change: add ↵Dirk Dougherty2011-05-1013-20/+1850
|\ | | | | | | | | | | | | Android 3.1 highlights and version notes." into honeycomb-mr1 * commit '63c5a2bc39839804442ba2800b6d974d0391f2cc': Doc change: add Android 3.1 highlights and version notes.
| * am e4e8dffd: am 0d5196b9: am 5f8f0a0d: Merge "Doc change: add Android 3.1 ↵Dirk Dougherty2011-05-1013-20/+1850
| |\ | | | | | | | | | | | | | | | | | | highlights and version notes." into honeycomb-mr1 * commit 'e4e8dffd41c0f7aaf005418b71cae7738ad868d2': Doc change: add Android 3.1 highlights and version notes.
| | * am 0d5196b9: am 5f8f0a0d: Merge "Doc change: add Android 3.1 highlights and ↵Dirk Dougherty2011-05-1013-20/+1850
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | version notes." into honeycomb-mr1 * commit '0d5196b972044da44a844acd9cdffde9d5aa696d': Doc change: add Android 3.1 highlights and version notes.
| | | * am 5f8f0a0d: Merge "Doc change: add Android 3.1 highlights and version ↵Dirk Dougherty2011-05-1013-20/+1850
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | notes." into honeycomb-mr1 * commit '5f8f0a0d40675bc4d373121ffdd22730f3701662': Doc change: add Android 3.1 highlights and version notes.
| | | | * Merge "Doc change: add Android 3.1 highlights and version notes." into ↵Dirk Dougherty2011-05-0913-20/+1850
| | | | |\ | | | | | | | | | | | | | | | | | | honeycomb-mr1
| | | | | * Doc change: add Android 3.1 highlights and version notes.Dirk Dougherty2011-05-0913-20/+1850
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifbc7df004d8aca9073d6397fad282a57ad4f1b74
* | | | | | am 315595d1: am 6b2c8f00: am fef7b625: am 7f3cf449: Merge "docs: update ↵Scott Main2011-05-1014-1247/+1129
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | screen support doc to de-emphasize support for 1.5 this includes a variety of other revisions to reorganize some of the content in the main document and also add separate documents for how to enab * commit '315595d10dfd4b8fe32cfe45a53f9e342bf0a699': docs: update screen support doc to de-emphasize support for 1.5 this includes a variety of other revisions to reorganize some of the content in the main document and also add separate documents for how to enable screen filtering and add screen support on 1.5
| * | | | | am 6b2c8f00: am fef7b625: am 7f3cf449: Merge "docs: update screen support ↵Scott Main2011-05-1014-1247/+1129
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | doc to de-emphasize support for 1.5 this includes a variety of other revisions to reorganize some of the content in the main document and also add separate documents for how to enable screen fil * commit '6b2c8f00c95d05a8ca410ff74451fd0701f36119': docs: update screen support doc to de-emphasize support for 1.5 this includes a variety of other revisions to reorganize some of the content in the main document and also add separate documents for how to enable screen filtering and add screen support on 1.5
| | * | | | am fef7b625: am 7f3cf449: Merge "docs: update screen support doc to ↵Scott Main2011-05-1014-1247/+1129
| | |\ \ \ \ | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | de-emphasize support for 1.5 this includes a variety of other revisions to reorganize some of the content in the main document and also add separate documents for how to enable screen filtering and ad * commit 'fef7b62506a74d0133b60fd1d6ae9bf54bf599c9': docs: update screen support doc to de-emphasize support for 1.5 this includes a variety of other revisions to reorganize some of the content in the main document and also add separate documents for how to enable screen filtering and add screen support on 1.5
| | | * | | am 7f3cf449: Merge "docs: update screen support doc to de-emphasize support ↵Scott Main2011-05-1014-1247/+1129
| | | |\ \ \ | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for 1.5 this includes a variety of other revisions to reorganize some of the content in the main document and also add separate documents for how to enable screen filtering and add screen supp * commit '7f3cf449fe1b90b902a37ddc3c05ec7aa236e584': docs: update screen support doc to de-emphasize support for 1.5 this includes a variety of other revisions to reorganize some of the content in the main document and also add separate documents for how to enable screen filtering and add screen support on 1.5
| | | | * | Merge "docs: update screen support doc to de-emphasize support for 1.5 this ↵Scott Main2011-05-0914-1247/+1129
| | | | |\ \ | | | | | | | | | | | | | | | | | | | | | includes a variety of other revisions to reorganize some of the content in the main document and also add separate documents for how to enable screen filtering and add screen support on 1.5" into honeycomb-mr1
| | | | | * | docs: update screen support doc to de-emphasize support for 1.5Scott Main2011-05-0614-1247/+1129
| | | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this includes a variety of other revisions to reorganize some of the content in the main document and also add separate documents for how to enable screen filtering and add screen support on 1.5 For more change history, also see Change-Id: Iadebc9ca3f2f5a0e7490466811f0d741fe2b2b8c Change-Id: I78825116f5f7825da42120e840e5bc6d8d1e359c
* | | | | | am d649887a: am eb8da0fe: Merge "Fix issue on infinite retry config in ↵Wink Saville2011-05-103-28/+48
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RetryManager" into honeycomb-LTE * commit 'd649887a43efb435f1ea2255c364d8c214552aef': Fix issue on infinite retry config in RetryManager
| * | | | | am eb8da0fe: Merge "Fix issue on infinite retry config in RetryManager" into ↵Wink Saville2011-05-093-28/+48
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb-LTE * commit 'eb8da0fec2ea577f14e5c5c4dcca1eea0b8261fc': Fix issue on infinite retry config in RetryManager
| | * | | | Merge "Fix issue on infinite retry config in RetryManager" into honeycomb-LTEWink Saville2011-05-093-28/+48
| | |\ \ \ \
| | | * | | | Fix issue on infinite retry config in RetryManagerKazuhiro Ondo2011-05-093-28/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "infinite retry config is lost when "resetRetryCount" is called. Change-Id: I2b737efa6092ad1254c8dc25840ec429f5c6e882
* | | | | | | am d1736a3d: am d237bcb2: Merge "Add unset and setOnIccRefresh." into ↵Wink Saville2011-05-100-0/+0
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb-LTE * commit 'd1736a3ddae04f5cbe4ebc0ba31e605b6bdae72c': Add unset and setOnIccRefresh.
| * | | | | | am d237bcb2: Merge "Add unset and setOnIccRefresh." into honeycomb-LTEWink Saville2011-05-092-0/+9
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit 'd237bcb241b2be8b2f3f3baed87fce973de00fa7': Add unset and setOnIccRefresh.
| | * | | | | Merge "Add unset and setOnIccRefresh." into honeycomb-LTEWink Saville2011-05-092-0/+9
| | |\ \ \ \ \
| | | * | | | | Add unset and setOnIccRefresh.Wink Saville2011-05-092-0/+9
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A temporary hack as some binaries are using these methods. Change-Id: I4ee63df82acf167ab5f434e63bd073e84e1fdf71
* | | | | | | Merge "resolved conflicts for merge of 05be6d6f to master"Dianne Hackborn2011-05-1031-455/+896
|\ \ \ \ \ \ \
| * \ \ \ \ \ \ resolved conflicts for merge of 05be6d6f to masterDianne Hackborn2011-05-0931-455/+896
| |\ \ \ \ \ \ \ | | |/ / / / / / | | | | | | | | | | | | | | | | Change-Id: Ic6a6c5bb300f6f1d43f9ed550b284282b4f16212
| | * | | | | | am 4907d1d5: am 0c6cbf41: Merge "Better compat mode part one: start scaling ↵Dianne Hackborn2011-05-0931-451/+891
| | |\ \ \ \ \ \ | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | windows." into honeycomb-mr2 * commit '4907d1d5e2c7d244b07579b8c52153df69754e85': Better compat mode part one: start scaling windows.
| | | * | | | | am 0c6cbf41: Merge "Better compat mode part one: start scaling windows." ↵Dianne Hackborn2011-05-0931-451/+891
| | | |\ \ \ \ \ | | | | |/ / / / | | | |/| / / / | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | into honeycomb-mr2 * commit '0c6cbf410a642f6e9cea7cca0a6e53a4a3cdd324': Better compat mode part one: start scaling windows.
| | | | * | | Merge "Better compat mode part one: start scaling windows." into honeycomb-mr2Dianne Hackborn2011-05-0931-451/+891
| | | | |\ \ \
| | | | | * | | Better compat mode part one: start scaling windows.Dianne Hackborn2011-05-0931-451/+891
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | Merge "Deprecating webkit API's that might not be supported in the future"Kristian Monsen2011-05-104-17/+55
|\ \ \ \ \ \ \ \
| * | | | | | | | Deprecating webkit API's that might not be supported in the futureKristian Monsen2011-05-104-17/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I992ae207f29a95daff991768cc6fe190471978cd
* | | | | | | | | Merge "Add unset and setOnIccRefresh."Wink Saville2011-05-102-0/+9
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Add unset and setOnIccRefresh.Wink Saville2011-05-102-0/+9
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A temporary hack as some binaries are using these methods. Bug: 4401309 Change-Id: I046f78f56c4a9300355e68488735da227991a773
* | | | | | | | | Merge WebKit at r74534: Update browser user agent.Ben Murdoch2011-05-101-1/+1
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6959d2f1f9b69209deb255e442791f6447fe6b05
* | | | | | | | Enable platform notifications for chrome http stackKristian Monsen2011-05-102-9/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I386aef25010c95b15fb6a8edc96e59e538540306
* | | | | | | | Merge "Add send session recording summary report to application"James Dong2011-05-093-15/+75
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | Add send session recording summary report to applicationJames Dong2011-05-093-15/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9c63ddae432f0c93486c39776ed0a058a8649602
* | | | | | | | am ba54feb0: am 45364dc4: Merge "Telephony: Signal Strength Changes." into ↵Wink Saville2011-05-091-13/+21
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| / / / / / / | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | honeycomb-LTE * commit 'ba54feb094fdf0eb2201eae5751104a144a2a31d': Telephony: Signal Strength Changes.
| * | | | | | am 45364dc4: Merge "Telephony: Signal Strength Changes." into honeycomb-LTEWink Saville2011-05-091-13/+21
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit '45364dc4bfe3e6118ad61f1d38489fe63418699a': Telephony: Signal Strength Changes.
| | * | | | | Merge "Telephony: Signal Strength Changes." into honeycomb-LTEWink Saville2011-05-091-13/+21
| | |\ \ \ \ \
| | | * | | | | Telephony: Signal Strength Changes.Ramesh Sudini2011-05-091-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia406d21d860533e699a90d15130edcbc705ec645
* | | | | | | | am b98b56c2: am a142512a: Broadcast SIM Refresh to all registered componentsRobert Greenwalt2011-05-095-14/+14
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b98b56c21faac16cea97e8cdcba485365f86c50f': Broadcast SIM Refresh to all registered components
| * | | | | | | am a142512a: Broadcast SIM Refresh to all registered componentsRobert Greenwalt2011-05-095-14/+14
| |\ \ \ \ \ \ \ | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a142512a5009d7b4c422d23b1d7bab8d219eb50b': Broadcast SIM Refresh to all registered components
| | * | | | | | Broadcast SIM Refresh to all registered componentsRobert Greenwalt2011-05-095-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There could be multiple registrants like SIM, STK. Port of 6228 from partner repo. Change-Id: I0756d8b69e30058409e0279f65a99a1aa091e13d
* | | | | | | | Exit full screen support on java sideTeng-Hui Zhu2011-05-092-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:4312214 Change-Id: Id3c755db0a824d42f1f8d1a0952f63d2078d163a
* | | | | | | | am a3838018: am 5d032390: am 27944242: am c3038308: Merge "Doc change: ↵Robert Ly2011-05-092-0/+764
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding ADK doc. still need to add the adk pkg download link when we get the package" into honeycomb-mr1 * commit 'a38380183329912a9d79a84ad5265c6c9dbef434': Doc change: adding ADK doc. still need to add the adk pkg download link when we get the package
| * | | | | | | am 5d032390: am 27944242: am c3038308: Merge "Doc change: adding ADK doc. ↵Robert Ly2011-05-092-0/+764
| |\ \ \ \ \ \ \ | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | still need to add the adk pkg download link when we get the package" into honeycomb-mr1 * commit '5d03239063d0c5148d920a0992da8974c6e0a8ce': Doc change: adding ADK doc. still need to add the adk pkg download link when we get the package
| | * | | | | | am 27944242: am c3038308: Merge "Doc change: adding ADK doc. still need to ↵Robert Ly2011-05-092-0/+764
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add the adk pkg download link when we get the package" into honeycomb-mr1 * commit '279442428ab1000b57273f172453b712b03cb9fd': Doc change: adding ADK doc. still need to add the adk pkg download link when we get the package
| | | * | | | | am c3038308: Merge "Doc change: adding ADK doc. still need to add the adk ↵Robert Ly2011-05-092-0/+764
| | | |\ \ \ \ \ | | | | |_|/ / / | | | |/| | / / | | | | | |/ / | | | | |/| | | | | | | | | | | | | | | | pkg download link when we get the package" into honeycomb-mr1 * commit 'c3038308a765de2826997b65c175bf752b45bc70': Doc change: adding ADK doc. still need to add the adk pkg download link when we get the package
| | | | * | | Merge "Doc change: adding ADK doc. still need to add the adk pkg download ↵Robert Ly2011-05-092-0/+764
| | | | |\ \ \ | | | | | |_|/ | | | | |/| | | | | | | | | link when we get the package" into honeycomb-mr1
| | | | | * | Doc change: adding ADK doc. still need to add the adk pkg download link when ↵Robert Ly2011-05-092-0/+764
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we get the package Change-Id: I941e708a70b48dba2da4aa3d186824c89ebfb22f
* | | | | | | Merge "Fix mode."Marco Nelissen2011-05-091-1/+2
|\ \ \ \ \ \ \