Skip to content

Commit bd19028

Browse files
committed
Fallback to using "ro.build.product" on legacy devices during checks
1 parent e64c1a7 commit bd19028

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

boot-switcher/META-INF/com/google/android/update-binary

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ ROOT="/data/.stowaways/sailfishos"
3131
# >>> Sanity checks >>>
3232

3333
# Device
34+
[ -z "$CURRENT_DEVICE" ] && CURRENT_DEVICE=`getprop ro.build.product`
3435
echo $TARGET_DEVICES | grep -q $CURRENT_DEVICE || abort 7 "This package is for '$TARGET_DEVICES' devices; this is a '$CURRENT_DEVICE'."
3536

3637
# Treble

0 commit comments

Comments
 (0)