Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Support setting RIL's socket names via system property
Browse files Browse the repository at this point in the history
Change-Id: I822df12f8533cd77ac196432c60341dde97aff14
  • Loading branch information
ngoquang2708 committed Mar 30, 2017
1 parent c31cf84 commit f487a70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/java/com/android/internal/telephony/RIL.java
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,13 @@ public class RIL extends BaseCommands implements CommandsInterface {
static final int RESPONSE_SOLICITED_ACK_EXP = 3;
static final int RESPONSE_UNSOLICITED_ACK_EXP = 4;

static final String[] SOCKET_NAME_RIL = {"rild", "rild2", "rild3"};
static final String[] SOCKET_NAME_RIL;
static {
String rilSocketName = SystemProperties.get("ro.telephony.ril.socket_name");
SOCKET_NAME_RIL = rilSocketName.isEmpty()
? new String[] { "rild", "rild2", "rild3" }
: rilSocketName.split(",");
}

static final int SOCKET_OPEN_RETRY_MILLIS = 4 * 1000;

Expand Down

0 comments on commit f487a70

Please sign in to comment.