Commit Graph

16291 Commits

Author SHA1 Message Date
atrost
1904bb31ad Merge "Refactor ChangeReporter and rate limit stats logging." am: 9a253e12cc am: 76191fa6b0 am: 604f8002d8
am: 7564285e10

Change-Id: Ib6605757514b90ec5fb2df03f08fc7d48d12e08e
2019-09-26 10:59:12 -07:00
atrost
7564285e10 Merge "Refactor ChangeReporter and rate limit stats logging." am: 9a253e12cc am: 76191fa6b0
am: 604f8002d8

Change-Id: I5ed4a64b701041393026b742bc3f451d73c4ed33
2019-09-26 10:52:39 -07:00
atrost
604f8002d8 Merge "Refactor ChangeReporter and rate limit stats logging." am: 9a253e12cc
am: 76191fa6b0

Change-Id: I8c853fb3e09a83ad877f02132608884cfaba966f
2019-09-26 10:45:54 -07:00
atrost
76191fa6b0 Merge "Refactor ChangeReporter and rate limit stats logging."
am: 9a253e12cc

Change-Id: I33b14641d259efea6bf7038da264a3483e71f955
2019-09-26 10:39:31 -07:00
atrost
6624ffa207 Refactor ChangeReporter and rate limit stats logging.
Only log once per change-package-state(resets every app launch if used
from within the app process).

Next: reset every app launch for server usage as well.

Test: using the test app.
Bug: 138374585
Change-Id: I5587f7138cf2cd8d144e88cf294e65c14bb32bfb
2019-09-26 12:59:19 +01:00
Pavel Grafov
64247a1661 Merge "Throw if admin sets password constraints that have no effect." 2019-09-26 10:55:54 +00:00
TreeHugger Robot
cb364f996f Merge "Notify AutofillManager that activity is finishing on onDestroy()." 2019-09-26 03:49:46 +00:00
Lucas Dupin
16a4825807 Merge "Merge "Fix wrong Notification refactor" into qt-qpr1-dev am: 9c743a222d" into qt-qpr1-dev-plus-aosp
am: 33094b44d8

Change-Id: I808e7fb137d8a7e3e7d67235db4adecdb0fc23dc
2019-09-25 15:57:15 -07:00
Lucas Dupin
f43017962e Merge "Fix wrong Notification refactor" into qt-qpr1-dev
am: 9c743a222d

Change-Id: Ia329bece21b35d6379fbed7c72900ec7b0945131
2019-09-25 15:44:58 -07:00
Eran Messeri
3acf4a3e2d Merge "API for individual attestation" 2019-09-25 22:02:31 +00:00
TreeHugger Robot
781e42dda4 Merge "Mention singleTask case in Activity#isVoiceInteractionRoot" 2019-09-25 13:37:52 +00:00
Lucas Dupin
7b4d885c7c Fix wrong Notification refactor
We're wrongly showing the BigText content after ag/5928752

Fixes: 141446552
Test: post big text notification, look at lock screen
Change-Id: I02506a160afefb457f86eb00adccdaff44ddbd29
2019-09-25 01:05:14 +00:00
Chen Xu
a56786981e Merge "new TelephonyRegistryManager" 2019-09-24 18:32:48 +00:00
Eran Messeri
da05c80d6b API for individual attestation
Introduce a new API to request use of individual attestation
certificate for attesting keys generated by the
DevicePolicyManager.generateKeyPair method.

It builds on existing device ID attestation capabilities in two ways:
(1) Eligibility check: Assuming similar privacy requirements for the use
    of individual attestation certificates, enforce the same conditions
    for using them as the conditions for requesting device identifiers
    in the attestation record.
(2) Keymaster interaction: Passing the right Keymaster tag to the
    attestKey call, which is easily done in AttestationUtils.

Bug: 136494773
Test: CTS test to be added.
Change-Id: Idb5cee66d986a521c17e1955532d0bfae66c035d
2019-09-24 18:14:05 +01:00
Pavel Grafov
26fccb7dce Throw if admin sets password constraints that have no effect.
For admin apps targeting R+, throw when the app sets password requirement
that is not taken into account at  given quality, e.g. when quality is set
to UNSPECIFIED, it doesn't make sense to require certain password length.
If the intent is to require a password of certain length having at least
NUMERIC quality, the admin should first call setPasswordQuality() and only
then call setPasswordMinimumLength().

Conversely when an admin targeting R+ lowers password quality, those
requiremnts that stop making sense, are reset to default values.

+ fix the behaviour of getPasswordMinimumLength to match the docs: only
  admins with password quality >= NUMERIC should be taken into account.

Test: com.android.cts.devicepolicy..MixedDeviceOwnerTest#testResetPasswordWithToken
Test: com.android.cts.devicepolicy.DeviceAdminHostSideTestApi23#testRunDeviceOwnerPasswordTest
Test: com.android.cts.devicepolicy.MixedDeviceOwnerTestApi#testPasswordRequirementsApi
Test: com.android.cts.devicepolicy.MixedDeviceOwnerTestApi25#testPasswordRequirementsApi
Bug: 123562444
Change-Id: Id134a7918718e3b0a220caaf6c672df4238a062c
2019-09-24 16:11:44 +01:00
Philip P. Moltmann
e30ed0599d Merge "Run RuntimePermissionProperty tests when runtime permissions change" 2019-09-24 03:48:06 +00:00
Kevin Hufnagle
909128690a Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev am: 2a082b1e9e am: 096ece8f53 am: 25309b11da
am: 07a467ed78

Change-Id: I4fe698dd4ee7e1c2c3a0993f9cbecda6de0463d1
2019-09-23 16:33:57 -07:00
Kevin Hufnagle
07a467ed78 Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev am: 2a082b1e9e am: 096ece8f53
am: 25309b11da

Change-Id: I2cceed513156c1690124438b48f7a1ae85e7edaf
2019-09-23 16:26:37 -07:00
Kevin Hufnagle
a75d668167 Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev am: 2a082b1e9e
am: 096ece8f53

Change-Id: I9b64cde1a5ad874318feb3e4210f966e774f0f25
2019-09-23 16:24:41 -07:00
Kevin Hufnagle
25309b11da Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev am: 2a082b1e9e
am: 096ece8f53

Change-Id: I03b4f71aaa643e08a661fe383f2cff91c7a136f9
2019-09-23 16:19:39 -07:00
Kevin Hufnagle
096ece8f53 Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev
am: 2a082b1e9e

Change-Id: I74d42b68ebed97c2db3a179e92ba3196ffc7a04f
2019-09-23 16:08:03 -07:00
Kevin Hufnagle
2a082b1e9e Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev 2019-09-23 22:45:45 +00:00
Philip P. Moltmann
de1953f6c9 Merge "Split access-media-storage from read-external-storage" 2019-09-23 21:44:22 +00:00
Chen Xu
288b71c8c1 new TelephonyRegistryManager
today telephonyRegistry lives in system process
this is intended to persists all telephony listeners when
phone process crash. Telephony today notify system server by
using AIDL APIs directly. Instead, we are exposing a proper API
surface: telephonyRegistryManager where only phone app and
carrier privileged apps are allowed to use APIs in
TelephonyRegistryManger to notify telephony related status update.

Bug: 140908357
Test: Build & Manaul
Change-Id: I1b750751148925b4a7bd94553318907654012fc1
2019-09-22 19:56:39 -07:00
TreeHugger Robot
28d49244b7 Merge "Update PASSWORD_QUALITY_COMPLEX & setPasswordHistoryLength javadocs" 2019-09-21 02:41:20 +00:00
Philip P. Moltmann
2a5ee6ec38 [DO NOT MERGE] Split access-media-storage from read-external-storage
am: ac7b10c135

Change-Id: I50bb8b630a4834314f2a7ff4b78838ca221f7c77
2019-09-20 16:19:56 -07:00
Philip P. Moltmann
0698185471 Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-qpr1-dev 2019-09-20 23:09:43 +00:00
TreeHugger Robot
ea2a0eb8f5 Merge "Clear reference to EnterTransitionCoordinator when done" 2019-09-20 22:51:15 +00:00
Philip P. Moltmann
c12ee77b3d Merge "Fix dumpsys for appops proxy field" into qt-qpr1-dev am: 30c48bb54a
am: d69f2f1b97

Change-Id: I75efa3cb1cbd86bd697188e34ae51c75866a44e3
2019-09-20 13:50:46 -07:00
George Mount
785334aeaf Clear reference to EnterTransitionCoordinator when done
Fixes: 141162306

When transitions have completed, the EnterTransitionCoordinator
is no longer needed, so should be cleared so that its references
can be released.

Test: ran code producing the leak
Change-Id: Ia049d88a45dc27b77fcf4ab58a444457a6b87f88
2019-09-20 13:47:35 -07:00
Philip P. Moltmann
d69f2f1b97 Merge "Fix dumpsys for appops proxy field" into qt-qpr1-dev
am: 30c48bb54a

Change-Id: Id521633187bce10f41dce10ba4198bc42e9f363c
2019-09-20 13:41:11 -07:00
Philip P. Moltmann
89b044ffb8 Split access-media-storage from read-external-storage
And also pre-grant it to all apps that currently get any storage
permission pre-granted

cherry-pick for qt-qpr1-dev Ib9f50d25c002036f13cf2d42fc4d1b214f20920c

Test: - straight cherry-pick
      - atest SplitPermissionTest
Bug: 141048840,140961754
Change-Id: Ia2219639a2104965a382ffef647e5ebaa0f9d540
2019-09-20 10:31:19 -07:00
Philip P. Moltmann
ac7b10c135 [DO NOT MERGE] Split access-media-storage from read-external-storage
And also pre-grant it to all apps that currently get any storage
permission pre-granted

Test: atest SplitPermissionTest
      m -j gts && gts-tradefed run commandAndExit gts-dev -m GtsPermissionTestCases --test=com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions
      Manual testing:
         All combinations of
           - App targetSdk = 28 and 29 (and 22 for extra credit)
           - App having the <uses-permission> tag for
             ACCESS_MEDIA_LOCATION or not
           - Upgrade from P->Q-QPR and from vanilla Q->Q-QPR
         Further upgrade of targetSdk from 28->29 while on Q-QPR
         ==> All permission behavior should make sense. Sometimes there
             are weird, but expected behaviors. Hence we need to
             collect the results and then look at the unexpected ones.
             See SplitPermissionTest for some tests I added for the
             location-background permission which was split from
             the fine/coarse-location permissions
Fixes: 141048840,140961754
Change-Id: Ib9f50d25c002036f13cf2d42fc4d1b214f20920c
2019-09-20 16:45:58 +00:00
Pavel Grafov
d644f5c135 Update PASSWORD_QUALITY_COMPLEX & setPasswordHistoryLength javadocs
* removed the defaults mentioned in PASSWORD_QUALITY_COMPLEX. now it
  refers the reader to setPasswordMinimumXXX docs, where they can find
  information about the default values.
* removed reference to password quality constraints from
  setPasswordMinimumLength docs since it wasn't true and doesn't make
  sense.

Test: compiles
Bug: 138922259
Change-Id: I0b31273846cfb3546d99bd27b1b0174de3d7425a
2019-09-20 15:46:50 +01:00
Dave Mankoff
184c4a86d0 Merge "Ensure that the Application is constructed before any Service." 2019-09-20 13:14:15 +00:00
Philip P. Moltmann
4052d36f62 Fix dumpsys for appops proxy field
- Make flags is the last parameters in access decipher methods.
  All calling code assumes this.
- Get proxyUid info from the appropriate field
- Don't create proxy entries if uid is invalid
- Fixed some incorrect docs

Test: adb shell dumpsys appops now shows proxy information
Fixes: 141328071
Change-Id: I2f94e9b171133141643e628c9224d8d74ec5ad87
2019-09-19 16:12:43 -07:00
Beth Thibodeau
750ec58fec Output switch button in media notification header
Adds a chip-like button to the header of media notifications which will
open the media output slice. This was previously implemented as an
action button behind the feature flag and can be enabled by toggling
settings_seamless_transfer

Test: manual
Change-Id: I447b0add9d9de378fa09b5cf087518a81ec941e5
2019-09-18 15:29:41 -04:00
Anna Trostanetski
28fa70f0e0 Merge "Implement stats logging for Compatibility API." into stage-aosp-master am: 81e186ab99
am: 44b8ba5095

Change-Id: I0a7652cc97b7b50fc3797b26582b09caa0617a16
2019-09-18 03:55:45 -07:00
Anna Trostanetski
44b8ba5095 Merge "Implement stats logging for Compatibility API." into stage-aosp-master
am: 81e186ab99

Change-Id: I48e2e3cdc23cdfcc541a5912aec20435ebc4c0c8
2019-09-18 03:42:49 -07:00
Anna Trostanetski
13cd9c0b1c Merge "Implement stats logging for Compatibility API." 2019-09-18 10:32:47 +00:00
Ryan Lin
a5cd980c37 Merge "Rename AccessibilityGestureInfo" 2019-09-18 08:53:06 +00:00
Charles Chen
eba0a20afb Mention singleTask case in Activity#isVoiceInteractionRoot
Test: build & presubmit
fixes: 140532140
Change-Id: I486fd3c8b2b47b733763675d0206c9730dd04cac
2019-09-17 21:02:07 +08:00
Mady Mellor
fd48588768 Merge "qt-r1-bubbles-dev @ build 5835883" into qt-qpr1-dev 2019-09-16 21:55:51 +00:00
Philip P. Moltmann
4b38fbe1ea Allow permission<->appop translation for all appop permissions
Fixes: 141034220, 141034223, 141032267
Test: CtsPermission2TestCases:atest android.permission2.cts.RuntimePermissionProperties#allAppOpPermissionNeedAnAppOp
Change-Id: I08ad83fd42b54bd3b91983e632ef221d30793b35
2019-09-16 21:40:37 +00:00
atrost
e36b1a142f Implement stats logging for Compatibility API.
Add a new atom and log from both the app process API and the system server API
Bug: 136794938
Bug: 138378110
Test: statsd_testdrive 228

Change-Id: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
Merged-In: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
2019-09-16 14:55:53 +01:00
atrost
1516d5290c Implement stats logging for Compatibility API.
Add a new atom and log from both the app process API and the system server API
Bug: 136794938
Bug: 138378110
Test: statsd_testdrive 228

Change-Id: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
Merged-In: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
2019-09-16 14:54:44 +01:00
atrost
01a2093248 Implement stats logging for Compatibility API.
Add a new atom and log from both the app process API and the system server API
Bug: 136794938
Bug: 138378110
Test: statsd_testdrive 228

Change-Id: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
2019-09-16 14:26:01 +01:00
Philip P. Moltmann
889ecd2739 Run RuntimePermissionProperty tests when runtime permissions change
So that runtime permisions are less likely to be incorrectly declared.

Bug: 141033226
Test: atest --test-mapping frameworks/base/data/etc/platform.xml:presubmit
      atest --test-mapping frameworks/base/core/res/AndroidManifest.xml:presubmit
      atest --test-mapping frameworks/base/core/java/android/app/AppOpsManager.java:presubmit
Change-Id: I4cf58d2041b5fda6360ef148edb76c048371cca6
2019-09-13 21:21:25 -07:00
Hongwei Wang
c7c1883631 Merge "Ensure bounds animination for expanding PiP window" into qt-qpr1-dev
am: 5daf6c480b

Change-Id: I02db796d4a0adb59ee07b9012bcf8203e6788c24
2019-09-12 21:27:46 -07:00
Hongwei Wang
f0b5fb17fb Ensure bounds animination for expanding PiP window
The internal animation type maybe reset at the end of RecentsAnimation
following the repro path in bug comments. Ensure BOUNDS animation type
if we know for certain that we're expanding / collpasing the PiP window

Added also last reported multi-window and PiP mode in dumpsys. This is
for internal debug purpose only.

Bug: 137849660
Test: Manually, see b/137849660#comment9
Test: dumpsys activity -v all
Change-Id: I0b7d102ccb4bc27dd0e432d1022bc12a42a0c36d
Merged-In: I0b7d102ccb4bc27dd0e432d1022bc12a42a0c36d
(cherry picked from commit 2cebfd5e5f)
2019-09-12 21:55:46 +00:00