[Galaxy Tab 8.9 Android Development] jolinnard:
I was trying to build only framework with mmma but, as I said, I don't have the enough experience building ROMs and probably my local_manifest doesn't include all the right repos... Here is my first try:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- add github as a remote source -->
<remote name="github" fetch="git://github.com" />

<project name="Decatf/android_vendor_samsung_p4wifi" path="vendor/samsung/p4wifi" remote="github" revision="aosp-6.0" />
<project name="Decatf/android_vendor_samsung_p4" path="vendor/samsung/p4" remote="github" revision="aosp-6.0" />
<project name="Decatf/android_vendor_decatf" path="vendor/decatf" remote="github" revision="aosp-6.0" />
<project name="Decatf/android-vendor-sabermod" path="vendor/sabermod" remote="github" revision="p4" />
<project name="Decatf/android_kernel_samsung_p4" path="kernel/samsung/p4" remote="github" revision="aosp-mm-dev" />
<project name="Decatf/android_device_samsung_p4-common" path="device/samsung/p4-common" remote="github" revision="aosp-6.0" />
<project name="Decatf/android_device_samsung_p4wifi" path="device/samsung/p4wifi" remote="github" revision="aosp-marshmallow" />
<project name="Decatf/android_device_samsung_p4" path="device/samsung/p4" remote="github" revision="aosp-marshmallow" />
<!-- <project name="Decatf/android-audio-wrapper" path="audio/wrapper" remote="github" revision="android-5.0" /> -->
<remove-project name="platform/hardware/libhardware" />
<project name="Decatf/platform_hardware_libhardware" path="hardware/libhardware" remote="github" revision="aosp-5.1.0-p4" />
<remove-project name="platform/frameworks/opt/telephony" />
<project name="Decatf/android_frameworks_opt_telephony" path="frameworks/opt/telephony" remote="github" revision="aosp-6.0.1" />
<remove-project name="platform/frameworks/opt/net/wifi" />
<project name="Decatf/android_frameworks_opt_net_wifi" path="frameworks/opt/net/wifi" remote="github" revision="aosp-6.0" />
<remove-project name="platform/frameworks/native" />
<project name="Decatf/platform_frameworks_native" path="frameworks/native" remote="github" revision="aosp-6.0" />
<remove-project name="platform/system/core" />
<project name="Decatf/platform_system_core" path="system/core" remote="github" revision="aosp-6.0" />
<remove-project name="platform/hardware/libhardware_legacy" />
<project name="Decatf/platform_hardware_libhardware_legacy" path="hardware/libhardware_legacy" remote="github" revision="aosp-6.0" />
<remove-project name="platform/frameworks/ex" />
<project name="Decatf/android_frameworks_ex" path="frameworks/ex" remote="github" revision="aosp-6.0" />
<remove-project name="platform/frameworks/av" />
<project name="Decatf/platform_frameworks_av" path="frameworks/av" remote="github" revision="aosp-6.0" />
<remove-project name="platform/bionic" />
<project name="Decatf/platform_bionic" path="bionic" remote="github" revision="aosp-6.0" />
<remove-project name="platform/build" />
<project name="Decatf/platform_build" path="build" remote="github" revision="aosp-6.0-test" />
</manifest>

Errors:

device/samsung/p4-common/overlay/frameworks/base/core/res/res/values/config.xml:221: error: Resource at config_forceAnalogDeskDock appears in overlay but not in the base package; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:20: error: Resource does not already exist in overlay at 'config_disabledComponents'; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:21: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:22: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:23: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:24: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:25: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:26: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:27: error: Resource at config_disabledComponents appears in overlay but not in the base package; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:31: error: Resource does not already exist in overlay at 'config_forceEnabledComponents'; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:32: error: Resource at config_forceEnabledComponents appears in overlay but not in the base package; use <add-resource> to add.

vendor/decatf/overlay/common/frameworks/base/core/res/res/values/config.xml:33: error: Resource at config_forceEnabledComponents appears in overlay but not in the base package; use <add-resource> to add.

make: *** [/home/figue/android/android/aosp/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `/home/figue/android/android/aosp/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
make: Leaving directory `/home/figue/android/android/aosp'