653600 Commits

Author SHA1 Message Date
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
Mitch Phillips
304bb210a2 RESTRICT AUTOMERGE: [MTE] Update manifest IDs to align with NDK.
The NDK is built out of internal *-release branches. Unfortunately, the
internal and external manifest attribute IDs don't currently line up.
As a result, NDK-built apps with memtagMode='[a]sync' won't turn on MTE
on AOSP images, but work in internal images.

We'd like NDK-built apps to work out of the box with AOSP images, and
so let's line up these IDs to fix the silent failure. This is especially
important as testing is mostly done using AOSP-on-QEMU.

RESTRICT AUTOMERGE because this should be an AOSP-only patch.

Bug: N/A
Test: Build the sanitizer test app
(https://github.com/google/sanitizers/tree/master/android) with an MTE
attribute and make sure you crash with MTE errors.

Change-Id: I48a3e08d01508dc6694fefd9563fb7d3f25108a9
2021-08-25 16:04:59 +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
Jeff Sharkey
e4550434e5 Merge "Test mapping changes can be made by anyone." 2021-08-24 19:15:48 +00:00
Treehugger Robot
6939d8d665 Merge "Fix key alias string comparison" am: 15d1ab2fdd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1802873

Change-Id: I20bb1006d93233dfe7dd73c12a0eaadee229e3d5
2021-08-24 17:52:12 +00:00
Treehugger Robot
15d1ab2fdd Merge "Fix key alias string comparison" 2021-08-24 17:37:06 +00:00
Jeff DeCew
bce9262c0d Merge "Add notifications team as OWNERS of notification-related utilities and their tests" am: 39366563d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1796768

Change-Id: I6bd3759e5e7e37aaa1a2dbcda3b0ecba073a67a0
2021-08-24 17:13:15 +00:00
Jeff DeCew
39366563d3 Merge "Add notifications team as OWNERS of notification-related utilities and their tests" 2021-08-24 16:56:43 +00:00
Jeff Sharkey
d304221306 Test mapping changes can be made by anyone.
Since TEST_MAPPING files can reference test suites flung far across
the source tree, allow anyone to make changes to them.

Bug: 174932174
Test: none
Change-Id: I11dd436ac55e516263a587f9f82b17ce56e9e2e2
2021-08-24 09:45:58 -06:00
wescande
f460deca54 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-24 09:59:25 +00:00
Łukasz Rymanowski
c1b80e05e8 csip: Add constants for the Coordinated Set Identification Profile
Bug: 150670922
Tag: #feature
Test: compilation
Sponsor: jpawlowski@
Change-Id: I331fe270b75f306d57a15933ab4afa2e48c8bf50
2021-08-24 08:35:01 +00:00
Jooyung Han
07db6330cb devicepolicy: use typed List<String> in AIDL
Bug: 192615532
Test: m
Merged-In: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
Change-Id: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
(cherry picked from commit 57fe5105df3cba383cbc1e7ec0dc7ce427d01799)
2021-08-24 03:16:54 +00:00
Treehugger Robot
c1a5b99f86 Merge "OverlayManager: use typed collection type in AIDL" am: 497e28ecf3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1801774

Change-Id: I2c504229c8251d5429d9105a1a6f6dfedb788cb7
2021-08-24 02:03:04 +00:00
Treehugger Robot
497e28ecf3 Merge "OverlayManager: use typed collection type in AIDL" 2021-08-24 01:47:11 +00:00
Jooyung Han
4d9fc0aea9 devicepolicy: use typed List<String> in AIDL
Bug: 192615532
Test: m
Merged-In: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
Change-Id: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
2021-08-24 09:11:54 +09:00
Eric Laurent
aa7c44e7bd Merge "audio:should stop btsco when client died" am: 5a76779d3a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1781189

Change-Id: I8c35bb3734fa49a6463d8124a1214901fde3eb28
2021-08-23 21:03:45 +00:00
Eric Laurent
5a76779d3a Merge "audio:should stop btsco when client died" 2021-08-23 20:38:04 +00:00
Treehugger Robot
4cef59a768 Merge "ServiceManager APIs for Wi-Fi mainline module" am: 0ce930a02e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1768620

Change-Id: I2591edfe683ccab7fd482c342dc88630a9561bb4
2021-08-23 19:49:51 +00:00