Skip to content

Commit a44fd3a

Browse files
committed
write README.md
1 parent b94034f commit a44fd3a

File tree

1 file changed

+57
-1
lines changed

1 file changed

+57
-1
lines changed

README.md

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,57 @@
1-
# OnePlus2-Halium-Prebuild
1+
# OnePlus2-Halium-Prebuild
2+
3+
### For Ubuntu Touch
4+
5+
just use the prebuild image just as a normal compiled image.
6+
install it with the JBB's halium-install script [here](https://github.com/JBBgameich/halium-install)
7+
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)
8+
```./halium-install -p ut ubports-touch.rootfs-xenial-edge-armhf.tar.gz system.img```
9+
```sudo fastboot flash boot halium-boot.img```
10+
11+
12+
some command are needed in order to get a working UT device (run as root).
13+
```
14+
chmod 666 /dev/kgsl-3d0
15+
16+
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
17+
18+
chmod 4777 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
19+
chown root:messagebus /usr/lib/dbus-1.0/dbus-daemon-launch-helper
20+
chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper
21+
22+
adduser --force-badname --system --home /nonexistent --no-create-home --quiet _apt
23+
24+
mkdir -p /etc/system-image/config.d
25+
```
26+
27+
### For Ubuntu Touch Anbox (WIP)
28+
29+
follow the instruction above, then follow this.
30+
31+
reflash the boot
32+
33+
```sudo fastboot flash boot halium-boot-anbox.img```
34+
35+
check if exist
36+
/dev/anbox-binder
37+
38+
39+
if it doesn't, you are not using the right ```halium-boot.img```
40+
41+
then
42+
```
43+
sudo apt install anbox-ubuntu-touch
44+
sudo wget -q --show-progress -O /home/phablet/anbox-data/android.img http://cdimage.ubports.com/anbox-images/android-armhf-64binder.img
45+
touch /home/phablet/anbox-data/.enable
46+
```
47+
<br />
48+
some permition fixes are needed.
49+
50+
```
51+
sudo chmod -R o+wrx /home/phablet/anbox-data/data
52+
sudo start -q anbox-container
53+
#personnaly this one fail
54+
start -q anbox-session
55+
```
56+
57+
reboot, wait 2 minutes then reboot again

0 commit comments

Comments
 (0)