`adb push` files are not showing on Android 11 Emulator - android

I am trying to copy photos onto my Android Emulator. I have tried
dragging photos onto the device screen (copying files popup does show up), but the photos do not appear anywhere. This worked on Android 8.1 and 10.
tried adb-pushing photos onto an Android 11 emulator. Although adb-pushed files are present on the file system (on both /sdcard/DCIM and /sdcard/Pictures), they do not show up on the device. I used adb push * /sdcard/DCIM, in a local directory with 24 photos.
I have also tried restarting the emulator (using the restart button on the Android UI), and no images were found. These images still exist on the filesystem. (This rules out me starting an older snapshot)
Unfortunately, the Files app shows these folders to be empty, even after restarting the emulator (Android UI restart button). My method working previously, but for some reason, can't copy photos onto the device now. Does anyone have a better method, or can confirm this method works for them?
Running Android Studio 4.1 (and tried 4.2 Canary) & Android 11.

Since 2 people have upvoted, I wanted to let you know how I work around this. After pushing the files to the device, I always restart it, and wait a couple of the minutes. This allows the MediaStore (which also handles stuff I would say is non-media, e.g. documents) to find the new pictures and add it to its own database.

Related

Android emulator for android 11 is saving pictures and videos in a different location compared to previous versions

I have a backup app that searches for photos and videos inside sdcard/DCIM and takes backup. Testing it on Android emulator for Android 11. Since android 11 it's saving the pictures and video taken through emulator inside sdcard/Pictures and sdcard/Movies which a new behavior. My app is not able to back it up now. I tried looking for any documentation which suggested this change in android 11 but couldn't find any. Can any of you help me with this if this is the desired behavior going forward?

Android emulator 7.0 with play store not starting up - "Decryption unsuccessful"

I am encountering this problem with the version of Android emulator where when I launch it will normally boot up and ask for a password (which the other emulator images do not, not sure what is up with that).
After I enter any kind of password to it, the following screen pops up
If I click the reset phone button the phone will boot up again to the password screen, and after entering password the same decryption unsuccessful screen will show up.
I have tried removing the virtual device and re-downloading the system image but that did not seem to help. The other system images seem to work fine, though this is the only system image with the play store installed that I have tried (are there even other images?). I'm using the api level 24 x86 system image that shows up in the recommended system images. I'm trying to use the emulator on Windows 10 64bit system.

Preview of widget not showing correct image after update

I have an app that has an widget preview image. I recently updated this image on the app, but in a device with Lollipop (5.0) version of android, the preview image of the widget shows the old image (the one I replaced). The same doesn't occur in devices without Lollipop.
I turned the resources folder upside down searching for the old image, but it is correctly updated in all the places (actually, it is only in one folder, as I have only one image of the preview).
Just to give more info, I'm using Android Studio 1.0-rc1, and this problem only occurs in my Nexus 4 with lollipop (5.0) running on it.
I tested in some emulators with Lollipop, and the same happened.
It's important to highlight that if I never installed any previous version of the app (with the old widget preview image), when I install the new version the preview image appears to be correct.
Is anyone having the same problem, or knows how to solve this?
Thanks.
I had the same problem. I managed to work around it (on Nexus 5) by going to the settings of the launcher app (Settings -> Apps -> Google App) and deleting the cache.
I also had this same issue and the answer by #spookypeanut put me on the right track.
My phone is running CyanogenMod so I had to go to app Launcher3 (com.cyanogenmod.trebuchet), clear cache and force stop it. After it reloaded all the previews updated.

Android OsclNativeFile error: Seek lseek64 failed

I get the following error on my Android device:
E/OsclNativeFile( 1616): OsclNativeFile::Seek lseek64 failed
I want to know what it means, because I wasn't making anything special just getting a battery drain and the logcat show me zillion lines like the above. Thanks.
I got the same. That happened after i had updated my LG Optimus One P500 phone to android 2.3.3. I read this topic with no answers and was a bit disappointed. I tried to come back to 2.2, but phone didn't start (it stopped at android logo). I installed 2.3.3 again and it started normally. Then i experimented and soon noticed that there was no errors with sd-card unmounted. So I removed all programs from sd-card, and deleted all files from it (I moved it to laptop). And I have no such errors now. Maybe there is an easier way to solve it, but it has worked in my case.
The lseek64() system library function is typically used to access large files (2GB or greater). It's possible there's a flaw with the way the platform implements lseek64. A workaround--as tonixart has discovered--is to delete the large files on your sdcard.

Unreadable sqlite3 file

I've just written my first android-app (https://sourceforge.net/projects/cashcontroll/).
It's a little budget-control tool to control my expenses.
Everything works fine.
Because of the fact that this is quit important data for me I've created a backup function where the whole db-file is stored to the sd card.
And now the weird thing happens:
With my first android (htc desire , android 2.2 Build 2.29) )I can make a backup, transfer it to the pc an analize it with a db tool like navicat. I can also change it an dump it back to the sd card an import it afterwards into my app.
When I then copy the same file to the sd card of my second android (htc desire hd, android 2.29) I can also import it an use it in my app.
As soon as I do a backup on my second android I can't read the database in any other tool (e.g. navicat oder my first android). It can be used in the original device (my second mobile) though.I can also open it with a text editor (e.g nano) but nothing else.
Any idea?
Thanks for your help
Ueli
There seems to be a problem with the HTC Desire HD. Have a look at Database handling stoped working on Android 2.2.1 (Desire HD 1.72.405.3) and Problem with Testing and Debuging of Android Apps .

Categories

Resources