Skip to content

Commit 02d120a

Browse files
authored
Merge pull request #10 from arovlad/development
detect system partition based on active slot
2 parents d743b94 + 47d9023 commit 02d120a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update-binary

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ mkdir /picodroid_system
1717
mkdir /picodroid_vendor
1818

1919
# Mount the neccesary partitions
20-
mount -o rw $(readlink -f $(cd /dev && find /dev/block -type l -name system* | head -n 1 )) /picodroid_system
21-
mount -o rw $(readlink -f $(cd /dev && find /dev/block -type l -name vendor* | head -n 1 )) /picodroid_vendor
20+
mount -o rw $(readlink -f $(cd /dev && find /dev/block -type l -name system$(getprop ro.boot.slot_suffix) | head -n 1 )) /picodroid_system
21+
mount -o rw $(readlink -f $(cd /dev && find /dev/block -type l -name vendor$(getprop ro.boot.slot_suffix) | head -n 1 )) /picodroid_vendor
2222

2323
# Copy the overlay to the appropriate location
2424
cp /tmp/BromiteWebViewInstaller/vendor/overlay/treble-overlay-bromite-webview.apk /picodroid_vendor/overlay

0 commit comments

Comments
 (0)