-
-
Notifications
You must be signed in to change notification settings - Fork 993
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
[Android] "FILE_TRUNCATE Operation not permitted" on ARM64 only #6750
Comments
I think it is somehow related to this error #6687. I don't know whether the error is related only with |
one option would be to use the posix disk io, rather than mmap disk io. That will use a simpler and more portable posix file io functions. |
Is this requires a future implementation on the libtorrent side, right? Or is it chosen during build configuration? |
what do you mean? |
you can select the disk back-end at session construction time, as part of the session_params object. See disk_io_constructor. It's also possible to disable the mmap disk I/O back-end at compile time with |
@arvidn |
@arvidn |
Please provide the following information
libtorrent version (or branch): master
platform/architecture: Android arm64
One of my users collided with the following situation: it uses a tablet with SOC AllWinner A133 (
arm64
) and Android 11. My app uses access to all files (MANAGE_EXTERNAL_STORAGE
permission is used in accordance with Android 11+ limitations).When he tries to download any torrent on SD card, then he gets this error:
[FILE_TRUNCATE] Operation not permitted, code 1
, If he install the APK version forarm64
(I'm using libtorrent4j builds). If he install thearmeabi-v7a
version of the APK, then the downloading is successful.The SD card file system is
exFAT
, becauseexFAT
has become a standard solution for SD cards in recent versions of Android (in the form of thesdfat
driver).The problem is manifested exclusively with
arm64
library, although it successfully usesarmeabi-v7a
version without any errors.The text was updated successfully, but these errors were encountered: