Skip to content
Open
7 changes: 6 additions & 1 deletion AndroidProducts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@
# limitations under the License.

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_osprey.mk
$(LOCAL_DIR)/colt_osprey.mk

COMMON_LUNCH_CHOICES := \
colt_osprey-user \
colt_osprey-userdebug \
colt_osprey-eng

1 change: 0 additions & 1 deletion lineage.dependencies → colt.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
"target_path": "device/motorola/msm8916-common"
}
]

13 changes: 9 additions & 4 deletions lineage_osprey.mk → colt_osprey.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,19 @@
$(call inherit-product, device/motorola/osprey/full_osprey.mk)

# Boot animation
TARGET_BOOTANIMATION_HALF_RES := true
TARGET_SCREEN_WIDTH := 720
TARGET_SCREEN_HEIGHT := 1280
TARGET_BOOT_ANIMATION_RES := 720×1280 : Please change as per your device resolution
# TARGET_BOOT_ANIMATION_RES := 1080x1920 : Please change as per your device resolution

TARGET_GAPPS_ARCH := arm
TARGET_MINIMAL_APPS := true

## Device identifier. This must come after all inclusions
PRODUCT_DEVICE := osprey
PRODUCT_NAME := lineage_osprey
PRODUCT_NAME := colt_osprey
PRODUCT_MODEL := MotoG3
PRODUCT_BRAND := Motorola
PRODUCT_MANUFACTURER := Motorola
PRODUCT_RELEASE_NAME := osprey

# Inherit some common Colt stuff.
$(call inherit-product, vendor/colt/config/common_full_phone.mk)
12 changes: 12 additions & 0 deletions init/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cc_library_static {
name: "libinit_osprey",
recovery_available: true,

include_dirs: [
"system/core/base/include",
"system/core/init",
],

srcs: ["init_osprey.cpp"],
static_libs: ["libbase"],
}
12 changes: 0 additions & 12 deletions init/Android.mk

This file was deleted.

4 changes: 0 additions & 4 deletions init/init_osprey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ void vendor_load_properties()
char fingerprint[PROP_VALUE_MAX];
char tv[PROP_VALUE_MAX];

std::string platform = GetProperty("ro.board.platform","");
if (platform != ANDROID_TARGET)
return;

// Warning-less way of sprintf(var, "");
ds[0] = 0;
tv[0] = 0;
Expand Down
2 changes: 1 addition & 1 deletion rootdir/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := init.target.rc
LOCAL_MODULE_TAGS := optional eng
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.target.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
Expand Down
3 changes: 0 additions & 3 deletions rootdir/etc/init.target.rc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ on property:sys.boot_completed=1
setprop sys.io.scheduler bfq

write /sys/module/lpm_levels/parameters/sleep_disabled 0
write /sys/devices/system/cpu/cpu0/online 1

# HMP scheduler settings
write /proc/sys/kernel/sched_ravg_hist_size 3
Expand Down Expand Up @@ -123,8 +122,6 @@ on property:sys.boot_completed=1
write /dev/cpuset/camera-daemon/cpus 0-3
write /dev/cpuset/restricted/cpus 0-3

start batt_health

write /sys/class/devfreq/1c00000.qcom,kgsl-3d0/governor "msm-adreno-tz"
write /sys/class/devfreq/qcom,cpubw.30/governor "cpufreq"

Expand Down