From 33f4f672edc91186cc9c2bf1f95dd20229b2f19c Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 27 Dec 2011 14:38:37 +1030 Subject: [PATCH] Added EU Pre+ --- app/assistants/device-profile-assistant.js | 8 ++++++- ...stem-device-profile-service-override.patch | 21 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 patches/2.2.0/system-device-profile-service-override.patch diff --git a/app/assistants/device-profile-assistant.js b/app/assistants/device-profile-assistant.js index e583042..f5ec9ba 100644 --- a/app/assistants/device-profile-assistant.js +++ b/app/assistants/device-profile-assistant.js @@ -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'}, @@ -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"; diff --git a/patches/2.2.0/system-device-profile-service-override.patch b/patches/2.2.0/system-device-profile-service-override.patch new file mode 100644 index 0000000..bf64c61 --- /dev/null +++ b/patches/2.2.0/system-device-profile-service-override.patch @@ -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) {