Skip to content

Commit

Permalink
AICPify
Browse files Browse the repository at this point in the history
  • Loading branch information
Verevka committed Aug 11, 2017
1 parent dd47f03 commit c2c91a8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 13 deletions.
33 changes: 30 additions & 3 deletions aicp.mk
Original file line number Diff line number Diff line change
@@ -1,17 +1,44 @@
$(call inherit-product, device/xiaomi/sagit/full_sagit.mk)
# 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.

# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)

# Inherit from Xiaomi MI6 device
$(call inherit-product, device/xiaomi/sagit/device.mk)

# Inherit some common AICP stuff.
$(call inherit-product, vendor/aicp/configs/common.mk)

# Inherit telephony stuff
$(call inherit-product, vendor/aicp/configs/telephony.mk)

PRODUCT_NAME := aicp_sagit
PRODUCT_DEVICE := sagit
PRODUCT_BRAND := Xiaomi
PRODUCT_MODEL := MI 6
PRODUCT_MANUFACTURER := Xiaomi

PRODUCT_BUILD_PROP_OVERRIDES += \
BUILD_FINGERPRINT="Xiaomi/sagit/sagit:7.1.1/NMF26X/7.6.29:user/release-keys"

PRODUCT_GMS_CLIENTID_BASE := android-xiaomi

PRODUCT_PROPERTY_OVERRIDES += \
ro.aicp.maintainer=Verevka-dev
# AICP Device Maintainers
PRODUCT_BUILD_PROP_OVERRIDES += \
DEVICE_MAINTAINERS="Verevka-dev"

# Boot animation
include vendor/aicp/configs/bootanimation.mk
8 changes: 0 additions & 8 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,6 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
sensors.msm8998

# Messaging
PRODUCT_PACKAGES += \
messaging \
Stk

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/apns-conf.xml:system/etc/apns-conf.xml \

# Wifi
PRODUCT_PACKAGES += \
ipacm \
Expand Down
2 changes: 1 addition & 1 deletion extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi

CM_ROOT="$MY_DIR"/../../..

HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh
HELPER="$CM_ROOT"/vendor/aicp/build/tools/extract_utils.sh
if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion setup-makefiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi

CM_ROOT="$MY_DIR"/../../..

HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh
HELPER="$CM_ROOT"/vendor/aicp/build/tools/extract_utils.sh
if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER"
exit 1
Expand Down

0 comments on commit c2c91a8

Please sign in to comment.