Where does getExternalFilesDir () indicate in an application running in Chrome?

I successfully opened my application in Chrome using an arc welder. And, having managed to determine which files store the sqlite database and general settings, I was able to copy them to reproduce well how the application works on my phone.

On the phone, my application can take photos that are stored in the path found with getExternalFilesDir (null), and it would be nice to copy them so that they can be seen when using the application through Chrome. But, looking around, I could not decide where it is.

I can save the file (using the application database exporter and the file selector), somewhere that appears as an SD card, but not the file or directory under my application directory in ~ / .config / google-chrome / Default / Storage / ext, which changes when I do the export, seems to fit.

I see the exported file name in def / File System / primary / p / Paths / 000004.log, although it does not give me any hints as a data file.

Does anyone know where a virtual SD card can be stored (and so externalFilesDir)?

+6
source share
1 answer

By default, ARC stores external storage files in the Chrome HTML5 file system. Each application gets its own file system instance.

To put files in it, you can:

  • (PC only) run the application, visit the "chrome: // inspect / # apps" for your application and enter plugin.shell('adbd') into the javascript console for it. Then you can use the Android ADB adb push ... command to transfer the data.
  • Or you can also add {"enableExternalDirectory": true} to your application metadata. Enabling this option means that ARC will offer you a directory that will be used for the external directory, and you can select the real directory on your system for use.
+4
source

Source: https://habr.com/ru/post/984667/


All Articles