571475 Commits

Author SHA1 Message Date
Seth Moore
fab34c1adc Fix typos in IdentityCredential.java javadoc
"byt" -> "but"
"readerAuth" -> "readerSignature"

Test: N/A
Change-Id: Ie8e8c4fa4479d3694871fe00bb0d99698fa05966
2021-09-14 11:01:28 -07:00
Treehugger Robot
0fa9d2ef6b Merge "Add suppressLintAnnotation on state.java" 2021-09-07 15:51:39 +00:00
wescande
4d65834880 Add suppressLintAnnotation on state.java
Test: Build
Merged-In: I02aa127e8e07f239561f4f2a3bbdfc6fccb82f7f
Change-Id: I5a22ebe6473fbf38494e20d629e763c331b1e1e6
2021-09-07 16:43:09 +02:00
Treehugger Robot
c59870928e Merge "create library for mainline module" 2021-09-07 13:42:50 +00:00
William Escande
a6fb9459cc create library for mainline module
This library is a temporary work to link all mainline module using
statemachine.
Once this is done, we will be able to move the library to
frameworks/libs/modules-utils

also fix some typo in state* files

Bug: 198418216
Tag: #refactor
Test: None
Change-Id: I1bec7c7bdb25bf3397a742a356aa1f18fddf7d89
2021-09-06 15:28:09 +00:00
Bernardo Rufino
6ae29f70d7 Merge "Don't throw for LazyValue in Parcel.hasFileDescriptors()" 2021-09-06 10:12:59 +00:00
Aaron Huang
f1edc162c4 Merge "Use bindServiceAsUser to bind PacService and ProxyService" 2021-09-06 09:01:58 +00:00
Bernardo Rufino
c087f62482 Don't throw for LazyValue in Parcel.hasFileDescriptors()
In aosp/1819733 we extracted Parcel.hasFileDescriptor() for types
produced by Parcel.writeValue() and consumed by Parcel.readValue() out
of Bundle into Parcel. It's supposed to handle LazyValue too.

However, we put a check to verify that it was a type supported by
readValue()/writeValue() by retrieving the VAL_XXX type of the value via
Parcel.getValueType(), however, that method throws for LazyValue since
we don't actually write that special type on the wire. However, we still
want Parcel.hasFileDescriptor() to support it, so moving the check into
a last 'else' statement, making sure we don't throw in case the value is
a LazyValue.

Bug: 195622897
Bug: 198433827
Test: atest CtsNetTestCases android.net.cts.CaptivePortalTest#testCaptivePortalIsNotDefaultNetwork
Change-Id: I1e6ec122557c12e74db6890e1631fec3cefe31f6
2021-09-06 08:51:21 +01:00
Kalesh Singh
90f00d947d Merge "PowerManagerService: Use AIDL Suspend HAL" 2021-09-03 21:13:53 +00:00
Sarah Chin
ebcd8db8ef Merge "Rename SliceInfo to NetworkSliceInfo." 2021-09-03 20:55:52 +00:00
Jakub Pawlowski
fe2fd0e0ad Merge "le_audio: Introduce connection state handling for LE Audio group" 2021-09-03 20:03:15 +00:00
Amit Mahajan
55f3179ce6 Rename SliceInfo to NetworkSliceInfo.
Test: build
Bug: 178498823
Change-Id: Id49bb7122084b08cad78ffd4dd60d7b616d37038
Merged-In: Id49bb7122084b08cad78ffd4dd60d7b616d37038
2021-09-03 12:27:11 -07:00
Michael Groover
1e5f1a293a Merge "Update APK sig scheme verification OWNERS" 2021-09-03 17:07:40 +00:00
Grzegorz Kołodziejczyk
46aba35609 le_audio: Introduce connection state handling for LE Audio group
Patch implements connection state handling for LE Audio device group.

Tag: #feature
Test: Set LE audio device as active
Sponsor: jpawlowski@
Bug: 150670922
Merged-In: I11222ca07e265ac8b6dc3c21650874ebeffa473c
Change-Id: I11222ca07e265ac8b6dc3c21650874ebeffa473c
2021-09-03 11:58:32 +00:00
Treehugger Robot
1400c5acc5 Merge "settinglib: add VolumeControl profile for auto-connect" 2021-09-02 22:20:02 +00:00
Christopher Ferris
dbd54bdca3 Merge "Remove unused libbacktrace library." 2021-09-02 21:25:02 +00:00
Michael Groover
9688bab011 Update APK sig scheme verification OWNERS
Bug: 198670656
Test: Builds
Change-Id: I2dd8de24baf29759a9000213650e4de49d2bb521
2021-09-02 13:20:14 -07:00
Treehugger Robot
93f5f96418 Merge "Remove unnecessary ASLR workaround" 2021-09-02 17:08:20 +00:00
Treehugger Robot
44233c693c Merge "[services.incremental] Use shared libutils for remount" 2021-09-01 18:10:10 +00:00
Jared Duke
d3d8abeb14 Remove unnecessary ASLR workaround
The ADDR_NO_RANDOMIZE workaround for ASLR is not required for 3.4+
kernels. As Android 11+ requires kernel 4.4+, this workaround can be
safely removed from app startup.

Bug: 193448904
Test: Manual
Change-Id: I3c5517c34176573256176a4753f4a9113a62a49f
2021-09-01 16:59:13 +00:00
Junyu Lai
e22278838e Merge "NetworkStats: Avoid Division By 0" 2021-09-01 06:07:18 +00:00
Treehugger Robot
86806e9ce4 Merge "Add pending list of external source." 2021-09-01 04:29:03 +00:00
Pirama Arumuga Nainar
cebf0493bf [services.incremental] Use shared libutils for remount
Bug: http://b/197965342

services.incremental depends on libbinder.so, which already depends on
libutils.so.  When linking services.incremental with libutils.a, the
linker tries to open objects from libutils.a to redefine undefined
symbols in libbinder.so.  This causes a linker failure with upstream
LLD.  Switching to shared libutils.so instead doesn't increase the
dependency closure for services.incremental.

Test: build with aosp/1809741 which has lld with the above behavior.
Change-Id: I2735461ae64ef2e4c0afc170f7b765c1b5b9432e
2021-08-31 21:20:27 -07:00
Jooyung Han
01da4566ee Merge "Revert "AIDL: use typed Map"" 2021-09-01 00:20:02 +00:00
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
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
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
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
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
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
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