Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ To simplify the setup process, you can use the provided [docker-compose.yml](htt

> **Note:** This command launches the Android emulator and web interface. First boot takes some time to initialize. Once ready, the device will appear in the web interface at http://localhost:8000.

3. **Use the Shared Folder (optional):**

Any files placed in the `./shared` directory on the host will be available inside Android at `/mnt/shared`.

## 📡 **Usage**

### 🌐 Use the Web Interface to Access the Emulator
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
volumes:
- ./data:/data
- ./extras:/extras
- ./shared:/shared
environment:
- DNS=one.one.one.one
- RAM_SIZE=8192
Expand Down
3 changes: 3 additions & 0 deletions first-boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ apply_settings() {
sleep 5
done
adb root
adb wait-for-device
adb shell "mkdir -p /mnt/shared"
adb shell "mount -t 9p -o trans=virtio,version=9p2000.L shared /mnt/shared || mount -t virtiofs shared /mnt/shared"
adb shell settings put global window_animation_scale 0
adb shell settings put global transition_animation_scale 0
adb shell settings put global animator_duration_scale 0
Expand Down
Empty file added shared/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion start-emulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ if [ -f /data/.first-boot-done ]; then
fi

# Start the emulator with the appropriate ramdisk.img
/opt/android-sdk/emulator/emulator -avd android -nojni -netfast -writable-system -no-window -no-audio -no-boot-anim -skip-adb-auth -gpu swiftshader_indirect -no-snapshot -no-metrics $RAMDISK -qemu -m ${RAM_SIZE:-4096}
/opt/android-sdk/emulator/emulator -avd android -nojni -netfast -writable-system -no-window -no-audio -no-boot-anim -skip-adb-auth -gpu swiftshader_indirect -no-snapshot -no-metrics -selinux permissive $RAMDISK -qemu -m ${RAM_SIZE:-4096} -qemu -virtfs local,path=/shared,security_model=none,mount_tag=shared