简体   繁体   English

如何在Android上实现OMA前向锁定?

[英]How to implement OMA forward lock on Android?

I'm working on an application that requires support for forward locking of media files on Android (1.6 and above). 我正在开发一个需要支持Android(1.6及更高版本)媒体文件的前向锁定的应用程序。 Of course, there appears to be no documentation in the APIs on how this might work. 当然,API中似乎没有关于如何工作的文档。

The two questions I have are firstly whether forward locking is supported on Android (and in which versions of the platform) and secondly how to implement it in a program that, for example, downloads DRMed ringtones and wallpapers. 我有两个问题,首先是Android是否支持前向锁定(以及该平台的哪个版本),其次是如何在例如下载DRMed铃声和壁纸的程序中实现该功能。

Android isn't that big on DRM, because of the open source heritage of the product. 由于产品的开源传统,Android在DRM方面的优势并不大。 I think you'll have to implement any DRM solution yourself. 我认为您必须自己实施任何DRM解决方案。

Forward lock means that your application offers no way to use protected content on other devices. 转发锁定意味着您的应用程序无法在其他设备上使用受保护的内容。 Literally this means that your application must not have functionality for forwarding (sending) protected content to other devices or for writing to a file system or something else like that. 从字面上看,这意味着您的应用程序不得具有将受保护的内容转发(发送)到其他设备或写入文件系统或类似功能的功能。 For an open platform like Android that as well might require encrypting/obfuscating your applications content store to prevent access from other apps or from a USB-connected host computer. 对于像Android这样的开放平台,也可能需要对应用程序内容存储库进行加密/模糊处理,以防止来自其他应用程序或来自USB连接的主机的访问。

A forward lock is identified by a flag in the media metadata (format is media-dependent IMHO). 转发锁定由媒体元数据中的标志标识(格式是与媒体相关的IMHO)。 The content is not encrypted. 内容未加密。 Thus a forward lock is a simple check per content item to disable forwarding functionality as needed. 因此,转发锁定是对每个内容项的简单检查,可以根据需要禁用转发功能。

The whole concept came from and worked with closed embedded devices (like typical mobile phones 5 years ago) and sounds strange with open platforms like Android. 整个概念来自封闭式嵌入式设备(如5年前的典型手机)并与之配合使用,在开放式平台(如Android)中听起来很奇怪。

You have to ensure the applications which may want to transfer content to another device via bluetooth etc dont get the permission to transfer it. 您必须确保可能希望通过蓝牙等将内容传输到另一台设备的应用程序没有获得传输它的许可。

OMA has defined how forward lock works. OMA定义了前向锁定的工作方式。 Hence that way you are sure of what has to be done. 因此,您可以确定必须执行的操作。 You have to check the header information of the content to get information on whether it has to be forward locked or not. 您必须检查内容的标题信息,以获取有关是否必须将其向前锁定的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM