[Galaxy S Plus I9001 Android Development] broodplank1337:
I'm going to work on the bugs now, I'm doing a massive cleaning action first, since the repo's got to messy. I use:

1. CM9 Build Environment with framework_base of Arco & Device/Vendor repo's from Ivendor (To compile CM9 to get the needed building cache)

2. Then I download the AOSP Apps & Framework with this script (4.0.4-r2.1):

#!/bin/sh

mkdir frameworks && cd frameworks
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/frameworks/base
cd .. && mkdir apps
cd apps
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/BasicSmsReceiver
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Bluetooth
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Browser
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Calculator
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Calendar
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Camera
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/CellBroadcastReceiver
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/CertInstaller
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Contacts
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/DeskClock
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Email
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Exchange
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Gallery
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Gallery2
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/HTMLViewer
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/KeyChain
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Launcher2
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Mms
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Music
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/MusicFX
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Nfc
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/PackageInstaller
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Phone
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Protips
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Provision
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/QuickSearchBox
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Settings
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/SoundRecorder
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/SpareParts
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/SpeechRecorder
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Stk
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/Tag
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/VideoEditor
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/apps/VoiceDialer
cd ..
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/experimental
mkdir inputmethods
cd inputmethods
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/inputmethods/LatinIME
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/inputmethods/OpenWnn
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/inputmethods/PinyinIME
cd .. && mkdir providers
cd providers
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/providers/ApplicationsProvider
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/providers/CalendarProvider
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/providers/ContactsProvider
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/providers/DownloadProvider
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/providers/DrmProvider
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/providers/GoogleContactsProvider
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/providers/MediaProvider
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/providers/TelephonyProvider
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/providers/UserDictionaryProvider
cd .. && mkdir wallpapers
cd providers
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/wallpapers/Basic
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/wallpapers/Galaxy4
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/wallpapers/HoloSpiral
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/wallpapers/LivePicker
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/wallpapers/MagicSmoke
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/wallpapers/MusicVisualization
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/wallpapers/NoiseField
git clone -b android-4.0.4_r2.1 https://android.googlesource.com/platform/packages/wallpapers/PhaseBeam
cd ..

4. Move all the contents from the CM9 packages dir (~/CM9/packages/) to a temp folder and place all the content from aosp in there

5. For the framework it's not the same, only move: /frameworks/base/packages to CM9 dir. not the rest. (I just compare the AOSP and CM9 one and try to downgrade the CM9 framework as much as possible.)

5. You compiled CM9 earlier with an successful output, that's why you can NEVER do "make clean" now. otherwise you can't build aosp.

6. Go to out/target/product/ariesve/obj/APPS and delete everything in there

7. Go to out/target/common/obj/APPS also delete everything here. (not 100% sure atm since i deleted everything, will report later if it's true)

8. Go to out/target/product/ariesve/system and delete everything in there

9.

make -k -j8

(optionally -i)

or

make -k Appname -j8

(and that for all apps)

10. Also I use the original AOSP build dir to make the base files (build.prop /etc /media /fonts

(this is a small version of the tutorial, a more extended one will come soon)

BTW THE SCRIPT I POSTED EARLIER DOWNLOADS JB APPS, SO DON't USE IT! IT'S INVALID