Android Compilation & use emulator:
=======================
source build/envsetup.sh
lunch sdk-eng
make sdk
This will build the android code.
We can use emulator to test the compiled code.
mksdcard -l sdjb 256M sdjb.img
emulator -sdcard sdjb.img
This code launches the emulator.Emulator makes use of system.img. System.img is nothing but the compressed format of output system folder
binaries.
If we are pushing any data to sdcard
Push data to sdcard:
adb push test.3gp /sdcard
copy data from sdcard to current folder:
adb pull /sdcard/test.3gp .
We can also use DDMS to copy file to/from device.
Afterwards, we can check gallery. It will list the sdcard in gallery and will show the copied test.3gp in gallery.By clicking it we can play the video. we can also see the logs using adb logcat command.
To compile module level code & use it in emulator follow below steps:
we can use
cd frameworks/av/media/libstagefright
touch AwesomePlayer.cpp
mm
This will generate the module level compilation.
After module level compilation to reflect in emulator's system.img
give
"make snod"
from android filesystem.
or
do the following:
cd frameworks/av/media/libstagefright
touch AwesomePlayer.cpp
mmm
mmm will compile the current directory code,dependency code and will update the system.img with modified binaries.
0 Comments:
Post a Comment
<< Home