655063 Commits

Author SHA1 Message Date
Jiyong Park
24c57c33ea Framework and system_server classes can access public vendor libraries
This CL fixes a regression caused by [1] which introduced
<uses-native-library> tag [2]. With the change, public vendor libraries
[3] became accessible only when they are listed in the caller's
AndroidManifest.xml using the new tag. However, this caused a problem to
the places where AndroidManifest.xml doesn't exist: framework and
system_server classes. For those cases, [1] incorrectly used a null list
as the requested native libraries, and as a result, no public vendor
libraries were accessible.

This CL fixes the issue by not doing the filtering for the class loaders
created for non-app contexts like zygote or system_server. Specifically,
it uses the magic keyword "ALL" which let libnativeloader.so
accept all public vendor libraries.

[1] 6a5b8b1f6d
[2] https://developer.android.com/guide/topics/manifest/uses-native-library-element
[3] https://source.android.com/devices/tech/config/namespaces_libraries#adding-additional-native-libraries

Bug: 205164833
Test: libcuttlefish_fs.so is loaded when built with the other CLs in the
same topic

Change-Id: Id92c59642773851d70d05a05f43eb5873e9de86b
2021-11-18 23:09:27 +09:00
Chiachang Wang
04f4216496 Merge "Update test to adopt new API for check network support" 2021-11-10 09:32:58 +00:00
Xiao Ma
1f1155ea78 Merge "Enable tethering namespace accessible in Android native level." 2021-11-10 08:05:59 +00:00
Chiachang Wang
15595b76f6 Update test to adopt new API for check network support
The isAvailable() in AbstractSimStatusImeiInfoPreferenceController
refers to Utils.isWifiOnly() which was updated in the modulization
work to refer TelephonyManager.isDataCapable(). The test here
should mock the data capable value instead of the connectivity one.

Update the usage accordingly to fix the broken test.

Test: make RunSettingsLibRoboTests \
      ROBOTEST_FILTER=SimStatusImeiInfoPreferenceControllerTest
Bug: 205788196
Change-Id: I79f6dad54cdcb1c506355a43b5c2030c93af96c8
2021-11-10 16:01:55 +08:00
Jooyung Han
2500e149bc Merge "Parcel: add new methods for interface list/array" 2021-11-10 00:31:54 +00:00
Joe Bolinger
ee4b5534fe Merge "Add jbolinger to OWNERS." 2021-11-10 00:01:07 +00:00
Rambo Wang
540d638718 Merge "Update javadoc of CarrierConfigManager" 2021-11-09 23:44:42 +00:00
Treehugger Robot
3630793506 Merge "Fixed data icon disappeared issue" 2021-11-09 22:16:34 +00:00
Treehugger Robot
6057fe80f1 Merge changes from topic "health-service-wrapper-test"
* changes:
  health: Drop HealthServiceWrapperHidl.init.
  BatteryService: remove HIDL-ness
  Move BatteryServiceTest to HealthServiceWrapperTest.
2021-11-09 21:34:38 +00:00
Treehugger Robot
08623cc3c4 Merge "Add pablogamito to flicker test owners" 2021-11-09 20:24:47 +00:00
Sooraj Sasindran
54ee695778 Merge changes from topic "VoNR_Toggle"
* changes:
  Correct the request number
  VoNR toggle
2021-11-09 18:59:05 +00:00
Nataniel Borges
b81392c9cd Add pablogamito to flicker test owners
Test: check owners file
Change-Id: If8adecda0d23d6d673825695e57813b281c0f6bc
2021-11-09 19:11:37 +01:00
Benedict Wong
5fcdfc99f1 Merge "Pull underlying network MTU using Java APIs" 2021-11-09 18:08:14 +00:00
Treehugger Robot
70d5485b28 Merge "Update the resources owner files" 2021-11-09 17:02:16 +00:00
Gary Jian
fe3f6bbf04 Correct the request number
RIL_REQUEST_IS_VONR_ENABLED

Bug: 203162440
Test: make
Change-Id: I9ecdc1811e9e680cd966ab91e7e2906a71e1c6ea
2021-11-09 15:05:37 +00:00
Sooraj Sasindran
e6abedb3ad VoNR toggle
Allow user to enable or disable voice over NR.

Bug: 190668235
Test: verified using settings UI
Change-Id: I655dc93c0b213e1b85b29b9a168f99072ca82186
Merged-In: I655dc93c0b213e1b85b29b9a168f99072ca82186
2021-11-09 15:05:05 +00:00
Treehugger Robot
db5da1ce28 Merge "Replace object tag with img tag in javadoc" 2021-11-09 09:55:36 +00:00
Riddle Hsu
c2cd376f6f Merge "Fix flakiness of testTransferLaunchCookie" 2021-11-09 07:47:35 +00:00
Treehugger Robot
8ce39879cf Merge "Update owners file" 2021-11-09 07:44:38 +00:00
Riddle Hsu
6cdf0bbec7 Fix flakiness of testTransferLaunchCookie
The count down latch is triggered too early that the value
to be verified may not have been set.

Fixes: 194183975
Test: atest ActivityOptionsTest#testTransferLaunchCookie
Change-Id: I3b78db921a178e2df970a85496ae5238b5bd6fb3
(cherry picked from commit c10eb7b18d5d55bf26d39c47f7452fefb30da838)
2021-11-09 14:21:28 +08:00
Sooraj Sasindran
79c8a3cff4 Update owners file
add sasindran
rm nazaninb

Bug: 199432252
Test: build
Merged-In: I2f537aaf1faec1dce65a3041da8b13e15ed96057
Change-Id: I2f537aaf1faec1dce65a3041da8b13e15ed96057
2021-11-08 22:02:15 -08:00
Jack Yu
686d60db2b Fixed data icon disappeared issue
When carriers have more than one APN that supports
internet APN type, the data icon might sometimes
disappeared, for example, after sending an MMS.
This is caused by the PreciseDataConnectionState
refactoring in Android 12. Added the workaround in
TelephonyRegistry to aggregate the data connection state for
internet, since it would be very difficult to make this
right in DataConnection class.

In Android 13, a more robust and comprehensive logic will
be added in the new data network controller to fix this.

Fix: 204328662
Fix: 187967526
Test: Manual test & TelephonyRegistryTest
Merged-In: Icba446e879e4d892829b41fdea50ebc1a10bf832
Change-Id: Icba446e879e4d892829b41fdea50ebc1a10bf832
(cherry picked from commit c50ef8d04f67ee7ed7658085bfcefb13e18893cb)
2021-11-08 20:32:38 -08:00
Jooyung Han
bbacfde150 Parcel: add new methods for interface list/array
New methods are to write a list/array of interface objects and to read
them again.

Basically these methods are quite similar to those for IBinder objects.
But when reading IInterface objects, we need to create an array of the
exact type and need a way of converting IBinder into IInterface value.

Two functional interfaces (newArray and asInterface) are just like
while Parcelable.Creator does. We could pass "Stub" class which is
generated by the AIDL compiler and use reflection to create a typed
array instance and call `asInterface` method. But rather than relying on
reflection, passing `IMyInterface[]::new` and
`IMyInterface.Stub::asInterface` would be simple enough to use.

Bug: 205195901
Test: atest -d android.os.cts.ParcelTest
Change-Id: I275db9ebf52d3b9713fa105d81da3a1d289d96a8
2021-11-09 10:26:29 +09:00
Yurii Zubrytskyi
4c87aec35f Update the resources owner files
Bug: 205633893
Test: n/a

Change-Id: Ib9cf70c9acb200e8019a6522cb6a85f85b760651
2021-11-08 16:25:33 -08:00
Benedict Wong
12fd089484 Pull underlying network MTU using Java APIs
This change ensures that if the VCN's underlying network MTU is not
reported via the LinkProperties APIs (as in the case of Carrier WiFi),
the kernel values will be used (as possible).

Bug: 204813618
Test: Manual testing
Test: atest FrameworksVcnTests CtsVcnTestCases
Change-Id: If291aa6b915e4da39152a679bbe3e40216b42f44
2021-11-08 23:00:35 +00:00
Sudheer Shanka
8aebd244de Merge "Add documentation for BlobStore service." 2021-11-08 21:57:35 +00:00
Yifan Hong
9d57df9e82 health: Drop HealthServiceWrapperHidl.init.
Having a separate init function is a bad contract because
the client may not call it. Replace it with the constructor.

This reduces technical debt.

Test: pass
Change-Id: I3828903b006c32eb6898d36e64326520ef601ba8
2021-11-08 12:13:15 -08:00
Yifan Hong
8902c87ea9 BatteryService: remove HIDL-ness
Move HIDL-specifics of BatteryService to a list of classes
under com.android.server.health, so that we can replace
with the AIDL HAL easily.

HealthInfo types are kept as HIDL types. This will be
transformed to AIDL types in the next CL.

Also move BatteryServiceTest to HealthServiceWrapperTest,
since it essentially test just HealthServiceWrapper. Moving
the test to the proper package allows us to make things
package private.

Also make HealthServiceWrapperTest JUnit 4, since AndroidTestCase
is deprecated.

Test: builds
Test: atest FrameworksServicesTests
Bug: 177269435

Change-Id: Ie4dff341594fe9185a188ad963f29ade5d199e85
2021-11-08 12:13:15 -08:00
Yifan Hong
e68179028d Move BatteryServiceTest to HealthServiceWrapperTest.
Moving the file in this commit so that git recognizes
that the file is moved, not deleted then created.

Test: none (note: this cannot be built. See next CL that
      correctly fix this.)
Bug: 177269435
Change-Id: I3c41ba1571c30a912b558dac4f1aaf8f1b5c5b61
2021-11-08 12:13:15 -08:00
Treehugger Robot
e9c20518f7 Merge "Add OWNERS for the health package (servicestests)." 2021-11-08 16:13:57 +00:00
Yi Kong
473d29e6b1 Merge "Rename upload action to com.android.shell.action.PROFCOLLECT_UPLOAD" 2021-11-08 11:11:07 +00:00
Wei Sheng Shih
385935d07f Merge "setTurnScreenOn can only used as wakeup" 2021-11-08 07:07:27 +00:00
Yi Kong
b324a7418a Rename upload action to com.android.shell.action.PROFCOLLECT_UPLOAD
The new name better aligns with the component and permission names.

Follow up review comments on https://r.android.com/1784487

Bug: 183487233
Test: presubmit
Change-Id: Ibe3a3e51b0dc154ee3e43b27e561fd541b62cc54
2021-11-08 06:16:22 +00:00
wilsonshih
5ffa690f0c setTurnScreenOn can only used as wakeup
setTurnScreenOn shouldn't dismiss keyguard automatically even when the
keyguard is insecure.
The keyguard state should only be affected by requestDismissKeyguard
and/or setShowWhenLocked, and for either case setTurnScreenOn can be
used to wakeup device if the activity is going to be resumed and
visible.

Bug: 201103497
Test: atest ActivityVisibilityTests KeyguardTests KeyguardLockedTests
Change-Id: I283dea469a33286fc9cf835e39ee5a3be2444739
2021-11-08 11:04:10 +08:00
Yi Kong
0849b35051 Merge "profcollect/betterbug integration with content uri" 2021-11-06 08:17:18 +00:00
Yifan Hong
06d8d3de90 Add OWNERS for the health package (servicestests).
Test: pass
Bug: 177269435
Change-Id: I71bceb1bb6d1797cdc744ae939b0d4e694a7c8e6
2021-11-05 23:49:08 -07:00
Treehugger Robot
bcafa9a7b1 Merge "Refactored DataProfile and ApnSetting" 2021-11-06 05:22:17 +00:00
Rambo Wang
d2639b906b Update javadoc of CarrierConfigManager
The implementation in CarrierConfigLoader allows system privileged
app to access the API CarrierConfigManager#notifyConfigChangedForSubId,
starting from N release. Several features has been built on it.
It is better to explicitly specify the behavior in javadoc to avoid
misunderstanding.

For the similar reason, the javadoc of methods below are also updated:
- getConfigForSubId
- getConfig
- getConfigByComponentForSubId

The cl also removes the closing </p> tag which is not allowed by
Android API Guidelines (go/android-api-guidelines).

Bug: 204712404
Test: m offline-sdk-docs
Change-Id: I7da035937a0472194a8c8cbc5ef99481351f6d36
2021-11-06 02:13:19 +00:00
Les Lee
a1e47b652b Merge "Fix normalize doesn't work on carrier template" 2021-11-06 00:54:14 +00:00
Jack Yu
fc2b851d9d Refactored DataProfile and ApnSetting
Merged traffic descriptor into DataProfile. Now DataProfile
becomes a container of an ApnSetting plus a TrafficDescriptor.

Bug: 196597630
Test: CTS && atest FrameworksTelephonyTests
Merged-In: I1f2ad8239461469bacb8fb67e2e61c9a8a47795b
Change-Id: I1f2ad8239461469bacb8fb67e2e61c9a8a47795b
(cherry picked from commit bbb11109983be93eb7d03c9de16d9abf855e1925)
2021-11-05 17:16:13 -07:00
Nathan Harold
9aca73a930 Merge "Add GERAN to Docstring for PhysicalChannelConfig" 2021-11-05 23:49:40 +00:00
Joe Bolinger
5c12878834 Add jbolinger to OWNERS.
Test: N/A
Change-Id: I1c535b10737b59f4848f66a8e65ae50d2ad85eda
2021-11-05 15:07:02 -07:00
Treehugger Robot
99da93a0e7 Merge "Add the min aspect ratio to ActivityRecordProto and populate it" 2021-11-05 18:06:29 +00:00
Bernardo Rufino
f5cc73d25f Merge "Refactor Bundle for thread-safety of Bundle.hasFileDescriptors()" 2021-11-05 17:43:00 +00:00
Roopa Sattiraju
30cd5df67f Merge "Change getEnabledComponentOverrides return type" 2021-11-05 17:33:00 +00:00
Trevor Radcliffe
eaebd2cd54 Merge "Migrate rs/jni to Soong" 2021-11-05 16:10:56 +00:00
Bernardo Rufino
41d4be0fef Merge "Improve @hide Parcel.hasFileDescriptors(Object)" 2021-11-05 14:51:18 +00:00
tomnatan
61836d5b5a Add the min aspect ratio to ActivityRecordProto and populate it
This is needed for CompatChangeTests to verify that the min aspect ratio
is applied directly by checking the min aspect ratio.

Bug: 203541827
Test: N/A
Change-Id: I1736cd4a2c4a1c5857796fa9772def7b7d94ba33
Merged-In: I1736cd4a2c4a1c5857796fa9772def7b7d94ba33
2021-11-05 11:29:51 +00:00
Rahul Sabnis
eb806924d6 Merge "Deprecate GATT callbacks and methods that were not memory safe and replace with memory safe versions." 2021-11-05 05:13:01 +00:00
Rahul Sabnis
8e78d9fbf3 Deprecate GATT callbacks and methods that were not memory safe and
replace with memory safe versions.

Tag: #feature
Bug: 195157393
Test: Manual
CTS-Coverage-Bug: 205190062
Merged-In: I5ae604ec20febcf646bfe6a8f866b218448349c1
Change-Id: I5ae604ec20febcf646bfe6a8f866b218448349c1
2021-11-05 03:30:03 +00:00