[Galaxy Grand Prime Android Development] Zippy Dufus:
Not Stuck

I'm stuck ... but I haven't given up yet.

First problem I had was that it appears the code is mixed up for some reason. Below are a couple cheesy patches to get past that problem. One patch is only matched in cheesiness by how the code was "commented out".

echo '--- /home/android/hardware/qcom/audio-caf/msm8916/hal/msm8916/platform.c.orig	2018-02-04 06:57:58.816340148 -0600

+++ /home/android/hardware/qcom/audio-caf/msm8916/hal/msm8916/platform.c	2018-02-04 06:59:10.954570410 -0600

@@ -17,6 +17,9 @@

* limitations under the License.

*/

+#pragma GCC diagnostic push

+#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"

+

#define LOG_TAG "msm8916_platform"

/*#define LOG_NDEBUG 0*/

#define LOG_NDDEBUG 0}

'| patch -b $HOME/hardware/qcom/audio-caf/msm8916/hal/msm8916/platform.c

echo '--- audio-caf/msm8916/hal/audio_extn/audio_extn.h.orig	2018-02-04 09:46:50.909042330 -0600

+++ audio-caf/msm8916/hal/audio_extn/audio_extn.h	2018-02-04 09:47:04.650281336 -0600

@@ -22,13 +22,13 @@

#include <cutils/str_parms.h>

-#if 0

+// #if 0

#define AUDIO_FORMAT_PCM_OFFLOAD 0x17000000UL

#define AUDIO_FORMAT_PCM_16_BIT_OFFLOAD (AUDIO_FORMAT_PCM_OFFLOAD | AUDIO_FORMAT_PCM_SUB_16_BIT)

#define AUDIO_FORMAT_PCM_24_BIT_OFFLOAD (AUDIO_FORMAT_PCM_OFFLOAD | AUDIO_FORMAT_PCM_SUB_8_24_BIT)

#define AUDIO_OFFLOAD_CODEC_FORMAT "music_offload_codec_format"

#define audio_is_offload_pcm(format) (0)

-#endif

+// #endif

#ifndef AFE_PROXY_ENABLED

#define AUDIO_DEVICE_OUT_PROXY 0x40000

'| patch -b $HOME/hardware/qcom/audio-caf/msm8916/hal/audio_extn/audio_extn.h

​

Next problem, the build gets almost to the end and fails. Still investigating that one.

[ 92% 66577/72106] Building with Jack: /home/android/out/target/common/obj/APPS/SystemUI_intermediates/with-local/classes.dex

FAILED: /home/android/out/target/common/obj/APPS/SystemUI_intermediates/with-local/classes.dex

/bin/bash -c "(rm -f /home/android/out/target/common/obj/APPS/SystemUI_intermediates/with-local/classes.dex ) && (rm -f /home/android/out/target/common/obj/APPS/SystemUI_intermediates/classes.jack ) && (rm -rf /home/android/out/target/common/obj/APPS/SystemUI_intermediates/jack-rsc ) && (mkdir -p /home/android/out/target/common/obj/APPS/SystemUI_intermediates/with-local/ ) && (mkdir -p /home/android/out/target/common/obj/APPS/SystemUI_intermediates/ ) && (mkdir -p /home/android/out/target/common/obj/APPS/SystemUI_intermediates/jack-rsc ) && (rm -f /home/android/out/target/common/obj/APPS/SystemUI_intermediates/jack-rsc/java-source-list ) && (touch /home/android/out/target/common/obj/APPS/SystemUI_intermediates/jack-rsc/java-source-list ) && (echo -n 'frameworks/base/packages/SystemUI/src/com/android/keyguard/AlphaOptimizedImageButton.java frameworks/base/packages/SystemUI/src/com/android/keyguard/AlphaOptimizedLinearLayout.java frameworks/base/packages/SystemUI/src/com/android/keyguard/AlphaOptimizedRelativeLayout.java frameworks/base/packages/SystemUI/src/com/android/keyguard/CarrierText.java ...

...

...

1 ) ) && (mv /home/android/out/target/common/obj/APPS/SystemUI_intermediates/jack-rsc/classes*.dex /home/android/out/target/common/obj/APPS/SystemUI_intermediates/with-local/ ) && (rm -f /home/android/out/target/common/obj/APPS/SystemUI_intermediates/jack-rsc/java-source-list ) && (mv /home/android/out/target/common/obj/APPS/SystemUI_intermediates/jack-rsc/java-source-list-uniq /home/android/out/target/common/obj/APPS/SystemUI_intermediates/jack-rsc.java-source-list )"

ERROR: /home/android/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java:3020.13: themeInfo cannot be resolved to a variable

ERROR: /home/android/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java:3025.16: themeInfo cannot be resolved to a variable

ERROR: /home/android/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java:3025.37: themeInfo cannot be resolved

[ 92% 66578/72106] target Package: Telecom (/home/android/out/target/product/gprimelte/obj/APPS/Telecom_intermediates/package.apk)​

== EDIT ==

Never mind. It built OK on a second run.

I see some upstream syncing so the issue on the first go might be due to syncing in the middle of an upstream push.