diff --git a/BoardConfig.mk b/BoardConfig.mk index 492890e..196363e 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -21,6 +21,9 @@ TARGET_OTA_ASSERT_DEVICE := j7e3g,j7e3gxx,j7elte,j7eltexx DEVICE_PATH := device/samsung/j7eltexx +# Bluetooth +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth + # Init TARGET_INIT_VENDOR_LIB := libinit_sec TARGET_UNIFIED_DEVICE := true diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h new file mode 100644 index 0000000..81304d2 --- /dev/null +++ b/bluetooth/bdroid_buildcfg.h @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2012 The Android Open Source Project + * Copyright (C) 2014 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. + */ + +#ifndef _BDROID_BUILDCFG_H +#define _BDROID_BUILDCFG_H + +#define BTM_DEF_LOCAL_NAME "Samsung Galaxy J7" + +#endif \ No newline at end of file diff --git a/device.mk b/device.mk index cf36177..b565bd0 100644 --- a/device.mk +++ b/device.mk @@ -46,6 +46,12 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \ $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml +# Key-layout +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/keylayout/Button_Jack.kl:system/usr/keylayout/Button_Jack.kl \ + $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \ + $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl + # Lights PRODUCT_PACKAGES += \ lights.universal7580 @@ -77,6 +83,15 @@ PRODUCT_COPY_FILES += \ ADDITIONAL_DEFAULT_PROPERTIES += \ wifi.interface=wlan0 + +# Samsung +PRODUCT_PACKAGES += \ + SamsungServiceMode + +# Ril +PRODUCT_PACKAGES += \ + libprotobuf-cpp-full \ + modemloader # cpboot-daemon for modem PRODUCT_COPY_FILES += \ diff --git a/keylayout/Button_Jack.kl b/keylayout/Button_Jack.kl new file mode 100644 index 0000000..ddb0dbf --- /dev/null +++ b/keylayout/Button_Jack.kl @@ -0,0 +1,3 @@ +key 256 HEADSETHOOK +key 257 VOLUME_UP +key 258 VOLUME_DOWN diff --git a/keylayout/gpio_keys.kl b/keylayout/gpio_keys.kl new file mode 100644 index 0000000..ed7b36e --- /dev/null +++ b/keylayout/gpio_keys.kl @@ -0,0 +1,16 @@ +# You can find out the values using the 'getevent' command. +# Press a button and you will see something like: +# +# /dev/input/event7: 0001 0074 00000001 +# ^^^^ +# +# This is the power button. Convert 0x74 hex to decimal and +# add it here to a file you name after the 'name' of the +# device. +# +key 114 VOLUME_DOWN +key 115 VOLUME_UP +key 116 POWER +key 152 POWER +key 172 HOME + diff --git a/keylayout/sec_touchkey.kl b/keylayout/sec_touchkey.kl new file mode 100644 index 0000000..efa2ea9 --- /dev/null +++ b/keylayout/sec_touchkey.kl @@ -0,0 +1,18 @@ +# +# 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. +# + +key 158 BACK VIRTUAL +key 254 APP_SWITCH VIRTUAL diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index ae52c1d..4b2aa97 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -1,7 +1,11 @@ 4 + + + + + + wifi,1,1,1,-1,true + mobile,0,0,0,-1,true + mobile_mms,2,0,2,240000,true + mobile_supl,3,0,2,60000,true + mobile_dun,4,0,2,60000,true + mobile_hipri,5,0,3,60000,true + bluetooth,7,7,0,-1,true + ethernet,9,9,2,-1,true + mobile_fota,10,0,2,60000,true + mobile_ims,11,0,1,-1,true + mobile_cbs,12,0,2,60000,true + wifi_p2p,13,1,0,-1,true + mobile_ia,14,0,2,-1,true + mobile_emergency,15,0,2,-1,true + mobile_bip,23,0,2,60000,true + mobile_cas,24,0,3,60000,true + mobile_xcap,27,0,2,60000,true + mobile_ent1,28,0,2,-1,true + mobile_ent2,29,0,2,-1,true + + + + + + 0 + 1 + 4 + 5 + 7 + 9 + + + + rmnet0 + + + + + + + 83 + + + 65 + + + 3 + + + 2 + + + GSM | WCDMA | LTE | CDMA | EVDO + diff --git a/overlay/packages/apps/Mms/res/xml/mms_config.xml b/overlay/packages/apps/Mms/res/xml/mms_config.xml new file mode 100644 index 0000000..9b998b0 --- /dev/null +++ b/overlay/packages/apps/Mms/res/xml/mms_config.xml @@ -0,0 +1,49 @@ + + + + + + + + + 1045876 + + + 2592 + + + 2592 + + + true + + + false + + + SAMSUNG-SM-J700F-Mms + + + http://wap.samsungmobile.com/uaprof/SM-J700F.xml + + diff --git a/overlay/packages/services/Telephony/res/values/config.xml b/overlay/packages/services/Telephony/res/values/config.xml new file mode 100644 index 0000000..bd13b97 --- /dev/null +++ b/overlay/packages/services/Telephony/res/values/config.xml @@ -0,0 +1,25 @@ + + + + + + + true + + + true + diff --git a/system.prop b/system.prop index a3896f8..b73e660 100644 --- a/system.prop +++ b/system.prop @@ -32,3 +32,15 @@ ro.hwui.fbo_cache_size=8 # FRP #ro.frp.pst=/dev/block/persistent + +# Radio +#telephony.lteOnCdmaDevice=0 +persist.radio.apm_sim_not_pwdn=1 +persist.radio.add_power_save=1 +rild.libpath=/system/lib/libsec-ril.so +rild.libargs=-d /dev/ttyS0 +ro.telephony.ril_class=SlteRIL +ro.use_data_netmgrd=false +persist.data.netmgrd.qos.enable=false +ro.ril.hsxpa=1 +ro.ril.gprsclass=10