X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Where is the user profile folder located on Mobile Firefox?

Posted

I'm developing a plugin for "Firefox for Android" and I need to create a folder with some files for my plugin. I'm trying to do this: https://developer.mozilla.org/en-US/docs/Code_snippets/File_I_O

BUT I can't check ir the directory has already created. Where I can see the "ProfD" on Android? I readed another answers in the Net saying this is in: /data/data/org.mozilla.firefox/files/mozilla/???????.default/

But when I open my Android File Manager, there is no data/data directory. There is only one data/ and no mozilla inside there.

Help!

Modified by gal007

Chosen solution

by gal007

I solved the problem. As mentioned "madperson", my browser does not allow me to see the files. So I decided to use the ADB to browse the files. I had some problems, but I could do with this:

  • ./adb devices
  • ./adb shell
  • su
  • ls data/data/org.mozilla.firefox/files/mozilla/7j15q9po.default

To open a file: cat myFile.txt

Read this answer in context 0

Helpful replies

your file manager needs root rights to access this directory

Go to answer 2

not all file managers support accessing the file-system as root (i don't know the one that you've mentioned). personally i use antek explorer, where you can switch to root by clicking on device on the top left & choosing device root. but there are certainly many other similar programs available in the android market...

Go to answer 1
Post a Reply

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

philipp
  • Top 10 Contributor
1028 solutions 5020 answers
Posted

Helpful Reply

your file manager needs root rights to access this directory

Was this helpful to you? 2
Reply
Posted

Question owner

I have a rooted phone. Do I need a 'special' file manager? Do you know one?

Was this helpful to you?
Reply
Posted

Question owner

I have a rooted phone. Do I need a 'special' file manager? Do you know one?

Was this helpful to you?
Reply
philipp
  • Top 10 Contributor
1028 solutions 5020 answers
Posted

Helpful Reply

not all file managers support accessing the file-system as root (i don't know the one that you've mentioned). personally i use antek explorer, where you can switch to root by clicking on device on the top left & choosing device root. but there are certainly many other similar programs available in the android market...

Was this helpful to you? 1
Reply
kbrosnan
  • Top 25 Contributor
  • Moderator
175 solutions 1318 answers
Posted

You won't be able to see the /data/data folder when the phone is attached to the computer as a disk drive. Android only exposes the /sdcard folder and its children folders when the phone is attached over usb.

Was this helpful to you? 1
Reply
Posted

Chosen Solution

I solved the problem. As mentioned "madperson", my browser does not allow me to see the files. So I decided to use the ADB to browse the files. I had some problems, but I could do with this:

  • ./adb devices
  • ./adb shell
  • su
  • ls data/data/org.mozilla.firefox/files/mozilla/7j15q9po.default

To open a file: cat myFile.txt

Modified by gal007

Was this helpful to you?
Reply

Post a Reply

You must log in to your account to reply to posts.

Don't have an account? You can create a free account now.