Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Issue 1633733005: Native SSID extraction moved to platform code on Android (Closed)

Created:
4 years, 11 months ago by ripp
Modified:
4 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Randy Smith (Not in Mondays)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

On Android, move Wifi SSID extraction to a Java implementation On some Android devices, the device will restart right after the browser is launched. This is due to a kernel bug on these devices when using the Linux GetWifiSSID implementation, which causes a kernel panic and device restart. To avoid this, a Java-based implementation is used for Android devices, which avoids this. Examples of affected devices include: HTC One S Lenovo A820 Asus ZenFone 2 MediaPad 10 FHD R=bengr@chromium.org,rch@chromium.org BUG=555067 TEST=Take the problem device, install browser and start it, wait for 10 seconds. Make 10 experiments, cleaning data before each run. Device should not reboot. Committed: https://crrev.com/35f59b4376232b4685c2a2e922f00a3bce2fbfde Cr-Commit-Position: refs/heads/master@{#374743}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Refactoring of GetWifiSSID/GetCurrentWifiConnectionSsid #

Total comments: 2

Patch Set 3 : getCurrentWifiConnectionSsid renamed to getWifiSSID #

Total comments: 4

Patch Set 4 : Added check against <unknown ssid>; copyright comment corrected #

Total comments: 12

Patch Set 5 : Some refactoring and quotes removal improving #

Patch Set 6 : Comment fixed #

Patch Set 7 : Fixed gn gen #

Patch Set 8 : Added permission for net_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -0 lines) Patch
M net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java View 1 2 3 4 5 2 chunks +32 lines, -0 lines 0 comments Download
M net/android/network_library.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M net/android/network_library.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M net/android/unittest_support/AndroidManifest.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A net/base/network_interfaces_android.cc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M net/base/network_interfaces_linux.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (12 generated)
ripp
4 years, 11 months ago (2016-01-26 19:32:46 UTC) #1
ripp
4 years, 11 months ago (2016-01-26 19:35:23 UTC) #2
Ryan Hamilton
lgtm https://codereview.chromium.org/1633733005/diff/1/net/android/network_library.h File net/android/network_library.h (right): https://codereview.chromium.org/1633733005/diff/1/net/android/network_library.h#newcode85 net/android/network_library.h:85: // Returns the current SSID if device is ...
4 years, 11 months ago (2016-01-26 20:15:50 UTC) #3
Ryan Sleevi
Please do *not* commit this yet. I have an important design request here Further, I'd ...
4 years, 11 months ago (2016-01-26 20:22:26 UTC) #5
Ryan Hamilton
not lgtm https://codereview.chromium.org/1633733005/diff/1/net/base/network_quality_estimator.cc File net/base/network_quality_estimator.cc (right): https://codereview.chromium.org/1633733005/diff/1/net/base/network_quality_estimator.cc#newcode782 net/base/network_quality_estimator.cc:782: network_id.id = android::GetCurrentWifiConnectionSsid(); On 2016/01/26 20:22:26, Ryan ...
4 years, 11 months ago (2016-01-26 20:24:48 UTC) #6
ripp
https://codereview.chromium.org/1633733005/diff/1/net/android/network_library.h File net/android/network_library.h (right): https://codereview.chromium.org/1633733005/diff/1/net/android/network_library.h#newcode85 net/android/network_library.h:85: // Returns the current SSID if device is connected ...
4 years, 11 months ago (2016-01-27 12:09:06 UTC) #8
Ryan Sleevi
https://codereview.chromium.org/1633733005/diff/20001/net/android/network_library.h File net/android/network_library.h (right): https://codereview.chromium.org/1633733005/diff/20001/net/android/network_library.h#newcode86 net/android/network_library.h:86: NET_EXPORT std::string GetCurrentWifiConnectionSsid(); Please see the previous remarks about ...
4 years, 11 months ago (2016-01-27 18:12:45 UTC) #9
ripp
https://codereview.chromium.org/1633733005/diff/20001/net/android/network_library.h File net/android/network_library.h (right): https://codereview.chromium.org/1633733005/diff/20001/net/android/network_library.h#newcode86 net/android/network_library.h:86: NET_EXPORT std::string GetCurrentWifiConnectionSsid(); On 2016/01/27 18:12:45, Ryan Sleevi wrote: ...
4 years, 11 months ago (2016-01-28 09:12:59 UTC) #10
bengr
https://codereview.chromium.org/1633733005/diff/40001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java File net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java (right): https://codereview.chromium.org/1633733005/diff/40001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java#newcode238 net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java:238: return wifiInfo == null ? "" : wifiInfo.getSSID(); The ...
4 years, 10 months ago (2016-01-30 01:12:30 UTC) #11
ripp
https://codereview.chromium.org/1633733005/diff/40001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java File net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java (right): https://codereview.chromium.org/1633733005/diff/40001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java#newcode238 net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java:238: return wifiInfo == null ? "" : wifiInfo.getSSID(); On ...
4 years, 10 months ago (2016-02-01 09:33:47 UTC) #12
ripp
Dear colleagues, are there any more comments or I can commit?
4 years, 10 months ago (2016-02-05 09:17:05 UTC) #13
bengr
sleevi@: Would you like to take another look? I'll take a pass now as well.
4 years, 10 months ago (2016-02-05 17:42:51 UTC) #14
Ryan Hamilton
this lgtm now, but please refrain from landing until sleevi signs off.
4 years, 10 months ago (2016-02-05 17:44:02 UTC) #15
Ryan Sleevi
lgtm
4 years, 10 months ago (2016-02-05 17:46:25 UTC) #16
bengr
https://codereview.chromium.org/1633733005/diff/60001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java File net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java (right): https://codereview.chromium.org/1633733005/diff/60001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java#newcode235 net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java:235: * Returns the current SSID if device is connected ...
4 years, 10 months ago (2016-02-05 18:02:49 UTC) #17
ripp
https://codereview.chromium.org/1633733005/diff/60001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java File net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java (right): https://codereview.chromium.org/1633733005/diff/60001/net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java#newcode235 net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java:235: * Returns the current SSID if device is connected ...
4 years, 10 months ago (2016-02-09 08:02:05 UTC) #18
bengr
lgtm
4 years, 10 months ago (2016-02-09 15:33:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1633733005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1633733005/100001
4 years, 10 months ago (2016-02-09 16:04:21 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/19417) android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, ...
4 years, 10 months ago (2016-02-09 16:12:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1633733005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1633733005/120001
4 years, 10 months ago (2016-02-10 14:48:21 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/21186)
4 years, 10 months ago (2016-02-10 17:44:59 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1633733005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1633733005/140001
4 years, 10 months ago (2016-02-10 18:51:29 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-10 22:10:40 UTC) #34
gone
On 2016/02/10 22:10:40, commit-bot: I haz the power wrote: > Committed patchset #8 (id:140001) I've ...
4 years, 10 months ago (2016-02-11 01:53:16 UTC) #35
mdjones
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1688103002/ by mdjones@chromium.org. ...
4 years, 10 months ago (2016-02-11 02:00:25 UTC) #36
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:31:34 UTC) #38
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/35f59b4376232b4685c2a2e922f00a3bce2fbfde
Cr-Commit-Position: refs/heads/master@{#374743}

Powered by Google App Engine
This is Rietveld 408576698