Skip to content

Commit 66f55c0

Browse files
committed
Split image assembling into separate script
1 parent b05a937 commit 66f55c0

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
anbox-work
22
.git
3+
android.img

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
anbox-work
2+
android.img

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ Use `./build.sh --sudo` if your user does not have permission to use Docker daem
2222

2323
Directory `anbox-work` will be created where all AOSP sources will be downloaded to and where the build will be performed. You'll need at least 60GB of free disk space and 16GB of RAM.
2424

25+
After successful build, assemble the image with:
26+
27+
```
28+
./assemble.sh
29+
```
30+
2531
## Installation:
2632

27-
Put the `anbox-work/vendor/anbox/android.img` file into `/var/lib/anbox/android.img` on your phone and reboot.
33+
Put the `android.img` file into `/var/lib/anbox/android.img` on your phone and reboot.
2834

2935
## Cleanup
3036

assemble.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -e
3+
4+
pushd anbox-work/vendor/anbox
5+
scripts/create-package.sh "$PWD/../../out/target/product/arm64/ramdisk.img" "$PWD/../../out/target/product/arm64/system.img"
6+
popd
7+
mv anbox-work/vendor/anbox/android.img ./

build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ fi
2323
$DOCKER build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t anbox-build-trusty .
2424
mkdir -p anbox-work
2525
$DOCKER run -it --rm -v "$(realpath anbox-work)":/src anbox-build-trusty /data/anbox-build.sh
26-
cd anbox-work/vendor/anbox
27-
scripts/create-package.sh "$PWD/../../out/target/product/arm64/ramdisk.img" "$PWD/../../out/target/product/arm64/system.img"
26+
echo "Build finished. Now assemble the image with \"./assemble.sh\""

0 commit comments

Comments
 (0)