653502 Commits

Author SHA1 Message Date
Treehugger Robot
7c25a55f5d Merge "Mention the tag to use to bypass the AOSP-first check." 2021-08-31 18:47:29 +00:00
Treehugger Robot
e29dc9dfe1 Merge "Stop using group_static_libs property" am: bc8a6d063b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1814336

Change-Id: Iae29e06901daae4b6f8d7f972ba938e2a94a5311
2021-08-31 18:07:45 +00:00
Treehugger Robot
bc8a6d063b Merge "Stop using group_static_libs property" 2021-08-31 17:54:09 +00:00
Yi Kong
e096481090 Fix unused-but-set-variable warning
Test: presubmit
Bug: 197240255
Change-Id: I5cca354746213e9ef43e848dbc38ecbe168d0b6a
2021-09-01 01:44:06 +08:00
Martin Stjernholm
f1ca127e8a Mention the tag to use to bypass the AOSP-first check.
Test: `repo upload` with a CL in system/unwinding in an internal branch
Change-Id: Ice32cbfbd12737771e5e7abcb590ed4d6b6da9b8
2021-08-31 16:52:15 +01:00
Kalesh Singh
9ce1be0f03 PowerManagerService: Use AIDL Suspend HAL
Use the aidl suspend hal for getting suspend blocker in power manager
service.

Bug: 170260236
Test: boot; Verify no failure to get suspend service in logs
Change-Id: I338804d98fea32bf5481a335a77484c1418e1b82
Merged-In: I338804d98fea32bf5481a335a77484c1418e1b82
2021-08-31 14:10:23 +00:00
Bernardo Rufino
872f7a88e5 Merge "Lazy bundle" am: 93b4b55ee7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1787847

Change-Id: I36812425c05b2849d15082f5c73c52a81ad1b423
2021-08-31 10:08:39 +00:00
Treehugger Robot
e5fc82b092 [automerger skipped] Merge "devicepolicy: use typed List<String> in AIDL" am: c2cbf5d420 -s ours
am skip reason: Merged-In I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904 with SHA-1 07db6330cb is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1801773

Change-Id: I9e57c4d9cb362d91466a268555dc6ca000241a35
2021-08-31 10:08:14 +00:00
Bernardo Rufino
93b4b55ee7 Merge "Lazy bundle" 2021-08-31 09:18:47 +00:00
Treehugger Robot
c2cbf5d420 Merge "devicepolicy: use typed List<String> in AIDL" 2021-08-31 09:16:30 +00:00
Ping Fan
c2086958a5 Add pending list of external source.
[Description]
After AC off/on, tvinputservice may create later than
external source stream changed.
So add pending list of external source inputinfo
when onStreamConfigurationChanged.

Bug:196189979

[Test Report]
Test pass.

Change-Id: Ifc4b53866803bd0790ecd1e8ba5761533df06c0a
2021-08-31 09:12:11 +00:00
Jooyung Han
f306e46365 Revert "AIDL: use typed Map"
This reverts commit 553c027bbf1769e25526d3f0c20a57848e393893.

Reason for revert: b/197550396

Change-Id: I3c59d132985a3d21a11b55ba1546ed9f46f6e474
2021-08-31 00:49:37 +00:00
LaMont Jones
d010fb142d Stop using group_static_libs property
This property is now ignored, so there is no need to set it.
For more details, see the bug and/or "Effecient archive file handling"
in https://lld.llvm.org/NewLLD.html#key-concepts

Bug: 189475744
Test: Manual build succeeds
Change-Id: I79ff6aaba47fb13548d735b291da0796d416be48
2021-08-30 23:35:28 +00:00
Jakub Pawlowski
f0307d111e Merge "csip: Add constants for the Coordinated Set Identification Profile" am: 54beaf2012
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807297

Change-Id: I707c1fdd5831763a3bcdfa819e61ea3b01707110
2021-08-30 21:10:26 +00:00
Jakub Pawlowski
54beaf2012 Merge "csip: Add constants for the Coordinated Set Identification Profile" 2021-08-30 20:56:25 +00:00
Daniel Norman
2b3dbdd95b Merge "Allow APEXes permission XMLs to declare features." am: ada5fb65b5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1810683

Change-Id: I2385e0b45e15f204382ec5eeee24ce3d62b17064
2021-08-30 19:11:58 +00:00
Treehugger Robot
2f553cb405 [automerger skipped] Merge "remove getSystemConfigEnabledProfilesForPackage" am: 2eb15ca17a -s ours
am skip reason: Merged-In Icb822ab703e7617d2c96275d94f682d30171998f with SHA-1 3f3cd430a6 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1741073

Change-Id: I9c1a6eaf253417248d6c17ec837b4d9b3b2407ad
2021-08-30 19:09:35 +00:00
Daniel Norman
ada5fb65b5 Merge "Allow APEXes permission XMLs to declare features." 2021-08-30 19:09:21 +00:00
Treehugger Robot
2eb15ca17a Merge "remove getSystemConfigEnabledProfilesForPackage" 2021-08-30 18:44:13 +00:00
wescande
3f3cd430a6 remove getSystemConfigEnabledProfilesForPackage
Remove hidden api for mainline project.
This commit is only for
getSystemConfigEnabledProfilesForPackage
because this will trigger a SEDenial

Bug: 190440540
Test: Manual
Tag: #refactor
Merged-In: Icb822ab703e7617d2c96275d94f682d30171998f
Change-Id: Icb822ab703e7617d2c96275d94f682d30171998f
2021-08-30 09:19:56 +00:00
Mohammad Islam
31400912fc [automerger skipped] Merge changes from topic "new_aidl_required" am: 56b3cf7026 -s ours
am skip reason: Merged-In Ie2e01b01690a5882574282f3158e454a9b6056e7 with SHA-1 818cbce3ad is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1800170

Change-Id: Ib4859c43f88b961629d3d903601dca218cadbbf9
2021-08-27 18:28:39 +00:00
Treehugger Robot
2002e0a739 Merge "[BugFix][HWASAN] stack-buffer-overflow" am: 16335690d4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1625862

Change-Id: I586eb1c779a313a1fca42005ad53b2ce30ec8297
2021-08-27 18:27:41 +00:00
Mohammad Islam
56b3cf7026 Merge changes from topic "new_aidl_required"
* changes:
  Hook the new APIs in StagingManager to PackageManagerNative service
  Notify StagedApexObservers when there is a change in set of staged APEX
  Open up new API in StagingManager to get information about staged APEX
  Connect the new API from ApexService to ApexManager
2021-08-27 18:16:39 +00:00
Treehugger Robot
16335690d4 Merge "[BugFix][HWASAN] stack-buffer-overflow" 2021-08-27 18:06:53 +00:00
Treehugger Robot
ce81ce3148 Merge "Adding module permission for SubscriptionManager" am: 116c365563
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1778969

Change-Id: I9e8a4aea7ff0006289000ca0a129fc9886a49223
2021-08-27 17:47:45 +00:00
Treehugger Robot
116c365563 Merge "Adding module permission for SubscriptionManager" 2021-08-27 17:29:58 +00:00
Bernardo Rufino
9ca6a5e21a Lazy bundle
Implement lazy deserialization for custom types in bundle:
* Parcelable (VAL_PARCELABLE)
* Serializable (VAL_SERIALIZABLE)
* Parcelable array (VAL_PARCELABLEARRAY)
* Lists (VAL_LIST)
* Sparse array (VAL_SPARSEARRAY)
* Bundle (VAL_BUNDLE)

This enhances security, makes bundles more robust to deserialization
errors and avoid deserializing unneeded objects in some cases*, for more
details check go/lazy-bundle.

To do that, we prefix those types with their length when writing them on
the wire. Map serialization and deserialization now happens inside
Bundle (instead of calling Parcel's readArrayMapInternal() /
writeArrayMapInternal()) and we use an intermediary object - LazyValue -
that holds information about the position and length of the value we
will deserialize when queried.

So, there are basically 3 states:

1. We received the bundle but haven't queried anything about it (not
   even isEmpty()): in this case the original parcel is held inside and
   we haven't attempted any deserialization (except for the metadata at
   the beginning such as the magic, etc)

2. We queried something on it (eg. isEmpty()): Now we deserialize the
   bundle skipping the custom values above (we're able to do this now
   with the length written on the wire) and instead placing LazyValue
   objects for them in the map.

3. We query one of the lazy values: Now, we deserialize the object
   represented by LazyValue and replace it on the map.

Since after (2) LazyValue objects are the only ones holding references
to the original Parcel, when all LazyValues are deserialized, the
original Parcel is available for GC.

Inside bundle now we differentiate between unparcel(itemwise = true) and
unparcel(itemwise = false) where the first also deserializes each item
(such that there are no LazyValues in the map). This is because some
operations such as kindofEquals() need all items deserialized.

I had to break a few methods in parcel into multiple methods in parcel
to be able to control the format in bundle. They are all @hide.

* In quick local experiments, counting the bytes that didn't need to be
deserialized after the change. Roughly 10% of bytes from custom-type
items in Bundle are not deserialized in the testing scenario (if I
haven't messed up the stats :). That's on a sdk_gphone_x86_64_arm64 a
few minutes after boot. Check
https://screenshot.googleplex.com/53uXrrqDMYahzg3, stats collection is
on ag/15403076.

Test: atest -d android.os.cts.ParcelTest android.os.cts.BundleTest android.os.BundleTest android.os.ParcelTest
Test: Boot device
Bug: 195622897
Change-Id: Icfe8880cad00c3cd2afcbe4b92400ad4579e680e
2021-08-27 14:53:24 +01:00
Alice Kuo
bebf4be00f settinglib: add VolumeControl profile for auto-connect
Bug: 150670922
Test: Connect with a VCP supported device, make sure the connection
Change-Id: Ic51ed557251a984c64b609936abe747f13d62578
2021-08-27 18:24:49 +08:00
Songchun Fan
54a4e7a360 Merge "[lint] add owners to frameworks/base/tools/lint" am: 5834070338
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1809160

Change-Id: Ie6e19ce58bb823ae259e80d1bb24347d9330c134
2021-08-27 00:32:38 +00:00
Songchun Fan
5834070338 Merge "[lint] add owners to frameworks/base/tools/lint" 2021-08-27 00:14:18 +00:00
Mohammad Samiul Islam
9ade5e2ffb Merge changes from topic "compos-cherry-pick" into stage-aosp-master
* changes:
  Hook the new APIs in StagingManager to PackageManagerNative service
  Notify StagedApexObservers when there is a change in set of staged APEX
  Open up new API in StagingManager to get information about staged APEX
  Connect the new API from ApexService to ApexManager
2021-08-26 22:25:11 +00:00
Jooyung Han
0c08393bf9 Merge "devicepolicy: use typed List<String> in AIDL" into stage-aosp-master 2021-08-26 20:14:16 +00:00
Songchun Fan
032e444c06 [lint] add owners to frameworks/base/tools/lint
BUG: 197635708
Test: none
Change-Id: I81c85fa751bac2d3dfb4076096b5dd0920edf3f3
2021-08-26 19:30:51 +00:00
Daniel Norman
5f0797723c Allow APEXes permission XMLs to declare features.
This allows APEXes to include permission XMLs like the NFC XMLs in
frameworks/native/data/etc which declare NFC features.

(This also enables `unavailable-feature` declarations.)

Bug: 197680726
Test: Include an NFC permission XML in an APEX.
      Observe feature is set correctly in logs and by
      enabling NFC in Settings app.
Change-Id: Ied425b8897ab80df250d42cfbf0525634ed948aa
2021-08-26 11:57:23 -07:00
Tyler Wear
aeaa9cf589 NetworkStats: Avoid Division By 0
RawBytes should always be at least 1 to avoid division by 0 and
ArithmeticException resulting in Settings crash.

Bug: 197292638
Change-Id: I4e5ac9da7adf707d7f991483555ab5c6d0cc3245
2021-08-26 10:06:28 -07:00
Orion Hodson
b55a7938a6 Merge "Drop system_server dexopt in ZygoteInit" am: 5e1c9fe7fc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1806016

Change-Id: Icf16da811d100df9dcc6c91a2fa9b2e4a76f9654
2021-08-26 14:51:20 +00:00
Orion Hodson
5e1c9fe7fc Merge "Drop system_server dexopt in ZygoteInit" 2021-08-26 14:35:24 +00:00
vichang
adf183e252 Merge "Regenerate LocaleDataTables.cpp due to ICU 69 upgrade" am: 0c58210d59
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1802436

Change-Id: Iea1d86508410a7b2a06bd560ce71c53055673f33
2021-08-26 09:22:21 +00:00
vichang
0c58210d59 Merge "Regenerate LocaleDataTables.cpp due to ICU 69 upgrade" 2021-08-26 09:07:27 +00:00
Jooyung Han
7c15aa4254 Merge "telephony: suppress warnings in AIDL" am: 6dff9dce0f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1808127

Change-Id: I26c3e6899c9126f54e8914997f347ebb34654ef6
2021-08-26 00:15:42 +00:00
Jooyung Han
6dff9dce0f Merge "telephony: suppress warnings in AIDL" 2021-08-25 23:59:04 +00:00
Steven Moreland
8c9839f21e Merge "Remove ndk_platform backend. Use the ndk backend." am: b992e7713c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1787976

Change-Id: I60a2e43cf52250647f3056569863fe64458cec72
2021-08-25 19:45:21 +00:00
Steven Moreland
b992e7713c Merge "Remove ndk_platform backend. Use the ndk backend." 2021-08-25 19:28:36 +00:00
Treehugger Robot
d6b4b6dc69 Merge "Correct comments" am: 2c0b1b672e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1784149

Change-Id: I3bc94fb7cbc33dc32bb4b0adf5282814bac75232
2021-08-25 07:17:26 +00:00
Treehugger Robot
2c0b1b672e Merge "Correct comments" 2021-08-25 07:04:22 +00:00
Jooyung Han
e53a76adec telephony: suppress warnings in AIDL
This was missed in 133879b6836c0d00f2c89bf480e48bbe14cfb536.

Emergency number list is internally represented as Map<Integer,
List<EmergencyNumber>>, which is not supported by AIDL.

Bug: 192615532
Test: m
Change-Id: I5dc8b0f94b13b6625bb31933c6488dc87c9db713
2021-08-25 15:17:56 +09:00
Jooyung Han
05820c8ff6 Merge "telephony: suppress warnings in AIDL" am: 89242df0c9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1796511

Change-Id: Id02daf502a31ee333ea368621f072efc07104323
2021-08-25 05:03:06 +00:00
Jooyung Han
89242df0c9 Merge "telephony: suppress warnings in AIDL" 2021-08-25 04:51:37 +00:00
Christopher Ferris
2d5dfb0203 Remove unused libbacktrace library.
Bug: 120606663

Test: Builds.
Change-Id: I762bedc1622f6f773fd68cd84339d5f21b0e26c2
2021-08-24 15:49:25 -07:00
Jeff Sharkey
001460d8fb Merge "Test mapping changes can be made by anyone." am: e4550434e5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807605

Change-Id: Iba21bc06b92a319c503250a5c06c010b1061bb92
2021-08-24 19:35:21 +00:00