571444 Commits

Author SHA1 Message Date
Treehugger Robot
14c914335a Merge "Fix unused-but-set-variable warning" 2021-08-31 19:20:31 +00:00
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
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
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
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
54beaf2012 Merge "csip: Add constants for the Coordinated Set Identification Profile" 2021-08-30 20:56:25 +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
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
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
Songchun Fan
5834070338 Merge "[lint] add owners to frameworks/base/tools/lint" 2021-08-27 00:14:18 +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
Orion Hodson
5e1c9fe7fc Merge "Drop system_server dexopt in ZygoteInit" 2021-08-26 14:35:24 +00:00
vichang
0c58210d59 Merge "Regenerate LocaleDataTables.cpp due to ICU 69 upgrade" 2021-08-26 09:07:27 +00:00
Jooyung Han
6dff9dce0f Merge "telephony: suppress warnings in AIDL" 2021-08-25 23:59:04 +00:00
Steven Moreland
b992e7713c Merge "Remove ndk_platform backend. Use the ndk backend." 2021-08-25 19:28:36 +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
89242df0c9 Merge "telephony: suppress warnings in AIDL" 2021-08-25 04:51:37 +00:00
Jeff Sharkey
e4550434e5 Merge "Test mapping changes can be made by anyone." 2021-08-24 19:15:48 +00:00
Treehugger Robot
15d1ab2fdd Merge "Fix key alias string comparison" 2021-08-24 17:37:06 +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
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
5a76779d3a Merge "audio:should stop btsco when client died" 2021-08-23 20:38:04 +00:00
Treehugger Robot
0ce930a02e Merge "ServiceManager APIs for Wi-Fi mainline module" 2021-08-23 19:25:20 +00:00
Treehugger Robot
95d77312a9 Merge "Add a system api to fetch uuids by the specific transport" 2021-08-23 19:23:26 +00:00
Makoto Onuki
f4d7116b49 Merge "Change Shallow Copy to Deep Copy in UsageStats" 2021-08-23 19:17:38 +00:00
liuxiaoyu7
df9a560868 audio:should stop btsco when client died
1.app start btsco ,it will use bt-sco preferrer device
2.kill app process,currently only client is removed without closing sco

Signed-off-by: liuxiaoyu7 <liuxiaoyu7@xiaomi.com>
Change-Id: I0738a7f8dee16ea68f7de012c5d7020387f160f9
Merged-In: I381537f61740f9a9fcbf3232ef4336943b0826c5
2021-08-23 10:08:33 +00:00
Orion Hodson
c3e8e916eb Drop system_server dexopt in ZygoteInit
system_server artifacts should be present in the system image or
generated by on-device signing.

Bug: 187711479
Fix: 163019104
Test: m & boot
Change-Id: I19094e1a60b903d04cf7ba23e65cc9ef10f7f243
2021-08-23 10:52:41 +01:00
Treehugger Robot
493baa1280 Merge "RESTRICT AUTOMERGE Avoid the scenario Where taskdisplayarea is null" 2021-08-23 09:46:12 +00:00
Steven Moreland
ce81994f5f ServiceManager APIs for Wi-Fi mainline module
ServiceManager.waitForDeclaredService and .isDeclared needed for Wi-Fi mainline module.

Test: boot
Change-Id: I9e82dd1a6663396f1c79bc3f27c36711b0b6f3eb
2021-08-20 22:21:35 +00:00
Santiago Seifert
c875fc5613 Merge "Clean up ownership in frameworks/base/" 2021-08-20 16:29:34 +00:00
Santiago Seifert
432e98eb50 Clean up ownership in frameworks/base/
Bug: 197217250
Change-Id: I04bee764bf50734523ff2210d30ed052dcb036bd
Test: No code changes done.
2021-08-20 13:59:15 +00:00
Treehugger Robot
d079236881 Merge "Add SharedMemory.fromFileDescriptor" 2021-08-20 04:50:26 +00:00
Keun young Park
39c4f40746 Add SharedMemory.fromFileDescriptor
- Rename existing SharedMemory.create and make it public
- Passed file is now detached after creating shared memory and is
  not usable any more.

Bug: 188780895
CTS-Coverage-Bug: 197226773
Test: atest com.android.car.internal.test.LargeParcelableJavaStableAIDLTest
      (runs only in auto. will add matching CTS tests for non-auto devices)

(This combines two CL in internal tree, so Change-Id and Merged-In id are
different)
Change-Id: I8a634062d10ff0c114f3add1d2a5e8056f17b788
Merged-In: I11381e78580b97982b25a52aa06f2192def7353f
2021-08-20 01:18:11 +00:00
Treehugger Robot
97fe4d0cc4 Merge "Remove unused but set variables" 2021-08-19 22:51:23 +00:00
Jooyung Han
6f3ebef588 Merge "tuner: use typed Map<String, String>" 2021-08-19 21:01:19 +00:00
Hongguang Chen
332cd02609 Merge "Update tuner OWNERS." 2021-08-19 20:49:18 +00:00
Seth Moore
11cce949b6 Fix key alias string comparison
The code was doing a reference compare, not object value comparison,
resulting in failures in the KeyStore setEntry API.

Test: CtsKeystoreTestCases:android.keystore.cts.AndroidKeyStoreTest
Fixes: 197138784
Change-Id: I2c5e47283eed5694951869e9ea3853364ddef9d1
2021-08-19 12:44:08 -07:00
Yi Kong
82ac868c8c Remove unused but set variables
Discovered by unused-but-set-variable diagnostics.

Test: build
Bug: 197240255
Change-Id: I32a1185f9714848c91860fbaa76521d490c842b9
2021-08-19 18:57:56 +00:00