Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on Sony Xperia XA2/ARM v8l/Qualcomm SDM630 #245

Closed
cintema opened this issue Jan 11, 2020 · 33 comments
Closed

Doesn't work on Sony Xperia XA2/ARM v8l/Qualcomm SDM630 #245

cintema opened this issue Jan 11, 2020 · 33 comments
Labels
android Related to Android arm Related to ARM architecture question widevine Related to Widevine DRM

Comments

@cintema
Copy link

cintema commented Jan 11, 2020

kodi.log.txt

Bildschirmfoto_20200110_003

Thank you!

@dagwieers
Copy link
Collaborator

Could you try the master branch?
https://github.com/emilsvennesson/script.module.inputstreamhelper/archive/master.zip

It will report that Widevine is built into Android.

@dagwieers
Copy link
Collaborator

dagwieers commented Jan 11, 2020

Based on the log file it may be that Widevine is not supported by your system, or it is an inputstream.adaptive issue.

VideoPlayer::OpenFile: plugin://plugin.video.tester/?_=play_video&index=3
2020-01-10 18:51:15.357 T:14174  NOTICE: Creating InputStream
2020-01-10 18:51:15.438 T:14174   ERROR: AddOnLog: InputStream Adaptive: Key system request: com.widevine.alpha
2020-01-10 18:51:17.567 T:14174   ERROR: AddOnLog: InputStream Adaptive: Unable to initialize media_drm
2020-01-10 18:51:17.568 T:14174   ERROR: AddOnLog: InputStream Adaptive: OpenDRMSystem failed
2020-01-10 18:51:17.570 T:14174   ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.tester/?_=play_video&index=3]

cc @peak3d

@cintema
Copy link
Author

cintema commented Jan 11, 2020

There is no widevine installed on my phone yet since it's running Sailfish OS/Aliendalvik.
I thought widevine would be provided by inputstream helper if not preinstalled?

@dagwieers
Copy link
Collaborator

dagwieers commented Jan 11, 2020

There is no Widevine CDM library publicly available for us to install on Android AFAIK. It normally ships with the Android OS. If you happen to find a solution, we could reconsider, but I doubt it's going to be pretty...

@cintema
Copy link
Author

cintema commented Jan 12, 2020

What exactely is needed for widevine? May it be possible to copy the widevine library from a genuine Sony Xperia Android image? I would be willing to try this but info about which files were needed is hard to find. Can you provide some further information?
Thanks!

@cintema
Copy link
Author

cintema commented Jan 12, 2020

Wouldn't it be possible to utilize the ChromeOS widevine libraries on SailfishOS/Aliendalvik as well? And if not, why not?

@dagwieers
Copy link
Collaborator

dagwieers commented Jan 12, 2020

Wouldn't it be possible to utilize the ChromeOS widevine libraries on SailfishOS/Aliendalvik as well?

Possibly, but we are not allowed to redistribute these libraries, so we cannot automate it ourselves.
But if you put them in the right place, I believe it ought to work. It ought to go into the path shown in the information window.

@dagwieers dagwieers added android Related to Android question widevine Related to Widevine DRM labels Jan 12, 2020
@cintema
Copy link
Author

cintema commented Jan 14, 2020

Sounds interesting.
I've extracted the relevant libraries using this script:
https://gist.github.com/ruario/19a28d98d29d34ec9b184c42e5f8bf29
Can you tell me the path where to put them?
Thank you!

@dagwieers
Copy link
Collaborator

See my previous message.

@cintema
Copy link
Author

cintema commented Jan 15, 2020

Already saw it, sorry for asking :)
However, it doesn't seem possible to modify files in /user/0 on sailfishOS at present. Can I change the path at which inputstreamhelper looks for the widevine libs to e.g. $home/Android/data/org.xbmc.kodi/ or somewhere else in the homdir (e.g. $home/.widevine)?
Thank you!

@dagwieers
Copy link
Collaborator

dagwieers commented Jan 15, 2020

@cintema You can modify this path from the inputstream.adaptive settings in General » Decrypter path.

Not sure if that will work for Android, as it may expect Widevine to ship with Android. Default value is: special://home/cdm

@cintema
Copy link
Author

cintema commented Jan 15, 2020

20200115174906
I don't think I have this option on android (and the only accessible dir on SfOS-Alien Dalvik is the Android user home directory, therefore copying to /home cdm is not an option, unfortunately).
Can I modify the plugin .py/.xml stored at $home/data?

@dagwieers
Copy link
Collaborator

I said inputstream.adaptive, not inputstreamhelper. It is a different add-on.

@cintema
Copy link
Author

cintema commented Jan 22, 2020

Inputstream.adaptive doesn't appear to be installed nor available for android in the official repo. Installing zip-files fails.
20200122152232
May I try the rpi2 version or what would you suggest?
Any other way to supply the widevine lib to inputstream.helper?

@dagwieers
Copy link
Collaborator

Yes it does.
Screenshot_20200122-194346

@cintema
Copy link
Author

cintema commented Jan 23, 2020

I'm using a standard kodi release for android and i didn't modify the repos (except for ADDING some skygo related stuff):
20200123110009

What am I missing?
Thank you.

@cintema
Copy link
Author

cintema commented Jan 23, 2020

/Edit: Incompatible Addons are not hidden

@cintema
Copy link
Author

cintema commented Jan 23, 2020

20200123110802

@dagwieers
Copy link
Collaborator

Screenshot_20200123-151340

@dagwieers
Copy link
Collaborator

dagwieers commented Jan 23, 2020

We have the same Kodi. But your Android may be missing required infrastructure for inputstream.adaptive?

@cintema
Copy link
Author

cintema commented Jan 23, 2020

As I said, I'm on SailfishOS (which is rather a LSB-Linux devirative (with rpm, zypper etc.) and an Android compatibility layer (Alien Dalvik) than a full featured Android. Since Kodi is somewhat standalone, I wonder if it was possible to utilize third party libwidevine as on Ubutntu instead of searching for Android DRM support. This would also benefit people using Kodi on Foss-Android clones like LineageOS.

@cintema
Copy link
Author

cintema commented Jan 23, 2020

Plus, I don't understand why inputstream.adaptive is not even offered for my Kodi release (not even when listing incompatible packages). I tried to search for a standalone.zip file but I could only find some packages für x86. Is there no other possibility to address libwidevine from inputstream.helper than inputstream.adaptive? I wonder since the inputstream.helper information screen displays a widevine.cdm path. I would have thought that, if it was possible to change this path to where the libwidevine.so is found, libwidevine might be utilized for decoding...

@dagwieers
Copy link
Collaborator

@cintema I think this is the wrong forum for your questions, maybe https://github.com/peak3d/inputstream.adaptive is a better location to direct your questions?

@peak3d
Copy link

peak3d commented Jan 23, 2020

We can try to solve issues here, if it is ok for you @dagwieers, I agree that it is not the right place.

  • from where do you get kodi, and for what platform exactly @cintema ? How have you installed it?
    (pls. provide a link to the package you use for installation)

@dagwieers
Copy link
Collaborator

@peak3d I don't mind, it's just that I have no clue on the cause, or if a solution is at all possible.

@cintema
Copy link
Author

cintema commented Jan 23, 2020

Plus, I don't understand why inputstream.adaptive is not even offered for my Kodi release (not even when listing incompatible packages). I tried to search for a standalone.zip file but I could only find some packages für x86. Is there no other possibility to address libwidevine from inputstream.helper than inputstream.adaptive? I wonder since the inputstream.helper information screen displays a widevine.cdm path. I would have thought that, if it was possible to change this path to where the libwidevine.so is found, libwidevine might be utilized for decoding...

@cintema cintema closed this as completed Jan 23, 2020
@cintema cintema reopened this Jan 23, 2020
@cintema
Copy link
Author

cintema commented Jan 23, 2020

I downloaded the Android package from kodi.tv.
Since I have both, the 32bit and 64bit release in my download folder I cannot really tell which release is currently installed (I presume the 32bit release as the 64bit release could not be installed - could be vice versa, though - is there a way to figure that out, couldn't find anything from sysinfo?).

@cintema cintema closed this as completed Jan 23, 2020
@cintema cintema reopened this Jan 23, 2020
@cintema
Copy link
Author

cintema commented Jan 23, 2020

BTW: Sorry for always hitting the wrong (close issue) button... wasn't intentional, the issue still exists!

@peak3d
Copy link

peak3d commented Jan 24, 2020

@cintema search your device for the kodi.log file and post it here. inputstream.adaptive is in general always bundled in the apk's provided by kodi, so either you have picked a bad nightly, or something else is wrong. widevine presence does not influence inputstream.adaptive appearance b.t.w., means it should be there.

Edit: from log above inputstream.adaptive 2.4.2 is installed, so everything fine.
For android we use MediaDrm for widevine, not libwidevine.so. If you want to use libwidevine on a android device, some deeper changes have to be done, this includes the build system which already sticks MediaDrm to inputstream.adaptive at build time.

@dagwieers
Copy link
Collaborator

@peak3d It appears my smartphone has the same Kodi release as @cintema, the one from the Play Store (update from 2019-11-17). See screenshots. But mine is running on a real Android.

@dagwieers dagwieers added the arm Related to ARM architecture label Jan 27, 2020
@cintema
Copy link
Author

cintema commented Jan 30, 2020

For android we use MediaDrm for widevine, not libwidevine.so. If you want to use libwidevine on a android device, some deeper changes have to be done, this includes the build system which already sticks MediaDrm to inputstream.adaptive at build time.

Thank you for clarification!
Would it be possible to just install the raspy release of inputstream.adaptive on Android?

@mirh
Copy link

mirh commented Apr 13, 2021

At least L3 should be possible on every phone, it's just a matter of copy-pasting a library.
L1 is also possible, at least if your device ever got the official certification and you didn't screw keys.

I'm not sure if it's doable for Kodi to find/ship it itself, but anyway it sounds at least a bug to report to the jolla guys.

@Invictaz
Copy link

Invictaz commented Aug 4, 2022

@cintema very interesting efforts. It might be that Sailfish didn't pay Google for the required keys for your phone. So a general CDM does not work as it needs hardware decryption keys per device in order to use L1. L3 would be possible by testing this. Get your CDM first.

https://forum.videohelp.com/threads/404994-Decryption-and-the-Temple-of-Doom

@horstle horstle closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Related to Android arm Related to ARM architecture question widevine Related to Widevine DRM
Projects
None yet
Development

No branches or pull requests

6 participants