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.