[Nook Color Android Development] drmarble:
cm-13.0 repositories

Well, I got sound working. The external sdcard still can't be mounted. It doesn't do the nifty hybrid emmc/sdcard install it did in earlier versions. I am looking at this. It cannot be built as an SDcard install. The build system changed enough that I just sort of eliminated that. It may make it back in when I get other parts of the sdcard working. Quadrant scores dropped with today's build. Something upstream in cm changed. They have been working on performance settings.

The hard part in this was getting the kernel to use selinux. We were using selinux disabled before (look at About tablet). It took about 50 commits. I initially thought we needed selinux to be enforcing so I managed to get cm-12.1 to boot in enforcing mode. Most programs didn't run but it did boot in enforcing. I have since regressed to permissive. Boy, was I happy when I finally got a logcat while booting. Before that all I ever got were black screens. Not even anything in /proc/last_kmsg. Marshmallow will just not boot at all if you don't have security enabled in the kernel. You can dissable it in the rom but the kernel must be secure to boot. That may be part of the problem the sdcard mounting. I think that happens very early in the boot process.

The required repositories are:

https://github.com/drmarble/android_device_bn_encore/tree/wip-cm-13.0-c
https://github.com/drmarble/android_kernel_bn_encore/tree/wip-cm-13.0-b
https://github.com/drmarble/android_build/tree/encore-cm-13.0
https://github.com/drmarble/android_system_core/tree/encore-cm13.0
https://github.com/drmarble/android_hardware_ti_omap3/tree/security1
https://github.com/drmarble/android_hardware_libhardware_legacy/tree/encore-cm-13.0
https://github.com/drmarble/android_external_alsa-lib/tree/encore-cm-13.0
https://github.com/drmarble/android_hardware_alsa_sound/tree/cm-12.1
https://github.com/drmarble/proprietary_vendor_bn/tree/cm-12.1-wip

System/core is just the change of w-error to wno-error as before. I just uploaded the change.

This does build but it is too large to flash. I removed some sounds from vendor/cm and the fonts in noto-fonts. For vendor/cm I changed cm_audio.mk and removed all but the last of all the sound files (notifications, alarms, etc.). Here is a patch file you can save to the vendor/cm directory. Just apply it with the command git am <my-nifty-patch-name> run from the vendor/cm directory.

From 1e54863190fd9bf1901f3d7952902e6f8f9d8bb4 Mon Sep 17 00:00:00 2001
From: David Marble <drmarble1@gmail.com>
Date: Thu, 5 Nov 2015 10:35:27 -0600
Subject: [PATCH 1/1] My zip file names and fewer apps and sounds for encore

Change-Id: I0db3597bb52df94c1ec0cc636fbb75f722b35af8
---
config/cm_audio.mk | 18 ------------------
config/common.mk | 2 +-
2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/config/cm_audio.mk b/config/cm_audio.mk
index f5f659f..d013f9c 100644
--- a/config/cm_audio.mk
+++ b/config/cm_audio.mk
@@ -9,35 +9,17 @@ UI_PATH := vendor/cm/prebuilt/common/media/audio/ui

# Alarms
PRODUCT_COPY_FILES += \
- $(ALARM_PATH)/CyanAlarm.ogg:system/media/audio/alarms/CyanAlarm.ogg \
$(ALARM_PATH)/NuclearLaunch.ogg:system/media/audio/alarms/NuclearLaunch.ogg

# Notifications
PRODUCT_COPY_FILES += \
- $(NOTIFICATION_PATH)/CyanDoink.ogg:system/media/audio/notifications/CyanDoink.ogg \
- $(NOTIFICATION_PATH)/CyanMail.ogg:system/media/audio/notifications/CyanMail.ogg \
- $(NOTIFICATION_PATH)/CyanMessage.ogg:system/media/audio/notifications/CyanMessage.ogg \
- $(NOTIFICATION_PATH)/Laser.ogg:system/media/audio/notifications/Laser.ogg \
- $(NOTIFICATION_PATH)/Naughty.ogg:system/media/audio/notifications/Naughty.ogg \
- $(NOTIFICATION_PATH)/Pong.ogg:system/media/audio/notifications/Pong.ogg \
- $(NOTIFICATION_PATH)/Rang.ogg:system/media/audio/notifications/Rang.ogg \
$(NOTIFICATION_PATH)/Stone.ogg:system/media/audio/notifications/Stone.ogg

# Ringtones
ifeq ($(TARGET_NEEDS_BOOSTED_SOUNDS),true)
PRODUCT_COPY_FILES += \
-	$(RINGTONE_PATH)/boosted/Boxbeat.ogg:system/media/audio/ringtones/Boxbeat.ogg \
-	$(RINGTONE_PATH)/boosted/CyanTone.ogg:system/media/audio/ringtones/CyanTone.ogg \
-	$(RINGTONE_PATH)/boosted/Highscore.ogg:system/media/audio/ringtones/Highscore.ogg \
-	$(RINGTONE_PATH)/boosted/Lyon.ogg:system/media/audio/ringtones/Lyon.ogg \
$(RINGTONE_PATH)/boosted/Rockin.ogg:system/media/audio/ringtones/Rockin.ogg
else
PRODUCT_COPY_FILES += \
- $(RINGTONE_PATH)/Boxbeat.ogg:system/media/audio/ringtones/Boxbeat.ogg \
- $(RINGTONE_PATH)/CyanTone.ogg:system/media/audio/ringtones/CyanTone.ogg \
- $(RINGTONE_PATH)/Highscore.ogg:system/media/audio/ringtones/Highscore.ogg \
- $(RINGTONE_PATH)/Lyon.ogg:system/media/audio/ringtones/Lyon.ogg \
- $(RINGTONE_PATH)/Rockin.ogg:system/media/audio/ringtones/Rockin.ogg \
- $(RINGTONE_PATH)/Sheep.mp3:system/media/audio/ringtones/Sheep.mp3 \
$(RINGTONE_PATH)/Yukaay.ogg:system/media/audio/ringtones/Yukaay.ogg
endif
diff --git a/config/common.mk b/config/common.mk
index 13b3178..621ec13 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -293,7 +293,7 @@ ifeq ($(CM_BUILDTYPE), RELEASE)
endif
endif
else
- CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
+ CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date +%m%d_%H%M)$(CM_EXTRAVERSION)
endif

PRODUCT_PROPERTY_OVERRIDES += \
--
1.9.1

For the fonts I just removed the files Android.mk, CleanSpec.mk and fonts.mk from the external/noto-fonts directory. You could probably just remove Android.mk. The patch is rather long so I am not posting it here.

You can remove other functions to make the file smaller. Our tmp recovery partition is only 256M (I think). We need a little extra space in there for expanding the zip file. I try to keep the zip file under 210M. If it is too large it just fails to flash and gives you an error message. No bricking or anything like that. Just an annoying delay.

Be patient on booting. It takes me 20 minutes to sideload a rom and another 20 minutes to boot. All without any boot animation.