46 Commits

Author SHA1 Message Date
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
Robert Ly
e915faa1d4 am 001e3072: am 23daa441: am 8e115e64: Merge "docs: Documenting fix for CVE-2014-0224 (SSL vulnerability)." into klp-modular-docs
* commit '001e30729a7e12bef238df680626042b2e99d807':
  docs: Documenting fix for CVE-2014-0224 (SSL vulnerability).
2014-08-07 16:04:07 +00:00
Andrew Solovay
897cf908c9 docs: Documenting fix for CVE-2014-0224 (SSL vulnerability).
Wrote a training page on how to use Google Play services to update a
device's security provider, which (int. al.) installs a fix against
the recently-discovered SSL CCS injection vulnerability.

Doc is staged to:

http://asolovay.mtv:9338/training/articles/security-gms-provider.html

bug: 16296338

Change-Id: I5b0dd052113998d585a46262b216ef0c1b432362
2014-07-30 16:15:04 -07:00
Robert Ly
e37da759c5 am b1cb5aab: am 748856f2: am a7ddd029: am 80e84e2d: am f3cecfa2: am 55d525b2: am 716cc7dc: Add documentation for AndroidKeyStore
* commit 'b1cb5aabeb68815715eed423f1f9a7edb9a3e938':
  Add documentation for AndroidKeyStore
2014-06-11 19:33:51 +00:00
Robert Ly
748856f2d9 am a7ddd029: am 80e84e2d: am f3cecfa2: am 55d525b2: am 716cc7dc: Add documentation for AndroidKeyStore
* commit 'a7ddd0292420c2e8869e093d8bdad5cdc1f199cc':
  Add documentation for AndroidKeyStore
2014-06-10 02:49:18 +00:00
Robert Ly
a7ddd02924 am 80e84e2d: am f3cecfa2: am 55d525b2: am 716cc7dc: Add documentation for AndroidKeyStore
* commit '80e84e2db92ba190c6c517dd4c71cd12c0adb249':
  Add documentation for AndroidKeyStore
2014-06-10 02:44:08 +00:00
Robert Ly
716cc7dcac Add documentation for AndroidKeyStore
Add exposition about the use cases for AndroidKeyStore and links to the
API sample application for different use cases.

Bug: 8608817
Change-Id: Ic4ce9405781c92f12687895b28c671661ea5524f
2014-05-07 21:20:01 -07:00
Marco Nelissen
a6a7f2ffc4 Update doc wrt to android:debuggable and CheckJNI
Change-Id: Id75642440c8bc86727655debf21c47a1c228bd28
2014-01-16 15:45:47 -08:00
Ricardo Cervera
9908e6fe5e am 15de74b6: am cfbc332f: am f4494e6c: am faca5e3c: am ac5ad7b9: docs: Fixed typos.
* commit '15de74b64b08c5f6d17c1a4c1d225dca70064f71':
  docs: Fixed typos.
2014-01-14 00:33:32 +00:00
Ricardo Cervera
f4494e6c8f am faca5e3c: am ac5ad7b9: docs: Fixed typos.
* commit 'faca5e3c917a6197b380eb5d2b51893b5d689946':
  docs: Fixed typos.
2014-01-13 16:23:19 -08:00
Ricardo Cervera
ac5ad7b9e4 docs: Fixed typos.
bug:10732654
Change-Id: I5a580cf40e2670485f9c57e2376efd20bcf7b60d

Review URL: http://quixote.mtv.corp.google.com:8002/training/articles/security-tips.html
2014-01-13 16:02:28 -08:00
Joe Fernandez
33baa5ad7d Removing quotes from page.tags values
Change-Id: I9e12079568ef7be8574743a34856ed2839e1e76a
2013-11-14 21:00:10 +00:00
Kenny Root
1ca39b82d8 am ddc91628: am a1b4d97b: Merge "Removed duplicate items on table of contents"
* commit 'ddc91628819f02d6cfb60cfa26b582d52fa76cde':
  Removed duplicate items on table of contents
2013-10-21 10:35:27 -07:00
Taeho Kim
6ef383ad13 Removed duplicate items on table of contents
Removed duplicate, broken item in 'in this document' on Performance Tips (http://developer.android.com/traning/articles/perf-tips.html)

Change-Id: I499d9bb314fa471e6d2c0590f59c2f71077c00b8
Signed-off-by: Taeho Kim <jyte82@gmail.com>
2013-10-17 11:10:19 +09:00
Scott Main
a3f0e01f33 add docs about managing app memory
Change-Id: I8bd7b05e7ce00faedbbc131a38f2a73637d1b365
2013-10-11 19:40:36 -07:00
Dirk Dougherty
234101a4c5 Merge "Doc change: add tablet success story and fix a few issues." into jb-mr2-docs 2013-10-11 00:48:14 +00:00
Dirk Dougherty
3f848899f4 Doc change: add tablet success story and fix a few issues.
Change-Id: Ifdc494270d200604b9a228601b5ead0e8b2c4e3f
2013-10-10 16:34:40 -07:00
David Friedman
8c38ea3920 Merge "Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file. Bug: 10807931 10796994" into jb-mr2-docs 2013-09-27 17:24:41 +00:00
David Friedman
36b692d8ef Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file.
Bug: 10807931 10796994

Change-Id: I8c8e07c3e8606d5983c2545fa6638af45650d27c
2013-09-27 10:04:48 -07:00
David Friedman
23bd5927f1 Docs: Fixed a typo, such that "C+++"-->"C++"; there was supposed to be another file with extra apostrophes, but it looks like that one had already been fixed.
Bug: 10796099

Change-Id: Ideb1dbf70b9034e88683ef19ec1a3d338b7ea06b
2013-09-26 22:30:11 -07:00
Scott Main
1c2dea0549 add meta tags to the rest of the training classes
Change-Id: I4db0acee547b198db754eaf0e78062614ac6f59a
2013-04-10 18:59:29 -07:00
Scott Main
00158363b4 docs: add bdc's security doc as training article
Change-Id: Iaee006f5e93356cc7cda8e5bff7fc03642329e46
2013-03-01 09:49:41 -08:00
Andy McFadden
9b6687bbc6 Fix code snippet
One of the examples was incorrect (both here and in the original).

http://b.android.com/42776

Change-Id: I2a218b724f50caf47d5185ef529ae8ab3104794f
2013-01-17 11:24:02 -08:00
Elliott Hughes
84303f5cd6 Update the JNI spec link, and remove a dead link.
Also remove the duplicate copy of this file. There's a redirect in place
from the old location.

Bug: http://code.google.com/p/android/issues/detail?id=41623

(cherry picked from commit 965da34de94cdb845b64bd676e45b260000cd09d)

Change-Id: I5a940383fb27900ba560822c060cc5ed864eb771
2012-12-19 11:09:16 -08:00
Dirk Dougherty
23b4e5b1b5 Merge "Doc change: add SMP Primer for Android. Support a new "article" toc style in training." into jb-mr1-dev 2012-11-30 15:35:47 -08:00
Dirk Dougherty
d589421093 Doc change: add SMP Primer for Android. Support a new "article" toc style in training.
Change-Id: I75826e12bb255e1fe85822b8c51e750ada01dfc5
2012-11-30 15:33:39 -08:00
Dirk Dougherty
2b286bb26b Doc change: cleanup filtering sidebars and api level table. Changes links pointing to billing and other play docs that have moved.
Change-Id: I5528e82a6f97eb25f2ec2db5dfe1e178d9580f3c
2012-11-29 21:07:41 -08:00
Scott Main
33e499ea36 docs: move articles into group directory
Change-Id: If90f5ac284d8df16b830d5744fbd684e5b1b34e3
2012-11-16 08:54:27 -08:00