Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified to add in the overlay pieces necessary to enable the battery charging led #4

Open
wants to merge 10 commits into
base: jb43
Choose a base branch
from
15 changes: 15 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,18 @@ include $(BUILD_PREBUILT)
endif

include $(call first-makefiles-under,$(LOCAL_PATH))

ifeq ($(TARGET_DEVICE),mako)

# This is ugly for more reasons than I can mention. Don't think
# that this is a good idea. It's not. It's horrible. It's truly
# entirely horrible. It's not an elegant hack in any way.

$(shell mkdir -p $(TARGET_OUT_ETC)/firmware/wcd9310; \
ln -sf /data/misc/audio/wcd9310_anc.bin \
$(TARGET_OUT_ETC)/firmware/wcd9310/wcd9310_anc.bin; \
ln -sf /data/misc/audio/mbhc.bin \
$(TARGET_OUT_ETC)/firmware/wcd9310/wcd9310_mbhc.bin)

endif

5 changes: 3 additions & 2 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ TARGET_KRAIT_BIONIC_PLDTHRESH := 10
TARGET_KRAIT_BIONIC_BBTHRESH := 64
TARGET_KRAIT_BIONIC_PLDSIZE := 64

TARGET_USE_O3 := true

TARGET_NO_BOOTLOADER := true
TARGET_KERNEL_CONFIG := mako_defconfig

# Use JWR66Y kernel compatibility fix
TARGET_USE_JWR66Y := true

BOARD_KERNEL_BASE := 0x80200000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=mako lpj=67677
Expand Down
2 changes: 1 addition & 1 deletion bluetooth/bdroid_buildcfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@

#define BTM_DEF_LOCAL_NAME "Nexus 4"
#define BTA_DISABLE_DELAY 1000 /* in milliseconds */

#define BLUETOOTH_QCOM_SW TRUE
#endif
3 changes: 2 additions & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml

# GPS configuration
PRODUCT_COPY_FILES += \
Expand Down
2 changes: 2 additions & 0 deletions fstab.mako
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
/dev/block/platform/msm_sdcc.1/by-name/tz /tz emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/rpm /rpm emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/aboot /aboot emmc defaults defaults

/devices/platform/msm_hsusb_host/usb2 /storage/usbdisk0 auto defaults voldmanaged=usbdisk:auto
10 changes: 10 additions & 0 deletions init.mako.rc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on init
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /storage/usbdisk0 0666 system system

# Set permissions for persist partition
mkdir /persist 0771 system system
Expand All @@ -31,12 +32,15 @@ on init
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
export SECONDARY_STORAGE /storage/usbdisk0

# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /storage/usbdisk0 /usbdisk
symlink /storage/usbdisk0 /mnt/usbdisk

# Setup custom emergency number list based on
# the MCC. This is needed by RIL.
Expand Down Expand Up @@ -414,5 +418,11 @@ service diag_mdlog /system/bin/logwrapper /system/bin/diag_mdlog -s 100
class late_start
disabled

service userinit /system/xbin/busybox run-parts /system/etc/init.d
oneshot
class late_start
user root
group root

# on property:gsm.sim.state=READY
# start diag_mdlog
8 changes: 7 additions & 1 deletion overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
<!-- Default LED off time for notification LED in milliseconds. -->
<integer name="config_defaultNotificationLedOff">9000</integer>

<!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveBatteryLed">true</bool>

<!-- Does the battery LED support multiple colors? Used to decide if the user can change the colors -->
<bool name="config_multiColorBatteryLed">true</bool>

<!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
autodetected from the Configuration. -->
<bool name="config_showNavigationBar">true</bool>
Expand Down Expand Up @@ -228,7 +234,7 @@
</string-array>

<!-- reference volume index for music stream to limit headphone volume and display warning -->
<integer name="config_safe_media_volume_index">7</integer>
<integer name="config_safe_media_volume_index">10</integer>

<bool name="config_enableWifiDisplay">true</bool>

Expand Down
6 changes: 6 additions & 0 deletions overlay/frameworks/base/core/res/res/xml/storage_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
<!-- internal emulated storage -->
<storage
android:storageDescription="@string/storage_internal"
android:primary="true"
android:emulated="true"
android:mtpReserve="100" />
<storage
android:storageDescription="@string/storage_usb"
android:mountPoint="/storage/usbdisk0"
android:primary="false"
android:removable="true" />
</StorageList>