Skip to content

Instantly share code, notes, and snippets.

@Danct12
Created February 7, 2020 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Danct12/58a5cded75d91877f7ffc42bde2cd3a6 to your computer and use it in GitHub Desktop.
Save Danct12/58a5cded75d91877f7ffc42bde2cd3a6 to your computer and use it in GitHub Desktop.
UBports Recovery on Halium 7.1
# Copyright (C) 2020 Dreemurrs Embedded Labs <github.com/dreemurrs-embedded>
HOW TO SETUP RECOVERY FOR HALIUM 7 PORTS
--------------------------
Add this to your manifest
<!-- Remotes -->
<remote name="beidl" fetch="https://github.com/fredldotme" />
<!-- Recovery -->
<remove-project path="bootable/recovery" name="android_bootable_recovery" />
<remove-project path="external/toybox" name="android_external_toybox" />
<remove-project path="system/core" name="Halium/android_system_core" />
<project path="bootable/recovery" name="android_bootable_recovery" remote="beidl" revision="ubp-7.1" />
<project path="external/gpg" name="android_external_gpg" revision="halium-7.1" remote="beidl" />
<project path="external/toybox" name="android_external_toybox" revision="halium-7.1" remote="beidl" />
<project path="system/core" name="Halium/android_system_core" groups="pdk" remote="hal" revision="halium-7.1-adbroot" />
Next, manually clone it or run ./halium/devices/setup $DEVICE. (you'll lose non-pushed changes)
After done, build recovery image by `mka recoveryimage`.
Your finished product will be in out/target/$DEVICE/recovery.img, you can fastboot boot this image to test.
If done correctly, you should get "UBports Recovery" as the branding, along with Ubuntu and Android actions menu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment