Manipulating files on the device using Android Studio

この記事は約3分で読めます。

After updating my Android version, I could no longer access the files created by the app from the file manager on my device, so I investigated whether there were any other methods.

This section explains how to do it using Android Studio.

スポンサーリンク

Environment

Model: Google Pixel 6 Pro

Android version: 14

スポンサーリンク

Manipulating files on the device using Android Studio

premise

– Installing Android Studio

For your reference

Android Studio をインストールする  |  Android Developers
Windows、macOS、Linux で Android Studio をセットアップ、インストールします。

Preparing for Android Studio

Launch Android Studio and connect your PC and Android device. (Connecting with a USB cable is the easiest method, but you can also connect via Wi-Fi.)

Make sure the device you want to use for file operations is selected.

From the top menu, select View → Tool Windows → Device File Explorer.

Operating Device File Explorer

The following GUI will be displayed.

You can perform various operations by right-clicking on a folder or file.

menu
Save AsDownload from device to PC
UploadUpload from PC to device
Deletedelete

File location

On Pixel devices, the root directory in the device’s file manager is located in the following folder:

(The Pixel is a device that cannot use an SD card, so it may be different from other devices. It might be somewhere around /storage/emulated/0.)

/sdcard

The files saved by the app are stored in the following folder.

/sdcard/Android/data/アプリ名

postscript

On the Redmi Note 10 Pro, the following folder appeared to be the root directory of the device.

/storage/xxxx‐xxxx

*) The XXXX part is any hexadecimal value.

スポンサーリンク

Websites I used as references

Device Explorer でデバイス上のファイルを表示する  |  Android Studio  |  Android Developers
Device Explorer を使用して Android デバイス上のファイルの表示、コピー、削除を行う方法について説明します。

コメント

タイトルとURLをコピーしました