-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |