Commit Graph

112237 Commits

Author SHA1 Message Date
Chester Hsieh
750b5ed85c Allow test builds to optionally skip verification
Currently, every build a developer creates will be verified
against the Play Store verification system. For developers, this
is a completely useless step, takes up resources, and eats into
iteration time.

This CL disables verification for debug development builds that
are reinstalled over ADB. This keeps users who install OTA safe,
and lets devs avoid the cost of verification.

There is no reduction in safety for the end user as:
1) Verification can only be skipped when installing over ADB and
   the "-t" as well as the new "--disable-verification" flags are
   specified ("-t" isn't strictly necessary).
2) The user can already disable verification over ADB by simply
   setting a flag.

Test: atest PackageVerifierTest#testAdbSkipVerification
Bug: 138672462
Change-Id: Id0bef5126f2fb49a8e30fc235193636a1c2bab2e
2020-02-06 14:28:06 -08:00
Rob Carr
d40bc7afea Merge "Introduce BLASTSyncEngine" 2020-02-06 22:10:03 +00:00
TreeHugger Robot
6cd4ee4ce6 Merge "add getters to SoundTrigger.ModelParamRange" 2020-02-06 21:43:42 +00:00
TreeHugger Robot
c5bd42701b Merge "Fix an issue that it is impossible to have multiple active sessions" 2020-02-06 21:31:08 +00:00
TreeHugger Robot
799de92e69 Merge "SurfaceView: Show SurfacePackage child when reparenting" 2020-02-06 20:34:09 +00:00
TreeHugger Robot
45a25406e5 Merge "Add missing annotation permission for UPDATE_APP_OP_STATS" 2020-02-06 20:30:38 +00:00
Robert Carr
e10ee3d2eb Introduce BLASTSyncEngine
Test: wmtests/TaskOrganizerTests, TaskOrganizerTests demo apps
Change-Id: I82c2e184e93782549bc4f78e0986a026d7ef8d03
2020-02-06 12:25:51 -08:00
TreeHugger Robot
b41e7e8fe4 Merge "Fix the isHashed value to true for all certificate keys." 2020-02-06 20:19:37 +00:00
Ilya Matyukhin
185efbaf22 Merge "Add support for fingerprint@2.2 and face@1.1" 2020-02-06 20:17:38 +00:00
TreeHugger Robot
90fbb634f4 Merge "Describe in which cases getLast* methods return -1/null" 2020-02-06 19:28:09 +00:00
Roshan Pius
0625fde194 Merge changes from topic "network_specifier_uid_packageName"
* changes:
  Wifi/WifiAware NetworkSpecifier: Stop storing uid/packageName
  NetworkRequest: Embed requestor uid & packageName
2020-02-06 19:08:51 +00:00
Ameer Armaly
a540e1eea9 Merge changes from topic "Four-finger Gestures"
* changes:
  Add four-finger gestures.
  Fix crash when a motion event doesn't include locations for all pointers.
2020-02-06 18:53:32 +00:00
Philip P. Moltmann
053dbad9fd Merge changes from topic "AppOpsFgBackgroundMode"
* changes:
  Package manager is not ready when reading app-ops state
  Use setUidMode when reading state
  Expose syntax for app-ops settings as test-api
  Callback startWatchingMode with the right op
  Force update uid state when pending uid state is applied
  Notify all packages is uid-mode is changed
2020-02-06 18:21:52 +00:00
Automerger Merge Worker
3ef03023e5 Merge "Add CompatChanges API." am: 54036c0525 am: 9f9657ee5e am: f1f1b1402a
Change-Id: Id473cf123c184eb4247f93ebc9d96bbb87f9f7a7
2020-02-06 18:13:41 +00:00
Omer Nebil Yaveroglu
e5a165f39d Fix the isHashed value to true for all certificate keys.
Bug: 148955753
Test: atest frameworks/base/core/tests/coretests/src/android/content/integrity
Change-Id: I7c19fa9a37a3ab94453e9520c14f964fdc952439
2020-02-06 18:05:28 +00:00
Tony Mak
2cfc5bb18b Fix an issue that it is impossible to have multiple active sessions
Root cause:
TCM caches SystemTC. TCM.createTCSession returns a wrapper of
the same SystemTC and it just updates the sessionID
(and some other session related stuff) of the shared system TC.
That means, if clients call createTCSession multiple times for multiple
active sessions, all of these session TCs have the same session ID
(the latest one) because they all point to the same SystemTC.

It has been an issue since P. But we don't really have code that creates
multiple active sessions before R. In R, we create a session per each
notification, and thus hit the bug.

Solution:
Don't cache SystemTC. SystemTC is just a thin wrapper that forwards calls
to TCMS anyway.

BUG: 149012454
Test: atest CtsTextClassifierService (Added a new test in ag/10260978.)
Test: Sanity tests: smart selection and smart replies are still working.

Change-Id: I71fe558b2f3d2c5d9eb0b6fc7f258fb4d8ad48d6
2020-02-06 17:58:58 +00:00
Automerger Merge Worker
f1f1b1402a Merge "Add CompatChanges API." am: 54036c0525 am: 9f9657ee5e
Change-Id: Ief0b05e44e55c562df4dd616ba9ffdc534463468
2020-02-06 17:55:28 +00:00
Alex Kershaw
fd3e83b265 Add missing annotation permission for UPDATE_APP_OP_STATS
Bug: 136249261
Bug: 140728653
Test: Manual
Change-Id: I4b3f9ecefb9764470f9d7ae30f64bb7ee10bbc78
2020-02-06 17:52:59 +00:00
Automerger Merge Worker
746ba5d891 Merge "More renames for API council" am: b03661f5d8 am: 02e64e352c am: 9522f9ff0f
Change-Id: I642777126bf77db09c8b64a8302145472272c9c6
2020-02-06 17:48:17 +00:00
Automerger Merge Worker
9f9657ee5e Merge "Add CompatChanges API." am: 54036c0525
Change-Id: Ieade8f2b33423bad4219ab2982b876b06e355e84
2020-02-06 17:43:00 +00:00
Automerger Merge Worker
9522f9ff0f Merge "More renames for API council" am: b03661f5d8 am: 02e64e352c
Change-Id: I83a0a98b18cffd92a8f2eed727b5fa277d89a5be
2020-02-06 17:37:36 +00:00
Andrei-Valentin Onea
54036c0525 Merge "Add CompatChanges API." 2020-02-06 17:31:15 +00:00
Automerger Merge Worker
02e64e352c Merge "More renames for API council" am: b03661f5d8
Change-Id: I1bd4db67106f8e885ca8449103af569ab100c361
2020-02-06 17:22:28 +00:00
Philip P. Moltmann
7c0524fc0c Describe in which cases getLast* methods return -1/null
Test: None
Fixes: 149015680
Change-Id: Ic7d0564ac3d5fc821854321913ec7e074a262aa1
2020-02-06 09:21:31 -08:00
Bernardo Rufino
e481352792 Add Toast logs and update docs
Some methods should not be called on text toasts rendered by the system
UI, adding logging and updating docs. Check go/toast-block-design for
details.

Bug: 128611929
Bug: 144754526
Test: Builds
Test: atest android.widget.cts29.ToastTest android.widget.cts.ToastTest
Change-Id: I282288afd0be604b2fdaa1348f09fc59e8f33d98
2020-02-06 17:19:23 +00:00
Neil Fuller
b03661f5d8 Merge "More renames for API council" 2020-02-06 17:05:02 +00:00
TreeHugger Robot
1641a7a485 Merge "Run AppSecurityTests in postsubmit." 2020-02-06 17:01:33 +00:00
Bernardo Rufino
bb13349930 Merge "Don't block app-rendered text toast on apps with targetSdk < 30" 2020-02-06 17:00:26 +00:00
Alex Buynytskyy
030536c8b8 Merge "Set incremental apk directories" 2020-02-06 15:38:15 +00:00
Roshan Pius
e38acab53e NetworkRequest: Embed requestor uid & packageName
Add the requestorUid & requestorPackageName fields to
NetworkCapabilities. This is populated by CS when
a new network request is received.
These 2 requestor fields are also optionally used for network
matching. All of the regular app initiated requests will have the
requestor uid and package name set by connectivity service. Network
agents can optionally set the requestorUid and requestorPackageName
to restrict the network created only to the app that requested the network.

This will help removing the necessity for the various specifiers to embed
the uid & package name info in the specifier for network matching.

Note: NetworkSpecifier.assertValidFromUid() is deprecated & removed in
favor of setting the uid/package name on the agent to restrict the
network to a certain app (useful for wifi peer to peer API & wifi aware).

Bug: 144102365
Test: Verified that wifi network request related CTS verifier tests
pass.
Test: Device boots up and connects to wifi networks
Change-Id: I207c446108afdac7ee2c25e6bbcbc37c4e3f6529
2020-02-06 07:36:29 -08:00
TreeHugger Robot
75e65fa6bc Merge "Add the tabs height when determining the height of the share sheet" 2020-02-06 15:22:21 +00:00
Alan Stokes
8ee6bc3af6 Run AppSecurityTests in postsubmit.
Because we care if they break.

Putting the change here because this covers changes in at least
android/content/pm and services/core/.../pm (the latter has a
TEST_MAPPING that imports this one).

Test: atest :postsubmit
Bug: 137951074
Change-Id: Ie03397c857d6a94702549ba325631558ed04a9db
2020-02-06 15:18:03 +00:00
atrost
8a3cd58882 Add CompatChanges API.
This wraps our existing APIs for isChangeEnabled, and is exposed for
mainline modules to use.
Also upgrading PlatformCompatChangeRule to androidx to match with
frameworks coretests.

Test: http://aosp/1203413
Test: atest android.app.compat.CompatChangesTest
Test: atest com.android.tests.gating.PlatformCompatGatingTest
Bug: 142650523
Change-Id: I12b9436c2ea955e9b74228f150b872d6eb3a1081
2020-02-06 14:42:31 +00:00
TreeHugger Robot
a7db3c8e79 Merge "Add a flag to allow system health experiment for the behavior change ... of getDefaultTextClassifierImplementation()" 2020-02-06 11:50:42 +00:00
Narayan Kamath
85e2378965 Merge "Reland: Rework platform version to hide codenames." 2020-02-06 10:51:15 +00:00
Dianne Hackborn
db0074542c Reland: Rework platform version to hide codenames.
The public platform version no longer can be a codename, it is
always the most recently released platform.  A new build property
and API provides either the offical version or the current codename
as appropriate.  This will avoid breaking apps that look at the
platform version while development is under a codename.

Bug:  143175463
Test: manual
Exempt-From-Owner-Approval: Relanding change with zero delta in this project.
Change-Id: I4407df40151d884293fa9d301a401b65bedb5527
2020-02-06 10:50:43 +00:00
Bernardo Rufino
2f167d3823 Don't block app-rendered text toast on apps with targetSdk < 30
We've decided to gate the text toast move on targetSdk due to an app
crash (b/148438364) but decided not to gate the background custom toast
block (in NMS) on targetSdk temporarily to gather dogfood and DP
feedback. This meant that app-rendered text toasts (which are only
possible for apps with targetSdk < 30) were being blocked in NMS since
they were being considered custom toasts.

This brings back the boolean inside Toast class that differentiates
between custom and text toasts for apps with targetSdk < 30, since both
are app-rendered in this case. This code won't be present on final
version and is temporary to gather feedback on dogfood and DP, since
almost no app currently targets SDK 30+. We'll gate both changes (the
system UI move and the bg custom toast block) on targetSdk later on.

Bug: 148761979
Bug: 148794147
Bug: 144754526
Test: Verify that, while on the background:
      App with       | Custom toast | Text toast
      targetSdk < 30 |      Blocked |    Allowed
      targetSdk 30+  |      Blocked |    Allowed
Test: atest android.widget.cts.ToastTest android.widget.cts29.ToastTest
            LegacyToastTest

Change-Id: Id529028bc463034cd2f64a6f2f97e71bc6ea7c36
2020-02-06 10:11:34 +00:00
Ilya Matyukhin
ef410e3c1e Add support for fingerprint@2.2 and face@1.1
This CL adds the necessary plumbing, but not implementation, to do the
following:

biometrics.fingerprint@2.2:
- enroll_2_2(..., handle windowId)
- authenticate_2_2(..., handle windowId)

biometrics.face@1.1:
- enroll_1_1(..., handle windowId)
- enrollRemotely(...)

Bug: 148493694
Bug: 145562442
Test: enrolled and authenticated with Keyguard and BiometricPrompt
Test: compiled face@1.0 HAL as face@1.1 and made sure it works
Change-Id: I22e25df4d880d16d21a940e7dff6d233b64743d1
2020-02-06 01:49:40 -08:00
Hung-ying Tyan
2f6b69c5e7 Merge "Resolve media directories to the real paths" 2020-02-06 09:32:21 +00:00
Automerger Merge Worker
3e04f5af27 Merge "Avoid a @Nullable Boolean" am: 81a42af40d am: fd9c242128 am: 0db1f949da
Change-Id: Iae09c0c6e0d0b8cc9018b811c658d7d73e8a729b
2020-02-06 09:24:58 +00:00
TreeHugger Robot
99e648eafe Merge "Add document for ALLOWED_NETWORK_TYPES" 2020-02-06 09:08:13 +00:00
Automerger Merge Worker
0db1f949da Merge "Avoid a @Nullable Boolean" am: 81a42af40d am: fd9c242128
Change-Id: Id445c7151b8828df42e362eb2391357a18d06dee
2020-02-06 09:05:41 +00:00
Automerger Merge Worker
fd9c242128 Merge "Avoid a @Nullable Boolean" am: 81a42af40d
Change-Id: I5cf10a143bba4351efa2ea22fc5ccddb732f3044
2020-02-06 08:52:00 +00:00
Neil Fuller
81a42af40d Merge "Avoid a @Nullable Boolean" 2020-02-06 08:43:56 +00:00
Neil Fuller
c0d59e39d7 More renames for API council
Renames PhoneTime[|Zone]Suggestion to TelephonyTime[|Zone]Suggestion.
Makes changes to generally avoid PHONE and use SLOT_INDEX or telephony
as appropriate for the usage. Removes telephony / phone from a few
variable names where it doesn't add value.

This commit also renames some remaining phoneId instances to slotIndex
which were missed when that rename happened.

Bug: 148842434
Test: treehugger
Change-Id: I4302e68082b802b75b53c02a9c9b1ae39dff6085
2020-02-06 08:41:26 +00:00
Songchun Fan
476bcf76ac Set incremental apk directories
Set up incremental storages such that it works with the new app code
path layout.

Ensures that package names do not show up in /proc/mounts

$ cat /proc/self/mountinfo
2806 90 0:79 / /data/incremental/data_incremental_tmp_1042476774/mount rw,nosuid,nodev,noatime shared:34 - incremental-fs incfs.img rw,read_timeout_ms=10000,readahead=0,rlog_pages=2,rlog_wakeup_cnt=10
6946 90 0:79 /st2 /data/app/~~WE4d9B-MZg0iZckOxIhPGQ== rw,nosuid,nodev,noatime shared:34 - incremental-fs incfs.img rw,read_timeout_ms=10000,readahead=0,rlog_pages=2,rlog_wakeup_cnt=10
7014 2806 0:79 /st2 /data/incremental/data_incremental_tmp_1042476774/mount/st2 rw,nosuid,nodev,noatime shared:34 - incremental-fs incfs.img rw,read_timeout_ms=10000,readahead=0,rlog_pages=2,rlog_wakeup_cnt=10
7013 6946 0:79 /st2 /data/app/~~WE4d9B-MZg0iZckOxIhPGQ== rw,nosuid,nodev,noatime shared:34 - incremental-fs incfs.img rw,read_timeout_ms=10000,readahead=0,rlog_pages=2,rlog_wakeup_cnt=10

BUG: b/147371381 b/148237378
Test: manual
Change-Id: I149903ae63ee27da5957e41c16f21f3435f9e636
2020-02-06 05:26:16 +00:00
Automerger Merge Worker
f01ecddd8c Merge "BluetoothAdapter#connectAllEnabledProfiles and BluetoothAdapter#disconnectAllEnabledProfiles updated to require BLUETOOTH_PRIVILEGED permission and update documentation to indicate connection and disconnection is asynchronous" am: 750ab04052 am: 1f65bc19d4 am: 08730cb3b2
Change-Id: I5f4c5445841de8ebb61a5197156e78b512068659
2020-02-06 05:19:47 +00:00
TreeHugger Robot
9ade0418a6 Merge "Add @Deprecated tag to Toast.getView()" 2020-02-06 05:08:53 +00:00
Automerger Merge Worker
08730cb3b2 Merge "BluetoothAdapter#connectAllEnabledProfiles and BluetoothAdapter#disconnectAllEnabledProfiles updated to require BLUETOOTH_PRIVILEGED permission and update documentation to indicate connection and disconnection is asynchronous" am: 750ab04052 am: 1f65bc19d4
Change-Id: Ie5d4e5b0e38d4d394d94811cebcf720ba17bfb5b
2020-02-06 05:04:43 +00:00
Shu Chen
b2ebfecce5 Merge "Use the line height for the magnifier source height." 2020-02-06 04:55:09 +00:00