mirror of
https://github.com/budtmo/docker-android.git
synced 2026-04-25 12:15:52 +03:00
[GH-ISSUE #129] Back & Restore avd not working #89
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-android#89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @omritoptix on GitHub (Nov 12, 2018).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/129
Operating System:
Ubuntu 18.04
Docker Image:
butomo1989/docker-android-x86-7.1.1
Docker Version:
17.12.1-ce
Docker-compose version (Only if you use it):
1.22.0
Docker Command to start docker-android:
docker-compose up --build -d
Expected Behavior
I installed an apk on a fresh avd.
I expected the former avd to be used (with the installed apk) once I restart docker compose with
docker-compose stop && echo 'y' | docker-compose rm && docker-compose up --build -dActual Behavior
The avd is initialized from scratch again and doesn't include the previously installed apk.
docker compose file
Update:
it seems like the file
devices.xmlis not created under the.androiddirectory which causes theis_initialized()function to returnFalse@cesarandreslopez commented on GitHub (May 17, 2019):
The same issue is seen here too. Did you ever get to fix it? @omritoptix
@cesarandreslopez commented on GitHub (May 17, 2019):
A bit more data in case anyone else encounters this issue. I've found that if before stopping and rm the container I turn off the emulator phone on novnc, this issue goes away.
@K4W1H0R53 commented on GitHub (Jun 29, 2019):
same issue as above, i try to use docker volume, but it still not save any changes in avd every time i restart/stop the container.
@cleancoderob commented on GitHub (Dec 31, 2019):
In the file src/app.py there is a lookup for 'hw.device.name={}', however in the config file for my emulator (Nexus 5), there are spaces around the equals sign. I changed it to 'hw.device.name = {}' and then re-built the image. It now works fine for me, remembering the avd state.
@cleancoderob commented on GitHub (Jan 9, 2020):
The spacing issue appears to depend on the API version. I moved from API 27, where the spaces were needed, back to API 23, where the spaces must be removed.