Assigned
Status Update
Comments
di...@google.com <di...@google.com>
jp...@google.com <jp...@google.com> #2
Hi
When you are saying The SD card is visible (and usable) inside the emulator.
, do you mean that you are not seeing anything on sdcard
The path /sdcard
should emulated the sdcard
Here are some commans line sent from an adb shell
once an emulator (here on a Mac M1) was launched:
emu64a:/ # ls -l /sdcard
lrw-r--r-- 1 root root 21 2023-01-25 10:53 /sdcard -> /storage/self/primary
emu64a:/ # ls -l /sdcard/
total 104
drwxrws--- 2 u0_a151 media_rw 4096 2023-04-13 15:32 Alarms
drwxrws--x 5 media_rw media_rw 4096 2023-04-13 15:32 Android
drwxrws--- 2 u0_a151 media_rw 4096 2023-04-13 15:32 Audiobooks
drwxrws--- 2 u0_a151 media_rw 4096 2023-04-13 15:32 DCIM
drwxrws--- 2 u0_a151 media_rw 4096 2023-04-13 15:32 Documents
drwxrws--- 2 u0_a151 media_rw 4096 2023-04-13 15:32 Download
drwxrws--- 3 u0_a151 media_rw 4096 2023-04-13 15:32 Movies
drwxrws--- 3 u0_a151 media_rw 4096 2023-04-13 15:32 Music
drwxrws--- 2 u0_a151 media_rw 4096 2023-04-13 15:32 Notifications
drwxrws--- 3 u0_a151 media_rw 4096 2023-04-13 15:32 Pictures
drwxrws--- 2 u0_a151 media_rw 4096 2023-04-13 15:32 Podcasts
drwxrws--- 2 u0_a151 media_rw 4096 2023-04-13 15:32 Recordings
drwxrws--- 2 u0_a151 media_rw 4096 2023-04-13 15:32 Ringtones
The sdcard should be visible
Could you please confirm how you created the newsd.img
used in the video (at 00:34)?
bo...@google.com <bo...@google.com> #3
this is intended behavior for m1 images.
you can use x86 image (running on x86_64 hosts) to emulate physical sdcard,
the /sdcard is emulated, similar to real devices such as pixels.
you can use x86 image (running on x86_64 hosts) to emulate physical sdcard,
the /sdcard is emulated, similar to real devices such as pixels.
to...@avast.com <to...@avast.com> #4
jp...@google.com:
By the sd card, I mean the external SD card. The emulated SD card, i.e. primary/default/internal storage is OK.
Which video are you referring to, please? In any case, I tried to create a new SD card via mksdcard command (https://developer.android.com/tools/mksdcard ) and start an emu with `-sdcard` flag. The emu did not boot at all.
bo...@google.com:
We develop applications which have functionality related to external storage. How can we implement/test/support the functionality locally on machines with apple silicon? Is the external SD card support planned, please? Also, if the external cards are not available on the arm architecture right now, why the option is available in the device creation wizard?
Thank you.
By the sd card, I mean the external SD card. The emulated SD card, i.e. primary/default/internal storage is OK.
Which video are you referring to, please? In any case, I tried to create a new SD card via mksdcard command (
bo...@google.com:
We develop applications which have functionality related to external storage. How can we implement/test/support the functionality locally on machines with apple silicon? Is the external SD card support planned, please? Also, if the external cards are not available on the arm architecture right now, why the option is available in the device creation wizard?
Thank you.
Description
Android Studio Giraffe | 2022.3.1 Beta 2
Build #AI-223.8836.35.2231.10023527, built on April 27, 2023
Runtime version: 17.0.6+0-17.0.6b829.5-9884540 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Metal Rendering is ON
Registry:
external.system.auto.import.disabled=true
debugger.new.tool.window.layout=true
ide.text.editor.with.preview.show.floating.toolbar=false
ide.instant.shutdown=false
ide.experimental.ui=true
Emulator Version (Emulator--> Extended Controls--> Emulator Version): 32.1.12-9751036
HAXM / KVM Version: HVF 13.3.0
Android SDK Tools: 26.1.1
Host Operating System: macOS 13.3.1
CPU Manufacturer: Other CPU:
64-bit CPU
RAM: 32768 MB
GPU:
Build Fingerprint:
AVD Details: Name: Pixel_7_API_31
CPU/ABI: arm64
Path: /Users/tomas.havrda/.android/avd/Pixel_7_API_31.avd
Target: google_apis_playstore [Google Play] (API level 31)
Skin: pixel_7
SD Card: 512M
AvdId: Pixel_7_API_31
PlayStore.enabled: true
avd.ini.displayname: Pixel 7 API 31
avd.ini.encoding: UTF-8
disk.dataPartition.size: 6442450944
fastboot.chosenSnapshotFile:
fastboot.forceChosenSnapshotBoot: no
fastboot.forceColdBoot: no
fastboot.forceFastBoot: yes
hw.accelerometer: yes
hw.arc: false
hw.audioInput: yes
hw.battery: yes
hw.camera.back: virtualscene
hw.camera.front: emulated
hw.cpu.ncore: 4
hw.dPad: no
hw.device.hash2: MD5:3db3250dab5d0d93b29353040181c7e9
hw.device.manufacturer: Google
hw.gps: yes
hw.gpu.enabled: yes
hw.gpu.mode: auto
hw.initialOrientation: Portrait
hw.keyboard: yes
hw.lcd.density: 420
hw.lcd.height: 2400
hw.lcd.width: 1080
hw.mainKeys: no
hw.ramSize: 1536
hw.sdCard: yes
hw.sensors.orientation: yes
hw.sensors.proximity: yes
hw.trackBall: no
image.sysdir.1: system-images/android-31/google_apis_playstore/arm64-v8a/
runtime.network.latency: none
runtime.network.speed: full
showDeviceFrame: yes
skin.dynamic: yes
tag.display: Google Play
vm.heapSize: 228
Steps to Reproduce Bug:
Hello,
it seems there's a problem with the SD cards on Apple Silicon-based Macbook (M2 Pro)
The SD card is not visible in the emulator (settings - storage) even though:
1. A card is created successfully when an emu is initialised (there's a sdcard.img file inside the emu folder).
2. The card is enabled in the config.ini file.
Also, whenever I tried to launch the emu directly via CLI with sdcard option (emulator @<emu_name> -sdcard <path_to_card>), the emulator didn't start successfully. Therefore, I believe it could be a bug related to the different architecture as sdcards worked on Intel-based Mac machines (or Win platform) without issues.
Best regards,
Tomas H.
Expected Behavior:
The SD card is visible (and usable) inside the emulator.
Observed Behavior:
The SD card is not visible (nor usable) inside the emulator.