Skip to content

Commit ba8785f

Browse files
Add Android.App.Backup XML documentation (#739)
Co-authored-by: Copilot App <[email protected]>
1 parent 3efe740 commit ba8785f

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

‎docs/xml/Android.App.Backup/BackupTransportFlags.xml‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@
4646
</ReturnValue>
4747
<MemberValue>1</MemberValue>
4848
<Docs>
49-
<summary>To be added.</summary>
49+
<summary>
50+
<para>Transport flag indicating that the transport has client-side encryption enabled. i.e., the user's backup has been encrypted with a key known only to the device, and not to the remote storage solution. Even if an attacker had root access to the remote storage provider they should not be able to decrypt the user's backup data.</para>
51+
<para><format type="text/html"><a href="https://developer.android.com/reference/android/app/backup/BackupAgent#FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED" title="Reference documentation">Android reference for <code>android.app.backup.BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED</code>.</a></format></para>
52+
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
53+
</summary>
5054
</Docs>
5155
</Member>
5256
<Member MemberName="CrossPlatformDataTransferIos">
@@ -74,7 +78,11 @@
7478
</ReturnValue>
7579
<MemberValue>8</MemberValue>
7680
<Docs>
77-
<summary>To be added.</summary>
81+
<summary>
82+
<para>Transport flag indicating that the transport is used for a cross-platform transfer to or from iOS. The user's backup data is sent directly to another device over e.g. USB or WiFi.</para>
83+
<para><format type="text/html"><a href="https://developer.android.com/reference/android/app/backup/BackupAgent#FLAG_CROSS_PLATFORM_DATA_TRANSFER_IOS" title="Reference documentation">Android reference for <code>android.app.backup.BackupAgent.FLAG_CROSS_PLATFORM_DATA_TRANSFER_IOS</code>.</a></format></para>
84+
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
85+
</summary>
7886
</Docs>
7987
</Member>
8088
<Member MemberName="DeviceToDeviceTransfer">
@@ -102,7 +110,11 @@
102110
</ReturnValue>
103111
<MemberValue>2</MemberValue>
104112
<Docs>
105-
<summary>To be added.</summary>
113+
<summary>
114+
<para>Transport flag indicating that the transport is used for a device-to-device transfer. There is no third party or intermediate storage. The user's backup data is sent directly to another device over e.g., USB or WiFi.</para>
115+
<para><format type="text/html"><a href="https://developer.android.com/reference/android/app/backup/BackupAgent#FLAG_DEVICE_TO_DEVICE_TRANSFER" title="Reference documentation">Android reference for <code>android.app.backup.BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER</code>.</a></format></para>
116+
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
117+
</summary>
106118
</Docs>
107119
</Member>
108120
</Members>

‎docs/xml/Android.App.Backup/FullRestoreDataInput.xml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
<Docs>
332332
<summary>A timestamp in the standard Unix epoch that represents the last modification time of the file
333333
when it was backed up, suitable to be assigned to the file after its data is written.</summary>
334-
<value>To be added.</value>
334+
<value>Value is a non-negative timestamp measured as the number of seconds since 1970-01-01T00:00:00Z.</value>
335335
<remarks>
336336
<para>A timestamp in the standard Unix epoch that represents the last modification time of the file
337337
when it was backed up, suitable to be assigned to the file after its data is written.</para>
@@ -472,7 +472,7 @@
472472
</ReturnValue>
473473
<Docs>
474474
<summary>Flags with additional information about the transport.</summary>
475-
<value>To be added.</value>
475+
<value>Value is either 0 or a combination of the following: BackupAgent.FLAG_CLIENT_SIDE_ENCRYPTION_ENABLED; BackupAgent.FLAG_DEVICE_TO_DEVICE_TRANSFER; BackupAgent.FLAG_CROSS_PLATFORM_DATA_TRANSFER_IOS</value>
476476
<remarks>
477477
<para>Flags with additional information about the transport. The transport flags that can be set
478478
are defined in <c>BackupAgent</c>.</para>
@@ -514,7 +514,7 @@
514514
</ReturnValue>
515515
<Docs>
516516
<summary>The kind of file system object being restored.</summary>
517-
<value>To be added.</value>
517+
<value>Value is one of the following: BackupAgent.TYPE_FILE; BackupAgent.TYPE_DIRECTORY</value>
518518
<remarks>
519519
<para>The kind of file system object being restored. This will be either <c>BackupAgent#TYPE_FILE</c> or <c>BackupAgent#TYPE_DIRECTORY</c>.</para>
520520
<para>

0 commit comments

Comments
 (0)