Commit Graph

7781 Commits

Author SHA1 Message Date
Michael Wright
9e4416e62d Merge "Make vibrator effect queries an @IntDef." into rvc-dev am: f51b6aa53a am: c8476eabd3 am: bf1c1d1d72 am: 9400eca1d5
Change-Id: I410a90dfff292c4177e153b9269dd24cc9eee95c
2020-03-27 14:43:35 +00:00
Michael Wright
bf1c1d1d72 Merge "Make vibrator effect queries an @IntDef." into rvc-dev am: f51b6aa53a am: c8476eabd3
Change-Id: Ic82aa12fa73e8c44b0edc497e6fec03455b6af22
2020-03-27 14:11:23 +00:00
Michael Wright
f51b6aa53a Merge "Make vibrator effect queries an @IntDef." into rvc-dev 2020-03-27 13:29:18 +00:00
Michael Wright
b33d7a728b Merge "Address API Council feedback." into rvc-dev am: 6d2c6f0255 am: 9792ea41af am: b38b6d16f3 am: eebb92305c
Change-Id: I69029001a802cea08cf2fedd7344759de25cfa17
2020-03-27 13:01:38 +00:00
Michael Wright
9792ea41af Merge "Address API Council feedback." into rvc-dev am: 6d2c6f0255
Change-Id: Ia85d8048341a4a13c68c65487806213a73607ff4
2020-03-27 12:34:54 +00:00
Michael Wright
6d2c6f0255 Merge "Address API Council feedback." into rvc-dev 2020-03-27 12:22:39 +00:00
Kenny Root
b70382175e Merge "Resume-on-Reboot: change SystemApi calls slightly" into rvc-dev am: f377275542 am: f2ef6b0d06 am: 8dec4987e7 am: e96ad3d3e0
Change-Id: I6ff8eaaff5799eaa3f0a70cfd9b7458d02b6fd7e
2020-03-27 06:14:01 +00:00
Kenny Root
8dec4987e7 Merge "Resume-on-Reboot: change SystemApi calls slightly" into rvc-dev am: f377275542 am: f2ef6b0d06
Change-Id: Id5192d97ec80d91e125325441f48b3e9352ab906
2020-03-27 05:47:05 +00:00
Kenny Root
504e8996ec Merge "Resume-on-Reboot: change SystemApi calls slightly" into rvc-dev am: f377275542
Change-Id: I79e21f446ab9379bd7e4db207afbd2bcb4bf613c
2020-03-27 05:28:14 +00:00
Michael Wright
8d761db1e4 Make vibrator effect queries an @IntDef.
Rather than tri-state enums, which aren't as clear and easy to
mis-interpret, switch the return values to an explicit tri-state
@IntDef.

Bug: 150958120
Test: atest VibratorTest
Change-Id: I3a5daa4078a21008664ea14d45a5c5284c1224ed
2020-03-26 21:39:17 +00:00
Michael Wright
f7eb2d82a7 Address API Council feedback.
- Make VibrationEffect.Composition final
- Hide the VibrationEffect.Composition default constructor
- Fix doc and nullability annotation bugs on
  VibrationEffect.Composition#addPrimiritive
- Make Vibrator#areAllEffectsSupported and
  Vibrator#areAllPrimitivesSupported

Fixes: 150958120
Test: build
Change-Id: I0d9a782fd4130639ad99179d7770dcde1a2afba5
2020-03-26 19:29:54 +00:00
Kenny Root
625bcd2eeb Resume-on-Reboot: change SystemApi calls slightly
In response to feedback, remove boolean returns and rely on exceptions
to provide detail descriptions.

Test: make # using a test app that calls the API using old signature
Test: atest FrameworksServicesTests:RecoverySystemServiceTest
Bug: 150205125
Change-Id: I95930078df9c88194f21b38ff7d96b425db47d56
2020-03-26 12:23:11 -07:00
TreeHugger Robot
52fd7e1cf6 Merge "Do not mount whitelisted package in storage data and obb dirs" into rvc-dev am: e5d60ed552 am: 11dfc1132e am: 4528003b22 am: 196f780902
Change-Id: I9cd526f03e6a930082743e0c4e754dd69d91ed02
2020-03-26 12:07:17 +00:00
TreeHugger Robot
4528003b22 Merge "Do not mount whitelisted package in storage data and obb dirs" into rvc-dev am: e5d60ed552 am: 11dfc1132e
Change-Id: Ia3ac8b0475d904937d55d48bf664eeaefcc20287
2020-03-26 11:37:38 +00:00
TreeHugger Robot
bdc1efb903 Merge "Do not mount whitelisted package in storage data and obb dirs" into rvc-dev am: e5d60ed552
Change-Id: I0cddbfd4a280ed2cfd8d13ea62c1c24ae6e2f2ad
2020-03-26 11:13:55 +00:00
TreeHugger Robot
e5d60ed552 Merge "Do not mount whitelisted package in storage data and obb dirs" into rvc-dev 2020-03-26 11:01:12 +00:00
TreeHugger Robot
8d9b0a0016 Merge "Make OP_LEGACY_STORAGE stickiness configurable" into rvc-dev am: d60a2bd945 am: adbe3f3e3e am: 9a77740c3a am: 637b7b06a7
Change-Id: Ic29f81bc51e6a539ddc1465659779958fed844cb
2020-03-25 22:01:12 +00:00
TreeHugger Robot
9a77740c3a Merge "Make OP_LEGACY_STORAGE stickiness configurable" into rvc-dev am: d60a2bd945 am: adbe3f3e3e
Change-Id: Ic1a545a0934794617209b957cf6cdf4cda65a543
2020-03-25 21:37:51 +00:00
TreeHugger Robot
dd833616a8 Merge "Make OP_LEGACY_STORAGE stickiness configurable" into rvc-dev am: d60a2bd945
Change-Id: I8bc05eb6f1f31e92215b87afd84c21a0c37332ce
2020-03-25 21:25:51 +00:00
TreeHugger Robot
d60a2bd945 Merge "Make OP_LEGACY_STORAGE stickiness configurable" into rvc-dev 2020-03-25 21:16:01 +00:00
Ricky Wai
2cd955e79d Do not mount whitelisted package in storage data and obb dirs
We now pass 2 booleans from AM to zygote about:
- If CE and DE data dirs need to be mounted
- If storage data and obb dirs need to be mounted

And also, separate whitelisted package from same uid packages, as same
uid packages do not need to be mounted in storage data and obb dir case,
it's needed to be mounted for CE and DE data dirs only. Otherwise
whtelisted packages will also be mounted in storage data and obb dirs,
which apps should not have access to it.

Bug: 151218156
Test: atest AdoptableHostTest
Change-Id: If7c20a7ed3b845d8657c937469161cb7ed3da07f
2020-03-25 16:40:46 +00:00
Martijn Coenen
90573fe1ce Merge "Add (hidden) fixupAppDir() API." into rvc-dev am: 1152370510 am: 6ca0760f43 am: 7ed200847e am: edf9b5dbfd
Change-Id: Ie2e896a484e823923e901c507b01d0d450dfacb6
2020-03-25 16:28:19 +00:00
shafik
76735f666a Make OP_LEGACY_STORAGE stickiness configurable
OP_LEGACY_STORAGE is sticky for apps targeting <= Q.
This change makes this behaviour configurable via DeviceConfig, by
introducing a new property "legacy_storage_op_sticky" to existing
namespace "storage_native_boot". If the property is set to true, then
we get the default behaviour (app-op sticky for SDK<=Q). If it's set to
true, then the app-op is not sticky for SDK<=Q.

Apps targeting > Q remain unaffected: always not sticky.

Test: manual:
    * adb shell dumpsys appops --package com.android.vending
    * Observe LEGACY_STORAGE mode=allowed
    * adb shell device_config put storage_native_boot legacy_storage_op_sticky false
    * adb reboot
    * adb shell dumpsys appops --package com.android.vending
    * Observe LEGACY_STORAGE mode=ignored
Bug: 151735608
Change-Id: I06d115a0c85c44b5a6d1054f74a00d8fa674dfa7
2020-03-25 15:49:10 +00:00
Martijn Coenen
7ed200847e Merge "Add (hidden) fixupAppDir() API." into rvc-dev am: 1152370510 am: 6ca0760f43
Change-Id: If08d6ccbe5eb93b9c87eef7eb681d0548f929ce6
2020-03-25 13:31:32 +00:00
Martijn Coenen
eb0e529c06 Merge "Add (hidden) fixupAppDir() API." into rvc-dev am: 1152370510
Change-Id: I28db5731911db7029a0e5a58ccbe6a2db2314292
2020-03-25 13:12:07 +00:00
Martijn Coenen
1152370510 Merge "Add (hidden) fixupAppDir() API." into rvc-dev 2020-03-25 12:56:47 +00:00
TreeHugger Robot
c64217f97e Merge "V4 uses V2 digest if V3 is not available." into rvc-dev am: c6f4f74723 am: 6b9d687944 am: a6d2d73461 am: 9254c00cee
Change-Id: If95d9dd715beb1b2d896b64447298c3949cb4ed4
2020-03-25 01:59:35 +00:00
TreeHugger Robot
6b9d687944 Merge "V4 uses V2 digest if V3 is not available." into rvc-dev am: c6f4f74723
Change-Id: I5cd38afc242e6bc42a6eac708f638a0c5b086b34
2020-03-25 01:42:51 +00:00
TreeHugger Robot
c6f4f74723 Merge "V4 uses V2 digest if V3 is not available." into rvc-dev 2020-03-25 01:36:01 +00:00
Alex Buynytskyy
6b7efbc4b9 V4 uses V2 digest if V3 is not available.
Test: atest PackageManagerShellCommandIncrementalTest
Bug: b/151240006
Change-Id: I242b599e434880ce218537574e879e9436e5d3da
2020-03-24 14:34:52 -07:00
TreeHugger Robot
c01fabc224 Merge "Deprecate POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev am: da8101d270 am: 438452ca5d am: f44a664921 am: b143aa96ba
Change-Id: I39d05b5251c2dd94ca8de520b83b16010ed04185
2020-03-24 21:29:21 +00:00
TreeHugger Robot
f44a664921 Merge "Deprecate POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev am: da8101d270 am: 438452ca5d
Change-Id: Icb632591366c3165118202a9845c4e9aaa260257
2020-03-24 21:07:17 +00:00
TreeHugger Robot
7d7f8211d7 Merge "Deprecate POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev am: da8101d270
Change-Id: Ifb781e9f5da9b99c85419afd23a0d2dab3312aa5
2020-03-24 21:07:07 +00:00
TreeHugger Robot
da8101d270 Merge "Deprecate POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev 2020-03-24 20:56:25 +00:00
TreeHugger Robot
1415d7e265 Merge "Hide CellularBatteryStats#getTxTimeMillis." into rvc-dev am: 393c9121ce am: 89db2eb06a am: 4f71f44553 am: 1546760b16
Change-Id: I29ddb86cf3ab5ec4692197432fd197f7503cff71
2020-03-24 03:22:32 +00:00
Dan Stoza
f290cb58b4 Merge "Add <p> tags for PowerManager#getThermalHeadroom" into rvc-dev am: 571a08feec am: 14348d99fb am: dcaf31f4de am: 71ab2dfc2c
Change-Id: Iaec968546c773dcdd871a5e4cb9c1084a1519a49
2020-03-24 02:30:56 +00:00
TreeHugger Robot
4f71f44553 Merge "Hide CellularBatteryStats#getTxTimeMillis." into rvc-dev am: 393c9121ce am: 89db2eb06a
Change-Id: I8d636118ae5b31c30f05474b81f0a97ce5fad02c
2020-03-24 00:43:59 +00:00
TreeHugger Robot
b9111f939d Merge "Hide CellularBatteryStats#getTxTimeMillis." into rvc-dev am: 393c9121ce
Change-Id: I4962bef054bbb6704fd94c52c8ba64f928b6c7f6
2020-03-24 00:20:57 +00:00
TreeHugger Robot
393c9121ce Merge "Hide CellularBatteryStats#getTxTimeMillis." into rvc-dev 2020-03-24 00:09:05 +00:00
Amit Mahajan
9bfde0e1fd Hide CellularBatteryStats#getTxTimeMillis.
Will be re-exposed as SystemApi in S.

Test: TH
Bug: 152247297
Change-Id: Ifb87676fa5afd2720dd09f36f3ff67c1b215b676
2020-03-23 15:15:17 -07:00
Dan Stoza
14348d99fb Merge "Add <p> tags for PowerManager#getThermalHeadroom" into rvc-dev am: 571a08feec
Change-Id: I9bb2f3115df898703ae145e3d4ceb8d999dc667b
2020-03-23 20:26:38 +00:00
Dan Stoza
571a08feec Merge "Add <p> tags for PowerManager#getThermalHeadroom" into rvc-dev 2020-03-23 20:04:41 +00:00
Kweku Adams
62cef43ac2 Deprecate POWER_SAVE_MODE_CHANGING broadcast.
The internal POWER_SAVE_MODE_CHANGING broadcast is sent at the same
time as the POWER_SAVE_MODE_CHANGED broadcast. Since broadcasts are
asynchronous,there's no reason to have both, especially since it can
potentially lead to inconsistency, so we should simplify down to just
one. Mark the POWER_SAVE_MODE_CHANGING broadcast as deprecated in R and
unavailable to apps targeting R. We'll remove it in a future version.

Bug: 79580230
Test: Android builds
Test: atest BatterySaverReceiverTest
Change-Id: I70e20ce53b496a3dc88a1083c230334f53032d81
2020-03-23 11:51:46 -07:00
Dan Stoza
2ee536290e Add <p> tags for PowerManager#getThermalHeadroom
Adds <p> tags to the Javadoc for PowerManager#getThermalHeadroom

Bug: 150855511
Test: m docs
Change-Id: Icf7b4eef8539ace14f466745e5bc6b6b79cc23c5
2020-03-23 10:40:30 -07:00
Martijn Coenen
0f522bfebf Add (hidden) fixupAppDir() API.
On devices without sdcardfs, filesystem permissions aren't magically
fixed up. This is problematic mostly in application-private directories,
which are owned by the application itself; if another process with
elevated permissions creates a file in these directories, the UID will
be wrong, and the owning package won't be able to access the files.

Allow processes that modify application-private directories (eg
DownloadManager) to ask the framework to fix up permissions on their
behalf.

Bug: 151986170
Test: WIP
Change-Id: Ic30f708d25d7702ec3a4569ee6ddf100732d89d1
2020-03-23 16:27:24 +01:00
Sudheer Shanka
0edc7c0693 Merge "Add BlobStoreManager.getRemainingLeaseQuotaBytes." into rvc-dev am: add060f917 am: 04ca4a67c3 am: cfba8ca807 am: dee81e1788
Change-Id: Id2a7157be95577306a3789772fe55f083fdf1a9a
2020-03-22 08:28:29 +00:00
Sudheer Shanka
cfba8ca807 Merge "Add BlobStoreManager.getRemainingLeaseQuotaBytes." into rvc-dev am: add060f917 am: 04ca4a67c3
Change-Id: I5fdd421fd5348f864886527000d6e4b6da60bbf8
2020-03-22 07:56:48 +00:00
Sudheer Shanka
7ae4fa36d4 Merge "Add BlobStoreManager.getRemainingLeaseQuotaBytes." into rvc-dev am: add060f917
Change-Id: I44f5d7994470c9f58928115b984f64e3e4eccfdb
2020-03-22 07:40:20 +00:00
Sudheer Shanka
add060f917 Merge "Add BlobStoreManager.getRemainingLeaseQuotaBytes." into rvc-dev 2020-03-22 07:21:17 +00:00
TreeHugger Robot
41b114abf7 Merge "[Telephony Mainline] Hide TelephonyServiceManager and TelephonyFrameworkInitializer" into rvc-dev am: 4e4fa985c1 am: e83559865d am: f24a4298ee am: 628c3ffd63
Change-Id: I72fc6ecf1fdfb7c03e1c7eac2e1b64c50e63d6a0
2020-03-21 05:47:07 +00:00