How does Android SDK support DRM 2.0?

97 views
Skip to first unread message

lhhanh83

unread,
Nov 18, 2009, 1:42:34 AM11/18/09
to android-platform
Dear all,

I have built Android SDK with the instructions in http://source.android.com/download.
Following are some notes regarding source code of android-sdk-1.5_r3:
(1) The source to the C part of the JNI code is located under:
frameworks/base/media/libdrm/mobile1/src/jni/drm1_jni.c
(2) The classes associated with the C code are located under:
frameworks/base/media/java/android/drm/mobile1/*.java

According to above key things, we need:
(1) A shared library, for example:
• libdrm1.so, libdrm1_jni.so: for DRM 1.0
• libdrm2.so, libdrm2_jni.so: for DRM 2.0
which contains a native methods and a special function JNI_Onload
(2) A "jar" file that contains the definition of the classes that can
be used when developing with the java library.
This file is referred from an android project as an external jar such
that classes and methods etc are resolved correctly.

But, after "make" command execution, we found that:
(1) The files include libdrm1.so; libdrm1_jni.so and associated
classes.jar are generated for DRM 1.0.
(2) The files include libdrm2.so; libdrm2_jni.so and associated
classes.jar are not generated for DRM 2.0.

So, we investigated the folder structure of source code and saw that:
(1) It has *.java for drm 1.0 but it is lack of *.java for drm 2.0.
frameworks/base/media/java/android/drm/mobile1/*.java: existed
frameworks/base/media/java/android/drm/mobile2/*.java: not existed
(2) It has JNI code for drm 1.0 but it is lack of JNI code for drm
2.0:
frameworks/base/media/libdrm/mobile1/src/jni/drm1_jni.c:
existed
frameworks/base/media/libdrm/mobile2/src/jni/: not existed
(3) When viewing Android.mk we saw that drm 1.0 is built to a
SHARED_LIBRARY, but drm 2.0 is built to a STATIC _LIBRARY.
frameworks/base/media/libdrm/mobile1/Android.mk: SHARED_LIBRARY
frameworks/base/media/libdrm/mobile2/Android.mk: STATIC_LIBRARY

Could you please to tell me how does Android support DRM 2.0? If I
want to develop DRM 2.0 in Android, what I need to do? Please help me!
I look forward to hearing from you!

Best regards,
Hanh Le.



Jean-Baptiste Queru

unread,
Nov 18, 2009, 8:47:23 AM11/18/09
to android-...@googlegroups.com
We don't accept contributions in cupcake/1.5, you should move ahead
all the way to the master branch.

JBQ
> --
>
> You received this message because you are subscribed to the Google Groups "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-platform?hl=.
>
>
>



--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.
Reply all
Reply to author
Forward
0 new messages