Skip to content

Commit

Permalink
write README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Vince1171 committed Sep 26, 2018
1 parent b94034f commit a44fd3a
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,57 @@
# OnePlus2-Halium-Prebuild
# OnePlus2-Halium-Prebuild

### For Ubuntu Touch

just use the prebuild image just as a normal compiled image.
install it with the JBB's halium-install script [here](https://github.com/JBBgameich/halium-install)
and get the ubports edge rootfs from [here](https://ci.ubports.com/job/xenial-edge-rootfs-armhf/lastSuccessfulBuild/artifact/out/ubports-touch.rootfs-xenial-edge-armhf.tar.gz)
```./halium-install -p ut ubports-touch.rootfs-xenial-edge-armhf.tar.gz system.img```
```sudo fastboot flash boot halium-boot.img```


some command are needed in order to get a working UT device (run as root).
```
chmod 666 /dev/kgsl-3d0
cat /var/lib/lxc/android/rootfs/ueventd*.rc|grep ^/dev|sed -e 's/^\/dev\///'|awk '{printf "ACTION==\"add\", KERNEL==\"%s\", OWNER=\"%s\", GROUP=\"%s\", MODE=\"%s\"\n",$1,$3,$4,$2}' | sed -e 's/\r//' > /etc/udev/rules.d/70-oneplus2.rules
chmod 4777 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
chown root:messagebus /usr/lib/dbus-1.0/dbus-daemon-launch-helper
chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper
adduser --force-badname --system --home /nonexistent --no-create-home --quiet _apt
mkdir -p /etc/system-image/config.d
```

### For Ubuntu Touch Anbox (WIP)

follow the instruction above, then follow this.

reflash the boot

```sudo fastboot flash boot halium-boot-anbox.img```

check if exist
/dev/anbox-binder


if it doesn't, you are not using the right ```halium-boot.img```

then
```
sudo apt install anbox-ubuntu-touch
sudo wget -q --show-progress -O /home/phablet/anbox-data/android.img http://cdimage.ubports.com/anbox-images/android-armhf-64binder.img
touch /home/phablet/anbox-data/.enable
```
<br />
some permition fixes are needed.

```
sudo chmod -R o+wrx /home/phablet/anbox-data/data
sudo start -q anbox-container
#personnaly this one fail
start -q anbox-session
```

reboot, wait 2 minutes then reboot again

0 comments on commit a44fd3a

Please sign in to comment.