[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] BorkenStyler:
[MENTION=7112923]p.a.n[/MENTION]

Thank you for your help.

I created a textfile with the script from the google groups site. Rightlick on it and check the "Allow executing file as program" and now i can use "repo_patch" command.

After that i created a folder like this android/system/vendor/samsung/smdk4412-common/proprietary/sbin and a empty text file with the name "cbd"

I continued the step "./extract-files.sh" and followed the guide from there on.

Now i get this error:

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20160306-UNOFFICIAL-i9305
TARGET_PRODUCT=cm_i9305
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.2.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=MMB29U
OUT_DIR=/home/max/android/system/out
============================================
"ebtables is disabled on this build"
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
make: Entering directory `/home/max/android/system'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/SsbSipMfcApi.h'
PRODUCT_COPY_FILES device/samsung/smdk4412-common/rootdir/init.trace.rc:root/init.trace.rc ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/rootdir/ueventd.smdk4x12.rc:root/ueventd.smdk4x12.rc ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/configs/audio_effects.conf:system/etc/audio_effects.conf ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/configs/gps.conf:system/etc/gps.conf ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libfimc.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libfimc.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libfimg.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libfimg.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libhwconverter.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libhwconverter.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libhwjpeg.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libhwjpeg.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libUMP.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libUMP.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libTVOut.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libTVOut.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/etc/gps.conf'
build/core/Makefile:46: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/etc/gps.conf'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libril.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libril.so'
PRODUCT_COPY_FILES vendor/samsung/i9305/proprietary/system/lib/libsecnativefeature.so:system/lib/libsecnativefeature.so ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libsecril-client.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libsecril-client.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libloc_eng.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libloc_eng.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libgps.utils.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libgps.utils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/hw/gps.default.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/hw/gps.default.so'
PRODUCT_COPY_FILES vendor/samsung/i9305/proprietary/system/lib/libTVOut.so:system/lib/libTVOut.so ignored.
No private recovery resources for TARGET_DEVICE i9305
Install: /home/max/android/system/out/host/linux-x86/bin/mkbootfs
/home/max/android/system/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/max/android/system/out/target/product/i9305/obj/ETC/sepolicy_intermediates/policy.conf
target SharedLib: libc (/home/max/android/system/out/target/product/i9305/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so)
Install: /home/max/android/system/out/target/product/i9305/system/lib/libdl.so
device/samsung/smdk4412-common/selinux/macloader.te:6:ERROR 'unknown type efs_device_file' at token ';' on line 13859:
allow macloader efs_device_file:dir search;
allow macloader efs_file:dir search;
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/max/android/system/out/target/product/i9305/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/max/android/system'

#### make failed to build some targets (32 seconds) ####

I would love to get this to work but it may be out of my league.