77 Commits

Author SHA1 Message Date
Kevin Hufnagle
d4197234bb docs: Revised "Optimizing Content for the Assistant" page.
Bug: 25080159
Change-Id: Ie4167ba732ffbd401cabcb7f0ba3bac41a029506
2016-08-04 15:57:15 -07:00
Daniel Yu
8a481eaf20 docs: Migrating Scoped Dir Access preview docs into DAC
For Android N release, migrating and updating Scoped Directory Access
docs into regular DAC docs. Updated TOC and added redirect.
Removed preview/features doc. Updated and moved images.

Bug: 30257320
Change-Id: I3440fe1b74947cbfbd1ada6f5d6bee5e49847927
2016-07-27 13:04:52 -07:00
Daniel Yu
bb0f35306e docs: Migrating Direct Boot preview docs into DAC
For Android N release, migrating and updating Direct Boot
docs into regular DAC docs. Updated TOC and added redirect.
Removed preview/features doc.

Bug: 30256895
Change-Id: I5c6d457dc69c911199f86f0e0ed93ec7d6244779
2016-07-27 12:52:35 -07:00
Kevin Hufnagle
78747a1164 docs: Migrated "Network Security Configuration" page on DAC (N OTA).
This page now resides with other pages discussing Android security
topics.

Bug: 27502850
Change-Id: I8ce3412198527a947e47e421b94c3d15cce6ec48
2016-07-26 11:46:16 -07:00
Kevin Hufnagle
6e4d765f95 Merge "docs: Migrated "key attestation" page to a new location (for N OTA)." into nyc-dev 2016-07-26 18:34:24 +00:00
Kevin Hufnagle
c946f9d103 docs: Migrated "key attestation" page to a new location (for N OTA).
Updated page location, TOC entry, and URL redirect in preparation
for Android Nougat OTA release.

Bug: 28851641
Change-Id: I8be252d79b0b5ad3c7d814175e6bfbfb98e95daf
2016-07-25 14:33:37 -07:00
Elliot Waite
c4ae7827e2 Fix code tags that contain html encoded characters, and fix at links.
Change-Id: I1ab2275ac17d75afaa8f3f0039b26633365bcb3a
2016-07-22 18:29:36 -07:00
Mark Lu
c4a0139e26 docs: remove trailing white space from jd files
Change-Id: Id7fb958460bf2f28d88c6120df0395690f32783a
2016-07-18 10:42:11 -07:00
Mark Lu
ff51bffb34 docs: remove out-of-date performance info
Bug: 25905413
Change-Id: Ic7b055e0cea15e4850a5a611fa4cb18ca0654438
2016-06-23 10:59:33 -07:00
Joe Fernandez
13697b873c docs: Narnia 2 advertising language update
b/29009702

Change-Id: Icd060074413c53d6ad24e2919dc80be949a2260c
2016-06-20 09:08:46 -07:00
Kevin Hufnagle
7fa381f988 Merge "docs: Updated link, wording associated with data-sharing IPC." into mnc-mr-docs am: c501688 am: 7bce49c
am: 31d841c

* commit '31d841c9373214ece6dd27fedcf512471f12f1dc':
  docs: Updated link, wording associated with data-sharing IPC.

Change-Id: I82032bb7d831f436e8d05a16ab93aa27c3f660ef
2016-04-27 03:17:35 +00:00
Trevor Johns
59c9a93fc2 Merge changes from topic 'merge_docs_nyc-dev' into nyc-dev
* changes:
  Remove links to createAndInitializeUser() and createUser()
  Resolve merge conflicts of a5060ee to nyc-dev
2016-04-20 18:35:57 +00:00
Trevor Johns
682c24e228 Resolve merge conflicts of a5060ee to nyc-dev
This undoes the automerger skip which occured in
commit e740c84dc32180214a7fd157105d6c18d30408ee and
replays it as a standard (NOT -s ours) merge.

Change-Id: If5a47be26f73d6a0735c425cd66310a3e2a89086
2016-04-19 02:03:59 -07:00
Alex Klyubin
a65707d3f3 Clarify how to replace cert generated by Android Keystore.
This updates Android Keystore developer documentation to clarify how
to replace the self-signed certificate create by Android Keystore when
it generates a new key pair. Some developers are attempting to use
KeyStore.setCertificateEntry which is the wrong method for this. The
correct method is KeyStore.setKeyEntry.

Bug: 28152878
Change-Id: I306447b7792ecad5fbb49bd691a57bedb5207003
2016-04-13 15:33:53 -07:00
Kevin Hufnagle
422ac4ebbd docs: Updated link, wording associated with data-sharing IPC.
A paragraph under the "Requesting Permissions" section of the
"Security Tips" page discusses the complications associated with
sharing data over inter-process communication (IPC) when the clients
involved have different permission settings. This paragraph now
includes a working link and clearer wording to describe the concept.

Bug: 26807597
Change-Id: I35e316f5f97d4ec45d9beaae95424221e6a92da5
2016-04-07 19:48:50 -07:00
Dirk Dougherty
31ae1c518f Doc change: adjustments for design updates.
Change-Id: Ic798228a75ba2ab692fd3e36034606c04651c20c
2016-01-28 17:10:09 -08:00
Dirk Dougherty
9b9b4ef08c Doc change: more edits to permissions/user data.
Change-Id: I96ef10624826d738c3dfe6d9a1670ddb55988dd9
2016-01-21 17:41:05 -08:00
Dirk Dougherty
22f1027b76 Doc change: edits to permissions/user data text and images.
Change-Id: I5d5c66fc44d842dd2f91cfaf7b8e5802badfbf3f
2016-01-20 19:17:45 -08:00
Dirk Dougherty
c2abb4ba15 Doc change: Clarify intent / permission language.
Change-Id: Ie82aacd7304cb0fe47314e5e7052f2b7b06cdeba
2016-01-13 23:24:38 -08:00
Dirk Dougherty
1fea1ec829 Doc change: edits to permissions and ids guidelines.
Change-Id: I0de247d182f54b92dcb5509b224d5b848cfafb89
2016-01-13 23:17:15 -08:00
Dirk Dougherty
6404e8436b Doc change: Add best practices docs for permissions and ids.
Change-Id: I5756c6d1b87690ac26631ed7c18d27bf0b80ce36
2016-01-13 18:14:40 -08:00
Neil Fuller
71fbb81b14 Fix @code escapes
The body of {@code} must not be HTML escaped. This is one of
several changes that fix the source in conjunction with a
doclava fix.

Bug: 25757239
Change-Id: Ib38a0fa2dd2a3d68e467f78a812071e763d7e881
2015-12-02 14:24:11 +00:00
David Friedman
dc63f76367 Merge "Docs: Wear permissions and speaker documentation for Android 6.0" into mnc-docs 2015-11-18 00:45:52 +00:00
David Friedman
9125eba0d3 Docs: Wear permissions and speaker documentation for Android 6.0
Bug: 23280104

Change-Id: I297913fb262ab58f8b97aea457daa95f5b02b879
2015-11-17 15:38:02 -08:00
sreevanis
b8200accbf docs: Fixed typo.
Bug: 25359870
Change-Id: Ie0108bcb63928521e7dedeaccbe1617ee54c4f68
2015-11-03 14:41:05 -08:00
Alex Klyubin
a31bc1d37a Fix typo in alternative name of P-224 EC curve.
Bug: 25340656
Change-Id: Id9e1c96ca8e7a1786713730c7292ae5246bd223a
2015-10-28 13:03:48 -07:00
Quddus Chong
94f00b7535 docs: Fixed typo in the 'Optimizing Content for the Assistant' topic.
Change-Id: I2f878855f8583824422dbe6fe6b20fc444e43519
2015-10-02 10:14:07 -07:00
Dirk Dougherty
fa87851488 Doc change: edits to assist docs.
Change-Id: I5b2188c74b77606f8740ea5ebd198dceb74adda0
2015-10-01 21:54:56 +00:00
Dirk Dougherty
059e3905bb Doc change: add article about assist API.
Change-Id: Iaf1683ca32c4ce426e2ffad1786135c69b274536
2015-09-29 10:06:28 -07:00
Andrew Solovay
d32f3baf2b docs: Removing reference to Apache HTTP client
With Android M, the Apache HTTP client is no longer supported.
Removing references to that client and the clients that depend
on it (DefaultHttpClient and AndroidHttpClient). Replacing, when
appropriate, with references to HttpURLConnection.

Also removing references to the 2011 blog post "Android's HTTP
Clients" (https://goto.google.com/cusll) since that post is largely
about the ex-clients.

Fixed a couple of other small errors while I had the files open
(for example, changed a sample URL in a code snippet to the safe
www.example.com).

bug: 19696844
Change-Id: Iabf780140c37d5fc95c0d45542c425a945c69337
2015-09-28 17:25:27 -07:00
Claudio Cherubino
b6e91dfae0 Trying to help clean up the public issue tracker (and show some love to external developers) by taking care of a bunch of typos that were reported.
List of issues from https://code.google.com/p/android/issues that are fixed by this CL: 183476,183249,183248,183241,183222,183142,183093,183329,182385,182311,182193,182019,73149,181589,179740,179384,178322,178189,178086,178020,177169,176312,175138,172322,172030,171820,170647,167288,163574,161580,161041,159199,151347,144290,136137,132505

Change-Id: I2e96f7444048abd2f666c75bd6ab9640019afb75
2015-08-21 14:49:09 -07:00
Alex Klyubin
6f023640a3 Document what algorithms Android Keystore supports.
This updates the Android platform SDK documentation to list which
algorithms are supported by Android Keystore on which Android
platforms.

The list is similar in design to the one in SSLSocket and SSLEngine.

Bug: 22661043
Change-Id: I08fcf65ca58ead644100b673dceb93c67f34f507
2015-07-22 12:04:39 -07:00
Alex Klyubin
83cc7a347f Improve documentation for keys requiring user auth.
Bug: 18088752
Change-Id: I24eeb33790a74d8d81d10fcdb1eb058d47144c44
2015-06-17 11:08:29 -07:00
Jim Miller
f501b58de8 Update and cleanup FingerprintManager API to new spec
Fixes bug 21040383

Change-Id: Ib97d486535869814d5b449cccb31670e8f412552
2015-06-08 16:36:29 -07:00
Chris Craik
44dc1667eb am 78ab4c38: am 6042f351: Merge "Rework systrace analysis documentation" into mnc-preview-docs
* commit '78ab4c3867af40b512d2e0c046abd5c8b040d05f':
  Rework systrace analysis documentation
2015-06-05 02:18:29 +00:00
Chris Craik
17498cd944 Rework systrace analysis documentation
Also update some of the out-of-date aspects of the systrace help page.

Change-Id: I869f6d481ecc2835ea8713bb46f6e5d550abea98
2015-06-01 17:11:46 -07:00
Alex Klyubin
3c5d5f0b4a Document the security features of Android Keystore.
Bug: 18088752
Change-Id: Iec995e39065d9c4f159cb4eea38486f9c75de072
2015-05-19 08:39:31 -07:00
Alex Klyubin
3f8d4d8408 New AndroidKeyStore API in android.security.keystore.
This CL addresses the comments from API Council about Android KeyStore
KeyPairGeneratorSpec, KeyGeneratorSpec and KeyStoreParameter:
1. These abstractions should not take or hold references to Context.
2. The Builders of these abstractions should take all mandatory
   parameters in their constructors rather than expose them as
   setters -- only optional paratemers should be exposed via setters.

These comments cannot be addressed without deprecation in the already
launched KeyPairGeneratorSpec and KeyStoreParameter. Instead of
deprecating just the getContext methods and Builder constructors, this
CL goes for the nuclear option of deprecating KeyPairGeneratorSpec and
KeyStoreParameter as a whole and exposing all of the AndroidKeyStore
API in the new package android.security.keystore. This enables this CL
to correct all of the accrued design issues with KeyPairGeneratorSpec
(e.g., naming of certificate-related methods) and KeyStoreParameter.

This also makes the transition to API Level M more clear for existing
users of the AndroidKeyStore API. These users will only have to deal
with the new always-mandatory parameters (e.g., purposes) and
sometimes-mandatory (e.g., digests, block modes, paddings) if they
switch to the new API. Prior to this CL they would've had to deal with
this if they invoked any of the new methods of KeyPairGeneratorSpec
or KeyStoreParameter introduced in API Level M.

This CL rips out all the new API introduced into KeyPairGeneratorSpec
and KeyStoreParameter classes for Android M, thus reverting these
classes to the API launched in L MR1. This is because the new API is
now in android.security.keystore.KeyGenParameterSpec and KeyProtection
respectively.

Bug: 21039983
Change-Id: I59672b3c6ef7bc25c40aa85f1c47d9d8a05d627c
2015-05-13 12:49:58 -07:00
Alex Klyubin
68c33d52bf Switch to KeyguardManager.isDeviceSecure.
isKeyguardSecure also returns true when SIM PIN is required. We don't
care about that because entering SIM PIN does not unlock keys
requiring user authentication. isDeviceSecure returns true only if
secure lock screen is set up, which is exactly what we want.

Bug: 18088752
Change-Id: I47b21f3351f55c11e8e9bcfd7654762973dd9271
2015-05-08 08:47:19 -07:00
Alex Klyubin
1eda77ae21 Align AndroidKeyStore API with user auth API.
This simplifies the AndroidKeyStore API around user authentication: no
more explicit control over which user authenticators are bound to
which keys.

User-authenticated keys with timeout are unlocked by whatever unlocks
the secure lock screen (currently, password/PIN/pattern or
fingerprint). User-authenticated keys that need authentication for
every use are unlocked by fingerprint only.

Bug: 20526234
Bug: 20642549
Change-Id: I1e5e6c988f32657d820797ad5696797477a9ebe9
2015-04-28 17:39:30 -07:00
Alex Klyubin
9b3e005a4e Unhide the new AndroidKeyStore API.
Bug: 18088752
Change-Id: I93f87cbb1cd04a4a2e34f3d544d678c92cf052ee
2015-04-13 11:34:04 -07:00
Andrew Solovay
b94f2ce07e am ea4c21ea: am a1838a9d: am 78f4342f: Merge "docs: WebView security notes for apps on pre-K devices" into lmp-docs automerge: e628954 automerge: d4cf09d automerge: 63e822d
* commit 'ea4c21ea283bdb98b80140c697b27bb9eb2bb643':
  docs: WebView security notes for apps on pre-K devices
2015-01-22 00:03:31 +00:00
Andrew Solovay
f92dbe0115 docs: WebView security notes for apps on pre-K devices
Added paragraph describing security precautions for apps that use
WebView on devices running versions older than Android 4.4. See first
comment for doc stage location.

bug: 19075466
Change-Id: I69937d8dfc37ec1ba693f969500b9dc7404c4635
2015-01-20 16:10:07 -08:00
Narayan Kamath
56eb989791 Remove references to apache-http from various documents.
Most of them are pointless links to a "text/plain" constant which are
far clearer when inlined with the relevant text.

Change-Id: Iaed51b4548cb2836741106dc19c9cf500c205d32
2014-12-12 14:55:18 +00:00
Elliott Hughes
85e21bd534 Mention ProGuard in the JNI documentation.
(cherry picked from commit 8e1bbfe0f1e4dac35b20972a71656e4c9bf437a1)

Change-Id: I22731dfb94dcc1271b987ed52914e665704dd378
2014-11-27 10:28:11 -08:00
Elliott Hughes
29e1c36d4b am 3afb9f63: am 2c53d22b: Merge "Mention ProGuard in the JNI documentation."
* commit '3afb9f6378779e6ee355b0b56c47ad7270e2b832':
  Mention ProGuard in the JNI documentation.
2014-11-27 18:11:58 +00:00
Elliott Hughes
8e1bbfe0f1 Mention ProGuard in the JNI documentation.
Change-Id: I7822ec1eca0290eba1f4b08eca6794b41172d606
2014-11-26 10:51:37 -08:00
Dirk Dougherty
df4c4ac540 Doc change: update behavior changes and move to separate doc. Add nogotofail to SSL best practices.
Change-Id: Ib4c0b0d442b1ef879cb01b3972845ef93360c5b8
2014-11-05 14:08:58 -08:00
Luan Nguyen
5aad2c9fb0 docs: Add article describing Location API for Android Wear.
Change-Id: I1956be7df8cc875270d45652d1b0d414b6395982
2014-10-22 21:36:02 -07:00
Sarah Maddox
3cceb24414 Fixed a typo in Perf Tips.
Change-Id: I427bd60211d6fa3f2d1f262dc2b9b8e7729d4adc
2014-10-13 15:51:43 +11:00