Skip to content

Commit

Permalink
init: Set Dual Sim only for J700F & J700H
Browse files Browse the repository at this point in the history
 -J700M is a single sim device
 -J700F & J700H are dual sim device

Change-Id: I5efb02ea25151017d1c3b1c5342b0cc9ceeb3b63
  • Loading branch information
aapav01 committed Apr 22, 2016
1 parent d8afe5a commit 95432da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions init/init_sec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
#include "log.h"
#include "util.h"

void make_me_dual()
{
property_set("rild.libpath2", "/system/lib/libsec-ril-dsds.so");
property_set("persist.radio.multisim.config", "dsds");
property_set("ro.multisim.simslotcount", "2");
}

void vendor_load_properties()
{
char platform[PROP_VALUE_MAX];
Expand All @@ -52,6 +59,7 @@ void vendor_load_properties()
property_set("ro.build.description", "j7eltexx-user 5.1.1 LMY48B J700FXXU2APC4 release-keys");
property_set("ro.product.model", "SM-J700F");
property_set("ro.product.device", "j7elte");
make_me_dual();
} else if (strstr(bootloader, "J700M")) {
property_set("ro.build.fingerprint", "samsung/j7eltexx/j7elte:5.1.1/LMY47X/J700MUBU1APA1:user/release-keys");
property_set("ro.build.description", "j7eltexx-user 5.1.1 LMY47X J700MUBU1APA1 release-keys");
Expand All @@ -62,6 +70,7 @@ void vendor_load_properties()
property_set("ro.build.description", "j7e3gxx-user 5.1.1 LMY48B J700HXXU2APC5 release-keys");
property_set("ro.product.model", "SM-J700H");
property_set("ro.product.device", "j7e3g");
make_me_dual();
}

property_get("ro.product.device", device);
Expand Down
3 changes: 0 additions & 3 deletions system.prop
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ ro.opengles.version=196609
persist.radio.apm_sim_not_pwdn=1
persist.radio.add_power_save=1
rild.libpath=/system/lib/libsec-ril.so
rild.libpath2=/system/lib/libsec-ril-dsds.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
persist.radio.multisim.config=dsds
ro.multisim.simslotcount=2

# Wifi
wifi.interface=wlan0
Expand Down

0 comments on commit 95432da

Please sign in to comment.