BlackBerry - Avoiding Encryption - blackberry

As part of the application, we are creating a file myApp.cfg in the "file:///store/home/user/" location on the device. The encryption on the device is enabled. Due to this, the myApp.cfg is being renamed to myApp.cfg.rem and the application is not able to read the file anymore. Apart from the obivious answer of not enabling the encryption, is there any way to over come this issue. Is there any area/path on the device where the files are not encrypted? Note this question is for BlacBerry OS 7 and below.
Thanks
Krish

The exact same question has been asked on the BB forums here:
http://supportforums.blackberry.com/t5/Java-Development/BlackBerry-Avoiding-Encryption/td-p/2552487
Mark Sohm has answered as follows:
The basic answer is to use ExtendedFileConnection, which can read and write the .rem files. Have a look at the JavaDocs and let us know if you get stuck.
JavaDocs: http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/io/file/ExtendedFileConnection.html

Related

.epub e-book can't be read in Apple Books

I have an .epub e-book that was created in 2018. It was tested and worked with Kindle, Apple, and several other readers.
Now, the file does not work in Apple books - and multiple people have tested or complained about this.
I updated the file to make some corrections, and I still experience the error.
The exact error is: "Book Content Unavailable. There was a problem loading book content. Try closing and reopening the book or relaunching the device." (This does nothing.)
But I can take the exact same file and open it in Kindle, Nook app, and two other e-readers I downloaded from the AppStore. They read it without incident.
I created the book in Calibre and ran both the Calibre bug check and the ePubcheck plugin. No errors found.
I have no idea what the problem is, and why it is just Apple. Has anyone else encountered this? Any ideas or guesses?
Searches for similar problems from others yielded only user-related questions.
The latest version of Apple Books (corresponding to at least iOS v16.1) has a bug that has rendered certain eBooks unreadable. This seems to persist between iPad OS and iOS.
I have experienced this specifically with ePub format books created from Google Docs. One poor workaround I have found is using Pages to create the ePub version of the file - this version works, though, is without headers.
I suspect several bugs exist in the "updated" version of Books. You could try creating the ePub with a different program.
Would love if anyone has found a fix for this.

Retrieving finder comment of a file in iOS application

I am trying to use the finder comment field of a file stored in the folder of my iOS application (I'm talking about local storage, not in the cloud). The function MDItemCreate that would enable me to do so easily is not available in iOS applications apparently, which must be why the build currently fails with the error warning : "Cannot find 'MDItemCreate' in scope". Apple documentation in fact states that this method is only available on MacOS.
I have tinkered with FileManager but it doesn't grant access to comments.
This topic seems related but the solution is quite opaque to me.
My understanding of Swift is rather limited, if you would be so kind as to provide a simple and detailed answer I'd be much grateful.
With thanks,
Julien
I'm not completely certain, but messages like "Cannot find 'X' in scope" are often due to a forgotten import statement. MDItemCreate(_:_:) (docs) seems to be part of the Core Services framework, which has been part of iOS since iOS 12. Have you imported the framework?
You can do this (at the top of your .swift file) as follows:
import CoreServices

Qt for iOS development: File read and write

I'm using Qt5.5 for iOS development.
I'm wondering how to find and open a file in an iOS device to read and write using Qt5.5. As I know, there's no such file tree structure in iOS. When I download a picture, for example, I even do not know where it locates. But I can see it in apps.
Is there anyone can help? Thanks very much.
I am no expert with Qt, but I believe you need the QStandardPaths class.
iOS is no different to any other platform that stores files in certain pre-defined locations.

Isaac Wasserman: How can look at all of the source code for an iOS app?

[3/16/15, 7:38:28 PM] Isaac Wasserman: I want to make an app that uses similar mechanics to Madden mobile. I want to look at the code using Xcode, but it doesn’t seem like I can read it if it’s not a project. It contains .viv files.
You can't get the code from the app, the app is a compiled binary. On top of that it is encrypted so even getting the binary is difficult.
Even if you could that would be stealing unless you had explicit permission.
If you have connections with the developer they might give you the source, but that's about it. You can always take notes on what the app does that you want to replicate and then come up with your own solution to accomplish it.

manipulate EXIF data on ios 7, armv7

I tried to use the iphone-exif library but it seems that this wont work on armv7 only 6 or below. I am new to ios dev and am curious if there is another solution or a way to compile this for armv7?
I am in need of a way to both read and write the metadata for orientation issues and geolocation.
Thanks
Hope you got an answer as this was posted a while ago but here's my thoughts.
You can use CGImageDestinationSetProperties, since iOS4 to add metadata to set of images in a destination. It includes EXIF, IPTC and a lot of other information.
Check out the Image I/O Programming guide on Apple's dev site for more.The documentation references OS X mostly but it's all applicable to iOS.
Basically you're creating CGImageRefs from files or data, putting them somewhere then applying properties to them.

Resources