814109 Commits

Author SHA1 Message Date
Jack Yu
b8a1b57bb9 Merge "Add SubscriptionManager APIs for satellite communication." 2023-03-31 21:00:06 +00:00
Aishwarya Mallampati
47b7fc7810 Add SubscriptionManager APIs for satellite communication.
The following changes are made:
- Added new SATELLITE_ENABLED column in SimInfo db.

Bug: 263502414
Test: atest android.telephony.cts.SubscriptionManagerTest
Merged-In: I492daea290ef26bde538d1e9482936adba8fe949
Change-Id: I492daea290ef26bde538d1e9482936adba8fe949
2023-03-31 00:28:30 -07:00
Yan Yan
dee01562d0 Merge "VCN: Allow restricting TRANSPORT_TEST for CTS" 2023-03-31 03:44:15 +00:00
Rahul Sabnis
872e2a4194 Merge "Mirrors calls to suspend LE Audio with those for A2DP" 2023-03-30 23:58:03 +00:00
Mikhail Naganov
ebd07bca42 Merge "AudioService: Align 'makeAlsaAddressString' with the rest" 2023-03-30 19:14:48 +00:00
Marcus Hagerott
8b70a6bfad Merge "Fix NullPointerException to get sim accounts" 2023-03-30 16:42:11 +00:00
Sławomir Rosek
66aafd4255 Merge "Disable transcoding by default if no HEVC support" 2023-03-30 11:02:51 +00:00
Yan Yan
653a8e6abe VCN: Allow restricting TRANSPORT_TEST for CTS
This commit updates VCN to be able to mark a test network
as restricted. Additionally, when VCN is in safe mode, VCN will
delegate to the Android system to decide the restriction policy of
the test network.

This commit allows CTS to verify VCN's ability of restricting
networks based on the transport type.

Bug: 263415068
Test: atest VcnManagerTest (new tests)
Change-Id: I5fe0be4ce445a4d9c20cbef5ee4a2eb55403b3c8
2023-03-30 07:48:58 +00:00
Yan Yan
47300d9e09 Merge "[Reland] VCN: Require capability matching on test networks for CTS" 2023-03-29 23:19:42 +00:00
Jean-Michel Trivi
c1370378c7 Merge "AudioSystem: fix "keep in sync" comments" 2023-03-29 21:06:22 +00:00
Mitch Phillips
f62a0533d7 Merge "New ActivityManager<->debuggerd protocol for recoverable crashes." 2023-03-29 20:28:35 +00:00
Mikhail Naganov
b156c6e3d6 AudioService: Align 'makeAlsaAddressString' with the rest
AudioDevicePort in Java and native code do not use
a trailing semicolon for the ALSA device address.

Bug: 273252382
Test: m
Change-Id: Iccbf841aee5bb168e0771750b789e154c43ecf8b
2023-03-29 12:31:16 -07:00
Atneya Nair
3445c76d33 Merge "SoundTrigger OWNERS cleanup" 2023-03-29 17:16:20 +00:00
Jean-Michel Trivi
43fde9a3af AudioSystem: fix "keep in sync" comments
Fix "keep in sync" comments for definitions that should match
those in system/media/audio/include/system/audio-hal-enums.h

Test: none, comment update
Change-Id: I150d1262b1cb1d204eb1ff55a7f05f5f65f81680
2023-03-29 09:43:31 -07:00
Treehugger Robot
39759741ae Merge "Add media ownership for atneya" 2023-03-29 15:35:51 +00:00
Slawomir Rosek
1e70c0b9c9 Disable transcoding by default if no HEVC support
This patch by default disables transcoding if HEVC decoder is not
supported. It may still be enabled/disabled via persistet properties
and/or device_config settings.

Bug: 270324498
Bug: 270320827
Test: run cts -m CtsMediaProviderTranscodeTests
Test: run cts -m CtsMediaTranscodingTestCases
Change-Id: I63ac7f4dd5103bea3f67a491a3fe030bafce075c
Signed-off-by: Slawomir Rosek <srosek@google.com>
2023-03-29 12:50:21 +00:00
Jakub Tyszkowski
f38b225284 Merge "AS: Fix sometimes invalid volume set to LE Audio devices" 2023-03-29 08:25:21 +00:00
Treehugger Robot
bb651dc667 Merge "[RESTRICT AUTOMERGE] Revert "Removed IWLAN legacy mode support"" 2023-03-29 05:57:10 +00:00
Atneya Nair
59d53fd3dd Add media ownership for atneya
Change-Id: I24b8fad3c1bfe735a32678ff842bc2132d16af12
2023-03-29 05:54:12 +00:00
Sudheer Shanka
6c6ceed2c1 Merge "Don't throw if the matching key contains ":"." 2023-03-29 03:37:29 +00:00
Thiébaud Weksteen
8b5e1f2f31 Merge "Introduce FakePermissionEnforcer" 2023-03-29 03:12:06 +00:00
Treehugger Robot
ea62c76948 Merge "binder - include calling PID/UID in uncaught remote exception code" 2023-03-29 02:37:49 +00:00
Sebastian Pickl
4262d21e5b [RESTRICT AUTOMERGE] Revert "Removed IWLAN legacy mode support"
Revert submission 2370228-legacy_iwlan_removal

Reason for revert: try finding the culprit for b/275330844

Reverted changes: /q/submissionid:2370228-legacy_iwlan_removal

Change-Id: Ibd5482d73e50cdaab583a05542b9b3d471424a15
2023-03-29 00:24:30 +00:00
Rahul Sabnis
f86450f907 Mirrors calls to suspend LE Audio with those for A2DP
Bug: 265077756
Test: Manual
Change-Id: I261b801d2c57880cc59adb07341d6b6efd70e027
2023-03-28 17:04:46 -07:00
Sudheer Shanka
a72e432a0f Don't throw if the matching key contains ":".
If a client adds custom crafted strings as part of matching key,
it is possible for this restriction to go unnoticed. Instead,
just all allow characters in the key. This means that we cannot
solely rely on getDeliveryGroupMatchingKey() for matching but
don't think this would be a problem for clients of this API
outside the System.

Bug: 275312433
Test: TH
Change-Id: I2ad9c6d270678ddb881168936b1f74bd375de58c
Merged-In: I76e307800017d4dd1e66233b1ff4cc5cbcef7246
2023-03-28 23:13:12 +00:00
Vova Sharaienko
e6f44ac081 Merge "[TeX] Introduced Telemetry Express Logging APIs" 2023-03-28 22:05:28 +00:00
Gyanesh Mittal
2fef8f6e9d Merge "Add CarrierConfig key to provide service numbers via CarrierConfig." 2023-03-28 17:50:56 +00:00
Tyler Gunn
9d6d0e2db3 Merge "Update API docs for android.permission.WRITE_CALL_LOG." 2023-03-28 16:44:59 +00:00
Treehugger Robot
f7da9fd026 Merge "Close DirectoryStream in ActivityThread after use." 2023-03-28 14:36:15 +00:00
Treehugger Robot
87ef07310b Merge "Update supported version for annotation processors to Java 17" 2023-03-28 12:21:37 +00:00
Treehugger Robot
32abb2ffd8 Merge "API: Separates getting roaming according to overridden or non-overridden" 2023-03-28 05:36:44 +00:00
Zemeng Li
1419167262 Fix NullPointerException to get sim accounts
After the process "android.process.acore" is killed, the null value will be returned by ContentResolver when the api "getSimAccounts" is called, which will throw NullPointerException.

Explicitly get a ContentProviderClient and call on it. When the process is killed, the RemoteException will be catched.

Bug: 231687839
Change-Id: Idb265d9fcc781612e571deae5014729e3ed59b44
2023-03-28 13:36:10 +08:00
Atneya Nair
72554e3941 SoundTrigger OWNERS cleanup
- Move SoundTrigger owners to reference authoritative file
- Add SoundTrigger ownership to top level services/voiceinteraction directory
to simplify maintenance.

Test: Compiles
Fixes: 275435310
Change-Id: I3fc8e98ef017f93f7208dc2fb5073beda6dcfb18
2023-03-27 19:34:51 -07:00
Treehugger Robot
75ada9ea08 Merge "SpatializerHelper: fix canBeSpatializedOnDevice NPE" 2023-03-28 02:34:02 +00:00
Jean-Michel Trivi
81dba8c47c SpatializerHelper: fix canBeSpatializedOnDevice NPE
Check whether routing is known when calling
canBeSpatializedOnDevice. Unknown routing is defined
by an empty list of devices for the requested
AudioAttributes.

Add test method in SpatializerHelper to force state.
Implement a unit test covering failure modes when
querying routing.

Test: atest com.android.server.audio.SpatializerHelperTest#testNoRoutingCanBeSpatialized
Bug: 267963974
Change-Id: Ib6d73fec4d57cf372361762b5c1d85329794de92
Merged-In: Ib6d73fec4d57cf372361762b5c1d85329794de92
(cherry picked from commit af85e232b7dc5503220900e0c998e54333bd5f4c)
(cherry picked from commit d5026e8c67ab4f5acfc0dd6e23418291896dd891)
2023-03-27 18:47:22 -07:00
Gyanesh Mittal
3dea7afacf Add CarrierConfig key to provide service numbers via CarrierConfig.
Change-Id: Iabaa707a24f1fe00d269e837695d67fdbfba24ac
Bug: 232254497
2023-03-27 22:54:49 +00:00
Steven Moreland
6d90e40330 binder - include calling PID/UID in uncaught remote exception code
Bug: 150808347
Change-Id: I7c8e69e1f71910b7e1358b91646b23380cce74a3
Test: N/A
2023-03-27 20:47:56 +00:00
Mateus Azis
e7ae30f767 Close DirectoryStream in ActivityThread after use.
Right now, the directory stream is never closed. This leads to confusing
"A resource failed to call close" errors. After some debugging, they
seem to be coming from sun.nio.fs.UnixSecureDirectoryStream objects and
reported here:
https://cs.android.com/android/platform/superproject/+/master:libcore/dalvik/src/main/java/dalvik/system/CloseGuard.java;l=340;drc=e32570b11273e703580b60fc9d59b96223f376da.

Test: m dist -j && acloud create --local-instance --local-image
Change-Id: Ie9fddc2eab505527985d8c6b2822623fe16c7f89
2023-03-27 13:19:22 -07:00
Mateus Azis
a7e060a986 Merge "Add missing Nullable annotations to UsbDeviceConnection.controlTransfer." 2023-03-27 19:36:00 +00:00
Bart Van Assche
b38b1408dc Merge "Do not kill the server process itself" 2023-03-27 18:25:08 +00:00
Benedict Wong
d7f3028003 Merge "Match underlying networks based on interface name" 2023-03-27 18:02:03 +00:00
Tyler Gunn
65807729e0 Update API docs for android.permission.WRITE_CALL_LOG.
The API docs were incorrect in stating that WRITE_CALL_LOG does not
allow the app to READ the call log.  Contact providers have a read and
write permission and per the docs in a contact provider, the write
permission implicitly gives READ access to an app.

Fixes: 254851589
Test: Docs only change.
Change-Id: I7e7ff5cf940f582fb9aa13ccc460ba65be07760d
2023-03-27 17:59:40 +00:00
Mateus Azis
52d8237103 Add missing Nullable annotations to UsbDeviceConnection.controlTransfer.
The Javadoc already states that 'buffer' can be null.

Test: N/A, no functional change.
Change-Id: I55634f58a7f2aa4f6c0b8157798e2ade27cf75dc
2023-03-27 14:16:59 +00:00
Eran Messeri
2051907ae1 Merge "Batch fetching of key descriptors from Keystore" 2023-03-27 10:18:00 +00:00
Chiachang Wang
c056bd22a3 Merge "Add more logs into dumpsys of VPN" 2023-03-27 06:05:41 +00:00
chiachangwang
3c6bc866f8 Add more logs into dumpsys of VPN
For improving debuggability of VPN, this commit adds below logs
into dump section.
- Logical bits in Ikev2VpnProfile
- Underlying network cap change and link properties change
- Historical calls to set always on and lockdown mode
- CarrierConfig change history
- IKE events

Test: atest FrameworksNetTests
Test: "adb shell dumpsys vpn_management" with VPN connected
Change-Id: I1a7aa81b207a0fa3cdec08e839fd8916fbff0f3c
2023-03-25 07:45:39 +00:00
Chiachang Wang
dd52778afb Merge "Update longLivedTcpConnectionsExpensive value in VpnTransportInfo" 2023-03-25 04:12:22 +00:00
Jack Yu
9e6697d6a9 Merge "Added build from existing NetworkRegistrationInfo" 2023-03-25 03:24:03 +00:00
chiachangwang
1170a0fb45 Update longLivedTcpConnectionsExpensive value in VpnTransportInfo
The longLivedTcpConnectionsExpensive value relies on the keepalive
value, so the Vpn should send network capabilities update to renew
the VpnTransportInfo. The applications that may bypass VPN based
on the value could update with it accordingly.

The VpnTransportInfo should be recreated when
1. The NeworkAgent is created
2. The underlying network of the VPN network is updated
3. The carrierconfig is changed

The NetworkCapabilities may be updated more frequently than these
3 events. But the others does not affect the keepalive value so
it's fine to used the TransportInfo from existing
NetworkCapabilities.

Bug: 273422889
Test: atest FrameworksNetTests
Change-Id: Ia1a124fc06d2d882eb154f24a75493ad0a308a78
2023-03-25 01:57:49 +00:00
sangyun
33ff1df3d7 API: Separates getting roaming according to overridden or non-overridden
1. New API
 - TelephonyDisplayInfo#IsRoaming returns true if device is roaming
   overridden by carrier config.
 - NetworkRegistrationInfo #isNetworkRoaming, #isNetworkRegistered,
   #isNetworkSearching and #getNetworkResitrationState return
   roaming value of network without overridden by carrier config or
   overlay resource.
2. Deprecated API
 - NetworkRegistrationInfo #isRoaming, #isRegistered, #isSearching
   and #getResitrationState.

Bug: 260017781
Test: atest CtsTelephonyTestCases:NetworkRegistrationInfoTest
Merged-In: I025b64145caa772b27c410ae5836224f2e922fa1
Change-Id: I025b64145caa772b27c410ae5836224f2e922fa1
2023-03-24 17:09:01 -07:00