klte: Convert init extension to C++

Change-Id: Ieb141933c4412ddd6ca14ce756f767ed8a48c542
This commit is contained in:
Ethan Chen 2015-10-21 12:01:01 -07:00
parent e0a46d5751
commit 23e2ab70f2
2 changed files with 8 additions and 8 deletions

View File

@ -23,7 +23,7 @@ TARGET_KERNEL_VARIANT_CONFIG := msm8974pro_sec_klte_eur_defconfig
# Init
TARGET_INIT_VENDOR_LIB := libinit_msm
TARGET_LIBINIT_DEFINES_FILE := device/samsung/klte/init/init_klte.c
TARGET_LIBINIT_DEFINES_FILE := device/samsung/klte/init/init_klte.cpp
TARGET_UNIFIED_DEVICE := true
# NFC

View File

@ -36,6 +36,13 @@
#include "init_msm.h"
void gsm_properties()
{
property_set("telephony.lteOnGsmDevice", "1");
property_set("ro.telephony.default_network", "9");
property_set("ro.telephony.ril.config", "newDialCode");
}
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type)
{
char platform[PROP_VALUE_MAX];
@ -109,10 +116,3 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar
strlcpy(devicename, device, sizeof(devicename));
INFO("Found bootloader id %s setting build properties for %s device\n", bootloader, devicename);
}
void gsm_properties()
{
property_set("telephony.lteOnGsmDevice", "1");
property_set("ro.telephony.default_network", "9");
property_set("ro.telephony.ril.config", "newDialCode");
}