Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Shmayro committed Oct 4, 2024
1 parent e2125b3 commit e93f69b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ ENV ANDROID_HOME=/opt/android-sdk
ENV PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$PATH"

# Install Android SDK components
RUN yes | sdkmanager --sdk_root=$ANDROID_HOME "platform-tools" "platforms;android-29" "system-images;android-29;default;x86_64" "emulator" && \
echo "no" | avdmanager create avd -n test -k "system-images;android-29;default;x86_64"
RUN yes | sdkmanager --sdk_root=$ANDROID_HOME "platform-tools" "platforms;android-28" "system-images;android-28;default;x86_64" "emulator" && \
echo "no" | avdmanager create avd -n test -k "system-images;android-28;default;x86_64"

# Clone the rootAVD repository
RUN git clone https://gitlab.com/newbit/rootAVD.git /root/rootAVD
Expand Down
2 changes: 1 addition & 1 deletion first-boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fi

# Root the VM
cd /root/rootAVD
./rootAVD.sh system-images/android-29/default/x86_64/ramdisk.img
./rootAVD.sh system-images/android-28/default/x86_64/ramdisk.img

# Create a marker file to indicate the script has run
touch /root/.first-boot-done
8 changes: 4 additions & 4 deletions supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ serverurl=unix:///var/run/supervisor.sock

[program:emulator]
command=/opt/android-sdk/emulator/emulator -avd test -no-window -no-audio -gpu swiftshader_indirect -no-snapshot -qemu -m 2048
stdout_logfile=/var/log/supervisor/emulator.out.log
stderr_logfile=/var/log/supervisor/emulator.err.log
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
autorestart=true
priority=10

[program:first-boot]
command=/root/first-boot.sh
stdout_logfile=/var/log/supervisor/first-boot.out.log
stderr_logfile=/var/log/supervisor/first-boot.err.log
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
autorestart=false
priority=20
startsecs=10
Expand Down

0 comments on commit e93f69b

Please sign in to comment.