emilsvennesson / script.module.inputstreamhelper

A simple Kodi module that makes life easier for add-on developers relying on InputStream based add-ons and DRM playback.
MIT License
136 stars 48 forks source link

Make Widevine ARM selection more reliable #62

Closed dagwieers closed 5 years ago

dagwieers commented 5 years ago

So #59/#60 happened on ARM because the selected hardware device (codename SPRING) is no longer (or temporarily not) getting newer recovery images, and as such does not ship a newer, supported Widevine CDM library. (The only ARM device in the list BTW)

Rather than having a single hardware device listed in our config.py, we could instead list all known ARM devices, and have an algorithm select the smallest ARM image that has the latest version available.

I went over the long list of ChromeOS devices and verified the hardware specs to see which ones in that list actually ship with an ARM processor. This is the list:

# 1101940875  12105.100.0  BOB       // ASUS Chromebook Flip C101PA
# 1219529228  12105.100.0  WHITETIP  // CTL Chromebook J41 / J41T
#  602050152  12105.100.0  SKATE     // HP Chromebook 11 G2
#  589868247  11316.165.0  SPRING    // HP Chromebook 11 G1
#  602667331  12105.100.0  SNOW      // Samsung Chromebook - XE303
# 1102818796  12105.100.0  ELM       // Acer Chromebook R13 (CB5-312T)
# 1102001394  12105.100.0  HANA      // *** (Lenovo, Poin2)
#  613700233  12105.100.0  BIG       // Acer Chromebook 13 (CB5-311, C810)
#  614552734  12105.100.0  BLAZE     // HP Chromebook 14 G3
# 1174046692  12105.100.0  RELM      // *** (Acer, CTL, Edxis, HP, Mecer, Positivo)
# 1110369689  12105.100.0  DUMO      // ASUS Chromebook Tablet CT100
# 1110369689  12105.100.0  SCARLET   // Acer Chromebook Tab 10
# 1087032125  12105.100.0  FIEVEL    // AOpen Chromebox Mini
#  600449940  12105.100.0  JAQ       // *** (Haier, Lava, Medion, True)
# 1087717823  12105.100.0  JERRY     // *** (CTL, EduGear, Epik, HiSense, Mecer, NComputing, Poin2, Positivo, VideoNet)
#  600853103  12105.100.0  MICKEY    // ASUS Chromebit CS10
# 1087997726  12105.100.0  MIGHTY    // *** (EduGear, Haier, Lumos, MEDION, Nexian, PCMerge, Prowise, Sector 5, Viglen)
# 1089562352  12105.100.0  MINNIE    // ASUS Chromebook Flip C100PA
#  601880870  12105.100.0  SPEEDY    // ASUS Chromebook C201PA
# 1087883174  12105.100.0  TIGER     // AOpen Chromebase Mini

So I think a different algorithme to select the best ARM image will prevent #59/#60 from happening.

dagwieers commented 5 years ago

I wish I had seen this before: https://github.com/reynhout/chrx/blob/master/chrx-install