Skip to content

Commit

Permalink
Added EU Pre+
Browse files Browse the repository at this point in the history
  • Loading branch information
rwhitby committed Dec 27, 2011
1 parent 80dc873 commit 33f4f67
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/assistants/device-profile-assistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function DeviceProfileAssistant()
// {label:"EU Pre (ROW)", value:'P100UEU/ROW'},
// {label:"NA Pre+ (AT&T)", value:'P101UNA/ATT'},
// {label:"NA Pre+ (Verizon)", value:'P101EWW/Verizon'},
// {label:"EU Pre+ (ROW)", value:'P101UEU/ROW'},
{label:"EU Pre+ (ROW)", value:'P101UEU/ROW'},
{label:"NA Pixi (Sprint)", value:'P120EWW/Sprint'},
{label:"NA Pixi+ (AT&T)", value:'P121UNA/ATT'},
{label:"NA Pixi+ (Verizon)", value:'P121EWW/Verizon'},
Expand Down Expand Up @@ -357,6 +357,12 @@ DeviceProfileAssistant.prototype.getDeviceOverrides = function(payload)
case "P101EWW/Verizon":
break;
case "P101UEU/ROW":
this.overrides['carrierROM'] = "Nova-WR-Castle-285";
this.overrides['network'] = "gsm";
this.overrides['softwareVersion'] = "Nova-WR-Castle-285";
this.overrides['hardwareType'] = "castle";
this.overrides['dmSets'] = '{"sets":"312","674"}';
this.overrides['softwareBuildBranch'] = "HP webOS 2.1.0";
break;
case "P120EWW/Sprint":
this.overrides['carrierROM'] = "Nova-Sprint-Pixie-271";
Expand Down
21 changes: 21 additions & 0 deletions patches/2.2.0/system-device-profile-service-override.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--- a/usr/palm/services/com.palm.service.deviceprofile/handlers/DeviceProfileCommandAssistant.js
+++ b/usr/palm/services/com.palm.service.deviceprofile/handlers/DeviceProfileCommandAssistant.js
@@ -105,7 +105,17 @@
}
});

- future.result = {"deviceInfo" : info.toJSON()};
+ MojoDB.get(["org.webosinternals.impostah.deviceprofile"]).then(function (f) {
+ if ((f.result.returnValue == true) &&
+ (f.result.results.length == 1)) {
+ for (var field in f.result.results[0]) {
+ if (field in info) {
+ info[field] = f.result.results[0][field];
+ }
+ }
+ }
+ future.result = {"deviceInfo" : info.toJSON()};
+ });
},

readTelephonyValues: function (info, response) {

0 comments on commit 33f4f67

Please sign in to comment.