Commit Graph

9288 Commits

Author SHA1 Message Date
TreeHugger Robot
dba9178b42 Merge "Clarify what ignoring battery optimizations means." into sc-dev am: 1b3424aa94
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14748399

Change-Id: Ie4ff90c685e9cac8674f326967c7c117eff12843
2021-06-01 14:59:36 +00:00
TreeHugger Robot
1b3424aa94 Merge "Clarify what ignoring battery optimizations means." into sc-dev 2021-06-01 14:39:55 +00:00
TreeHugger Robot
564dc9758b Merge "Fix storage directory API docs" into sc-dev am: 787c2a6d2a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14733694

Change-Id: Iec00a3d2fc4f5b46649a6692d38beed443022c1c
2021-05-28 02:47:26 +00:00
Jeff Sharkey
c3943f2be7 Merge "Revert "Add user privacy sensitivity APIs."" into sc-dev am: 14016d39a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669180

Change-Id: I00c7e75726e73f7a4f6b2a5a5a0494c47e98e72c
2021-05-28 02:26:03 +00:00
TreeHugger Robot
787c2a6d2a Merge "Fix storage directory API docs" into sc-dev 2021-05-27 20:34:54 +00:00
Kweku Adams
b4582d98c5 Clarify what ignoring battery optimizations means.
Add some more definition to what it means to be on the power allowlist.

Bug: 173547576
Test: N/A
Change-Id: I6c6bd3248dc39877e560656e787ef02adf7d279f
2021-05-27 09:22:05 -07:00
Nandana Dutt
3863979df8 Fix storage directory API docs
Android 10 did not support file path operations for apps in
scoped storage. But Android 11 and above do support file path
operations for such apps.

Fix docs for getExternalStorageDirectory() and
getExternalStoragePublicDirectory() to reflect the current level of support.

BUG: 153562415
Test: m docs

Change-Id: I8bc2a4aa266dbbcc391b415e6209ed6e5d56fe97
2021-05-27 15:57:02 +00:00
Jeff Sharkey
14016d39a6 Merge "Revert "Add user privacy sensitivity APIs."" into sc-dev 2021-05-27 11:59:21 +00:00
Treehugger Robot
a3ff04d175 Merge "Add documentation to Vibrator on foreground/background app behavior" am: 8ceda33e96 am: 53720c4394
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1567201

Change-Id: I5d8500c398b6504a29a3e438461b5bcd41b44a75
2021-05-26 19:40:23 +00:00
Treehugger Robot
8ceda33e96 Merge "Add documentation to Vibrator on foreground/background app behavior" 2021-05-26 18:43:56 +00:00
TreeHugger Robot
887404acd3 Merge "Add documentation to VibratorManager on foreground/background behavior" into sc-dev am: 03b86cd11f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14734462

Change-Id: I38f73b91541f9b292d3e714ed971606cba83d95c
2021-05-26 17:35:47 +00:00
TreeHugger Robot
03b86cd11f Merge "Add documentation to VibratorManager on foreground/background behavior" into sc-dev 2021-05-26 17:28:52 +00:00
Adam Bookatz
e6eb812d39 Merge "BatteryUsageStats - use bus end time" into sc-dev am: fdf919fbd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14720951

Change-Id: I5b959441b3385cce1f9fb24a55e6ddadd671d56c
2021-05-26 17:23:45 +00:00
Adam Bookatz
fdf919fbd5 Merge "BatteryUsageStats - use bus end time" into sc-dev 2021-05-26 17:19:47 +00:00
Ytai Ben-tsvi
0d12eff29a Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev am: c53f7a2d41
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14719253

Change-Id: I355a0ef827db2d00cee80c15317cf805c86cb7c2
2021-05-26 16:49:56 +00:00
Ytai Ben-tsvi
c53f7a2d41 Merge "Prevent double-closing of native handle in HidlMemory" into sc-dev 2021-05-26 16:41:14 +00:00
Lais Andrade
c76c77393f Add documentation to VibratorManager on foreground/background behavior
Add information to javadocs explaining that apps in background can
only vibrate the device if the given AudioAttributes usage is one of
notification, ringtone or alarm usages.

Bug: 146313440
Test: N/A
Change-Id: Ib0b8401539157f0ce2768aab281f3b23aae38dae
2021-05-26 15:11:11 +01:00
Ytai Ben-tsvi
d6560de944 Merge "Proper duping / closing of FileDescriptors" into sc-dev am: cd77682736
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14686828

Change-Id: I42b6153ddcaae220b50761bfe95028259b4bb35a
2021-05-26 11:10:28 +00:00
Steven Moreland
5d8ccf7931 Merge "Revert "binder: race condition by parcel finalize"" into sc-dev 2021-05-25 23:19:03 +00:00
Ytai Ben-tsvi
cd77682736 Merge "Proper duping / closing of FileDescriptors" into sc-dev 2021-05-25 21:49:43 +00:00
Steven Moreland
dfd993c108 Merge "Revert "binder: race condition by parcel finalize"" am: 58787794eb am: dfda61b6c7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1714912

Change-Id: Ib49169804c1fa120d8fdfc9cee3531bb0baa4a34
2021-05-25 17:42:12 +00:00
Steven Moreland
93e9cf4c35 Revert "binder: race condition by parcel finalize"
Revert "binder: race condition by parcel finalize"

Revert submission 1553275-Bug139327211_V5

Reason for revert: causing a different race condition? b/187218964
Reverted Changes:
I9345f4439:binder: race condition by parcel finalize
Ib06e38e22:binder: race condition by parcel finalize

Bug: 187218964

Change-Id: Iebf76febdad5e231c814f1f8de454931cb9352c5
Merged-In: Iebf76febdad5e231c814f1f8de454931cb9352c5
2021-05-25 17:37:42 +00:00
Adam Bookatz
c86b4777e0 BatteryUsageStats - use bus end time
Now that BUS contains an end time and a duration, use
those in the atom instead of estimating them from
the clock time that the request was made.

Bug: 187223764
Test: atest BatteryUsageStatsProtoTests
Change-Id: Ie69d42bfd19c3a0055e96a25ac33c16c0f7d1a3f
2021-05-25 10:27:29 -07:00
Steven Moreland
58787794eb Merge "Revert "binder: race condition by parcel finalize"" 2021-05-25 17:23:35 +00:00
Ytai Ben-Tsvi
808e525d57 Prevent double-closing of native handle in HidlMemory
Since the handle wasn't nullified, when the memory is explicitly
closed, the finalizer would attempt to close again, which results in
an exception.

Bug: 189213084
Test: Manual verification of ST use-cases, which uses this.
      Patch sent to partner for verification.
Change-Id: I4ac6bbdd88b3f729a022896adfed00effec48bd8
2021-05-25 08:20:59 -07:00
Ytai Ben-Tsvi
cad4e327bf Proper duping / closing of FileDescriptors
While looking into another bug, I noticed that the file descriptors
do not get properly duped when converting to HidlMemory and that they
aren't explicitly closed when creating a temporary instance of
SharedMemory.

Test: Manual verification of ST functionality, which uses these
      utilities.
Fixes: 188931943
Change-Id: I76322c56c58be5db8f1a40eb20eb3b96552412f9
2021-05-25 08:15:41 -07:00
Steven Moreland
a926598e89 Revert "binder: race condition by parcel finalize"
Revert "binder: race condition by parcel finalize"

Revert submission 1553275-Bug139327211_V5

Reason for revert: causing a different race condition? b/187218964
Reverted Changes:
I9345f4439:binder: race condition by parcel finalize
Ib06e38e22:binder: race condition by parcel finalize

Change-Id: Iebf76febdad5e231c814f1f8de454931cb9352c5
2021-05-24 19:56:04 +00:00
Patrick Baumann
dff37ee6d2 Merge "Updates OWNERS files" into sc-dev 2021-05-24 18:30:19 +00:00
Soonil Nagarkar
5f247fea09 Merge "Update location bypass allowlist" into sc-dev am: 20b934e7db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14671675

Change-Id: I1d4a6c88f9da605c1b3dec581bfbe90c867bde55
2021-05-22 04:36:59 +00:00
Soonil Nagarkar
20b934e7db Merge "Update location bypass allowlist" into sc-dev 2021-05-22 04:04:54 +00:00
Patrick Baumann
43628ca24c Updates OWNERS files
Bug: 186864416
Test: Builds
Change-Id: I04dfc5c2c7143825334ebc62742e335b8c889492
2021-05-21 14:13:18 -07:00
TreeHugger Robot
3ea3f384c5 Merge "BatteryUsageStats atom - frameworks/base" into sc-dev am: e4cc52acce
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14443150

Change-Id: I189e5d444c0291e8885f1ec7898c985421a66e7a
2021-05-21 16:30:25 +00:00
Soonil Nagarkar
1ea818347e Update location bypass allowlist
Create a new DeviceConfig entry to replace the prior Settings entry on
which the location ignore settings allowlist is based. This allows us to
allowlist based on attribution tag, and eliminate holes for large
applications.

Test: manual + CTS + GTS
Bug: 187421886
Change-Id: I31e61db79b93e202bd8c66efae1bb5aaf0c88ff5
2021-05-21 09:25:47 -07:00
TreeHugger Robot
e4cc52acce Merge "BatteryUsageStats atom - frameworks/base" into sc-dev 2021-05-21 16:22:42 +00:00
Hai Zhang
1c760def2d Revert "Add user privacy sensitivity APIs."
This reverts commit 56c0aa6573.

Reason for revert: No longer needed.
Bug: 188435815
Test: presubmit
Change-Id: I5403baf2adcf2a3f9a4573a69db125e57f5670c5
2021-05-21 00:03:56 +00:00
Meng Wang
e494cdfbb8 Merge "PersistableBundle.restoreFromXml should return a mutable bundle." am: ffb1899ba2 am: c13f8d0fe7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679293

Change-Id: I96b86027bb82fbff281d129f06f159df4dc2904e
2021-05-20 20:07:37 +00:00
Meng Wang
ffb1899ba2 Merge "PersistableBundle.restoreFromXml should return a mutable bundle." 2021-05-20 19:13:26 +00:00
Corina Grigoras
9edbfddf0d Merge "Clarify javadocs about mode to parse file." into sc-dev am: b84e828974
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14621143

Change-Id: I2621e13c20b79ec86cdc201afdeb2905e690e9a3
2021-05-20 14:20:48 +00:00
Corina Grigoras
b84e828974 Merge "Clarify javadocs about mode to parse file." into sc-dev 2021-05-20 14:10:22 +00:00
Hai Zhang
7a282110fc Merge "Add user privacy sensitivity APIs." into sc-dev am: c06af26cc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14648047

Change-Id: Ia809aa9da958dd90813325576d5b8b924f6a6ba8
2021-05-19 23:33:32 +00:00
Hai Zhang
56c0aa6573 Add user privacy sensitivity APIs.
Bug: 188435815
Test: presubmit
Change-Id: I5925beca072054bec5db86946fc0243ab8f9f17a
2021-05-19 20:39:40 +00:00
Rubin Xu
23d868b823 Merge "Add device admin restrictions for mic/cam toggles" into sc-dev am: e25a1b3d91
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14254683

Change-Id: Iaeb25064641c92a65d79a99f3df8a1465f43bd2d
2021-05-19 18:23:41 +00:00
Steven Moreland
7624c40762 Merge "Parcel: document enforceInterface" into sc-dev am: f07675c46c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14631434

Change-Id: Id91f44ef9da8b1229c506b6008bfe7feebc7d589
2021-05-19 18:22:56 +00:00
Rubin Xu
e25a1b3d91 Merge "Add device admin restrictions for mic/cam toggles" into sc-dev 2021-05-19 18:03:36 +00:00
Steven Moreland
f07675c46c Merge "Parcel: document enforceInterface" into sc-dev 2021-05-19 18:02:16 +00:00
TreeHugger Robot
642f85f0dd Merge "Add hasExternalControl hidden API to Vibrator" into sc-dev am: c5efbf1dba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14621133

Change-Id: Ie2a95ee53cc83affc91136c971d8f2f0969dbe0d
2021-05-19 12:57:09 +00:00
TreeHugger Robot
c5efbf1dba Merge "Add hasExternalControl hidden API to Vibrator" into sc-dev 2021-05-19 12:50:27 +00:00
Steven Moreland
d0c8e40b98 Parcel: document enforceInterface
Bug: 188022639
Test: N/A
Change-Id: I7a40b7ad0353920f0b5bd395cf46c04fd6c2b6e2
2021-05-19 00:47:32 +00:00
Patrick Baumann
62bf50bbd8 Merge changes I04dfc5c2,Idc7e1f3c am: 1ef34e9022 am: 4c56bac295
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705089

Change-Id: Ibea92e6623d660b0bcbc324c8f188642841160dd
2021-05-18 23:16:02 +00:00
Evan Severson
6ab2d13922 Add device admin restrictions for mic/cam toggles
Introduces DISALLOW_CAMERA_TOGGLE and DISALLOW_MICROPHONE_TOGGLE
which are Device Owner restrictions to prevent the user from
turning off global camera & microphone access on a fully-managed
device.

Test: atest DeviceOwnerTest#testSensorToggleRestriction
Test: atest UserRestrictionsTest
Bug: 184927615
Change-Id: I500f1283689497812bd2df606e35abe6d9d91c61
2021-05-18 23:22:38 +01:00