Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
Tags
- mutablestatelistof
- 안드로이드 앱 아키텍처
- android #google console
- android #android studio #compose #kotlin
- compose
- android #androidstudio #zsh
- 백준 5052
- 카카오로그인
- mutablestateof
- algorithm
- AlertDailog
- algorithm #
- BFS
- 안드로이드#코틀린
- kotlin
- cs #computer #network #internet
- alogrithm
- 오블완
- KioskMode
- Android
- Jetpack Compose
- androidstudio
- DFS
- android12
- 티스토리챌린지
- Bluetooth Permission
- android #androidstudio #fragmentdialog #kotlin
- Dynamic Programing
- algoritm
- android #androidstudio #compose #kotlin
Archives
- Today
- Total
스태틱하게 개발중
[Android] 안드로이드 앱내부 저장 ls: /storage/emulated/: Permission denied 본문
안드로이드 개발중 파일을 앱별 저장소에 파일을 저장하고 Android Stuido - Device Explorer 확인해보니 아래와 같았습니다.

접근 권한이 거부되었다는 이유로 내부 파일을 확인할 수 없었습니다.
해결책은 emulated 아래있는 [self/primary/Android/data/내앱패키지] 에서 확인할 수 있습니다.
혹은 Terminal 에서 아래처럼 확인 할 수 있습니다.
adb shell
cd /storage/emulated/0/Android/data/내앱패키지/my_file/
ls
앱별 저장소 경로
// 저장위치 - /data/user/0/내앱패키지/files/
val dir = context.filesDir.absoluteFile
// 저장위치 - storage/self/primary/android/data/내앱패키지/files
val dir = context.getExternalFilesDir(null)?.absoluteFile
// 저장위치 - storage/self/primary/Download/
val dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)
'Android' 카테고리의 다른 글
| [Android] Compose 애니메이션 API 살펴보기 (0) | 2024.11.26 |
|---|---|
| [Android] Compose 버튼 효과제거 (0) | 2024.10.08 |
| [Android] 구글 플레이 콘솔 개발자 계정 인증 (0) | 2024.08.29 |
| [Android] Compose drawLine를 이용한 선긋기 (0) | 2024.06.25 |
| [Android] zsh: command not found: adb 환경변수 설정 (0) | 2023.10.19 |