File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
boot-switcher/META-INF/com/google/android Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,9 @@ abort() { ui_print "E$1: $2"; exit $1; }
20
20
21
21
# <<< TWRP init <<<
22
22
23
- # >>> Custom functions >>>
24
-
25
- # Verify device boardname validity (e.g. not unset, no spaces / uppercase chars)
26
- invalid_device () { [[ -z " $CURRENT_DEVICE " || " $CURRENT_DEVICE " = * " " * || ` echo " $CURRENT_DEVICE " | grep -q [A-Z]` ]]; }
27
-
28
- # <<< Custom functions <<<
29
-
30
23
# Constants & variables
31
24
TARGET_DEVICES=" cheeseburger dumpling"
32
- CURRENT_DEVICE=` getprop ro.omni .device`
25
+ CURRENT_DEVICE=` getprop ro.product .device`
33
26
ROOT=" /data/.stowaways/sailfishos"
34
27
PARTITION_PREFIX=" /dev/block/bootdevice/by-name"
35
28
PARTITION_BOOT=" $PARTITION_PREFIX /boot"
@@ -38,8 +31,6 @@ PARTITION_VENDOR="$PARTITION_PREFIX/vendor"
38
31
# >>> Sanity checks >>>
39
32
40
33
# Device
41
- invalid_device && CURRENT_DEVICE=` getprop ro.product.device`
42
- invalid_device && CURRENT_DEVICE=` getprop ro.build.product`
43
34
echo $TARGET_DEVICES | grep -q $CURRENT_DEVICE || abort 7 " This package is for '$TARGET_DEVICES ' devices; this is a '$CURRENT_DEVICE '."
44
35
45
36
# Treble
You can’t perform that action at this time.
0 commit comments