[Android Software/Hacking General [Developers Only]] thenameisnigel:
Okay, I have some errors in the build. I thought I could fix them by pulling the .so it can't build from another device, and when I do that, it deletes it and tries to rebuild it.

target SharedLib: libOMX.SEC.AVC.Decoder (out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Decoder_intermediates/LINKED/libOMX.SEC.AVC.Decoder.so)

target SharedLib: libOMX.SEC.AVC.Encoder (out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Encoder_intermediates/LINKED/libOMX.SEC.AVC.Encoder.so)

target SharedLib: libOMX.SEC.M4V.Decoder (out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/LINKED/libOMX.SEC.M4V.Decoder.so)

/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/SEC_OMX_Mpeg4dec.o: in function SEC_MFC_Mpeg4_Decode_Nonblock:hardware/samsung/exynos/multimedia/openmax/component/video/dec/mpeg4/SEC_OMX_Mpeg4dec.c:1462: error: undefined reference to 'SEC_OSAL_UnlockANB'

/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/SEC_OMX_Mpeg4dec.o: in function SEC_MFC_Mpeg4_Decode_Nonblock:hardware/samsung/exynos/multimedia/openmax/component/video/dec/mpeg4/SEC_OMX_Mpeg4dec.c:1386: error: undefined reference to 'SEC_OSAL_LockANB'

/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/SEC_OMX_Mpeg4dec.o: in function SEC_MFC_Mpeg4_Decode_Block:hardware/samsung/exynos/multimedia/openmax/component/video/dec/mpeg4/SEC_OMX_Mpeg4dec.c:1655: error: undefined reference to 'SEC_OSAL_LockANB'

/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/SEC_OMX_Mpeg4dec.o: in function SEC_MFC_Mpeg4_Decode_Block:hardware/samsung/exynos/multimedia/openmax/component/video/dec/mpeg4/SEC_OMX_Mpeg4dec.c:1732: error: undefined reference to 'SEC_OSAL_UnlockANB'

/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/STATIC_LIBRARIES/libSEC_OMX_Vdec_intermediates/libSEC_OMX_Vdec.a(SEC_OMX_Vdec.o): in function SEC_OMX_VideoDecodeGetParameter:hardware/samsung/exynos/multimedia/openmax/component/video/dec/SEC_OMX_Vdec.c:1087: error: undefined reference to 'SEC_OSAL_GetANBParameter'

/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/STATIC_LIBRARIES/libSEC_OMX_Vdec_intermediates/libSEC_OMX_Vdec.a(SEC_OMX_Vdec.o): in function SEC_OMX_VideoDecodeSetParameter:hardware/samsung/exynos/multimedia/openmax/component/video/dec/SEC_OMX_Vdec.c:1173: error: undefined reference to 'SEC_OSAL_SetANBParameter'

collect2: ld returned 1 exit status

make: *** [out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/LINKED/libOMX.SEC.M4V.Decoder.so] Error 1

make: *** Waiting for unfinished jobs....

/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Decoder_intermediates/SEC_OMX_H264dec.o: in function SEC_MFC_H264_Decode_Nonblock:hardware/samsung/exynos/multimedia/openmax/component/video/dec/h264/SEC_OMX_H264dec.c:1467: error: undefined reference to 'SEC_OSAL_UnlockANB'

/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Decoder_intermediates/SEC_OMX_H264dec.o: in function SEC_MFC_H264_Decode_Nonblock:hardware/samsung/exynos/multimedia/openmax/component/video/dec/h264/SEC_OMX_H264dec.c:1373: error: undefined reference to 'SEC_OSAL_LockANB'

/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Decoder_intermediates/SEC_OMX_H264dec.o: in function SEC_MFC_H264_Decode_Block:hardware/samsung/exynos/multimedia/openmax//component/video/dec/homeh264//thenameisnigelSEC_OMX_H264dec.c/:aosp1681/:prebuilts /errorgcc:/ linuxundefined- x86reference/ armto/ arm'-SEC_OSAL_LockANBlinux'-

androideabi/-home4.6//thenameisnigelbin//aosp./.prebuilts//libgcc//gcclinux/-armx86-/linuxarm-/androideabiarm/-4.6.xlinux--googleandroideabi/-.4.6.//bin./../../.lib//.gcc.//armarm--linuxlinux--androideabiandroideabi//4.6.xbin-/googleld/:. .out//.target.//product./.d710//.obj.//STATIC_LIBRARIESarm/-libSEC_OMX_Venc_intermediateslinux/-libSEC_OMX_Venc.aandroideabi(/SEC_OMX_Venc.obin)/:ld :in outfunction/ targetSEC_Preprocessor_InputData/:producthardware//d710samsung//objexynos//SHARED_LIBRARIESmultimedia//libOMX.SEC.AVC.Decoder_intermediatesopenmax//SEC_OMX_H264dec.ocomponent:/ videoin/ encfunction/ SEC_OMX_Venc.cSEC_MFC_H264_Decode_Block::805hardware:/ samsungerror/:exynos /undefinedmultimedia /referenceopenmax /tocomponent /'videoSEC_OSAL_GetInfoFromMetaData/'dec

//h264home//SEC_OMX_H264dec.cthenameisnigel:/1758aosp:/ prebuiltserror/:gcc /undefinedlinux -referencex86 /toarm /'armSEC_OSAL_UnlockANB-'linux

-/androideabihome-/4.6thenameisnigel//binaosp//.prebuilts.//gcclib//linuxgcc-/x86arm/-armlinux/-armandroideabi-/linux4.6.x--androideabigoogle-/4.6./.bin//....//.lib.//gcc./.arm/-armlinux--linuxandroideabi-/androideabi4.6.x/-bingoogle//ld.:. /out./.target//.product.//d710./.obj//armSTATIC_LIBRARIES-/linuxlibSEC_OMX_Venc_intermediates-/androideabilibSEC_OMX_Venc.a/(binSEC_OMX_Venc.o/)ld:: inout /functiontarget /SEC_Preprocessor_InputDataproduct:/hardwared710//samsungobj//exynosSTATIC_LIBRARIES//multimedialibSEC_OMX_Vdec_intermediates//openmaxlibSEC_OMX_Vdec.a/(componentSEC_OMX_Vdec.o/)video:/ encin/ SEC_OMX_Venc.cfunction: 806SEC_OMX_VideoDecodeGetParameter:: hardwareerror/:samsung /undefinedexynos /referencemultimedia /toopenmax /'componentSEC_OSAL_LockANBHandle/'video

//dechome//SEC_OMX_Vdec.cthenameisnigel:/1087aosp:/ prebuiltserror/:gcc /undefinedlinux -referencex86 /toarm /'armSEC_OSAL_GetANBParameter-'linux

-/androideabihome-/4.6thenameisnigel//binaosp//.prebuilts.//gcclib//linuxgcc-/x86arm/-armlinux/-armandroideabi-/linux4.6.x--androideabigoogle-/4.6./.bin//....//.lib.//gcc./.arm/-armlinux--linuxandroideabi-/androideabi4.6.x/-bingoogle//ld.:. /out./.target//.product.//d710./.obj//armSTATIC_LIBRARIES-/linuxlibSEC_OMX_Venc_intermediates-/androideabilibSEC_OMX_Venc.a/(binSEC_OMX_Venc.o/)ld:: inout /functiontarget /SEC_Preprocessor_InputDataproduct:/hardwared710//samsungobj//exynosSTATIC_LIBRARIES//multimedialibSEC_OMX_Vdec_intermediates//openmaxlibSEC_OMX_Vdec.a/(componentSEC_OMX_Vdec.o/)video:/ encin/ SEC_OMX_Venc.cfunction: 812SEC_OMX_VideoDecodeSetParameter:: hardwareerror/:samsung /undefinedexynos /referencemultimedia /toopenmax /'componentSEC_OSAL_UnlockANBHandle/'video

//dechome//SEC_OMX_Vdec.cthenameisnigel:/1173aosp:/ prebuiltserror/:gcc /undefinedlinux -referencex86 /toarm /'armSEC_OSAL_SetANBParameter-'linux

-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/collect2: ../..ld returned 1 exit status/

../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/STATIC_LIBRARIES/libSEC_OMX_Venc_intermediates/libSEC_OMX_Venc.a(SEC_OMX_Venc.o): in function SEC_OMX_VideoEncodeSetParameter:hardware/samsung/exynos/multimedia/openmax/component/video/enc/SEC_OMX_Venc.c:1408: error: undefined reference to 'SEC_OSAL_SetANBParameter'

make: *** [out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Decoder_intermediates/LINKED/libOMX.SEC.AVC.Decoder.so] Error 1

collect2: ld returned 1 exit status

make: *** [out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Encoder_intermediates/LINKED/libOMX.SEC.AVC.Encoder.so] Error 1

libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area

aapt: warning: string 'gsm_alphabet_default_charset' has no default translation in frameworks/base/core/res/res; found: ko

thenameisnigel@icebox:~/aosp$

Please help. :|