[์ ๋ฎฌ๋ ์ดํฐ์ ํ์ผ์ ๋ก์ปฌ PC๋ก ๋นผ๋ ๋ฐฉ๋ฒ]
0. /sdcard/testDir/testFile.txt ๋ฅผ ๋ก์ปฌ PC (์์น: C:\Temp) ๋ก pull ํด๋ณด๊ฒ ๋ค.
์ฌ๊ธฐ์์ testDir ํด๋์, testFile.txt ํ์ผ์ ๋ด๊ฐ ์์๋ก ๋ง๋ค์ด ์ฃผ์๋ค.
ํ์ผ์ ๋ด์ฉ์ ๋ค์๊ณผ ๊ฐ๋ค.
(๋ง๋๋ ์ฝ๋>>
https://devshin93.tistory.com/entry/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-sdcard%EC%97%90-%EB%94%94%EB%A0%89%ED%86%A0%EB%A6%AC%EC%99%80-%ED%8C%8C%EC%9D%BC-%EC%83%9D%EC%84%B1%ED%95%98%EA%B8%B0?category=912138
(์ฐธ๊ณ . ์ฝ๊ฒ ํ์ธํ ์ ์๊ฒ sdcard์ ์ ์ฅ์ ํ๋ค.
Android11. API Level 30๋ถํฐ๋ sdcard์ ์ ๊ทผ์ด ๋์ง ์์ผ๋ฏ๋ก, ๋ฐ๋์ Android11 ๋ฏธ๋ง์ ์ ๋ฎฌ๋ ์ดํฐ/๋จ๋ง๊ธฐ์์ ํ์ธํด์ผ ํ๋ค.)
1. Android Studio
AVD Manager > Create Virtual Device...
2. PlayStore ๊ฐ ์๋ ๋ฒ์ ์ผ๋ก ์ ํ ํ, Next
3. x86 Images > API Level 28, ABI x86_64 ๊ธฐ์ค์ผ๋ก ์์ฑํจ
4. AVD Name ์ ๋ ฅ
: Pixel_XL_API_28 ๋ก ๋ช ๋ช ํ๋ค.
5. ์ ๋ฎฌ๋ ์ดํฐ๋ฅผ run ํ์ง ์์ ์ํ์์,
Android Studio ํ๋จ์ Terminal ํญ์ ํด๋ฆญํ๋ค.
(์ฐธ๊ณ : Terminal ์์ ๋๋ผ์ด๋ธ๋ฅผ ๋ณ๊ฒฝํ๋ ค๋ฉด C: ๋๋ D: ์ ๊ฐ์ด ๋๋ผ์ด๋ธ๋ช : ๋ฅผ ์ ๋ ฅํ๋ค.)
6. ์๋์ ๊ฒฝ๋ก๋ก ์ด๋ํด ๋ค์ ๋นจ๊ฐ์์ผ๋ก ํ์ํ ๋ช ๋ น์ด๋ฅผ ์คํํ๋ค.
์๋์ ๊ฒฝ๋ก๋ ๋ด PC ๊ธฐ์ค, adb.exe ๊ฐ ์์นํ ๊ฒฝ๋ก์ด๋ค.
cd C:\Users\{์ฌ์ฉ์๊ณ์ }\AppData\Local\Android\Sdk\tools
C:\Users\{์ฌ์ฉ์๊ณ์ }\AppData\Local\Android\Sdk\tools>emulator -avd Pixel_XL_API_28 -writable-system emulator: WARNING: System image is writable handleCpuAcceleration: feature check for hvf ANGLE: D3D11: rx::Renderer11::generateConfigs emulator: INFO: QtLogger.cpp:68: Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_posture_requested(int) ((null):0, (null)) emulator: INFO: QtLogger.cpp:68: Warning: QMetaObject::connectSlotsByName: No matching signal for on_dismiss_posture_selection_dialog() ((null):0, (null)) added library vulkan-1.dll Failed to open /qemu.conf, err: 2 HAX is working and emulator runs in fast virt mode. dsound: Could not initialize ADC dsound: Could not create capture buffer dsound: Reason: An undetermined error occurred inside the DirectSound subsystem dsound: Could not initialize ADC dsound: Could not create capture buffer dsound: Reason: An undetermined error occurred inside the DirectSound subsystem audio: Failed to create voice `goldfish_audio_in' C:\Users\{์ฌ์ฉ์๊ณ์ }\AppData\Local\Android\Sdk\tools\..\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: warning: opening audio input failed emulator: INFO: GrpcServices.cpp:301: Started GRPC server at 127.0.0.1:8554, security: Local dsound: Could not initialize ADC dsound: Could not create capture buffer dsound: Reason: An undetermined error occurred inside the DirectSound subsystem dsound: Could not initialize ADC dsound: Could not create capture buffer dsound: Reason: An undetermined error occurred inside the DirectSound subsystem audio: Failed to create voice `adc' emulator: INFO: QtLogger.cpp:68: Warning: QWindowsWindow::setGeometry: Unable to set geometry 483x864+1150+101 on QWidgetWindow/'EmulatorContainerClassWindow'. Resulting geometry: 604x1080+1150+101 (fram e: 0, 0, 0, 0, custom margin: 0, 0, 0, 0, minimum size: 200x200, maximum size: 16777215x16777215). ((null):0, (null)) emulator: INFO: QtLogger.cpp:68: Warning: QWindowsWindow::setGeometry: Unable to set geometry 67x531+1608+101 on QWidgetWindow/'ToolControlsWindow'. Resulting geometry: 84x664+1608+101 (frame: 0, 0, 0, 0 , custom margin: 0, 0, 0, 0, minimum size: 67x531, maximum size: 67x531). ((null):0, (null)) emulator: INFO: boot completed emulator: Increasing screen off timeout, logcat buffer size to 2M. emulator: Revoking microphone permissions for Google App. |
์ฌ๊ธฐ๊น์ง ์ค๋ฉด ์ ๋ฎฌ๋ ์ดํฐ๊ฐ ๋์๋๋ค.
7. ํ๋จ์ Terminal ํญ์ ํ๋ ๋ ์ฐ๋ค.
8. adb devices ๋ช ๋ น์ด๋ฅผ ์ด์ฉํด running ์ค์ธ ์ ๋ฎฌ๋ ์ดํฐ๋ฅผ ํ์ธํ๋ค.
C:\Users\{์ฌ์ฉ์๊ณ์ }\AppData\Local\Android\Sdk\tools>adb devices List of devices attached emulator-5554 device C:\Users\{์ฌ์ฉ์๊ณ์ }\AppData\Local\Android\Sdk\tools> |
9. ์๋์ ์์๋๋ก ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๋ค.
9.1. adb -s emulator-5554 rootใใใใใใใใใ์๋ฎฌ๋ ์ดํฐ์ root ๊ถํ์ ๋ถ์ฌํ๋ค.
9.2. asb -s emulator-5554 remountใใใใใใใ์๋ฎฌ๋ ์ดํฐ๋ฅผ remount ํ๋ค.
9.3. adb -s emulator-5554 pull /sdcard/testDir/testFile.txt C:\Tempใใใใใ์๋ฎฌ๋ ์ดํฐ์ testFile.txt๋ฅผ ๋ก์ปฌ C:\Temp ๋ก pull ํ๋ค.
10. ๊ฒฐ๊ณผ
[๋ก์ปฌ PC ์ ํ์ผ์ ์ ๋ฎฌ๋ ์ดํฐ๋ก ๋ฃ๋ ๋ฐฉ๋ฒ]
๋๊ธ