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#22

Change-Id: I0f2a00a0a8f9b68203804f1c61f9b639cf7227fc
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
  • Loading branch information
amartinz authored and JamiKettunen committed May 5, 2023
1 parent caa8444 commit dd6b12d
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 @@ -12,6 +12,9 @@ on early-init

setprop sys.usb.configfs 0

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

on init
export ANDROID_ROOT /system
export ANDROID_DATA /data
Expand Down

0 comments on commit dd6b12d

Please sign in to comment.