Built for Business - Learn more about BlackBerry KEY2
  1. Indir's Avatar
    I was watching a video in the native BB10 app called Browsie Browser, when the video suddenly became unavailable on the website. But the video is still able to be viewed and replayed from the tab it was running in Browsie Browser. Which means it is cached somewhere on my BlackBerry Passport. So the question is how do I find and access the specific folder where Browsie Browser stores its temporary cached files?

    I was able to find the following information: https://developer.blackberry.com/nat...le_system.html

    But I wasn't succesful so far in finding the said cached video file so I could copy and save it on my BlackBerry Passport.

    Posted using a BlackBerry Passport
    10-29-18 04:15 PM
  2. Bla1ze's Avatar
    I doubt you're getting that file. You might have some blind hope by downloading the BB10 SDK and browsing the files internally, but that's a 50/50 shot since most of the cached files are filtered off by permissions and there's no way to elevate your permissions.
    10-29-18 04:30 PM
  3. Indir's Avatar
    Yeah after reading some more into the matter it seems the folder I'm looking for is protected. Meaning you can't access it. Thanks for the help though!

    Posted using a BlackBerry Passport
    10-30-18 06:21 AM
  4. Leyra B10's Avatar
    Not exactly what you are looking for but this should work on the stock browser. Just save the page after you replace the address bar when a video is up.
    javascriptfunction(xs)%7Bfor(var%20i%3D0%3Bi%3Cxs.length%3B% 2B%2Bi)%7Bif(xs%5Bi%5D.currentSrc)%7Breturn%20wind ow.open(xs%5Bi%5D.currentSrc)%3B%7D%7D%7D)(documen t.querySelectorAll('audio%2Cvideo'))%3B


    Posted via CB10
    10-31-18 12:33 AM
  5. Leyra B10's Avatar
    Yeah after reading some more into the matter it seems the folder I'm looking for is protected. Meaning you can't access it. Thanks for the help though!

    Posted using a BlackBerry Passport
    What folder was it out of curiosity??

    Posted via CB10
    11-13-18 12:48 PM
  6. lolo9269's Avatar
    Not exactly what you are looking for but this should work on the stock browser. Just save the page after you replace the address bar when a video is up.
    javascriptfunction(xs)%7Bfor(var%20i%3D0%3Bi%3Cxs.length%3B% 2B%2Bi)%7Bif(xs%5Bi%5D.currentSrc)%7Breturn%20wind ow.open(xs%5Bi%5D.currentSrc)%3B%7D%7D%7D)(documen t.querySelectorAll('audio%2Cvideo'))%3B


    Posted via CB10
    So we can use javascript in url bar in native browser for access somes thing like clean cache if it possible or other features

    Love Peace and Share
    11-13-18 02:06 PM
  7. Leyra B10's Avatar
    So we can use javascript in url bar in native browser for access somes thing like clean cache if it possible or other features

    Love Peace and Share
    Yep and depending on your exp with JS they can be extremely useful, including some low level abstractions and qnx methods. I only keep about 3 or 4 saved in the browser, rest are saved to a page or clipboard app like Enpass and use localStorage for bookmarks I can backup.
    https://github.com/bradtraversy/bookmarker


    https://www.squarefree.com/bookmarklets/

    https://www.addtoany.com/share#url=h...Onlinejump=yes

    https://www.hongkiat.com/blog/100-us...ultimate-list/



    Posted via CB10
    11-13-18 03:30 PM
  8. lolo9269's Avatar
    Yep and depending on your exp with JS they can be extremely useful, including some low level abstractions and qnx methods. I only keep about 3 or 4 saved in the browser, rest are saved to a page or clipboard app like Enpass and use localStorage for bookmarks I can backup.
    https://github.com/bradtraversy/bookmarker


    https://www.squarefree.com/bookmarklets/

    https://www.addtoany.com/share#url=h...Onlinejump=yes

    https://www.hongkiat.com/blog/100-us...ultimate-list/



    Posted via CB10
    Could you give some Exemple of qnx bb10 javascript possibilty or link for test some. I would like test clean cache option or other feature possibilty in browser

    Love Peace and Share
    11-14-18 02:00 PM
  9. Leyra B10's Avatar
    Could you give some Exemple of qnx bb10 javascript possibilty or link for test some. I would like test clean cache option or other feature possibilty in browser

    Love Peace and Share
    Yea I'd be happy to but I don't have anything I would consider conclusive for you.
    I believe you can add a random query string for disabled caching.
    You'll likely need https and some hard coded functions premade, Id recommend using ajax to deliver your scripts, even a local web server run with term48 or something else should be fine.
    Posted via CB10
    Last edited by Leyra B10; 11-25-18 at 12:54 AM.
    11-14-18 05:16 PM
  10. Indir's Avatar
    What folder was it out of curiosity??

    Posted via CB10
    If you look at this picture https://developer.blackberry.com/nat...filesystem.png it will show you that any application working directory, meaning also the one used by Browsie Browser, is protected. So only the application can access it. More info;
    "Before you can do any work in the file system on the device, you should make yourself familiar with the working directory. The working directory is where your app is started and is also known as the current directory and the sandbox. Access to files and folders in the working directory is governed by UNIX-style groups and permissions.

    Data files that you package with your app (when you compile the app) are located in the assets folder in the file system. Your app has read-only access to this folder, which means that you can load data from files in this location, but you can't save new data in these files. When you create new data files dynamically while your app is running, they are stored in the data folder. Your app has full read-write access to this folder, so you can load and save data using files in this location.

    Applications cannot create new folders or files at the root of the working directory; they can access only the folders listed in the picture I linked above.
    Posted using a BlackBerry Passport
    11-15-18 07:54 AM
  11. Leyra B10's Avatar
    If you look at this picture https://developer.blackberry.com/nat...filesystem.png it will show you that any application working directory, meaning also the one used by Browsie Browser, is protected. So only the application can access it. More info;
    "Before you can do any work in the file system on the device, you should make yourself familiar with the working directory. The working directory is where your app is started and is also known as the current directory and the sandbox. Access to files and folders in the working directory is governed by UNIX-style groups and permissions.

    Data files that you package with your app (when you compile the app) are located in the assets folder in the file system. Your app has read-only access to this folder, which means that you can load data from files in this location, but you can't save new data in these files. When you create new data files dynamically while your app is running, they are stored in the data folder. Your app has full read-write access to this folder, so you can load and save data using files in this location.

    Applications cannot create new folders or files at the root of the working directory; they can access only the folders listed in the picture I linked above.
    Posted using a BlackBerry Passport
    Thank you, while that might have been the hope any software is going to have some leaks. Your just looking to be in the same place but within a diff boundary of permission. A hard coded function over https I think would be able to at least get the cached file. A little like nabbing the APK from Amazon before it installs.

    'If I was to ask the other guy if you were the liar, what would he tell me'

    With the video you were looking for, that bookmarklet just opens the media source in a new window and tries to return playback. With open() being a socket api.. I think, is why Save Page then allows you to pirate the media file.

    Posted via CB10
    Last edited by Leyra B10; 11-25-18 at 12:12 AM.
    11-15-18 08:31 AM
  12. Leyra B10's Avatar
    Could you give some Exemple of qnx bb10 javascript possibilty or link for test some. I would like test clean cache option or other feature possibilty in browser

    Love Peace and Share
    Last edited by Leyra B10; 11-19-18 at 05:25 AM.
    11-18-18 11:28 AM
  13. Leyra B10's Avatar
    These are helpful

    https://codepen.io/

    RJLeyra/full/QJgWyW

    Posted via CB10


    Posted via CB10
    11-19-18 05:24 AM

Similar Threads

  1. Replies: 4
    Last Post: 11-01-18, 03:02 PM
  2. Airplane mode via convenience key or native shortcut
    By cruzkey2 in forum BlackBerry KEY2
    Replies: 5
    Last Post: 10-30-18, 11:52 AM
  3. LED/Notifications App
    By OMGitsRLR-1 in forum BlackBerry KEY2
    Replies: 3
    Last Post: 10-30-18, 02:22 AM
  4. Help! Dtek app says Motion unsecured!!
    By OTCHRussell in forum Ask a Question
    Replies: 14
    Last Post: 10-29-18, 05:55 PM
LINK TO POST COPIED TO CLIPBOARD