Fixed
Status Update
Comments
ac...@gmail.com <ac...@gmail.com> #2
Same problem here.
In config.ini, I have set:
sdcard.size=500 MiB
In hardware-qemu.ini, I have set:
hw.sdCard = true
In config.ini, I have set:
sdcard.size=500 MiB
In hardware-qemu.ini, I have set:
hw.sdCard = true
jf...@gmail.com <jf...@gmail.com> #3
The issue is that the sdcard is not writable. You can workaround this by running:
adb shell
su
mount -o rw,remount rootfs /
chmod 777 /mnt/sdcard
But those settings are lost once the emulator is closed.
adb shell
su
mount -o rw,remount rootfs /
chmod 777 /mnt/sdcard
But those settings are lost once the emulator is closed.
ya...@gmail.com <ya...@gmail.com> #4
I can confirm this an issue I am also having on Android Studio 2.3.
The second comment (https://code.google.com/p/android/issues/detail?id=240155#c2 ) of making the SD card writable, does work for me. The camera continues to say "Insert an SD card before using the camera"
The second comment (
st...@gmail.com <st...@gmail.com> #5
API 15 galaxy nexus sd card not detected in storage settings
hu...@google.com <hu...@google.com>
zo...@googlemail.com <zo...@googlemail.com> #6
Is there a solution to this at this point of time?
Having the same issue.
Can't download anything nor take any pictures even the sd card writable workaround does not work for me (API 17).
Having the same issue.
Can't download anything nor take any pictures even the sd card writable workaround does not work for me (API 17).
ad...@manichord.com <ad...@manichord.com> #7
For some reason the sdcard is *not* being mounted in the android system (API 16,17 only, 18 onwards WORKS AS EXPECTED) within the emulator.
adb shell
root@android:/ # df
Filesystem Size Used Free Blksize
/dev 757M 68K 757M 4096
/mnt/secure 757M 0K 757M 4096
/mnt/asec 757M 0K 757M 4096
/mnt/obb 757M 0K 757M 4096
/system 532M 349M 183M 4096
/cache 60M 40K 60M 4096
/data 1G 83M 1G 4096
The above is for a API 17 img, same thing happens with both "Studio Managed" sdcard as well as sdcard img file created both via the GUI and mksdcard.
No clues at all in the dmesg, in logcat there is only:
05-12 03:22:54.430 1154-1154/? D/Vold: Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
05-12 03:22:56.380 1486-1499/system_process D/MountService: got storage path: /mnt/sdcard description: USB storage primary: true removable: false emulated: false mtpReserve: 0 allowMassStorage: false maxFileSize: 0
05-12 03:22:56.380 1486-1499/system_process D/MountService: addVolumeLocked() StorageVolume [mStorageId=0 mPath=/mnt/sdcard mDescriptionId=17040615 mPrimary=true mRemovable=false mEmulated=false mMtpReserveSpace=0 mAllowMassStorage=false mMaxFileSize=0 mOwner=null]
05-12 03:22:56.390 1486-1522/system_process D/MountService: volume state changed for /mnt/sdcard (null -> removed)
05-12 03:22:56.400 1486-1522/system_process I/PackageManager: No secure containers on sdcard
05-12 03:22:58.180 1738-1957/android.process.media W/MediaScanner: Error opening directory '/mnt/sdcard/', skipping: Permission denied.
Just updated to Emulator 26.0.3 and still happening as above.
adb shell
root@android:/ # df
Filesystem Size Used Free Blksize
/dev 757M 68K 757M 4096
/mnt/secure 757M 0K 757M 4096
/mnt/asec 757M 0K 757M 4096
/mnt/obb 757M 0K 757M 4096
/system 532M 349M 183M 4096
/cache 60M 40K 60M 4096
/data 1G 83M 1G 4096
The above is for a API 17 img, same thing happens with both "Studio Managed" sdcard as well as sdcard img file created both via the GUI and mksdcard.
No clues at all in the dmesg, in logcat there is only:
05-12 03:22:54.430 1154-1154/? D/Vold: Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
05-12 03:22:56.380 1486-1499/system_process D/MountService: got storage path: /mnt/sdcard description: USB storage primary: true removable: false emulated: false mtpReserve: 0 allowMassStorage: false maxFileSize: 0
05-12 03:22:56.380 1486-1499/system_process D/MountService: addVolumeLocked() StorageVolume [mStorageId=0 mPath=/mnt/sdcard mDescriptionId=17040615 mPrimary=true mRemovable=false mEmulated=false mMtpReserveSpace=0 mAllowMassStorage=false mMaxFileSize=0 mOwner=null]
05-12 03:22:56.390 1486-1522/system_process D/MountService: volume state changed for /mnt/sdcard (null -> removed)
05-12 03:22:56.400 1486-1522/system_process I/PackageManager: No secure containers on sdcard
05-12 03:22:58.180 1738-1957/android.process.media W/MediaScanner: Error opening directory '/mnt/sdcard/', skipping: Permission denied.
Just updated to Emulator 26.0.3 and still happening as above.
is...@gmail.com <is...@gmail.com> #8
Hello, I have the same problem. Anyone find a solution?
zo...@googlemail.com <zo...@googlemail.com> #9
Unfortunately I had to go back to Android Studio 2.2 as I have to work with a SD card.
jf...@gmail.com <jf...@gmail.com> #10
Re: #8 and #9, please refrain from "me too" comments. Each new comment sends out an email to everyone who is subscribed to the defect (and my sincere apologies to everyone for the email that this comment generated!). Please just star the defect to let the devs know that you're interested in it and add a comment only if you have additional debugging/troubleshooting information to add.
dj...@gmail.com <dj...@gmail.com> #11
Having same issue with API 15 emulator
zb...@gmail.com <zb...@gmail.com> #12
Have this problem with API 17 - but running with classic engine from command line works for me:
LD_PRELOAD='/usr/$LIB/libstdc++.so.6' ./emulator @Nexus_S_API_17 -verbose -engine classic
LD_PRELOAD='/usr/$LIB/libstdc++.so.6' ./emulator @Nexus_S_API_17 -verbose -engine classic
mi...@mikehardy.net <mi...@mikehardy.net> #13
Thank you #12! I can confirm that emulators as far back as API 15 (my earliest supported API) work with that advice.
Specifically, if you need sdcard in the older APIs,
1- I have to use Android Studio (v3.1.4 for me) to create the AVD,
2- then I must boot it once via Android Studio or I will get an error about failed phone encryption, but the sdcard won't be mounted
3- then I may boot the standalone emulator from the command line using the classic engine. I did not need to do the LD_PRELOAD though (Ubuntu 18.04LTS, for me)
My command looked like this and returned this emulator version, working correctly with sdcard access:
$ANDROID_SDK_HOME/emulator/emulator @Nexus_4_API_15 -verbose -engine classic
emulator: Android emulator version 27.3.9.0 (build_id 4899998) (CL:e7b1c928a596dd490b990f4532055950f1409e49)
Specifically, if you need sdcard in the older APIs,
1- I have to use Android Studio (v3.1.4 for me) to create the AVD,
2- then I must boot it once via Android Studio or I will get an error about failed phone encryption, but the sdcard won't be mounted
3- then I may boot the standalone emulator from the command line using the classic engine. I did not need to do the LD_PRELOAD though (Ubuntu 18.04LTS, for me)
My command looked like this and returned this emulator version, working correctly with sdcard access:
$ANDROID_SDK_HOME/emulator/emulator @Nexus_4_API_15 -verbose -engine classic
emulator: Android emulator version 27.3.9.0 (build_id 4899998) (CL:e7b1c928a596dd490b990f4532055950f1409e49)
jo...@google.com <jo...@google.com>
lf...@google.com <lf...@google.com> #14
Hi, I can't reproduce this with the canary emulator 29.2.3 with the latest revision of the API 16 x86 Google APIs image.
mi...@mikehardy.net <mi...@mikehardy.net> #15
Thanks for checking, and that's good news - this was logged (and my comment with testing results added) prior to all the work on the emulators, and I've noticed several things in the area that did not work in the past are working now, so it's possible this was resolved as well. I'll re-check in a bit and post back results as my app supports API15+ at the moment and I need these to work. Cheers
mi...@mikehardy.net <mi...@mikehardy.net> #16
I can no longer reproduce this with Android emulator version 29.2.3.0 (build_id 5916265) (CL:N/A) - on the API16 x86 non-Google APIs image
However, the API15 non-Google APIs image fails to boot completely
They may not have high enough user numbers to resurrect the emulation there but we do still have around a thousand users on API15 and below
So I think the original issue might be solved, but for very old APIs the images might need to be rebuilt by google to work on newer emulators? Or at least the documentation should be altered to note that no emulation is possible below API16?
However, the API15 non-Google APIs image fails to boot completely
They may not have high enough user numbers to resurrect the emulation there but we do still have around a thousand users on API15 and below
So I think the original issue might be solved, but for very old APIs the images might need to be rebuilt by google to work on newer emulators? Or at least the documentation should be altered to note that no emulation is possible below API16?
lf...@google.com <lf...@google.com> #17
For API 15, the issue is that guest rendering is not supported anymore. However, in recent emulator canaries, we've forced those lower API levels to run with host side rendering.
mi...@mikehardy.net <mi...@mikehardy.net> #18
Wow! With the current (as of today - Android qemu version 29.2.7.0 (build_id 5980645) (CL:N/A)) canary I can confirm API15 is working in Travis CI at least (ubuntu bionic linux image), with sdcard, even with hardware acceleration! Fantastic - we have every single play-store-accepted API except API26 (some orchestrator error, seems unrelated to emulator binary) working in CI now.
https://travis-ci.com/mikehardy/Anki-Android/jobs/253635737
The improvements in the emulator over the last year have been very helpful, thanks to the team.
The improvements in the emulator over the last year have been very helpful, thanks to the team.
Description
Android SDK Tools: 25.3.1
Host Operating System:
MacBook Pro (Retina, 15-inch, Mid 2015)
2.5 GHz Intel Core i7
16 GB 1600 MHz DDR3
AMD Radeon R9 M370X 2048 MB
Intel Iris Pro 1536 MB
Steps to Reproduce Bug:
1. Create a new emulator - we tried an API 16 and API 18 emulators w/ a Nexus One + Nexus 4.
1b. Leave the emulator settings to default.
2. Once loaded, click the camera.
Expected Behavior:
I am able to take a picture of the emulated image.
Observed Behavior:
A toast saying "Insert an SD card before using the camera"
This was observed after the release of Android Studio 2.3. Both of my other coworkers are having this problem.