Skip to content

Commit

Permalink
(ubports) init: set property to identify ubports recovery
Browse files Browse the repository at this point in the history
The UBports installer has no way of knowing, if the recovery currently
used is a UBports specific recovery, which is required in order to
install Ubuntu Touch via system-image-upgrader.

Set a property which we can check for with ADB to detect if a recovery
supporting system-image-upgrader is running.

Issue: ubports/halium_bootable_recovery#22

Change-Id: I0f2a00a0a8f9b68203804f1c61f9b639cf7227fc
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
  • Loading branch information
amartinz committed Mar 17, 2022
1 parent 654f767 commit e58526c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on early-init
start ueventd
start healthd

# Set property to allow installers to identify recovery
setprop ro.ubuntu.recovery true

on init
export PATH /sbin:/system/bin
export ANDROID_ROOT /system
Expand Down

0 comments on commit e58526c

Please sign in to comment.