Dear All,
We are having trouble in using DRM forward lock. Here is what we did:
1. send a *.dm file through a bluetooth
2. the android phone 'magically' converts it to *.dcf
3. we try to use android.drm.mobile1 to open the content, using the
following code:
is = new FileInputStream("somefile.dcf");
DrmRawContent drc = new DrmRawContent(is, (int) is.available(),
DrmRawContent.DRM_MIMETYPE_CONTENT_STRING);
DrmRightsManager drm_manager = DrmRightsManager.getInstance();
DrmRights rights = drm_manager.queryRights(drc);
//try to install rights
if (null == rights) {
rights = drm_manager.installRights(is, (int) is.available(),
DrmRawContent.DRM_MIMETYPE_MESSAGE_STRING);
}
//start
InputStream decrypted = drc.getContentInputStream(rights);
......
......
However, the decrypted content was unable to be read. Did we do
anything wrong in using the android.drm.mobile1 package functions?
Best,
Ferdi
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en