1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/camera/update.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +# Usage: ./update.sh <android_ics_os_src_directory> 1.5 +# 1.6 +# Copies the needed files from the directory containing the original 1.7 +# Android ICS OS source and applies the B2G specific changes for the 1.8 +# camcorder functionality in B2G. 1.9 +cp $1/frameworks/base/media/libmediaplayerservice/StagefrightRecorder.cpp ./GonkRecorder.cpp 1.10 +cp $1/frameworks/base/media/libmediaplayerservice/StagefrightRecorder.h ./GonkRecorder.h 1.11 +cp $1/frameworks/base/media/libstagefright/CameraSource.cpp ./GonkCameraSource.cpp 1.12 +cp $1/frameworks/base/include/media/stagefright/CameraSource.h ./GonkCameraSource.h 1.13 +cp $1/frameworks/base/media/libmedia/AudioParameter.cpp ./AudioParameter.cpp 1.14 +cp $1/frameworks/base/include/camera/Camera.h ./GonkCameraListener.h 1.15 +patch -p1 <update.patch 1.16 +# If you import CAF sources, you also need to apply update2.patch 1.17 +patch -p1 <update2.patch