Android low-level read of SD card greater than 2GB

自闭症网瘾萝莉.ら 提交于 2019-12-04 03:25:23

try create with a native (jni) lib and call __llseek()

int __llseek(unsigned int fd, unsigned long offset_high,
             unsigned long offset_low, loff_t *result,
             unsigned int whence);

I think you should add the prototype in your code because I doubt there is a direct include (sys/linux-unistd.h)

of course this approach is a bit undocumented :) but you can use java after android 3 and this trick before

man _llseek for additional infos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!