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
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
Allow user to enable or disable voice over NR.
Bug: 190668235
Test: verified using settings UI
Change-Id: I655dc93c0b213e1b85b29b9a168f99072ca82186
Merged-In: I655dc93c0b213e1b85b29b9a168f99072ca82186
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)
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)
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
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
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
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
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
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
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
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
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)
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