Bug 1099053 - Fix setEccListProperty. r=hsinyi

This commit is contained in:
Szu-Yu Chen [:aknow] 2014-11-24 14:13:28 +08:00
parent a8765535da
commit 6fc6f807e2

View File

@ -9,6 +9,12 @@ const DEFAULT_ECC_LIST = "112,911";
function setEccListProperty(list) {
log("Set property ril.ecclist: " + list);
// We should wrap empty |list| by ''. Otherwise, the entire command will be
// "setprop ril.ecclist" which causus the command error.
if (!list) {
list = "''";
}
let deferred = Promise.defer();
try {
emulator.runShellCmd(["setprop","ril.ecclist", list]).then(function() {