Change the manual network selection api in TelephonyManager to support
the OperatorInfo.
Bug: 115401728
Test: manual test
Merged-In: I43dee55ce117873b699cb98c6eb6d41f5dee24ea
Change-Id: I43dee55ce117873b699cb98c6eb6d41f5dee24ea
Allow VPN apps to lookup the UID owner of a network connection.
Requires specifying the:
- IP address and port for both the source and destination of a TCP
connection.
- IP address and port for either source and destination or just
source for a UDP connection.
Only TCP and UDP protocols are supported. Only connections for UIDs
that apply to the calling VPN app will be resolved. This is intended
to replace direct app access to /proc/net/{tcp,tcp6,udp,udp6}.
The implementation uses netlink inet_diag sockets[1] to perform
the lookup on TCP sockets as well as UDP sockets when supported
(kernel has CONFIG_INET_UDP_DIAG=y).
[1] http://man7.org/linux/man-pages/man7/sock_diag.7.html
Bug: 9496886
Bug: 109758967
Test: atest HostsideVpnTests
Test: atest InetDiagSocketTest on Taimen with CONFIG_INET_UDP_DIAG
and on Sailfish without CONFIG_INET_UDP_DIAG.
Change-Id: I2bbc7072dd091e2e653dadf6dc05024c04180f34
Some carriers do not support no-reply timer of CFNRy.
So, if it is configured by carrier config, request CFNRy without
no-reply timer when a user sets CFNRy in settings UI.
Test: manual - Check that CFNRy is requested without no-reply timer
if it configured.
Bug: 110121791
Change-Id: If80cdd3c5eaa7b2b59cab9640d560f0b29b5eb5a
InputMethodManager#sInstance is a long live static object so we have to
set its field with right value, otherwise any object referenced by it
cannot be gc including potential activity context.
Now InputMethodManager#mCurRootView is set to null in
InputMethodManager#onPreWindowFocus which is invoked when app's
ViewRootImpl received ViewRootImpl#W#windowfocusChanged from WMS.
However, in the ViewRootImpl#W#windowfocusChanged, mViewAncestor is a
weak reference which get() may returns null sometimes.
One scenario is the ViewRootImpl#W#windowfocusChanged is called after
ActivityThread#handleDestroyActivity. The activity is destroyed and its
ViewRootImpl get GC'd. Then InputMethodManager#onPreWindowFocus won't
get called and InputMethodManager#mCurRootView won't be set to null.
And it is a proper time to set InputMethodManager#mCurRootView to null
when the window it served dismissed.
Fix: 116078227
Test: Break at ActivityThread#handleDestroyActivity and ViewRootImpl#W#windowfocusChanged
Change-Id: I8fabb30f14bcb2cd7019e29b6642b4562d49d248
Signed-off-by: daqi <daqi@xiaomi.com>
- onBind should be final (I think also for onUnBind)
- Remove verbose logging
- Document redirectCall/placeCallUnmodified/cancelCall can only be
called from onPlaceCall
Bug: 112303670
Test: compile
Change-Id: I7d70a5ac3063a638d9383f69c99e4c1f822e8948
Merged-In: I7d70a5ac3063a638d9383f69c99e4c1f822e8948
(cherry picked from commit 4ec07dd68a)
This patch mainly takes below changes:
1) Add new extra to indicates the call network technology.
2) Provides basic function to set/get call radio technology.
Bug: 67856372
Test: Manual
Change-Id: I1a12382fdb589ce823fe7af025832db4cdc152c2
[Problem]
After reboot, the CaptivePortalLogin crashes when start the
CaptivePortalLogin from Recents Screen.
[Root Cause]
Although Network class is null, Network#getPrivateDnsBypassingCopy is
called at CaptivePortalLoginActivity
[Solution]
To check if NetworkCapabilities is null before
Network#getPrivateDnsBypassingCopy
Bug: 113303484
Test: built, boot and manual
Change-Id: Icff8446fefa9700dcbcd1f8f1e4edeaf4b0d3557
The current wording seems to suggest allocating an infinite number of
fields, which is not future-proof.
Bug: 72866543
Test: N/A
Change-Id: I88732ea8695521a39f20524348547cfe50cbf776
In version 10, we no longer assume '&' for shared libraries of system
packages, instead expecting the package manager state to be precise
and correct.
Bug: 115993344
Test: m
Test: OTA tests
Test: manual OTA
Change-Id: I0d7942db14b247a83a506e5d45b44ff3a65ad90e
Expect that package state is up-to-date, so that shared system
apps are correctly recognized by themselves.
Bug: 115853663
Test: m
Test: OTA tests
Test: manual A/B OTA
Change-Id: Ia223bd48c4c5849b441bd4c5f0a87768aee5582d
The test utility classes under com.android.server.testutils are moved
to servicestests/utils directory in order to easily be shared between
FrameworksServiceTests and upcomming WmTests.
Test: tradefed.sh run commandAndExit FrameworksServicesTests \
--include-annotation android.platform.test.annotations.Presubmit \
--exclude-annotation androidx.test.filters.FlakyTest
Bug: 113800711
Merged-In: I39c623a286df1067fffadc25c8a49c12cc05c82c
Change-Id: I71cd7b417641b5e969bef6f3076020bfc1dfffa7
(cherry picked from commit 77439ba9b3)