Do you have any further information in general about DRM implementation? The Android developer docs don't mention any DRM methods at all, nevertheless, when I google, I find these package and classes mentioned a lot:
android.drm.mobile1.DrmConstraintInfo android.drm.mobile1.DrmException android.drm.mobile1.DrmRawContent android.drm.mobile1.DrmRights android.drm.mobile1.DrmRightsManager But there's no information on how to make use of them. Are they not meant for public use? I also looked for third party commercial libs and found http://www.discretix.com/PDF/Discretix_DRM.pdf http://www.irdeto.com/documents/HL_CW_OMA_DRM_Android_EN_H.pdf Does anbody have experience with those on Android? On Oct 11, 8:10 pm, ferr <ferdi.nina...@gmail.com> wrote: > Dear All, > > We are having trouble in usingDRMforward 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en