netflix_patch icon indicating copy to clipboard operation
netflix_patch copied to clipboard

Ethernet does not work

Open thalueng opened this issue 4 years ago • 1 comments

The app works on wireless, does not work on a wired connection. It seems that pulling the config data does not transfer information about the network preferences, but I can't find the location to tweak it in the smali files.

thalueng avatar Jan 18 '21 16:01 thalueng

I found a work-around. Patch method isWiFiConnected in ConnectivityUtils.smali to always return true. It's not perfect, but allows the app to stream on a wired connection.

diff -ruN netflix_stock/smali_classes2/com/netflix/mediaclient/util/ConnectivityUtils.smali netflix_patch/smali_classes2/com/netflix/mediaclient/util/ConnectivityUtils.smali --- netflix_stock/smali_classes2/com/netflix/mediaclient/util/ConnectivityUtils.smali 2021-01-18 23:51:36.887396400 +0700 +++ netflix_patch/smali_classes2/com/netflix/mediaclient/util/ConnectivityUtils.smali 2021-01-19 00:26:08.139067800 +0700 @@ -2405,11 +2405,8 @@ .locals 2

 .prologue

- .line 541 - if-nez p0, :cond_0 - .line 543 - const/4 v0, 0x0 + const/4 v0, 0x1

 .line 547
 :goto_0

thalueng avatar Jan 18 '21 17:01 thalueng