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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:15:40+00:00 2026-05-26T17:15:40+00:00

I have a routed device and when I do this adb shell cat /data/misc/bluetooth/dynamic_auto_pairing.conf

  • 0

I have a routed device and when I do this

adb shell  cat /data/misc/bluetooth/dynamic_auto_pairing.conf

it prints the content of this file.

But in my code when I write something like this, it says that the file does not exist. Well from the console I see it I know is there, but from code I can’t read it. My question is what is the problem , am I missing some permission or what is the problem ? can someone provide me with some code to read the content from this file.

Thanks

File pa = new File("/data/misc/bluetooth/","dynamic_auto_pairing.conf");
//this doesn't works also
//File pa = new File("/data/misc/bluetooth","dynamic_auto_pairing.conf");
//File pa = new File("/data/misc/bluetooth/dynamic_auto_pairing.conf");
if(pa.exists()){
    Log.v("tag", "does exists");
}else{
    Log.v("tag", "does NOT exist");
}
  • 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-26T17:15:40+00:00Added an answer on May 26, 2026 at 5:15 pm

    If the file is on sdcard, try:

    File pa = new File(Environment.getExternalStorageDirectory() + "/data/misc/bluetooth/dynamic_auto_pairing.conf");
    

    Also try to add:

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    

    outside <application></application> in your manifest file.

    EDIT
    If the file is in internal memory: Your app can read only from a special folder in internal memory. The path to that folder is returned by:
    getFilesDir().getAbsolutePath()

    So put the file there and read it with openFileInput().

    More info:
    http://developer.android.com/guide/topics/data/data-storage.html#filesInternal

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

Sidebar

Related Questions

do routed events from wpf have something in common with the chain of responsibility
I have decided that all my WPF pages need to register a routed event.
I have a route that I am calling through a RedirectToRoute like this: return
Following this snippet , I have set-up in my rails application to highlight the
I have code like this: // Create event handler delegate symbolReader.ReadNotify += new EventHandler(symbolReader_ReadNotify);
I have an array of coordinates (latitude and longitude) maded in this way: [0]
I have a tun/tap device which is used to read incoming packets from one
This is my application setup. I have written an application (in Qt ) which
My target device is a tablet running HoneyComb. I have a requirement where i
I have the host computer with Ethernet adapter configured by this way: IP address

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.