Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Commit

Permalink
mi8937: blksetro: Rename module to avoid build conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
me-cafebabe committed Jul 29, 2022
1 parent ec1de62 commit f4416af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blkroset/Android.bp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cc_binary {
name: "blkroset",
name: "blkroset.mi8937",
recovery: true,
srcs: ["blkroset.c"],
cflags: [
Expand Down
2 changes: 1 addition & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ PRODUCT_PROPERTY_OVERRIDES += \

# Utils
PRODUCT_PACKAGES += \
blkroset
blkroset.mi8937

$(call inherit-product-if-exists, vendor/extras/product.mk)
2 changes: 1 addition & 1 deletion recovery/root/init.recovery.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ on boot

on boot
start protect-partitions
exec u:r:recovery:s0 -- /system/bin/blkroset /dev/block/mmcblk0
exec u:r:recovery:s0 -- /system/bin/blkroset.mi8937 /dev/block/mmcblk0
2 changes: 1 addition & 1 deletion recovery/root/system/bin/protect-partitions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PROTECTED_PARTITIONS="$(ls /dev/block/platform/soc/${BOOTDEVICE}/by-name/|eval g
# Make protected partitions read-only
log "Protected partitions: " $PROTECTED_PARTITIONS
for p in $PROTECTED_PARTITIONS; do
blkroset /dev/block/platform/soc/${BOOTDEVICE}/by-name/${p} || true
blkroset.mi8937 /dev/block/platform/soc/${BOOTDEVICE}/by-name/${p} || true
done

exit 0

0 comments on commit f4416af

Please sign in to comment.