660091 Commits

Author SHA1 Message Date
Qasim Javed
6a7bc39edf Add BluetoothLeBroadcast profile API.
Implementation for the APIs will be added later.

Bug: 205174140
Bug: 208222281
Tag: #feature
Test: gd/cert/run

Change-Id: I8781be89cba45a6e7a76fec7df24790a9f02d6a6
2021-12-05 19:45:08 -08:00
Jinyoung Jeong
b6518929e6 IMS RCS API Improvements-DelegateRegistrationState
Bug: b/197892699, b/202202874, b/203405794
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: Icfa7fd363ad4f9ad0131d78602c264742cd1785f
Merged-In: Icfa7fd363ad4f9ad0131d78602c264742cd1785f
2021-12-06 02:33:30 +00:00
Lucas Lin
49620a7f08 Merge "Update the transport types of metrics" am: 70be96ffbf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1884199

Change-Id: I041ead53badcad1480b7c5cd42f5fbd188440bbc
2021-12-06 02:25:04 +00:00
Lucas Lin
70be96ffbf Merge "Update the transport types of metrics" 2021-12-06 01:54:54 +00:00
Sudheer Shanka
67d3dd83ff Fix NetworkPolicy logs in dumpsys.
Right now, nothing is get logged due to an issue
with NetworkPolicyLogger.Data initialization.

Bug: 209236326
Test: adb shell dumpsys netpolicy
Change-Id: Ie0c3e3831802f317c5821676d426ff29a8bb5fa5
2021-12-04 23:05:19 -08:00
Treehugger Robot
44ee49d6c8 Merge "Allow flag-guarded Java optimizations for services" am: 4746631ed1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1897075

Change-Id: Ifbc5157860b63ecd48a469393f1eb06f9a3852da
2021-12-04 01:25:26 +00:00
Evgenii Stepanov
8895ef1256 Pass MTE RuntimeFlags to AppZygote.
Fix AppZygote process and its children (the actual service processes)
ignoring android:memtagMode attribute in the app manifest.

When starting a new AppZygote process, apply memtag-related flags as
determined by the app manifest (and modified by compat features and
actual h/w capabilities). If this is not done, MTE is always disabled in
an AppZygote process, which makes it impossible to enable it in the
AppZygote's children.

This change has no effect unless MTE is supported in the hardware
(ARMv9) and enabled in the system.

Bug: 207557677
Test: CtsTaggingHostTestCases
Change-Id: I8805958545fd790e4ca857184b749a21e58d68cd
2021-12-03 17:20:05 -08:00
Treehugger Robot
4746631ed1 Merge "Allow flag-guarded Java optimizations for services" 2021-12-04 01:07:34 +00:00
Hao Ke
479f10d9b7 Merge "Added End-of-Parcel check API." am: 93b3eb84ec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1876569

Change-Id: I49bf528e536c18c64beb464d1021c5779d9f6325
2021-12-04 00:24:10 +00:00
Hao Ke
93b3eb84ec Merge "Added End-of-Parcel check API." 2021-12-03 23:54:12 +00:00
Guang Zhu
7d6a7c5f0e use test app's data folder as filter directory
During a retry, test methods to be retried are written into a
file, pushed onto device and read by the test instrumentation
for execution.

The default location for such filter file is /data/local/tmp,
which is prohibited for access by system uid packages, such
as the system UI tests package.

This change uses the test app's data folder for filter: this
is not generally applicable for all the tests since root
permission is required, but it is a relatively safe assumption
in case of testing against system uid pakcages since it
implies userdebug build is being used.

Bug: 152001555
Fixes: 208473429
Test: http://go/forrest-run/L76200000952166377
Change-Id: Ifc268a1cdb94ff8e47b6bd323464deb28e0c20ea
2021-12-03 15:29:32 -08:00
Etienne Ruffieux
7121cd7fa5 Make BluetoothCodecConfig and BluetoothCodecStatus public.
Made BluetoothCodecConfig and BluetoothCodecStatus public,
added Builder to BluetoothCodecConfig, added accessor for
SOURCE_CODEC_TYPE_MAX and changed Arrays returns to List.

Tag: #feature
Bug: 200202780
Bug: 170678351
Test: BluetoothCodecConfigTest & BluetoothCodecStatusTest
NoNonSdkCheck: Only user actually requested the changes
Change-Id: Ic61b7087f53f45781f7e0eecca8b6d983093a22d
2021-12-03 23:08:50 +00:00
Rambo Wang
dbc29cd5d2 Merge "Un-deprecate TelephonyManager SIM access APIs" am: 11f136cc06
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885962

Change-Id: I80959987bd2e851df3746ccd85291b26b89fd47a
2021-12-03 23:05:55 +00:00
Rambo Wang
11f136cc06 Merge "Un-deprecate TelephonyManager SIM access APIs" 2021-12-03 22:40:50 +00:00
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