Commit Graph

6458 Commits

Author SHA1 Message Date
Jeff Sharkey
142f859665 Merge "Block write access to media for non-owners." into qt-dev
am: 296152392f

Change-Id: I10200aa662b39b936ce19a09d4c4abf8eade5f06
2019-04-30 10:45:47 -07:00
Jeff Sharkey
b275840ab8 Merge "Make it clear that legacy storage is deprecated." into qt-dev
am: 05dc2a5744

Change-Id: Ifa09b0a354a16d859ac23d1379309e603395c3b3
2019-04-30 09:28:00 -07:00
Jeff Sharkey
445efe7c7c Merge "Avoid triggering StrictMode for storage notifs." into qt-dev
am: 8eccead1be

Change-Id: I07852e7eb2002d1530fef714601eb5b05e5520d7
2019-04-30 09:23:01 -07:00
Christian Wailes
852a9f62c3 Merge "Adds additional sanitization for Zygote command arguments." into qt-dev
am: d985b4d030

Change-Id: I291b1bdc1781577e28f88d5bfe199abcc705f192
2019-04-29 18:11:55 -07:00
Jeff Sharkey
296152392f Merge "Block write access to media for non-owners." into qt-dev 2019-04-29 13:49:27 +00:00
Jeff Sharkey
c4bf993c51 Block write access to media for non-owners.
The new security model in Q requires that apps can't directly write
to media they don't own.  They can still gain write access using
RecoverableSecurityException.

Bug: 130367350
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I1fea108aeee63caa2579187be73ba2f27f2bb932
2019-04-28 12:52:43 -06:00
Jeff Sharkey
05dc2a5744 Merge "Make it clear that legacy storage is deprecated." into qt-dev 2019-04-28 18:02:55 +00:00
Jeff Sharkey
e3644411a0 Avoid triggering StrictMode for storage notifs.
Bug: 130129028
Test: none
Exempt-From-Owner-Approval: trivial bugfix
Change-Id: Ia9d9da589ee1f4d95a27bf327235f950f65c69a0
2019-04-28 17:03:47 +00:00
Jeff Sharkey
488162bfef Make it clear that legacy storage is deprecated.
Bug: 131469880
Test: none
Change-Id: I52e009c1ebfc59958d04e5b33a6f4228cdecfcf4
2019-04-28 13:43:52 +00:00
Lorenzo Colitti
bc2aa3472f Make DNS cache lifecycle management explicit
1. ConnectivityService calls netd binder to create/destroy network directly.
2. Call dnsresolver binder to create/destroy cache after create/destroy network.
3. Remove unused network create/destroy methods in NetworkManagementService.

Bug: 129453995
Test: atest FrameworksNetTests

Merged-In: I388e208143c38b89bcbb0589de393250024d59aa
(cherry picked from commit 204ca13e63)

Change-Id: I4d3dfd9305b60a724aa2dc38448948d8e710c932
2019-04-26 02:13:59 +00:00
Lorenzo Colitti
30d7a16ddb Merge "Make DNS cache lifecycle management explicit" am: a6d5664819
am: 57646109fd

Change-Id: I51cf1b7cfd49d4731d922578e8512a1326ebec63
2019-04-25 17:50:05 -07:00
Lorenzo Colitti
57646109fd Merge "Make DNS cache lifecycle management explicit"
am: a6d5664819

Change-Id: Ie97fe453c89476915f3b362b6486c7d4608da2a9
2019-04-25 17:38:23 -07:00
Lorenzo Colitti
a6d5664819 Merge "Make DNS cache lifecycle management explicit" 2019-04-26 00:23:22 +00:00
Chris Wailes
aee02f6ffe Adds additional sanitization for Zygote command arguments.
Previously we were only insuring that the arguments provided to the
Zygote didn't contain any newlines.  This adds additional checks for
carriage returns and standalone integer arguments to protect against
malicious argument and packet injection respectively.

Bug: 130164289
Test: m & flash & boot & check logs
Change-Id: I4055c50d52db0047c02c11096710fd07b429660c
Merged-In: I4055c50d52db0047c02c11096710fd07b429660c
(cherry picked from commit c99198249f)
2019-04-25 21:03:09 +00:00
TreeHugger Robot
31a92c9c0f Merge "Remove unused methods from INetworkManagementService" into qt-dev 2019-04-25 09:09:48 +00:00
Sudheer Shanka
0fe94f264a Merge "Update behavior of some DownloadManager APIs." into qt-dev
am: cbfe50d70c

Change-Id: Ib6f9296dd94bdeae9a470a769e4505aa8b6df5b0
2019-04-24 20:40:19 -07:00
Sudheer Shanka
cbfe50d70c Merge "Update behavior of some DownloadManager APIs." into qt-dev 2019-04-25 00:51:59 +00:00
Christian Wailes
62d94833b4 Merge "Load the default graphics driver in USAPs." into qt-dev
am: 88ee294504

Change-Id: Ie04d2ce8d2953139eb0927d1533859ab4b5626e9
2019-04-24 16:54:22 -07:00
Jeff Sharkey
7a572d932f Merge "Rename Environment method to follow attribute." into qt-dev
am: 16641365aa

Change-Id: I9b1ad00e1b4a29323a9ba9361487cedc3738b851
2019-04-24 15:49:15 -07:00
Christian Wailes
88ee294504 Merge "Load the default graphics driver in USAPs." into qt-dev 2019-04-24 21:18:14 +00:00
Jeff Sharkey
16641365aa Merge "Rename Environment method to follow attribute." into qt-dev 2019-04-24 18:57:20 +00:00
Chris Wailes
35fdbc570b Load the default graphics driver in USAPs.
This patch causes unspecialized app processes to load the OpenGL driver
after they are forked.  The ZygoteProcess code will then take an
application's driver preference into account when selecting how to
launch it.

Test: m & boot & launch & inspect traces for driver loading
Bug: 130029351
Change-Id: If6fa02f9c387596162e75a685b04208b45a5c86b
Merged-In: If6fa02f9c387596162e75a685b04208b45a5c86b
(cherry picked from commit 301a1c46da)
2019-04-24 17:43:15 +00:00
Rubin Xu
361cea7d8f Remove unused methods from INetworkManagementService
Remove unused public methods setPermission() and clearPermission()

Bug: 114231106
Test: make

Change-Id: I7acbbd36f41bef1356a158bed075c7be330728f4
(cherry picked from commit a430eda4dd)
2019-04-24 16:17:58 +00:00
Rubin Xu
a430eda4dd Merge "Remove unused methods from INetworkManagementService" am: 5d2c5d5dc2
am: 39c2091c88

Change-Id: I7acbbd36f41bef1356a158bed075c7be330728f4
2019-04-24 07:54:34 -07:00
Rubin Xu
39c2091c88 Merge "Remove unused methods from INetworkManagementService"
am: 5d2c5d5dc2

Change-Id: Ie37c9c751830d209d40772bd2d410a9c550236cd
2019-04-24 07:43:27 -07:00
Treehugger Robot
5d2c5d5dc2 Merge "Remove unused methods from INetworkManagementService" 2019-04-24 14:29:39 +00:00
Sudheer Shanka
25f1c6ebeb Update behavior of some DownloadManager APIs.
-- Update behavior of DownloadManager.setDestinationUri(),
   DownloadManager.setDestinationInExternalPublicDir() and
   DownloadManager.addCompletedDownload() based on the latest
   storage re-design. Essentially, going forward these APIs
   will only allow downloading files into package owned dirs
   or the top-level Download dir.
-- Allow some system components to specify
   MediaColumns.OWNER_PACKAGE_NAME when inserting items into
   MediaProvider.
-- Don't copy DownloadManager.COLUMN_TITLE to MediaProvider.
   DownloadProvider and MediaProvider have different constraints
   around "title" and there isn't really a need to keep these
   in sync.
-- Sanity check file download paths hinted by apps.
-- Remove sandbox related logic in DownloadProvider.

Bug: 120879208
Bug: 128630262
Bug: 130797842

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/tests/tests/provider/src/android/provider/cts/MediaStore*

Change-Id: If48bc9ecf9ed94412c6c62ce4e5e6a55fff9b789
2019-04-23 18:55:51 -07:00
Santos Cordon
d84514fddc Merge "Add delay to power-button power-off after gesture wakeup." into qt-dev
am: 65cf57bf6c

Change-Id: I063e124f45cf7d55d04217ad1123db9ce9b14bf0
2019-04-23 10:59:51 -07:00
Santos Cordon
623526b4b3 Add delay to power-button power-off after gesture wakeup.
Adds a small delay to avoid turning off the device if the user
hits the power button right after the device wakes up via a gesture.

Bug: 126560003
Test: Manual
Change-Id: I3116ce98f244e5660573d5fa764a77083aee7fc5
2019-04-23 11:55:29 +01:00
Tim Van Patten
22a1c5fb44 Merge "Verify Bundle is not null before using it" into qt-dev
am: 5012f5bdce

Change-Id: I9349c9d4689cd61a89e877374551b6965650ded9
2019-04-22 08:23:46 -07:00
Luke Huang
a24d5d8f8b Make DNS cache lifecycle management explicit
1. ConnectivityService calls netd binder to create/destroy network directly.
2. Call dnsresolver binder to create/destroy cache after create/destroy network.
3. Remove unused network create/destroy methods in NetworkManagementService.

Bug: 129453995
Test: atest FrameworksNetTests
Change-Id: I15660d27f735e33d621d4af8972cdf115bf76dfa
2019-04-22 17:43:37 +08:00
Jeff Sharkey
8926fc1a51 Rename Environment method to follow attribute.
We recently changed the attribute name, and the Environment method
used to test it should also change.

Bug: 130984886
Test: atest android.appsecurity.cts.ExternalStorageHostTest
Change-Id: I8ed7fa9232a646b2f2f280c4b82dbc6d3cf31426
2019-04-21 09:38:49 -06:00
Yiwei Zhang
18e97c3db5 Merge changes from topic "GameDriver3"
am: 5d832d2988

Change-Id: If2449acb0eef75ad81d913ab8fc07ae927f2ab8e
2019-04-19 14:38:53 -07:00
Treehugger Robot
5d832d2988 Merge changes from topic "GameDriver3"
* changes:
  Game Driver: process sphal libraries in GPU service
  Game Driver: Add a Settings.Global property for sphal libraries
  [Game Driver] Add global whitelist option.
  [GPU Service] Move blacklists process to GPU service.
  Split blacklist from versioned blacklists.
  Game Driver: clean up GraphicsEnvironment
  [GPU Service] Implement GPU service.
2019-04-19 20:47:35 +00:00
Tim Van Patten
5973ec9678 Verify Bundle is not null before using it
It's possible the Bundle has not been initialized when determining if
the ANGLE dialog box should be shown, due to how early that check is
performed. This change will verify the Bundle is not null before using
it and fall back to using the Context if it is.

Bug: 130185493
Test: atest CtsAngleIntegrationHostTestCases
Test: Enable Toast Message and then atest CtsAngleIntegrationHostTestCases
Change-Id: I39f48bdf20616298c66b2bb36082149cb24e908c
(cherry picked from commit 5da6a95eab)
2019-04-19 20:31:01 +00:00
Dan Willemsen
42df3187de Merge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS" am: 644792c7d6
am: c2975a3850

Change-Id: I2c58d6c84d01d6f62ac081bd840386d27394cb39
2019-04-19 13:12:10 -07:00
Dan Willemsen
c2975a3850 Merge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS"
am: 644792c7d6

Change-Id: I659115cec0db8ccae778e1b842a08bb04c63e10f
2019-04-19 12:56:42 -07:00
Yiwei Zhang
b1eeb0cd9d Game Driver: process sphal libraries in GPU service
This change adds the sphal libraries text file parsing to the GPU
service. As the result, when the Game Driver apk is updated, the sphal
library list will be read out to the GAME_DRIVER_SPHAL_LIBRARIES
settings global property to be used in the graphics environment to
extend the current linker namespace.

Bug: 124448366
Test: Build, flash and boot. Install the apk to verify settings global.

Change-Id: Ifb4007a1fe7269e0a2857fe7badc8642342b1449
Merged-In: Ifb4007a1fe7269e0a2857fe7badc8642342b1449
2019-04-19 12:35:03 -07:00
Dan Willemsen
644792c7d6 Merge "Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS" 2019-04-19 19:30:50 +00:00
Peiyong Lin
db98f35743 [Game Driver] Add global whitelist option.
Allow a '*' at the beginning of the whitelist file to mean whitelist
everything.

BUG: 120869311
Test: Build, flash and boot. Verify with apk
Change-Id: Ia1b772f545a04acb7f5b4ccbe5489e43ecddb9d2
Merged-In: Ia1b772f545a04acb7f5b4ccbe5489e43ecddb9d2
2019-04-19 10:49:03 -07:00
Peiyong Lin
8287771adc [GPU Service] Move blacklists process to GPU service.
Instead of re-process blacklists proto everytime, we move the processing to GPU
Service, and add SettingsObserver to observe the change of
Settings.Global.GAME_DRIVER_BLACKLISTS such that we only re-process the
blacklists when needed.

As a result, we will have GAME_DRIVER_BLACKLISTS which is used to accept a list
of blacklist from the server, one for each game driver version that needs to
have blacklist, and GAME_DRIVER_BLACKLIST will only contain a list of
blacklisted application package names for the current version of game driver on
the device, separated by comma.

BUG: 120869311
Test: Build, flash and boot. Use adb shell settings put command to verify.
Change-Id: Ic49800cd0b5b82ddbbdf9907d603243415d5bd3b
Merged-In: Ic49800cd0b5b82ddbbdf9907d603243415d5bd3b
2019-04-19 10:48:07 -07:00
Alexey Kuzmin
2caff4e815 Merge "Add fallback for TEXTURE_TICK" into qt-dev
am: c87a593dee

Change-Id: I536ee2cae87549fb688ccf64cb3dbf7624b64ce6
2019-04-18 23:00:04 -07:00
TreeHugger Robot
c87a593dee Merge "Add fallback for TEXTURE_TICK" into qt-dev 2019-04-19 05:35:02 +00:00
Maurice Lam
eb70e381a8 Merge "Make LocaleList.isPseudoLocale a public API" into qt-dev
am: 1f4e4e433d

Change-Id: Ie81c1f7ca45906227e7f7195778bce723981b186
2019-04-18 20:27:07 -07:00
TreeHugger Robot
1f4e4e433d Merge "Make LocaleList.isPseudoLocale a public API" into qt-dev 2019-04-19 03:11:31 +00:00
Yiwei Zhang
351e9a6bf2 Merge changes from topic "GameDriver2"
am: a88226283d

Change-Id: I632eae432db8490ae78d32b245717a6ab0861f8a
2019-04-18 17:25:47 -07:00
Dan Willemsen
cac5c61e24 Expose android.os.Build.VERSION.ACTIVE_CODENAMES to CTS
So that CTS can handle more than one active codename.

Bug: 130764058
Test: atest CtsOsTestCases:android.os.cts.BuildTest#testBuildConstants
Change-Id: I671e28308723ee9e79ded01f12330e4efdbbbe17
2019-04-18 14:06:54 -07:00
Cody Northrop
f31151ffcf Merge "GraphicsEnvironment: Expose query to determine ANGLE use" into qt-dev
am: 4112ec5512

Change-Id: I1de0f3362f321aac31166d19706f0b8974b73a02
2019-04-18 13:22:45 -07:00
Cody Northrop
4112ec5512 Merge "GraphicsEnvironment: Expose query to determine ANGLE use" into qt-dev 2019-04-18 19:47:07 +00:00
Yiwei Zhang
b421e0c796 Game Driver: clean up GraphicsEnvironment
Bug: 123529932
Test: Build, flash and boot. Verify by installing game driver apk
Change-Id: Id73605125410a2b4054d9179227022e177d20af2
Merged-In: Id73605125410a2b4054d9179227022e177d20af2
2019-04-17 22:57:54 -07:00