Skip to content

Commit

Permalink
Backend: fix byname finding on modern Android versions for devices wi…
Browse files Browse the repository at this point in the history
…thout super

- /dev/block/mapper exists on all devices with apex but only contains system partition symlinks on devices with super partition logical partitions
  • Loading branch information
osm0sis committed Apr 6, 2023
1 parent 7a3e6df commit 8588147
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ mount_all() {
fi;
byname=bootdevice/by-name;
[ -d /dev/block/$byname ] || byname=$($BB find /dev/block/platform -type d -name by-name 2>/dev/null | $BB head -n1 | $BB cut -d/ -f4-);
[ -d /dev/block/mapper ] && byname=mapper;
[ -e /dev/block/$byname/super ] && [ -d /dev/block/mapper ] && byname=mapper;
[ -e /dev/block/$byname/system ] || slot=$(find_slot);
case $ANDROID_ROOT in
/system_root) setup_mountpoint /system;;
Expand Down
2 changes: 1 addition & 1 deletion META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
#
#
# AK_BASE_VERSION=20230323
# AK_BASE_VERSION=20230405

0 comments on commit 8588147

Please sign in to comment.