longseespace / netflix_patch

Patched Netflix App for Android enabling Widevine L1 allowing not certified devices to play HD
203 stars 32 forks source link

Ethernet does not work #13

Open thalueng opened 3 years ago

thalueng commented 3 years ago

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 commented 3 years ago

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