Commit Graph

79163 Commits

Author SHA1 Message Date
Patrick Baumann
159cd024d9 Marking used instant apps fields as System API
Change-Id: I4a907600b9fa75b1789843a9c2e7d2c33aaaff6b
Fixes: 71852699
Bug: 72450666
Bug: 72700831
Test: builds and AIA still functional
2018-01-31 14:00:18 -08:00
Patrick Baumann
43c97a0e90 Revert "Revert "Removes EphemrealResolverService and related""
This reverts commit 1e0c91968e.

Reason for revert: Original issue fixed

Fixes: 38137176
Fixes: 38121489
Test: manual; builds and instant apps launch
Change-Id: If320503381b21580ac1b127c49f754b39ffcc93b
2018-01-31 14:00:18 -08:00
Patrick Baumann
577d402d0d Revert "Revert "Adds generic intent Instant App resolution""
This reverts commit 860b8ba719.

The original change that was reverted contained a bug that allowed an
http view/browsable intent used to query for browsers to be considered
as a candidate for instant apps. This was resulting in an attempt to
bind to the instant app resolver while holding a lock on mPackages.

This change ensures that PMS doesn't bind while checking for the browser
status of a package in both the instant app filtering code and by adding
the FLAG_IGNORE_EPHEMERAL to the canonical browser intent.

Reason for revert: Applying fix

Change-Id: I4896b3a15416a11fdc3f6c191e552c4ce8963623
Fixes: 63117034
Fixes: 71916178
Test: Manual using test app at google_experimental/users/patb/InstantAppsInP
Test: atest android.appsecurity.cts.EphemeralTest passes after modification
2018-01-31 14:00:18 -08:00
TreeHugger Robot
f6659f9613 Merge "Camera: "getMaxSharedSurfaceCount" should be non-static" 2018-01-31 16:00:47 +00:00
TreeHugger Robot
dd020f6fb9 Merge "Add key rotation." 2018-01-31 15:55:10 +00:00
TreeHugger Robot
0a2ff2f64c Merge "APK Signature Scheme v3: add version number to proof-of-rotation." 2018-01-31 15:26:33 +00:00
Jaewan Kim
bc55661b11 Merge "MediaSession2: Hide system apis" 2018-01-31 14:12:56 +00:00
Abodunrinwa Toki
0172104cf3 Merge "Smart Linkify API" 2018-01-31 12:37:16 +00:00
TreeHugger Robot
cb6854eb8f Merge "Implement TextClassifier.getLogger API" 2018-01-31 11:56:41 +00:00
Abodunrinwa Toki
3bb4436138 Implement TextClassifier.getLogger API
- Introduces getLogger() API.
 - A logger should run in the client's process. This helps us manage
   sessions specific to a client.
 - The logger exposes a tokenizer that clients may use to tokenize
   strings for logging purposes.
 - Logger subclasses need to provide a writeEvent() implementation.
 - SelectionEvent is serializable over IPC.
 - Logger takes care of the session management. It writes session
   specific information into the SelectionEvent.
 - We still keep the SmartSelectionEventTracker for now so clients
   can slowly move off of it. The plan is to delete it.
 - The plan is to include support other event types. e.g. link events.

Bug: 64914512
Bug: 67609167
Test: See topic
Change-Id: Ic9470cf8f969add8a4c6570f78603d0b118956cd
2018-01-31 10:09:54 +00:00
TreeHugger Robot
397c38d017 Merge "Revert "Adds generic intent Instant App resolution"" 2018-01-31 09:57:26 +00:00
TreeHugger Robot
4b4539b6b0 Merge "Revert "Removes EphemrealResolverService and related"" 2018-01-31 09:57:17 +00:00
Abodunrinwa Toki
fe20cdd910 Smart Linkify API
Uses the TextClassifier to generate links on a background thread.
The links are applied on the calling thread.

Test: see topic
Bug: 67629726
Change-Id: I0f1940a2ffbf19f4436c0a20b0c62e6bbc03cd7a
2018-01-31 09:42:36 +00:00
Sungsoo Lim
7d30e1c554 MediaSession2: Hide system apis
Test: build
Change-Id: I6c56c260a002086bbd2c20420b301c66635215c3
2018-01-31 15:43:55 +09:00
TreeHugger Robot
8420d5e596 Merge "Introduce a TextClassifierManagerService." 2018-01-31 05:26:27 +00:00
TreeHugger Robot
2043082f96 Merge "Move View related methods to helper class" 2018-01-31 04:48:32 +00:00
TreeHugger Robot
8028c8cd5d Merge "Dump per uid Binder Proxy Count before ProxyMap assert" 2018-01-31 04:31:32 +00:00
TreeHugger Robot
d7e0860b43 Merge "Re-added support for deprecated BIND_AUTOFILL permission." 2018-01-31 03:20:10 +00:00
TreeHugger Robot
8fe62bea0b Merge "New autofill APIs: DateTransformation and DateValueSanitizer." 2018-01-31 03:02:41 +00:00
Patrick Baumann
1e0c91968e Revert "Removes EphemrealResolverService and related"
This reverts commit 5564f880db.

Reason for revert: Resolve merge conflict for another revert (ag/3537193)
Bug: 72710855
Change-Id: Id7c3a3993a45c588ee4668d7486d67d764541b1e
2018-01-31 03:00:26 +00:00
Christofer Åkersten
a6c97e4615 Move View related methods to helper class
Test: Instantiate MediaControlView2
Change-Id: Ia958a97b38e67f236ee510978c379af9249d2887
2018-01-31 11:27:40 +09:00
TreeHugger Robot
3a247b19dd Merge "Removes EphemrealResolverService and related" 2018-01-31 02:05:32 +00:00
Patrick Baumann
860b8ba719 Revert "Adds generic intent Instant App resolution"
This reverts commit 3e8bd0f3b5.

Reason for revert: b/72710855

Change-Id: I1378ccb5c5c16256e472e1ff7c3ad2460e091300
Fixes: 72710855
2018-01-31 01:35:13 +00:00
Dan Cashman
1dbe6d0284 Add key rotation.
Change certificate checks to also consider the possibility of
signing certificate rotation by checking the
SigningDetails#pastSigningCertificates field.  In particular, add a
SigningDetails#checkCapability method which reports whether or not
the older SigningDetails is an ancestor of the current one, and
queries whether or not the old one has been granted capabilities,
such as being a sharedUser.

Bug: 64686581
Test: Builds, boots, browser and camera work, all with v3 signing.

Change-Id: I4199ff3f2d9ae959325b117b28e666ae31889800
2018-01-30 16:59:31 -08:00
Dan Cashman
a656b8bf9f APK Signature Scheme v3: add version number to proof-of-rotation.
The proof-of-rotation record contains a list of signing certificates
and corresponding flags.  New flags may be defined in future platform
versions, but APKs targeting P would have no knowledge of them.  Add
a version code to enable future platform versions to identify which
flags were deliberately set.  Ignore the version code for this
platform version, though, since all flags are known.

Bug: 64686581
Test: Builds, boots.
Change-Id: I765f50918f7f337100aff3ed15999b45369fc9d1
2018-01-30 16:59:31 -08:00
Andrii Kulian
7db9d22139 Merge "Always execute onStop and onSaveInstanceState together" 2018-01-31 00:46:21 +00:00
TreeHugger Robot
5b44673751 Merge "New Autofill APIs for UserData id." 2018-01-31 00:45:33 +00:00
Michael Wachenschwanz
58ac218a52 Dump per uid Binder Proxy Count before ProxyMap assert
To help identify which apps may be leaking binder proxies

Bug: 71353150
Test: manual
Change-Id: Ib377056e3cef7088c6b05a03921d0b7a4f89d422
2018-01-30 15:44:52 -08:00
Alex Chau
87ea3c3de3 Merge "API Review: Return status code for user management APIs" 2018-01-30 23:30:52 +00:00
Dmitry Dementyev
a823068ef1 Merge "Remove finalizer which clears user secret at unpredictable time." 2018-01-30 22:56:20 +00:00
Patrick Baumann
5564f880db Removes EphemrealResolverService and related
This change removes deprecated classes and constants that were not
renamed from ephemeral to instant prior to O. There were no
consumers of these APIs as correctly named alternatives existed and were
referenced in docs. No known consumers of these APIs exist on user
builds.

Fixes: 38137176
Fixes: 38121489
Test: manual; builds and instant apps launch
Change-Id: I982f8a6edc5668dd42cea65e52a1433ec8d6f8ef
2018-01-30 22:48:03 +00:00
TreeHugger Robot
d937d4b80c Merge "Update slice constants for range/input range." 2018-01-30 22:21:21 +00:00
TreeHugger Robot
827aa57f16 Merge "Update HIDL-related documentation." 2018-01-30 22:15:36 +00:00
TreeHugger Robot
8731a19256 Merge "Feature flag for stopping restricted profiles" 2018-01-30 22:10:33 +00:00
TreeHugger Robot
df8ec9fc71 Merge "Modify SystemApi so it can be used by CTS to trigger incident report" 2018-01-30 21:57:33 +00:00
TreeHugger Robot
031d5d65f9 Merge "Improve docs for WebView data dir methods." 2018-01-30 21:55:25 +00:00
TreeHugger Robot
72482d91b2 Merge "Updating the text classifier model path" 2018-01-30 21:50:35 +00:00
Mihai Popa
39b9f424f9 Merge "[Magnifier - 18] Make #update() public" 2018-01-30 21:35:29 +00:00
Dmitry Dementyev
19da3400a6 Remove finalizer which clears user secret at unpredictable time.
Bug: 72443379
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Id5410494664952d171beff615e0497a8af061e69
2018-01-30 13:16:47 -08:00
David Ogutu
321ef3a5af Merge "Fix TimePicker separator l10n issue." 2018-01-30 20:57:58 +00:00
Felipe Leme
87b7f8f1b8 Re-added support for deprecated BIND_AUTOFILL permission.
This permission was renamed during the O previews but it was supported on the
final O release, so we need to carry it over.

Test: atest CtsAutoFillServiceTestCases
Bug: 70682223

Change-Id: I2b3d798fe9c09751138f154e6e69e6af6b60dbb1
2018-01-30 12:28:19 -08:00
TreeHugger Robot
e939aa7b92 Merge "Remove feature flag for settings app info v2" 2018-01-30 19:57:48 +00:00
TreeHugger Robot
7f8fddc310 Merge "Fix slice listener permissions" 2018-01-30 19:19:27 +00:00
Robin Lee
81ad972f39 Feature flag for stopping restricted profiles
Defaults to true by default. Some devices may override this to force the
restricted profile to stop when not in use to save all the memory it
consumes where that is an issue.

There is no framework / first-party code setting it, but since this
is checked every time a user switches into the profile rolling it out
should be relatively straightfoward.

Bug: 71626497
Test: make droid
Change-Id: I7a718c4fdd2d80131df083908129b715d94e824e
2018-01-30 19:46:25 +01:00
Steven Moreland
739811a5c5 Update HIDL-related documentation.
This is a followup CL to previous @SystemApi CLs.

Bug: N/A
Test: N/A
Change-Id: I9c7dcc776dcfb89fd90afa4fc5d74e40ff0a5f94
2018-01-30 10:11:40 -08:00
David Ogutu
628bb61c30 Fix TimePicker separator l10n issue.
This was surfacing in the android clock with certain locales e.g. fr_CA.
Fixed for all unqiue locale patterns.

Bug: 71572309
Test: manual - changed locale to Fr_CA and made sure clock seperator WAI
Test: atest CtsWidgetTestCases:TextViewTest CtsWidgetTestCases:EditTextTest CtsWidgetTestCases:TextViewFadingEdgeTest FrameworksCoreTests:TextViewFallbackLineSpacingTest FrameworksCoreTests:TextViewTest

Change-Id: Ie43bf9428e8c5ef2fe2e9545cb5a6dada25d6e52
2018-01-30 12:44:45 -05:00
Alex Chau
596c2880b3 API Review: Return status code for user management APIs
- Replaced boolean return value with error code

Bug: 71866621
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_StartInBackground
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_StartInBackground_MaxRunningUsers
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_CannotStopCurrentUser
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_StopUser
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LogoutUser
Test: com.android.cts.devicepolicy.DeviceOwnerPlusProfileOwnerTest#testCannotStartManagedProfileInBackground
Test: com.android.cts.devicepolicy.DeviceOwnerPlusProfileOwnerTest#testCannotStopManagedProfile
Test: com.android.cts.devicepolicy.DeviceOwnerPlusProfileOwnerTest#testCannotLogoutManagedProfile
Change-Id: Iddc3e33c91c3f9584d53e537dbab3f61b8772fb1
2018-01-30 17:34:07 +00:00
TreeHugger Robot
906fe08da4 Merge "ViewRootImpl: Notify SurfaceHolder.Callback if the surface size changed" 2018-01-30 17:15:46 +00:00
TreeHugger Robot
1b24054faf Merge "Fixed Activity.dump() to lazy load AutofillManager if needed." 2018-01-30 16:56:16 +00:00
Torne (Richard Coles)
de956b7f9b Improve docs for WebView data dir methods.
Update the javadoc for the WebView data directory methods to make it
more clear in what cases these APIs should be used, and what limitations
apply to applications with multiple data directories.

Bug: 63748219
Test: n/a
Change-Id: I98f49c7a75df00aedf2472731b915c3e30e6ba13
2018-01-30 11:41:35 -05:00