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 committed Mar 11, 2022
1 parent c35f84d commit b500383
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 @@ -8,6 +8,9 @@ on early-init

setprop sys.usb.configfs 0

# Set property to allow UBports installer to identify recovery
setprop ro.ubports.recovery true

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

0 comments on commit b500383

Please sign in to comment.