12/03/2011, 05:52 PM
|
#1 (permalink) |
|
Banned
Posts: 91
|
Here is workaround for secured downloads in Web app ...
INSTALLATION: Step 1: extract attached downloader.zip anywhere on your device Step 2: connect to device and run install.sh to install patch (uninstall.sh to revert changes) Known issues: - there is no way to download file if file with same name already exists in /media/internal/downloads (ie you have to delete/rename existing file first, then retry downloading) - "Downloader" does not hide itself after downloaded file is opened - no download progress given - some cookies can contain special characters that will break service from working USAGE FROM OTHER APPLICATIONS: Since v0.0.6 it is possible to use Downloader app from other apps. To get url downloaded into /media/internal/downloads put this into your app: Code:
var launcher = enyo.create({kind: "PalmService", name : "launcher", service : "palm://com.palm.applicationManager", method : "open"});
launcher.call({"id":"xx.downloader", "params": { target : inUrl, caller : enyo.fetchAppInfo().id }});
Code:
onRelaunch: function(inSender, inEvent) {
console.log('relaunch...' + inEvent.params.downloader);
}
Any questions / comments are welcome. HISTORY - v0.0.6: callback now working + fix in url handling v0.0.5: added option to enter login/password before downloading starts v0.0.4: added support for IP address based URL v0.0.3: if Downloader app is uninstalled/not-installed properly then Web app will fallback to original download bar Last edited by devwithoutpower; 12/12/2011 at 01:52 PM. |
12/04/2011, 12:29 PM
|
#4 (permalink) | |
|
Member
![]()
Posts: 14
|
Quote:
|
|
12/04/2011, 02:45 PM
|
#5 (permalink) | ||
|
Banned
Posts: 91
|
Quote:
Quote:
You need some way to edit files directly on device (part I and part II) and then some way to install IPK (application) |
||
12/04/2011, 09:56 PM
|
#8 (permalink) |
|
Member
![]()
Posts: 14
|
That would be great...if devwithoutpower doesnt mind. I am somewhat tech savy but the post went over my head and I barely got past the first step. I do not know if it even did anything to my touchpad after entering those commands...sigh. This is such a huge issue and I am surprised more people are not commenting on it. This is such a vital patch to make this device complete.
|
12/05/2011, 12:59 AM
|
#9 (permalink) |
|
Member
![]()
Posts: 4
|
first off, thank you devwithoutpower.
So ive done everything youve instructed however when I attempt to download a pdf from Blackboard, it never opens. The downloader app opens but nothing happens. The file doesnt exist in the downloads folder either. Any thoughts? And this happens with all downloads, not just pdfs from blackboard. |
12/05/2011, 03:16 AM
|
#10 (permalink) | ||||
|
Banned
Posts: 91
|
Quote:
Quote:
Quote:
Quote:
Downloader is hybrid application - as soon as service plugin gets connected to UI, there should be information what url is being downloaded displayed. If you don't have this information - then most probably there was problem with executing plugin (for example something went wrong in Part I). If you see 'Downloading ...' message, but nothing happens afterwards - then you should check running processes on device ... run 'ps -ef | grep service' and 'ps -ef | grep curl' on your Touchpad. Let me upload new version of IPK with some more logging added - so you can check 'palm-log xx.downloader' (if you have SDK installed) ... or 'cat /var/log/messages | grep downloader' (on device) NOTE: for Downloader to be able to successfully download files from secured sites (like for example from this forum) - there must be required cookies stored in database ... in most cases this is achieved by checking 'Remember me' or something similar when logging. AFAIK Web app does not store session cookies in db - hence external app won't see them. |
||||
12/05/2011, 04:55 AM
|
#11 (permalink) |
|
Banned
Posts: 91
|
check 1st post for new instructions ... I will update archive later (promised improved BrowserApp.js patch) when I have chance to test my changes on device, but at least installation (and reverting back to original state) should be much easier now. You only need way to execute shell command on device.
|
12/05/2011, 06:30 PM
|
#12 (permalink) |
|
Member
![]()
Posts: 9
|
still dosent seem to work but its not like i can fix it so i'll be waiting patiently. Hopefully this will get resolve before the start of my next semester
.Ps. if any developpers working on the patch needs a university account (blackboard login) for testing purposes let me know and i would be more then happy to give them my username & password. |
12/05/2011, 06:51 PM
|
#13 (permalink) | |
|
Member
![]()
Posts: 280
|
Quote:
|
|
12/05/2011, 07:26 PM
|
#15 (permalink) | |
|
Homebrew Developer
![]() ![]() |
You say this is a hybrid? So, could a developer make use of that plugin to download things specifically related to a particular app, setting up their own access cookies or something? Would you allow that?
__________________
Author: Remove Messaging Beeps patch for webOS 3.0.5, Left/Right bezel gestures in LunaCE, Whazaa! Messenger and node-wa, SynerGV 1 and 2 - Google Voice integration, XO - Subsonic Commander media streamer, AB:S Launcher Quote:
GO OPEN WEBOS! People asked me for a donate link for my non-catalog work, so here you are:
|
|
12/05/2011, 11:34 PM
|
#20 (permalink) | |||
|
Banned
Posts: 91
|
Quote:
Quote:
Try running uninstall.sh followed by install.sh and check output - post it here... Quote:
Do you have 'Downloader' card started? If yes - can you see 'Waiting to connect'? 'Downloading....'? Result? |
|||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



