本文介绍了如何在有根设备上访问第三方TvProvider?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是此问题的后续行动.

假设我有一个Android电视棒,我也是供应商.有第三方应用程序,例如Netflix,Prime等.我想访问通过 TvProvider ContentResolver 提供的频道.正如一条评论中指出的那样:

Let's assume I have an Android Tv stick, I also am the vendor. There are 3rd party apps like Netflix, Prime, etc. I want to access the channels provided via TvProvider or ContentResolver. As pointed out in one comment:

  1. 应用程序供应商使用与AOSP本身相同的密钥进行签名
  2. 将它们放在一个特殊的文件夹中-只有设备供应商可以这样做
  3. 或您,但仅在具有根权限的设备上

以上选项的可能性如何?

How are my possibilities for the options above?

推荐答案

使用建议的选项之一,您将能够使用 signature / signatureOrSystem 保护级别.我不知道具体细节,但我认为对于您可能使用的不同ROM,它们可能有所不同.您将能够以与在自己的应用程序中一样的方式从 TvProvider 检索数据-答案具有指向Android系统应用中示例的链接.

Using one of the proposed options you will be able to get all channels from the TvProvider inside the apps with signature /signatureOrSystem protection level. I don't know the specifics but I assume they may be different for different ROMs you may use. You will be able to retrieve the data from TvProvider the same way you are able to do it in your own app - this answer has links to examples from Android system app.

您将能够通过Rows 您自己的应用程序中的> leanback 库(我不知道它应该是启动器还是仅仅是应用程序).用户单击卡后,将进入提供内容的应用程序并在其中查看.您将无法在自己的应用程序内部观看视频,即使它是系统视频也是如此,因为您将不得不访问提供媒体的应用程序后端,并且该信息不会存储在 TvProvider .TvProvider内的媒体是指向另一个应用内的内容页面的简单链接.

You will be able to render Rows from the data via leanback library in your own app(I don't know whether it should be a launcher or just an app). After the user by clicking on a card will enter the app that provided the content and view it there. You will not be able to view the videos inside your own app even if it is a system one because you would have to have access to the backend of the app that provided the media and that information is not stored in the TvProvider. The media inside a TvProvider is rather a simple link to a content page inside the other app.

在线上有很多有关修改ROM​​,创建 signatureOrSystem 应用程序的信息,我无法潜水特定链接,因为我无法验证其有效性,因为我没有尝试使用进行此类操作TvProvider (具体说来)和一般的Android操作系统(除了root以及从设备供应商处拆卸和修改已经存在的应用程序-还在线提供了大量信息).

There is plenty of info online about modifying ROMs, creating signatureOrSystem apps I cannot dive a specific link because I cannot verify its validity, because I haven't tried to do such things with TvProvider in specifics and Android OS in general(except for the root and disassembling and modifying already existing apps from the device vendor - also plenty info online).

这篇关于如何在有根设备上访问第三方TvProvider?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 03:35