Page 1 of 9 123456 ... LastLast
Results 1 to 20 of 173
Like Tree47Likes
  1. PrplHaz4's Avatar
    Posts
    48 Posts
    Global Posts
    57 Global Posts
       #1  
    **** UPDATE 6/27/2015: As of App Catalog Shutdown, this method will no longer work!! ****

    Didn't like the idea of uninstalling and reinstalling all my apps in order to save the IPKs, so wrote a (couple) scripts...

    Instructions
    All info required by the script can be gotten from Impostah. I used the "email" feature to email me the info.
    * "token" from Palm Profile
    * "ndUid" from Device Profile (Devices with cellular radios - Pre/Veer/4G - will use IMEI instead - IMEI:XXXXXXXXXXXXXXXXX)
    * "Installed Apps" from App Catalog -> Installed Apps (save the content of this as ipkdump.json)
    * Detailed instructions here: http://blog.jjhayes.net/wp/2014/12/2...alog-shutdown/

    Known Issues:
    * Encoding of the .json file can be a problem if using Windows Notepad to save the file. When saving ipkdump.json, be sure to set Encoding: UTF-8 in the "Save" dialog box
    * Apps w special characters causing probs: Assassin's Creed™: Alta´r's Chronicles, Genius Greedy Mouse

    I have no idea how this works for people with a ton of apps installed - for me it was pretty quick (< 5mins) for ~30 apps.

    I won't have much time for support, so if it doesn't work, post here maybe others can help.

    github: https://github.com/PrplHaz4/webos-ipk-dump
    download: https://github.com/PrplHaz4/webos-ip...p.zip?raw=true

    Code:
    > webos-ipk-dump.exe
    or
    > webos-ipk-dump.exe [token] [ndUid] [ipkdump.json]
    Update 5 - 1/1/2015
    * Use IMEI instead of nduId for devices with cellular radios

    Update 4 - v1.2 12/22/2014:
    Compatibility and error logging updates

    Update3:
    Script updated to handle UTF-16 encoding (so if it didn't work before, try it now!)
    https://github.com/PrplHaz4/webos-ip...fcd9a18505ef51
    Pre users: deviceId should be in format IMEI:XXXXXXXXXXXXXXXXX see post #25 by gizmo21

    Update2:
    Sample valid ipkdump.json
    Code:
    {
        "AccuWeather for HP TouchPad": {
            "appId": 10224,
            "publicApplicationId": "com.accuweather.accuweather",
            "title": "AccuWeather for HP TouchPad",
            "creator": "AccuWeather, Inc.",
            "version": "1.1.0",
            "vendorURL": "http://www.accuweather.com",
            "appIcon": "http://cdn.downloads.palm.com/public/10224/icon/S/icon_1_0_0.png",
            "appIconBig": "http://cdn.downloads.palm.com/public/10224/icon/icon_1_0_0.png",
            "appLocation": "https://cdn.downloads.palm.com/apps/10224/1.1.0/files/com.accuweather.accuweather_1.1.0_all.ipk",
            "size": 34441824,
            "installedSize": 51675136,
            "applicationId": "10224"
        },
        "Epicurious Recipes & Shopping List": {
            "appId": 9289,
            "publicApplicationId": "com.condenast.epicurious",
            "title": "Epicurious Recipes & Shopping List",
            "creator": "Conde Nast",
            "version": "1.0.0",
            "vendorURL": "http://www.condenast.com",
            "appIcon": "http://cdn.downloads.palm.com/public/9289/icon/S/icon_1_0_0.png",
            "appIconBig": "http://cdn.downloads.palm.com/public/9289/icon/icon_1_0_0.png",
            "appLocation": "https://cdn.downloads.palm.com/apps/9289/1.0.0/files/com.condenast.epicurious_1.0.0_all.ipk",
            "size": 8881348,
            "installedSize": 41222144,
            "applicationId": "9289"
        }
    }
    Update:
    I had hopes of being able to serve the .php version and deliver users a tar but in addition to some concerns about retaining a cache of apps I didn't own/purchase, my shared host wouldn't let the process run as long as necessary.

    It makes more sense for this activity to be a calculated, combined effort, but time is running out, and there seems to be a good number of legal/moral concerns, so here it is.
    Last edited by PrplHaz4; 06/27/2015 at 11:44 AM. Reason: Does not work after app catalog shutdown!
  2. #2  
    Thanks for this!

    I've been putting some work in an updated version of Impostah that would allow users to export all the app metadata they see in their App Catalog (since it varies by device, region, webOS version etc). By collecting these and combining them, we can rebuild our own App Catalog that's as complete as possible and make sure we have a backup of as many IPK's and their versions before the servers are shut down. I was able to get 2100+ (free) IPK files this way already.

    It can also collect the info for the paid apps so these IPK's could be harvested and placed in a repository.

    Still need to see how to use this information but starting to collect it is key, we still have till 15th of January to work out other logistics

    Only the window for app purchases is closing down rapidly....
    HP Veer (daily driver), HP Pre 3, HP Touchpad Proper 4G/LTE (Sierra MC7710), HP Touchpad 32GB WiFi, Palm Pre 2
  3. #3  
    ahah, just tried... it gave error downloading every single app, aside the App Catalog ipk
  4. PrplHaz4's Avatar
    Posts
    48 Posts
    Global Posts
    57 Global Posts
       #4  
    Quote Originally Posted by mazzinia View Post
    ahah, just tried... it gave error downloading every single app, aside the App Catalog ipk
    double check that you're using the correct token and device ID - how many apps did you have, and what was the error?
  5. #5  
    triple checked ... token ( without " " ) nduid , json file
    I get "error downloading file" aside for the app catalog. if I purposefully add __ at the end of nduid or token , I get the same

    I tried also the interactive way and copy/paste , no differences

    Less than 50 apps, I would say
  6. PrplHaz4's Avatar
    Posts
    48 Posts
    Global Posts
    57 Global Posts
       #6  
    Quote Originally Posted by mazzinia View Post
    triple checked ... token ( without " " ) nduid , json file
    I get "error downloading file" aside for the app catalog. if I purposefully add __ at the end of nduid or token , I get the same

    I tried also the interactive way and copy/paste , no differences

    Less than 50 apps, I would say
    iiinteresting....I'll take troubleshooting to PM and post if we find anything out....
    TJs11thPre likes this.
  7. #7  
    I literally have 26 apps, 8 patches, and 10 other pkgs according to Preware, so I'm no heavy user. I might have one app from the doomed cat.

    But id like to say thanks, that i really appreciate the efforts by everyone here scrambling to preserve a foundation for webOS.

    Sincere thanks. Really.
    BorkZorkOrc likes this.
  8. #8  
    So can some one clarify for me?
    Using the data from Impostah, I can use the scripts to download copies of all my apps from the catalogue via a desktop computer browser to be stored on that computer. (?)

    As we now have an app catalogue listing, that in theory, could be plugged into to this (the app ID & IPK URL) to download any app, though I'd need a token for the paid ones. (?)

    So would it be a quick method to store apps? I'm aware Herrie is already doing something like this for free apps.
  9. #9  
    I just tried that, but I fail at creating the ipkdump.json file.
    If I just mail the list to me straight from Impostah and use that, the script gives me a TypeError: list indices must be integers, not str
    The content is just the names of the apps, comma separated and in enclosed in [ ]

    If I try to safe the list first in Impostah, I get an error there: Service Error (saveResponse): Invalid or missing object parameter

    How should the json file look like?

    Regards,
    UW
    Handspring Visor -> Palm Centro -> HP Pre 3 / HP TP 4G -> amazon fire phone 64GB
  10. #10  
    That's weird.. ok I'm having issues but not up to this point.

    Example here

    {"World Clock":{"appId":8343,"publicApplicationId":"com.appartists.worldclock","title":"World Clock","creator":"App Artists","version":"1.0.1","vendorURL":"http://appartist.posterous.com/","appIcon":"http://cdn.downloads.palm.com/public/8343/icon/S/icon_1_0_2.png","appIconBig":"http://cdn.downloads.palm.com/public/8343/icon/icon_1_0_2.png","appLocation":"https://cdn.downloads.palm.com/apps/8343/1.0.1/files/com.appartists.worldclock_1.0.1_all.ipk","size":429218,"installedSize":4128768,"applicationId":"8343 "},"Cri and so on

    human readable version follows ( the above was saving to a json file using the menu option in impostah, the following is by emailing the list shown on screen instead )

    {
    "World Clock": {
    "appId": 8343,
    "publicApplicationId": "com.appartists.worldclock",
    "title": "World Clock",
    "creator": "App Artists",
    "version": "1.0.1",
    "vendorURL": "http://appartist.posterous.com/",
    "appIcon": "http://cdn.downloads.palm.com/public/8343/icon/S/icon_1_0_2.png",
    "appIconBig": "http://cdn.downloads.palm.com/public/8343/icon/icon_1_0_2.png",
    "appLocation": "https://cdn.downloads.palm.com/apps/8343/1.0.1/files/com.appartists.worldclock_1.0.1_all.ipk",
    "size": 429218,
    "installedSize": 4128768,
    "applicationId": "8343"
    },
    "Critical Mass": {
    "appId": 2658,
    etc
  11. #11  
    Quote Originally Posted by Preemptive View Post
    So can some one clarify for me?
    Using the data from Impostah, I can use the scripts to download copies of all my apps from the catalogue via a desktop computer browser to be stored on that computer. (?)

    As we now have an app catalogue listing, that in theory, could be plugged into to this (the app ID & IPK URL) to download any app, though I'd need a token for the paid ones. (?)

    So would it be a quick method to store apps? I'm aware Herrie is already doing something like this for free apps.
    Yeah, I did this for 2100+ free apps.

    I have my updated Impostah version ready, will upload it shortly. This can export:

    1. Full app catalog from that's available for the device (this way we can get the Spanish, German, French, Italian etc apps as well). So we'd need this export for each of the devices out there with possibly different webOS versions as well. This can be used to create a full database of apps that were available in the HP app catalog.
    I got the free ones all downloaded.

    2. For paid apps I included 2 options: 1 to export just the paid apps info + email address and device model + webos version and email it to me. 2. Option to also include the deviceid and token that should allow downloading of the paid app as well.
    HP Veer (daily driver), HP Pre 3, HP Touchpad Proper 4G/LTE (Sierra MC7710), HP Touchpad 32GB WiFi, Palm Pre 2
    jurajtu and Paulscarbs like this.
  12. #12  
    Quote Originally Posted by Herrie View Post
    Yeah, I did this for 2100+ free apps.

    I got the free ones all downloaded.
    Of all the national catalogues ?
  13. PrplHaz4's Avatar
    Posts
    48 Posts
    Global Posts
    57 Global Posts
       #13  
    Quote Originally Posted by HerrSchwarz5 View Post
    How should the json file look like?

    Regards,
    UW
    I updated the original post with a sample .json file.

    Note no leading or trailing space, and no comma after the last entry (before the last }). Should be curly braces {} not square brackets [].
  14. #14  
    Hi,

    From french app catalog, I get this error

    Code:
    Traceback (most recent call last):
      File "C:\Apps\python\cx_Freeze\initscripts\Console3.py", line 27, in <module>
      File ".\webos-ipk-dump.py", line 82, in <module>
        main()
      File ".\webos-ipk-dump.py", line 26, in main
        apps = readIpkJson(inputFile)
      File ".\webos-ipk-dump.py", line 59, in readIpkJson
        return json.load(codecs.open(inputFilename, 'r'))
      File "C:\Apps\python\App\lib\json\__init__.py", line 271, in load
      File "C:\Python\32-bit\3.2\lib\encodings\cp1252.py", line 23, in decode
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 61223: character maps to <undefined>
    Do you know how to resolve it ? Is it a french/unicode charmap problem ?

    [Edit] I don't even imagine why it points to files in c: There is no python install there !

    [Edit #2] Okay, I tried the php script from github, this one works without problem
    Last edited by lc_lol; 10/25/2014 at 05:32 PM.
  15. #15  
    No luck here either. Just Error Downloading File except for findapps.

    Tried making the ipkdump.json just one app, and it still failed.

    Any ideas greatly appreciated.

    Baldric
  16. #16  
    Quote Originally Posted by lc_lol View Post
    Hi,

    From french app catalog, I get this error

    Code:
    Traceback (most recent call last):
      File "C:\Apps\python\cx_Freeze\initscripts\Console3.py", line 27, in <module>
      File ".\webos-ipk-dump.py", line 82, in <module>
        main()
      File ".\webos-ipk-dump.py", line 26, in main
        apps = readIpkJson(inputFile)
      File ".\webos-ipk-dump.py", line 59, in readIpkJson
        return json.load(codecs.open(inputFilename, 'r'))
      File "C:\Apps\python\App\lib\json\__init__.py", line 271, in load
      File "C:\Python\32-bit\3.2\lib\encodings\cp1252.py", line 23, in decode
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 61223: character maps to <undefined>
    Do you know how to resolve it ? Is it a french/unicode charmap problem ?

    [Edit] I don't even imagine why it points to files in c: There is no python install there !

    [Edit #2] Okay, I tried the php script from github, this one works without problem
    I had similar errors with some json file with the beta feeds. It seems that there are some special characters like stars in the catalog and descriptions of the apps also there were different types of quotes. I fixed that with the beta-feeds posted by Horlzel in different post but figured out the location of the ipk is missing and this is what the script complained about when trying to parse the file.
    In order to troubleshoot I used Notepad++ use Search->Go to ... and use Offset and plug the number at which the script gives you and error. Assuming the descriptions are not important and you should be even just use search and replace the offending characters. Of course this is the quick and dirty way. I'm sure the op can try to use different encoding or at least make that a parameter. Seems python uses the OS default after doing a quick search.
  17. #17  
    I had no issues with the script and downloaded all 154 apps I got installed on the TP. Didn't tried the phone ones.
    Just wanted to chime in and have some positive feedback.
    Thanks to the OP for doing this. It saves some extra steps and the risk for removing apps and installing them again.
  18. PrplHaz4's Avatar
    Posts
    48 Posts
    Global Posts
    57 Global Posts
       #18  
    Thanks for the feedback everyone. I knew going in there may be encoding probs and tried to force everything to utf8. Will attempt that again as clearly there are some internationalization probs. Will update the post when I've compiled a new version.
  19. #19  
    I'm sorry to ask, but coding is not something I'm familiar enough with to understand what's going on here.

    Do I have to export the app info from Impostah individually for each app? Or does the .json file contain all of my apps' info and the executable will run through the file and download each .ipk automatically?

    It's been a terribly busy two weeks and I haven't had time to sit down and do anything for saving my apps. I hope to take Wednesday afternoon and get all of the first steps done. Any answer or help is appreciated, along with your patience for my lack of programming knowledge.
    Last edited by krotech; 10/26/2014 at 10:32 AM. Reason: Removed paragraph
  20. PrplHaz4's Avatar
    Posts
    48 Posts
    Global Posts
    57 Global Posts
       #20  
    Quote Originally Posted by krotech View Post
    Do I have to export the app info from Impostah individually for each app? Or does the .json file contain all of my apps' info and the executable will run through the file and download each .ipk automatically?
    The exported .json should include ALL the apps - which is the default I believe from the "Installed Apps" section of Impostah. The script will (should?) download all the apps in that list.
Page 1 of 9 123456 ... LastLast

Similar Threads

  1. How to create Save/Restore script?
    By broncot in forum webOS Development
    Replies: 3
    Last Post: 10/10/2014, 11:25 AM
  2. Replies: 4
    Last Post: 01/26/2014, 01:40 PM
  3. Replies: 6
    Last Post: 05/06/2011, 11:43 PM
  4. Script to save attachments to new directory
    By mike_pre in forum webOS Tips, Info & Resources
    Replies: 23
    Last Post: 01/28/2011, 02:56 PM
  5. Would A Save/Restore Game Progress Script Sharing Community Be Possible?
    By the2ndflood in forum webOSNation.com - Site News, Feedback & Help
    Replies: 6
    Last Post: 06/17/2010, 02:34 PM

Tags for this Thread

Posting Permissions