879 Commits

Author SHA1 Message Date
Alex Klyubin
29542143b1 Merge "Document the security features of Android Keystore." into mnc-dev 2015-05-19 15:55:10 +00:00
Alex Klyubin
3c5d5f0b4a Document the security features of Android Keystore.
Bug: 18088752
Change-Id: Iec995e39065d9c4f159cb4eea38486f9c75de072
2015-05-19 08:39:31 -07:00
Joe Fernandez
962b8f2b10 am 14ba009a: am 6b4c3fed: docs: Refactor Google Services pages for site redesign
* commit '14ba009a51cede3f3f4b0ae1d1e701939e3dd1dc':
  docs: Refactor Google Services pages for site redesign
2015-05-18 18:49:04 +00:00
Joe Fernandez
6b4c3fed88 docs: Refactor Google Services pages for site redesign
b/18225342 - removed outdated advertising ux recommendations
Redirects Change-Id: I669b2c7f216be28603594ae3f2909f50e7eaf60d

Change-Id: I50eada1885156c2abfcc0b1c2bd1f61bfc790e72
2015-05-15 13:12:41 -07:00
Svet Ganov
67b7ec2887 Merge "Access mock location is no longer a runtime permission - framework" into mnc-dev 2015-05-13 23:45:23 +00:00
Svet Ganov
f7e9cf4fb4 Access mock location is no longer a runtime permission - framework
The access mock location is no longer a runtime permission. It is a
signature protected one that apps cannot get but the fact they request
it means they want to inject location into the system. Now the user
gets to choose the current mock location app in developer options from
the apps that request the mock location permission. The access to mock
location is no longer guarded by the permisson but from a new app op
which is off by default and the settiings UI sets it to enabled only
for the currently selected mock location app.

bug:21078873

Change-Id: I19e3f9dc7c7de82eab46b30fec1abfbca54a0e59
2015-05-13 15:37:21 -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
Quddus Chong
b98e07129c am ce4408a1: am a7577843: am d43ec638: am 174dc3ba: Merge "docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented un
* commit 'ce4408a104300006a3296bfd2f2aad9c0f2fd9dc':
  docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator.
2015-05-11 22:16:36 +00:00
Quddus Chong
a75778438f am d43ec638: am 174dc3ba: Merge "docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a devic
* commit 'd43ec6380ce04f4c0830cd35d1dbd7b3050799d4':
  docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator.
2015-05-11 21:51:50 +00:00
Quddus Chong
d43ec6380c am 174dc3ba: Merge "docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator
* commit '174dc3ba607965cf1dd0578f83ce373fa74d0f65':
  docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator.
2015-05-11 21:38:46 +00:00
Quddus Chong
174dc3ba60 Merge "docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator." into lmp-docs 2015-05-11 21:23:43 +00:00
Quddus Chong
4bc762a919 docs: Added training docs for Android unit testing tools and APIs.
This training covers techniques for running unit tests on local
machines, using mock objects in local unit tests, and building
instrumented unit tests to run on a device or emulator.

Change-Id: I9fee9ac3bd7382fb158145600b1850775edb687d
2015-05-11 14:09:25 -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
Dirk Dougherty
08e474ca24 am 08c72b91: am ecfed34d: Merge "Doc change: merge landing page and header/footer designs." into mnc-preview-docs
* commit '08c72b91bedefbebe0547646544cd875c1062af0':
  Doc change: merge landing page and header/footer designs.
2015-05-05 02:46:40 +00:00
Dirk Dougherty
ecfed34d3e Merge "Doc change: merge landing page and header/footer designs." into mnc-preview-docs 2015-05-05 02:27:47 +00:00
Andrew Solovay
3e51aa3981 am 168bbcef: am 65241c66: am 9ceea140: am fbd4af0f: Merge "Docs: New swipe-to-refresh training guide." into lmp-docs
* commit '168bbcef02603b35b9fad53d923310b9a80acb5b':
  Docs: New swipe-to-refresh training guide.
2015-05-05 01:48:00 +00:00
Andrew Solovay
9ceea140a3 am fbd4af0f: Merge "Docs: New swipe-to-refresh training guide." into lmp-docs
* commit 'fbd4af0f9b6614482c846404434af8571bad5817':
  Docs: New swipe-to-refresh training guide.
2015-05-04 18:26:43 +00:00
Andrew Solovay
fbd4af0f9b Merge "Docs: New swipe-to-refresh training guide." into lmp-docs 2015-05-04 18:12:55 +00:00
Dirk Dougherty
6c1c263efa Doc change: merge landing page and header/footer designs.
Change-Id: Ic2f603c0215f8dadac2dfa4b871b22b2f9a027e5
2015-05-03 11:26:59 -07:00
Alex Klyubin
ceb190edbc am a65101cd: am ecde0330: am 0838084a: Merge "Align AndroidKeyStore API with user auth API." into mnc-dev
* commit 'a65101cd49247f792ae05bc31458c73bbcacf6c0':
  Align AndroidKeyStore API with user auth API.
2015-04-29 02:25:54 +00:00
Luan Nguyen
157c0389c3 am 95f43e7d: am 2787cab7: am 50ea9422: am 4e7500e1: am c1609dc0: docs: Update information on delivering message to clarify that MessageAPI is not reliable.
* commit '95f43e7dff3736b5978ac8f3dbab2fae22e03e20':
  docs: Update information on delivering message to clarify that MessageAPI is not reliable.
2015-04-29 02:23:35 +00:00
Alex Klyubin
0838084a3c Merge "Align AndroidKeyStore API with user auth API." into mnc-dev 2015-04-29 01:25:32 +00: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
Luan Nguyen
50ea942255 am 4e7500e1: am c1609dc0: docs: Update information on delivering message to clarify that MessageAPI is not reliable.
* commit '4e7500e10cf10eb697bb3e916bf705b9db470c8f':
  docs: Update information on delivering message to clarify that MessageAPI is not reliable.
2015-04-28 21:09:22 +00:00
Luan Nguyen
c1609dc0b2 docs: Update information on delivering message to clarify that
MessageAPI is not reliable.

bug: 20088602
Change-Id: I2244598e5a155bc6e477d367287b8683ebdf019f
2015-04-28 11:36:42 -07:00
Jeff Davidson
10698ac7f3 Fix incorrect getType signature/implementation in doc.
The method is missing the Uri parameter and the implementation is
both inefficient and unnecessary. It is documented as fine to
return null in getType.

Change-Id: I78c83918916ca5ef28172e544d9ddc9c3695444d
2015-04-28 17:23:47 +00:00
Joe Fernandez
f488985dce am ff31bb4b: am 68ef9287: Merge "docs: Add note about overriding onConnectedNodes() when listening for capability node changes." into lmp-mr1-ub-docs
* commit 'ff31bb4bb7d46766552526f6580a76445a549339':
  docs: Add note about overriding onConnectedNodes() when listening for capability node changes.
2015-04-28 00:36:29 +00:00
Joe Fernandez
d602d23fd8 am 80d19484: am 185002bc: Merge "docs: Update Wearable API setup to mention addApiIfAvailable()." into lmp-mr1-ub-docs
* commit '80d19484c109c4beb0e36b7ce0418ebe526ad300':
  docs: Update Wearable API setup to mention addApiIfAvailable().
2015-04-28 00:36:23 +00:00
Joe Fernandez
68ef92871f Merge "docs: Add note about overriding onConnectedNodes() when listening for capability node changes." into lmp-mr1-ub-docs 2015-04-28 00:03:50 +00:00
Joe Fernandez
185002bcc9 Merge "docs: Update Wearable API setup to mention addApiIfAvailable()." into lmp-mr1-ub-docs 2015-04-28 00:00:09 +00:00
Luan Nguyen
47b7e060d9 docs: Update Wearable API setup to mention addApiIfAvailable().
bug: 20486912
Change-Id: Ie5fe89b5bd0bbed5c95cead301c6eb6278bfdaee
2015-04-27 13:30:40 -07:00
Luan Nguyen
bdeeb5e3bc docs: Add note about overriding onConnectedNodes() when listening
for capability node changes.

bug: 20523695
Change-Id: I7a1b057625f6f39d9ee3a03948f0b187484b1842
2015-04-27 11:27:04 -07:00
Scott Rowe
1db13a9010 am 6a6bfe5e: am 6e5063fe: docs: Supported media protocols, codecs, formats for Android TV
* commit '6a6bfe5e84b598f24d73138523d7f8d88729daed':
  docs: Supported media protocols, codecs, formats for Android TV
2015-04-24 18:21:42 +00:00
Scott Rowe
6e5063fe88 docs: Supported media protocols, codecs, formats for Android TV
Change-Id: I8202ba148d35d73ee0940070090e0a29553f9202
(cherry picked from commit f769caa8c15f9983188597e2436b011d23ff2561)
2015-04-24 17:58:13 +00:00
Scott Rowe
02e4f2fbe6 Merge "docs: Supported media protocols, codecs, formats for Android TV" into lmp-docs 2015-04-24 17:49:16 +00:00
Andrew Solovay
fc60f7012e am 591ba605: am 26a8090a: cherrypick from lmp-docs docs: Listening for restrictions-changed Original Change-Id: I19c7150a9f36de226d00ad6d8db0e9210d5d135d
* commit '591ba605aa91fdec05ac73399ee5893da63833e8':
  cherrypick from lmp-docs docs: Listening for restrictions-changed Original Change-Id: I19c7150a9f36de226d00ad6d8db0e9210d5d135d
2015-04-23 19:01:32 +00:00
Andrew Solovay
26a8090a09 cherrypick from lmp-docs docs: Listening for restrictions-changed
Original Change-Id: I19c7150a9f36de226d00ad6d8db0e9210d5d135d

Per bug 19848206, it turns out that APPLICATION_RESTRICTIONS_CHANGED
is only sent to dynamically-declared listeners, *not* to listeners
declared in the manifest. Updated doc to note this. (The code snippet
already showed how to dynamically declare a listener.)

See first comment for doc stage location.

bug: 19848206
Change-Id: I6dc5f39dc6eed71cf2e303564ea906be3832d8a4
2015-04-23 11:35:39 -07:00
Andrew Solovay
09cf4d500d Merge "docs: Update to doc on listening for restrictions-changed intent" into lmp-docs 2015-04-23 18:20:07 +00:00
Luan Nguyen
82e92a9e7b am a5ee27b3: am ee066f57: Merge "cherrypick from lmp-docs docs: Add Wear Capability training Original Change-Id: I52ede5d91936c5eab3d6ee8be8108004cce1f0e0" into lmp-mr1-ub-docs
* commit 'a5ee27b3aa60dc5f839e95e7d9c219f7bf59ea5d':
  cherrypick from lmp-docs docs: Add Wear Capability training Original Change-Id: I52ede5d91936c5eab3d6ee8be8108004cce1f0e0
2015-04-23 00:56:52 +00:00
Luan Nguyen
ee066f576e Merge "cherrypick from lmp-docs docs: Add Wear Capability training Original Change-Id: I52ede5d91936c5eab3d6ee8be8108004cce1f0e0" into lmp-mr1-ub-docs 2015-04-22 21:58:08 +00:00
Luan Nguyen
836f569870 cherrypick from lmp-docs docs: Add Wear Capability training
Original Change-Id: I52ede5d91936c5eab3d6ee8be8108004cce1f0e0

bug: 20088602
Change-Id: I968dfe13a9d74cae52bedeb9cb333f514d188cb4
2015-04-21 13:16:27 -07:00
Luan Nguyen
3499773195 cherrypick from lmp-docs docs: Add Channel API summary for Wear.
Original Change-Id: I447e58264e142a5e04aaf520d31dc4ced2506ecb

bug: 20089257
Change-Id: I25ad962ef847574d2152229ebb2ce268483c2a68
2015-04-21 13:13:22 -07:00
Quddus Chong
8408cbe3ad cherrypick from lmp-docs docs: Added 3rd-party Javadocs for Android Support
Testing Library v0.2. Original Change-Id: I0fab71be55f5c3c6d017ba585b92f8493050274a
bug: 20304402

Change-Id: I697f57335b671d5f17685c1f82d7c9158e6d4ce6
2015-04-21 09:33:09 -07:00
Luan Nguyen
5c1e306502 am 2da31b1e: am 886e8e11: am 2fdd83a9: am d2545775: am 4c20df0b: am 4aebbfbb: Merge "docs: Add Channel API summary for Wear." into lmp-docs
* commit '2da31b1ef75f239ee33fea4592cbf0159a0af8b4':
  docs: Add Channel API summary for Wear.
2015-04-21 15:59:24 +00:00
Luan Nguyen
33ac358a5a docs: Add Wear Capability training
bug: 20088602
Change-Id: I52ede5d91936c5eab3d6ee8be8108004cce1f0e0
2015-04-21 08:24:49 -07:00
Luan Nguyen
4aebbfbb9b Merge "docs: Add Channel API summary for Wear." into lmp-docs 2015-04-21 14:53:04 +00:00
Quddus Chong
d0ac1d176d am 3b6883b8: am 8cde8f7f: am b1c838e0: am 6f142008: am 220f360e: am 900831f3: docs: Added 3rd-party Javadocs for Android Support Testing Library v0.2. bug: 20304402
* commit '3b6883b8054ffad5b3cc845552d09bfe673cb889':
  docs: Added 3rd-party Javadocs for Android Support Testing Library v0.2. bug: 20304402
2015-04-20 23:53:12 +00:00
Quddus Chong
900831f303 docs: Added 3rd-party Javadocs for Android Support Testing Library v0.2.
bug: 20304402

Change-Id: I0fab71be55f5c3c6d017ba585b92f8493050274a
2015-04-20 14:01:24 -07:00
Joe Malin
f71f509af0 Docs: New swipe-to-refresh training guide.
Doc-in-progress inherited from xoogler's (unfinished) CL
http://ag/427505 . See comments for staging location.

Patch set 1 is the version inherited from the xoogler; PS2 is after
my edits. Per a conversation with CB, I've removed the "ListFragment"
doc, and just put in a note about that topic in the
"add-swipe-refresh" doc.

Change-Id: Id1a1294b15c5a7363f650ea13237948b0effbc40
2015-04-17 15:41:58 -07:00
Luan Nguyen
b5890f9b45 docs: Add Channel API summary for Wear.
bug: 20089257
Change-Id: I447e58264e142a5e04aaf520d31dc4ced2506ecb
2015-04-17 09:12:16 -07:00