搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Where is the user profile folder located on Mobile Firefox?

  • 6 回覆
  • 3 有這個問題
  • 381 次檢視
  • 最近回覆由 GaL

more options

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!

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!

由 GaL 於 修改

被選擇的解決方法

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

從原來的回覆中察看解決方案 👍 0

所有回覆 (6)

more options

your file manager needs root rights to access this directory

more options

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

more options

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

more options

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...

more options

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.

more options

選擇的解決方法

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

由 GaL 於 修改