Implement nsINetworkLinkService.networkID for Android
Categories
(Core :: Networking, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: valentin, Assigned: michal)
References
Details
(Whiteboard: [necko-triaged][secure-proxy][skyline])
Attachments
(1 file)
The implementation should probably be similar to that of isNetworkLinkUp, calling into Java code to get the network info.
https://searchfox.org/mozilla-central/rev/06bd14ced96f25ff1dbd5352cb985fc0fa12a64e/netwerk/system/android/nsAndroidNetworkLinkService.cpp#29
https://searchfox.org/mozilla-central/rev/06bd14ced96f25ff1dbd5352cb985fc0fa12a64e/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java#1150
I found these APIs that seem to get you all networks and a "handle" for each (not sure of the handle is unique though. we might have to compute a uuid based on the network attributes).
https://developer.android.com/reference/android/net/ConnectivityManager.html#getAllNetworks()
https://developer.android.com/reference/android/net/Network.html#getNetworkHandle()
Comment 1•5 years ago
|
||
I am not sure how important this bug is.
NI Nhi for adjusting the priority.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Changing to corp confidential temporarily (till after Sept 10) on Tony and elan's request.
Assignee | ||
Comment 4•5 years ago
|
||
Patch changes nsAndroidNetworkLinkService so it uses NetlinkService for network ID calculation as well as for notifications about network changes.
Comment 5•5 years ago
|
||
Valentin, could you review the patch? This is for 71.
Reporter | ||
Comment 6•5 years ago
|
||
Sure, I'll try to do it by tomorrow evening.
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Landed here: https://hg.mozilla.org/integration/autoland/rev/a6dff66393c94abda1e9abaee94fff8201a6ab48
Comment 8•5 years ago
|
||
https://hg.mozilla.org/integration/autoland/rev/a6dff66393c94abda1e9abaee94fff8201a6ab48
https://hg.mozilla.org/mozilla-central/rev/a6dff66393c9
Updated•4 years ago
|
Description
•