Gavin Corkery
e4400d331a
Merge "Add per-file bugreporting OWNERS" am: 324a5e53a9 am: 589f728b5a am: b81e3635e3 am: f8b9d5cd0b
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1706699
Change-Id: Ic309b6a53d709582c95d111092d93c860e522657
2021-05-14 16:42:16 +00:00
Gavin Corkery
f8b9d5cd0b
Merge "Add per-file bugreporting OWNERS" am: 324a5e53a9 am: 589f728b5a am: b81e3635e3
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1706699
Change-Id: Ia50c7f70cf37f42399f3b447f03a4857473e739c
2021-05-14 16:36:47 +00:00
Gavin Corkery
b81e3635e3
Merge "Add per-file bugreporting OWNERS" am: 324a5e53a9 am: 589f728b5a
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1706699
Change-Id: I3dfb6041919201ad6129da0d33101c768d471918
2021-05-14 16:20:11 +00:00
Dmitri Plotnikov
8c9e91f040
Merge "Add stats session end timestamp and duration to BatteryUsageStats" into sc-dev am: 14bc81b983
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14455100
Change-Id: I247eb6df208a307cb2ad18e273cc6e84b786695e
2021-05-13 23:21:38 +00:00
Dmitri Plotnikov
c076e7112e
Add stats session end timestamp and duration to BatteryUsageStats
...
Bug: 187223764
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: Iba97050c067cae7945276798273dd328fe040ef9
2021-05-13 11:49:09 -07:00
Gavin Corkery
fbc73d84cd
Add per-file bugreporting OWNERS
...
Test: Builds
Bug: 188024968
Change-Id: Id4cf779314460ce5909ec14c84af063890b0dbca
2021-05-13 14:17:33 +01:00
TreeHugger Robot
c64a874ad0
Merge "Atoms.proto PROFILE_CLONE entry" into sc-dev am: 9d7540c17e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14495614
Change-Id: I703cd3b5f4d32880526b78fdb897e53c185a486e
2021-05-12 22:22:23 +00:00
TreeHugger Robot
9d7540c17e
Merge "Atoms.proto PROFILE_CLONE entry" into sc-dev
2021-05-12 22:02:45 +00:00
Lajos Molnar
78e3ec13f0
Merge "build: allow MEDIA_PERFORMANCE_CLASS for R" into sc-dev am: 22ceced5a7
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14366303
Change-Id: I7380968507847218c71de9fd9e7a0becdaae7fd8
2021-05-11 23:10:52 +00:00
Lajos Molnar
22ceced5a7
Merge "build: allow MEDIA_PERFORMANCE_CLASS for R" into sc-dev
2021-05-11 23:09:12 +00:00
TreeHugger Robot
cecc87df9b
Merge "Remove last learned battery capacity from battery checkin dump" into sc-dev am: de9e6190bf
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14495608
Change-Id: I7f3c2c59e2b668ad02158db721d5ed51daa60f48
2021-05-11 19:47:39 +00:00
TreeHugger Robot
de9e6190bf
Merge "Remove last learned battery capacity from battery checkin dump" into sc-dev
2021-05-11 19:22:53 +00:00
Adam Bookatz
c1459550a0
Atoms.proto PROFILE_CLONE entry
...
Test: manual
Bug: 182396009
Change-Id: Iff88619c95483e7bd477f7f2fc62b6a820f6428c
2021-05-11 12:06:15 -07:00
Dmitri Plotnikov
3dfe9e9c8e
Remove last learned battery capacity from battery checkin dump
...
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest
Bug: 187470619
Change-Id: Ide69435651463e9513af2a9c2f3ab1abb8b83382
2021-05-11 10:49:13 -07:00
TreeHugger Robot
e7f4abd086
Merge "Add a UWB subsystem uid" into sc-dev
2021-05-11 17:38:19 +00:00
Anton Hansson
19e9c30ca4
Merge "Inline two constants from CorePlatform" am: dbf1544b68 am: e3eefd6d2e am: 833e374197 am: 822d0ac2ba
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699727
Change-Id: I2faa672e8c01056e5fe276dc871bae3211312c0c
2021-05-11 11:02:49 +00:00
Anton Hansson
822d0ac2ba
Merge "Inline two constants from CorePlatform" am: dbf1544b68 am: e3eefd6d2e am: 833e374197
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699727
Change-Id: Ibac0caf69f17c8f003a4a197654c176448a9b7b9
2021-05-11 10:48:12 +00:00
Anton Hansson
833e374197
Merge "Inline two constants from CorePlatform" am: dbf1544b68 am: e3eefd6d2e
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699727
Change-Id: Ifa3f8535c1135b5b67fc1fc9cb4f0377be3acd86
2021-05-11 10:29:15 +00:00
Treehugger Robot
0d96c875f8
Merge "Add back @UnsupportedAppUsage to IS_DEBUGGABLE" am: b369ebee31 am: 6edf32bd8e am: 04b9df477a am: f6bb9a2050
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1701245
Change-Id: I5258331f7eeda96e74345f9145595f61a75e58e1
2021-05-11 09:41:28 +00:00
Treehugger Robot
f6bb9a2050
Merge "Add back @UnsupportedAppUsage to IS_DEBUGGABLE" am: b369ebee31 am: 6edf32bd8e am: 04b9df477a
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1701245
Change-Id: I435f82920ceaf7ebd6d2d4a8f73b0a21a23f28ef
2021-05-11 09:25:56 +00:00
Anton Hansson
dbf1544b68
Merge "Inline two constants from CorePlatform"
2021-05-11 09:00:57 +00:00
Treehugger Robot
04b9df477a
Merge "Add back @UnsupportedAppUsage to IS_DEBUGGABLE" am: b369ebee31 am: 6edf32bd8e
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1701245
Change-Id: I71cc95dd57f112fba51e41a862deacdbdc1e9b6d
2021-05-11 08:27:17 +00:00
Roshan Pius
f4d57c090d
Add a UWB subsystem uid
...
Bug: 186788640
Bug: 187766150
Test: Compiles
Change-Id: I6b67c2f7243c50c83cb159c50519a318892f6941
Merged-In: I6b67c2f7243c50c83cb159c50519a318892f6941
(cherry picked from commit 3d8a9d18a7 )
2021-05-11 04:16:45 +00:00
Dmitri Plotnikov
f2cbb1015c
Merge "Convert BatteryStats.dumpLocked from BatteryStatsHelper to BatteryUsageStats" into sc-dev am: 7b32d78264
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14207705
Change-Id: I8c67f52f8a94c3ac6ed62e3383824baaaba33d05
2021-05-11 01:49:23 +00:00
Dmitri Plotnikov
7b32d78264
Merge "Convert BatteryStats.dumpLocked from BatteryStatsHelper to BatteryUsageStats" into sc-dev
2021-05-11 01:24:56 +00:00
Dmitri Plotnikov
e43992bbdb
Convert BatteryStats.dumpLocked from BatteryStatsHelper to BatteryUsageStats
...
Bug: 162380414
Test: atest FrameworksCoreTests:BatteryUsageStatsTest
Change-Id: Icb508c60e037ee983c0ebde5905ec0a08fe648c3
2021-05-10 15:20:18 -07:00
Remi NGUYEN VAN
0ef41fbca2
Add back @UnsupportedAppUsage to IS_DEBUGGABLE
...
The annotation was removed when adding the constant to the public API,
but it was removed from the public API in favor of Build.isDebuggable() in
a later change.
Add back the @UnsupportedAppUsage annotation that should have been
added back when removing the constant from the public API.
Change-Id: Ic2fda01a8c0e90712a1b7b435443d32f7e226d33
Fixes: 187432390
Test: m
2021-05-10 14:45:38 +00:00
Anton Hansson
4e86dcad12
Inline two constants from CorePlatform
...
Inlining these constants allow the public api metalava run to depend on
ART's public API rather than the "internal" CorePlatform API, which
prevents picking up unintentional classes (such as annotations) from the
CorePlatform API in the public stubs.
Because these constants get inlined in the API/stubs, and the constants
have been finalized for many years, they can never change. Because they
cannot change, reusing the constant is of limited value. I've added
some comments to point readers to other places the constant is used.
Bug: 154796679
Test: m checkapi
Change-Id: I0b347a2964cfe5a1206145fdc56934727b890469
2021-05-10 10:28:02 +01:00
Treehugger Robot
cfd17fdd13
Merge "Call apexd's API to allocate space before install non-AB package" am: 3736d7ac1b am: 259c28e935 am: 074175209a am: 919348e6e2
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673927
Change-Id: Ief3d0057325170f960872468b6784b68cf4ee18e
2021-05-08 23:22:44 +00:00
Treehugger Robot
919348e6e2
Merge "Call apexd's API to allocate space before install non-AB package" am: 3736d7ac1b am: 259c28e935 am: 074175209a
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673927
Change-Id: Ib101cbb3f574780d6f34592340e9b67d493c3654
2021-05-08 23:08:19 +00:00
Treehugger Robot
074175209a
Merge "Call apexd's API to allocate space before install non-AB package" am: 3736d7ac1b am: 259c28e935
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673927
Change-Id: Ic618bb85e0f8be9468fa1158b9f9e62682b9932d
2021-05-08 22:46:04 +00:00
Treehugger Robot
3736d7ac1b
Merge "Call apexd's API to allocate space before install non-AB package"
2021-05-08 21:44:57 +00:00
Svetoslav Ganov
8fb897acef
Merge "Prepare AttributionSource to expose to native" into sc-dev am: 720add59c7
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14381260
Change-Id: I14f40269541872bf807f669283da9a6f3d722f97
2021-05-05 23:44:49 +00:00
Svetoslav Ganov
720add59c7
Merge "Prepare AttributionSource to expose to native" into sc-dev
2021-05-05 23:23:54 +00:00
Songchun Fan
df98c1d295
Merge "[incremental] report new metrics from Incremental Service" into sc-dev am: e749b4b2c4
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14426986
Change-Id: Ib67a318d1a1c8d2e4d95d83576aecfe582a19894
2021-05-05 00:17:57 +00:00
Songchun Fan
e749b4b2c4
Merge "[incremental] report new metrics from Incremental Service" into sc-dev
2021-05-05 00:09:59 +00:00
Songchun Fan
0dc7772746
[incremental] report new metrics from Incremental Service
...
BUG: 184844615
Test: atest service.incremental_test
Change-Id: Ibbfe68851a4adfd620db9652f1fda550a3c6fb2c
2021-05-04 15:14:34 -07:00
Corina Grigoras
74007b883e
Merge "Revert "Restore file truncation where expected."" into sc-dev am: df2e7b8839
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14425891
Change-Id: I01155a267163a02d09ea8232b4fce5e0bcbc8dc4
2021-05-04 20:03:14 +00:00
Corina Grigoras
df2e7b8839
Merge "Revert "Restore file truncation where expected."" into sc-dev
2021-05-04 19:53:57 +00:00
Kelvin Zhang
a48c18e3df
Call apexd's API to allocate space before install non-AB package
...
When installing a non-AB package, if the OS comtains compressed apexes,
we need to allocate space for these apexes so that they can be properly
decompressed on the next reboot.
Test: adb shell cmd recovery install-package /data/ota_package.zip
Change-Id: Ia40d0614e0e724cfb17e91720ec88a15795bd8ee
2021-05-04 15:07:56 -04:00
Zimuzo Ezeozue
86f8c415ed
Merge "Reduce log severity for transcode fd conversion failure" into sc-dev am: 4bd44ce7aa
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14424423
Change-Id: I9557d62b276f065a6bd931c28f770af68ed9c30e
2021-05-04 16:34:58 +00:00
Zimuzo Ezeozue
4bd44ce7aa
Merge "Reduce log severity for transcode fd conversion failure" into sc-dev
2021-05-04 16:28:49 +00:00
Inseob Kim
f6af5c4bd7
Merge "Add an api for platform sepolicy version to vintf" am: 3ea60e26f5 am: 5c50929036 am: 77b8f5858f am: 0bc6f0f6be
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689587
Change-Id: I6604d6d951bf838faa55180ee94720cfe93629d8
2021-05-04 16:28:17 +00:00
Inseob Kim
0bc6f0f6be
Merge "Add an api for platform sepolicy version to vintf" am: 3ea60e26f5 am: 5c50929036 am: 77b8f5858f
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689587
Change-Id: I540e6e54f2a345372dd2e95a2eaeecb32afe747b
2021-05-04 16:21:02 +00:00
Inseob Kim
77b8f5858f
Merge "Add an api for platform sepolicy version to vintf" am: 3ea60e26f5 am: 5c50929036
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689587
Change-Id: I88e2475ed84a11cb88995dc1cc33c9398a217507
2021-05-04 15:59:50 +00:00
Corina Grigoras
3fcb12e221
Revert "Restore file truncation where expected."
...
Revert "Restore file truncation where expected."
Revert submission 14173486-rwt
Reason for revert: b/186862362 - breaks ContentResolverWrapTest
Reverted Changes:
I41bc298af:Restore file truncation where expected.
Iacec49164:Restore file truncation where expected.
Bug: 186862362
Change-Id: I2afe5e2334cff60c4e7220267095042a60909185
2021-05-04 15:39:40 +00:00
Inseob Kim
4055ce5313
Add an api for platform sepolicy version to vintf
...
PLATFORM_SEPOLICY_VERSION will be the latest version in system's
compatibility matrix. This change adds a function
getPlatformSepolicyVersion, which ultimately gets
PLATFORM_SEPOLICY_VERSION, just like getSepolicyVersion for vendor.
This will be used from the SELinux CTS.
Bug: 186596569
Test: atest CtsSecurityHostTestCases:android.security.cts.SELinuxNeverallowRulesTest
Change-Id: Ic7863ece9413b9a6a4a91ff42d3121935823fe8b
2021-05-04 12:53:52 +00:00
Zim
741868b354
Reduce log severity for transcode fd conversion failure
...
Converting a transcode fd to the original fd might fail for the more
common reason that the fd is already original.
Now, we log as DEBUG instead of WARNING
Test: m
Bug: 186672282
Change-Id: Ifd0b3cef901ae1c2f467ace06dca590dff8ffb04
2021-05-04 12:44:31 +00:00
Svet Ganov
4bf102ae26
Prepare AttributionSource to expose to native
...
Separate the internal state of AttributionSource from the
class to make it a simple AIDL we can translate automatically
to native - keeping Java and native parts in sync. This
would allow writing a thin native lib for checking attribution
source permissions which would be used to teach camera and
audio about attributions.
Deinfe an AIDL interface for passing around an attribution
source and opr performing permission checker oprations allowing
native and Java permission checks on attribution chains to be
handled. The Java side permission checker functions are in a dedicated
permisison checker service on top of which sits the PermissionChecker.
We expose similar PermissionChecker native APIs sitting on top
of the same remote interface. The nice thing is that we have
native and Java permisison checkers in sync sharing remoting
code and being close in shape.
For now the PermissionChecker in Java is divorced from the
PermissionManager but in T we will consider how to unify them,
either by an extension object on the PermmissionManager or
APIs on the PermissionManager, or another approach, and then
migrate clients off the PermissionChecker APIs.
Sync app ops were not tracked across multiple binder calls which
prevents moving the permission checks in the system server as
this adds one more hop. Now sync ops are propagated backed the
call stack and only the ops for the package are dispatched to
it and the rest are propagated back to the caller, recursively.
bug: 158792096
Test: atest CtsPermission5TestCases
atest CtsAppOps2TestCases
atest CtsPermissionTestCases
atest CtsPermission2TestCases
atest CtsPermission3TestCases
atest CtsPermission4TestCases
atest CtsPermission5TestCases
Change-Id: Ia5cbd2eb20a2da172a5960afdddd7e467f4bcb0d
2021-05-04 07:42:45 +00:00
Dmitri Plotnikov
8caa905595
Merge "Use battery capacity estimates provided by Health HAL" into sc-dev am: 1d211e046e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14372226
Change-Id: Ic7aa7af6e61ce33a42833db108c415b582afa1fa
2021-05-04 04:22:03 +00:00