Lanux

Generic Halium Install instructions

Feb 5th, 2022 (edited)
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. - Note: This guide uses halium-install, a customs cript that only works with Linux. Until the installer support is there, you cannot install with any other OS
  2.  
  3. - If not stated otherwise, put all downloaded artifacts together into a subfolder e.g. called halium-install
  4.  
  5. - Download the latest root file system: wget https://ci.ubports.com/job/xenial-hybris-android9-rootfs-arm64/lastSuccessfulBuild/artifact/ubuntu-touch-android9-arm64.tar.gz
  6.  
  7. - Download the device customization: halium-boot, system and vendor image given to you by the porter
  8.  
  9. - Download your device´s TWRP recovery from https://twrp.me/Devices/ - nOte: You only need the img file for a/b devices, non need to download the ZIP file, this wont work with UT anyways
  10.  
  11. - Download Android´s platform tools: https://developer.android.com/studio/releases/platform-tools
  12. Extract the subfolder platform-tools and cd inside
  13. sudo cp adb /usr/bin && sudo cp fastboot /usr/bin
  14.  
  15. - Install additional packages: sudo apt install qemu-user-static qemu-system-arm e2fsprogs simg2img
  16.  
  17. - Download halium-install: wget https://github.com/JBBgameich/halium-install/releases/download/continuous/halium-install-standalone.sh
  18. Set it to executable: chmod 755 halium-install-standalone.sh
  19.  
  20. - Add udev rules for Android devices (this is also done by Ubports Installer):
  21. sudo curl --create-dirs -L -o /etc/udev/rules.d/51-android.rules https://raw.githubusercontent.com/snowdream/51-android/master/51-android.rules
  22. sudo chmod a+r /etc/udev/rules.d/51-android.rules
  23. sudo service udev restart
  24.  
  25. - Enable developer mode in Android, allow USB debugging and OEM unlock: https://www.howtogeek.com/129728/how-to-access-the-developer-options-menu-and-enable-usb-debugging-on-android-4.2/
  26. On the same page, enable OEM unlocking
  27.  
  28. - Connect your device
  29. Confirm the security warning on the Android device
  30. Check with adb devices if the device is listed
  31.  
  32. - Shut down your Android and boot into fastboot mode
  33. Press and hold Vol-Down and Power until the robot appears
  34. Check with fastboot devices if the device is listed
  35.  
  36. - Unlock the bootloader with fastboot flashing unlock
  37. Confirm the warning on the device
  38.  
  39. - Flash partitions
  40. Issue fastboot flash boot twrp-xy.img
  41. Issue fastboot flash vendor vendor.img
  42.  
  43. - Select boot to Recovery from the bootloader´s menu and confirm
  44. - Issue adb shell
  45. - inside the shell, issue mount data to ensure data partition is mounted
  46. - Install the actual UT OS
  47. Issue ./halium-install-standalone -p ut -s -i ubuntu-touch-android9-arm64.tar.gz system.img
  48.  
  49. - Issue adb reboot bootloader
  50.  
  51. - Overwrite TWRP by issuing fastboot flash boot halium-boot.img (Note later you can use fastboot boot twrp-xy.img to temporarily boot into recovery)
  52.  
  53.  
  54. Finished, with a bit of luck Ubuntu Touch is now booting ;) - Note that first boot can take a while, also it might happen that the device reboots, the reason is unclear, but be patient :) Allow 1 or 2 reboots to happen. More reboots however indicate something went wrong.
  55.  
Add Comment
Please, Sign In to add comment