mirror of
https://github.com/HQarroum/docker-android.git
synced 2026-07-15 06:47:07 +02:00
critical fixes
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM openjdk:18-jdk-slim
|
FROM openjdk:21-jdk-slim
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -9,7 +9,7 @@ services:
|
|||||||
- IMG_TYPE=google_apis
|
- IMG_TYPE=google_apis
|
||||||
ports:
|
ports:
|
||||||
- 5554:5554
|
- 5554:5554
|
||||||
- 5555:5555
|
- 127.0.0.1:5555:5555
|
||||||
environment:
|
environment:
|
||||||
- DISABLE_ANIMATION=false
|
- DISABLE_ANIMATION=false
|
||||||
- DISABLE_HIDDEN_POLICY=true
|
- DISABLE_HIDDEN_POLICY=true
|
||||||
@@ -37,7 +37,7 @@ services:
|
|||||||
- IMG_TYPE=google_apis
|
- IMG_TYPE=google_apis
|
||||||
ports:
|
ports:
|
||||||
- 5554:5554
|
- 5554:5554
|
||||||
- 5555:5555
|
- 127.0.0.1:5555:5555
|
||||||
environment:
|
environment:
|
||||||
- DISABLE_ANIMATION=false
|
- DISABLE_ANIMATION=false
|
||||||
- DISABLE_HIDDEN_POLICY=true
|
- DISABLE_HIDDEN_POLICY=true
|
||||||
@@ -71,7 +71,7 @@ services:
|
|||||||
- IMG_TYPE=google_apis_playstore
|
- IMG_TYPE=google_apis_playstore
|
||||||
ports:
|
ports:
|
||||||
- 5554:5554
|
- 5554:5554
|
||||||
- 5555:5555
|
- 127.0.0.1:5555:5555
|
||||||
environment:
|
environment:
|
||||||
- DISABLE_ANIMATION=false
|
- DISABLE_ANIMATION=false
|
||||||
- DISABLE_HIDDEN_POLICY=true
|
- DISABLE_HIDDEN_POLICY=true
|
||||||
|
|||||||
@@ -32,16 +32,20 @@ function wait_for_boot() {
|
|||||||
update_state "ANDROID_BOOTING"
|
update_state "ANDROID_BOOTING"
|
||||||
|
|
||||||
# Waiting for the ADB server to start.
|
# Waiting for the ADB server to start.
|
||||||
while [ -n "$(adb wait-for-device > /dev/null)" ]; do
|
adb wait-for-device
|
||||||
adb wait-for-device
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
# Waiting for the boot sequence to be completed.
|
# Waiting for the boot sequence to be completed.
|
||||||
|
TIMEOUT=300
|
||||||
|
COUNTER=0
|
||||||
COMPLETED=$(adb shell getprop sys.boot_completed | tr -d '\r')
|
COMPLETED=$(adb shell getprop sys.boot_completed | tr -d '\r')
|
||||||
while [ "$COMPLETED" != "1" ]; do
|
while [ "$COMPLETED" != "1" ]; do
|
||||||
|
if [ $COUNTER -ge $TIMEOUT ]; then
|
||||||
|
echo "Error: Emulator failed to boot within $TIMEOUT seconds."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
COMPLETED=$(adb shell getprop sys.boot_completed | tr -d '\r')
|
COMPLETED=$(adb shell getprop sys.boot_completed | tr -d '\r')
|
||||||
sleep 5
|
sleep 5
|
||||||
|
COUNTER=$((COUNTER + 5))
|
||||||
done
|
done
|
||||||
sleep 1
|
sleep 1
|
||||||
if [ "$DISABLE_ANIMATION" = "true" ]; then
|
if [ "$DISABLE_ANIMATION" = "true" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user