From 7d4247cd4b0c12c846dfb3f1a317e00636bdae25 Mon Sep 17 00:00:00 2001 From: Alexander Martinz Date: Fri, 11 Mar 2022 18:18:50 +0100 Subject: [PATCH] (ubports) init: set property to identify ubports recovery 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: https://github.com/ubports/halium_bootable_recovery/issues/22 Change-Id: I0f2a00a0a8f9b68203804f1c61f9b639cf7227fc Signed-off-by: Alexander Martinz --- etc/init.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/init.rc b/etc/init.rc index 188f385a7..cb3840487 100644 --- a/etc/init.rc +++ b/etc/init.rc @@ -13,6 +13,9 @@ on early-init start ueventd start healthd + # Set property to allow installers to identify recovery + setprop ro.ubuntu.recovery true + on init export ANDROID_ROOT /system export ANDROID_DATA /data