Bug P2
Status Update
Comments
uc...@google.com <uc...@google.com>
ha...@google.com <ha...@google.com> #2
Sorry, forgot to add a meaningful title before pressing Create. I can't see a way to edit it now.
Description
Build #AI-193.6494.35.41.6264773, built on March 5, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.3
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry: ide.new.welcome.screen.force=true, ide.suppress.double.click.handler=true
Non-Bundled Plugins: com.urswolfer.intellij.plugin.gerrit
```
After the editor for a downloaded file is closed, the file is deleted from disk. I don't think the issue used to happen on 3.6
Steps to Reproduce:
1. Install a debug app on the phone
2. Make the app write something to internal storage (for example with `context.openFileOutput("file.txt", 0)`)
3. Connect the phone to the computer via adb
4. Use "Device File Explorer" (bottom right) and navigate to `/data/data/<application id>/files/file.txt`
5. Double click on the file to download it and open it in the IDE
6. Without doing any modifications, close the editor.
7. Navigate to the file in finder `/Users/<user>/Documents/AndroidStudio/DeviceExplorer/<device id>/data/data/<application id>/files/file.txt` and notice that it no longer exists.