Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7752397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:47:23+00:00 2026-06-01T11:47:23+00:00

My Android application attempts to read the physical sectors of the SD card by

  • 0

My Android application attempts to read the physical sectors of the SD card by accessing the actual device (in my case, /dev/block/vold/179:1). (this is on a rooted phone, of course)

I’m able to open the device as a FileInputStream, and read data from it. However, I can’t seem to read it past the 2GB mark (my memory card is 16GB).

Is this because Android doesn’t support files greater than 2GB? If that’s the case, why do functions like position() and skip() accept long arguments??

Does anyone have advice on how to read from the device past 2GB?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:47:25+00:00Added an answer on June 1, 2026 at 11:47 am

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to start the BroadcastReceiver of other application installed on my android device
Android application should show Events happening in city as per day/month/year anywhere in the
My android application takes sms messages from a BroadcastReceiver and copies the message into
My Android application was working in English and I have to provide the users
My android application is saving some stats to internal storage. Each file name is
My Android application uses Java OAuth library, found here for authorization on Twitter. I
In Android application development, I frequently go through the word CallBack in many places.
My Android application uses a secret key to generate a token for authentication purposes.
My android application has several warnings of the following form when I run it
My Android application contains a number of language-independent strings, such as tariffs and support

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.