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 3755598
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:43:24+00:00 2026-05-19T09:43:24+00:00

Shared libraries .so files are placed in lib/armeabi in an apk file. I have

  • 0

Shared libraries .so files are placed in lib/armeabi in an apk file.

I have read after installation the libs gets extracted to /data/data/application_package/lib

How can I get the exact path to this directory in my application at run time?
Is this directory readable by the application? Or is only executeable access allowed?
If it is readable – Is this still true for copy protected applications?

  • 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-05-19T09:43:25+00:00Added an answer on May 19, 2026 at 9:43 am

    You can get the exact path with:

    String libraryPath = getContext().getApplicationInfo().dataDir + "/lib";
    

    The directory and its files are readable by the application.

    The unix permissions are set to rwxr-x--x. So applications with
    the same group can read the files.

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

Sidebar

Related Questions

Say I have an application in Linux that uses shared libraries ( .so files).
This question is mainly aimed at shared libraries (.so files) compiled for Linux platforms.
We have a large amount of legacy C++ code in shared libraries that are
two shared libraries liba.so and libb.so. liba.so uses libb.so. All c files are compiled
From my knowledge, *.pc files store metadata about shared libraries. Does the linker automatically
INTRO I have a TCP/HTTP server that supports plugins in form of Shared Libraries
I have two shared libraries in Linux that when built are identical in all
I have compiled shared libraries dynamically linked against libstdc++.so using GLIBCXX_3.4.11. I want to
I have some code that uses some shared libraries (c code on gcc). When
When compiling shared libraries in gcc the -fPIC option compiles the code as position

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.