-
Notifications
You must be signed in to change notification settings - Fork 274
unavailable for exFAT #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If it is MBR and exFAT it should work if you actvate |
Hi Magnus. I have encountered the same issue with Usbfileman with FAT or exFAT USB sticks. What exactly your suggestion "activate java-fs" means? The exception is thrown from the javafs module - is this related to java-fs you mention? I have just gave Usbfileman a go today, didn't dig much into the code. Working with filesystems on USB devices seems involving, I was expecting a walk in the park but it's not the case ;). Many thanks, Adrian
|
Can you try compiling with target Java version 8 instead of 9? See |
Hi Magnus, I will get up to speed again with Android development after a break of some time. I am giving you below details about my setup. Can Android Developer even target Java 9? Target Compatibility shows as options: 1.8 (Java 8), 1.7 (Java 7), 1.6 (Java 6) and Kotlin 1.3. Same for Source Compatibility. I tried with Target Java 7 - same issue. No stack trace as the debugger was misbehaving. My questions and some comments:
Thanks for your work, it was an eye opener, I was expecting a walk in the park but looks like user-space fs support is not trivial ;). My setup:
|
@azrael8576 Just have a look in the example app code, it us being used there. @Adrian-Rosoga Good point. Have not tried it in a long time. exFAT is highly experimental probably has performance issues and is pretty buggy. Use at your own risk. This might be a problem with my release of java-fs because I compiled with JDK 11 ... Will try tomorrow |
@magnusja |
@magnusja
|
What does the exception say? |
java.io.IOException: Could not read from device, result == -1 errno 0 null |
You can cast |
I get the same error with you, have you fix it when read exFAT? |
upgraded to the version 0.7.1 and exfat still doesn't work |
see #235 (comment) for a fix |
Excuse me, is there a plan to release a version which supports exFAT recent? |
java-fs you have to compile yourself, there is no plan to release this anytime soon as it is highly experimental |
I have tested with java-fs but it seems that implementation details with exfat are still not completed. https://github.com/magnusja/java-fs/blob/master/src/main/java/org/jnode/fs/exfat/NodeFile.java https://github.com/magnusja/java-fs/blob/master/src/main/java/org/jnode/fs/exfat/NodeDirectory.java Do you have any support for these implementations? |
Hey there, yes you are right a lot of the file systems are read only. I have currently no plans to improve this situation. But I am happy to take contributions. |
I'd also like to add that exfat is technically proprietary by Microsoft and there are patents on it. The patents have been granted for inclusion in the Linux kernel, however that doesn't imply that they're also granted for other projects. (Notice: IANAL) Since the Linux kernel code is GPL2-licensed, you could technically take the exfat module out, make it work outside of Linux and license it as a GPL2 project as well. This must be true because the GPL2 explicitly grants that and Microsoft agreed to grant the patents for a GPL2-licensed project. However, I'm pretty sure you cannot link an Apache 2 project to a GPL2 project, only LGPL2 with the restrictions that apply to libusbcommunication (see https://github.com/magnusja/libaums/tree/develop/libusbcommunication#licensing). The only way that such a thing would be feasible (and I'm not even sure) would be to place a standalone binary in the shared storage, with all the security considerations (guys, please don't even try). Another safer way would be to license the entire app as GPL2/3, build the exfat implementation separately, then plug the implementation into libaums. That way the entire app can be rebuilt and replaced by the users. I'm not sure an exfat implementation would be legal in any other way, unless Microsoft blesses us or royalties are paid. |
hi , I get your demo and build it, but when the udisk is exFAT, it can not be checked and read,but i saw your project has this partitionTypes, what shall we do to solve or use it , thank you
The text was updated successfully, but these errors were encountered: