[Defy Android Development] YetAnotherForumUser:
With these patches the build now completes...

...but I have not tested the resulting build yet. For those impatient enough, here goes.

bootmenu:

project external/bootmenu/
diff --git a/Android.mk b/Android.mk
index 9a18e69..79363e5 100644
--- a/Android.mk
+++ b/Android.mk
@@ -75,6 +75,7 @@ LOCAL_CFLAGS += \

LOCAL_STATIC_LIBRARIES := libminui_bm libpixelflinger_static libpng libz libreboot
LOCAL_STATIC_LIBRARIES += libstdc++ libc libcutils
+LOCAL_STATIC_LIBRARIES += liblog

LOCAL_FORCE_STATIC_EXECUTABLE := true

busybox (patch only to be applied for building code while mktemp/mkstemp problem remains, this is not a 'real' solution to the problem):

project external/busybox/
diff --git a/Android.mk b/Android.mk
index 4b6ae8f..62c2a94 100644
--- a/Android.mk
+++ b/Android.mk
@@ -97,7 +97,6 @@ BUSYBOX_C_INCLUDES = \
$(BB_PATH)/android/librpc

BUSYBOX_CFLAGS = \
- -Werror=implicit \
-DNDEBUG \
-DANDROID \
-fno-strict-aliasing \

frameworks/av:

project frameworks/av/
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h
index 9f8446b..2d57032 100644
--- a/include/media/AudioTrack.h
+++ b/include/media/AudioTrack.h
@@ -176,6 +176,20 @@ public:
int notificationFrames = 0,
int sessionId = 0);

+#ifdef USE_KINETO_COMPATIBILITY
+ // DEPRECATED
+ explicit AudioTrack( int streamType,
+ uint32_t sampleRate = 0,
+ int format = AUDIO_FORMAT_DEFAULT,
+ int channelMask = 0,
+ int frameCount = 0,
+ uint32_t flags = (uint32_t) AUDIO_OUTPUT_FLAG_NONE,
+ callback_t cbf = 0,
+ void* user = 0,
+ int notificationFrames = 0,
+ int sessionId = 0);
+#endif
+
/* Creates an audio track and registers it with AudioFlinger.
* With this constructor, the track is configured for static buffer mode.
* The format must not be 8-bit linear PCM.
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp
index d11a7c4..06d50fe 100644
--- a/media/libmedia/AudioTrack.cpp
+++ b/media/libmedia/AudioTrack.cpp
@@ -131,6 +131,33 @@ extern "C" AudioTrack *_ZN7android10AudioTrackC1EijiiijPFviPvS1_ES1_i(
streamType, sampleRate, format, channels,
frameCount, flags, cbf, user, notificationFrames, 0);
}
+
+// DEPRECATED
+AudioTrack::AudioTrack(
+ int streamType,
+ uint32_t sampleRate,
+ int format,
+ int channelMask,
+ int frameCount,
+ uint32_t flags,
+ callback_t cbf,
+ void* user,
+ int notificationFrames,
+ int sessionId)
+ : mCblk(NULL),
+ mStatus(NO_INIT),
+ mIsTimed(false),
+ mPreviousPriority(ANDROID_PRIORITY_NORMAL), mPreviousSchedulingGroup(SP_DEFAULT)
+#ifdef QCOM_HARDWARE
+ ,mAudioFlinger(NULL),
+ mObserver(NULL)
+#endif
+{
+ mStatus = set((audio_stream_type_t)streamType, sampleRate, (audio_format_t)format,
+ (audio_channel_mask_t) channelMask,
+ frameCount, (audio_output_flags_t)flags, cbf, user, notificationFrames,
+ 0 /*sharedBuffer*/, false /*threadCanCallJava*/, sessionId);
+}
#endif

AudioTrack::AudioTrack()

With these patches applied the repo now builds to completion. I used 'repo diff' to get most of these patches, there are actually some more differences between my repo and Quarx's but I don't think those are important.

Again, I have NOT tested the resulting build yet, that'll have to wait as I have some cows to milk right now...