SamsungDForum / JuvoPlayer

The reference for developers of streaming live TV and VOD Tizen .Net applications.
Other
52 stars 23 forks source link

Application refers a forbidden assembly directly #6

Closed tiagommferreira closed 1 year ago

tiagommferreira commented 4 years ago

When launching the UI Applications on a 2019 Samsung SmartTV, I'm getting the following errors:

[FAIL] SimplePlayer.Tizen.TV.dll refers a forbidden assembly directly - Xamarin.Forms.Core :(

[FAIL] JuvoPlayer.Xamarin.Tizen.TV.dll refers a forbidden assembly directly - Xamarin.Forms.Platform.Tizen :(

[FAIL] JuvoPlayerOpenGLNative.Tizen.TV.dll refers a forbidden assembly directly - JuvoPlayer :(

Launching the ReactNative one just shows a black screen.

Additional information: Model Number: QE49Q67RATXXC Sofware Version: T-MSMDEUC-1315.4, B6912200/050204, BT-S

pbsamsung commented 4 years ago

Hello, For the moment there are only two options to launch the JuvoPlayer based applications successfully: 1) on the TV Emulator provided by the Tizen Tools package. It should just work with no more actions. 2) on a TV set if the particular unit DUID has been notified to Samsung. In this case You need to work for Samsung Partner Company. First contact local Content Manager and ask to be a Partner developer (You can use Samsung Seller Office site for that). Then the Partner developer can get information how to switch off the security verification mechanism (forbidden library message). Regards, Pawel

TobiStr commented 4 years ago

Hello,

I am trying to develop a xamarin app for tizen TV and get the same message by just using the template for tizen tv 5.0 xamarin apps:

[FAIL] APPNAME.Tizen.TV.dll refers a forbidden assembly directly - Xamarin.Forms.Platform.Tizen :(

I've seen that the namespaces have changed, but updating the nuget packages and adapting to them didn't solve this error.

Furthermore my emulator doesn't work either, so i have no chance to see any results. Visual Studio always gives me the error:

Error while trying to enter break state. Debuggiing will now stop. Failed to find thread xxxx for break event.

polboo commented 4 years ago

Hello,

I am trying to develop a xamarin app for tizen TV and get the same message by just using the template for tizen tv 5.0 xamarin apps:

[FAIL] APPNAME.Tizen.TV.dll refers a forbidden assembly directly - Xamarin.Forms.Platform.Tizen :( [pbsamsung] It looks like the 'security policy checker' block's You app. Please, report it on TV Apps seller office site to make sure. If Samsung provides You with the signature files for your TV unit this issue will gone.

pbsamsung commented 4 years ago

Hello,

I am trying to develop a xamarin app for tizen TV and get the same message by just using the template for tizen tv 5.0 xamarin apps:

[FAIL] APPNAME.Tizen.TV.dll refers a forbidden assembly directly - Xamarin.Forms.Platform.Tizen :(

I've seen that the namespaces have changed, but updating the nuget packages and adapting to them didn't solve this error.

Furthermore my emulator doesn't work either, so i have no chance to see any results. Visual Studio always gives me the error:

Error while trying to enter break state. Debuggiing will now stop. Failed to find thread xxxx for break event.

[pbsamsung] 1) Make sure the version of the emulator is 'Tizen Studio for 5.0'. It was tested on the SDK version: 3.2, Package version 2.8.0.23, Build date 2019-05-15 06:24:01 IST. 2) I have noticed that on some PC's the default TV emulator's VM needs to be deleted and crated again with the Tizen Studio Emulator tool. Please, try it too. 3) The debug mode launching may not work as intended. Please, launch it in release mode (ctrl+F5) ans see if it works for You.

pbsamsung commented 4 years ago

Hi, For the Visual Studio 2019 You need to make sure that the installed Tizen.NET.Sdk nuget version is not lower than 1.0.8. In case JuvoPlayer we are still using VS 2017 or VS Code and it is based on Tizen.NET.Sdk 1.0.1 version.

TobiStr commented 4 years ago

Thank you very much! Both problems were solved!

These were the steps i did:

  1. Updated the first line in both .csproj-Files (APPNAME and APPNAME.Tizen.TV) from

Project Sdk="Tizen.NET.Sdk/1.0.3">

to

Project Sdk="Tizen.NET.Sdk/1.0.8">

  1. Updated the nuget packages to the latest version.
  2. Changed the Init call in the Main-Method from: global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);

to

Xamarin.Forms.Forms.Init(app);

  1. Recreated the TV Emulator like in your 2. point.

Btw Debug Mode works fine for me. I am using Visual Studio 2019 on Windows 10.

pbsamsung commented 4 years ago

You're welcome. Good luck in Your next Tizen .NET apps development steps Tobias!

pbsamsung commented 4 years ago

When launching the UI Applications on a 2019 Samsung SmartTV, I'm getting the following errors:

[FAIL] SimplePlayer.Tizen.TV.dll refers a forbidden assembly directly - Xamarin.Forms.Core :(

[FAIL] JuvoPlayer.Xamarin.Tizen.TV.dll refers a forbidden assembly directly - Xamarin.Forms.Platform.Tizen :(

[FAIL] JuvoPlayerOpenGLNative.Tizen.TV.dll refers a forbidden assembly directly - JuvoPlayer :(

Launching the ReactNative one just shows a black screen.

Additional information: Model Number: QE49Q67RATXXC Sofware Version: T-MSMDEUC-1315.4, B6912200/050204, BT-S

Hello Tiago, Please, verify if the solution that worked out for Tobias does solve the issue on Your side. If so Than I'd like to close this thread. Regards, Pawel

AliDem commented 4 years ago

Do you have any suggestion for SkiaSharp?

I'm using version mentioned in JuvoPlayer (1.60 with and without token) App signed with my partner privilege certificate, and unsuccess.

App wont to start.

Thank you:)

ppaneksamsung commented 4 years ago

Do you have any suggestion for SkiaSharp?

Would you like to use SkiaSharp in Xamarin.Forms application? Tizen 5.5 supports 1.60.3 version, however there are some things to mention:

If above tips don't help, please prepare a minimal sample application which shows the problem and share it with us. We will debug it on our side.

AliDem commented 4 years ago

Thank you for you answer, And is it supported by previous versions of tizen (4.0-5.0)?

ppaneksamsung commented 4 years ago

Sorry fot late response,

SkiaSharp is not supported on Tizen 4.0. Only Tizen 5.0 and 5.5 supports it.

FernetMenta commented 4 years ago

Then the Partner developer can get information how to switch off the security verification mechanism

@pbsamsung could yo please elaborate on this process? I am partner developer and get this forbidden message.

pbsamsung commented 4 years ago

Hello FernetMenta, What is the actual error message that You've got? If the recovery steps above didn't help You it may be a different problem. Please, let me know.

However, if You need to switch off the .dll files signing verification (only for development purpose) it is possible. First, You need to contact the Samsung Content Manager that is in charge of Your Partner agreement (contract). Usually it is a person working in local Samsung Office in Your Country of residence. It should be possible to find him out over the Samsung Seller Office site (https://seller.samsungapps.com/tv/assistance/csportal/list). If You provide me Your Seller Office user name (or an application name uploaded out there) I can help with this.

FernetMenta commented 4 years ago

What is the actual error message that You've got?

SkiaSharp.Views.Tizen.dll refers to a forbidden assembly directly: libgGLESv2.so

image

pbsamsung commented 4 years ago

I seems that you will be needing the additional certificate for solving the problem. Please, let me know Your Seller Office user or/and company name. At least region (country) that Your App is going to be launched will be necessary. It is required to catch You on the Samsung Seller Office site.

FernetMenta commented 4 years ago

Please, let me know Your Seller Office user

user: rainer.hochecker@gmail.com group rhocheck in Germany

pbsamsung commented 4 years ago

Thank You. I'll let You know the result and the next steps as soon as possible. This process usually takes several days.

Gabriela-C commented 4 years ago

Hello eveyone. I'm a Tizen developer and I cannot run my application on the emulator TV. I got the next error: [Fail] Tizen.TV.Security.dll refers a forbidden assembly directly -securestorage-client

image

I'm working with Visual studio 2017. I'm developing a NUI application

Regards.

ppaneksamsung commented 4 years ago

Hello,

I'm a Tizen developer and I cannot run my application on the emulator TV. I got the next error: [Fail] Tizen.TV.Security.dll refers a forbidden assembly directly -securestorage-client

I cannot reproduce your problem, but I have a few questions:

Gabriela-C commented 4 years ago

Thank you very much @ppaneksamsung I added the tag 'ExcludeAssets' and it works, thank you for your help =)

pbsamsung commented 4 years ago

Dear All,

This is just a kind reminder that all the requests for switching-off the security checkup for development purposes requires Partnership relation with Samsung. See the official 'How to become a partner' guide on https://developer.samsung.com/smarttv/develop/distribute/seller-office/membership/partnership-request.html page. Without positive cross checking on https://seller.samsungapps.com/tv/ with a Content Manager in charge, we can't support You in this filed.

Best Regards, JuvoPlayer Team

aisgdevteam commented 4 years ago

Hi @pbsamsung I got error when I run on TV "SkiaSharp.Views.Tizenn.dll refers a forbideden assembly directly - libglesv2.so" Do you have any suggestion for SkiaSharp?

pbsamsung commented 4 years ago

Hi @aisgdevteam Please, let me know your username at the https://seller.samsungapps.com/tv/ to help me in the cross-check with the CM in charge of Your region.

aisgdevteam commented 4 years ago

Hi @aisgdevteam Please, let me know your username at the https://seller.samsungapps.com/tv/ to help me in the cross-check with the CM in charge of Your region.

we're developing app. my account bussiness: aisg.devteam@gmail.com group: SaiGonGroup Group Additional information: Model Number: UA43T6000AKXXV Sofware Version: T-KTS2UABC-1113.8

pbsamsung commented 4 years ago

Hi @aisgdevteam Please, let me know your username at the https://seller.samsungapps.com/tv/ to help me in the cross-check with the CM in charge of Your region.

we're developing app. my account bussiness: aisg.devteam@gmail.com group: SaiGonGroup Group Additional information: Model Number: UA43T6000AKXXV Sofware Version: T-KTS2UABC-1113.8

Hello, I'm sorry but I was not able to match your contact details with the Samsung seller office site. Please, create a ticket (1:1 Q&A) out there containing an ask for contact in it's body'. I believe it is enough to write just : 'I need to contact regarding the JuvoPlayer project. See https://github.com/SamsungDForum/JuvoPlayer/issues/6#issuecomment-636711490 for details.' With that comment somebody from the Samsung apps support should react. If You have any other smart TV application uploaded to the seller office, please give the name of it. That also could help us.

aisgdevteam commented 4 years ago

Hi @aisgdevteam Please, let me know your username at the https://seller.samsungapps.com/tv/ to help me in the cross-check with the CM in charge of Your region.

we're developing app. my account bussiness: aisg.devteam@gmail.com group: SaiGonGroup Group Additional information: Model Number: UA43T6000AKXXV Sofware Version: T-KTS2UABC-1113.8

Hello, I'm sorry but I was not able to match your contact details with the Samsung seller office site. Please, create a ticket (1:1 Q&A) out there containing an ask for contact in it's body'. I believe it is enough to write just : 'I need to contact regarding the JuvoPlayer project. See #6 (comment) for details.' With that comment somebody from the Samsung apps support should react. If You have any other smart TV application uploaded to the seller office, please give the name of it. That also could help us.

Hi @pbsamsung , My account thachnn6@fpt.com.vn is approved partnership. But I still got message "SkiaSharp.Views.Tizenn.dll refers a forbideden assembly directly - libglesv2.so" on TV when Ctrl + F5 test on TV and I got message "reason: Author certificate not match" at Output in Visual.

pbsamsung commented 4 years ago

Hello thachnn6@fpt.com.vn, I was trying to find out the following users/groups at the Seller Office Site: SaiGonGroup, thachnn6@fpt.com.vn, aisg.devteam@gmail.com. Unfortunatelly with no succes. Please register a 1:1 gestion on https://seller.samsungapps.com/tv/assistance/csportal/create# (category Tizen->Others). Title it as 'JuvoPlayer Tizen dot net developer signature files'. In the 'Device Where Found' box enter the TV set details (model, DUID etc.) With the above it should be possible to help You over the Seller Office portal.

AliDem commented 3 years ago

I also have the partnership and I have the same problem. newer versions of xamarin.forms are no longer supported, we need to edit the source code of "Xamarin.Forms.Platform.Tizen" and downgrade the version of SkiaSharp to 1.60.3 again.

All seem to be ok, but I still get an error when using the mentioned version of the SkiaSharp.Views.Tizen library. "SkiaSharp.Views.Tizen.dll directly refers to a forbidden assembly: libgGLESv2.so"

And I have no certificate error, I have another application with which I use SkiaSharp for some tasks without using this library and everything works fine if we stick with the old versions of Xamarin. Too bad.

Thank you:)

ranvirsingh commented 3 years ago

I also have the partnership and I have the same problem. newer versions of xamarin.forms are no longer supported, we need to edit the source code of "Xamarin.Forms.Platform.Tizen" and downgrade the version of SkiaSharp to 1.60.3 again.

All seem to be ok, but I still get an error when using the mentioned version of the SkiaSharp.Views.Tizen library. "SkiaSharp.Views.Tizen.dll directly refers to a forbidden assembly: libgGLESv2.so"

And I have no certificate error, I have another application with which I use SkiaSharp for some tasks without using this library and everything works fine if we stick with the old versions of Xamarin. Too bad.

Thank you:)

Was this resolved by any means?

ppaneksamsung commented 3 years ago

@ranvirsingh,

Could you share some details about your environment, like TV model, packages versions (Xamarin.Forms, SkiaSharp, SkiaSharp.Views, SkiaSharp.Views.Forms)? If possible, could you prepare a sample application for reproduction? As far as I understand:

Is it correct?

ranvirsingh commented 3 years ago

@ppaneksamsung No I am not a Samsung partner, just an independent developer hobbyist wanted to develop Tizen TV applications. No 'partner' certificates. No additional security certificates. Do I need all these to develop and make apps available on Samsung TV store? I will try prepare a minimalistic app to share, if needed.

ppaneksamsung commented 3 years ago

@ranvirsingh,

Do I need all these to develop and make apps available on Samsung TV store?

Basically, yes. Here you can find more information about the process: https://developer.samsung.com/smarttv/develop/distribute/seller-office/membership/becoming-partner.html

@pbsamsung may assist you in case of any problems.

And regarding this security mechanism, which prevents to launch an application if it loads any plaform libraries directly - Tizen TVs 2021 (and later) don't have it. If you own the latest Tizen TV model, then you don't need any agreement with Samsung to develop and test your app on your local TV, if it refers to any forbidden dlls. You still need to be a partner if you want to submit an app to Samsung TV store, but at least you can verify Tizen TV .NET environment on your own. Additionally, you can choose any SkiaSharp version on Tizen TVs 2021. Previous models forced developers to stick with SkiaSharp 1.60.3.

Preclikos commented 3 years ago

Hello, i read all post here and finish i basicali if i have 2 TV model 2019 and 2020 still need to be partner to can develop/debug app based on JuvoPlayer for this models? If i buy newer TV model 2021 ( can develop/debug without problems/restrictions ) need to be partner only for app Release?

ppaneksamsung commented 3 years ago

That's basically correct, however currently we investigate one issue related to DRMs on some 2021 models, more on this is here: https://github.com/flutter-tizen/flutter-tizen/issues/217

Preclikos commented 3 years ago

Thx for fast reply

i dont use DRM :) in my case maybe only need clean it from solution :/ I will try the way with partner ship and features unlock actually wait for partner response in my region => sorry i have frustration from this process no or slow responses on 1:1 and other threads or Q&A etc...