660077 Commits

Author SHA1 Message Date
Treehugger Robot
d3b9a7f1b2 Merge "ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()" am: 808e0a5e7a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909899

Change-Id: I1bc36b94f27ec90d484df3a468c1984d1ece8277
2021-12-03 22:21:12 +00:00
Treehugger Robot
808e0a5e7a Merge "ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()" 2021-12-03 22:05:19 +00:00
Benedict Wong
65fb393b79 Merge "Immediately tear down VCN network when entering Airplane Mode" am: 4bfa0ebc53
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1908637

Change-Id: If3c9f4531c4ccdde8ad82786824a4b18c676be21
2021-12-03 21:47:22 +00:00
Benedict Wong
4bfa0ebc53 Merge "Immediately tear down VCN network when entering Airplane Mode" 2021-12-03 21:26:06 +00:00
Treehugger Robot
982ca5d53c Merge "Fix OWNERS for time protos" am: 1a9af383d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1906616

Change-Id: I6e581278b87c182ae958a377565f37cec109b90c
2021-12-03 20:47:31 +00:00
Jared Duke
4514bdf1b7 Allow flag-guarded Java optimizations for services
Introduce a set of optional Java optimization and shrinking settings for
system server, based on the Soong variable added in aosp/1896612.
Opting in to optimizations can be achieved with either:
  * Env:
export SYSTEM_OPTIMIZE_JAVA=true
  * Make:
$(call add_soong_config_var_value,ANDROID,SYSTEM_OPTIMIZE_JAVA,true)

Note that the initial Proguard configuration is extremely conservative.
Follow-up work will refine the rules to both allow additional shrinking
while avoiding developer friction and overhead when adding services and
dynamically loaded jars.

As these optimiations can change the resulting stack traces, a parallel
effort is working to simplify retracing of stack traces for more
accurate debugging and diagnostics. Additional stabiliation and testing
will occur before any effort to enable these optimizations by default
for specific targets. Also note that there are no plans to enable
obfuscation for any of these targets.

Preliminary results:
  * Conservative keep rules (this CL w/ opt-in flag):
    * services.jar (19MB -> 15MB)
    * services.odex (52MB -> 54MB) (mostly from increased inlining)
  * Refined keep rules (follow-up CL):
    * services.jar (19MB -> 12MB)
    * services.odex (52MB -> 45MB)

Bug: 203088572
Test: SYSTEM_OPTIMIZE_JAVA=true m (validate services.jar/odex change)
Change-Id: I4130233310323611f63cd9bfcc0646080cf95875
2021-12-03 12:31:30 -08:00
Treehugger Robot
1a9af383d6 Merge "Fix OWNERS for time protos" 2021-12-03 20:21:07 +00:00
Sooraj Sasindran
efd83737ab Merge "Add non dangerous read phone state permission" am: 12c048e406
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1882949

Change-Id: Iaa70cefb0e3b66ff28082c6dcfc983b397dcba44
2021-12-03 19:16:50 +00:00
Sooraj Sasindran
12c048e406 Merge "Add non dangerous read phone state permission" 2021-12-03 18:59:58 +00:00
Andrei Onea
95ecac506d Allow privapp permission allowlist in apex
Read priv-app permission allowlists from APEX file and warn if
they're in the /system partition instead.

Test: boots
Bug: 190375768
Change-Id: I37d6deb60f0dffb75dd634075cd95bcf7ddf9684
Merged-In: I37d6deb60f0dffb75dd634075cd95bcf7ddf9684
2021-12-03 18:19:00 +00:00
paulhu
dc8bde9ffa Stop using NSD_ON setting
NSD_ON setting has never been set since it created. Besides,
CTS tests assume that nsd service is always enabled otherwise
the tests will fail. Thus, remove the setting from NsdService
which is no need to read/write it and it's also a hidden symbols.

Bug: 206702844
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: Id3cef7def96925cec5095e12910e9b97ba7efb11
2021-12-03 21:21:07 +08:00
Jakub Pawłowski
6abe79229f Merge "Bluetooth: Pretty print LE Audio profile name in logs" am: a859e86b5c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909186

Change-Id: I3568f5bf39a7438a1d7f82f4622078eb0080c958
2021-12-03 10:46:30 +00:00
Jakub Pawłowski
a859e86b5c Merge "Bluetooth: Pretty print LE Audio profile name in logs" 2021-12-03 10:29:20 +00:00
Neil Fuller
696e4a715c Merge "Add a setting to support for NITZ retention" am: bff4c1b433
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1876199

Change-Id: I881fb29c9172145bc6ea24d7f6fec1d60222e623
2021-12-03 09:52:24 +00:00
Neil Fuller
bff4c1b433 Merge "Add a setting to support for NITZ retention" 2021-12-03 09:36:52 +00:00
Ken Chen
8cb0b859e0 Merge "[NETD-BPF#6] Move bpf_shared.h from netd to module" am: 2a5804e456
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1870213

Change-Id: Ic3905a240f5023df716cd1ec2e907269533d51d3
2021-12-03 09:19:59 +00:00
Ken Chen
2a5804e456 Merge "[NETD-BPF#6] Move bpf_shared.h from netd to module" 2021-12-03 08:15:06 +00:00
Rhed Jao
43509f3202 Fix the typos on the java doc
Correct "STMP" to "SMTP" in the java doc of the usesCleartextTraffic
attribute.

Bug: 181732244
Test: build
Change-Id: I7ffc81f3e201248f3b58dc5ee243a7cdd969fe23
2021-12-03 15:08:50 +08:00
chenchaoli
beb8f3f4b3 ANDROID: Fix EventLog string class problem in ViewRootImpl#enqueueInputEvent()
EventLog function can handle string,integer class and long class. (in android_util_EventLog.cpp)
    If menu title string are used bold tag(like <b>test</b>), it'll be android.text.SpannedString.
    therefore any android activity using tag menu string(like <b></b>) can be crashed by IllegalArgumentException.

    Bug: 208862322

Change-Id: I2432b0cd28c8f5fcb07cdf3e29560bf6b6c0f7b6
Signed-off-by: chenchaoli <chenchaoli@xiaomi.com>
2021-12-03 05:52:33 +00:00
Paul Hu
6e028538ff Merge "Replace @hide APIs" am: c0d2b740f0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1894755

Change-Id: I19d1193f80c38e8e9f1ffa143ebd7fe8d9393ac3
2021-12-03 02:30:44 +00:00
Paul Hu
c0d2b740f0 Merge "Replace @hide APIs" 2021-12-03 02:10:45 +00:00
Benedict Wong
c0e108a497 Immediately tear down VCN network when entering Airplane Mode
This change immediately tears down the VCN network if all underlying
networks are lost, and the device is in airplane mode. This ensures
consistency where other components may not understand the lingering
behavior of the VCN network

Bug: 207014742
Test: atest FrameworksVcnTests
Change-Id: Ib05f0c4255e847eed7d8623b35c5a7dfedd920d6
2021-12-03 01:48:21 +00:00
Treehugger Robot
8dc3be6249 Merge "Add DEVICE_LOCK permission to Shell to support ATS test" am: 00b14576ba
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909557

Change-Id: I3929ce59312776fb513e9754eb7b24852ca82bbe
2021-12-03 01:14:21 +00:00
Sooraj Sasindran
4219d77a4d Add non dangerous read phone state permission
Add non dangerous read phone state permission

Bug: 198535473
Test: CTS.
Change-Id: Ic6cbaf7113e09d618eb54e9f40fa033d803421c9
2021-12-02 17:06:47 -08:00
Treehugger Robot
00b14576ba Merge "Add DEVICE_LOCK permission to Shell to support ATS test" 2021-12-03 00:56:56 +00:00
Anthony Hugh
b4cce59e37 Add DEVICE_LOCK permission to Shell to support ATS test
Adds DEVICE_LOCK permission to Shell to support the
CarDevicePolicyManagerTest. This permission is needed to call
DevicePolicyManager#lockNow  which locks the device.

Bug: 187199256
Test: atest CarDevicePolicyManagerTest
Merged-In: I3fa20b53b929c97a6760d65b432a74c3415d6a08
Change-Id: I3fa20b53b929c97a6760d65b432a74c3415d6a08
2021-12-02 23:49:22 +00:00
Treehugger Robot
37a3ed2805 Merge "Allow modify phone state permission" am: 56f6d8d8a9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885958

Change-Id: I39c70722d7ba70e49c98e3758fa8b7f3a6662034
2021-12-02 23:38:04 +00:00
Treehugger Robot
56f6d8d8a9 Merge "Allow modify phone state permission" 2021-12-02 23:18:17 +00:00
Hao Ke
ffabccb807 Merge "Deprecate unsafe readParcelableList API." am: f75e459db0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909291

Change-Id: I3178b1085d729e7ce9fdb13f47fb8bdbf2bd06c8
2021-12-02 21:45:22 +00:00
Sooraj Sasindran
2031ed6e77 Allow modify phone state permission
Allow modify phone state permission to access
isDataEnabled

Bug: 205599503
Test: build.
Change-Id: Iee0d3af863b9d0d24cafd55df2b645f216c7237a
2021-12-02 21:28:17 +00:00
Hao Ke
f75e459db0 Merge "Deprecate unsafe readParcelableList API." 2021-12-02 21:17:21 +00:00
Yan Yan
0ec026914a Merge changes I5cd2982f,Ia7f44c5f am: 8d6d8dcc4f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1902413

Change-Id: I3875c5edeeea2c996d643e9b4f0b027baa718c94
2021-12-02 20:20:19 +00:00
Treehugger Robot
cc8ff98d9d Merge "Create a new key to backup Sim-specific data." am: 51fae20957
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909371

Change-Id: Ibdfce8ca19f3c1946f422852d017fbb5010ddd57
2021-12-02 20:19:47 +00:00
Andy Hung
4474c3f82c SoundPool: Implement generic garbage collection
Move audio tracks to a gc mechanism for release outside of lock.

Test: soundpool_stress
Test: atest SoundPoolAacTest
Test: atest SoundPoolHapticTest
Test: atest SoundPoolMidiTest
Test: atest SoundPoolOggTest
Bug: 203193643
Change-Id: I5babd4f3fa73cca25579fde2194123bf62cf53b4
2021-12-02 11:32:28 -08:00
Yan Yan
8d6d8dcc4f Merge changes I5cd2982f,Ia7f44c5f
* changes:
  Support configuring VcnUnderlyingNetworkPriority in VcnGatwayConnectionConfig
  Create VcnCellUnderlyingNetworkPriority
2021-12-02 19:17:33 +00:00
Treehugger Robot
51fae20957 Merge "Create a new key to backup Sim-specific data." 2021-12-02 19:16:07 +00:00
Treehugger Robot
0d39f92360 Merge "Check for initialization of mUpdateEngine" am: e3a84af1a7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1907970

Change-Id: Ic6dd9dcbc427d9c867f2b1ccb447a591deb05c96
2021-12-02 19:11:39 +00:00
Treehugger Robot
e3a84af1a7 Merge "Check for initialization of mUpdateEngine" 2021-12-02 18:44:59 +00:00
Jakub Pawlowski
6525f0d6b9 Bluetooth: Pretty print LE Audio profile name in logs
Bug: 159786353
Change-Id: I1157a34fa91883a861ff0573431009823c2cd8b1
2021-12-02 19:13:15 +01:00
Jack Nudelman
5dff75b3d6 Create a new key to backup Sim-specific data.
Bug: b/206309441
Test: b/206986278
Change-Id: I84b42690f8dd3de0cbd795cc13dd5f9ab5a7a725
Merged-In: I84b42690f8dd3de0cbd795cc13dd5f9ab5a7a725
2021-12-02 18:05:33 +00:00
Hao Ke
d117f6f6d5 Added End-of-Parcel check API.
Added End-of-Parcel check API, that verifies there are no
bytes left to be read on the Parcel.

Test: atest -d android.os.cts.ParcelTest#testEnforceNoDataAvail
Bug: 195622897
Bug: 204990745
Change-Id: I3068568d8d4371b071aecd357adeb45a2d7103e4
2021-12-02 16:16:54 +00:00
Hao Ke
aa4e9dfda8 Deprecate unsafe readParcelableList API.
Deprecate unsafe parcel APIs and point to the safer ones that take the
expected type as parameter. Also mentioned the typed ones
that take the creator as argument since those are also more performant.

Test: Builds
Bug: 195622897
Bug: 199275680
Bug: 205985058
Change-Id: I77a1a925d8759fd122936780587e3488705d4c56
2021-12-02 15:43:40 +00:00
Patty
ae425ca614 Parse audio config codec capability for LE devices
1. Rename function getHwOffloadEncodingFormatsSupportedForA2DP
    to getHwOffloadFormatsSupportedForBluetoothMedia
 2. Add audio format for LC3
 3. Add public class BluetoothLeAudioCodecConfig to store the
    codec for LE audio
 4. Add test case for BluetoothLeAudioCodecConfig

Tag: #feature
Bug: 203535499
Bug: 150670922
Test: atest BluetoothLeAudioCodecConfigTest BluetoothInstrumentationTests
Change-Id: I5f64d9078ca2c07e13cffd83b879dd95468ed313
Merged-In: I5f64d9078ca2c07e13cffd83b879dd95468ed313
2021-12-02 21:59:26 +08:00
Sorin Basca
fc7aabcf2e Updating locked_region_code_injection to use ASM7
Bug: 195387073
Test: m
Test: EXPERIMENTAL_TARGET_JAVA_VERSION_11=true m
Change-Id: I34463d3da4d085697f441b4ca68007cafa9d7b69
2021-12-02 08:16:24 +00:00
Treehugger Robot
63a204f231 Merge "Fix incorrect SID matching for bio prompts" am: 8d221843b7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1908470

Change-Id: Ia6343c364eec9af9ffff5fcae3ceb6518a1ab10c
2021-12-02 03:27:24 +00:00
Paul Hu
9238a7c49e Merge "Centralize nsd associated files" am: 32942299d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1895244

Change-Id: I15a6d3eaca8b0244258d08b1dc5e46f0394609cb
2021-12-02 03:26:56 +00:00
Yan Yan
5d69a99ee6 Merge "Create VcnUnderlyingNetworkPriority and the subclass for Wifi" am: cc09b29e59
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1901036

Change-Id: I0dca455cf6f2485faa84e926b6f8a318d5bd0f60
2021-12-02 03:26:30 +00:00
Treehugger Robot
3274e47ac9 Merge "Make StubVolumes visible for read" am: 6a20288d86
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1889176

Change-Id: Ie0f4b2ac621f81654c0d25aabbf97667affdd3ef
2021-12-02 03:25:42 +00:00
Thiébaud Weksteen
ae4bf7dda6 Add @JavaOnlyStableParcelable to AttributionSource
Annotate AttributionSource with @JavaOnlyStableParcelable as it is
already available as part of the SDK.

Bug: 197828948
Test: atest --host aidl_unittests
Change-Id: I3e9343030947404239c9a963a529d246c57a04a1
2021-12-02 13:14:21 +11:00
Treehugger Robot
8d221843b7 Merge "Fix incorrect SID matching for bio prompts" 2021-12-02 01:26:15 +00:00