Content

Bug #611

Opening IPK in File Manager gives error

Added by Alan Morford almost 5 years ago. Updated over 3 years ago.

Status:Closed Start date:09/13/2014
Priority:Normal Due date:
Assignee:Achim Königs % Done:

100% Total progress

Category:- Spent time: -
Target version:LuneOS - Café Miel

Description

I pushed a few Enyo1 apps to /media/internal/downloads just to play around. Browsing to that folder in File Manager is no problem. Tapping on one of the IPKs and selecting "Open file" nets an error message "Unauthorized call to open an ipk". Side note: all three ipks install fine using Preware browse.

Testing on a Wifi Touchpad, dual boot with webOS 3.0.5, LuneOS dev build from 10 Sep

Issue is consistent from reboot to reboot and Luna-Next restarts


Issue Hierarchy ()

History

Updated by Tom King almost 5 years ago

  • Target version set to Affogato
  • Category set to System Services

Updated by Simon Busch almost 5 years ago

  • Target version deleted (Affogato)

Updated by Herman van Hazendonk almost 5 years ago

  • Target version set to Black Eye

This is a bit of an odd one. Did a bit of research on it. We probably need to set the resource handler for IPK with the following command:

luna-send -n 1 luna://com.palm.applicationManager/addResourceHandler '{"appId":"org.webosinternals.preware", "extension":"ipk", "mimeType":"application/vnd.webos.ipk"}'

or

luna-send -n 1 luna://com.palm.applicationManager/addResourceHandler '{"appId":"org.webosinternals.preware", "extension":"ipk", "mimeType":"application/vnd.preware.ipk"}'

However after doing this and doing a reboot, it still doesn't seem to work for me when I try to call it:

luna-send -n 1 luna://com.palm.applicationManager/open '{"target":"file:///media/internal/ca.canuckcoding.internalz_1.0.1_all.ipk"}'

or

luna-send -n 1 luna://com.palm.applicationManager/open '{"target":"/media/internal/ca.canuckcoding.internalz_1.0.1_all.ipk"}'

However the following does work:

luna-send -n 1 luna://com.palm.applicationManager/open '{"id":"org.webosinternals.preware", "params":{"target":"/media/internal/ca.canuckcoding.internalz_1.0.1_all.ipk"}}'

Not sure where the problem lies?

Updated by Herman van Hazendonk almost 5 years ago

Internalz used the following calls:

ExplorerAssistant.prototype.palmOpenFileGeneric = function(onFailure) {
this.controller.serviceRequest('palm://com.palm.applicationManager', {
method: 'open',
parameters: {
target: 'file://' + this.currItem.path
},
onFailure: onFailure
});
};

And:

ExplorerAssistant.prototype.palmOpenFileSpecific = function(appId, onFailure) {
this.controller.serviceRequest('palm://com.palm.applicationManager', {
method: 'open',
parameters: {
id: appId,
params: {
target: 'file://' + this.currItem.path
}
},
onFailure: onFailure
});
};

ExplorerAssistant.prototype.openIpkFile = function(appId) {
this.controller.serviceRequest('palm://com.palm.applicationManager', {
method: 'open',
parameters: {
id: appId,
params: {
target: 'file://' + this.currItem.path
}
},
onFailure: function(err) {
var appName = "<Unknown>";
if(appId=="ca.canucksoftware.internalz") {
appName = "Internalz Pro";
} else if(appId=="org.webosinternals.preware") {
appName = "Preware";
}
Error($L("#{appname} not found").interpolate({appname:appName}));
}
});
};

Updated by Simon Busch almost 5 years ago

  • Target version changed from Black Eye to Black Tie

Updated by Simon Busch over 4 years ago

  • Target version changed from Black Tie to Breve

Updated by Simon Busch over 4 years ago

  • Target version changed from Breve to Later

Updated by Herman van Hazendonk over 4 years ago

  • Assignee set to Achim Königs

Garfonso, you might know what to do to fix this? Probably some permissions somehow?

Updated by Herman van Hazendonk over 3 years ago

  • Project changed from LuneOS to Apps
  • Category deleted (System Services)

Updated by Herman van Hazendonk over 3 years ago

  • Target version changed from Later to Café Miel
  • % Done changed from 0 to 50

Will be partly solved by https://github.com/webOS-ports/luna-appmanager/pull/11

We'd still need to have Preware register as IPK handler and need to handle the relaunch from Preware as well.

Updated by Herman van Hazendonk over 3 years ago

  • Status changed from New to In Progress

Updated by Herman van Hazendonk over 3 years ago

  • % Done changed from 50 to 100
  • Status changed from In Progress to Closed

Original problem solved with https://github.com/webOS-ports/luna-appmanager/commit/fcda1075201bd4ab001516d01b3ef55205e8d431

Will raise a new issue for implementing the IPK handler

Also available in: Atom PDF