Skip to content

Commit

Permalink
DU-ify
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdoherty81 committed Dec 13, 2016
1 parent 171345c commit f311158
Show file tree
Hide file tree
Showing 10 changed files with 106 additions and 50 deletions.
5 changes: 1 addition & 4 deletions BoardConfig.mk
Expand Up @@ -20,7 +20,7 @@ include device/motorola/msm8916-common/BoardConfigCommon.mk
DEVICE_PATH := device/motorola/osprey

# Asserts
TARGET_OTA_ASSERT_DEVICE := osprey,osprey_umts,osprey_u2,osprey_ud2,osprey_uds,osprey_cdma,osprey_sprint,osprey_udstv
TARGET_BOOTLOADER_BOARD_NAME := osprey
TARGET_RELEASETOOLS_EXTENSIONS := $(DEVICE_PATH)

# Init
Expand All @@ -39,6 +39,3 @@ BOARD_USERDATAIMAGE_PARTITION_SIZE := 4865261568 # 4751232 * 1024 mmcblk0p42

# Power
TARGET_POWERHAL_HEADER_PATH := $(DEVICE_PATH)/power

# Properties
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
7 changes: 0 additions & 7 deletions cm.dependencies

This file was deleted.

1 change: 0 additions & 1 deletion configs/media_codecs.xml
Expand Up @@ -117,5 +117,4 @@
</MediaCodec>
</Decoders>
<Include href="media_codecs_google_video.xml" />
<Include href="media_codecs_ffmpeg.xml" />
</MediaCodecs>
13 changes: 13 additions & 0 deletions device.mk
Expand Up @@ -45,3 +45,16 @@ DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Ramdisk
PRODUCT_PACKAGES += \
init.target.rc

PRODUCT_PROPERTY_OVERRIDES += \
persist.audio.fluence.mode=endfire \
persist.audio.fluence.voicecall=true \
ro.qc.sdk.audio.fluencetype=fluence \
ro.sf.lcd_density=320 \
ro.du.updater=osprey

# set default USB configuration
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
sys.usb.config=mtp,adb \
persist.sys.usb.config=mtp,adb \
ro.adb.secure=0
47 changes: 47 additions & 0 deletions du.dependencies
@@ -0,0 +1,47 @@
[
{
"repository": "DirtyUnicorns/android_device_motorola_msm8916-common",
"target_path": "device/motorola/msm8916-common",
"branch": "n7x-caf"
},
{
"repository": "DirtyUnicorns/android_kernel_motorola_msm8916",
"target_path": "kernel/motorola/msm8916",
"branch": "n7x-caf"
},
{
"repository": "DirtyUnicorns/android_external_bson",
"target_path": "external/bson",
"branch": "n7x-caf"
},
{
"repository": "DirtyUnicorns/android_hardware_qcom_audio",
"target_path": "hardware/qcom/audio-caf/msm8916",
"branch": "n7x-caf-8916"
},
{
"repository": "DirtyUnicorns/android_hardware_qcom_display",
"target_path": "hardware/qcom/display-caf/msm8916",
"branch": "n7x-caf-8916"
},
{
"repository": "DirtyUnicorns/android_hardware_qcom_media",
"target_path": "hardware/qcom/media-caf/msm8916",
"branch": "n7x-caf-8916"
},
{
"repository": "DirtyUnicorns/android_hardware_qcom_fm",
"target_path": "hardware/qcom/fm",
"branch": "n7x-caf"
},
{
"repository": "DirtyUnicorns/android_packages_apps_FMRadio",
"target_path": "packages/apps/FMRadio",
"branch": "n7x-caf"
},
{
"repository": "DirtyUnicorns/android_vendor_motorola",
"target_path": "vendor/motorola",
"branch": "n7x-caf"
}
]
3 changes: 2 additions & 1 deletion cm.mk → du.mk
Expand Up @@ -19,8 +19,9 @@ TARGET_SCREEN_WIDTH := 720
TARGET_SCREEN_HEIGHT := 1280

## Device identifier. This must come after all inclusions
PRODUCT_NAME := du_osprey
PRODUCT_DEVICE := osprey
PRODUCT_NAME := cm_osprey
PRODUCT_BRAND := Motorola
PRODUCT_MODEL := MotoG3
PRODUCT_MANUFACTURER := Motorola
PRODUCT_RELEASE_NAME := osprey
17 changes: 17 additions & 0 deletions overlay/frameworks/base/core/res/res/values/config.xml
Expand Up @@ -19,10 +19,27 @@

<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">

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

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

<!-- Do the battery/notification LEDs support pulsing?
Used to decide if we show pulse settings -->
<bool name="config_ledCanPulse">false</bool>

<!-- Default color for notification LED is white. -->
<color name="config_defaultNotificationColor">#ffffffff</color>

<!-- Does the notification LED support multiple colors?
Used to decide if the user can change the colors -->
<bool name="config_multiColorNotificationLed">false</bool>

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

<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>0</item>
Expand Down
4 changes: 2 additions & 2 deletions proprietary-files.txt
Expand Up @@ -125,8 +125,8 @@ lib/libmotocalibration.so
lib/hw/sensors.msm8916.so

# Touchscreen
etc/firmware/synaptics-boe-s2726-15100905-1f711a-osprey.tdat
etc/firmware/synaptics-inx-s2726br_t-15091801-1dc9a8-osprey.tdat
etc/firmware/synaptics-boe-s2726-16020901-225ad4-osprey.tdat
etc/firmware/synaptics-inx-s2726br_t-16012301-225ad4-osprey.tdat

# WCNSS
etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
48 changes: 24 additions & 24 deletions setup-makefiles.sh 100755 → 100644
@@ -1,25 +1,25 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

set -e

# Required!
export DEVICE=osprey
export DEVICE_COMMON=msm8916-common
export VENDOR=motorola

#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
set -e
# Required!
export DEVICE=osprey
export DEVICE_COMMON=msm8916-common
export VENDOR=motorola
./../../$VENDOR/$DEVICE_COMMON/setup-makefiles.sh $@
11 changes: 0 additions & 11 deletions system.prop

This file was deleted.

0 comments on commit f311158

Please sign in to comment.