Skip to content

Commit

Permalink
Add I9505 support
Browse files Browse the repository at this point in the history
I9505 International Galaxy S4 LTE device tree
  • Loading branch information
victorator committed May 30, 2013
0 parents commit b10bd62
Show file tree
Hide file tree
Showing 11 changed files with 158 additions and 0 deletions.
35 changes: 35 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright (C) 2009 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.

#
# This file sets variables that control the way modules are built
# thorughout the system. It should not be used to conditionally
# disable makefiles (the proper mechanism to control what gets
# included in a build is to use PRODUCT_PACKAGES in a product
# definition file).
#

# inherit from common JF
-include device/samsung/jf-common/BoardConfigCommon.mk

# inherit from the proprietary version
-include vendor/samsung/i9505/BoardConfigVendor.mk

# Assert
TARGET_OTA_ASSERT_DEVICE := jflte,jfltexx,i9505,GT-I9505

# Kernel
TARGET_KERNEL_CONFIG := jf_eur_defconfig
TARGET_KERNEL_VARIANT_CONFIG := cyanogen_jf_defconfig
TARGET_KERNEL_SELINUX_CONFIG := jfselinux_defconfig
5 changes: 5 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Copyright 2013 - The CyanogenMod Project

Device configuration for Samsung Galaxy S4 (International GT-I9505).

My first Repo :)
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
android_device_samsung_i9505
============================
This is my first Repo. I hope it does good to the whole CyanogenMod community :)
19 changes: 19 additions & 0 deletions cm.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"repository": "android_device_samsung_qcom-common",
"target_path": "device/samsung/qcom-common"
},
{
"repository": "android_device_samsung_msm8960-common",
"target_path": "device/samsung/msm8960-common"
},
{
"repository": "android_device_samsung_jf-common",
"target_path": "device/samsung/jf-common"
},
{
"repository": "android_kernel_samsung_jf",
"target_path": "kernel/samsung/jf"
}
]

16 changes: 16 additions & 0 deletions cm.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$(call inherit-product, device/samsung/i9505/full_i9505.mk)

# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/gsm.mk)

# Enhanced NFC
$(call inherit-product, vendor/cm/config/nfc_enhanced.mk)

# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)

PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=jfltexx TARGET_DEVICE=jflte BUILD_FINGERPRINT="samsung/jfltexx/jflte:4.2.2/JDQ39/I9505XXUAMDE:user/release-keys" PRIVATE_BUILD_DESC="jfltexx-user 4.2.2 JDQ39 I9505XXUAMDE release-keys"

PRODUCT_DEVICE := i9505
PRODUCT_NAME := cm_i9505

1 change: 1 addition & 0 deletions device-proprietary-files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Add device specific blobs here
24 changes: 24 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Copyright (C) 2011 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.
#

## (2) Also get non-open-source specific aspects if available
$(call inherit-product-if-exists, vendor/samsung/i9505/i9505-vendor.mk)

## common overlays
DEVICE_PACKAGE_OVERLAYS += device/samsung/jf-common/overlay-gsm

# Inherit from jf-common
$(call inherit-product, device/samsung/jf-common/jf-common.mk)
7 changes: 7 additions & 0 deletions extract-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

export DEVICE=i9505
export VENDOR=samsung
./../jf-common/extract-files.sh $@
35 changes: 35 additions & 0 deletions full_i9505.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright (C) 2011 The Android Open Source 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.

#
# This file is the build configuration for a full Android
# build for maguro hardware. This cleanly combines a set of
# device-specific aspects (drivers) with a device-agnostic
# product configuration (apps). Except for a few implementation
# details, it only fundamentally contains two inherit-product
# lines, full and maguro, hence its name.
#


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

# Set those variables here to overwrite the inherited values.
PRODUCT_NAME := full_i9505
PRODUCT_DEVICE := i9505
PRODUCT_BRAND := samsung
PRODUCT_MANUFACTURER := samsung
PRODUCT_MODEL := GT-I9505
11 changes: 11 additions & 0 deletions system.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# system.prop for GT-I9505
#

# cannot take spaces
rild.libargs=-d /dev/smd0

# Fields for custom RIL
# MAX PROP NAME is 31 chars --|
ro.telephony.ril_class=SamsungQualcommUiccRIL
telephony.lteOnGsmDevice=1

2 changes: 2 additions & 0 deletions vendorsetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_lunch_combo cm_i9505-eng

0 comments on commit b10bd62

Please sign in to comment.