Commit Graph

16272 Commits

Author SHA1 Message Date
Chen Xu
a56786981e Merge "new TelephonyRegistryManager" 2019-09-24 18:32:48 +00: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
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
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
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
Dave Mankoff
66d22c8a59 Ensure that the Application is constructed before any Service.
This fixes dependency injection issues and brings Service construction
in line with the way that Activities are created. Specifically, this
ensures that there is always a reference to a Context available at
the time a Service is constructed, such that the Context can then be
injected into the constructor of the Service.

Bug: 140868981
Test: atest SystemUITests
Change-Id: If85e4106fef8c2fd12f7ca9e8b7fd686af62e29b
2019-09-12 20:52:15 +00:00
Jeff Sharkey
211659a4e3 RESTRICT AUTOMERGE Strict SQLiteQueryBuilder needs to be stricter. am: 0e66ea6f32 am: 71765a75d1
am: 404ea77826

Change-Id: I12deb9d1415c14ed2995e6a7d0912126ac993750
2019-09-11 16:51:08 -07:00
Jeff Sharkey
404ea77826 RESTRICT AUTOMERGE Strict SQLiteQueryBuilder needs to be stricter. am: 0e66ea6f32
am: 71765a75d1

Change-Id: I4d007ddc8a109e86dd44d8523968576ff29e10b8
2019-09-11 16:20:00 -07:00
Jeff Sharkey
da99669780 RESTRICT AUTOMERGE Strict SQLiteQueryBuilder needs to be stricter. am: 0e66ea6f32
am: 71765a75d1

Change-Id: I83961bb6bdffa90583d28e416a98cb0efd62fb32
2019-09-11 16:20:00 -07:00
Jeff Sharkey
71765a75d1 RESTRICT AUTOMERGE Strict SQLiteQueryBuilder needs to be stricter.
am: 0e66ea6f32

Change-Id: I111fcc77d1e0c8b8065f5476fc2a0e75bf88f2a2
2019-09-11 16:13:02 -07:00
Mady Mellor
a5813e0e3d qt-r1-bubbles-dev @ build 5835883
Test: presubmit setup on source branch

Bug: 126945401
Bug: 128932906
Bug: 129158983
Bug: 130237686
Bug: 130250809
Bug: 130442248
Bug: 131267438
Bug: 131609280
Bug: 131692350
Bug: 131849856
Bug: 133444037
Bug: 134064116
Bug: 134064858
Bug: 134070807
Bug: 134077101
Bug: 134090085
Bug: 134155107
Bug: 134423445
Bug: 134512898
Bug: 134514210
Bug: 134514227
Bug: 134734945
Bug: 134960381
Bug: 134989736
Bug: 135214687
Bug: 135280077
Bug: 135472021
Bug: 135475155
Bug: 135487618
Bug: 135488406
Bug: 135518045
Bug: 135633218
Bug: 136034310
Bug: 136150954
Bug: 136199542
Bug: 136538998
Bug: 137201711
Bug: 137213469
Bug: 137214359
Bug: 137214536
Bug: 137233453
Bug: 137876221
Bug: 138301618
Bug: 138445026
Bug: 138659213
Bug: 138749133
Bug: 138799651
Bug: 138801505
Bug: 138941969
Bug: 139002444
Bug: 139025304
Bug: 139816141
Change-Id: Ia7364529ea58070c8d45ecd726ab6ac7d34f2abe
Merged-In: Ic271a6a0f0803941dd5a84124dabf4d8c5fcc755
Merged-In: Ic3a4ba793db7f1361678ef51c411d9eab85d9b85
2019-09-11 22:42:54 +00:00
Mady Mellor
3e3e48e981 Merge "qt-r1-bubbles-dev @ build 5835883" into qt-qpr1-dev-plus-aosp 2019-09-11 22:40:21 +00:00
Hongwei Wang
703ce15fef Merge "Ensure bounds animination for expanding PiP window" 2019-09-11 21:31:54 +00:00
Kevin Hufnagle
6e159aa9b9 docs: List BIOMETRIC_WEAK in setPasswordQuality()
Also converted curly quotes to straight in one of the notes.

Test: make ds-docs -j32

Bug: 135089189
Change-Id: I146fb7eec5da48496467a1bc7706f9d87dc339f7
2019-09-11 20:06:00 +00:00
Aurimas Liutikas
648056c210 Merge "Adding nullability annotations on ViewNode/AssistStructure." 2019-09-11 15:00:22 +00:00
Mark Renouf
2aece3dc1c Merge "Removes strong ref to Activity from RequestFinishCallback" into qt-qpr1-dev am: 0b1782d6b4
am: 717220d6a6

Change-Id: Iab1eb2d64cb9a6cfd8695466574afd579aca336a
2019-09-10 16:51:58 -07:00
Mark Renouf
717220d6a6 Merge "Removes strong ref to Activity from RequestFinishCallback" into qt-qpr1-dev
am: 0b1782d6b4

Change-Id: I56cbccdc32729b7382893ab448a27d323a1763e7
2019-09-10 16:44:43 -07:00
Xin Li
d57e959e71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: I65906d82b14125c0893d5cde0cfebb73bf9e38ab
Merged-In: I1f2564837c33cd4c6c3db6aac3cbaf8c09707da9
2019-09-10 11:16:29 -07:00
Mark Renouf
1c25fc531f Removes strong ref to Activity from RequestFinishCallback
This change eliminates the strong reference from
RequestFinishCallback to Activity.

Bug: 139782368
Test: Open then finish an activity within an ongoing app process
      Observe the Activity instance is no longer strongly reachable
      in the app process after onDestroy() completes.

Change-Id: I13e9707e96721a2d491629147337aaedc3473651
2019-09-10 14:08:36 -04:00
Jeff Sharkey
13f49c4259 RESTRICT AUTOMERGE
Enable stricter SQLiteQueryBuilder options.

Malicious callers can leak side-channel information by using
subqueries in any untrusted inputs where SQLite allows "expr" values.

This change starts using setStrictColumns() and setStrictGrammar()
on SQLiteQueryBuilder to block this class of attacks.  This means we
now need to define the projection mapping of valid columns, which
consists of both the columns defined in the public API and columns
read internally by DownloadInfo.Reader.

We're okay growing sAppReadableColumnsSet like this, since we're
relying on our trusted WHERE clause to filter away any rows that
don't belong to the calling UID.

Remove the legacy Lexer code, since we're now internally relying on
the robust and well-tested SQLiteTokenizer logic.

Bug: 135270103
Bug: 135269143
Test: atest DownloadProviderTests
Test: atest CtsAppTestCases:android.app.cts.DownloadManagerTest
Change-Id: Iec1e8ce18dc4a9564318e0473d9d3863c8c2988a
2019-09-10 11:07:32 -07:00
Philip P. Moltmann
5ffb16c95f Merge "Do not call into system server with sLock held" 2019-09-10 17:11:56 +00:00
Philip P. Moltmann
9bcc40655e Do not call into system server with sLock held
This is not necessary and causes lock issues.

Fixes: 140536454
Test: atest CtsAppOpsTestCases
Change-Id: I3d1c10f784fd18f82ddfc895ecf6e68711929fba
2019-09-09 23:23:51 +00:00