Commit Graph

15692 Commits

Author SHA1 Message Date
Sudheer Shanka
cb36319306 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev
am: 4344e7c721

Change-Id: Iaf52026e9d67f97b94cc0426a460f94b5fa358ec
2019-05-22 01:58:24 -07:00
Felipe Leme
395118e622 Merge "Minor improvements on voice interaction workflows." into qt-dev
am: 7aa28bd502

Change-Id: I9095ebe2537bb4b8344fb31d35e544d978082aee
2019-05-22 00:12:48 -07:00
Sudheer Shanka
4344e7c721 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev 2019-05-22 02:20:08 +00:00
TreeHugger Robot
7aa28bd502 Merge "Minor improvements on voice interaction workflows." into qt-dev 2019-05-21 21:05:41 +00:00
Sudheer Shanka
1b817f65db Don't use linked mediastore uris in DownloadProvider operations.
When MediaProvider db gets recreated, all the media content ids
get renumbered. It's possible that when DownloadProvider is
trying to delete an entry, it is holding onto a invalid mediastore
uri. So, don't use linked mediastore uris in DownloadProvider
operations. Also, revoke any prior uri grants of media content from
DownloadStorageProvider.

Bug: 132087334
Test: manual
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java
Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java
Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/AppSecurityTests.java
Change-Id: I4885f5a0ae0b3ab660426605a8a43b8c1d66a4c7
2019-05-21 10:21:43 -07:00
Winson
5e5b408d50 Merge "Force system ApplicationInfo update and notify DisplayManager" into qt-dev
am: 70e0438d59

Change-Id: I61555aa42d6d6778b0a3321d5a449229496d206b
2019-05-20 13:23:25 -07:00
TreeHugger Robot
70e0438d59 Merge "Force system ApplicationInfo update and notify DisplayManager" into qt-dev 2019-05-20 19:12:20 +00:00
Mark Renouf
c60f56d8ff Merge "Adds setCornerRadius to ActivityView & SurfaceView" into qt-dev
am: b46293f8f6

Change-Id: If481fa20f4b005c059bae835a431f84fc2da44f4
2019-05-20 10:30:39 -07:00
TreeHugger Robot
b46293f8f6 Merge "Adds setCornerRadius to ActivityView & SurfaceView" into qt-dev 2019-05-20 16:30:20 +00:00
Philip P. Moltmann
cb9eac87e3 Merge "Whitelist all perms on installExistingPackage" into qt-dev
am: 4f09b09f62

Change-Id: I4846eb0e9ea4697d033000b46aa744a8ce70e2e6
2019-05-17 13:28:47 -07:00
Philip P. Moltmann
4f09b09f62 Merge "Whitelist all perms on installExistingPackage" into qt-dev 2019-05-17 19:56:19 +00:00
Mark Renouf
34d04f36c3 Adds setCornerRadius to ActivityView & SurfaceView
Applies corner radius to Bubbles when expanded, based on
dialogCornerRadius theme attribute.

Test: manual -- Enable Bubbles, add one and expand, observe corners
Bug: 123545569
Change-Id: I88162a974534786b4ac8bed4e0fa1302bded9096
2019-05-16 11:22:25 -04:00
Rubin Xu
d9246f1e9e Merge "Do not compare ID when deduplicating SecurityEvent" into qt-dev
am: 8c10c28673

Change-Id: Ia04f7841f89a911acf488b28a0434bb3595c4042
2019-05-16 04:28:38 -07:00
Rubin Xu
8c10c28673 Merge "Do not compare ID when deduplicating SecurityEvent" into qt-dev 2019-05-16 11:17:48 +00:00
Michael Wachenschwanz
74c3578008 Merge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev
am: a324083f3d

Change-Id: Id98bed9fe11f896ae910de8f83268ef4daf0e2e1
2019-05-16 00:18:06 -07:00
Michael Wachenschwanz
a324083f3d Merge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev 2019-05-16 06:18:48 +00:00
Felipe Leme
ada5184574 Minor improvements on voice interaction workflows.
Bug: 131411751
Fixes: 132783948

Test: atest CtsVoiceInteractionTestCases CtsAssistTestCases

Change-Id: I28c8577caa35a783863f4313487c6e9b9abc8ff2
2019-05-15 22:40:38 +00:00
Ian Pedowitz
8eebd293e5 Merge "Revert "Revert "Remove deprecated System APIs added in Q.""" into qt-dev
am: 3bd719b534

Change-Id: I3a55fc232cef2d22052d3b1faf2ef08047e2f7c2
2019-05-15 13:55:07 -07:00
Philip P. Moltmann
a4bd150588 Whitelist all perms on installExistingPackage
The code allows to also whitelist only a select set of permissions, but
this is not yet exposed in the API.

Also: Fix up shell commands for restricted permissions

Fixes: 132368462
Test: - Enabled app via device admin in secondary profile
        -> verified that permissions were whitelisted
      - Installed existing and new app using --restrictpermissions and
        not
	-> verified that permissions were whitelisted or not
      atest AppRestrictionsHelperTest
            RestrictedPermissionsTest
Change-Id: I9cd76c555b40663f2e25ad86e8a54991baae346c
Merged-In: I9787e63d8beb8f6b1ba2d15532d4c0f69dbdf863
2019-05-15 11:09:45 -07:00
Rubin Xu
17d08f474c Do not compare ID when deduplicating SecurityEvent
Two SecurityEvents should be considered identical as long as
their event content equals, disregarding the id field.

Test: manual
Change-Id: I811f9a104ed3a0d9e02991aeb9e3653c5c02efc3
Fix: 132367517
2019-05-15 17:39:46 +01:00
Ian Pedowitz
3bd719b534 Merge "Revert "Revert "Remove deprecated System APIs added in Q.""" into qt-dev 2019-05-15 16:28:54 +00:00
Lei Yu
fcde0225e6 Merge "Use merged NetworkTemplate to query data usage" into qt-dev
am: 35fcd6b0e3

Change-Id: I1030f49eb9e24ad8bc4a10c3ab8890c34d20f8f6
2019-05-14 17:51:03 -07:00
Lei Yu
35fcd6b0e3 Merge "Use merged NetworkTemplate to query data usage" into qt-dev 2019-05-15 00:27:23 +00:00
Felipe Leme
69cd215add Merge "Fixed NPE on VoiceInteractor.destroy()" into qt-dev
am: aa6965983b

Change-Id: Ie61b20e6726e8c6d2bda92c65514d2e2f38213dd
2019-05-14 13:42:04 -07:00
TreeHugger Robot
aa6965983b Merge "Fixed NPE on VoiceInteractor.destroy()" into qt-dev 2019-05-14 20:27:44 +00:00
Felipe Leme
8092cdaeda Fixed NPE on VoiceInteractor.destroy()
Fixes: 131411751
Test: atest CtsVoiceInteractionTestCases # ran a few times on different devices, got no failures

Change-Id: I484db53772bf503f091f30f67ae92c8ae52d4105
2019-05-14 10:15:31 -07:00
Kweku Adams
ec114695bb Merge "Using ParceledListSlice to send large lists over Binder." into qt-dev
am: 3245017b87

Change-Id: If6de28dec87bb63bfa3329fb599164c0dc29a39f
2019-05-14 09:42:09 -07:00
TreeHugger Robot
3245017b87 Merge "Using ParceledListSlice to send large lists over Binder." into qt-dev 2019-05-14 16:25:28 +00:00
Suprabh Shukla
169bed7b7a Revert "Revert "Remove deprecated System APIs added in Q.""
This reverts commit 79a19effee.

Bug: 129975435
Change-Id: I113c87f8c0b7ab225e4b99ef2462ae12e199b816
2019-05-13 21:04:39 +00:00
Julia Tuttle
ba01cd11b6 Merge "Fix typo." into qt-dev
am: 2d976f9b3d

Change-Id: Ia9a534658e099b7bec121ce1f61c18b5650a4f00
2019-05-13 12:49:57 -07:00
TreeHugger Robot
2d976f9b3d Merge "Fix typo." into qt-dev 2019-05-13 19:31:34 +00:00
Lei Yu
c00a30eb8a Use merged NetworkTemplate to query data usage
This CL uses merged NetworkTemplate so that it shows correct
data for carrier which is a virtual that has multiple
subscriberId under the hood.

By doing this, this CL also adds several hidden API so settings
can query by NetworkTemplate directly.

Fixes: 120566366
Test: RunSettingsLibRoboTests
Change-Id: I8b747697933c75b48b14387adafb5ac9ca165926
2019-05-13 11:42:23 -07:00
Winson
4778632d30 DO NOT MERGE: Delete persisted historical app ops on package uninstall
am: 4e3b435c0e

Change-Id: I7228388fbd93e8554524f8ebed9372bbcaa0ad88
2019-05-10 18:47:35 -07:00
TreeHugger Robot
895d5c546c Merge "DO NOT MERGE: Delete persisted historical app ops on package uninstall" into qt-dev 2019-05-11 00:09:22 +00:00
Julia Tuttle
f4c92225a6 Merge "Clarify required/optional fields in BubbleMetadata." into qt-dev
am: 9af275a752

Change-Id: Ic23c6c52192a7c9598ae5a768511639a151baaeb
2019-05-10 16:24:34 -07:00
Winson
52a1044cd2 Merge "Document non-effective mode return of AppOps batch fetch" into qt-dev
am: 1a91f0ddf3

Change-Id: I8f63a1a0516beb0b45ef9f94ff1fb11c3221da3d
2019-05-10 16:08:33 -07:00
TreeHugger Robot
9af275a752 Merge "Clarify required/optional fields in BubbleMetadata." into qt-dev 2019-05-10 22:22:37 +00:00
TreeHugger Robot
1a91f0ddf3 Merge "Document non-effective mode return of AppOps batch fetch" into qt-dev 2019-05-10 21:25:32 +00:00
Michael Wachenschwanz
d1e659be25 Clarify UsageStatsManager#queryUsageStats behavior
Fixes: 67037735
Test: n/a
Change-Id: I02f90f9ae93257dbe883710288a7a35ba87e1f26
2019-05-10 14:20:32 -07:00
Winson
6d9c83fdb9 Merge "Null check ApplicationInfo for ApplicationPackageManager#loadUnbadgedItemIcon" into qt-dev
am: 04d00184cc

Change-Id: I7e236108ec5c8ecb6454b33e2045043c2a802e79
2019-05-10 12:32:40 -07:00
Winson
4e3b435c0e DO NOT MERGE: Delete persisted historical app ops on package uninstall
They're removed from the current state, but not the persisted state.

This adds HistoricalRegistry#clearHistoryForPackage which reads the
disk state, strips the corresponding UID/package, and re-writes
to disk.

Bug: 129796626

Test: manual test app with location access
Test: atest AppOpsServiceTest#testPackageRemovedHistoricalOps

Change-Id: I8daa2e3474b400a3789b2eaf178441c6d1578af1
2019-05-10 19:24:02 +00:00
TreeHugger Robot
04d00184cc Merge "Null check ApplicationInfo for ApplicationPackageManager#loadUnbadgedItemIcon" into qt-dev 2019-05-10 18:46:49 +00:00
Winson
6a864b55d0 Document non-effective mode return of AppOps batch fetch
The getPackagesForOps and getOpsForPackage APIs don't convert the
mode of the return ops to their effective state, which isn't obvious.

Bug: 119281847

Test: none necessary

Change-Id: I60dd26ab771e73f2893981550a71cdaa353056c2
2019-05-10 10:58:52 -07:00
Julia Tuttle
d9f4835edb Clarify required/optional fields in BubbleMetadata.
Bug: 130427148
Test: make docs, examine out/
Change-Id: I8def5c4481be881784fb656ca77917eb9834eb79
2019-05-10 13:52:03 -04:00
Beth Thibodeau
f14b9b8eb0 Merge "Fix progress bar color in foreground notifications" into qt-dev
am: 6b8db61901

Change-Id: I33c01bf4017764fee9b14095eb1da6ecfb6ab073
2019-05-10 06:30:22 -07:00
Beth Thibodeau
6b8db61901 Merge "Fix progress bar color in foreground notifications" into qt-dev 2019-05-10 13:05:37 +00:00
Yiwei Zhang
5c33aeabb6 Merge "GpuStats: send a hint of activity launch to GraphicsEnvironment" into qt-dev
am: b137faed01

Change-Id: I4dc7cecee11739ab2ab15bb8a644e845963b6fbb
2019-05-09 23:56:35 -07:00
Yiwei Zhang
b137faed01 Merge "GpuStats: send a hint of activity launch to GraphicsEnvironment" into qt-dev 2019-05-09 23:45:47 +00:00
Sudheer Shanka
4824557746 Merge "Update behavior of setDestinationInExternalPublicDir()." into qt-dev
am: e2ce2e00ca

Change-Id: Ic6f4fb128f5b205f9d8b818c8448705799140651
2019-05-09 13:23:14 -07:00
Julia Tuttle
4f1bf20ba5 Fix typo.
Bug: 130427148
Test: just renaming a variable, still compiles
Change-Id: I6a3f6a8abebf0ccde53705e5b82fd11fa2f7bd51
2019-05-09 15:33:42 +00:00